/*! For license information please see app.js.LICENSE.txt */
(()=>{var t,e={2333:(t,e,n)=>{t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"01dc":function(t,e){},"06cf":function(t,e,n){var i=n("83ab"),r=n("d1e7"),o=n("5c6c"),a=n("fc6a"),s=n("c04e"),l=n("5135"),c=n("0cfb"),u=Object.getOwnPropertyDescriptor;e.f=i?u:function(t,e){if(t=a(t),e=s(e,!0),c)try{return u(t,e)}catch(t){}if(l(t,e))return o(!r.f.call(t,e),t[e])}},"0cfb":function(t,e,n){var i=n("83ab"),r=n("d039"),o=n("cc12");t.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"1be4":function(t,e,n){var i=n("d066");t.exports=i("document","documentElement")},"1d80":function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},"1dde":function(t,e,n){var i=n("d039"),r=n("b622"),o=n("2d00"),a=r("species");t.exports=function(t){return o>=51||!i((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"23cb":function(t,e,n){var i=n("a691"),r=Math.max,o=Math.min;t.exports=function(t,e){var n=i(t);return n<0?r(n+e,0):o(n,e)}},"23e7":function(t,e,n){var i=n("da84"),r=n("06cf").f,o=n("9112"),a=n("6eeb"),s=n("ce4e"),l=n("e893"),c=n("94ca");t.exports=function(t,e){var n,u,d,h,p,f=t.target,m=t.global,v=t.stat;if(n=m?i:v?i[f]||s(f,{}):(i[f]||{}).prototype)for(u in e){if(h=e[u],d=t.noTargetGet?(p=r(n,u))&&p.value:n[u],!c(m?u:f+(v?".":"#")+u,t.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(t.sham||d&&d.sham)&&o(h,"sham",!0),a(n,u,h,t)}}},"241c":function(t,e,n){var i=n("ca84"),r=n("7839").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},"24fb":function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r=(a=i,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(l," */")),o=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(o).concat([r]).join("\n")}var a,s,l;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(r[a]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);i&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},"2d00":function(t,e,n){var i,r,o=n("da84"),a=n("342f"),s=o.process,l=s&&s.versions,c=l&&l.v8;c?r=(i=c.split("."))[0]+i[1]:a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(r=i[1]),t.exports=r&&+r},"342f":function(t,e,n){var i=n("d066");t.exports=i("navigator","userAgent")||""},"37e8":function(t,e,n){var i=n("83ab"),r=n("9bf2"),o=n("825a"),a=n("df75");t.exports=i?Object.defineProperties:function(t,e){o(t);for(var n,i=a(e),s=i.length,l=0;s>l;)r.f(t,n=i[l++],e[n]);return t}},"3b8d":function(t,e,n){(e=n("24fb")(!1)).push([t.i,".container[data-v-16fc9cd0]{width:100%;height:100%;position:relative;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-touch-action:none;touch-action:none}",""]),t.exports=e},"3bbe":function(t,e,n){var i=n("861d");t.exports=function(t){if(!i(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},4057:function(t,e,n){var i=n("23e7"),r=Math.hypot,o=Math.abs,a=Math.sqrt;i({target:"Math",stat:!0,forced:!!r&&r(1/0,NaN)!==1/0},{hypot:function(t,e){for(var n,i,r=0,s=0,l=arguments.length,c=0;s<l;)c<(n=o(arguments[s++]))?(r=r*(i=c/n)*i+1,c=n):r+=n>0?(i=n/c)*i:n;return c===1/0?1/0:c*a(r)}})},"428f":function(t,e,n){var i=n("da84");t.exports=i},"44ad":function(t,e,n){var i=n("d039"),r=n("c6b6"),o="".split;t.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==r(t)?o.call(t,""):Object(t)}:Object},4930:function(t,e,n){var i=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())}))},"499e":function(t,e,n){"use strict";function i(t,e){for(var n=[],i={},r=0;r<e.length;r++){var o=e[r],a=o[0],s={id:t+":"+r,css:o[1],media:o[2],sourceMap:o[3]};i[a]?i[a].parts.push(s):n.push(i[a]={id:a,parts:[s]})}return n}n.r(e),n.d(e,"default",(function(){return f}));var r="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},a=r&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},d=null,h="data-vue-ssr-id",p="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(t,e,n,r){c=n,d=r||{};var a=i(t,e);return m(a),function(e){for(var n=[],r=0;r<a.length;r++){var s=a[r];(l=o[s.id]).refs--,n.push(l)}e?m(a=i(t,e)):a=[];for(r=0;r<n.length;r++){var l;if(0===(l=n[r]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete o[l.id]}}}}function m(t){for(var e=0;e<t.length;e++){var n=t[e],i=o[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(g(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var a=[];for(r=0;r<n.parts.length;r++)a.push(g(n.parts[r]));o[n.id]={id:n.id,refs:1,parts:a}}}}function v(){var t=document.createElement("style");return t.type="text/css",a.appendChild(t),t}function g(t){var e,n,i=document.querySelector("style["+h+'~="'+t.id+'"]');if(i){if(c)return u;i.parentNode.removeChild(i)}if(p){var r=l++;i=s||(s=v()),e=_.bind(null,i,r,!1),n=_.bind(null,i,r,!0)}else i=v(),e=w.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}var b,y=(b=[],function(t,e){return b[t]=e,b.filter(Boolean).join("\n")});function _(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=y(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function w(t,e){var n=e.css,i=e.media,r=e.sourceMap;if(i&&t.setAttribute("media",i),d.ssrId&&t.setAttribute(h,e.id),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},"4d64":function(t,e,n){var i=n("fc6a"),r=n("50c4"),o=n("23cb"),a=function(t){return function(e,n,a){var s,l=i(e),c=r(l.length),u=o(a,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"50c4":function(t,e,n){var i=n("a691"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},5135:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},5692:function(t,e,n){var i=n("c430"),r=n("c6cd");(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:i?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,n){var i=n("d066"),r=n("241c"),o=n("7418"),a=n("825a");t.exports=i("Reflect","ownKeys")||function(t){var e=r.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},5899:function(t,e){t.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},"58a8":function(t,e,n){var i=n("1d80"),r="["+n("5899")+"]",o=RegExp("^"+r+r+"*"),a=RegExp(r+r+"*$"),s=function(t){return function(e){var n=String(i(e));return 1&t&&(n=n.replace(o,"")),2&t&&(n=n.replace(a,"")),n}};t.exports={start:s(1),end:s(2),trim:s(3)}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"65f0":function(t,e,n){var i=n("861d"),r=n("e8b5"),o=n("b622")("species");t.exports=function(t,e){var n;return r(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!r(n.prototype)?i(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},"69f3":function(t,e,n){var i,r,o,a=n("7f9a"),s=n("da84"),l=n("861d"),c=n("9112"),u=n("5135"),d=n("f772"),h=n("d012"),p=s.WeakMap;if(a){var f=new p,m=f.get,v=f.has,g=f.set;i=function(t,e){return g.call(f,t,e),e},r=function(t){return m.call(f,t)||{}},o=function(t){return v.call(f,t)}}else{var b=d("state");h[b]=!0,i=function(t,e){return c(t,b,e),e},r=function(t){return u(t,b)?t[b]:{}},o=function(t){return u(t,b)}}t.exports={set:i,get:r,has:o,enforce:function(t){return o(t)?r(t):i(t,{})},getterFor:function(t){return function(e){var n;if(!l(e)||(n=r(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},"6eeb":function(t,e,n){var i=n("da84"),r=n("9112"),o=n("5135"),a=n("ce4e"),s=n("8925"),l=n("69f3"),c=l.get,u=l.enforce,d=String(String).split("String");(t.exports=function(t,e,n,s){var l=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof e||o(n,"name")||r(n,"name",e),u(n).source=d.join("string"==typeof e?e:"")),t!==i?(l?!h&&t[e]&&(c=!0):delete t[e],c?t[e]=n:r(t,e,n)):c?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},7156:function(t,e,n){var i=n("861d"),r=n("d2bb");t.exports=function(t,e,n){var o,a;return r&&"function"==typeof(o=e.constructor)&&o!==n&&i(a=o.prototype)&&a!==n.prototype&&r(t,a),t}},7418:function(t,e){e.f=Object.getOwnPropertySymbols},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,n){var i=n("1d80");t.exports=function(t){return Object(i(t))}},"7c73":function(t,e,n){var i,r=n("825a"),o=n("37e8"),a=n("7839"),s=n("d012"),l=n("1be4"),c=n("cc12"),u=n("f772"),d="prototype",h="script",p=u("IE_PROTO"),f=function(){},m=function(t){return"<"+h+">"+t+"</"+h+">"},v=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e,n;v=i?function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e}(i):(e=c("iframe"),n="java"+h+":",e.style.display="none",l.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F);for(var r=a.length;r--;)delete v[d][a[r]];return v()};s[p]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(f[d]=r(t),n=new f,f[d]=null,n[p]=t):n=v(),void 0===e?n:o(n,e)}},"7f9a":function(t,e,n){var i=n("da84"),r=n("8925"),o=i.WeakMap;t.exports="function"==typeof o&&/native code/.test(r(o))},"825a":function(t,e,n){var i=n("861d");t.exports=function(t){if(!i(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,n){var i=n("d039");t.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(t,e,n){"use strict";var i=n("c04e"),r=n("9bf2"),o=n("5c6c");t.exports=function(t,e,n){var a=i(e);a in t?r.f(t,a,o(0,n)):t[a]=n}},"861d":function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},8925:function(t,e,n){var i=n("c6cd"),r=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(t){return r.call(t)}),t.exports=i.inspectSource},"8bbf":function(t,e){t.exports=n(2893)},"90e3":function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+i).toString(36)}},9112:function(t,e,n){var i=n("83ab"),r=n("9bf2"),o=n("5c6c");t.exports=i?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"94ca":function(t,e,n){var i=n("d039"),r=/#|\.prototype\./,o=function(t,e){var n=s[a(t)];return n==c||n!=l&&("function"==typeof e?i(e):!!e)},a=o.normalize=function(t){return String(t).replace(r,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},"99af":function(t,e,n){"use strict";var i=n("23e7"),r=n("d039"),o=n("e8b5"),a=n("861d"),s=n("7b0b"),l=n("50c4"),c=n("8418"),u=n("65f0"),d=n("1dde"),h=n("b622"),p=n("2d00"),f=h("isConcatSpreadable"),m=9007199254740991,v="Maximum allowed index exceeded",g=p>=51||!r((function(){var t=[];return t[f]=!1,t.concat()[0]!==t})),b=d("concat"),y=function(t){if(!a(t))return!1;var e=t[f];return void 0!==e?!!e:o(t)};i({target:"Array",proto:!0,forced:!g||!b},{concat:function(t){var e,n,i,r,o,a=s(this),d=u(a,0),h=0;for(e=-1,i=arguments.length;e<i;e++)if(y(o=-1===e?a:arguments[e])){if(h+(r=l(o.length))>m)throw TypeError(v);for(n=0;n<r;n++,h++)n in o&&c(d,h,o[n])}else{if(h>=m)throw TypeError(v);c(d,h++,o)}return d.length=h,d}})},"9bf2":function(t,e,n){var i=n("83ab"),r=n("0cfb"),o=n("825a"),a=n("c04e"),s=Object.defineProperty;e.f=i?s:function(t,e,n){if(o(t),e=a(e,!0),o(n),r)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},a691:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},a9e3:function(t,e,n){"use strict";var i=n("83ab"),r=n("da84"),o=n("94ca"),a=n("6eeb"),s=n("5135"),l=n("c6b6"),c=n("7156"),u=n("c04e"),d=n("d039"),h=n("7c73"),p=n("241c").f,f=n("06cf").f,m=n("9bf2").f,v=n("58a8").trim,g="Number",b=r[g],y=b.prototype,_=l(h(y))==g,w=function(t){var e,n,i,r,o,a,s,l,c=u(t,!1);if("string"==typeof c&&c.length>2)if(43===(e=(c=v(c)).charCodeAt(0))||45===e){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+c}for(a=(o=c.slice(2)).length,s=0;s<a;s++)if((l=o.charCodeAt(s))<48||l>r)return NaN;return parseInt(o,i)}return+c};if(o(g,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var x,C=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof C&&(_?d((function(){y.valueOf.call(n)})):l(n)!=g)?c(new b(w(e)),n,C):w(e)},S=i?p(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),E=0;S.length>E;E++)s(b,x=S[E])&&!s(C,x)&&m(C,x,f(b,x));C.prototype=y,y.constructor=C,a(r,g,C)}},b622:function(t,e,n){var i=n("da84"),r=n("5692"),o=n("5135"),a=n("90e3"),s=n("4930"),l=n("fdbf"),c=r("wks"),u=i.Symbol,d=l?u:u&&u.withoutSetter||a;t.exports=function(t){return o(c,t)||(s&&o(u,t)?c[t]=u[t]:c[t]=d("Symbol."+t)),c[t]}},c04e:function(t,e,n){var i=n("861d");t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},c430:function(t,e){t.exports=!1},c6b6:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},c6cd:function(t,e,n){var i=n("da84"),r=n("ce4e"),o="__core-js_shared__",a=i[o]||r(o,{});t.exports=a},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){var i=n("5135"),r=n("fc6a"),o=n("4d64").indexOf,a=n("d012");t.exports=function(t,e){var n,s=r(t),l=0,c=[];for(n in s)!i(a,n)&&i(s,n)&&c.push(n);for(;e.length>l;)i(s,n=e[l++])&&(~o(c,n)||c.push(n));return c}},cc12:function(t,e,n){var i=n("da84"),r=n("861d"),o=i.document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},ce4e:function(t,e,n){var i=n("da84"),r=n("9112");t.exports=function(t,e){try{r(i,t,e)}catch(n){i[t]=e}return e}},cf90:function(t,e,n){"use strict";var i=n("d05b");n.n(i).a},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},d05b:function(t,e,n){var i=n("3b8d");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,n("499e").default)("0bf11e5d",i,!0,{sourceMap:!1,shadowMode:!1})},d066:function(t,e,n){var i=n("428f"),r=n("da84"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(i[t])||o(r[t]):i[t]&&i[t][e]||r[t]&&r[t][e]}},d1e7:function(t,e,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!i.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:i},d2bb:function(t,e,n){var i=n("825a"),r=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,o){return i(n),r(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n("c8ba"))},df75:function(t,e,n){var i=n("ca84"),r=n("7839");t.exports=Object.keys||function(t){return i(t,r)}},e893:function(t,e,n){var i=n("5135"),r=n("56ef"),o=n("06cf"),a=n("9bf2");t.exports=function(t,e){for(var n=r(e),s=a.f,l=o.f,c=0;c<n.length;c++){var u=n[c];i(t,u)||s(t,u,l(e,u))}}},e8b5:function(t,e,n){var i=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==i(t)}},f6fd:function(t,e){!function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(i){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(i.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})}(document)},f772:function(t,e,n){var i=n("5692"),r=n("90e3"),o=i("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},fb15:function(t,e,n){"use strict";var i;(n.r(e),"undefined"!=typeof window)&&(n("f6fd"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1]));n("a9e3");var r=n("8bbf"),o=n.n(r);n("99af"),n("4057");function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var s=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.x=e,this.y=n}var e,n,i;return e=t,(n=[{key:"add",value:function(e){return new t(this.x+e.x,this.y+e.y)}},{key:"subtract",value:function(e){return new t(this.x-e.x,this.y-e.y)}},{key:"clone",value:function(){return new t(this.x,this.y)}},{key:"distanceTo",value:function(t){return Math.hypot(this.x-t.x,this.y-t.y)}},{key:"centerTo",value:function(e){return new t((this.x+e.x)/2,(this.y+e.y)/2)}}])&&a(e.prototype,n),i&&a(e,i),t}(),l=function(t,e){return new s(t.touches[e].clientX,t.touches[e].clientY)},c=function(t){return new s(t.clientX,t.clientY)};var u=o.a.extend({props:{maxZoom:{type:Number,default:5},minZoom:{type:Number,default:.2},zoomStep:{type:Number,default:.2}},data:function(){return{transform:""}},mounted:function(){!function(t,e,n,i,r){t.style.cursor="grab";var o=!1,a=!1,u=new s,d=new s,h=0,p=1,f=1,m=0;function v(t,n){e.style.transform="translate(".concat(t.x,"px, ").concat(t.y,"px) scale(").concat(n,")")}function g(t){p=t=Math.max(Math.min(t,i),n)}function b(t){if(o)v(d=l(t,0).subtract(u),p);else if(a){var e=l(t,0),n=l(t,1);d=e.centerTo(n).subtract(u);var i=e.distanceTo(n)*f-h+m;g(f*Math.pow(i/m,4)),v(d,p)}t.preventDefault()}function y(t){a=!1,1===t.touches.length?(o=!0,u=l(t,0).subtract(d)):(o=!1,window.removeEventListener("touchmove",b),window.removeEventListener("touchend",y)),t.preventDefault()}function _(t){o&&v(d=c(t).subtract(u),p)}function w(){t.style.cursor="grab",o=!1,window.removeEventListener("mousemove",_),window.removeEventListener("mouseup",w)}t.addEventListener("touchstart",(function(t){if(1===t.touches.length)o=!0,a=!1,u=l(t,0).subtract(d);else if(2===t.touches.length){a=!0,o=!1;var n=l(t,0),i=l(t,1);u=n.centerTo(i).subtract(d),f=p,m=Math.hypot(e.offsetWidth,e.offsetHeight)*f,h=n.distanceTo(i)*f}window.addEventListener("touchmove",b),window.addEventListener("touchend",y),t.preventDefault()})),t.addEventListener("mousedown",(function(e){o=!0,t.style.cursor="grabbing",u=c(e).subtract(d),window.addEventListener("mousemove",_),window.addEventListener("mouseup",w),e.preventDefault()})),t.addEventListener("wheel",(function(t){t.deltaY>0?g(p-r):t.deltaY<0&&g(p+r),v(d,p),t.preventDefault()}))}(this.$refs.container,this.$refs.content,this.minZoom,this.maxZoom,this.zoomStep)}});n("cf90");var d=n("01dc"),h=n.n(d),p=function(t,e,n,i,r,o,a,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}(u,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"container",staticClass:"container"},[n("div",{ref:"content",style:"transform: "+t.transform+";"},[t._t("default")],2)])}),[],!1,null,"16fc9cd0",null);"function"==typeof h.a&&h()(p);var f=p.exports;e.default=f},fc6a:function(t,e,n){var i=n("44ad"),r=n("1d80");t.exports=function(t){return i(r(t))}},fdbf:function(t,e,n){var i=n("4930");t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}}).default},9399:(t,e,n)=>{"use strict";n.d(e,{jM:()=>od});const i="161",r=1,o=2,a=3,s=0,l=1,c=2,u=100,d=101,h=102,p=200,f=201,m=202,v=203,g=204,b=205,y=206,_=207,w=208,x=209,C=210,S=211,E=212,T=213,O=214,k=0,A=1,P=2,M=0,L=1,D=2,R=3,I=4,j=5,N=6,F=301,z=302,B=303,$=304,U=306,H=1e3,V=1001,Y=1002,q=1003,W=1004,G=1005,X=1006,K=1007,Z=1008,J=1009,Q=1012,tt=1013,et=1014,nt=1015,it=1016,rt=1020,ot=1023,at=1026,st=1027,lt=33776,ct=33777,ut=33778,dt=33779,ht=36492,pt=2300,ft=2301,mt=2302,vt=2400,gt=2401,bt=2402,yt=3001,_t="",wt="srgb",xt="srgb-linear",Ct="display-p3",St="display-p3-linear",Et="linear",Tt="srgb",Ot="rec709",kt="p3",At=7680,Pt=512,Mt=513,Lt=514,Dt=515,Rt=516,It=517,jt=518,Nt=519,Ft=35044,zt="300 es",Bt=1035,$t=2e3,Ut=2001;class Ht{addEventListener(t,e){void 0===this._listeners&&(this._listeners={});const n=this._listeners;void 0===n[t]&&(n[t]=[]),-1===n[t].indexOf(e)&&n[t].push(e)}hasEventListener(t,e){if(void 0===this._listeners)return!1;const n=this._listeners;return void 0!==n[t]&&-1!==n[t].indexOf(e)}removeEventListener(t,e){if(void 0===this._listeners)return;const n=this._listeners[t];if(void 0!==n){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}dispatchEvent(t){if(void 0===this._listeners)return;const e=this._listeners[t.type];if(void 0!==e){t.target=this;const n=e.slice(0);for(let e=0,i=n.length;e<i;e++)n[e].call(this,t);t.target=null}}}const Vt=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"];let Yt=1234567;const qt=Math.PI/180,Wt=180/Math.PI;function Gt(){const t=4294967295*Math.random()|0,e=4294967295*Math.random()|0,n=4294967295*Math.random()|0,i=4294967295*Math.random()|0;return(Vt[255&t]+Vt[t>>8&255]+Vt[t>>16&255]+Vt[t>>24&255]+"-"+Vt[255&e]+Vt[e>>8&255]+"-"+Vt[e>>16&15|64]+Vt[e>>24&255]+"-"+Vt[63&n|128]+Vt[n>>8&255]+"-"+Vt[n>>16&255]+Vt[n>>24&255]+Vt[255&i]+Vt[i>>8&255]+Vt[i>>16&255]+Vt[i>>24&255]).toLowerCase()}function Xt(t,e,n){return Math.max(e,Math.min(n,t))}function Kt(t,e){return(t%e+e)%e}function Zt(t,e,n){return(1-n)*t+n*e}function Jt(t){return!(t&t-1)&&0!==t}function Qt(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}function te(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return t/4294967295;case Uint16Array:return t/65535;case Uint8Array:return t/255;case Int32Array:return Math.max(t/2147483647,-1);case Int16Array:return Math.max(t/32767,-1);case Int8Array:return Math.max(t/127,-1);default:throw new Error("Invalid component type.")}}function ee(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return Math.round(4294967295*t);case Uint16Array:return Math.round(65535*t);case Uint8Array:return Math.round(255*t);case Int32Array:return Math.round(2147483647*t);case Int16Array:return Math.round(32767*t);case Int8Array:return Math.round(127*t);default:throw new Error("Invalid component type.")}}const ne={DEG2RAD:qt,RAD2DEG:Wt,generateUUID:Gt,clamp:Xt,euclideanModulo:Kt,mapLinear:function(t,e,n,i,r){return i+(t-e)*(r-i)/(n-e)},inverseLerp:function(t,e,n){return t!==e?(n-t)/(e-t):0},lerp:Zt,damp:function(t,e,n,i){return Zt(t,e,1-Math.exp(-n*i))},pingpong:function(t,e=1){return e-Math.abs(Kt(t,2*e)-e)},smoothstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*(3-2*t)},smootherstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*t*(t*(6*t-15)+10)},randInt:function(t,e){return t+Math.floor(Math.random()*(e-t+1))},randFloat:function(t,e){return t+Math.random()*(e-t)},randFloatSpread:function(t){return t*(.5-Math.random())},seededRandom:function(t){void 0!==t&&(Yt=t);let e=Yt+=1831565813;return e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296},degToRad:function(t){return t*qt},radToDeg:function(t){return t*Wt},isPowerOfTwo:Jt,ceilPowerOfTwo:function(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))},floorPowerOfTwo:Qt,setQuaternionFromProperEuler:function(t,e,n,i,r){const o=Math.cos,a=Math.sin,s=o(n/2),l=a(n/2),c=o((e+i)/2),u=a((e+i)/2),d=o((e-i)/2),h=a((e-i)/2),p=o((i-e)/2),f=a((i-e)/2);switch(r){case"XYX":t.set(s*u,l*d,l*h,s*c);break;case"YZY":t.set(l*h,s*u,l*d,s*c);break;case"ZXZ":t.set(l*d,l*h,s*u,s*c);break;case"XZX":t.set(s*u,l*f,l*p,s*c);break;case"YXY":t.set(l*p,s*u,l*f,s*c);break;case"ZYZ":t.set(l*f,l*p,s*u,s*c);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+r)}},normalize:ee,denormalize:te};class ie{constructor(t=0,e=0){ie.prototype.isVector2=!0,this.x=t,this.y=e}get width(){return this.x}set width(t){this.x=t}get height(){return this.y}set height(t){this.y=t}set(t,e){return this.x=t,this.y=e,this}setScalar(t){return this.x=t,this.y=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y)}copy(t){return this.x=t.x,this.y=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}addScalar(t){return this.x+=t,this.y+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this}subScalar(t){return this.x-=t,this.y-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}divide(t){return this.x/=t.x,this.y/=t.y,this}divideScalar(t){return this.multiplyScalar(1/t)}applyMatrix3(t){const e=this.x,n=this.y,i=t.elements;return this.x=i[0]*e+i[3]*n+i[6],this.y=i[1]*e+i[4]*n+i[7],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this}clampLength(t,e){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-this.y*t.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(0===e)return Math.PI/2;const n=this.dot(t)/e;return Math.acos(Xt(n,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,n=this.y-t.y;return e*e+n*n}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this}equals(t){return t.x===this.x&&t.y===this.y}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this}rotateAround(t,e){const n=Math.cos(e),i=Math.sin(e),r=this.x-t.x,o=this.y-t.y;return this.x=r*n-o*i+t.x,this.y=r*i+o*n+t.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class re{constructor(t,e,n,i,r,o,a,s,l){re.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],void 0!==t&&this.set(t,e,n,i,r,o,a,s,l)}set(t,e,n,i,r,o,a,s,l){const c=this.elements;return c[0]=t,c[1]=i,c[2]=a,c[3]=e,c[4]=r,c[5]=s,c[6]=n,c[7]=o,c[8]=l,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(t){const e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],this}extractBasis(t,e,n){return t.setFromMatrix3Column(this,0),e.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(t){const e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const n=t.elements,i=e.elements,r=this.elements,o=n[0],a=n[3],s=n[6],l=n[1],c=n[4],u=n[7],d=n[2],h=n[5],p=n[8],f=i[0],m=i[3],v=i[6],g=i[1],b=i[4],y=i[7],_=i[2],w=i[5],x=i[8];return r[0]=o*f+a*g+s*_,r[3]=o*m+a*b+s*w,r[6]=o*v+a*y+s*x,r[1]=l*f+c*g+u*_,r[4]=l*m+c*b+u*w,r[7]=l*v+c*y+u*x,r[2]=d*f+h*g+p*_,r[5]=d*m+h*b+p*w,r[8]=d*v+h*y+p*x,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this}determinant(){const t=this.elements,e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],c=t[8];return e*o*c-e*a*l-n*r*c+n*a*s+i*r*l-i*o*s}invert(){const t=this.elements,e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],c=t[8],u=c*o-a*l,d=a*s-c*r,h=l*r-o*s,p=e*u+n*d+i*h;if(0===p)return this.set(0,0,0,0,0,0,0,0,0);const f=1/p;return t[0]=u*f,t[1]=(i*l-c*n)*f,t[2]=(a*n-i*o)*f,t[3]=d*f,t[4]=(c*e-i*s)*f,t[5]=(i*r-a*e)*f,t[6]=h*f,t[7]=(n*s-l*e)*f,t[8]=(o*e-n*r)*f,this}transpose(){let t;const e=this.elements;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this}getNormalMatrix(t){return this.setFromMatrix4(t).invert().transpose()}transposeIntoArray(t){const e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this}setUvTransform(t,e,n,i,r,o,a){const s=Math.cos(r),l=Math.sin(r);return this.set(n*s,n*l,-n*(s*o+l*a)+o+t,-i*l,i*s,-i*(-l*o+s*a)+a+e,0,0,1),this}scale(t,e){return this.premultiply(oe.makeScale(t,e)),this}rotate(t){return this.premultiply(oe.makeRotation(-t)),this}translate(t,e){return this.premultiply(oe.makeTranslation(t,e)),this}makeTranslation(t,e){return t.isVector2?this.set(1,0,t.x,0,1,t.y,0,0,1):this.set(1,0,t,0,1,e,0,0,1),this}makeRotation(t){const e=Math.cos(t),n=Math.sin(t);return this.set(e,-n,0,n,e,0,0,0,1),this}makeScale(t,e){return this.set(t,0,0,0,e,0,0,0,1),this}equals(t){const e=this.elements,n=t.elements;for(let t=0;t<9;t++)if(e[t]!==n[t])return!1;return!0}fromArray(t,e=0){for(let n=0;n<9;n++)this.elements[n]=t[n+e];return this}toArray(t=[],e=0){const n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t}clone(){return(new this.constructor).fromArray(this.elements)}}const oe=new re;function ae(t){for(let e=t.length-1;e>=0;--e)if(t[e]>=65535)return!0;return!1}Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array;function se(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}function le(){const t=se("canvas");return t.style.display="block",t}const ce={};function ue(t){t in ce||(ce[t]=!0,console.warn(t))}const de=(new re).set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),he=(new re).set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),pe={[xt]:{transfer:Et,primaries:Ot,toReference:t=>t,fromReference:t=>t},[wt]:{transfer:Tt,primaries:Ot,toReference:t=>t.convertSRGBToLinear(),fromReference:t=>t.convertLinearToSRGB()},[St]:{transfer:Et,primaries:kt,toReference:t=>t.applyMatrix3(he),fromReference:t=>t.applyMatrix3(de)},[Ct]:{transfer:Tt,primaries:kt,toReference:t=>t.convertSRGBToLinear().applyMatrix3(he),fromReference:t=>t.applyMatrix3(de).convertLinearToSRGB()}},fe=new Set([xt,St]),me={enabled:!0,_workingColorSpace:xt,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(t){if(!fe.has(t))throw new Error(`Unsupported working color space, "${t}".`);this._workingColorSpace=t},convert:function(t,e,n){if(!1===this.enabled||e===n||!e||!n)return t;const i=pe[e].toReference;return(0,pe[n].fromReference)(i(t))},fromWorkingColorSpace:function(t,e){return this.convert(t,this._workingColorSpace,e)},toWorkingColorSpace:function(t,e){return this.convert(t,e,this._workingColorSpace)},getPrimaries:function(t){return pe[t].primaries},getTransfer:function(t){return t===_t?Et:pe[t].transfer}};function ve(t){return t<.04045?.0773993808*t:Math.pow(.9478672986*t+.0521327014,2.4)}function ge(t){return t<.0031308?12.92*t:1.055*Math.pow(t,.41666)-.055}let be;class ye{static getDataURL(t){if(/^data:/i.test(t.src))return t.src;if("undefined"==typeof HTMLCanvasElement)return t.src;let e;if(t instanceof HTMLCanvasElement)e=t;else{void 0===be&&(be=se("canvas")),be.width=t.width,be.height=t.height;const n=be.getContext("2d");t instanceof ImageData?n.putImageData(t,0,0):n.drawImage(t,0,0,t.width,t.height),e=be}return e.width>2048||e.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",t),e.toDataURL("image/jpeg",.6)):e.toDataURL("image/png")}static sRGBToLinear(t){if("undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap){const e=se("canvas");e.width=t.width,e.height=t.height;const n=e.getContext("2d");n.drawImage(t,0,0,t.width,t.height);const i=n.getImageData(0,0,t.width,t.height),r=i.data;for(let t=0;t<r.length;t++)r[t]=255*ve(r[t]/255);return n.putImageData(i,0,0),e}if(t.data){const e=t.data.slice(0);for(let t=0;t<e.length;t++)e instanceof Uint8Array||e instanceof Uint8ClampedArray?e[t]=Math.floor(255*ve(e[t]/255)):e[t]=ve(e[t]);return{data:e,width:t.width,height:t.height}}return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),t}}let _e=0;class we{constructor(t=null){this.isSource=!0,Object.defineProperty(this,"id",{value:_e++}),this.uuid=Gt(),this.data=t,this.dataReady=!0,this.version=0}set needsUpdate(t){!0===t&&this.version++}toJSON(t){const e=void 0===t||"string"==typeof t;if(!e&&void 0!==t.images[this.uuid])return t.images[this.uuid];const n={uuid:this.uuid,url:""},i=this.data;if(null!==i){let t;if(Array.isArray(i)){t=[];for(let e=0,n=i.length;e<n;e++)i[e].isDataTexture?t.push(xe(i[e].image)):t.push(xe(i[e]))}else t=xe(i);n.url=t}return e||(t.images[this.uuid]=n),n}}function xe(t){return"undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap?ye.getDataURL(t):t.data?{data:Array.from(t.data),width:t.width,height:t.height,type:t.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}let Ce=0;class Se extends Ht{constructor(t=Se.DEFAULT_IMAGE,e=Se.DEFAULT_MAPPING,n=1001,i=1001,r=1006,o=1008,a=1023,s=1009,l=Se.DEFAULT_ANISOTROPY,c=""){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:Ce++}),this.uuid=Gt(),this.name="",this.source=new we(t),this.mipmaps=[],this.mapping=e,this.channel=0,this.wrapS=n,this.wrapT=i,this.magFilter=r,this.minFilter=o,this.anisotropy=l,this.format=a,this.internalFormat=null,this.type=s,this.offset=new ie(0,0),this.repeat=new ie(1,1),this.center=new ie(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new re,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,"string"==typeof c?this.colorSpace=c:(ue("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=c===yt?wt:_t),this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1,this.needsPMREMUpdate=!1}get image(){return this.source.data}set image(t=null){this.source.data=t}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return(new this.constructor).copy(this)}copy(t){return this.name=t.name,this.source=t.source,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.channel=t.channel,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.internalFormat=t.internalFormat,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.colorSpace=t.colorSpace,this.userData=JSON.parse(JSON.stringify(t.userData)),this.needsUpdate=!0,this}toJSON(t){const e=void 0===t||"string"==typeof t;if(!e&&void 0!==t.textures[this.uuid])return t.textures[this.uuid];const n={metadata:{version:4.6,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(t).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),e||(t.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(t){if(300!==this.mapping)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case H:t.x=t.x-Math.floor(t.x);break;case V:t.x=t.x<0?0:1;break;case Y:1===Math.abs(Math.floor(t.x)%2)?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x)}if(t.y<0||t.y>1)switch(this.wrapT){case H:t.y=t.y-Math.floor(t.y);break;case V:t.y=t.y<0?0:1;break;case Y:1===Math.abs(Math.floor(t.y)%2)?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y)}return this.flipY&&(t.y=1-t.y),t}set needsUpdate(t){!0===t&&(this.version++,this.source.needsUpdate=!0)}get encoding(){return ue("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===wt?yt:3e3}set encoding(t){ue("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=t===yt?wt:_t}}Se.DEFAULT_IMAGE=null,Se.DEFAULT_MAPPING=300,Se.DEFAULT_ANISOTROPY=1;class Ee{constructor(t=0,e=0,n=0,i=1){Ee.prototype.isVector4=!0,this.x=t,this.y=e,this.z=n,this.w=i}get width(){return this.z}set width(t){this.z=t}get height(){return this.w}set height(t){this.w=t}set(t,e,n,i){return this.x=t,this.y=e,this.z=n,this.w=i,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this.w=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setW(t){return this.w=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=void 0!==t.w?t.w:1,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this.w*=t.w,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this}applyMatrix4(t){const e=this.x,n=this.y,i=this.z,r=this.w,o=t.elements;return this.x=o[0]*e+o[4]*n+o[8]*i+o[12]*r,this.y=o[1]*e+o[5]*n+o[9]*i+o[13]*r,this.z=o[2]*e+o[6]*n+o[10]*i+o[14]*r,this.w=o[3]*e+o[7]*n+o[11]*i+o[15]*r,this}divideScalar(t){return this.multiplyScalar(1/t)}setAxisAngleFromQuaternion(t){this.w=2*Math.acos(t.w);const e=Math.sqrt(1-t.w*t.w);return e<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this}setAxisAngleFromRotationMatrix(t){let e,n,i,r;const o=.01,a=.1,s=t.elements,l=s[0],c=s[4],u=s[8],d=s[1],h=s[5],p=s[9],f=s[2],m=s[6],v=s[10];if(Math.abs(c-d)<o&&Math.abs(u-f)<o&&Math.abs(p-m)<o){if(Math.abs(c+d)<a&&Math.abs(u+f)<a&&Math.abs(p+m)<a&&Math.abs(l+h+v-3)<a)return this.set(1,0,0,0),this;e=Math.PI;const t=(l+1)/2,s=(h+1)/2,g=(v+1)/2,b=(c+d)/4,y=(u+f)/4,_=(p+m)/4;return t>s&&t>g?t<o?(n=0,i=.707106781,r=.707106781):(n=Math.sqrt(t),i=b/n,r=y/n):s>g?s<o?(n=.707106781,i=0,r=.707106781):(i=Math.sqrt(s),n=b/i,r=_/i):g<o?(n=.707106781,i=.707106781,r=0):(r=Math.sqrt(g),n=y/r,i=_/r),this.set(n,i,r,e),this}let g=Math.sqrt((m-p)*(m-p)+(u-f)*(u-f)+(d-c)*(d-c));return Math.abs(g)<.001&&(g=1),this.x=(m-p)/g,this.y=(u-f)/g,this.z=(d-c)/g,this.w=Math.acos((l+h+v-1)/2),this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this.w=Math.min(this.w,t.w),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this.w=Math.max(this.w,t.w),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this.w=Math.max(t.w,Math.min(e.w,this.w)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this.w=Math.max(t,Math.min(e,this.w)),this}clampLength(t,e){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this.w+=(t.w-this.w)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this.z=t.z+(e.z-t.z)*n,this.w=t.w+(e.w-t.w)*n,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this.w=t.getW(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class Te extends Ht{constructor(t=1,e=1,n={}){super(),this.isRenderTarget=!0,this.width=t,this.height=e,this.depth=1,this.scissor=new Ee(0,0,t,e),this.scissorTest=!1,this.viewport=new Ee(0,0,t,e);const i={width:t,height:e,depth:1};void 0!==n.encoding&&(ue("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."),n.colorSpace=n.encoding===yt?wt:_t),n=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:X,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0},n),this.texture=new Se(i,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.flipY=!1,this.texture.generateMipmaps=n.generateMipmaps,this.texture.internalFormat=n.internalFormat,this.depthBuffer=n.depthBuffer,this.stencilBuffer=n.stencilBuffer,this.depthTexture=n.depthTexture,this.samples=n.samples}setSize(t,e,n=1){this.width===t&&this.height===e&&this.depth===n||(this.width=t,this.height=e,this.depth=n,this.texture.image.width=t,this.texture.image.height=e,this.texture.image.depth=n,this.dispose()),this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e)}clone(){return(new this.constructor).copy(this)}copy(t){this.width=t.width,this.height=t.height,this.depth=t.depth,this.scissor.copy(t.scissor),this.scissorTest=t.scissorTest,this.viewport.copy(t.viewport),this.texture=t.texture.clone(),this.texture.isRenderTargetTexture=!0;const e=Object.assign({},t.texture.image);return this.texture.source=new we(e),this.depthBuffer=t.depthBuffer,this.stencilBuffer=t.stencilBuffer,null!==t.depthTexture&&(this.depthTexture=t.depthTexture.clone()),this.samples=t.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class Oe extends Te{constructor(t=1,e=1,n={}){super(t,e,n),this.isWebGLRenderTarget=!0}}class ke extends Se{constructor(t=null,e=1,n=1,i=1){super(null),this.isDataArrayTexture=!0,this.image={data:t,width:e,height:n,depth:i},this.magFilter=q,this.minFilter=q,this.wrapR=V,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Ae extends Se{constructor(t=null,e=1,n=1,i=1){super(null),this.isData3DTexture=!0,this.image={data:t,width:e,height:n,depth:i},this.magFilter=q,this.minFilter=q,this.wrapR=V,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Pe{constructor(t=0,e=0,n=0,i=1){this.isQuaternion=!0,this._x=t,this._y=e,this._z=n,this._w=i}static slerpFlat(t,e,n,i,r,o,a){let s=n[i+0],l=n[i+1],c=n[i+2],u=n[i+3];const d=r[o+0],h=r[o+1],p=r[o+2],f=r[o+3];if(0===a)return t[e+0]=s,t[e+1]=l,t[e+2]=c,void(t[e+3]=u);if(1===a)return t[e+0]=d,t[e+1]=h,t[e+2]=p,void(t[e+3]=f);if(u!==f||s!==d||l!==h||c!==p){let t=1-a;const e=s*d+l*h+c*p+u*f,n=e>=0?1:-1,i=1-e*e;if(i>Number.EPSILON){const r=Math.sqrt(i),o=Math.atan2(r,e*n);t=Math.sin(t*o)/r,a=Math.sin(a*o)/r}const r=a*n;if(s=s*t+d*r,l=l*t+h*r,c=c*t+p*r,u=u*t+f*r,t===1-a){const t=1/Math.sqrt(s*s+l*l+c*c+u*u);s*=t,l*=t,c*=t,u*=t}}t[e]=s,t[e+1]=l,t[e+2]=c,t[e+3]=u}static multiplyQuaternionsFlat(t,e,n,i,r,o){const a=n[i],s=n[i+1],l=n[i+2],c=n[i+3],u=r[o],d=r[o+1],h=r[o+2],p=r[o+3];return t[e]=a*p+c*u+s*h-l*d,t[e+1]=s*p+c*d+l*u-a*h,t[e+2]=l*p+c*h+a*d-s*u,t[e+3]=c*p-a*u-s*d-l*h,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,e,n,i){return this._x=t,this._y=e,this._z=n,this._w=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,e=!0){const n=t._x,i=t._y,r=t._z,o=t._order,a=Math.cos,s=Math.sin,l=a(n/2),c=a(i/2),u=a(r/2),d=s(n/2),h=s(i/2),p=s(r/2);switch(o){case"XYZ":this._x=d*c*u+l*h*p,this._y=l*h*u-d*c*p,this._z=l*c*p+d*h*u,this._w=l*c*u-d*h*p;break;case"YXZ":this._x=d*c*u+l*h*p,this._y=l*h*u-d*c*p,this._z=l*c*p-d*h*u,this._w=l*c*u+d*h*p;break;case"ZXY":this._x=d*c*u-l*h*p,this._y=l*h*u+d*c*p,this._z=l*c*p+d*h*u,this._w=l*c*u-d*h*p;break;case"ZYX":this._x=d*c*u-l*h*p,this._y=l*h*u+d*c*p,this._z=l*c*p-d*h*u,this._w=l*c*u+d*h*p;break;case"YZX":this._x=d*c*u+l*h*p,this._y=l*h*u+d*c*p,this._z=l*c*p-d*h*u,this._w=l*c*u-d*h*p;break;case"XZY":this._x=d*c*u-l*h*p,this._y=l*h*u-d*c*p,this._z=l*c*p+d*h*u,this._w=l*c*u+d*h*p;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return!0===e&&this._onChangeCallback(),this}setFromAxisAngle(t,e){const n=e/2,i=Math.sin(n);return this._x=t.x*i,this._y=t.y*i,this._z=t.z*i,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(t){const e=t.elements,n=e[0],i=e[4],r=e[8],o=e[1],a=e[5],s=e[9],l=e[2],c=e[6],u=e[10],d=n+a+u;if(d>0){const t=.5/Math.sqrt(d+1);this._w=.25/t,this._x=(c-s)*t,this._y=(r-l)*t,this._z=(o-i)*t}else if(n>a&&n>u){const t=2*Math.sqrt(1+n-a-u);this._w=(c-s)/t,this._x=.25*t,this._y=(i+o)/t,this._z=(r+l)/t}else if(a>u){const t=2*Math.sqrt(1+a-n-u);this._w=(r-l)/t,this._x=(i+o)/t,this._y=.25*t,this._z=(s+c)/t}else{const t=2*Math.sqrt(1+u-n-a);this._w=(o-i)/t,this._x=(r+l)/t,this._y=(s+c)/t,this._z=.25*t}return this._onChangeCallback(),this}setFromUnitVectors(t,e){let n=t.dot(e)+1;return n<Number.EPSILON?(n=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=n):(this._x=0,this._y=-t.z,this._z=t.y,this._w=n)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=n),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(Xt(this.dot(t),-1,1)))}rotateTowards(t,e){const n=this.angleTo(t);if(0===n)return this;const i=Math.min(1,e/n);return this.slerp(t,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return 0===t?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t){return this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,e){const n=t._x,i=t._y,r=t._z,o=t._w,a=e._x,s=e._y,l=e._z,c=e._w;return this._x=n*c+o*a+i*l-r*s,this._y=i*c+o*s+r*a-n*l,this._z=r*c+o*l+n*s-i*a,this._w=o*c-n*a-i*s-r*l,this._onChangeCallback(),this}slerp(t,e){if(0===e)return this;if(1===e)return this.copy(t);const n=this._x,i=this._y,r=this._z,o=this._w;let a=o*t._w+n*t._x+i*t._y+r*t._z;if(a<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,a=-a):this.copy(t),a>=1)return this._w=o,this._x=n,this._y=i,this._z=r,this;const s=1-a*a;if(s<=Number.EPSILON){const t=1-e;return this._w=t*o+e*this._w,this._x=t*n+e*this._x,this._y=t*i+e*this._y,this._z=t*r+e*this._z,this.normalize(),this}const l=Math.sqrt(s),c=Math.atan2(l,a),u=Math.sin((1-e)*c)/l,d=Math.sin(e*c)/l;return this._w=o*u+this._w*d,this._x=n*u+this._x*d,this._y=i*u+this._y*d,this._z=r*u+this._z*d,this._onChangeCallback(),this}slerpQuaternions(t,e,n){return this.copy(t).slerp(e,n)}random(){const t=Math.random(),e=Math.sqrt(1-t),n=Math.sqrt(t),i=2*Math.PI*Math.random(),r=2*Math.PI*Math.random();return this.set(e*Math.cos(i),n*Math.sin(r),n*Math.cos(r),e*Math.sin(i))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,e=0){return this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t}fromBufferAttribute(t,e){return this._x=t.getX(e),this._y=t.getY(e),this._z=t.getZ(e),this._w=t.getW(e),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class Me{constructor(t=0,e=0,n=0){Me.prototype.isVector3=!0,this.x=t,this.y=e,this.z=n}set(t,e,n){return void 0===n&&(n=this.z),this.x=t,this.y=e,this.z=n,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this}applyEuler(t){return this.applyQuaternion(De.setFromEuler(t))}applyAxisAngle(t,e){return this.applyQuaternion(De.setFromAxisAngle(t,e))}applyMatrix3(t){const e=this.x,n=this.y,i=this.z,r=t.elements;return this.x=r[0]*e+r[3]*n+r[6]*i,this.y=r[1]*e+r[4]*n+r[7]*i,this.z=r[2]*e+r[5]*n+r[8]*i,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){const e=this.x,n=this.y,i=this.z,r=t.elements,o=1/(r[3]*e+r[7]*n+r[11]*i+r[15]);return this.x=(r[0]*e+r[4]*n+r[8]*i+r[12])*o,this.y=(r[1]*e+r[5]*n+r[9]*i+r[13])*o,this.z=(r[2]*e+r[6]*n+r[10]*i+r[14])*o,this}applyQuaternion(t){const e=this.x,n=this.y,i=this.z,r=t.x,o=t.y,a=t.z,s=t.w,l=2*(o*i-a*n),c=2*(a*e-r*i),u=2*(r*n-o*e);return this.x=e+s*l+o*u-a*c,this.y=n+s*c+a*l-r*u,this.z=i+s*u+r*c-o*l,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){const e=this.x,n=this.y,i=this.z,r=t.elements;return this.x=r[0]*e+r[4]*n+r[8]*i,this.y=r[1]*e+r[5]*n+r[9]*i,this.z=r[2]*e+r[6]*n+r[10]*i,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this}clampLength(t,e){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this.z=t.z+(e.z-t.z)*n,this}cross(t){return this.crossVectors(this,t)}crossVectors(t,e){const n=t.x,i=t.y,r=t.z,o=e.x,a=e.y,s=e.z;return this.x=i*s-r*a,this.y=r*o-n*s,this.z=n*a-i*o,this}projectOnVector(t){const e=t.lengthSq();if(0===e)return this.set(0,0,0);const n=t.dot(this)/e;return this.copy(t).multiplyScalar(n)}projectOnPlane(t){return Le.copy(this).projectOnVector(t),this.sub(Le)}reflect(t){return this.sub(Le.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(0===e)return Math.PI/2;const n=this.dot(t)/e;return Math.acos(Xt(n,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,n=this.y-t.y,i=this.z-t.z;return e*e+n*n+i*i}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,e,n){const i=Math.sin(e)*t;return this.x=i*Math.sin(n),this.y=Math.cos(e)*t,this.z=i*Math.cos(n),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,e,n){return this.x=t*Math.sin(e),this.y=n,this.z=t*Math.cos(e),this}setFromMatrixPosition(t){const e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this}setFromMatrixScale(t){const e=this.setFromMatrixColumn(t,0).length(),n=this.setFromMatrixColumn(t,1).length(),i=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=n,this.z=i,this}setFromMatrixColumn(t,e){return this.fromArray(t.elements,4*e)}setFromMatrix3Column(t,e){return this.fromArray(t.elements,3*e)}setFromEuler(t){return this.x=t._x,this.y=t._y,this.z=t._z,this}setFromColor(t){return this.x=t.r,this.y=t.g,this.z=t.b,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const t=2*(Math.random()-.5),e=Math.random()*Math.PI*2,n=Math.sqrt(1-t**2);return this.x=n*Math.cos(e),this.y=n*Math.sin(e),this.z=t,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Le=new Me,De=new Pe;class Re{constructor(t=new Me(1/0,1/0,1/0),e=new Me(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=t,this.max=e}set(t,e){return this.min.copy(t),this.max.copy(e),this}setFromArray(t){this.makeEmpty();for(let e=0,n=t.length;e<n;e+=3)this.expandByPoint(je.fromArray(t,e));return this}setFromBufferAttribute(t){this.makeEmpty();for(let e=0,n=t.count;e<n;e++)this.expandByPoint(je.fromBufferAttribute(t,e));return this}setFromPoints(t){this.makeEmpty();for(let e=0,n=t.length;e<n;e++)this.expandByPoint(t[e]);return this}setFromCenterAndSize(t,e){const n=je.copy(e).multiplyScalar(.5);return this.min.copy(t).sub(n),this.max.copy(t).add(n),this}setFromObject(t,e=!1){return this.makeEmpty(),this.expandByObject(t,e)}clone(){return(new this.constructor).copy(this)}copy(t){return this.min.copy(t.min),this.max.copy(t.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(t){return this.isEmpty()?t.set(0,0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(t){return this.isEmpty()?t.set(0,0,0):t.subVectors(this.max,this.min)}expandByPoint(t){return this.min.min(t),this.max.max(t),this}expandByVector(t){return this.min.sub(t),this.max.add(t),this}expandByScalar(t){return this.min.addScalar(-t),this.max.addScalar(t),this}expandByObject(t,e=!1){t.updateWorldMatrix(!1,!1);const n=t.geometry;if(void 0!==n){const i=n.getAttribute("position");if(!0===e&&void 0!==i&&!0!==t.isInstancedMesh)for(let e=0,n=i.count;e<n;e++)!0===t.isMesh?t.getVertexPosition(e,je):je.fromBufferAttribute(i,e),je.applyMatrix4(t.matrixWorld),this.expandByPoint(je);else void 0!==t.boundingBox?(null===t.boundingBox&&t.computeBoundingBox(),Ne.copy(t.boundingBox)):(null===n.boundingBox&&n.computeBoundingBox(),Ne.copy(n.boundingBox)),Ne.applyMatrix4(t.matrixWorld),this.union(Ne)}const i=t.children;for(let t=0,n=i.length;t<n;t++)this.expandByObject(i[t],e);return this}containsPoint(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y||t.z<this.min.z||t.z>this.max.z)}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z}getParameter(t,e){return e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y||t.max.z<this.min.z||t.min.z>this.max.z)}intersectsSphere(t){return this.clampPoint(t.center,je),je.distanceToSquared(t.center)<=t.radius*t.radius}intersectsPlane(t){let e,n;return t.normal.x>0?(e=t.normal.x*this.min.x,n=t.normal.x*this.max.x):(e=t.normal.x*this.max.x,n=t.normal.x*this.min.x),t.normal.y>0?(e+=t.normal.y*this.min.y,n+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,n+=t.normal.y*this.min.y),t.normal.z>0?(e+=t.normal.z*this.min.z,n+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,n+=t.normal.z*this.min.z),e<=-t.constant&&n>=-t.constant}intersectsTriangle(t){if(this.isEmpty())return!1;this.getCenter(Ve),Ye.subVectors(this.max,Ve),Fe.subVectors(t.a,Ve),ze.subVectors(t.b,Ve),Be.subVectors(t.c,Ve),$e.subVectors(ze,Fe),Ue.subVectors(Be,ze),He.subVectors(Fe,Be);let e=[0,-$e.z,$e.y,0,-Ue.z,Ue.y,0,-He.z,He.y,$e.z,0,-$e.x,Ue.z,0,-Ue.x,He.z,0,-He.x,-$e.y,$e.x,0,-Ue.y,Ue.x,0,-He.y,He.x,0];return!!Ge(e,Fe,ze,Be,Ye)&&(e=[1,0,0,0,1,0,0,0,1],!!Ge(e,Fe,ze,Be,Ye)&&(qe.crossVectors($e,Ue),e=[qe.x,qe.y,qe.z],Ge(e,Fe,ze,Be,Ye)))}clampPoint(t,e){return e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return this.clampPoint(t,je).distanceTo(t)}getBoundingSphere(t){return this.isEmpty()?t.makeEmpty():(this.getCenter(t.center),t.radius=.5*this.getSize(je).length()),t}intersect(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}applyMatrix4(t){return this.isEmpty()||(Ie[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),Ie[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),Ie[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),Ie[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),Ie[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),Ie[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),Ie[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),Ie[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(Ie)),this}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}const Ie=[new Me,new Me,new Me,new Me,new Me,new Me,new Me,new Me],je=new Me,Ne=new Re,Fe=new Me,ze=new Me,Be=new Me,$e=new Me,Ue=new Me,He=new Me,Ve=new Me,Ye=new Me,qe=new Me,We=new Me;function Ge(t,e,n,i,r){for(let o=0,a=t.length-3;o<=a;o+=3){We.fromArray(t,o);const a=r.x*Math.abs(We.x)+r.y*Math.abs(We.y)+r.z*Math.abs(We.z),s=e.dot(We),l=n.dot(We),c=i.dot(We);if(Math.max(-Math.max(s,l,c),Math.min(s,l,c))>a)return!1}return!0}const Xe=new Re,Ke=new Me,Ze=new Me;class Je{constructor(t=new Me,e=-1){this.isSphere=!0,this.center=t,this.radius=e}set(t,e){return this.center.copy(t),this.radius=e,this}setFromPoints(t,e){const n=this.center;void 0!==e?n.copy(e):Xe.setFromPoints(t).getCenter(n);let i=0;for(let e=0,r=t.length;e<r;e++)i=Math.max(i,n.distanceToSquared(t[e]));return this.radius=Math.sqrt(i),this}copy(t){return this.center.copy(t.center),this.radius=t.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(t){return t.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(t){return t.distanceTo(this.center)-this.radius}intersectsSphere(t){const e=this.radius+t.radius;return t.center.distanceToSquared(this.center)<=e*e}intersectsBox(t){return t.intersectsSphere(this)}intersectsPlane(t){return Math.abs(t.distanceToPoint(this.center))<=this.radius}clampPoint(t,e){const n=this.center.distanceToSquared(t);return e.copy(t),n>this.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e}getBoundingBox(t){return this.isEmpty()?(t.makeEmpty(),t):(t.set(this.center,this.center),t.expandByScalar(this.radius),t)}applyMatrix4(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this}translate(t){return this.center.add(t),this}expandByPoint(t){if(this.isEmpty())return this.center.copy(t),this.radius=0,this;Ke.subVectors(t,this.center);const e=Ke.lengthSq();if(e>this.radius*this.radius){const t=Math.sqrt(e),n=.5*(t-this.radius);this.center.addScaledVector(Ke,n/t),this.radius+=n}return this}union(t){return t.isEmpty()?this:this.isEmpty()?(this.copy(t),this):(!0===this.center.equals(t.center)?this.radius=Math.max(this.radius,t.radius):(Ze.subVectors(t.center,this.center).setLength(t.radius),this.expandByPoint(Ke.copy(t.center).add(Ze)),this.expandByPoint(Ke.copy(t.center).sub(Ze))),this)}equals(t){return t.center.equals(this.center)&&t.radius===this.radius}clone(){return(new this.constructor).copy(this)}}const Qe=new Me,tn=new Me,en=new Me,nn=new Me,rn=new Me,on=new Me,an=new Me;class sn{constructor(t=new Me,e=new Me(0,0,-1)){this.origin=t,this.direction=e}set(t,e){return this.origin.copy(t),this.direction.copy(e),this}copy(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this}at(t,e){return e.copy(this.origin).addScaledVector(this.direction,t)}lookAt(t){return this.direction.copy(t).sub(this.origin).normalize(),this}recast(t){return this.origin.copy(this.at(t,Qe)),this}closestPointToPoint(t,e){e.subVectors(t,this.origin);const n=e.dot(this.direction);return n<0?e.copy(this.origin):e.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(t){return Math.sqrt(this.distanceSqToPoint(t))}distanceSqToPoint(t){const e=Qe.subVectors(t,this.origin).dot(this.direction);return e<0?this.origin.distanceToSquared(t):(Qe.copy(this.origin).addScaledVector(this.direction,e),Qe.distanceToSquared(t))}distanceSqToSegment(t,e,n,i){tn.copy(t).add(e).multiplyScalar(.5),en.copy(e).sub(t).normalize(),nn.copy(this.origin).sub(tn);const r=.5*t.distanceTo(e),o=-this.direction.dot(en),a=nn.dot(this.direction),s=-nn.dot(en),l=nn.lengthSq(),c=Math.abs(1-o*o);let u,d,h,p;if(c>0)if(u=o*s-a,d=o*a-s,p=r*c,u>=0)if(d>=-p)if(d<=p){const t=1/c;u*=t,d*=t,h=u*(u+o*d+2*a)+d*(o*u+d+2*s)+l}else d=r,u=Math.max(0,-(o*d+a)),h=-u*u+d*(d+2*s)+l;else d=-r,u=Math.max(0,-(o*d+a)),h=-u*u+d*(d+2*s)+l;else d<=-p?(u=Math.max(0,-(-o*r+a)),d=u>0?-r:Math.min(Math.max(-r,-s),r),h=-u*u+d*(d+2*s)+l):d<=p?(u=0,d=Math.min(Math.max(-r,-s),r),h=d*(d+2*s)+l):(u=Math.max(0,-(o*r+a)),d=u>0?r:Math.min(Math.max(-r,-s),r),h=-u*u+d*(d+2*s)+l);else d=o>0?-r:r,u=Math.max(0,-(o*d+a)),h=-u*u+d*(d+2*s)+l;return n&&n.copy(this.origin).addScaledVector(this.direction,u),i&&i.copy(tn).addScaledVector(en,d),h}intersectSphere(t,e){Qe.subVectors(t.center,this.origin);const n=Qe.dot(this.direction),i=Qe.dot(Qe)-n*n,r=t.radius*t.radius;if(i>r)return null;const o=Math.sqrt(r-i),a=n-o,s=n+o;return s<0?null:a<0?this.at(s,e):this.at(a,e)}intersectsSphere(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius}distanceToPlane(t){const e=t.normal.dot(this.direction);if(0===e)return 0===t.distanceToPoint(this.origin)?0:null;const n=-(this.origin.dot(t.normal)+t.constant)/e;return n>=0?n:null}intersectPlane(t,e){const n=this.distanceToPlane(t);return null===n?null:this.at(n,e)}intersectsPlane(t){const e=t.distanceToPoint(this.origin);if(0===e)return!0;return t.normal.dot(this.direction)*e<0}intersectBox(t,e){let n,i,r,o,a,s;const l=1/this.direction.x,c=1/this.direction.y,u=1/this.direction.z,d=this.origin;return l>=0?(n=(t.min.x-d.x)*l,i=(t.max.x-d.x)*l):(n=(t.max.x-d.x)*l,i=(t.min.x-d.x)*l),c>=0?(r=(t.min.y-d.y)*c,o=(t.max.y-d.y)*c):(r=(t.max.y-d.y)*c,o=(t.min.y-d.y)*c),n>o||r>i?null:((r>n||isNaN(n))&&(n=r),(o<i||isNaN(i))&&(i=o),u>=0?(a=(t.min.z-d.z)*u,s=(t.max.z-d.z)*u):(a=(t.max.z-d.z)*u,s=(t.min.z-d.z)*u),n>s||a>i?null:((a>n||n!=n)&&(n=a),(s<i||i!=i)&&(i=s),i<0?null:this.at(n>=0?n:i,e)))}intersectsBox(t){return null!==this.intersectBox(t,Qe)}intersectTriangle(t,e,n,i,r){rn.subVectors(e,t),on.subVectors(n,t),an.crossVectors(rn,on);let o,a=this.direction.dot(an);if(a>0){if(i)return null;o=1}else{if(!(a<0))return null;o=-1,a=-a}nn.subVectors(this.origin,t);const s=o*this.direction.dot(on.crossVectors(nn,on));if(s<0)return null;const l=o*this.direction.dot(rn.cross(nn));if(l<0)return null;if(s+l>a)return null;const c=-o*nn.dot(an);return c<0?null:this.at(c/a,r)}applyMatrix4(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this}equals(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}clone(){return(new this.constructor).copy(this)}}class ln{constructor(t,e,n,i,r,o,a,s,l,c,u,d,h,p,f,m){ln.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],void 0!==t&&this.set(t,e,n,i,r,o,a,s,l,c,u,d,h,p,f,m)}set(t,e,n,i,r,o,a,s,l,c,u,d,h,p,f,m){const v=this.elements;return v[0]=t,v[4]=e,v[8]=n,v[12]=i,v[1]=r,v[5]=o,v[9]=a,v[13]=s,v[2]=l,v[6]=c,v[10]=u,v[14]=d,v[3]=h,v[7]=p,v[11]=f,v[15]=m,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return(new ln).fromArray(this.elements)}copy(t){const e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],e[9]=n[9],e[10]=n[10],e[11]=n[11],e[12]=n[12],e[13]=n[13],e[14]=n[14],e[15]=n[15],this}copyPosition(t){const e=this.elements,n=t.elements;return e[12]=n[12],e[13]=n[13],e[14]=n[14],this}setFromMatrix3(t){const e=t.elements;return this.set(e[0],e[3],e[6],0,e[1],e[4],e[7],0,e[2],e[5],e[8],0,0,0,0,1),this}extractBasis(t,e,n){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(t,e,n){return this.set(t.x,e.x,n.x,0,t.y,e.y,n.y,0,t.z,e.z,n.z,0,0,0,0,1),this}extractRotation(t){const e=this.elements,n=t.elements,i=1/cn.setFromMatrixColumn(t,0).length(),r=1/cn.setFromMatrixColumn(t,1).length(),o=1/cn.setFromMatrixColumn(t,2).length();return e[0]=n[0]*i,e[1]=n[1]*i,e[2]=n[2]*i,e[3]=0,e[4]=n[4]*r,e[5]=n[5]*r,e[6]=n[6]*r,e[7]=0,e[8]=n[8]*o,e[9]=n[9]*o,e[10]=n[10]*o,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromEuler(t){const e=this.elements,n=t.x,i=t.y,r=t.z,o=Math.cos(n),a=Math.sin(n),s=Math.cos(i),l=Math.sin(i),c=Math.cos(r),u=Math.sin(r);if("XYZ"===t.order){const t=o*c,n=o*u,i=a*c,r=a*u;e[0]=s*c,e[4]=-s*u,e[8]=l,e[1]=n+i*l,e[5]=t-r*l,e[9]=-a*s,e[2]=r-t*l,e[6]=i+n*l,e[10]=o*s}else if("YXZ"===t.order){const t=s*c,n=s*u,i=l*c,r=l*u;e[0]=t+r*a,e[4]=i*a-n,e[8]=o*l,e[1]=o*u,e[5]=o*c,e[9]=-a,e[2]=n*a-i,e[6]=r+t*a,e[10]=o*s}else if("ZXY"===t.order){const t=s*c,n=s*u,i=l*c,r=l*u;e[0]=t-r*a,e[4]=-o*u,e[8]=i+n*a,e[1]=n+i*a,e[5]=o*c,e[9]=r-t*a,e[2]=-o*l,e[6]=a,e[10]=o*s}else if("ZYX"===t.order){const t=o*c,n=o*u,i=a*c,r=a*u;e[0]=s*c,e[4]=i*l-n,e[8]=t*l+r,e[1]=s*u,e[5]=r*l+t,e[9]=n*l-i,e[2]=-l,e[6]=a*s,e[10]=o*s}else if("YZX"===t.order){const t=o*s,n=o*l,i=a*s,r=a*l;e[0]=s*c,e[4]=r-t*u,e[8]=i*u+n,e[1]=u,e[5]=o*c,e[9]=-a*c,e[2]=-l*c,e[6]=n*u+i,e[10]=t-r*u}else if("XZY"===t.order){const t=o*s,n=o*l,i=a*s,r=a*l;e[0]=s*c,e[4]=-u,e[8]=l*c,e[1]=t*u+r,e[5]=o*c,e[9]=n*u-i,e[2]=i*u-n,e[6]=a*c,e[10]=r*u+t}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromQuaternion(t){return this.compose(dn,t,hn)}lookAt(t,e,n){const i=this.elements;return mn.subVectors(t,e),0===mn.lengthSq()&&(mn.z=1),mn.normalize(),pn.crossVectors(n,mn),0===pn.lengthSq()&&(1===Math.abs(n.z)?mn.x+=1e-4:mn.z+=1e-4,mn.normalize(),pn.crossVectors(n,mn)),pn.normalize(),fn.crossVectors(mn,pn),i[0]=pn.x,i[4]=fn.x,i[8]=mn.x,i[1]=pn.y,i[5]=fn.y,i[9]=mn.y,i[2]=pn.z,i[6]=fn.z,i[10]=mn.z,this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const n=t.elements,i=e.elements,r=this.elements,o=n[0],a=n[4],s=n[8],l=n[12],c=n[1],u=n[5],d=n[9],h=n[13],p=n[2],f=n[6],m=n[10],v=n[14],g=n[3],b=n[7],y=n[11],_=n[15],w=i[0],x=i[4],C=i[8],S=i[12],E=i[1],T=i[5],O=i[9],k=i[13],A=i[2],P=i[6],M=i[10],L=i[14],D=i[3],R=i[7],I=i[11],j=i[15];return r[0]=o*w+a*E+s*A+l*D,r[4]=o*x+a*T+s*P+l*R,r[8]=o*C+a*O+s*M+l*I,r[12]=o*S+a*k+s*L+l*j,r[1]=c*w+u*E+d*A+h*D,r[5]=c*x+u*T+d*P+h*R,r[9]=c*C+u*O+d*M+h*I,r[13]=c*S+u*k+d*L+h*j,r[2]=p*w+f*E+m*A+v*D,r[6]=p*x+f*T+m*P+v*R,r[10]=p*C+f*O+m*M+v*I,r[14]=p*S+f*k+m*L+v*j,r[3]=g*w+b*E+y*A+_*D,r[7]=g*x+b*T+y*P+_*R,r[11]=g*C+b*O+y*M+_*I,r[15]=g*S+b*k+y*L+_*j,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this}determinant(){const t=this.elements,e=t[0],n=t[4],i=t[8],r=t[12],o=t[1],a=t[5],s=t[9],l=t[13],c=t[2],u=t[6],d=t[10],h=t[14];return t[3]*(+r*s*u-i*l*u-r*a*d+n*l*d+i*a*h-n*s*h)+t[7]*(+e*s*h-e*l*d+r*o*d-i*o*h+i*l*c-r*s*c)+t[11]*(+e*l*u-e*a*h-r*o*u+n*o*h+r*a*c-n*l*c)+t[15]*(-i*a*c-e*s*u+e*a*d+i*o*u-n*o*d+n*s*c)}transpose(){const t=this.elements;let e;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}setPosition(t,e,n){const i=this.elements;return t.isVector3?(i[12]=t.x,i[13]=t.y,i[14]=t.z):(i[12]=t,i[13]=e,i[14]=n),this}invert(){const t=this.elements,e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],c=t[8],u=t[9],d=t[10],h=t[11],p=t[12],f=t[13],m=t[14],v=t[15],g=u*m*l-f*d*l+f*s*h-a*m*h-u*s*v+a*d*v,b=p*d*l-c*m*l-p*s*h+o*m*h+c*s*v-o*d*v,y=c*f*l-p*u*l+p*a*h-o*f*h-c*a*v+o*u*v,_=p*u*s-c*f*s-p*a*d+o*f*d+c*a*m-o*u*m,w=e*g+n*b+i*y+r*_;if(0===w)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const x=1/w;return t[0]=g*x,t[1]=(f*d*r-u*m*r-f*i*h+n*m*h+u*i*v-n*d*v)*x,t[2]=(a*m*r-f*s*r+f*i*l-n*m*l-a*i*v+n*s*v)*x,t[3]=(u*s*r-a*d*r-u*i*l+n*d*l+a*i*h-n*s*h)*x,t[4]=b*x,t[5]=(c*m*r-p*d*r+p*i*h-e*m*h-c*i*v+e*d*v)*x,t[6]=(p*s*r-o*m*r-p*i*l+e*m*l+o*i*v-e*s*v)*x,t[7]=(o*d*r-c*s*r+c*i*l-e*d*l-o*i*h+e*s*h)*x,t[8]=y*x,t[9]=(p*u*r-c*f*r-p*n*h+e*f*h+c*n*v-e*u*v)*x,t[10]=(o*f*r-p*a*r+p*n*l-e*f*l-o*n*v+e*a*v)*x,t[11]=(c*a*r-o*u*r-c*n*l+e*u*l+o*n*h-e*a*h)*x,t[12]=_*x,t[13]=(c*f*i-p*u*i+p*n*d-e*f*d-c*n*m+e*u*m)*x,t[14]=(p*a*i-o*f*i-p*n*s+e*f*s+o*n*m-e*a*m)*x,t[15]=(o*u*i-c*a*i+c*n*s-e*u*s-o*n*d+e*a*d)*x,this}scale(t){const e=this.elements,n=t.x,i=t.y,r=t.z;return e[0]*=n,e[4]*=i,e[8]*=r,e[1]*=n,e[5]*=i,e[9]*=r,e[2]*=n,e[6]*=i,e[10]*=r,e[3]*=n,e[7]*=i,e[11]*=r,this}getMaxScaleOnAxis(){const t=this.elements,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],i=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,n,i))}makeTranslation(t,e,n){return t.isVector3?this.set(1,0,0,t.x,0,1,0,t.y,0,0,1,t.z,0,0,0,1):this.set(1,0,0,t,0,1,0,e,0,0,1,n,0,0,0,1),this}makeRotationX(t){const e=Math.cos(t),n=Math.sin(t);return this.set(1,0,0,0,0,e,-n,0,0,n,e,0,0,0,0,1),this}makeRotationY(t){const e=Math.cos(t),n=Math.sin(t);return this.set(e,0,n,0,0,1,0,0,-n,0,e,0,0,0,0,1),this}makeRotationZ(t){const e=Math.cos(t),n=Math.sin(t);return this.set(e,-n,0,0,n,e,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,e){const n=Math.cos(e),i=Math.sin(e),r=1-n,o=t.x,a=t.y,s=t.z,l=r*o,c=r*a;return this.set(l*o+n,l*a-i*s,l*s+i*a,0,l*a+i*s,c*a+n,c*s-i*o,0,l*s-i*a,c*s+i*o,r*s*s+n,0,0,0,0,1),this}makeScale(t,e,n){return this.set(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1),this}makeShear(t,e,n,i,r,o){return this.set(1,n,r,0,t,1,o,0,e,i,1,0,0,0,0,1),this}compose(t,e,n){const i=this.elements,r=e._x,o=e._y,a=e._z,s=e._w,l=r+r,c=o+o,u=a+a,d=r*l,h=r*c,p=r*u,f=o*c,m=o*u,v=a*u,g=s*l,b=s*c,y=s*u,_=n.x,w=n.y,x=n.z;return i[0]=(1-(f+v))*_,i[1]=(h+y)*_,i[2]=(p-b)*_,i[3]=0,i[4]=(h-y)*w,i[5]=(1-(d+v))*w,i[6]=(m+g)*w,i[7]=0,i[8]=(p+b)*x,i[9]=(m-g)*x,i[10]=(1-(d+f))*x,i[11]=0,i[12]=t.x,i[13]=t.y,i[14]=t.z,i[15]=1,this}decompose(t,e,n){const i=this.elements;let r=cn.set(i[0],i[1],i[2]).length();const o=cn.set(i[4],i[5],i[6]).length(),a=cn.set(i[8],i[9],i[10]).length();this.determinant()<0&&(r=-r),t.x=i[12],t.y=i[13],t.z=i[14],un.copy(this);const s=1/r,l=1/o,c=1/a;return un.elements[0]*=s,un.elements[1]*=s,un.elements[2]*=s,un.elements[4]*=l,un.elements[5]*=l,un.elements[6]*=l,un.elements[8]*=c,un.elements[9]*=c,un.elements[10]*=c,e.setFromRotationMatrix(un),n.x=r,n.y=o,n.z=a,this}makePerspective(t,e,n,i,r,o,a=2e3){const s=this.elements,l=2*r/(e-t),c=2*r/(n-i),u=(e+t)/(e-t),d=(n+i)/(n-i);let h,p;if(a===$t)h=-(o+r)/(o-r),p=-2*o*r/(o-r);else{if(a!==Ut)throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);h=-o/(o-r),p=-o*r/(o-r)}return s[0]=l,s[4]=0,s[8]=u,s[12]=0,s[1]=0,s[5]=c,s[9]=d,s[13]=0,s[2]=0,s[6]=0,s[10]=h,s[14]=p,s[3]=0,s[7]=0,s[11]=-1,s[15]=0,this}makeOrthographic(t,e,n,i,r,o,a=2e3){const s=this.elements,l=1/(e-t),c=1/(n-i),u=1/(o-r),d=(e+t)*l,h=(n+i)*c;let p,f;if(a===$t)p=(o+r)*u,f=-2*u;else{if(a!==Ut)throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);p=r*u,f=-1*u}return s[0]=2*l,s[4]=0,s[8]=0,s[12]=-d,s[1]=0,s[5]=2*c,s[9]=0,s[13]=-h,s[2]=0,s[6]=0,s[10]=f,s[14]=-p,s[3]=0,s[7]=0,s[11]=0,s[15]=1,this}equals(t){const e=this.elements,n=t.elements;for(let t=0;t<16;t++)if(e[t]!==n[t])return!1;return!0}fromArray(t,e=0){for(let n=0;n<16;n++)this.elements[n]=t[n+e];return this}toArray(t=[],e=0){const n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t[e+9]=n[9],t[e+10]=n[10],t[e+11]=n[11],t[e+12]=n[12],t[e+13]=n[13],t[e+14]=n[14],t[e+15]=n[15],t}}const cn=new Me,un=new ln,dn=new Me(0,0,0),hn=new Me(1,1,1),pn=new Me,fn=new Me,mn=new Me,vn=new ln,gn=new Pe;class bn{constructor(t=0,e=0,n=0,i=bn.DEFAULT_ORDER){this.isEuler=!0,this._x=t,this._y=e,this._z=n,this._order=i}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get order(){return this._order}set order(t){this._order=t,this._onChangeCallback()}set(t,e,n,i=this._order){return this._x=t,this._y=e,this._z=n,this._order=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this}setFromRotationMatrix(t,e=this._order,n=!0){const i=t.elements,r=i[0],o=i[4],a=i[8],s=i[1],l=i[5],c=i[9],u=i[2],d=i[6],h=i[10];switch(e){case"XYZ":this._y=Math.asin(Xt(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-c,h),this._z=Math.atan2(-o,r)):(this._x=Math.atan2(d,l),this._z=0);break;case"YXZ":this._x=Math.asin(-Xt(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(a,h),this._z=Math.atan2(s,l)):(this._y=Math.atan2(-u,r),this._z=0);break;case"ZXY":this._x=Math.asin(Xt(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-u,h),this._z=Math.atan2(-o,l)):(this._y=0,this._z=Math.atan2(s,r));break;case"ZYX":this._y=Math.asin(-Xt(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(d,h),this._z=Math.atan2(s,r)):(this._x=0,this._z=Math.atan2(-o,l));break;case"YZX":this._z=Math.asin(Xt(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-c,l),this._y=Math.atan2(-u,r)):(this._x=0,this._y=Math.atan2(a,h));break;case"XZY":this._z=Math.asin(-Xt(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(d,l),this._y=Math.atan2(a,r)):(this._x=Math.atan2(-c,h),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+e)}return this._order=e,!0===n&&this._onChangeCallback(),this}setFromQuaternion(t,e,n){return vn.makeRotationFromQuaternion(t),this.setFromRotationMatrix(vn,e,n)}setFromVector3(t,e=this._order){return this.set(t.x,t.y,t.z,e)}reorder(t){return gn.setFromEuler(this),this.setFromQuaternion(gn,t)}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order}fromArray(t){return this._x=t[0],this._y=t[1],this._z=t[2],void 0!==t[3]&&(this._order=t[3]),this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}bn.DEFAULT_ORDER="XYZ";class yn{constructor(){this.mask=1}set(t){this.mask=1<<t>>>0}enable(t){this.mask|=1<<t}enableAll(){this.mask=-1}toggle(t){this.mask^=1<<t}disable(t){this.mask&=~(1<<t)}disableAll(){this.mask=0}test(t){return!!(this.mask&t.mask)}isEnabled(t){return!!(this.mask&1<<t)}}let _n=0;const wn=new Me,xn=new Pe,Cn=new ln,Sn=new Me,En=new Me,Tn=new Me,On=new Pe,kn=new Me(1,0,0),An=new Me(0,1,0),Pn=new Me(0,0,1),Mn={type:"added"},Ln={type:"removed"};class Dn extends Ht{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:_n++}),this.uuid=Gt(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=Dn.DEFAULT_UP.clone();const t=new Me,e=new bn,n=new Pe,i=new Me(1,1,1);e._onChange((function(){n.setFromEuler(e,!1)})),n._onChange((function(){e.setFromQuaternion(n,void 0,!1)})),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:e},quaternion:{configurable:!0,enumerable:!0,value:n},scale:{configurable:!0,enumerable:!0,value:i},modelViewMatrix:{value:new ln},normalMatrix:{value:new re}}),this.matrix=new ln,this.matrixWorld=new ln,this.matrixAutoUpdate=Dn.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=Dn.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new yn,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(t){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(t),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(t){return this.quaternion.premultiply(t),this}setRotationFromAxisAngle(t,e){this.quaternion.setFromAxisAngle(t,e)}setRotationFromEuler(t){this.quaternion.setFromEuler(t,!0)}setRotationFromMatrix(t){this.quaternion.setFromRotationMatrix(t)}setRotationFromQuaternion(t){this.quaternion.copy(t)}rotateOnAxis(t,e){return xn.setFromAxisAngle(t,e),this.quaternion.multiply(xn),this}rotateOnWorldAxis(t,e){return xn.setFromAxisAngle(t,e),this.quaternion.premultiply(xn),this}rotateX(t){return this.rotateOnAxis(kn,t)}rotateY(t){return this.rotateOnAxis(An,t)}rotateZ(t){return this.rotateOnAxis(Pn,t)}translateOnAxis(t,e){return wn.copy(t).applyQuaternion(this.quaternion),this.position.add(wn.multiplyScalar(e)),this}translateX(t){return this.translateOnAxis(kn,t)}translateY(t){return this.translateOnAxis(An,t)}translateZ(t){return this.translateOnAxis(Pn,t)}localToWorld(t){return this.updateWorldMatrix(!0,!1),t.applyMatrix4(this.matrixWorld)}worldToLocal(t){return this.updateWorldMatrix(!0,!1),t.applyMatrix4(Cn.copy(this.matrixWorld).invert())}lookAt(t,e,n){t.isVector3?Sn.copy(t):Sn.set(t,e,n);const i=this.parent;this.updateWorldMatrix(!0,!1),En.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?Cn.lookAt(En,Sn,this.up):Cn.lookAt(Sn,En,this.up),this.quaternion.setFromRotationMatrix(Cn),i&&(Cn.extractRotation(i.matrixWorld),xn.setFromRotationMatrix(Cn),this.quaternion.premultiply(xn.invert()))}add(t){if(arguments.length>1){for(let t=0;t<arguments.length;t++)this.add(arguments[t]);return this}return t===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",t),this):(t&&t.isObject3D?(null!==t.parent&&t.parent.remove(t),t.parent=this,this.children.push(t),t.dispatchEvent(Mn)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",t),this)}remove(t){if(arguments.length>1){for(let t=0;t<arguments.length;t++)this.remove(arguments[t]);return this}const e=this.children.indexOf(t);return-1!==e&&(t.parent=null,this.children.splice(e,1),t.dispatchEvent(Ln)),this}removeFromParent(){const t=this.parent;return null!==t&&t.remove(this),this}clear(){return this.remove(...this.children)}attach(t){return this.updateWorldMatrix(!0,!1),Cn.copy(this.matrixWorld).invert(),null!==t.parent&&(t.parent.updateWorldMatrix(!0,!1),Cn.multiply(t.parent.matrixWorld)),t.applyMatrix4(Cn),this.add(t),t.updateWorldMatrix(!1,!0),this}getObjectById(t){return this.getObjectByProperty("id",t)}getObjectByName(t){return this.getObjectByProperty("name",t)}getObjectByProperty(t,e){if(this[t]===e)return this;for(let n=0,i=this.children.length;n<i;n++){const i=this.children[n].getObjectByProperty(t,e);if(void 0!==i)return i}}getObjectsByProperty(t,e,n=[]){this[t]===e&&n.push(this);const i=this.children;for(let r=0,o=i.length;r<o;r++)i[r].getObjectsByProperty(t,e,n);return n}getWorldPosition(t){return this.updateWorldMatrix(!0,!1),t.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(En,t,Tn),t}getWorldScale(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(En,On,t),t}getWorldDirection(t){this.updateWorldMatrix(!0,!1);const e=this.matrixWorld.elements;return t.set(e[8],e[9],e[10]).normalize()}raycast(){}traverse(t){t(this);const e=this.children;for(let n=0,i=e.length;n<i;n++)e[n].traverse(t)}traverseVisible(t){if(!1===this.visible)return;t(this);const e=this.children;for(let n=0,i=e.length;n<i;n++)e[n].traverseVisible(t)}traverseAncestors(t){const e=this.parent;null!==e&&(t(e),e.traverseAncestors(t))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,t=!0);const e=this.children;for(let n=0,i=e.length;n<i;n++){const i=e[n];!0!==i.matrixWorldAutoUpdate&&!0!==t||i.updateMatrixWorld(t)}}updateWorldMatrix(t,e){const n=this.parent;if(!0===t&&null!==n&&!0===n.matrixWorldAutoUpdate&&n.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),!0===e){const t=this.children;for(let e=0,n=t.length;e<n;e++){const n=t[e];!0===n.matrixWorldAutoUpdate&&n.updateWorldMatrix(!1,!0)}}}toJSON(t){const e=void 0===t||"string"==typeof t,n={};e&&(t={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},n.metadata={version:4.6,type:"Object",generator:"Object3D.toJSON"});const i={};function r(e,n){return void 0===e[n.uuid]&&(e[n.uuid]=n.toJSON(t)),n.uuid}if(i.uuid=this.uuid,i.type=this.type,""!==this.name&&(i.name=this.name),!0===this.castShadow&&(i.castShadow=!0),!0===this.receiveShadow&&(i.receiveShadow=!0),!1===this.visible&&(i.visible=!1),!1===this.frustumCulled&&(i.frustumCulled=!1),0!==this.renderOrder&&(i.renderOrder=this.renderOrder),Object.keys(this.userData).length>0&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),i.up=this.up.toArray(),!1===this.matrixAutoUpdate&&(i.matrixAutoUpdate=!1),this.isInstancedMesh&&(i.type="InstancedMesh",i.count=this.count,i.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(i.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(i.type="BatchedMesh",i.perObjectFrustumCulled=this.perObjectFrustumCulled,i.sortObjects=this.sortObjects,i.drawRanges=this._drawRanges,i.reservedRanges=this._reservedRanges,i.visibility=this._visibility,i.active=this._active,i.bounds=this._bounds.map((t=>({boxInitialized:t.boxInitialized,boxMin:t.box.min.toArray(),boxMax:t.box.max.toArray(),sphereInitialized:t.sphereInitialized,sphereRadius:t.sphere.radius,sphereCenter:t.sphere.center.toArray()}))),i.maxGeometryCount=this._maxGeometryCount,i.maxVertexCount=this._maxVertexCount,i.maxIndexCount=this._maxIndexCount,i.geometryInitialized=this._geometryInitialized,i.geometryCount=this._geometryCount,i.matricesTexture=this._matricesTexture.toJSON(t),null!==this.boundingSphere&&(i.boundingSphere={center:i.boundingSphere.center.toArray(),radius:i.boundingSphere.radius}),null!==this.boundingBox&&(i.boundingBox={min:i.boundingBox.min.toArray(),max:i.boundingBox.max.toArray()})),this.isScene)this.background&&(this.background.isColor?i.background=this.background.toJSON():this.background.isTexture&&(i.background=this.background.toJSON(t).uuid)),this.environment&&this.environment.isTexture&&!0!==this.environment.isRenderTargetTexture&&(i.environment=this.environment.toJSON(t).uuid);else if(this.isMesh||this.isLine||this.isPoints){i.geometry=r(t.geometries,this.geometry);const e=this.geometry.parameters;if(void 0!==e&&void 0!==e.shapes){const n=e.shapes;if(Array.isArray(n))for(let e=0,i=n.length;e<i;e++){const i=n[e];r(t.shapes,i)}else r(t.shapes,n)}}if(this.isSkinnedMesh&&(i.bindMode=this.bindMode,i.bindMatrix=this.bindMatrix.toArray(),void 0!==this.skeleton&&(r(t.skeletons,this.skeleton),i.skeleton=this.skeleton.uuid)),void 0!==this.material)if(Array.isArray(this.material)){const e=[];for(let n=0,i=this.material.length;n<i;n++)e.push(r(t.materials,this.material[n]));i.material=e}else i.material=r(t.materials,this.material);if(this.children.length>0){i.children=[];for(let e=0;e<this.children.length;e++)i.children.push(this.children[e].toJSON(t).object)}if(this.animations.length>0){i.animations=[];for(let e=0;e<this.animations.length;e++){const n=this.animations[e];i.animations.push(r(t.animations,n))}}if(e){const e=o(t.geometries),i=o(t.materials),r=o(t.textures),a=o(t.images),s=o(t.shapes),l=o(t.skeletons),c=o(t.animations),u=o(t.nodes);e.length>0&&(n.geometries=e),i.length>0&&(n.materials=i),r.length>0&&(n.textures=r),a.length>0&&(n.images=a),s.length>0&&(n.shapes=s),l.length>0&&(n.skeletons=l),c.length>0&&(n.animations=c),u.length>0&&(n.nodes=u)}return n.object=i,n;function o(t){const e=[];for(const n in t){const i=t[n];delete i.metadata,e.push(i)}return e}}clone(t){return(new this.constructor).copy(this,t)}copy(t,e=!0){if(this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.rotation.order=t.rotation.order,this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldAutoUpdate=t.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.animations=t.animations.slice(),this.userData=JSON.parse(JSON.stringify(t.userData)),!0===e)for(let e=0;e<t.children.length;e++){const n=t.children[e];this.add(n.clone())}return this}}Dn.DEFAULT_UP=new Me(0,1,0),Dn.DEFAULT_MATRIX_AUTO_UPDATE=!0,Dn.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;const Rn=new Me,In=new Me,jn=new Me,Nn=new Me,Fn=new Me,zn=new Me,Bn=new Me,$n=new Me,Un=new Me,Hn=new Me;class Vn{constructor(t=new Me,e=new Me,n=new Me){this.a=t,this.b=e,this.c=n}static getNormal(t,e,n,i){i.subVectors(n,e),Rn.subVectors(t,e),i.cross(Rn);const r=i.lengthSq();return r>0?i.multiplyScalar(1/Math.sqrt(r)):i.set(0,0,0)}static getBarycoord(t,e,n,i,r){Rn.subVectors(i,e),In.subVectors(n,e),jn.subVectors(t,e);const o=Rn.dot(Rn),a=Rn.dot(In),s=Rn.dot(jn),l=In.dot(In),c=In.dot(jn),u=o*l-a*a;if(0===u)return r.set(0,0,0),null;const d=1/u,h=(l*s-a*c)*d,p=(o*c-a*s)*d;return r.set(1-h-p,p,h)}static containsPoint(t,e,n,i){return null!==this.getBarycoord(t,e,n,i,Nn)&&(Nn.x>=0&&Nn.y>=0&&Nn.x+Nn.y<=1)}static getInterpolation(t,e,n,i,r,o,a,s){return null===this.getBarycoord(t,e,n,i,Nn)?(s.x=0,s.y=0,"z"in s&&(s.z=0),"w"in s&&(s.w=0),null):(s.setScalar(0),s.addScaledVector(r,Nn.x),s.addScaledVector(o,Nn.y),s.addScaledVector(a,Nn.z),s)}static isFrontFacing(t,e,n,i){return Rn.subVectors(n,e),In.subVectors(t,e),Rn.cross(In).dot(i)<0}set(t,e,n){return this.a.copy(t),this.b.copy(e),this.c.copy(n),this}setFromPointsAndIndices(t,e,n,i){return this.a.copy(t[e]),this.b.copy(t[n]),this.c.copy(t[i]),this}setFromAttributeAndIndices(t,e,n,i){return this.a.fromBufferAttribute(t,e),this.b.fromBufferAttribute(t,n),this.c.fromBufferAttribute(t,i),this}clone(){return(new this.constructor).copy(this)}copy(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this}getArea(){return Rn.subVectors(this.c,this.b),In.subVectors(this.a,this.b),.5*Rn.cross(In).length()}getMidpoint(t){return t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return Vn.getNormal(this.a,this.b,this.c,t)}getPlane(t){return t.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,e){return Vn.getBarycoord(t,this.a,this.b,this.c,e)}getInterpolation(t,e,n,i,r){return Vn.getInterpolation(t,this.a,this.b,this.c,e,n,i,r)}containsPoint(t){return Vn.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return Vn.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(t){return t.intersectsTriangle(this)}closestPointToPoint(t,e){const n=this.a,i=this.b,r=this.c;let o,a;Fn.subVectors(i,n),zn.subVectors(r,n),$n.subVectors(t,n);const s=Fn.dot($n),l=zn.dot($n);if(s<=0&&l<=0)return e.copy(n);Un.subVectors(t,i);const c=Fn.dot(Un),u=zn.dot(Un);if(c>=0&&u<=c)return e.copy(i);const d=s*u-c*l;if(d<=0&&s>=0&&c<=0)return o=s/(s-c),e.copy(n).addScaledVector(Fn,o);Hn.subVectors(t,r);const h=Fn.dot(Hn),p=zn.dot(Hn);if(p>=0&&h<=p)return e.copy(r);const f=h*l-s*p;if(f<=0&&l>=0&&p<=0)return a=l/(l-p),e.copy(n).addScaledVector(zn,a);const m=c*p-h*u;if(m<=0&&u-c>=0&&h-p>=0)return Bn.subVectors(r,i),a=(u-c)/(u-c+(h-p)),e.copy(i).addScaledVector(Bn,a);const v=1/(m+f+d);return o=f*v,a=d*v,e.copy(n).addScaledVector(Fn,o).addScaledVector(zn,a)}equals(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}const Yn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},qn={h:0,s:0,l:0},Wn={h:0,s:0,l:0};function Gn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+6*(e-t)*(2/3-n):t}class Xn{constructor(t,e,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(t,e,n)}set(t,e,n){if(void 0===e&&void 0===n){const e=t;e&&e.isColor?this.copy(e):"number"==typeof e?this.setHex(e):"string"==typeof e&&this.setStyle(e)}else this.setRGB(t,e,n);return this}setScalar(t){return this.r=t,this.g=t,this.b=t,this}setHex(t,e=wt){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(255&t)/255,me.toWorkingColorSpace(this,e),this}setRGB(t,e,n,i=me.workingColorSpace){return this.r=t,this.g=e,this.b=n,me.toWorkingColorSpace(this,i),this}setHSL(t,e,n,i=me.workingColorSpace){if(t=Kt(t,1),e=Xt(e,0,1),n=Xt(n,0,1),0===e)this.r=this.g=this.b=n;else{const i=n<=.5?n*(1+e):n+e-n*e,r=2*n-i;this.r=Gn(r,i,t+1/3),this.g=Gn(r,i,t),this.b=Gn(r,i,t-1/3)}return me.toWorkingColorSpace(this,i),this}setStyle(t,e=wt){function n(e){void 0!==e&&parseFloat(e)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(t)){let r;const o=i[1],a=i[2];switch(o){case"rgb":case"rgba":if(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(r[4]),this.setRGB(Math.min(255,parseInt(r[1],10))/255,Math.min(255,parseInt(r[2],10))/255,Math.min(255,parseInt(r[3],10))/255,e);if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(r[4]),this.setRGB(Math.min(100,parseInt(r[1],10))/100,Math.min(100,parseInt(r[2],10))/100,Math.min(100,parseInt(r[3],10))/100,e);break;case"hsl":case"hsla":if(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(r[4]),this.setHSL(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,e);break;default:console.warn("THREE.Color: Unknown color model "+t)}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(t)){const n=i[1],r=n.length;if(3===r)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,e);if(6===r)return this.setHex(parseInt(n,16),e);console.warn("THREE.Color: Invalid hex color "+t)}else if(t&&t.length>0)return this.setColorName(t,e);return this}setColorName(t,e=wt){const n=Yn[t.toLowerCase()];return void 0!==n?this.setHex(n,e):console.warn("THREE.Color: Unknown color "+t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}copySRGBToLinear(t){return this.r=ve(t.r),this.g=ve(t.g),this.b=ve(t.b),this}copyLinearToSRGB(t){return this.r=ge(t.r),this.g=ge(t.g),this.b=ge(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(t=wt){return me.fromWorkingColorSpace(Kn.copy(this),t),65536*Math.round(Xt(255*Kn.r,0,255))+256*Math.round(Xt(255*Kn.g,0,255))+Math.round(Xt(255*Kn.b,0,255))}getHexString(t=wt){return("000000"+this.getHex(t).toString(16)).slice(-6)}getHSL(t,e=me.workingColorSpace){me.fromWorkingColorSpace(Kn.copy(this),e);const n=Kn.r,i=Kn.g,r=Kn.b,o=Math.max(n,i,r),a=Math.min(n,i,r);let s,l;const c=(a+o)/2;if(a===o)s=0,l=0;else{const t=o-a;switch(l=c<=.5?t/(o+a):t/(2-o-a),o){case n:s=(i-r)/t+(i<r?6:0);break;case i:s=(r-n)/t+2;break;case r:s=(n-i)/t+4}s/=6}return t.h=s,t.s=l,t.l=c,t}getRGB(t,e=me.workingColorSpace){return me.fromWorkingColorSpace(Kn.copy(this),e),t.r=Kn.r,t.g=Kn.g,t.b=Kn.b,t}getStyle(t=wt){me.fromWorkingColorSpace(Kn.copy(this),t);const e=Kn.r,n=Kn.g,i=Kn.b;return t!==wt?`color(${t} ${e.toFixed(3)} ${n.toFixed(3)} ${i.toFixed(3)})`:`rgb(${Math.round(255*e)},${Math.round(255*n)},${Math.round(255*i)})`}offsetHSL(t,e,n){return this.getHSL(qn),this.setHSL(qn.h+t,qn.s+e,qn.l+n)}add(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this}addColors(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this}addScalar(t){return this.r+=t,this.g+=t,this.b+=t,this}sub(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this}multiply(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this}multiplyScalar(t){return this.r*=t,this.g*=t,this.b*=t,this}lerp(t,e){return this.r+=(t.r-this.r)*e,this.g+=(t.g-this.g)*e,this.b+=(t.b-this.b)*e,this}lerpColors(t,e,n){return this.r=t.r+(e.r-t.r)*n,this.g=t.g+(e.g-t.g)*n,this.b=t.b+(e.b-t.b)*n,this}lerpHSL(t,e){this.getHSL(qn),t.getHSL(Wn);const n=Zt(qn.h,Wn.h,e),i=Zt(qn.s,Wn.s,e),r=Zt(qn.l,Wn.l,e);return this.setHSL(n,i,r),this}setFromVector3(t){return this.r=t.x,this.g=t.y,this.b=t.z,this}applyMatrix3(t){const e=this.r,n=this.g,i=this.b,r=t.elements;return this.r=r[0]*e+r[3]*n+r[6]*i,this.g=r[1]*e+r[4]*n+r[7]*i,this.b=r[2]*e+r[5]*n+r[8]*i,this}equals(t){return t.r===this.r&&t.g===this.g&&t.b===this.b}fromArray(t,e=0){return this.r=t[e],this.g=t[e+1],this.b=t[e+2],this}toArray(t=[],e=0){return t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t}fromBufferAttribute(t,e){return this.r=t.getX(e),this.g=t.getY(e),this.b=t.getZ(e),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}const Kn=new Xn;Xn.NAMES=Yn;let Zn=0;class Jn extends Ht{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:Zn++}),this.uuid=Gt(),this.name="",this.type="Material",this.blending=1,this.side=s,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=u,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new Xn(0,0,0),this.blendAlpha=0,this.depthFunc=3,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=519,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=At,this.stencilZFail=At,this.stencilZPass=At,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(t){this._alphaTest>0!=t>0&&this.version++,this._alphaTest=t}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(t){if(void 0!==t)for(const e in t){const n=t[e];if(void 0===n){console.warn(`THREE.Material: parameter '${e}' has value of undefined.`);continue}const i=this[e];void 0!==i?i&&i.isColor?i.set(n):i&&i.isVector3&&n&&n.isVector3?i.copy(n):this[e]=n:console.warn(`THREE.Material: '${e}' is not a property of THREE.${this.type}.`)}}toJSON(t){const e=void 0===t||"string"==typeof t;e&&(t={textures:{},images:{}});const n={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};function i(t){const e=[];for(const n in t){const i=t[n];delete i.metadata,e.push(i)}return e}if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),void 0!==this.sheen&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(t).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(t).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(t).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),void 0!==this.iridescence&&(n.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(n.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(t).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(t).uuid),void 0!==this.anisotropy&&(n.anisotropy=this.anisotropy),void 0!==this.anisotropyRotation&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(t).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(t).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(t).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(t).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(t).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(t).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(t).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(t).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(t).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(t).uuid,void 0!==this.combine&&(n.combine=this.combine)),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(n.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(t).uuid),void 0!==this.transmission&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(t).uuid),void 0!==this.thickness&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(t).uuid),void 0!==this.attenuationDistance&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(n.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(n.size=this.size),null!==this.shadowSide&&(n.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),1!==this.blending&&(n.blending=this.blending),this.side!==s&&(n.side=this.side),!0===this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=!0),204!==this.blendSrc&&(n.blendSrc=this.blendSrc),205!==this.blendDst&&(n.blendDst=this.blendDst),this.blendEquation!==u&&(n.blendEquation=this.blendEquation),null!==this.blendSrcAlpha&&(n.blendSrcAlpha=this.blendSrcAlpha),null!==this.blendDstAlpha&&(n.blendDstAlpha=this.blendDstAlpha),null!==this.blendEquationAlpha&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),0!==this.blendAlpha&&(n.blendAlpha=this.blendAlpha),3!==this.depthFunc&&(n.depthFunc=this.depthFunc),!1===this.depthTest&&(n.depthTest=this.depthTest),!1===this.depthWrite&&(n.depthWrite=this.depthWrite),!1===this.colorWrite&&(n.colorWrite=this.colorWrite),255!==this.stencilWriteMask&&(n.stencilWriteMask=this.stencilWriteMask),519!==this.stencilFunc&&(n.stencilFunc=this.stencilFunc),0!==this.stencilRef&&(n.stencilRef=this.stencilRef),255!==this.stencilFuncMask&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==At&&(n.stencilFail=this.stencilFail),this.stencilZFail!==At&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==At&&(n.stencilZPass=this.stencilZPass),!0===this.stencilWrite&&(n.stencilWrite=this.stencilWrite),void 0!==this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.alphaHash&&(n.alphaHash=!0),!0===this.alphaToCoverage&&(n.alphaToCoverage=!0),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=!0),!0===this.forceSinglePass&&(n.forceSinglePass=!0),!0===this.wireframe&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(n.flatShading=!0),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),!1===this.fog&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData),e){const e=i(t.textures),r=i(t.images);e.length>0&&(n.textures=e),r.length>0&&(n.images=r)}return n}clone(){return(new this.constructor).copy(this)}copy(t){this.name=t.name,this.blending=t.blending,this.side=t.side,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.blendColor.copy(t.blendColor),this.blendAlpha=t.blendAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.stencilWriteMask=t.stencilWriteMask,this.stencilFunc=t.stencilFunc,this.stencilRef=t.stencilRef,this.stencilFuncMask=t.stencilFuncMask,this.stencilFail=t.stencilFail,this.stencilZFail=t.stencilZFail,this.stencilZPass=t.stencilZPass,this.stencilWrite=t.stencilWrite;const e=t.clippingPlanes;let n=null;if(null!==e){const t=e.length;n=new Array(t);for(let i=0;i!==t;++i)n[i]=e[i].clone()}return this.clippingPlanes=n,this.clipIntersection=t.clipIntersection,this.clipShadows=t.clipShadows,this.shadowSide=t.shadowSide,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.alphaHash=t.alphaHash,this.alphaToCoverage=t.alphaToCoverage,this.premultipliedAlpha=t.premultipliedAlpha,this.forceSinglePass=t.forceSinglePass,this.visible=t.visible,this.toneMapped=t.toneMapped,this.userData=JSON.parse(JSON.stringify(t.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(t){!0===t&&this.version++}}class Qn extends Jn{constructor(t){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new Xn(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=k,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.fog=t.fog,this}}const ti=new Me,ei=new ie;class ni{constructor(t,e,n=!1){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=t,this.itemSize=e,this.count=void 0!==t?t.length/e:0,this.normalized=n,this.usage=Ft,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=nt,this.version=0}onUploadCallback(){}set needsUpdate(t){!0===t&&this.version++}get updateRange(){return ue("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(t){return this.usage=t,this}addUpdateRange(t,e){this.updateRanges.push({start:t,count:e})}clearUpdateRanges(){this.updateRanges.length=0}copy(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.usage=t.usage,this.gpuType=t.gpuType,this}copyAt(t,e,n){t*=this.itemSize,n*=e.itemSize;for(let i=0,r=this.itemSize;i<r;i++)this.array[t+i]=e.array[n+i];return this}copyArray(t){return this.array.set(t),this}applyMatrix3(t){if(2===this.itemSize)for(let e=0,n=this.count;e<n;e++)ei.fromBufferAttribute(this,e),ei.applyMatrix3(t),this.setXY(e,ei.x,ei.y);else if(3===this.itemSize)for(let e=0,n=this.count;e<n;e++)ti.fromBufferAttribute(this,e),ti.applyMatrix3(t),this.setXYZ(e,ti.x,ti.y,ti.z);return this}applyMatrix4(t){for(let e=0,n=this.count;e<n;e++)ti.fromBufferAttribute(this,e),ti.applyMatrix4(t),this.setXYZ(e,ti.x,ti.y,ti.z);return this}applyNormalMatrix(t){for(let e=0,n=this.count;e<n;e++)ti.fromBufferAttribute(this,e),ti.applyNormalMatrix(t),this.setXYZ(e,ti.x,ti.y,ti.z);return this}transformDirection(t){for(let e=0,n=this.count;e<n;e++)ti.fromBufferAttribute(this,e),ti.transformDirection(t),this.setXYZ(e,ti.x,ti.y,ti.z);return this}set(t,e=0){return this.array.set(t,e),this}getComponent(t,e){let n=this.array[t*this.itemSize+e];return this.normalized&&(n=te(n,this.array)),n}setComponent(t,e,n){return this.normalized&&(n=ee(n,this.array)),this.array[t*this.itemSize+e]=n,this}getX(t){let e=this.array[t*this.itemSize];return this.normalized&&(e=te(e,this.array)),e}setX(t,e){return this.normalized&&(e=ee(e,this.array)),this.array[t*this.itemSize]=e,this}getY(t){let e=this.array[t*this.itemSize+1];return this.normalized&&(e=te(e,this.array)),e}setY(t,e){return this.normalized&&(e=ee(e,this.array)),this.array[t*this.itemSize+1]=e,this}getZ(t){let e=this.array[t*this.itemSize+2];return this.normalized&&(e=te(e,this.array)),e}setZ(t,e){return this.normalized&&(e=ee(e,this.array)),this.array[t*this.itemSize+2]=e,this}getW(t){let e=this.array[t*this.itemSize+3];return this.normalized&&(e=te(e,this.array)),e}setW(t,e){return this.normalized&&(e=ee(e,this.array)),this.array[t*this.itemSize+3]=e,this}setXY(t,e,n){return t*=this.itemSize,this.normalized&&(e=ee(e,this.array),n=ee(n,this.array)),this.array[t+0]=e,this.array[t+1]=n,this}setXYZ(t,e,n,i){return t*=this.itemSize,this.normalized&&(e=ee(e,this.array),n=ee(n,this.array),i=ee(i,this.array)),this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=i,this}setXYZW(t,e,n,i,r){return t*=this.itemSize,this.normalized&&(e=ee(e,this.array),n=ee(n,this.array),i=ee(i,this.array),r=ee(r,this.array)),this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=i,this.array[t+3]=r,this}onUpload(t){return this.onUploadCallback=t,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){const t={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return""!==this.name&&(t.name=this.name),this.usage!==Ft&&(t.usage=this.usage),t}}class ii extends ni{constructor(t,e,n){super(new Uint16Array(t),e,n)}}class ri extends ni{constructor(t,e,n){super(new Uint32Array(t),e,n)}}class oi extends ni{constructor(t,e,n){super(new Float32Array(t),e,n)}}let ai=0;const si=new ln,li=new Dn,ci=new Me,ui=new Re,di=new Re,hi=new Me;class pi extends Ht{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:ai++}),this.uuid=Gt(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(t){return Array.isArray(t)?this.index=new(ae(t)?ri:ii)(t,1):this.index=t,this}getAttribute(t){return this.attributes[t]}setAttribute(t,e){return this.attributes[t]=e,this}deleteAttribute(t){return delete this.attributes[t],this}hasAttribute(t){return void 0!==this.attributes[t]}addGroup(t,e,n=0){this.groups.push({start:t,count:e,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(t,e){this.drawRange.start=t,this.drawRange.count=e}applyMatrix4(t){const e=this.attributes.position;void 0!==e&&(e.applyMatrix4(t),e.needsUpdate=!0);const n=this.attributes.normal;if(void 0!==n){const e=(new re).getNormalMatrix(t);n.applyNormalMatrix(e),n.needsUpdate=!0}const i=this.attributes.tangent;return void 0!==i&&(i.transformDirection(t),i.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}applyQuaternion(t){return si.makeRotationFromQuaternion(t),this.applyMatrix4(si),this}rotateX(t){return si.makeRotationX(t),this.applyMatrix4(si),this}rotateY(t){return si.makeRotationY(t),this.applyMatrix4(si),this}rotateZ(t){return si.makeRotationZ(t),this.applyMatrix4(si),this}translate(t,e,n){return si.makeTranslation(t,e,n),this.applyMatrix4(si),this}scale(t,e,n){return si.makeScale(t,e,n),this.applyMatrix4(si),this}lookAt(t){return li.lookAt(t),li.updateMatrix(),this.applyMatrix4(li.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(ci).negate(),this.translate(ci.x,ci.y,ci.z),this}setFromPoints(t){const e=[];for(let n=0,i=t.length;n<i;n++){const i=t[n];e.push(i.x,i.y,i.z||0)}return this.setAttribute("position",new oi(e,3)),this}computeBoundingBox(){null===this.boundingBox&&(this.boundingBox=new Re);const t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute)return console.error('THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box. Alternatively set "mesh.frustumCulled" to "false".',this),void this.boundingBox.set(new Me(-1/0,-1/0,-1/0),new Me(1/0,1/0,1/0));if(void 0!==t){if(this.boundingBox.setFromBufferAttribute(t),e)for(let t=0,n=e.length;t<n;t++){const n=e[t];ui.setFromBufferAttribute(n),this.morphTargetsRelative?(hi.addVectors(this.boundingBox.min,ui.min),this.boundingBox.expandByPoint(hi),hi.addVectors(this.boundingBox.max,ui.max),this.boundingBox.expandByPoint(hi)):(this.boundingBox.expandByPoint(ui.min),this.boundingBox.expandByPoint(ui.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)}computeBoundingSphere(){null===this.boundingSphere&&(this.boundingSphere=new Je);const t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute)return console.error('THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere. Alternatively set "mesh.frustumCulled" to "false".',this),void this.boundingSphere.set(new Me,1/0);if(t){const n=this.boundingSphere.center;if(ui.setFromBufferAttribute(t),e)for(let t=0,n=e.length;t<n;t++){const n=e[t];di.setFromBufferAttribute(n),this.morphTargetsRelative?(hi.addVectors(ui.min,di.min),ui.expandByPoint(hi),hi.addVectors(ui.max,di.max),ui.expandByPoint(hi)):(ui.expandByPoint(di.min),ui.expandByPoint(di.max))}ui.getCenter(n);let i=0;for(let e=0,r=t.count;e<r;e++)hi.fromBufferAttribute(t,e),i=Math.max(i,n.distanceToSquared(hi));if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r],a=this.morphTargetsRelative;for(let e=0,r=o.count;e<r;e++)hi.fromBufferAttribute(o,e),a&&(ci.fromBufferAttribute(t,e),hi.add(ci)),i=Math.max(i,n.distanceToSquared(hi))}this.boundingSphere.radius=Math.sqrt(i),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}computeTangents(){const t=this.index,e=this.attributes;if(null===t||void 0===e.position||void 0===e.normal||void 0===e.uv)return void console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");const n=t.array,i=e.position.array,r=e.normal.array,o=e.uv.array,a=i.length/3;!1===this.hasAttribute("tangent")&&this.setAttribute("tangent",new ni(new Float32Array(4*a),4));const s=this.getAttribute("tangent").array,l=[],c=[];for(let t=0;t<a;t++)l[t]=new Me,c[t]=new Me;const u=new Me,d=new Me,h=new Me,p=new ie,f=new ie,m=new ie,v=new Me,g=new Me;function b(t,e,n){u.fromArray(i,3*t),d.fromArray(i,3*e),h.fromArray(i,3*n),p.fromArray(o,2*t),f.fromArray(o,2*e),m.fromArray(o,2*n),d.sub(u),h.sub(u),f.sub(p),m.sub(p);const r=1/(f.x*m.y-m.x*f.y);isFinite(r)&&(v.copy(d).multiplyScalar(m.y).addScaledVector(h,-f.y).multiplyScalar(r),g.copy(h).multiplyScalar(f.x).addScaledVector(d,-m.x).multiplyScalar(r),l[t].add(v),l[e].add(v),l[n].add(v),c[t].add(g),c[e].add(g),c[n].add(g))}let y=this.groups;0===y.length&&(y=[{start:0,count:n.length}]);for(let t=0,e=y.length;t<e;++t){const e=y[t],i=e.start;for(let t=i,r=i+e.count;t<r;t+=3)b(n[t+0],n[t+1],n[t+2])}const _=new Me,w=new Me,x=new Me,C=new Me;function S(t){x.fromArray(r,3*t),C.copy(x);const e=l[t];_.copy(e),_.sub(x.multiplyScalar(x.dot(e))).normalize(),w.crossVectors(C,e);const n=w.dot(c[t])<0?-1:1;s[4*t]=_.x,s[4*t+1]=_.y,s[4*t+2]=_.z,s[4*t+3]=n}for(let t=0,e=y.length;t<e;++t){const e=y[t],i=e.start;for(let t=i,r=i+e.count;t<r;t+=3)S(n[t+0]),S(n[t+1]),S(n[t+2])}}computeVertexNormals(){const t=this.index,e=this.getAttribute("position");if(void 0!==e){let n=this.getAttribute("normal");if(void 0===n)n=new ni(new Float32Array(3*e.count),3),this.setAttribute("normal",n);else for(let t=0,e=n.count;t<e;t++)n.setXYZ(t,0,0,0);const i=new Me,r=new Me,o=new Me,a=new Me,s=new Me,l=new Me,c=new Me,u=new Me;if(t)for(let d=0,h=t.count;d<h;d+=3){const h=t.getX(d+0),p=t.getX(d+1),f=t.getX(d+2);i.fromBufferAttribute(e,h),r.fromBufferAttribute(e,p),o.fromBufferAttribute(e,f),c.subVectors(o,r),u.subVectors(i,r),c.cross(u),a.fromBufferAttribute(n,h),s.fromBufferAttribute(n,p),l.fromBufferAttribute(n,f),a.add(c),s.add(c),l.add(c),n.setXYZ(h,a.x,a.y,a.z),n.setXYZ(p,s.x,s.y,s.z),n.setXYZ(f,l.x,l.y,l.z)}else for(let t=0,a=e.count;t<a;t+=3)i.fromBufferAttribute(e,t+0),r.fromBufferAttribute(e,t+1),o.fromBufferAttribute(e,t+2),c.subVectors(o,r),u.subVectors(i,r),c.cross(u),n.setXYZ(t+0,c.x,c.y,c.z),n.setXYZ(t+1,c.x,c.y,c.z),n.setXYZ(t+2,c.x,c.y,c.z);this.normalizeNormals(),n.needsUpdate=!0}}normalizeNormals(){const t=this.attributes.normal;for(let e=0,n=t.count;e<n;e++)hi.fromBufferAttribute(t,e),hi.normalize(),t.setXYZ(e,hi.x,hi.y,hi.z)}toNonIndexed(){function t(t,e){const n=t.array,i=t.itemSize,r=t.normalized,o=new n.constructor(e.length*i);let a=0,s=0;for(let r=0,l=e.length;r<l;r++){a=t.isInterleavedBufferAttribute?e[r]*t.data.stride+t.offset:e[r]*i;for(let t=0;t<i;t++)o[s++]=n[a++]}return new ni(o,i,r)}if(null===this.index)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const e=new pi,n=this.index.array,i=this.attributes;for(const r in i){const o=t(i[r],n);e.setAttribute(r,o)}const r=this.morphAttributes;for(const i in r){const o=[],a=r[i];for(let e=0,i=a.length;e<i;e++){const i=t(a[e],n);o.push(i)}e.morphAttributes[i]=o}e.morphTargetsRelative=this.morphTargetsRelative;const o=this.groups;for(let t=0,n=o.length;t<n;t++){const n=o[t];e.addGroup(n.start,n.count,n.materialIndex)}return e}toJSON(){const t={metadata:{version:4.6,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,""!==this.name&&(t.name=this.name),Object.keys(this.userData).length>0&&(t.userData=this.userData),void 0!==this.parameters){const e=this.parameters;for(const n in e)void 0!==e[n]&&(t[n]=e[n]);return t}t.data={attributes:{}};const e=this.index;null!==e&&(t.data.index={type:e.array.constructor.name,array:Array.prototype.slice.call(e.array)});const n=this.attributes;for(const e in n){const i=n[e];t.data.attributes[e]=i.toJSON(t.data)}const i={};let r=!1;for(const e in this.morphAttributes){const n=this.morphAttributes[e],o=[];for(let e=0,i=n.length;e<i;e++){const i=n[e];o.push(i.toJSON(t.data))}o.length>0&&(i[e]=o,r=!0)}r&&(t.data.morphAttributes=i,t.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(t.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return null!==a&&(t.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),t}clone(){return(new this.constructor).copy(this)}copy(t){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const e={};this.name=t.name;const n=t.index;null!==n&&this.setIndex(n.clone(e));const i=t.attributes;for(const t in i){const n=i[t];this.setAttribute(t,n.clone(e))}const r=t.morphAttributes;for(const t in r){const n=[],i=r[t];for(let t=0,r=i.length;t<r;t++)n.push(i[t].clone(e));this.morphAttributes[t]=n}this.morphTargetsRelative=t.morphTargetsRelative;const o=t.groups;for(let t=0,e=o.length;t<e;t++){const e=o[t];this.addGroup(e.start,e.count,e.materialIndex)}const a=t.boundingBox;null!==a&&(this.boundingBox=a.clone());const s=t.boundingSphere;return null!==s&&(this.boundingSphere=s.clone()),this.drawRange.start=t.drawRange.start,this.drawRange.count=t.drawRange.count,this.userData=t.userData,this}dispose(){this.dispatchEvent({type:"dispose"})}}const fi=new ln,mi=new sn,vi=new Je,gi=new Me,bi=new Me,yi=new Me,_i=new Me,wi=new Me,xi=new Me,Ci=new ie,Si=new ie,Ei=new ie,Ti=new Me,Oi=new Me,ki=new Me,Ai=new Me,Pi=new Me;class Mi extends Dn{constructor(t=new pi,e=new Qn){super(),this.isMesh=!0,this.type="Mesh",this.geometry=t,this.material=e,this.updateMorphTargets()}copy(t,e){return super.copy(t,e),void 0!==t.morphTargetInfluences&&(this.morphTargetInfluences=t.morphTargetInfluences.slice()),void 0!==t.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},t.morphTargetDictionary)),this.material=Array.isArray(t.material)?t.material.slice():t.material,this.geometry=t.geometry,this}updateMorphTargets(){const t=this.geometry.morphAttributes,e=Object.keys(t);if(e.length>0){const n=t[e[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,e=n.length;t<e;t++){const e=n[t].name||String(t);this.morphTargetInfluences.push(0),this.morphTargetDictionary[e]=t}}}}getVertexPosition(t,e){const n=this.geometry,i=n.attributes.position,r=n.morphAttributes.position,o=n.morphTargetsRelative;e.fromBufferAttribute(i,t);const a=this.morphTargetInfluences;if(r&&a){xi.set(0,0,0);for(let n=0,i=r.length;n<i;n++){const i=a[n],s=r[n];0!==i&&(wi.fromBufferAttribute(s,t),o?xi.addScaledVector(wi,i):xi.addScaledVector(wi.sub(e),i))}e.add(xi)}return e}raycast(t,e){const n=this.geometry,i=this.material,r=this.matrixWorld;if(void 0!==i){if(null===n.boundingSphere&&n.computeBoundingSphere(),vi.copy(n.boundingSphere),vi.applyMatrix4(r),mi.copy(t.ray).recast(t.near),!1===vi.containsPoint(mi.origin)){if(null===mi.intersectSphere(vi,gi))return;if(mi.origin.distanceToSquared(gi)>(t.far-t.near)**2)return}fi.copy(r).invert(),mi.copy(t.ray).applyMatrix4(fi),null!==n.boundingBox&&!1===mi.intersectsBox(n.boundingBox)||this._computeIntersections(t,e,mi)}}_computeIntersections(t,e,n){let i;const r=this.geometry,o=this.material,a=r.index,s=r.attributes.position,l=r.attributes.uv,c=r.attributes.uv1,u=r.attributes.normal,d=r.groups,h=r.drawRange;if(null!==a)if(Array.isArray(o))for(let r=0,s=d.length;r<s;r++){const s=d[r],p=o[s.materialIndex];for(let r=Math.max(s.start,h.start),o=Math.min(a.count,Math.min(s.start+s.count,h.start+h.count));r<o;r+=3){i=Li(this,p,t,n,l,c,u,a.getX(r),a.getX(r+1),a.getX(r+2)),i&&(i.faceIndex=Math.floor(r/3),i.face.materialIndex=s.materialIndex,e.push(i))}}else{for(let r=Math.max(0,h.start),s=Math.min(a.count,h.start+h.count);r<s;r+=3){i=Li(this,o,t,n,l,c,u,a.getX(r),a.getX(r+1),a.getX(r+2)),i&&(i.faceIndex=Math.floor(r/3),e.push(i))}}else if(void 0!==s)if(Array.isArray(o))for(let r=0,a=d.length;r<a;r++){const a=d[r],p=o[a.materialIndex];for(let r=Math.max(a.start,h.start),o=Math.min(s.count,Math.min(a.start+a.count,h.start+h.count));r<o;r+=3){i=Li(this,p,t,n,l,c,u,r,r+1,r+2),i&&(i.faceIndex=Math.floor(r/3),i.face.materialIndex=a.materialIndex,e.push(i))}}else{for(let r=Math.max(0,h.start),a=Math.min(s.count,h.start+h.count);r<a;r+=3){i=Li(this,o,t,n,l,c,u,r,r+1,r+2),i&&(i.faceIndex=Math.floor(r/3),e.push(i))}}}}function Li(t,e,n,i,r,o,a,c,u,d){t.getVertexPosition(c,bi),t.getVertexPosition(u,yi),t.getVertexPosition(d,_i);const h=function(t,e,n,i,r,o,a,c){let u;if(u=e.side===l?i.intersectTriangle(a,o,r,!0,c):i.intersectTriangle(r,o,a,e.side===s,c),null===u)return null;Pi.copy(c),Pi.applyMatrix4(t.matrixWorld);const d=n.ray.origin.distanceTo(Pi);return d<n.near||d>n.far?null:{distance:d,point:Pi.clone(),object:t}}(t,e,n,i,bi,yi,_i,Ai);if(h){r&&(Ci.fromBufferAttribute(r,c),Si.fromBufferAttribute(r,u),Ei.fromBufferAttribute(r,d),h.uv=Vn.getInterpolation(Ai,bi,yi,_i,Ci,Si,Ei,new ie)),o&&(Ci.fromBufferAttribute(o,c),Si.fromBufferAttribute(o,u),Ei.fromBufferAttribute(o,d),h.uv1=Vn.getInterpolation(Ai,bi,yi,_i,Ci,Si,Ei,new ie),h.uv2=h.uv1),a&&(Ti.fromBufferAttribute(a,c),Oi.fromBufferAttribute(a,u),ki.fromBufferAttribute(a,d),h.normal=Vn.getInterpolation(Ai,bi,yi,_i,Ti,Oi,ki,new Me),h.normal.dot(i.direction)>0&&h.normal.multiplyScalar(-1));const t={a:c,b:u,c:d,normal:new Me,materialIndex:0};Vn.getNormal(bi,yi,_i,t.normal),h.face=t}return h}class Di extends pi{constructor(t=1,e=1,n=1,i=1,r=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:n,widthSegments:i,heightSegments:r,depthSegments:o};const a=this;i=Math.floor(i),r=Math.floor(r),o=Math.floor(o);const s=[],l=[],c=[],u=[];let d=0,h=0;function p(t,e,n,i,r,o,p,f,m,v,g){const b=o/m,y=p/v,_=o/2,w=p/2,x=f/2,C=m+1,S=v+1;let E=0,T=0;const O=new Me;for(let o=0;o<S;o++){const a=o*y-w;for(let s=0;s<C;s++){const d=s*b-_;O[t]=d*i,O[e]=a*r,O[n]=x,l.push(O.x,O.y,O.z),O[t]=0,O[e]=0,O[n]=f>0?1:-1,c.push(O.x,O.y,O.z),u.push(s/m),u.push(1-o/v),E+=1}}for(let t=0;t<v;t++)for(let e=0;e<m;e++){const n=d+e+C*t,i=d+e+C*(t+1),r=d+(e+1)+C*(t+1),o=d+(e+1)+C*t;s.push(n,i,o),s.push(i,r,o),T+=6}a.addGroup(h,T,g),h+=T,d+=E}p("z","y","x",-1,-1,n,e,t,o,r,0),p("z","y","x",1,-1,n,e,-t,o,r,1),p("x","z","y",1,1,t,n,e,i,o,2),p("x","z","y",1,-1,t,n,-e,i,o,3),p("x","y","z",1,-1,t,e,n,i,r,4),p("x","y","z",-1,-1,t,e,-n,i,r,5),this.setIndex(s),this.setAttribute("position",new oi(l,3)),this.setAttribute("normal",new oi(c,3)),this.setAttribute("uv",new oi(u,2))}copy(t){return super.copy(t),this.parameters=Object.assign({},t.parameters),this}static fromJSON(t){return new Di(t.width,t.height,t.depth,t.widthSegments,t.heightSegments,t.depthSegments)}}function Ri(t){const e={};for(const n in t){e[n]={};for(const i in t[n]){const r=t[n][i];r&&(r.isColor||r.isMatrix3||r.isMatrix4||r.isVector2||r.isVector3||r.isVector4||r.isTexture||r.isQuaternion)?r.isRenderTargetTexture?(console.warn("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms()."),e[n][i]=null):e[n][i]=r.clone():Array.isArray(r)?e[n][i]=r.slice():e[n][i]=r}}return e}function Ii(t){const e={};for(let n=0;n<t.length;n++){const i=Ri(t[n]);for(const t in i)e[t]=i[t]}return e}function ji(t){return null===t.getRenderTarget()?t.outputColorSpace:me.workingColorSpace}const Ni={clone:Ri,merge:Ii};class Fi extends Jn{constructor(t){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader="void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",this.fragmentShader="void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}",this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1,clipCullDistance:!1,multiDraw:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv1:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,void 0!==t&&this.setValues(t)}copy(t){return super.copy(t),this.fragmentShader=t.fragmentShader,this.vertexShader=t.vertexShader,this.uniforms=Ri(t.uniforms),this.uniformsGroups=function(t){const e=[];for(let n=0;n<t.length;n++)e.push(t[n].clone());return e}(t.uniformsGroups),this.defines=Object.assign({},t.defines),this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.fog=t.fog,this.lights=t.lights,this.clipping=t.clipping,this.extensions=Object.assign({},t.extensions),this.glslVersion=t.glslVersion,this}toJSON(t){const e=super.toJSON(t);e.glslVersion=this.glslVersion,e.uniforms={};for(const n in this.uniforms){const i=this.uniforms[n].value;i&&i.isTexture?e.uniforms[n]={type:"t",value:i.toJSON(t).uuid}:i&&i.isColor?e.uniforms[n]={type:"c",value:i.getHex()}:i&&i.isVector2?e.uniforms[n]={type:"v2",value:i.toArray()}:i&&i.isVector3?e.uniforms[n]={type:"v3",value:i.toArray()}:i&&i.isVector4?e.uniforms[n]={type:"v4",value:i.toArray()}:i&&i.isMatrix3?e.uniforms[n]={type:"m3",value:i.toArray()}:i&&i.isMatrix4?e.uniforms[n]={type:"m4",value:i.toArray()}:e.uniforms[n]={value:i}}Object.keys(this.defines).length>0&&(e.defines=this.defines),e.vertexShader=this.vertexShader,e.fragmentShader=this.fragmentShader,e.lights=this.lights,e.clipping=this.clipping;const n={};for(const t in this.extensions)!0===this.extensions[t]&&(n[t]=!0);return Object.keys(n).length>0&&(e.extensions=n),e}}class zi extends Dn{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new ln,this.projectionMatrix=new ln,this.projectionMatrixInverse=new ln,this.coordinateSystem=$t}copy(t,e){return super.copy(t,e),this.matrixWorldInverse.copy(t.matrixWorldInverse),this.projectionMatrix.copy(t.projectionMatrix),this.projectionMatrixInverse.copy(t.projectionMatrixInverse),this.coordinateSystem=t.coordinateSystem,this}getWorldDirection(t){return super.getWorldDirection(t).negate()}updateMatrixWorld(t){super.updateMatrixWorld(t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(t,e){super.updateWorldMatrix(t,e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return(new this.constructor).copy(this)}}const Bi=new Me,$i=new ie,Ui=new ie;class Hi extends zi{constructor(t=50,e=1,n=.1,i=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=t,this.zoom=1,this.near=n,this.far=i,this.focus=10,this.aspect=e,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(t,e){return super.copy(t,e),this.fov=t.fov,this.zoom=t.zoom,this.near=t.near,this.far=t.far,this.focus=t.focus,this.aspect=t.aspect,this.view=null===t.view?null:Object.assign({},t.view),this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this}setFocalLength(t){const e=.5*this.getFilmHeight()/t;this.fov=2*Wt*Math.atan(e),this.updateProjectionMatrix()}getFocalLength(){const t=Math.tan(.5*qt*this.fov);return.5*this.getFilmHeight()/t}getEffectiveFOV(){return 2*Wt*Math.atan(Math.tan(.5*qt*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(t,e,n){Bi.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),e.set(Bi.x,Bi.y).multiplyScalar(-t/Bi.z),Bi.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(Bi.x,Bi.y).multiplyScalar(-t/Bi.z)}getViewSize(t,e){return this.getViewBounds(t,$i,Ui),e.subVectors(Ui,$i)}setViewOffset(t,e,n,i,r,o){this.aspect=t/e,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const t=this.near;let e=t*Math.tan(.5*qt*this.fov)/this.zoom,n=2*e,i=this.aspect*n,r=-.5*i;const o=this.view;if(null!==this.view&&this.view.enabled){const t=o.fullWidth,a=o.fullHeight;r+=o.offsetX*i/t,e-=o.offsetY*n/a,i*=o.width/t,n*=o.height/a}const a=this.filmOffset;0!==a&&(r+=t*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+i,e,e-n,t,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(t){const e=super.toJSON(t);return e.object.fov=this.fov,e.object.zoom=this.zoom,e.object.near=this.near,e.object.far=this.far,e.object.focus=this.focus,e.object.aspect=this.aspect,null!==this.view&&(e.object.view=Object.assign({},this.view)),e.object.filmGauge=this.filmGauge,e.object.filmOffset=this.filmOffset,e}}const Vi=-90;class Yi extends Dn{constructor(t,e,n){super(),this.type="CubeCamera",this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;const i=new Hi(Vi,1,t,e);i.layers=this.layers,this.add(i);const r=new Hi(Vi,1,t,e);r.layers=this.layers,this.add(r);const o=new Hi(Vi,1,t,e);o.layers=this.layers,this.add(o);const a=new Hi(Vi,1,t,e);a.layers=this.layers,this.add(a);const s=new Hi(Vi,1,t,e);s.layers=this.layers,this.add(s);const l=new Hi(Vi,1,t,e);l.layers=this.layers,this.add(l)}updateCoordinateSystem(){const t=this.coordinateSystem,e=this.children.concat(),[n,i,r,o,a,s]=e;for(const t of e)this.remove(t);if(t===$t)n.up.set(0,1,0),n.lookAt(1,0,0),i.up.set(0,1,0),i.lookAt(-1,0,0),r.up.set(0,0,-1),r.lookAt(0,1,0),o.up.set(0,0,1),o.lookAt(0,-1,0),a.up.set(0,1,0),a.lookAt(0,0,1),s.up.set(0,1,0),s.lookAt(0,0,-1);else{if(t!==Ut)throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+t);n.up.set(0,-1,0),n.lookAt(-1,0,0),i.up.set(0,-1,0),i.lookAt(1,0,0),r.up.set(0,0,1),r.lookAt(0,1,0),o.up.set(0,0,-1),o.lookAt(0,-1,0),a.up.set(0,-1,0),a.lookAt(0,0,1),s.up.set(0,-1,0),s.lookAt(0,0,-1)}for(const t of e)this.add(t),t.updateMatrixWorld()}update(t,e){null===this.parent&&this.updateMatrixWorld();const{renderTarget:n,activeMipmapLevel:i}=this;this.coordinateSystem!==t.coordinateSystem&&(this.coordinateSystem=t.coordinateSystem,this.updateCoordinateSystem());const[r,o,a,s,l,c]=this.children,u=t.getRenderTarget(),d=t.getActiveCubeFace(),h=t.getActiveMipmapLevel(),p=t.xr.enabled;t.xr.enabled=!1;const f=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,t.setRenderTarget(n,0,i),t.render(e,r),t.setRenderTarget(n,1,i),t.render(e,o),t.setRenderTarget(n,2,i),t.render(e,a),t.setRenderTarget(n,3,i),t.render(e,s),t.setRenderTarget(n,4,i),t.render(e,l),n.texture.generateMipmaps=f,t.setRenderTarget(n,5,i),t.render(e,c),t.setRenderTarget(u,d,h),t.xr.enabled=p,n.texture.needsPMREMUpdate=!0}}class qi extends Se{constructor(t,e,n,i,r,o,a,s,l,c){super(t=void 0!==t?t:[],e=void 0!==e?e:F,n,i,r,o,a,s,l,c),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(t){this.image=t}}class Wi extends Oe{constructor(t=1,e={}){super(t,t,e),this.isWebGLCubeRenderTarget=!0;const n={width:t,height:t,depth:1},i=[n,n,n,n,n,n];void 0!==e.encoding&&(ue("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."),e.colorSpace=e.encoding===yt?wt:_t),this.texture=new qi(i,e.mapping,e.wrapS,e.wrapT,e.magFilter,e.minFilter,e.format,e.type,e.anisotropy,e.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=void 0!==e.generateMipmaps&&e.generateMipmaps,this.texture.minFilter=void 0!==e.minFilter?e.minFilter:X}fromEquirectangularTexture(t,e){this.texture.type=e.type,this.texture.colorSpace=e.colorSpace,this.texture.generateMipmaps=e.generateMipmaps,this.texture.minFilter=e.minFilter,this.texture.magFilter=e.magFilter;const n={uniforms:{tEquirect:{value:null}},vertexShader:"\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include <begin_vertex>\n\t\t\t\t\t#include <project_vertex>\n\n\t\t\t\t}\n\t\t\t",fragmentShader:"\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include <common>\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t"},i=new Di(5,5,5),r=new Fi({name:"CubemapFromEquirect",uniforms:Ri(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:l,blending:0});r.uniforms.tEquirect.value=e;const o=new Mi(i,r),a=e.minFilter;e.minFilter===Z&&(e.minFilter=X);return new Yi(1,10,this).update(t,o),e.minFilter=a,o.geometry.dispose(),o.material.dispose(),this}clear(t,e,n,i){const r=t.getRenderTarget();for(let r=0;r<6;r++)t.setRenderTarget(this,r),t.clear(e,n,i);t.setRenderTarget(r)}}const Gi=new Me,Xi=new Me,Ki=new re;class Zi{constructor(t=new Me(1,0,0),e=0){this.isPlane=!0,this.normal=t,this.constant=e}set(t,e){return this.normal.copy(t),this.constant=e,this}setComponents(t,e,n,i){return this.normal.set(t,e,n),this.constant=i,this}setFromNormalAndCoplanarPoint(t,e){return this.normal.copy(t),this.constant=-e.dot(this.normal),this}setFromCoplanarPoints(t,e,n){const i=Gi.subVectors(n,e).cross(Xi.subVectors(t,e)).normalize();return this.setFromNormalAndCoplanarPoint(i,t),this}copy(t){return this.normal.copy(t.normal),this.constant=t.constant,this}normalize(){const t=1/this.normal.length();return this.normal.multiplyScalar(t),this.constant*=t,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(t){return this.normal.dot(t)+this.constant}distanceToSphere(t){return this.distanceToPoint(t.center)-t.radius}projectPoint(t,e){return e.copy(t).addScaledVector(this.normal,-this.distanceToPoint(t))}intersectLine(t,e){const n=t.delta(Gi),i=this.normal.dot(n);if(0===i)return 0===this.distanceToPoint(t.start)?e.copy(t.start):null;const r=-(t.start.dot(this.normal)+this.constant)/i;return r<0||r>1?null:e.copy(t.start).addScaledVector(n,r)}intersectsLine(t){const e=this.distanceToPoint(t.start),n=this.distanceToPoint(t.end);return e<0&&n>0||n<0&&e>0}intersectsBox(t){return t.intersectsPlane(this)}intersectsSphere(t){return t.intersectsPlane(this)}coplanarPoint(t){return t.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(t,e){const n=e||Ki.getNormalMatrix(t),i=this.coplanarPoint(Gi).applyMatrix4(t),r=this.normal.applyMatrix3(n).normalize();return this.constant=-i.dot(r),this}translate(t){return this.constant-=t.dot(this.normal),this}equals(t){return t.normal.equals(this.normal)&&t.constant===this.constant}clone(){return(new this.constructor).copy(this)}}const Ji=new Je,Qi=new Me;class tr{constructor(t=new Zi,e=new Zi,n=new Zi,i=new Zi,r=new Zi,o=new Zi){this.planes=[t,e,n,i,r,o]}set(t,e,n,i,r,o){const a=this.planes;return a[0].copy(t),a[1].copy(e),a[2].copy(n),a[3].copy(i),a[4].copy(r),a[5].copy(o),this}copy(t){const e=this.planes;for(let n=0;n<6;n++)e[n].copy(t.planes[n]);return this}setFromProjectionMatrix(t,e=2e3){const n=this.planes,i=t.elements,r=i[0],o=i[1],a=i[2],s=i[3],l=i[4],c=i[5],u=i[6],d=i[7],h=i[8],p=i[9],f=i[10],m=i[11],v=i[12],g=i[13],b=i[14],y=i[15];if(n[0].setComponents(s-r,d-l,m-h,y-v).normalize(),n[1].setComponents(s+r,d+l,m+h,y+v).normalize(),n[2].setComponents(s+o,d+c,m+p,y+g).normalize(),n[3].setComponents(s-o,d-c,m-p,y-g).normalize(),n[4].setComponents(s-a,d-u,m-f,y-b).normalize(),e===$t)n[5].setComponents(s+a,d+u,m+f,y+b).normalize();else{if(e!==Ut)throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+e);n[5].setComponents(a,u,f,b).normalize()}return this}intersectsObject(t){if(void 0!==t.boundingSphere)null===t.boundingSphere&&t.computeBoundingSphere(),Ji.copy(t.boundingSphere).applyMatrix4(t.matrixWorld);else{const e=t.geometry;null===e.boundingSphere&&e.computeBoundingSphere(),Ji.copy(e.boundingSphere).applyMatrix4(t.matrixWorld)}return this.intersectsSphere(Ji)}intersectsSprite(t){return Ji.center.set(0,0,0),Ji.radius=.7071067811865476,Ji.applyMatrix4(t.matrixWorld),this.intersectsSphere(Ji)}intersectsSphere(t){const e=this.planes,n=t.center,i=-t.radius;for(let t=0;t<6;t++){if(e[t].distanceToPoint(n)<i)return!1}return!0}intersectsBox(t){const e=this.planes;for(let n=0;n<6;n++){const i=e[n];if(Qi.x=i.normal.x>0?t.max.x:t.min.x,Qi.y=i.normal.y>0?t.max.y:t.min.y,Qi.z=i.normal.z>0?t.max.z:t.min.z,i.distanceToPoint(Qi)<0)return!1}return!0}containsPoint(t){const e=this.planes;for(let n=0;n<6;n++)if(e[n].distanceToPoint(t)<0)return!1;return!0}clone(){return(new this.constructor).copy(this)}}function er(){let t=null,e=!1,n=null,i=null;function r(e,o){n(e,o),i=t.requestAnimationFrame(r)}return{start:function(){!0!==e&&null!==n&&(i=t.requestAnimationFrame(r),e=!0)},stop:function(){t.cancelAnimationFrame(i),e=!1},setAnimationLoop:function(t){n=t},setContext:function(e){t=e}}}function nr(t,e){const n=e.isWebGL2,i=new WeakMap;return{get:function(t){return t.isInterleavedBufferAttribute&&(t=t.data),i.get(t)},remove:function(e){e.isInterleavedBufferAttribute&&(e=e.data);const n=i.get(e);n&&(t.deleteBuffer(n.buffer),i.delete(e))},update:function(e,r){if(e.isGLBufferAttribute){const t=i.get(e);return void((!t||t.version<e.version)&&i.set(e,{buffer:e.buffer,type:e.type,bytesPerElement:e.elementSize,version:e.version}))}e.isInterleavedBufferAttribute&&(e=e.data);const o=i.get(e);if(void 0===o)i.set(e,function(e,i){const r=e.array,o=e.usage,a=r.byteLength,s=t.createBuffer();let l;if(t.bindBuffer(i,s),t.bufferData(i,r,o),e.onUploadCallback(),r instanceof Float32Array)l=t.FLOAT;else if(r instanceof Uint16Array)if(e.isFloat16BufferAttribute){if(!n)throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");l=t.HALF_FLOAT}else l=t.UNSIGNED_SHORT;else if(r instanceof Int16Array)l=t.SHORT;else if(r instanceof Uint32Array)l=t.UNSIGNED_INT;else if(r instanceof Int32Array)l=t.INT;else if(r instanceof Int8Array)l=t.BYTE;else if(r instanceof Uint8Array)l=t.UNSIGNED_BYTE;else{if(!(r instanceof Uint8ClampedArray))throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+r);l=t.UNSIGNED_BYTE}return{buffer:s,type:l,bytesPerElement:r.BYTES_PER_ELEMENT,version:e.version,size:a}}(e,r));else if(o.version<e.version){if(o.size!==e.array.byteLength)throw new Error("THREE.WebGLAttributes: The size of the buffer attribute's array buffer does not match the original size. Resizing buffer attributes is not supported.");!function(e,i,r){const o=i.array,a=i._updateRange,s=i.updateRanges;if(t.bindBuffer(r,e),-1===a.count&&0===s.length&&t.bufferSubData(r,0,o),0!==s.length){for(let e=0,i=s.length;e<i;e++){const i=s[e];n?t.bufferSubData(r,i.start*o.BYTES_PER_ELEMENT,o,i.start,i.count):t.bufferSubData(r,i.start*o.BYTES_PER_ELEMENT,o.subarray(i.start,i.start+i.count))}i.clearUpdateRanges()}-1!==a.count&&(n?t.bufferSubData(r,a.offset*o.BYTES_PER_ELEMENT,o,a.offset,a.count):t.bufferSubData(r,a.offset*o.BYTES_PER_ELEMENT,o.subarray(a.offset,a.offset+a.count)),a.count=-1),i.onUploadCallback()}(o.buffer,e,r),o.version=e.version}}}}class ir extends pi{constructor(t=1,e=1,n=1,i=1){super(),this.type="PlaneGeometry",this.parameters={width:t,height:e,widthSegments:n,heightSegments:i};const r=t/2,o=e/2,a=Math.floor(n),s=Math.floor(i),l=a+1,c=s+1,u=t/a,d=e/s,h=[],p=[],f=[],m=[];for(let t=0;t<c;t++){const e=t*d-o;for(let n=0;n<l;n++){const i=n*u-r;p.push(i,-e,0),f.push(0,0,1),m.push(n/a),m.push(1-t/s)}}for(let t=0;t<s;t++)for(let e=0;e<a;e++){const n=e+l*t,i=e+l*(t+1),r=e+1+l*(t+1),o=e+1+l*t;h.push(n,i,o),h.push(i,r,o)}this.setIndex(h),this.setAttribute("position",new oi(p,3)),this.setAttribute("normal",new oi(f,3)),this.setAttribute("uv",new oi(m,2))}copy(t){return super.copy(t),this.parameters=Object.assign({},t.parameters),this}static fromJSON(t){return new ir(t.width,t.height,t.widthSegments,t.heightSegments)}}const rr={alphahash_fragment:"#ifdef USE_ALPHAHASH\n\tif ( diffuseColor.a < getAlphaHashThreshold( vPosition ) ) discard;\n#endif",alphahash_pars_fragment:"#ifdef USE_ALPHAHASH\n\tconst float ALPHA_HASH_SCALE = 0.05;\n\tfloat hash2D( vec2 value ) {\n\t\treturn fract( 1.0e4 * sin( 17.0 * value.x + 0.1 * value.y ) * ( 0.1 + abs( sin( 13.0 * value.y + value.x ) ) ) );\n\t}\n\tfloat hash3D( vec3 value ) {\n\t\treturn hash2D( vec2( hash2D( value.xy ), value.z ) );\n\t}\n\tfloat getAlphaHashThreshold( vec3 position ) {\n\t\tfloat maxDeriv = max(\n\t\t\tlength( dFdx( position.xyz ) ),\n\t\t\tlength( dFdy( position.xyz ) )\n\t\t);\n\t\tfloat pixScale = 1.0 / ( ALPHA_HASH_SCALE * maxDeriv );\n\t\tvec2 pixScales = vec2(\n\t\t\texp2( floor( log2( pixScale ) ) ),\n\t\t\texp2( ceil( log2( pixScale ) ) )\n\t\t);\n\t\tvec2 alpha = vec2(\n\t\t\thash3D( floor( pixScales.x * position.xyz ) ),\n\t\t\thash3D( floor( pixScales.y * position.xyz ) )\n\t\t);\n\t\tfloat lerpFactor = fract( log2( pixScale ) );\n\t\tfloat x = ( 1.0 - lerpFactor ) * alpha.x + lerpFactor * alpha.y;\n\t\tfloat a = min( lerpFactor, 1.0 - lerpFactor );\n\t\tvec3 cases = vec3(\n\t\t\tx * x / ( 2.0 * a * ( 1.0 - a ) ),\n\t\t\t( x - 0.5 * a ) / ( 1.0 - a ),\n\t\t\t1.0 - ( ( 1.0 - x ) * ( 1.0 - x ) / ( 2.0 * a * ( 1.0 - a ) ) )\n\t\t);\n\t\tfloat threshold = ( x < ( 1.0 - a ) )\n\t\t\t? ( ( x < a ) ? cases.x : cases.y )\n\t\t\t: cases.z;\n\t\treturn clamp( threshold , 1.0e-6, 1.0 );\n\t}\n#endif",alphamap_fragment:"#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vAlphaMapUv ).g;\n#endif",alphamap_pars_fragment:"#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",alphatest_fragment:"#ifdef USE_ALPHATEST\n\t#ifdef ALPHA_TO_COVERAGE\n\tdiffuseColor.a = smoothstep( alphaTest, alphaTest + fwidth( diffuseColor.a ), diffuseColor.a );\n\tif ( diffuseColor.a == 0.0 ) discard;\n\t#else\n\tif ( diffuseColor.a < alphaTest ) discard;\n\t#endif\n#endif",alphatest_pars_fragment:"#ifdef USE_ALPHATEST\n\tuniform float alphaTest;\n#endif",aomap_fragment:"#ifdef USE_AOMAP\n\tfloat ambientOcclusion = ( texture2D( aoMap, vAoMapUv ).r - 1.0 ) * aoMapIntensity + 1.0;\n\treflectedLight.indirectDiffuse *= ambientOcclusion;\n\t#if defined( USE_CLEARCOAT ) \n\t\tclearcoatSpecularIndirect *= ambientOcclusion;\n\t#endif\n\t#if defined( USE_SHEEN ) \n\t\tsheenSpecularIndirect *= ambientOcclusion;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD )\n\t\tfloat dotNV = saturate( dot( geometryNormal, geometryViewDir ) );\n\t\treflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );\n\t#endif\n#endif",aomap_pars_fragment:"#ifdef USE_AOMAP\n\tuniform sampler2D aoMap;\n\tuniform float aoMapIntensity;\n#endif",batching_pars_vertex:"#ifdef USE_BATCHING\n\tattribute float batchId;\n\tuniform highp sampler2D batchingTexture;\n\tmat4 getBatchingMatrix( const in float i ) {\n\t\tint size = textureSize( batchingTexture, 0 ).x;\n\t\tint j = int( i ) * 4;\n\t\tint x = j % size;\n\t\tint y = j / size;\n\t\tvec4 v1 = texelFetch( batchingTexture, ivec2( x, y ), 0 );\n\t\tvec4 v2 = texelFetch( batchingTexture, ivec2( x + 1, y ), 0 );\n\t\tvec4 v3 = texelFetch( batchingTexture, ivec2( x + 2, y ), 0 );\n\t\tvec4 v4 = texelFetch( batchingTexture, ivec2( x + 3, y ), 0 );\n\t\treturn mat4( v1, v2, v3, v4 );\n\t}\n#endif",batching_vertex:"#ifdef USE_BATCHING\n\tmat4 batchingMatrix = getBatchingMatrix( batchId );\n#endif",begin_vertex:"vec3 transformed = vec3( position );\n#ifdef USE_ALPHAHASH\n\tvPosition = vec3( position );\n#endif",beginnormal_vertex:"vec3 objectNormal = vec3( normal );\n#ifdef USE_TANGENT\n\tvec3 objectTangent = vec3( tangent.xyz );\n#endif",bsdfs:"float G_BlinnPhong_Implicit( ) {\n\treturn 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n\treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, 1.0, dotVH );\n\tfloat G = G_BlinnPhong_Implicit( );\n\tfloat D = D_BlinnPhong( shininess, dotNH );\n\treturn F * ( G * D );\n} // validated",iridescence_fragment:"#ifdef USE_IRIDESCENCE\n\tconst mat3 XYZ_TO_REC709 = mat3(\n\t\t 3.2404542, -0.9692660,  0.0556434,\n\t\t-1.5371385,  1.8760108, -0.2040259,\n\t\t-0.4985314,  0.0415560,  1.0572252\n\t);\n\tvec3 Fresnel0ToIor( vec3 fresnel0 ) {\n\t\tvec3 sqrtF0 = sqrt( fresnel0 );\n\t\treturn ( vec3( 1.0 ) + sqrtF0 ) / ( vec3( 1.0 ) - sqrtF0 );\n\t}\n\tvec3 IorToFresnel0( vec3 transmittedIor, float incidentIor ) {\n\t\treturn pow2( ( transmittedIor - vec3( incidentIor ) ) / ( transmittedIor + vec3( incidentIor ) ) );\n\t}\n\tfloat IorToFresnel0( float transmittedIor, float incidentIor ) {\n\t\treturn pow2( ( transmittedIor - incidentIor ) / ( transmittedIor + incidentIor ));\n\t}\n\tvec3 evalSensitivity( float OPD, vec3 shift ) {\n\t\tfloat phase = 2.0 * PI * OPD * 1.0e-9;\n\t\tvec3 val = vec3( 5.4856e-13, 4.4201e-13, 5.2481e-13 );\n\t\tvec3 pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 );\n\t\tvec3 var = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 );\n\t\tvec3 xyz = val * sqrt( 2.0 * PI * var ) * cos( pos * phase + shift ) * exp( - pow2( phase ) * var );\n\t\txyz.x += 9.7470e-14 * sqrt( 2.0 * PI * 4.5282e+09 ) * cos( 2.2399e+06 * phase + shift[ 0 ] ) * exp( - 4.5282e+09 * pow2( phase ) );\n\t\txyz /= 1.0685e-7;\n\t\tvec3 rgb = XYZ_TO_REC709 * xyz;\n\t\treturn rgb;\n\t}\n\tvec3 evalIridescence( float outsideIOR, float eta2, float cosTheta1, float thinFilmThickness, vec3 baseF0 ) {\n\t\tvec3 I;\n\t\tfloat iridescenceIOR = mix( outsideIOR, eta2, smoothstep( 0.0, 0.03, thinFilmThickness ) );\n\t\tfloat sinTheta2Sq = pow2( outsideIOR / iridescenceIOR ) * ( 1.0 - pow2( cosTheta1 ) );\n\t\tfloat cosTheta2Sq = 1.0 - sinTheta2Sq;\n\t\tif ( cosTheta2Sq < 0.0 ) {\n\t\t\treturn vec3( 1.0 );\n\t\t}\n\t\tfloat cosTheta2 = sqrt( cosTheta2Sq );\n\t\tfloat R0 = IorToFresnel0( iridescenceIOR, outsideIOR );\n\t\tfloat R12 = F_Schlick( R0, 1.0, cosTheta1 );\n\t\tfloat T121 = 1.0 - R12;\n\t\tfloat phi12 = 0.0;\n\t\tif ( iridescenceIOR < outsideIOR ) phi12 = PI;\n\t\tfloat phi21 = PI - phi12;\n\t\tvec3 baseIOR = Fresnel0ToIor( clamp( baseF0, 0.0, 0.9999 ) );\t\tvec3 R1 = IorToFresnel0( baseIOR, iridescenceIOR );\n\t\tvec3 R23 = F_Schlick( R1, 1.0, cosTheta2 );\n\t\tvec3 phi23 = vec3( 0.0 );\n\t\tif ( baseIOR[ 0 ] < iridescenceIOR ) phi23[ 0 ] = PI;\n\t\tif ( baseIOR[ 1 ] < iridescenceIOR ) phi23[ 1 ] = PI;\n\t\tif ( baseIOR[ 2 ] < iridescenceIOR ) phi23[ 2 ] = PI;\n\t\tfloat OPD = 2.0 * iridescenceIOR * thinFilmThickness * cosTheta2;\n\t\tvec3 phi = vec3( phi21 ) + phi23;\n\t\tvec3 R123 = clamp( R12 * R23, 1e-5, 0.9999 );\n\t\tvec3 r123 = sqrt( R123 );\n\t\tvec3 Rs = pow2( T121 ) * R23 / ( vec3( 1.0 ) - R123 );\n\t\tvec3 C0 = R12 + Rs;\n\t\tI = C0;\n\t\tvec3 Cm = Rs - T121;\n\t\tfor ( int m = 1; m <= 2; ++ m ) {\n\t\t\tCm *= r123;\n\t\t\tvec3 Sm = 2.0 * evalSensitivity( float( m ) * OPD, float( m ) * phi );\n\t\t\tI += Cm * Sm;\n\t\t}\n\t\treturn max( I, vec3( 0.0 ) );\n\t}\n#endif",bumpmap_pars_fragment:"#ifdef USE_BUMPMAP\n\tuniform sampler2D bumpMap;\n\tuniform float bumpScale;\n\tvec2 dHdxy_fwd() {\n\t\tvec2 dSTdx = dFdx( vBumpMapUv );\n\t\tvec2 dSTdy = dFdy( vBumpMapUv );\n\t\tfloat Hll = bumpScale * texture2D( bumpMap, vBumpMapUv ).x;\n\t\tfloat dBx = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdx ).x - Hll;\n\t\tfloat dBy = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdy ).x - Hll;\n\t\treturn vec2( dBx, dBy );\n\t}\n\tvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {\n\t\tvec3 vSigmaX = normalize( dFdx( surf_pos.xyz ) );\n\t\tvec3 vSigmaY = normalize( dFdy( surf_pos.xyz ) );\n\t\tvec3 vN = surf_norm;\n\t\tvec3 R1 = cross( vSigmaY, vN );\n\t\tvec3 R2 = cross( vN, vSigmaX );\n\t\tfloat fDet = dot( vSigmaX, R1 ) * faceDirection;\n\t\tvec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\n\t\treturn normalize( abs( fDet ) * surf_norm - vGrad );\n\t}\n#endif",clipping_planes_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvec4 plane;\n\t#ifdef ALPHA_TO_COVERAGE\n\t\tfloat distanceToPlane, distanceGradient;\n\t\tfloat clipOpacity = 1.0;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tdistanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n\t\t\tdistanceGradient = fwidth( distanceToPlane ) / 2.0;\n\t\t\tclipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n\t\t\tif ( clipOpacity == 0.0 ) discard;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\t\tfloat unionClipOpacity = 1.0;\n\t\t\t#pragma unroll_loop_start\n\t\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\t\tplane = clippingPlanes[ i ];\n\t\t\t\tdistanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n\t\t\t\tdistanceGradient = fwidth( distanceToPlane ) / 2.0;\n\t\t\t\tunionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n\t\t\t}\n\t\t\t#pragma unroll_loop_end\n\t\t\tclipOpacity *= 1.0 - unionClipOpacity;\n\t\t#endif\n\t\tdiffuseColor.a *= clipOpacity;\n\t\tif ( diffuseColor.a == 0.0 ) discard;\n\t#else\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\t\tbool clipped = true;\n\t\t\t#pragma unroll_loop_start\n\t\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\t\tplane = clippingPlanes[ i ];\n\t\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t\t}\n\t\t\t#pragma unroll_loop_end\n\t\t\tif ( clipped ) discard;\n\t\t#endif\n\t#endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nvec3 pow2( const in vec3 x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\n#ifdef USE_ALPHAHASH\n\tvarying vec3 vPosition;\n#endif\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat luminance( const in vec3 rgb ) {\n\tconst vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 );\n\treturn dot( weights, rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}\nvec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat F_Schlick( const in float f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n} // validated",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\thighp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tuv.x += filterInt * 3.0 * cubeUV_minTileSize;\n\t\tuv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n\t\tuv.x *= CUBEUV_TEXEL_WIDTH;\n\t\tuv.y *= CUBEUV_TEXEL_HEIGHT;\n\t\t#ifdef texture2DGradEXT\n\t\t\treturn texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n\t\t#else\n\t\t\treturn texture2D( envMap, uv ).rgb;\n\t\t#endif\n\t}\n\t#define cubeUV_r0 1.0\n\t#define cubeUV_m0 - 2.0\n\t#define cubeUV_r1 0.8\n\t#define cubeUV_m1 - 1.0\n\t#define cubeUV_r4 0.4\n\t#define cubeUV_m4 2.0\n\t#define cubeUV_r5 0.305\n\t#define cubeUV_m5 3.0\n\t#define cubeUV_r6 0.21\n\t#define cubeUV_m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= cubeUV_r1 ) {\n\t\t\tmip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;\n\t\t} else if ( roughness >= cubeUV_r4 ) {\n\t\t\tmip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;\n\t\t} else if ( roughness >= cubeUV_r5 ) {\n\t\t\tmip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;\n\t\t} else if ( roughness >= cubeUV_r6 ) {\n\t\t\tmip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = objectTangent;\n#endif\n#ifdef USE_BATCHING\n\tmat3 bm = mat3( batchingMatrix );\n\ttransformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) );\n\ttransformedNormal = bm * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = bm * transformedTangent;\n\t#endif\n#endif\n#ifdef USE_INSTANCING\n\tmat3 im = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) );\n\ttransformedNormal = im * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = im * transformedTangent;\n\t#endif\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\ttransformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",colorspace_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",colorspace_pars_fragment:"\nconst mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3(\n\tvec3( 0.8224621, 0.177538, 0.0 ),\n\tvec3( 0.0331941, 0.9668058, 0.0 ),\n\tvec3( 0.0170827, 0.0723974, 0.9105199 )\n);\nconst mat3 LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.2249401, - 0.2249404, 0.0 ),\n\tvec3( - 0.0420569, 1.0420571, 0.0 ),\n\tvec3( - 0.0196376, - 0.0786361, 1.0982735 )\n);\nvec4 LinearSRGBToLinearDisplayP3( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_SRGB_TO_LINEAR_DISPLAY_P3, value.a );\n}\nvec4 LinearDisplayP3ToLinearSRGB( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_DISPLAY_P3_TO_LINEAR_SRGB, value.a );\n}\nvec4 LinearTransferOETF( in vec4 value ) {\n\treturn value;\n}\nvec4 sRGBTransferOETF( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}\nvec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn sRGBTransferOETF( value );\n}",envmap_fragment:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",envmap_physical_pars_fragment:"#ifdef USE_ENVMAP\n\tvec3 getIBLIrradiance( const in vec3 normal ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 );\n\t\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\tvec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 reflectVec = reflect( - viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );\n\t\t\treturn envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\t#ifdef USE_ANISOTROPY\n\t\tvec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {\n\t\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\t\tvec3 bentNormal = cross( bitangent, viewDir );\n\t\t\t\tbentNormal = normalize( cross( bentNormal, bitangent ) );\n\t\t\t\tbentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );\n\t\t\t\treturn getIBLRadiance( viewDir, bentNormal, roughness );\n\t\t\t#else\n\t\t\t\treturn vec3( 0.0 );\n\t\t\t#endif\n\t\t}\n\t#endif\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",fog_vertex:"#ifdef USE_FOG\n\tvFogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float vFogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float vFogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn vec3( texture2D( gradientMap, coord ).r );\n\t#else\n\t\tvec2 fw = fwidth( coord ) * 0.5;\n\t\treturn mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );\n\t#endif\n}",lightmap_fragment:"#ifdef USE_LIGHTMAP\n\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\treflectedLight.indirectDiffuse += lightMapIrradiance;\n#endif",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_fragment:"LambertMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularStrength = specularStrength;",lights_lambert_pars_fragment:"varying vec3 vViewPosition;\nstruct LambertMaterial {\n\tvec3 diffuseColor;\n\tfloat specularStrength;\n};\nvoid RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Lambert\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Lambert",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\n#if defined( USE_LIGHT_PROBES )\n\tuniform vec3 lightProbe[ 9 ];\n#endif\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\treturn irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\t#if defined ( LEGACY_LIGHTS )\n\t\tif ( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\t\treturn pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t\t}\n\t\treturn 1.0;\n\t#else\n\t\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\t\tif ( cutoffDistance > 0.0 ) {\n\t\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t\t}\n\t\treturn distanceFalloff;\n\t#endif\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n\treturn smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) {\n\t\tlight.color = directionalLight.color;\n\t\tlight.direction = directionalLight.direction;\n\t\tlight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = pointLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tlight.color = pointLight.color;\n\t\tlight.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = spotLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat angleCos = dot( light.direction, spotLight.direction );\n\t\tfloat spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\tif ( spotAttenuation > 0.0 ) {\n\t\t\tfloat lightDistance = length( lVector );\n\t\t\tlight.color = spotLight.color * spotAttenuation;\n\t\t\tlight.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t\t} else {\n\t\t\tlight.color = vec3( 0.0 );\n\t\t\tlight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n\t\tfloat dotNL = dot( normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\treturn irradiance;\n\t}\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n\tmaterial.ior = ior;\n\t#ifdef USE_SPECULAR\n\t\tfloat specularIntensityFactor = specularIntensity;\n\t\tvec3 specularColorFactor = specularColor;\n\t\t#ifdef USE_SPECULAR_COLORMAP\n\t\t\tspecularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;\n\t\t#endif\n\t\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\t\tspecularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;\n\t\t#endif\n\t\tmaterial.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n\t#else\n\t\tfloat specularIntensityFactor = 1.0;\n\t\tvec3 specularColorFactor = vec3( 1.0 );\n\t\tmaterial.specularF90 = 1.0;\n\t#endif\n\tmaterial.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\tmaterial.clearcoatF0 = vec3( 0.04 );\n\tmaterial.clearcoatF90 = 1.0;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_IRIDESCENCE\n\tmaterial.iridescence = iridescence;\n\tmaterial.iridescenceIOR = iridescenceIOR;\n\t#ifdef USE_IRIDESCENCEMAP\n\t\tmaterial.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;\n\t#endif\n\t#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\t\tmaterial.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;\n\t#else\n\t\tmaterial.iridescenceThickness = iridescenceThicknessMaximum;\n\t#endif\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheenColor;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tmaterial.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;\n\t#endif\n\tmaterial.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tmaterial.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\t#ifdef USE_ANISOTROPYMAP\n\t\tmat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );\n\t\tvec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;\n\t\tvec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;\n\t#else\n\t\tvec2 anisotropyV = anisotropyVector;\n\t#endif\n\tmaterial.anisotropy = length( anisotropyV );\n\tif( material.anisotropy == 0.0 ) {\n\t\tanisotropyV = vec2( 1.0, 0.0 );\n\t} else {\n\t\tanisotropyV /= material.anisotropy;\n\t\tmaterial.anisotropy = saturate( material.anisotropy );\n\t}\n\tmaterial.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );\n\tmaterial.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;\n\tmaterial.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat roughness;\n\tvec3 specularColor;\n\tfloat specularF90;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat clearcoat;\n\t\tfloat clearcoatRoughness;\n\t\tvec3 clearcoatF0;\n\t\tfloat clearcoatF90;\n\t#endif\n\t#ifdef USE_IRIDESCENCE\n\t\tfloat iridescence;\n\t\tfloat iridescenceIOR;\n\t\tfloat iridescenceThickness;\n\t\tvec3 iridescenceFresnel;\n\t\tvec3 iridescenceF0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tvec3 sheenColor;\n\t\tfloat sheenRoughness;\n\t#endif\n\t#ifdef IOR\n\t\tfloat ior;\n\t#endif\n\t#ifdef USE_TRANSMISSION\n\t\tfloat transmission;\n\t\tfloat transmissionAlpha;\n\t\tfloat thickness;\n\t\tfloat attenuationDistance;\n\t\tvec3 attenuationColor;\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat anisotropy;\n\t\tfloat alphaT;\n\t\tvec3 anisotropyT;\n\t\tvec3 anisotropyB;\n\t#endif\n};\nvec3 clearcoatSpecularDirect = vec3( 0.0 );\nvec3 clearcoatSpecularIndirect = vec3( 0.0 );\nvec3 sheenSpecularDirect = vec3( 0.0 );\nvec3 sheenSpecularIndirect = vec3(0.0 );\nvec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {\n    float x = clamp( 1.0 - dotVH, 0.0, 1.0 );\n    float x2 = x * x;\n    float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );\n    return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );\n}\nfloat V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\n#ifdef USE_ANISOTROPY\n\tfloat V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) {\n\t\tfloat gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) );\n\t\tfloat gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );\n\t\tfloat v = 0.5 / ( gv + gl );\n\t\treturn saturate(v);\n\t}\n\tfloat D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {\n\t\tfloat a2 = alphaT * alphaB;\n\t\thighp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );\n\t\thighp float v2 = dot( v, v );\n\t\tfloat w2 = a2 / v2;\n\t\treturn RECIPROCAL_PI * a2 * pow2 ( w2 );\n\t}\n#endif\n#ifdef USE_CLEARCOAT\n\tvec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {\n\t\tvec3 f0 = material.clearcoatF0;\n\t\tfloat f90 = material.clearcoatF90;\n\t\tfloat roughness = material.clearcoatRoughness;\n\t\tfloat alpha = pow2( roughness );\n\t\tvec3 halfDir = normalize( lightDir + viewDir );\n\t\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\t\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\t\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\t\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\t\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t\treturn F * ( V * D );\n\t}\n#endif\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {\n\tvec3 f0 = material.specularColor;\n\tfloat f90 = material.specularF90;\n\tfloat roughness = material.roughness;\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t#ifdef USE_IRIDESCENCE\n\t\tF = mix( F, material.iridescenceFresnel, material.iridescence );\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat dotTL = dot( material.anisotropyT, lightDir );\n\t\tfloat dotTV = dot( material.anisotropyT, viewDir );\n\t\tfloat dotTH = dot( material.anisotropyT, halfDir );\n\t\tfloat dotBL = dot( material.anisotropyB, lightDir );\n\t\tfloat dotBV = dot( material.anisotropyB, viewDir );\n\t\tfloat dotBH = dot( material.anisotropyB, halfDir );\n\t\tfloat V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );\n\t\tfloat D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH );\n\t#else\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t#endif\n\treturn F * ( V * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n\tfloat alpha = pow2( roughness );\n\tfloat invAlpha = 1.0 / alpha;\n\tfloat cos2h = dotNH * dotNH;\n\tfloat sin2h = max( 1.0 - cos2h, 0.0078125 );\n\treturn ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n\treturn saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat D = D_Charlie( sheenRoughness, dotNH );\n\tfloat V = V_Neubelt( dotNV, dotNL );\n\treturn sheenColor * ( D * V );\n}\n#endif\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat r2 = roughness * roughness;\n\tfloat a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n\tfloat b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n\tfloat DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n\treturn saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n\treturn fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\treturn specularColor * fab.x + specularF90 * fab.y;\n}\n#ifdef USE_IRIDESCENCE\nvoid computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#else\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#endif\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\t#ifdef USE_IRIDESCENCE\n\t\tvec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n\t#else\n\t\tvec3 Fr = specularColor;\n\t#endif\n\tvec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n\tfloat Ess = fab.x + fab.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometryNormal;\n\t\tvec3 viewDir = geometryViewDir;\n\t\tvec3 position = geometryPosition;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.roughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3(    0, 1,    0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = dotNLcc * directLight.color;\n\t\tclearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness );\n\t#endif\n\treflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material );\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );\n\t#endif\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\t#ifdef USE_IRIDESCENCE\n\t\tcomputeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n\t#else\n\t\tcomputeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n\t#endif\n\tvec3 totalScattering = singleScattering + multiScattering;\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\n\treflectedLight.indirectSpecular += radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",lights_fragment_begin:"\nvec3 geometryPosition = - vViewPosition;\nvec3 geometryNormal = normal;\nvec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\nvec3 geometryClearcoatNormal = vec3( 0.0 );\n#ifdef USE_CLEARCOAT\n\tgeometryClearcoatNormal = clearcoatNormal;\n#endif\n#ifdef USE_IRIDESCENCE\n\tfloat dotNVi = saturate( dot( normal, geometryViewDir ) );\n\tif ( material.iridescenceThickness == 0.0 ) {\n\t\tmaterial.iridescence = 0.0;\n\t} else {\n\t\tmaterial.iridescence = saturate( material.iridescence );\n\t}\n\tif ( material.iridescence > 0.0 ) {\n\t\tmaterial.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n\t\tmaterial.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n\t}\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointLightInfo( pointLight, geometryPosition, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\tvec4 spotColor;\n\tvec3 spotLightCoord;\n\tbool inSpotLightMap;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotLightInfo( spotLight, geometryPosition, directLight );\n\t\t#if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX\n\t\t#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS\n\t\t#else\n\t\t#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#endif\n\t\t#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )\n\t\t\tspotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;\n\t\t\tinSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );\n\t\t\tspotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );\n\t\t\tdirectLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;\n\t\t#endif\n\t\t#undef SPOT_LIGHT_MAP_INDEX\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalLightInfo( directionalLight, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\t#if defined( USE_LIGHT_PROBES )\n\t\tirradiance += getLightProbeIrradiance( lightProbe, geometryNormal );\n\t#endif\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getIBLIrradiance( geometryNormal );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\t#ifdef USE_ANISOTROPY\n\t\tradiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );\n\t#else\n\t\tradiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness );\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tgl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t\tvarying float vIsPerspective;\n\t#else\n\t\tuniform float logDepthBufFC;\n\t#endif\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n\t#else\n\t\tif ( isPerspectiveMatrix( projectionMatrix ) ) {\n\t\t\tgl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;\n\t\t\tgl_Position.z *= gl_Position.w;\n\t\t}\n\t#endif\n#endif",map_fragment:"#ifdef USE_MAP\n\tvec4 sampledDiffuseColor = texture2D( map, vMapUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\tsampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );\n\t\n\t#endif\n\tdiffuseColor *= sampledDiffuseColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t#if defined( USE_POINTS_UV )\n\t\tvec2 uv = vUv;\n\t#else\n\t\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tdiffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_POINTS_UV )\n\tvarying vec2 vUv;\n#else\n\t#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t\tuniform mat3 uvTransform;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphcolor_vertex:"#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )\n\tvColor *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t#if defined( USE_COLOR_ALPHA )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n\t\t#elif defined( USE_COLOR )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];\n\t\t#endif\n\t}\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\t\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\t\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\t\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n\t#endif\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\tuniform float morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tuniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\t\tuniform sampler2DArray morphTargetsTexture;\n\t\tuniform ivec2 morphTargetsTextureSize;\n\t\tvec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n\t\t\tint texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n\t\t\tint y = texelIndex / morphTargetsTextureSize.x;\n\t\t\tint x = texelIndex - y * morphTargetsTextureSize.x;\n\t\t\tivec3 morphUV = ivec3( x, y, morphTargetIndex );\n\t\t\treturn texelFetch( morphTargetsTexture, morphUV, 0 );\n\t\t}\n\t#else\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\tuniform float morphTargetInfluences[ 8 ];\n\t\t#else\n\t\t\tuniform float morphTargetInfluences[ 4 ];\n\t\t#endif\n\t#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\t\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\t\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\t\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t\t#endif\n\t#endif\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = dFdx( vViewPosition );\n\tvec3 fdy = dFdy( vViewPosition );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal *= faceDirection;\n\t#endif\n#endif\n#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn = getTangentFrame( - vViewPosition, normal,\n\t\t#if defined( USE_NORMALMAP )\n\t\t\tvNormalMapUv\n\t\t#elif defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tvClearcoatNormalMapUv\n\t\t#else\n\t\t\tvUv\n\t\t#endif\n\t\t);\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn[0] *= faceDirection;\n\t\ttbn[1] *= faceDirection;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn2[0] *= faceDirection;\n\t\ttbn2[1] *= faceDirection;\n\t#endif\n#endif\nvec3 nonPerturbedNormal = normal;",normal_fragment_maps:"#ifdef USE_NORMALMAP_OBJECTSPACE\n\tnormal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( USE_NORMALMAP_TANGENTSPACE )\n\tvec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\tnormal = normalize( tbn * mapN );\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normal_pars_fragment:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_pars_vertex:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_vertex:"#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef USE_NORMALMAP_OBJECTSPACE\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) )\n\tmat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {\n\t\tvec3 q0 = dFdx( eye_pos.xyz );\n\t\tvec3 q1 = dFdy( eye_pos.xyz );\n\t\tvec2 st0 = dFdx( uv.st );\n\t\tvec2 st1 = dFdy( uv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );\n\t\treturn mat3( T * scale, B * scale, N );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal = nonPerturbedNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\tclearcoatNormal = normalize( tbn2 * clearcoatMapN );\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif",iridescence_pars_fragment:"#ifdef USE_IRIDESCENCEMAP\n\tuniform sampler2D iridescenceMap;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform sampler2D iridescenceThicknessMap;\n#endif",opaque_fragment:"#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= material.transmissionAlpha;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec2 packDepthToRG( in highp float v ) {\n\treturn packDepthToRGBA( v ).yx;\n}\nfloat unpackRGToDepth( const in highp vec2 v ) {\n\treturn unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn depth * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * depth - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_BATCHING\n\tmvPosition = batchingMatrix * mvPosition;\n#endif\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#if NUM_SPOT_LIGHT_MAPS > 0\n\tuniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;\n\t\tbool frustumTest = inFrustum && shadowCoord.z <= 1.0;\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t  f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t  f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tfloat dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\tdp += shadowBias;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\treturn (\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t#endif\n\t}\n#endif",shadowmap_pars_vertex:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tuniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",shadowmap_vertex:"#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )\n\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\tvec4 shadowWorldPosition;\n#endif\n#if defined( USE_SHADOWMAP )\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if NUM_SPOT_LIGHT_COORDS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition;\n\t\t#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t\tshadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;\n\t\t#endif\n\t\tvSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\tuniform highp sampler2D boneTexture;\n\tmat4 getBoneMatrix( const in float i ) {\n\t\tint size = textureSize( boneTexture, 0 ).x;\n\t\tint j = int( i ) * 4;\n\t\tint x = j % size;\n\t\tint y = j / size;\n\t\tvec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 );\n\t\tvec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 );\n\t\tvec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 );\n\t\tvec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 );\n\t\treturn mat4( v1, v2, v3, v4 );\n\t}\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn saturate( toneMappingExposure * color );\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3(  1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108,  1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605,  1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nconst mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.6605, - 0.1246, - 0.0182 ),\n\tvec3( - 0.5876, 1.1329, - 0.1006 ),\n\tvec3( - 0.0728, - 0.0083, 1.1187 )\n);\nconst mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3(\n\tvec3( 0.6274, 0.0691, 0.0164 ),\n\tvec3( 0.3293, 0.9195, 0.0880 ),\n\tvec3( 0.0433, 0.0113, 0.8956 )\n);\nvec3 agxDefaultContrastApprox( vec3 x ) {\n\tvec3 x2 = x * x;\n\tvec3 x4 = x2 * x2;\n\treturn + 15.5 * x4 * x2\n\t\t- 40.14 * x4 * x\n\t\t+ 31.96 * x4\n\t\t- 6.868 * x2 * x\n\t\t+ 0.4298 * x2\n\t\t+ 0.1191 * x\n\t\t- 0.00232;\n}\nvec3 AgXToneMapping( vec3 color ) {\n\tconst mat3 AgXInsetMatrix = mat3(\n\t\tvec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ),\n\t\tvec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ),\n\t\tvec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 )\n\t);\n\tconst mat3 AgXOutsetMatrix = mat3(\n\t\tvec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ),\n\t\tvec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ),\n\t\tvec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 )\n\t);\n\tconst float AgxMinEv = - 12.47393;\tconst float AgxMaxEv = 4.026069;\n\tcolor *= toneMappingExposure;\n\tcolor = LINEAR_SRGB_TO_LINEAR_REC2020 * color;\n\tcolor = AgXInsetMatrix * color;\n\tcolor = max( color, 1e-10 );\tcolor = log2( color );\n\tcolor = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv );\n\tcolor = clamp( color, 0.0, 1.0 );\n\tcolor = agxDefaultContrastApprox( color );\n\tcolor = AgXOutsetMatrix * color;\n\tcolor = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) );\n\tcolor = LINEAR_REC2020_TO_LINEAR_SRGB * color;\n\tcolor = clamp( color, 0.0, 1.0 );\n\treturn color;\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmission_fragment:"#ifdef USE_TRANSMISSION\n\tmaterial.transmission = transmission;\n\tmaterial.transmissionAlpha = 1.0;\n\tmaterial.thickness = thickness;\n\tmaterial.attenuationDistance = attenuationDistance;\n\tmaterial.attenuationColor = attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tmaterial.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tmaterial.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition;\n\tvec3 v = normalize( cameraPosition - pos );\n\tvec3 n = inverseTransformDirection( normal, viewMatrix );\n\tvec4 transmitted = getIBLVolumeRefraction(\n\t\tn, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, material.ior, material.thickness,\n\t\tmaterial.attenuationColor, material.attenuationDistance );\n\tmaterial.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );\n\ttotalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );\n#endif",transmission_pars_fragment:"#ifdef USE_TRANSMISSION\n\tuniform float transmission;\n\tuniform float thickness;\n\tuniform float attenuationDistance;\n\tuniform vec3 attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec3 vWorldPosition;\n\tfloat w0( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );\n\t}\n\tfloat w1( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a *  a * ( 3.0 * a - 6.0 ) + 4.0 );\n\t}\n\tfloat w2( float a ){\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );\n\t}\n\tfloat w3( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * a );\n\t}\n\tfloat g0( float a ) {\n\t\treturn w0( a ) + w1( a );\n\t}\n\tfloat g1( float a ) {\n\t\treturn w2( a ) + w3( a );\n\t}\n\tfloat h0( float a ) {\n\t\treturn - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );\n\t}\n\tfloat h1( float a ) {\n\t\treturn 1.0 + w3( a ) / ( w2( a ) + w3( a ) );\n\t}\n\tvec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {\n\t\tuv = uv * texelSize.zw + 0.5;\n\t\tvec2 iuv = floor( uv );\n\t\tvec2 fuv = fract( uv );\n\t\tfloat g0x = g0( fuv.x );\n\t\tfloat g1x = g1( fuv.x );\n\t\tfloat h0x = h0( fuv.x );\n\t\tfloat h1x = h1( fuv.x );\n\t\tfloat h0y = h0( fuv.y );\n\t\tfloat h1y = h1( fuv.y );\n\t\tvec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\treturn g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +\n\t\t\tg1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );\n\t}\n\tvec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {\n\t\tvec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );\n\t\tvec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );\n\t\tvec2 fLodSizeInv = 1.0 / fLodSize;\n\t\tvec2 cLodSizeInv = 1.0 / cLodSize;\n\t\tvec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );\n\t\tvec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );\n\t\treturn mix( fSample, cSample, fract( lod ) );\n\t}\n\tvec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n\t\tvec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n\t\tmodelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n\t\tmodelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n\t\treturn normalize( refractionVector ) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness( const in float roughness, const in float ior ) {\n\t\treturn roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n\t}\n\tvec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n\t\tfloat lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n\t\treturn textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );\n\t}\n\tvec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tif ( isinf( attenuationDistance ) ) {\n\t\t\treturn vec3( 1.0 );\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n\t\t\tvec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );\t\t\treturn transmittance;\n\t\t}\n\t}\n\tvec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n\t\tconst in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n\t\tconst in mat4 viewMatrix, const in mat4 projMatrix, const in float ior, const in float thickness,\n\t\tconst in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\trefractionCoords += 1.0;\n\t\trefractionCoords /= 2.0;\n\t\tvec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n\t\tvec3 transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance );\n\t\tvec3 attenuatedColor = transmittance * transmittedLight.rgb;\n\t\tvec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n\t\tfloat transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;\n\t\treturn vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );\n\t}\n#endif",uv_pars_fragment:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_pars_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tuniform mat3 mapTransform;\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform mat3 alphaMapTransform;\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tuniform mat3 lightMapTransform;\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tuniform mat3 aoMapTransform;\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tuniform mat3 bumpMapTransform;\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tuniform mat3 normalMapTransform;\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tuniform mat3 displacementMapTransform;\n\tvarying vec2 vDisplacementMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tuniform mat3 emissiveMapTransform;\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tuniform mat3 metalnessMapTransform;\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tuniform mat3 roughnessMapTransform;\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tuniform mat3 anisotropyMapTransform;\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tuniform mat3 clearcoatMapTransform;\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform mat3 clearcoatNormalMapTransform;\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform mat3 clearcoatRoughnessMapTransform;\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tuniform mat3 sheenColorMapTransform;\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tuniform mat3 sheenRoughnessMapTransform;\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tuniform mat3 iridescenceMapTransform;\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform mat3 iridescenceThicknessMapTransform;\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tuniform mat3 specularMapTransform;\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tuniform mat3 specularColorMapTransform;\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tuniform mat3 specularIntensityMapTransform;\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvUv = vec3( uv, 1 ).xy;\n#endif\n#ifdef USE_MAP\n\tvMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ALPHAMAP\n\tvAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_LIGHTMAP\n\tvLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_AOMAP\n\tvAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_BUMPMAP\n\tvBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_NORMALMAP\n\tvNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tvDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_METALNESSMAP\n\tvMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULARMAP\n\tvSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tvTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_THICKNESSMAP\n\tvThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_BATCHING\n\t\tworldPosition = batchingMatrix * worldPosition;\n\t#endif\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",background_frag:"uniform sampler2D t2D;\nuniform float backgroundIntensity;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\ttexColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",backgroundCube_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}",backgroundCube_frag:"#ifdef ENVMAP_TYPE_CUBE\n\tuniform samplerCube envMap;\n#elif defined( ENVMAP_TYPE_CUBE_UV )\n\tuniform sampler2D envMap;\n#endif\nuniform float flipEnvMap;\nuniform float backgroundBlurriness;\nuniform float backgroundIntensity;\nvarying vec3 vWorldDirection;\n#include <cube_uv_reflection_fragment>\nvoid main() {\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 texColor = textureCube( envMap, vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 texColor = textureCubeUV( envMap, vWorldDirection, backgroundBlurriness );\n\t#else\n\t\tvec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",cube_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}",cube_frag:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n\tvec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n\tgl_FragColor = texColor;\n\tgl_FragColor.a *= opacity;\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",depth_vert:"#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <uv_vertex>\n\t#include <batching_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvHighPrecisionZW = gl_Position.zw;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <clipping_planes_fragment>\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <logdepthbuf_fragment>\n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <batching_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\tvWorldPosition = worldPosition.xyz;\n}",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main () {\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <clipping_planes_fragment>\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include <common>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",meshbasic_vert:"#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinbase_vertex>\n\t\t#include <skinnormal_vertex>\n\t\t#include <defaultnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <fog_vertex>\n}",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <specularmap_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\treflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include <aomap_fragment>\n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include <envmap_fragment>\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshlambert_frag:"#define LAMBERT\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_lambert_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_lambert_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n\tvViewPosition = - mvPosition.xyz;\n}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t#else\n\t\tvec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshnormal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",meshnormal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include <packing>\n#include <uv_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity );\n\t#include <clipping_planes_fragment>\n\t#include <logdepthbuf_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tgl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a );\n\t#ifdef OPAQUE\n\t\tgl_FragColor.a = 1.0;\n\t#endif\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_phong_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_phong_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshphysical_vert:"#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n\tvarying vec3 vWorldPosition;\n#endif\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n#ifdef USE_TRANSMISSION\n\tvWorldPosition = worldPosition.xyz;\n#endif\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define IOR\n\t#define USE_SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n\tuniform float ior;\n#endif\n#ifdef USE_SPECULAR\n\tuniform float specularIntensity;\n\tuniform vec3 specularColor;\n\t#ifdef USE_SPECULAR_COLORMAP\n\t\tuniform sampler2D specularColorMap;\n\t#endif\n\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\tuniform sampler2D specularIntensityMap;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_IRIDESCENCE\n\tuniform float iridescence;\n\tuniform float iridescenceIOR;\n\tuniform float iridescenceThicknessMinimum;\n\tuniform float iridescenceThicknessMaximum;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheenColor;\n\tuniform float sheenRoughness;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tuniform sampler2D sheenColorMap;\n\t#endif\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tuniform sampler2D sheenRoughnessMap;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\tuniform vec2 anisotropyVector;\n\t#ifdef USE_ANISOTROPYMAP\n\t\tuniform sampler2D anisotropyMap;\n\t#endif\n#endif\nvarying vec3 vViewPosition;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <iridescence_fragment>\n#include <cube_uv_reflection_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_physical_pars_fragment>\n#include <fog_pars_fragment>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_physical_pars_fragment>\n#include <transmission_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <clearcoat_pars_fragment>\n#include <iridescence_pars_fragment>\n#include <roughnessmap_pars_fragment>\n#include <metalnessmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <roughnessmap_fragment>\n\t#include <metalnessmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <clearcoat_normal_fragment_begin>\n\t#include <clearcoat_normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_physical_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n\t#include <transmission_fragment>\n\tvec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n\t#ifdef USE_SHEEN\n\t\tfloat sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n\t\toutgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect;\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) );\n\t\tvec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n\t\toutgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat;\n\t#endif\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshtoon_vert:"#define TOON\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshtoon_frag:"#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <gradientmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_toon_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_toon_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",points_vert:"uniform float size;\nuniform float scale;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\n#ifdef USE_POINTS_UV\n\tvarying vec2 vUv;\n\tuniform mat3 uvTransform;\n#endif\nvoid main() {\n\t#ifdef USE_POINTS_UV\n\t\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\t#endif\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <fog_vertex>\n}",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <color_pars_fragment>\n#include <map_particle_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include <logdepthbuf_fragment>\n\t#include <map_particle_fragment>\n\t#include <color_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",shadow_vert:"#include <common>\n#include <batching_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <shadowmap_pars_vertex>\nvoid main() {\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <logdepthbuf_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n\t#include <logdepthbuf_fragment>\n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n}",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include <common>\n#include <uv_pars_vertex>\n#include <fog_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n}"},or={common:{diffuse:{value:new Xn(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new re},alphaMap:{value:null},alphaMapTransform:{value:new re},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new re}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new re}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new re}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new re},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new re},normalScale:{value:new ie(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new re},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new re}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new re}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new re}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Xn(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Xn(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new re},alphaTest:{value:0},uvTransform:{value:new re}},sprite:{diffuse:{value:new Xn(16777215)},opacity:{value:1},center:{value:new ie(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new re},alphaMap:{value:null},alphaMapTransform:{value:new re},alphaTest:{value:0}}},ar={basic:{uniforms:Ii([or.common,or.specularmap,or.envmap,or.aomap,or.lightmap,or.fog]),vertexShader:rr.meshbasic_vert,fragmentShader:rr.meshbasic_frag},lambert:{uniforms:Ii([or.common,or.specularmap,or.envmap,or.aomap,or.lightmap,or.emissivemap,or.bumpmap,or.normalmap,or.displacementmap,or.fog,or.lights,{emissive:{value:new Xn(0)}}]),vertexShader:rr.meshlambert_vert,fragmentShader:rr.meshlambert_frag},phong:{uniforms:Ii([or.common,or.specularmap,or.envmap,or.aomap,or.lightmap,or.emissivemap,or.bumpmap,or.normalmap,or.displacementmap,or.fog,or.lights,{emissive:{value:new Xn(0)},specular:{value:new Xn(1118481)},shininess:{value:30}}]),vertexShader:rr.meshphong_vert,fragmentShader:rr.meshphong_frag},standard:{uniforms:Ii([or.common,or.envmap,or.aomap,or.lightmap,or.emissivemap,or.bumpmap,or.normalmap,or.displacementmap,or.roughnessmap,or.metalnessmap,or.fog,or.lights,{emissive:{value:new Xn(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:rr.meshphysical_vert,fragmentShader:rr.meshphysical_frag},toon:{uniforms:Ii([or.common,or.aomap,or.lightmap,or.emissivemap,or.bumpmap,or.normalmap,or.displacementmap,or.gradientmap,or.fog,or.lights,{emissive:{value:new Xn(0)}}]),vertexShader:rr.meshtoon_vert,fragmentShader:rr.meshtoon_frag},matcap:{uniforms:Ii([or.common,or.bumpmap,or.normalmap,or.displacementmap,or.fog,{matcap:{value:null}}]),vertexShader:rr.meshmatcap_vert,fragmentShader:rr.meshmatcap_frag},points:{uniforms:Ii([or.points,or.fog]),vertexShader:rr.points_vert,fragmentShader:rr.points_frag},dashed:{uniforms:Ii([or.common,or.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:rr.linedashed_vert,fragmentShader:rr.linedashed_frag},depth:{uniforms:Ii([or.common,or.displacementmap]),vertexShader:rr.depth_vert,fragmentShader:rr.depth_frag},normal:{uniforms:Ii([or.common,or.bumpmap,or.normalmap,or.displacementmap,{opacity:{value:1}}]),vertexShader:rr.meshnormal_vert,fragmentShader:rr.meshnormal_frag},sprite:{uniforms:Ii([or.sprite,or.fog]),vertexShader:rr.sprite_vert,fragmentShader:rr.sprite_frag},background:{uniforms:{uvTransform:{value:new re},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:rr.background_vert,fragmentShader:rr.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:rr.backgroundCube_vert,fragmentShader:rr.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:rr.cube_vert,fragmentShader:rr.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:rr.equirect_vert,fragmentShader:rr.equirect_frag},distanceRGBA:{uniforms:Ii([or.common,or.displacementmap,{referencePosition:{value:new Me},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:rr.distanceRGBA_vert,fragmentShader:rr.distanceRGBA_frag},shadow:{uniforms:Ii([or.lights,or.fog,{color:{value:new Xn(0)},opacity:{value:1}}]),vertexShader:rr.shadow_vert,fragmentShader:rr.shadow_frag}};ar.physical={uniforms:Ii([ar.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new re},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new re},clearcoatNormalScale:{value:new ie(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new re},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new re},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new re},sheen:{value:0},sheenColor:{value:new Xn(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new re},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new re},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new re},transmissionSamplerSize:{value:new ie},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new re},attenuationDistance:{value:0},attenuationColor:{value:new Xn(0)},specularColor:{value:new Xn(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new re},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new re},anisotropyVector:{value:new ie},anisotropyMap:{value:null},anisotropyMapTransform:{value:new re}}]),vertexShader:rr.meshphysical_vert,fragmentShader:rr.meshphysical_frag};const sr={r:0,b:0,g:0};function lr(t,e,n,i,r,o,a){const c=new Xn(0);let u,d,h=!0===o?0:1,p=null,f=0,m=null;function v(e,n){e.getRGB(sr,ji(t)),i.buffers.color.setClear(sr.r,sr.g,sr.b,n,a)}return{getClearColor:function(){return c},setClearColor:function(t,e=1){c.set(t),h=e,v(c,h)},getClearAlpha:function(){return h},setClearAlpha:function(t){h=t,v(c,h)},render:function(o,g){let b=!1,y=!0===g.isScene?g.background:null;if(y&&y.isTexture){y=(g.backgroundBlurriness>0?n:e).get(y)}null===y?v(c,h):y&&y.isColor&&(v(y,1),b=!0);const _=t.xr.getEnvironmentBlendMode();"additive"===_?i.buffers.color.setClear(0,0,0,1,a):"alpha-blend"===_&&i.buffers.color.setClear(0,0,0,0,a),(t.autoClear||b)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),y&&(y.isCubeTexture||y.mapping===U)?(void 0===d&&(d=new Mi(new Di(1,1,1),new Fi({name:"BackgroundCubeMaterial",uniforms:Ri(ar.backgroundCube.uniforms),vertexShader:ar.backgroundCube.vertexShader,fragmentShader:ar.backgroundCube.fragmentShader,side:l,depthTest:!1,depthWrite:!1,fog:!1})),d.geometry.deleteAttribute("normal"),d.geometry.deleteAttribute("uv"),d.onBeforeRender=function(t,e,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(d.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(d)),d.material.uniforms.envMap.value=y,d.material.uniforms.flipEnvMap.value=y.isCubeTexture&&!1===y.isRenderTargetTexture?-1:1,d.material.uniforms.backgroundBlurriness.value=g.backgroundBlurriness,d.material.uniforms.backgroundIntensity.value=g.backgroundIntensity,d.material.toneMapped=me.getTransfer(y.colorSpace)!==Tt,p===y&&f===y.version&&m===t.toneMapping||(d.material.needsUpdate=!0,p=y,f=y.version,m=t.toneMapping),d.layers.enableAll(),o.unshift(d,d.geometry,d.material,0,0,null)):y&&y.isTexture&&(void 0===u&&(u=new Mi(new ir(2,2),new Fi({name:"BackgroundMaterial",uniforms:Ri(ar.background.uniforms),vertexShader:ar.background.vertexShader,fragmentShader:ar.background.fragmentShader,side:s,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),Object.defineProperty(u.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(u)),u.material.uniforms.t2D.value=y,u.material.uniforms.backgroundIntensity.value=g.backgroundIntensity,u.material.toneMapped=me.getTransfer(y.colorSpace)!==Tt,!0===y.matrixAutoUpdate&&y.updateMatrix(),u.material.uniforms.uvTransform.value.copy(y.matrix),p===y&&f===y.version&&m===t.toneMapping||(u.material.needsUpdate=!0,p=y,f=y.version,m=t.toneMapping),u.layers.enableAll(),o.unshift(u,u.geometry,u.material,0,0,null))}}}function cr(t,e,n,i){const r=t.getParameter(t.MAX_VERTEX_ATTRIBS),o=i.isWebGL2?null:e.get("OES_vertex_array_object"),a=i.isWebGL2||null!==o,s={},l=p(null);let c=l,u=!1;function d(e){return i.isWebGL2?t.bindVertexArray(e):o.bindVertexArrayOES(e)}function h(e){return i.isWebGL2?t.deleteVertexArray(e):o.deleteVertexArrayOES(e)}function p(t){const e=[],n=[],i=[];for(let t=0;t<r;t++)e[t]=0,n[t]=0,i[t]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:e,enabledAttributes:n,attributeDivisors:i,object:t,attributes:{},index:null}}function f(){const t=c.newAttributes;for(let e=0,n=t.length;e<n;e++)t[e]=0}function m(t){v(t,0)}function v(n,r){const o=c.newAttributes,a=c.enabledAttributes,s=c.attributeDivisors;if(o[n]=1,0===a[n]&&(t.enableVertexAttribArray(n),a[n]=1),s[n]!==r){(i.isWebGL2?t:e.get("ANGLE_instanced_arrays"))[i.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](n,r),s[n]=r}}function g(){const e=c.newAttributes,n=c.enabledAttributes;for(let i=0,r=n.length;i<r;i++)n[i]!==e[i]&&(t.disableVertexAttribArray(i),n[i]=0)}function b(e,n,i,r,o,a,s){!0===s?t.vertexAttribIPointer(e,n,i,o,a):t.vertexAttribPointer(e,n,i,r,o,a)}function y(){_(),u=!0,c!==l&&(c=l,d(c.object))}function _(){l.geometry=null,l.program=null,l.wireframe=!1}return{setup:function(r,l,h,y,_){let w=!1;if(a){const e=function(e,n,r){const a=!0===r.wireframe;let l=s[e.id];void 0===l&&(l={},s[e.id]=l);let c=l[n.id];void 0===c&&(c={},l[n.id]=c);let u=c[a];void 0===u&&(u=p(i.isWebGL2?t.createVertexArray():o.createVertexArrayOES()),c[a]=u);return u}(y,h,l);c!==e&&(c=e,d(c.object)),w=function(t,e,n,i){const r=c.attributes,o=e.attributes;let a=0;const s=n.getAttributes();for(const e in s){if(s[e].location>=0){const n=r[e];let i=o[e];if(void 0===i&&("instanceMatrix"===e&&t.instanceMatrix&&(i=t.instanceMatrix),"instanceColor"===e&&t.instanceColor&&(i=t.instanceColor)),void 0===n)return!0;if(n.attribute!==i)return!0;if(i&&n.data!==i.data)return!0;a++}}return c.attributesNum!==a||c.index!==i}(r,y,h,_),w&&function(t,e,n,i){const r={},o=e.attributes;let a=0;const s=n.getAttributes();for(const e in s){if(s[e].location>=0){let n=o[e];void 0===n&&("instanceMatrix"===e&&t.instanceMatrix&&(n=t.instanceMatrix),"instanceColor"===e&&t.instanceColor&&(n=t.instanceColor));const i={};i.attribute=n,n&&n.data&&(i.data=n.data),r[e]=i,a++}}c.attributes=r,c.attributesNum=a,c.index=i}(r,y,h,_)}else{const t=!0===l.wireframe;c.geometry===y.id&&c.program===h.id&&c.wireframe===t||(c.geometry=y.id,c.program=h.id,c.wireframe=t,w=!0)}null!==_&&n.update(_,t.ELEMENT_ARRAY_BUFFER),(w||u)&&(u=!1,function(r,o,a,s){if(!1===i.isWebGL2&&(r.isInstancedMesh||s.isInstancedBufferGeometry)&&null===e.get("ANGLE_instanced_arrays"))return;f();const l=s.attributes,c=a.getAttributes(),u=o.defaultAttributeValues;for(const e in c){const o=c[e];if(o.location>=0){let a=l[e];if(void 0===a&&("instanceMatrix"===e&&r.instanceMatrix&&(a=r.instanceMatrix),"instanceColor"===e&&r.instanceColor&&(a=r.instanceColor)),void 0!==a){const e=a.normalized,l=a.itemSize,c=n.get(a);if(void 0===c)continue;const u=c.buffer,d=c.type,h=c.bytesPerElement,p=!0===i.isWebGL2&&(d===t.INT||d===t.UNSIGNED_INT||a.gpuType===tt);if(a.isInterleavedBufferAttribute){const n=a.data,i=n.stride,c=a.offset;if(n.isInstancedInterleavedBuffer){for(let t=0;t<o.locationSize;t++)v(o.location+t,n.meshPerAttribute);!0!==r.isInstancedMesh&&void 0===s._maxInstanceCount&&(s._maxInstanceCount=n.meshPerAttribute*n.count)}else for(let t=0;t<o.locationSize;t++)m(o.location+t);t.bindBuffer(t.ARRAY_BUFFER,u);for(let t=0;t<o.locationSize;t++)b(o.location+t,l/o.locationSize,d,e,i*h,(c+l/o.locationSize*t)*h,p)}else{if(a.isInstancedBufferAttribute){for(let t=0;t<o.locationSize;t++)v(o.location+t,a.meshPerAttribute);!0!==r.isInstancedMesh&&void 0===s._maxInstanceCount&&(s._maxInstanceCount=a.meshPerAttribute*a.count)}else for(let t=0;t<o.locationSize;t++)m(o.location+t);t.bindBuffer(t.ARRAY_BUFFER,u);for(let t=0;t<o.locationSize;t++)b(o.location+t,l/o.locationSize,d,e,l*h,l/o.locationSize*t*h,p)}}else if(void 0!==u){const n=u[e];if(void 0!==n)switch(n.length){case 2:t.vertexAttrib2fv(o.location,n);break;case 3:t.vertexAttrib3fv(o.location,n);break;case 4:t.vertexAttrib4fv(o.location,n);break;default:t.vertexAttrib1fv(o.location,n)}}}}g()}(r,l,h,y),null!==_&&t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,n.get(_).buffer))},reset:y,resetDefaultState:_,dispose:function(){y();for(const t in s){const e=s[t];for(const t in e){const n=e[t];for(const t in n)h(n[t].object),delete n[t];delete e[t]}delete s[t]}},releaseStatesOfGeometry:function(t){if(void 0===s[t.id])return;const e=s[t.id];for(const t in e){const n=e[t];for(const t in n)h(n[t].object),delete n[t];delete e[t]}delete s[t.id]},releaseStatesOfProgram:function(t){for(const e in s){const n=s[e];if(void 0===n[t.id])continue;const i=n[t.id];for(const t in i)h(i[t].object),delete i[t];delete n[t.id]}},initAttributes:f,enableAttribute:m,disableUnusedAttributes:g}}function ur(t,e,n,i){const r=i.isWebGL2;let o;this.setMode=function(t){o=t},this.render=function(e,i){t.drawArrays(o,e,i),n.update(i,o,1)},this.renderInstances=function(i,a,s){if(0===s)return;let l,c;if(r)l=t,c="drawArraysInstanced";else if(l=e.get("ANGLE_instanced_arrays"),c="drawArraysInstancedANGLE",null===l)return void console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");l[c](o,i,a,s),n.update(a,o,s)},this.renderMultiDraw=function(t,i,r){if(0===r)return;const a=e.get("WEBGL_multi_draw");if(null===a)for(let e=0;e<r;e++)this.render(t[e],i[e]);else{a.multiDrawArraysWEBGL(o,t,0,i,0,r);let e=0;for(let t=0;t<r;t++)e+=i[t];n.update(e,o,1)}}}function dr(t,e,n){let i;function r(e){if("highp"===e){if(t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.HIGH_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT).precision>0)return"highp";e="mediump"}return"mediump"===e&&t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.MEDIUM_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}const o="undefined"!=typeof WebGL2RenderingContext&&"WebGL2RenderingContext"===t.constructor.name;let a=void 0!==n.precision?n.precision:"highp";const s=r(a);s!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",s,"instead."),a=s);const l=o||e.has("WEBGL_draw_buffers"),c=!0===n.logarithmicDepthBuffer,u=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),d=t.getParameter(t.MAX_VERTEX_TEXTURE_IMAGE_UNITS),h=t.getParameter(t.MAX_TEXTURE_SIZE),p=t.getParameter(t.MAX_CUBE_MAP_TEXTURE_SIZE),f=t.getParameter(t.MAX_VERTEX_ATTRIBS),m=t.getParameter(t.MAX_VERTEX_UNIFORM_VECTORS),v=t.getParameter(t.MAX_VARYING_VECTORS),g=t.getParameter(t.MAX_FRAGMENT_UNIFORM_VECTORS),b=d>0,y=o||e.has("OES_texture_float");return{isWebGL2:o,drawBuffers:l,getMaxAnisotropy:function(){if(void 0!==i)return i;if(!0===e.has("EXT_texture_filter_anisotropic")){const n=e.get("EXT_texture_filter_anisotropic");i=t.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else i=0;return i},getMaxPrecision:r,precision:a,logarithmicDepthBuffer:c,maxTextures:u,maxVertexTextures:d,maxTextureSize:h,maxCubemapSize:p,maxAttributes:f,maxVertexUniforms:m,maxVaryings:v,maxFragmentUniforms:g,vertexTextures:b,floatFragmentTextures:y,floatVertexTextures:b&&y,maxSamples:o?t.getParameter(t.MAX_SAMPLES):0}}function hr(t){const e=this;let n=null,i=0,r=!1,o=!1;const a=new Zi,s=new re,l={value:null,needsUpdate:!1};function c(t,n,i,r){const o=null!==t?t.length:0;let c=null;if(0!==o){if(c=l.value,!0!==r||null===c){const e=i+4*o,r=n.matrixWorldInverse;s.getNormalMatrix(r),(null===c||c.length<e)&&(c=new Float32Array(e));for(let e=0,n=i;e!==o;++e,n+=4)a.copy(t[e]).applyMatrix4(r,s),a.normal.toArray(c,n),c[n+3]=a.constant}l.value=c,l.needsUpdate=!0}return e.numPlanes=o,e.numIntersection=0,c}this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(t,e){const n=0!==t.length||e||0!==i||r;return r=e,i=t.length,n},this.beginShadows=function(){o=!0,c(null)},this.endShadows=function(){o=!1},this.setGlobalState=function(t,e){n=c(t,e,0)},this.setState=function(a,s,u){const d=a.clippingPlanes,h=a.clipIntersection,p=a.clipShadows,f=t.get(a);if(!r||null===d||0===d.length||o&&!p)o?c(null):function(){l.value!==n&&(l.value=n,l.needsUpdate=i>0);e.numPlanes=i,e.numIntersection=0}();else{const t=o?0:i,e=4*t;let r=f.clippingState||null;l.value=r,r=c(d,s,e,u);for(let t=0;t!==e;++t)r[t]=n[t];f.clippingState=r,this.numIntersection=h?this.numPlanes:0,this.numPlanes+=t}}}function pr(t){let e=new WeakMap;function n(t,e){return e===B?t.mapping=F:e===$&&(t.mapping=z),t}function i(t){const n=t.target;n.removeEventListener("dispose",i);const r=e.get(n);void 0!==r&&(e.delete(n),r.dispose())}return{get:function(r){if(r&&r.isTexture){const o=r.mapping;if(o===B||o===$){if(e.has(r)){return n(e.get(r).texture,r.mapping)}{const o=r.image;if(o&&o.height>0){const a=new Wi(o.height);return a.fromEquirectangularTexture(t,r),e.set(r,a),r.addEventListener("dispose",i),n(a.texture,r.mapping)}return null}}}return r},dispose:function(){e=new WeakMap}}}class fr extends zi{constructor(t=-1,e=1,n=1,i=-1,r=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=t,this.right=e,this.top=n,this.bottom=i,this.near=r,this.far=o,this.updateProjectionMatrix()}copy(t,e){return super.copy(t,e),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.near=t.near,this.far=t.far,this.zoom=t.zoom,this.view=null===t.view?null:Object.assign({},t.view),this}setViewOffset(t,e,n,i,r,o){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const t=(this.right-this.left)/(2*this.zoom),e=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let r=n-t,o=n+t,a=i+e,s=i-e;if(null!==this.view&&this.view.enabled){const t=(this.right-this.left)/this.view.fullWidth/this.zoom,e=(this.top-this.bottom)/this.view.fullHeight/this.zoom;r+=t*this.view.offsetX,o=r+t*this.view.width,a-=e*this.view.offsetY,s=a-e*this.view.height}this.projectionMatrix.makeOrthographic(r,o,a,s,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(t){const e=super.toJSON(t);return e.object.zoom=this.zoom,e.object.left=this.left,e.object.right=this.right,e.object.top=this.top,e.object.bottom=this.bottom,e.object.near=this.near,e.object.far=this.far,null!==this.view&&(e.object.view=Object.assign({},this.view)),e}}const mr=[.125,.215,.35,.446,.526,.582],vr=20,gr=new fr,br=new Xn;let yr=null,_r=0,wr=0;const xr=(1+Math.sqrt(5))/2,Cr=1/xr,Sr=[new Me(1,1,1),new Me(-1,1,1),new Me(1,1,-1),new Me(-1,1,-1),new Me(0,xr,Cr),new Me(0,xr,-Cr),new Me(Cr,0,xr),new Me(-Cr,0,xr),new Me(xr,Cr,0),new Me(-xr,Cr,0)];class Er{constructor(t){this._renderer=t,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(t,e=0,n=.1,i=100){yr=this._renderer.getRenderTarget(),_r=this._renderer.getActiveCubeFace(),wr=this._renderer.getActiveMipmapLevel(),this._setSize(256);const r=this._allocateTargets();return r.depthBuffer=!0,this._sceneToCubeUV(t,n,i,r),e>0&&this._blur(r,0,0,e),this._applyPMREM(r),this._cleanup(r),r}fromEquirectangular(t,e=null){return this._fromTexture(t,e)}fromCubemap(t,e=null){return this._fromTexture(t,e)}compileCubemapShader(){null===this._cubemapMaterial&&(this._cubemapMaterial=Ar(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){null===this._equirectMaterial&&(this._equirectMaterial=kr(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),null!==this._cubemapMaterial&&this._cubemapMaterial.dispose(),null!==this._equirectMaterial&&this._equirectMaterial.dispose()}_setSize(t){this._lodMax=Math.floor(Math.log2(t)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){null!==this._blurMaterial&&this._blurMaterial.dispose(),null!==this._pingPongRenderTarget&&this._pingPongRenderTarget.dispose();for(let t=0;t<this._lodPlanes.length;t++)this._lodPlanes[t].dispose()}_cleanup(t){this._renderer.setRenderTarget(yr,_r,wr),t.scissorTest=!1,Or(t,0,0,t.width,t.height)}_fromTexture(t,e){t.mapping===F||t.mapping===z?this._setSize(0===t.image.length?16:t.image[0].width||t.image[0].image.width):this._setSize(t.image.width/4),yr=this._renderer.getRenderTarget(),_r=this._renderer.getActiveCubeFace(),wr=this._renderer.getActiveMipmapLevel();const n=e||this._allocateTargets();return this._textureToCubeUV(t,n),this._applyPMREM(n),this._cleanup(n),n}_allocateTargets(){const t=3*Math.max(this._cubeSize,112),e=4*this._cubeSize,n={magFilter:X,minFilter:X,generateMipmaps:!1,type:it,format:ot,colorSpace:xt,depthBuffer:!1},i=Tr(t,e,n);if(null===this._pingPongRenderTarget||this._pingPongRenderTarget.width!==t||this._pingPongRenderTarget.height!==e){null!==this._pingPongRenderTarget&&this._dispose(),this._pingPongRenderTarget=Tr(t,e,n);const{_lodMax:i}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}=function(t){const e=[],n=[],i=[];let r=t;const o=t-4+1+mr.length;for(let a=0;a<o;a++){const o=Math.pow(2,r);n.push(o);let s=1/o;a>t-4?s=mr[a-t+4-1]:0===a&&(s=0),i.push(s);const l=1/(o-2),c=-l,u=1+l,d=[c,c,u,c,u,u,c,c,u,u,c,u],h=6,p=6,f=3,m=2,v=1,g=new Float32Array(f*p*h),b=new Float32Array(m*p*h),y=new Float32Array(v*p*h);for(let t=0;t<h;t++){const e=t%3*2/3-1,n=t>2?0:-1,i=[e,n,0,e+2/3,n,0,e+2/3,n+1,0,e,n,0,e+2/3,n+1,0,e,n+1,0];g.set(i,f*p*t),b.set(d,m*p*t);const r=[t,t,t,t,t,t];y.set(r,v*p*t)}const _=new pi;_.setAttribute("position",new ni(g,f)),_.setAttribute("uv",new ni(b,m)),_.setAttribute("faceIndex",new ni(y,v)),e.push(_),r>4&&r--}return{lodPlanes:e,sizeLods:n,sigmas:i}}(i)),this._blurMaterial=function(t,e,n){const i=new Float32Array(vr),r=new Me(0,1,0),o=new Fi({name:"SphericalGaussianBlur",defines:{n:vr,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${t}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:i},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:r}},vertexShader:Pr(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t#define ENVMAP_TYPE_CUBE_UV\n\t\t\t#include <cube_uv_reflection_fragment>\n\n\t\t\tvec3 getSample( float theta, vec3 axis ) {\n\n\t\t\t\tfloat cosTheta = cos( theta );\n\t\t\t\t// Rodrigues' axis-angle rotation\n\t\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross( axis, vOutputDirection ) * sin( theta )\n\t\t\t\t\t+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\n\n\t\t\t\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n\n\t\t\t\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n\n\t\t\t\t\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n\n\t\t\t\t}\n\n\t\t\t\taxis = normalize( axis );\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n\n\t\t\t\tfor ( int i = 1; i < n; i++ ) {\n\n\t\t\t\t\tif ( i >= samples ) {\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat theta = dTheta * float( i );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1});return o}(i,t,e)}return i}_compileMaterial(t){const e=new Mi(this._lodPlanes[0],t);this._renderer.compile(e,gr)}_sceneToCubeUV(t,e,n,i){const r=new Hi(90,1,e,n),o=[1,-1,1,1,1,1],a=[1,1,1,-1,-1,-1],s=this._renderer,c=s.autoClear,u=s.toneMapping;s.getClearColor(br),s.toneMapping=M,s.autoClear=!1;const d=new Qn({name:"PMREM.Background",side:l,depthWrite:!1,depthTest:!1}),h=new Mi(new Di,d);let p=!1;const f=t.background;f?f.isColor&&(d.color.copy(f),t.background=null,p=!0):(d.color.copy(br),p=!0);for(let e=0;e<6;e++){const n=e%3;0===n?(r.up.set(0,o[e],0),r.lookAt(a[e],0,0)):1===n?(r.up.set(0,0,o[e]),r.lookAt(0,a[e],0)):(r.up.set(0,o[e],0),r.lookAt(0,0,a[e]));const l=this._cubeSize;Or(i,n*l,e>2?l:0,l,l),s.setRenderTarget(i),p&&s.render(h,r),s.render(t,r)}h.geometry.dispose(),h.material.dispose(),s.toneMapping=u,s.autoClear=c,t.background=f}_textureToCubeUV(t,e){const n=this._renderer,i=t.mapping===F||t.mapping===z;i?(null===this._cubemapMaterial&&(this._cubemapMaterial=Ar()),this._cubemapMaterial.uniforms.flipEnvMap.value=!1===t.isRenderTargetTexture?-1:1):null===this._equirectMaterial&&(this._equirectMaterial=kr());const r=i?this._cubemapMaterial:this._equirectMaterial,o=new Mi(this._lodPlanes[0],r);r.uniforms.envMap.value=t;const a=this._cubeSize;Or(e,0,0,3*a,2*a),n.setRenderTarget(e),n.render(o,gr)}_applyPMREM(t){const e=this._renderer,n=e.autoClear;e.autoClear=!1;for(let e=1;e<this._lodPlanes.length;e++){const n=Math.sqrt(this._sigmas[e]*this._sigmas[e]-this._sigmas[e-1]*this._sigmas[e-1]),i=Sr[(e-1)%Sr.length];this._blur(t,e-1,e,n,i)}e.autoClear=n}_blur(t,e,n,i,r){const o=this._pingPongRenderTarget;this._halfBlur(t,o,e,n,i,"latitudinal",r),this._halfBlur(o,t,n,n,i,"longitudinal",r)}_halfBlur(t,e,n,i,r,o,a){const s=this._renderer,l=this._blurMaterial;"latitudinal"!==o&&"longitudinal"!==o&&console.error("blur direction must be either latitudinal or longitudinal!");const c=new Mi(this._lodPlanes[i],l),u=l.uniforms,d=this._sizeLods[n]-1,h=isFinite(r)?Math.PI/(2*d):2*Math.PI/39,p=r/h,f=isFinite(r)?1+Math.floor(3*p):vr;f>vr&&console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${f} samples when the maximum is set to 20`);const m=[];let v=0;for(let t=0;t<vr;++t){const e=t/p,n=Math.exp(-e*e/2);m.push(n),0===t?v+=n:t<f&&(v+=2*n)}for(let t=0;t<m.length;t++)m[t]=m[t]/v;u.envMap.value=t.texture,u.samples.value=f,u.weights.value=m,u.latitudinal.value="latitudinal"===o,a&&(u.poleAxis.value=a);const{_lodMax:g}=this;u.dTheta.value=h,u.mipInt.value=g-n;const b=this._sizeLods[i];Or(e,3*b*(i>g-4?i-g+4:0),4*(this._cubeSize-b),3*b,2*b),s.setRenderTarget(e),s.render(c,gr)}}function Tr(t,e,n){const i=new Oe(t,e,n);return i.texture.mapping=U,i.texture.name="PMREM.cubeUv",i.scissorTest=!0,i}function Or(t,e,n,i,r){t.viewport.set(e,n,i,r),t.scissor.set(e,n,i,r)}function kr(){return new Fi({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:Pr(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\n\t\t\t#include <common>\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tgl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}function Ar(){return new Fi({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:Pr(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tuniform float flipEnvMap;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}function Pr(){return"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t"}function Mr(t){let e=new WeakMap,n=null;function i(t){const n=t.target;n.removeEventListener("dispose",i);const r=e.get(n);void 0!==r&&(e.delete(n),r.dispose())}return{get:function(r){if(r&&r.isTexture){const o=r.mapping,a=o===B||o===$,s=o===F||o===z;if(a||s){if(r.isRenderTargetTexture&&!0===r.needsPMREMUpdate){r.needsPMREMUpdate=!1;let i=e.get(r);return null===n&&(n=new Er(t)),i=a?n.fromEquirectangular(r,i):n.fromCubemap(r,i),e.set(r,i),i.texture}if(e.has(r))return e.get(r).texture;{const o=r.image;if(a&&o&&o.height>0||s&&o&&function(t){let e=0;const n=6;for(let i=0;i<n;i++)void 0!==t[i]&&e++;return e===n}(o)){null===n&&(n=new Er(t));const o=a?n.fromEquirectangular(r):n.fromCubemap(r);return e.set(r,o),r.addEventListener("dispose",i),o.texture}return null}}}return r},dispose:function(){e=new WeakMap,null!==n&&(n.dispose(),n=null)}}}function Lr(t){const e={};function n(n){if(void 0!==e[n])return e[n];let i;switch(n){case"WEBGL_depth_texture":i=t.getExtension("WEBGL_depth_texture")||t.getExtension("MOZ_WEBGL_depth_texture")||t.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":i=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":i=t.getExtension("WEBGL_compressed_texture_s3tc")||t.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":i=t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:i=t.getExtension(n)}return e[n]=i,i}return{has:function(t){return null!==n(t)},init:function(t){t.isWebGL2?(n("EXT_color_buffer_float"),n("WEBGL_clip_cull_distance")):(n("WEBGL_depth_texture"),n("OES_texture_float"),n("OES_texture_half_float"),n("OES_texture_half_float_linear"),n("OES_standard_derivatives"),n("OES_element_index_uint"),n("OES_vertex_array_object"),n("ANGLE_instanced_arrays")),n("OES_texture_float_linear"),n("EXT_color_buffer_half_float"),n("WEBGL_multisampled_render_to_texture")},get:function(t){const e=n(t);return null===e&&console.warn("THREE.WebGLRenderer: "+t+" extension not supported."),e}}}function Dr(t,e,n,i){const r={},o=new WeakMap;function a(t){const s=t.target;null!==s.index&&e.remove(s.index);for(const t in s.attributes)e.remove(s.attributes[t]);for(const t in s.morphAttributes){const n=s.morphAttributes[t];for(let t=0,i=n.length;t<i;t++)e.remove(n[t])}s.removeEventListener("dispose",a),delete r[s.id];const l=o.get(s);l&&(e.remove(l),o.delete(s)),i.releaseStatesOfGeometry(s),!0===s.isInstancedBufferGeometry&&delete s._maxInstanceCount,n.memory.geometries--}function s(t){const n=[],i=t.index,r=t.attributes.position;let a=0;if(null!==i){const t=i.array;a=i.version;for(let e=0,i=t.length;e<i;e+=3){const i=t[e+0],r=t[e+1],o=t[e+2];n.push(i,r,r,o,o,i)}}else{if(void 0===r)return;{const t=r.array;a=r.version;for(let e=0,i=t.length/3-1;e<i;e+=3){const t=e+0,i=e+1,r=e+2;n.push(t,i,i,r,r,t)}}}const s=new(ae(n)?ri:ii)(n,1);s.version=a;const l=o.get(t);l&&e.remove(l),o.set(t,s)}return{get:function(t,e){return!0===r[e.id]||(e.addEventListener("dispose",a),r[e.id]=!0,n.memory.geometries++),e},update:function(n){const i=n.attributes;for(const n in i)e.update(i[n],t.ARRAY_BUFFER);const r=n.morphAttributes;for(const n in r){const i=r[n];for(let n=0,r=i.length;n<r;n++)e.update(i[n],t.ARRAY_BUFFER)}},getWireframeAttribute:function(t){const e=o.get(t);if(e){const n=t.index;null!==n&&e.version<n.version&&s(t)}else s(t);return o.get(t)}}}function Rr(t,e,n,i){const r=i.isWebGL2;let o,a,s;this.setMode=function(t){o=t},this.setIndex=function(t){a=t.type,s=t.bytesPerElement},this.render=function(e,i){t.drawElements(o,i,a,e*s),n.update(i,o,1)},this.renderInstances=function(i,l,c){if(0===c)return;let u,d;if(r)u=t,d="drawElementsInstanced";else if(u=e.get("ANGLE_instanced_arrays"),d="drawElementsInstancedANGLE",null===u)return void console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");u[d](o,l,a,i*s,c),n.update(l,o,c)},this.renderMultiDraw=function(t,i,r){if(0===r)return;const l=e.get("WEBGL_multi_draw");if(null===l)for(let e=0;e<r;e++)this.render(t[e]/s,i[e]);else{l.multiDrawElementsWEBGL(o,i,0,a,t,0,r);let e=0;for(let t=0;t<r;t++)e+=i[t];n.update(e,o,1)}}}function Ir(t){const e={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:e,programs:null,autoReset:!0,reset:function(){e.calls=0,e.triangles=0,e.points=0,e.lines=0},update:function(n,i,r){switch(e.calls++,i){case t.TRIANGLES:e.triangles+=r*(n/3);break;case t.LINES:e.lines+=r*(n/2);break;case t.LINE_STRIP:e.lines+=r*(n-1);break;case t.LINE_LOOP:e.lines+=r*n;break;case t.POINTS:e.points+=r*n;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",i)}}}}function jr(t,e){return t[0]-e[0]}function Nr(t,e){return Math.abs(e[1])-Math.abs(t[1])}function Fr(t,e,n){const i={},r=new Float32Array(8),o=new WeakMap,a=new Ee,s=[];for(let t=0;t<8;t++)s[t]=[t,0];return{update:function(l,c,u){const d=l.morphTargetInfluences;if(!0===e.isWebGL2){const h=c.morphAttributes.position||c.morphAttributes.normal||c.morphAttributes.color,p=void 0!==h?h.length:0;let f=o.get(c);if(void 0===f||f.count!==p){void 0!==f&&f.texture.dispose();const g=void 0!==c.morphAttributes.position,b=void 0!==c.morphAttributes.normal,y=void 0!==c.morphAttributes.color,_=c.morphAttributes.position||[],w=c.morphAttributes.normal||[],x=c.morphAttributes.color||[];let C=0;!0===g&&(C=1),!0===b&&(C=2),!0===y&&(C=3);let S=c.attributes.position.count*C,E=1;S>e.maxTextureSize&&(E=Math.ceil(S/e.maxTextureSize),S=e.maxTextureSize);const T=new Float32Array(S*E*4*p),O=new ke(T,S,E,p);O.type=nt,O.needsUpdate=!0;const k=4*C;for(let P=0;P<p;P++){const M=_[P],L=w[P],D=x[P],R=S*E*4*P;for(let I=0;I<M.count;I++){const j=I*k;!0===g&&(a.fromBufferAttribute(M,I),T[R+j+0]=a.x,T[R+j+1]=a.y,T[R+j+2]=a.z,T[R+j+3]=0),!0===b&&(a.fromBufferAttribute(L,I),T[R+j+4]=a.x,T[R+j+5]=a.y,T[R+j+6]=a.z,T[R+j+7]=0),!0===y&&(a.fromBufferAttribute(D,I),T[R+j+8]=a.x,T[R+j+9]=a.y,T[R+j+10]=a.z,T[R+j+11]=4===D.itemSize?a.w:1)}}function A(){O.dispose(),o.delete(c),c.removeEventListener("dispose",A)}f={count:p,texture:O,size:new ie(S,E)},o.set(c,f),c.addEventListener("dispose",A)}let m=0;for(let N=0;N<d.length;N++)m+=d[N];const v=c.morphTargetsRelative?1:1-m;u.getUniforms().setValue(t,"morphTargetBaseInfluence",v),u.getUniforms().setValue(t,"morphTargetInfluences",d),u.getUniforms().setValue(t,"morphTargetsTexture",f.texture,n),u.getUniforms().setValue(t,"morphTargetsTextureSize",f.size)}else{const F=void 0===d?0:d.length;let z=i[c.id];if(void 0===z||z.length!==F){z=[];for(let V=0;V<F;V++)z[V]=[V,0];i[c.id]=z}for(let Y=0;Y<F;Y++){const q=z[Y];q[0]=Y,q[1]=d[Y]}z.sort(Nr);for(let W=0;W<8;W++)W<F&&z[W][1]?(s[W][0]=z[W][0],s[W][1]=z[W][1]):(s[W][0]=Number.MAX_SAFE_INTEGER,s[W][1]=0);s.sort(jr);const B=c.morphAttributes.position,$=c.morphAttributes.normal;let U=0;for(let G=0;G<8;G++){const X=s[G],K=X[0],Z=X[1];K!==Number.MAX_SAFE_INTEGER&&Z?(B&&c.getAttribute("morphTarget"+G)!==B[K]&&c.setAttribute("morphTarget"+G,B[K]),$&&c.getAttribute("morphNormal"+G)!==$[K]&&c.setAttribute("morphNormal"+G,$[K]),r[G]=Z,U+=Z):(B&&!0===c.hasAttribute("morphTarget"+G)&&c.deleteAttribute("morphTarget"+G),$&&!0===c.hasAttribute("morphNormal"+G)&&c.deleteAttribute("morphNormal"+G),r[G]=0)}const H=c.morphTargetsRelative?1:1-U;u.getUniforms().setValue(t,"morphTargetBaseInfluence",H),u.getUniforms().setValue(t,"morphTargetInfluences",r)}}}}function zr(t,e,n,i){let r=new WeakMap;function o(t){const e=t.target;e.removeEventListener("dispose",o),n.remove(e.instanceMatrix),null!==e.instanceColor&&n.remove(e.instanceColor)}return{update:function(a){const s=i.render.frame,l=a.geometry,c=e.get(a,l);if(r.get(c)!==s&&(e.update(c),r.set(c,s)),a.isInstancedMesh&&(!1===a.hasEventListener("dispose",o)&&a.addEventListener("dispose",o),r.get(a)!==s&&(n.update(a.instanceMatrix,t.ARRAY_BUFFER),null!==a.instanceColor&&n.update(a.instanceColor,t.ARRAY_BUFFER),r.set(a,s))),a.isSkinnedMesh){const t=a.skeleton;r.get(t)!==s&&(t.update(),r.set(t,s))}return c},dispose:function(){r=new WeakMap}}}class Br extends Se{constructor(t,e,n,i,r,o,a,s,l,c){if((c=void 0!==c?c:at)!==at&&c!==st)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&c===at&&(n=et),void 0===n&&c===st&&(n=rt),super(null,i,r,o,a,s,c,n,l),this.isDepthTexture=!0,this.image={width:t,height:e},this.magFilter=void 0!==a?a:q,this.minFilter=void 0!==s?s:q,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(t){return super.copy(t),this.compareFunction=t.compareFunction,this}toJSON(t){const e=super.toJSON(t);return null!==this.compareFunction&&(e.compareFunction=this.compareFunction),e}}const $r=new Se,Ur=new Br(1,1);Ur.compareFunction=515;const Hr=new ke,Vr=new Ae,Yr=new qi,qr=[],Wr=[],Gr=new Float32Array(16),Xr=new Float32Array(9),Kr=new Float32Array(4);function Zr(t,e,n){const i=t[0];if(i<=0||i>0)return t;const r=e*n;let o=qr[r];if(void 0===o&&(o=new Float32Array(r),qr[r]=o),0!==e){i.toArray(o,0);for(let i=1,r=0;i!==e;++i)r+=n,t[i].toArray(o,r)}return o}function Jr(t,e){if(t.length!==e.length)return!1;for(let n=0,i=t.length;n<i;n++)if(t[n]!==e[n])return!1;return!0}function Qr(t,e){for(let n=0,i=e.length;n<i;n++)t[n]=e[n]}function to(t,e){let n=Wr[e];void 0===n&&(n=new Int32Array(e),Wr[e]=n);for(let i=0;i!==e;++i)n[i]=t.allocateTextureUnit();return n}function eo(t,e){const n=this.cache;n[0]!==e&&(t.uniform1f(this.addr,e),n[0]=e)}function no(t,e){const n=this.cache;if(void 0!==e.x)n[0]===e.x&&n[1]===e.y||(t.uniform2f(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(Jr(n,e))return;t.uniform2fv(this.addr,e),Qr(n,e)}}function io(t,e){const n=this.cache;if(void 0!==e.x)n[0]===e.x&&n[1]===e.y&&n[2]===e.z||(t.uniform3f(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else if(void 0!==e.r)n[0]===e.r&&n[1]===e.g&&n[2]===e.b||(t.uniform3f(this.addr,e.r,e.g,e.b),n[0]=e.r,n[1]=e.g,n[2]=e.b);else{if(Jr(n,e))return;t.uniform3fv(this.addr,e),Qr(n,e)}}function ro(t,e){const n=this.cache;if(void 0!==e.x)n[0]===e.x&&n[1]===e.y&&n[2]===e.z&&n[3]===e.w||(t.uniform4f(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(Jr(n,e))return;t.uniform4fv(this.addr,e),Qr(n,e)}}function oo(t,e){const n=this.cache,i=e.elements;if(void 0===i){if(Jr(n,e))return;t.uniformMatrix2fv(this.addr,!1,e),Qr(n,e)}else{if(Jr(n,i))return;Kr.set(i),t.uniformMatrix2fv(this.addr,!1,Kr),Qr(n,i)}}function ao(t,e){const n=this.cache,i=e.elements;if(void 0===i){if(Jr(n,e))return;t.uniformMatrix3fv(this.addr,!1,e),Qr(n,e)}else{if(Jr(n,i))return;Xr.set(i),t.uniformMatrix3fv(this.addr,!1,Xr),Qr(n,i)}}function so(t,e){const n=this.cache,i=e.elements;if(void 0===i){if(Jr(n,e))return;t.uniformMatrix4fv(this.addr,!1,e),Qr(n,e)}else{if(Jr(n,i))return;Gr.set(i),t.uniformMatrix4fv(this.addr,!1,Gr),Qr(n,i)}}function lo(t,e){const n=this.cache;n[0]!==e&&(t.uniform1i(this.addr,e),n[0]=e)}function co(t,e){const n=this.cache;if(void 0!==e.x)n[0]===e.x&&n[1]===e.y||(t.uniform2i(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(Jr(n,e))return;t.uniform2iv(this.addr,e),Qr(n,e)}}function uo(t,e){const n=this.cache;if(void 0!==e.x)n[0]===e.x&&n[1]===e.y&&n[2]===e.z||(t.uniform3i(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else{if(Jr(n,e))return;t.uniform3iv(this.addr,e),Qr(n,e)}}function ho(t,e){const n=this.cache;if(void 0!==e.x)n[0]===e.x&&n[1]===e.y&&n[2]===e.z&&n[3]===e.w||(t.uniform4i(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(Jr(n,e))return;t.uniform4iv(this.addr,e),Qr(n,e)}}function po(t,e){const n=this.cache;n[0]!==e&&(t.uniform1ui(this.addr,e),n[0]=e)}function fo(t,e){const n=this.cache;if(void 0!==e.x)n[0]===e.x&&n[1]===e.y||(t.uniform2ui(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(Jr(n,e))return;t.uniform2uiv(this.addr,e),Qr(n,e)}}function mo(t,e){const n=this.cache;if(void 0!==e.x)n[0]===e.x&&n[1]===e.y&&n[2]===e.z||(t.uniform3ui(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else{if(Jr(n,e))return;t.uniform3uiv(this.addr,e),Qr(n,e)}}function vo(t,e){const n=this.cache;if(void 0!==e.x)n[0]===e.x&&n[1]===e.y&&n[2]===e.z&&n[3]===e.w||(t.uniform4ui(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(Jr(n,e))return;t.uniform4uiv(this.addr,e),Qr(n,e)}}function go(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r);const o=this.type===t.SAMPLER_2D_SHADOW?Ur:$r;n.setTexture2D(e||o,r)}function bo(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.setTexture3D(e||Vr,r)}function yo(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.setTextureCube(e||Yr,r)}function _o(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.setTexture2DArray(e||Hr,r)}function wo(t,e){t.uniform1fv(this.addr,e)}function xo(t,e){const n=Zr(e,this.size,2);t.uniform2fv(this.addr,n)}function Co(t,e){const n=Zr(e,this.size,3);t.uniform3fv(this.addr,n)}function So(t,e){const n=Zr(e,this.size,4);t.uniform4fv(this.addr,n)}function Eo(t,e){const n=Zr(e,this.size,4);t.uniformMatrix2fv(this.addr,!1,n)}function To(t,e){const n=Zr(e,this.size,9);t.uniformMatrix3fv(this.addr,!1,n)}function Oo(t,e){const n=Zr(e,this.size,16);t.uniformMatrix4fv(this.addr,!1,n)}function ko(t,e){t.uniform1iv(this.addr,e)}function Ao(t,e){t.uniform2iv(this.addr,e)}function Po(t,e){t.uniform3iv(this.addr,e)}function Mo(t,e){t.uniform4iv(this.addr,e)}function Lo(t,e){t.uniform1uiv(this.addr,e)}function Do(t,e){t.uniform2uiv(this.addr,e)}function Ro(t,e){t.uniform3uiv(this.addr,e)}function Io(t,e){t.uniform4uiv(this.addr,e)}function jo(t,e,n){const i=this.cache,r=e.length,o=to(n,r);Jr(i,o)||(t.uniform1iv(this.addr,o),Qr(i,o));for(let t=0;t!==r;++t)n.setTexture2D(e[t]||$r,o[t])}function No(t,e,n){const i=this.cache,r=e.length,o=to(n,r);Jr(i,o)||(t.uniform1iv(this.addr,o),Qr(i,o));for(let t=0;t!==r;++t)n.setTexture3D(e[t]||Vr,o[t])}function Fo(t,e,n){const i=this.cache,r=e.length,o=to(n,r);Jr(i,o)||(t.uniform1iv(this.addr,o),Qr(i,o));for(let t=0;t!==r;++t)n.setTextureCube(e[t]||Yr,o[t])}function zo(t,e,n){const i=this.cache,r=e.length,o=to(n,r);Jr(i,o)||(t.uniform1iv(this.addr,o),Qr(i,o));for(let t=0;t!==r;++t)n.setTexture2DArray(e[t]||Hr,o[t])}class Bo{constructor(t,e,n){this.id=t,this.addr=n,this.cache=[],this.type=e.type,this.setValue=function(t){switch(t){case 5126:return eo;case 35664:return no;case 35665:return io;case 35666:return ro;case 35674:return oo;case 35675:return ao;case 35676:return so;case 5124:case 35670:return lo;case 35667:case 35671:return co;case 35668:case 35672:return uo;case 35669:case 35673:return ho;case 5125:return po;case 36294:return fo;case 36295:return mo;case 36296:return vo;case 35678:case 36198:case 36298:case 36306:case 35682:return go;case 35679:case 36299:case 36307:return bo;case 35680:case 36300:case 36308:case 36293:return yo;case 36289:case 36303:case 36311:case 36292:return _o}}(e.type)}}class $o{constructor(t,e,n){this.id=t,this.addr=n,this.cache=[],this.type=e.type,this.size=e.size,this.setValue=function(t){switch(t){case 5126:return wo;case 35664:return xo;case 35665:return Co;case 35666:return So;case 35674:return Eo;case 35675:return To;case 35676:return Oo;case 5124:case 35670:return ko;case 35667:case 35671:return Ao;case 35668:case 35672:return Po;case 35669:case 35673:return Mo;case 5125:return Lo;case 36294:return Do;case 36295:return Ro;case 36296:return Io;case 35678:case 36198:case 36298:case 36306:case 35682:return jo;case 35679:case 36299:case 36307:return No;case 35680:case 36300:case 36308:case 36293:return Fo;case 36289:case 36303:case 36311:case 36292:return zo}}(e.type)}}class Uo{constructor(t){this.id=t,this.seq=[],this.map={}}setValue(t,e,n){const i=this.seq;for(let r=0,o=i.length;r!==o;++r){const o=i[r];o.setValue(t,e[o.id],n)}}}const Ho=/(\w+)(\])?(\[|\.)?/g;function Vo(t,e){t.seq.push(e),t.map[e.id]=e}function Yo(t,e,n){const i=t.name,r=i.length;for(Ho.lastIndex=0;;){const o=Ho.exec(i),a=Ho.lastIndex;let s=o[1];const l="]"===o[2],c=o[3];if(l&&(s|=0),void 0===c||"["===c&&a+2===r){Vo(n,void 0===c?new Bo(s,t,e):new $o(s,t,e));break}{let t=n.map[s];void 0===t&&(t=new Uo(s),Vo(n,t)),n=t}}}class qo{constructor(t,e){this.seq=[],this.map={};const n=t.getProgramParameter(e,t.ACTIVE_UNIFORMS);for(let i=0;i<n;++i){const n=t.getActiveUniform(e,i);Yo(n,t.getUniformLocation(e,n.name),this)}}setValue(t,e,n,i){const r=this.map[e];void 0!==r&&r.setValue(t,n,i)}setOptional(t,e,n){const i=e[n];void 0!==i&&this.setValue(t,n,i)}static upload(t,e,n,i){for(let r=0,o=e.length;r!==o;++r){const o=e[r],a=n[o.id];!1!==a.needsUpdate&&o.setValue(t,a.value,i)}}static seqWithValue(t,e){const n=[];for(let i=0,r=t.length;i!==r;++i){const r=t[i];r.id in e&&n.push(r)}return n}}function Wo(t,e,n){const i=t.createShader(e);return t.shaderSource(i,n),t.compileShader(i),i}const Go=37297;let Xo=0;function Ko(t,e,n){const i=t.getShaderParameter(e,t.COMPILE_STATUS),r=t.getShaderInfoLog(e).trim();if(i&&""===r)return"";const o=/ERROR: 0:(\d+)/.exec(r);if(o){const i=parseInt(o[1]);return n.toUpperCase()+"\n\n"+r+"\n\n"+function(t,e){const n=t.split("\n"),i=[],r=Math.max(e-6,0),o=Math.min(e+6,n.length);for(let t=r;t<o;t++){const r=t+1;i.push(`${r===e?">":" "} ${r}: ${n[t]}`)}return i.join("\n")}(t.getShaderSource(e),i)}return r}function Zo(t,e){const n=function(t){const e=me.getPrimaries(me.workingColorSpace),n=me.getPrimaries(t);let i;switch(e===n?i="":e===kt&&n===Ot?i="LinearDisplayP3ToLinearSRGB":e===Ot&&n===kt&&(i="LinearSRGBToLinearDisplayP3"),t){case xt:case St:return[i,"LinearTransferOETF"];case wt:case Ct:return[i,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",t),[i,"LinearTransferOETF"]}}(e);return`vec4 ${t}( vec4 value ) { return ${n[0]}( ${n[1]}( value ) ); }`}function Jo(t,e){let n;switch(e){case L:n="Linear";break;case D:n="Reinhard";break;case R:n="OptimizedCineon";break;case I:n="ACESFilmic";break;case N:n="AgX";break;case j:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),n="Linear"}return"vec3 "+t+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function Qo(t){return""!==t}function ta(t,e){const n=e.numSpotLightShadows+e.numSpotLightMaps-e.numSpotLightShadowsWithMaps;return t.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_LIGHTS/g,e.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,e.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,n).replace(/NUM_RECT_AREA_LIGHTS/g,e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,e.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g,e.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,e.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,e.numPointLightShadows)}function ea(t,e){return t.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}const na=/^[ \t]*#include +<([\w\d./]+)>/gm;function ia(t){return t.replace(na,oa)}const ra=new Map([["encodings_fragment","colorspace_fragment"],["encodings_pars_fragment","colorspace_pars_fragment"],["output_fragment","opaque_fragment"]]);function oa(t,e){let n=rr[e];if(void 0===n){const t=ra.get(e);if(void 0===t)throw new Error("Can not resolve #include <"+e+">");n=rr[t],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',e,t)}return ia(n)}const aa=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function sa(t){return t.replace(aa,la)}function la(t,e,n,i){let r="";for(let t=parseInt(e);t<parseInt(n);t++)r+=i.replace(/\[\s*i\s*\]/g,"[ "+t+" ]").replace(/UNROLLED_LOOP_INDEX/g,t);return r}function ca(t){let e=`precision ${t.precision} float;\n\tprecision ${t.precision} int;\n\tprecision ${t.precision} sampler2D;\n\tprecision ${t.precision} samplerCube;\n\t`;return t.isWebGL2&&(e+=`precision ${t.precision} sampler3D;\n\t\tprecision ${t.precision} sampler2DArray;\n\t\tprecision ${t.precision} sampler2DShadow;\n\t\tprecision ${t.precision} samplerCubeShadow;\n\t\tprecision ${t.precision} sampler2DArrayShadow;\n\t\tprecision ${t.precision} isampler2D;\n\t\tprecision ${t.precision} isampler3D;\n\t\tprecision ${t.precision} isamplerCube;\n\t\tprecision ${t.precision} isampler2DArray;\n\t\tprecision ${t.precision} usampler2D;\n\t\tprecision ${t.precision} usampler3D;\n\t\tprecision ${t.precision} usamplerCube;\n\t\tprecision ${t.precision} usampler2DArray;\n\t\t`),"highp"===t.precision?e+="\n#define HIGH_PRECISION":"mediump"===t.precision?e+="\n#define MEDIUM_PRECISION":"lowp"===t.precision&&(e+="\n#define LOW_PRECISION"),e}function ua(t,e,n,i){const s=t.getContext(),l=n.defines;let c=n.vertexShader,u=n.fragmentShader;const d=function(t){let e="SHADOWMAP_TYPE_BASIC";return t.shadowMapType===r?e="SHADOWMAP_TYPE_PCF":t.shadowMapType===o?e="SHADOWMAP_TYPE_PCF_SOFT":t.shadowMapType===a&&(e="SHADOWMAP_TYPE_VSM"),e}(n),h=function(t){let e="ENVMAP_TYPE_CUBE";if(t.envMap)switch(t.envMapMode){case F:case z:e="ENVMAP_TYPE_CUBE";break;case U:e="ENVMAP_TYPE_CUBE_UV"}return e}(n),p=function(t){let e="ENVMAP_MODE_REFLECTION";t.envMap&&t.envMapMode===z&&(e="ENVMAP_MODE_REFRACTION");return e}(n),f=function(t){let e="ENVMAP_BLENDING_NONE";if(t.envMap)switch(t.combine){case k:e="ENVMAP_BLENDING_MULTIPLY";break;case A:e="ENVMAP_BLENDING_MIX";break;case P:e="ENVMAP_BLENDING_ADD"}return e}(n),m=function(t){const e=t.envMapCubeUVHeight;if(null===e)return null;const n=Math.log2(e)-2,i=1/e;return{texelWidth:1/(3*Math.max(Math.pow(2,n),112)),texelHeight:i,maxMip:n}}(n),v=n.isWebGL2?"":function(t){return[t.extensionDerivatives||t.envMapCubeUVHeight||t.bumpMap||t.normalMapTangentSpace||t.clearcoatNormalMap||t.flatShading||t.alphaToCoverage||"physical"===t.shaderID?"#extension GL_OES_standard_derivatives : enable":"",(t.extensionFragDepth||t.logarithmicDepthBuffer)&&t.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",t.extensionDrawBuffers&&t.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(t.extensionShaderTextureLOD||t.envMap||t.transmission)&&t.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""].filter(Qo).join("\n")}(n),g=function(t){return[t.extensionClipCullDistance?"#extension GL_ANGLE_clip_cull_distance : require":"",t.extensionMultiDraw?"#extension GL_ANGLE_multi_draw : require":""].filter(Qo).join("\n")}(n),b=function(t){const e=[];for(const n in t){const i=t[n];!1!==i&&e.push("#define "+n+" "+i)}return e.join("\n")}(l),y=s.createProgram();let _,w,x=n.glslVersion?"#version "+n.glslVersion+"\n":"";n.isRawShaderMaterial?(_=["#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,b].filter(Qo).join("\n"),_.length>0&&(_+="\n"),w=[v,"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,b].filter(Qo).join("\n"),w.length>0&&(w+="\n")):(_=[ca(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,b,n.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",n.batching?"#define USE_BATCHING":"",n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+p:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.displacementMap?"#define USE_DISPLACEMENTMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.mapUv?"#define MAP_UV "+n.mapUv:"",n.alphaMapUv?"#define ALPHAMAP_UV "+n.alphaMapUv:"",n.lightMapUv?"#define LIGHTMAP_UV "+n.lightMapUv:"",n.aoMapUv?"#define AOMAP_UV "+n.aoMapUv:"",n.emissiveMapUv?"#define EMISSIVEMAP_UV "+n.emissiveMapUv:"",n.bumpMapUv?"#define BUMPMAP_UV "+n.bumpMapUv:"",n.normalMapUv?"#define NORMALMAP_UV "+n.normalMapUv:"",n.displacementMapUv?"#define DISPLACEMENTMAP_UV "+n.displacementMapUv:"",n.metalnessMapUv?"#define METALNESSMAP_UV "+n.metalnessMapUv:"",n.roughnessMapUv?"#define ROUGHNESSMAP_UV "+n.roughnessMapUv:"",n.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+n.anisotropyMapUv:"",n.clearcoatMapUv?"#define CLEARCOATMAP_UV "+n.clearcoatMapUv:"",n.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+n.clearcoatNormalMapUv:"",n.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+n.clearcoatRoughnessMapUv:"",n.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+n.iridescenceMapUv:"",n.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+n.iridescenceThicknessMapUv:"",n.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+n.sheenColorMapUv:"",n.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+n.sheenRoughnessMapUv:"",n.specularMapUv?"#define SPECULARMAP_UV "+n.specularMapUv:"",n.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+n.specularColorMapUv:"",n.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+n.specularIntensityMapUv:"",n.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+n.transmissionMapUv:"",n.thicknessMapUv?"#define THICKNESSMAP_UV "+n.thicknessMapUv:"",n.vertexTangents&&!1===n.flatShading?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.morphColors&&n.isWebGL2?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+d:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1","\tattribute vec2 uv1;","#endif","#ifdef USE_UV2","\tattribute vec2 uv2;","#endif","#ifdef USE_UV3","\tattribute vec2 uv3;","#endif","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )","\tattribute vec3 morphTarget0;","\tattribute vec3 morphTarget1;","\tattribute vec3 morphTarget2;","\tattribute vec3 morphTarget3;","\t#ifdef USE_MORPHNORMALS","\t\tattribute vec3 morphNormal0;","\t\tattribute vec3 morphNormal1;","\t\tattribute vec3 morphNormal2;","\t\tattribute vec3 morphNormal3;","\t#else","\t\tattribute vec3 morphTarget4;","\t\tattribute vec3 morphTarget5;","\t\tattribute vec3 morphTarget6;","\t\tattribute vec3 morphTarget7;","\t#endif","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(Qo).join("\n"),w=[v,ca(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,b,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.alphaToCoverage?"#define ALPHA_TO_COVERAGE":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+h:"",n.envMap?"#define "+p:"",n.envMap?"#define "+f:"",m?"#define CUBEUV_TEXEL_WIDTH "+m.texelWidth:"",m?"#define CUBEUV_TEXEL_HEIGHT "+m.texelHeight:"",m?"#define CUBEUV_MAX_MIP "+m.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents&&!1===n.flatShading?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+d:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==M?"#define TONE_MAPPING":"",n.toneMapping!==M?rr.tonemapping_pars_fragment:"",n.toneMapping!==M?Jo("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",rr.colorspace_pars_fragment,Zo("linearToOutputTexel",n.outputColorSpace),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(Qo).join("\n")),c=ia(c),c=ta(c,n),c=ea(c,n),u=ia(u),u=ta(u,n),u=ea(u,n),c=sa(c),u=sa(u),n.isWebGL2&&!0!==n.isRawShaderMaterial&&(x="#version 300 es\n",_=[g,"precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+_,w=["precision mediump sampler2DArray;","#define varying in",n.glslVersion===zt?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===zt?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+w);const C=x+_+c,S=x+w+u,E=Wo(s,s.VERTEX_SHADER,C),T=Wo(s,s.FRAGMENT_SHADER,S);function O(e){if(t.debug.checkShaderErrors){const n=s.getProgramInfoLog(y).trim(),i=s.getShaderInfoLog(E).trim(),r=s.getShaderInfoLog(T).trim();let o=!0,a=!0;if(!1===s.getProgramParameter(y,s.LINK_STATUS))if(o=!1,"function"==typeof t.debug.onShaderError)t.debug.onShaderError(s,y,E,T);else{const t=Ko(s,E,"vertex"),i=Ko(s,T,"fragment");console.error("THREE.WebGLProgram: Shader Error "+s.getError()+" - VALIDATE_STATUS "+s.getProgramParameter(y,s.VALIDATE_STATUS)+"\n\nMaterial Name: "+e.name+"\nMaterial Type: "+e.type+"\n\nProgram Info Log: "+n+"\n"+t+"\n"+i)}else""!==n?console.warn("THREE.WebGLProgram: Program Info Log:",n):""!==i&&""!==r||(a=!1);a&&(e.diagnostics={runnable:o,programLog:n,vertexShader:{log:i,prefix:_},fragmentShader:{log:r,prefix:w}})}s.deleteShader(E),s.deleteShader(T),L=new qo(s,y),D=function(t,e){const n={},i=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES);for(let r=0;r<i;r++){const i=t.getActiveAttrib(e,r),o=i.name;let a=1;i.type===t.FLOAT_MAT2&&(a=2),i.type===t.FLOAT_MAT3&&(a=3),i.type===t.FLOAT_MAT4&&(a=4),n[o]={type:i.type,location:t.getAttribLocation(e,o),locationSize:a}}return n}(s,y)}let L,D;s.attachShader(y,E),s.attachShader(y,T),void 0!==n.index0AttributeName?s.bindAttribLocation(y,0,n.index0AttributeName):!0===n.morphTargets&&s.bindAttribLocation(y,0,"position"),s.linkProgram(y),this.getUniforms=function(){return void 0===L&&O(this),L},this.getAttributes=function(){return void 0===D&&O(this),D};let R=!1===n.rendererExtensionParallelShaderCompile;return this.isReady=function(){return!1===R&&(R=s.getProgramParameter(y,Go)),R},this.destroy=function(){i.releaseStatesOfProgram(this),s.deleteProgram(y),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=Xo++,this.cacheKey=e,this.usedTimes=1,this.program=y,this.vertexShader=E,this.fragmentShader=T,this}let da=0;class ha{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(t){const e=t.vertexShader,n=t.fragmentShader,i=this._getShaderStage(e),r=this._getShaderStage(n),o=this._getShaderCacheForMaterial(t);return!1===o.has(i)&&(o.add(i),i.usedTimes++),!1===o.has(r)&&(o.add(r),r.usedTimes++),this}remove(t){const e=this.materialCache.get(t);for(const t of e)t.usedTimes--,0===t.usedTimes&&this.shaderCache.delete(t.code);return this.materialCache.delete(t),this}getVertexShaderID(t){return this._getShaderStage(t.vertexShader).id}getFragmentShaderID(t){return this._getShaderStage(t.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(t){const e=this.materialCache;let n=e.get(t);return void 0===n&&(n=new Set,e.set(t,n)),n}_getShaderStage(t){const e=this.shaderCache;let n=e.get(t);return void 0===n&&(n=new pa(t),e.set(t,n)),n}}class pa{constructor(t){this.id=da++,this.code=t,this.usedTimes=0}}function fa(t,e,n,i,r,o,a){const s=new yn,c=new ha,u=new Set,d=[],h=r.isWebGL2,p=r.logarithmicDepthBuffer,f=r.vertexTextures;let m=r.precision;const v={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function g(t){return u.add(t),0===t?"uv":`uv${t}`}return{getParameters:function(o,s,d,b,y){const _=b.fog,w=y.geometry,x=o.isMeshStandardMaterial?b.environment:null,C=(o.isMeshStandardMaterial?n:e).get(o.envMap||x),S=C&&C.mapping===U?C.image.height:null,E=v[o.type];null!==o.precision&&(m=r.getMaxPrecision(o.precision),m!==o.precision&&console.warn("THREE.WebGLProgram.getParameters:",o.precision,"not supported, using",m,"instead."));const T=w.morphAttributes.position||w.morphAttributes.normal||w.morphAttributes.color,O=void 0!==T?T.length:0;let k,A,P,L,D=0;if(void 0!==w.morphAttributes.position&&(D=1),void 0!==w.morphAttributes.normal&&(D=2),void 0!==w.morphAttributes.color&&(D=3),E){const t=ar[E];k=t.vertexShader,A=t.fragmentShader}else k=o.vertexShader,A=o.fragmentShader,c.update(o),P=c.getVertexShaderID(o),L=c.getFragmentShaderID(o);const R=t.getRenderTarget(),I=!0===y.isInstancedMesh,j=!0===y.isBatchedMesh,N=!!o.map,F=!!o.matcap,z=!!C,B=!!o.aoMap,$=!!o.lightMap,H=!!o.bumpMap,V=!!o.normalMap,Y=!!o.displacementMap,q=!!o.emissiveMap,W=!!o.metalnessMap,G=!!o.roughnessMap,X=o.anisotropy>0,K=o.clearcoat>0,Z=o.iridescence>0,J=o.sheen>0,Q=o.transmission>0,tt=X&&!!o.anisotropyMap,et=K&&!!o.clearcoatMap,nt=K&&!!o.clearcoatNormalMap,it=K&&!!o.clearcoatRoughnessMap,rt=Z&&!!o.iridescenceMap,ot=Z&&!!o.iridescenceThicknessMap,at=J&&!!o.sheenColorMap,st=J&&!!o.sheenRoughnessMap,lt=!!o.specularMap,ct=!!o.specularColorMap,ut=!!o.specularIntensityMap,dt=Q&&!!o.transmissionMap,ht=Q&&!!o.thicknessMap,pt=!!o.gradientMap,ft=!!o.alphaMap,mt=o.alphaTest>0,vt=!!o.alphaHash,gt=!!o.extensions;let bt=M;o.toneMapped&&(null!==R&&!0!==R.isXRRenderTarget||(bt=t.toneMapping));const yt={isWebGL2:h,shaderID:E,shaderType:o.type,shaderName:o.name,vertexShader:k,fragmentShader:A,defines:o.defines,customVertexShaderID:P,customFragmentShaderID:L,isRawShaderMaterial:!0===o.isRawShaderMaterial,glslVersion:o.glslVersion,precision:m,batching:j,instancing:I,instancingColor:I&&null!==y.instanceColor,supportsVertexTextures:f,outputColorSpace:null===R?t.outputColorSpace:!0===R.isXRRenderTarget?R.texture.colorSpace:xt,alphaToCoverage:!!o.alphaToCoverage,map:N,matcap:F,envMap:z,envMapMode:z&&C.mapping,envMapCubeUVHeight:S,aoMap:B,lightMap:$,bumpMap:H,normalMap:V,displacementMap:f&&Y,emissiveMap:q,normalMapObjectSpace:V&&1===o.normalMapType,normalMapTangentSpace:V&&0===o.normalMapType,metalnessMap:W,roughnessMap:G,anisotropy:X,anisotropyMap:tt,clearcoat:K,clearcoatMap:et,clearcoatNormalMap:nt,clearcoatRoughnessMap:it,iridescence:Z,iridescenceMap:rt,iridescenceThicknessMap:ot,sheen:J,sheenColorMap:at,sheenRoughnessMap:st,specularMap:lt,specularColorMap:ct,specularIntensityMap:ut,transmission:Q,transmissionMap:dt,thicknessMap:ht,gradientMap:pt,opaque:!1===o.transparent&&1===o.blending&&!1===o.alphaToCoverage,alphaMap:ft,alphaTest:mt,alphaHash:vt,combine:o.combine,mapUv:N&&g(o.map.channel),aoMapUv:B&&g(o.aoMap.channel),lightMapUv:$&&g(o.lightMap.channel),bumpMapUv:H&&g(o.bumpMap.channel),normalMapUv:V&&g(o.normalMap.channel),displacementMapUv:Y&&g(o.displacementMap.channel),emissiveMapUv:q&&g(o.emissiveMap.channel),metalnessMapUv:W&&g(o.metalnessMap.channel),roughnessMapUv:G&&g(o.roughnessMap.channel),anisotropyMapUv:tt&&g(o.anisotropyMap.channel),clearcoatMapUv:et&&g(o.clearcoatMap.channel),clearcoatNormalMapUv:nt&&g(o.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:it&&g(o.clearcoatRoughnessMap.channel),iridescenceMapUv:rt&&g(o.iridescenceMap.channel),iridescenceThicknessMapUv:ot&&g(o.iridescenceThicknessMap.channel),sheenColorMapUv:at&&g(o.sheenColorMap.channel),sheenRoughnessMapUv:st&&g(o.sheenRoughnessMap.channel),specularMapUv:lt&&g(o.specularMap.channel),specularColorMapUv:ct&&g(o.specularColorMap.channel),specularIntensityMapUv:ut&&g(o.specularIntensityMap.channel),transmissionMapUv:dt&&g(o.transmissionMap.channel),thicknessMapUv:ht&&g(o.thicknessMap.channel),alphaMapUv:ft&&g(o.alphaMap.channel),vertexTangents:!!w.attributes.tangent&&(V||X),vertexColors:o.vertexColors,vertexAlphas:!0===o.vertexColors&&!!w.attributes.color&&4===w.attributes.color.itemSize,pointsUvs:!0===y.isPoints&&!!w.attributes.uv&&(N||ft),fog:!!_,useFog:!0===o.fog,fogExp2:!!_&&_.isFogExp2,flatShading:!0===o.flatShading,sizeAttenuation:!0===o.sizeAttenuation,logarithmicDepthBuffer:p,skinning:!0===y.isSkinnedMesh,morphTargets:void 0!==w.morphAttributes.position,morphNormals:void 0!==w.morphAttributes.normal,morphColors:void 0!==w.morphAttributes.color,morphTargetsCount:O,morphTextureStride:D,numDirLights:s.directional.length,numPointLights:s.point.length,numSpotLights:s.spot.length,numSpotLightMaps:s.spotLightMap.length,numRectAreaLights:s.rectArea.length,numHemiLights:s.hemi.length,numDirLightShadows:s.directionalShadowMap.length,numPointLightShadows:s.pointShadowMap.length,numSpotLightShadows:s.spotShadowMap.length,numSpotLightShadowsWithMaps:s.numSpotLightShadowsWithMaps,numLightProbes:s.numLightProbes,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,dithering:o.dithering,shadowMapEnabled:t.shadowMap.enabled&&d.length>0,shadowMapType:t.shadowMap.type,toneMapping:bt,useLegacyLights:t._useLegacyLights,decodeVideoTexture:N&&!0===o.map.isVideoTexture&&me.getTransfer(o.map.colorSpace)===Tt,premultipliedAlpha:o.premultipliedAlpha,doubleSided:2===o.side,flipSided:o.side===l,useDepthPacking:o.depthPacking>=0,depthPacking:o.depthPacking||0,index0AttributeName:o.index0AttributeName,extensionDerivatives:gt&&!0===o.extensions.derivatives,extensionFragDepth:gt&&!0===o.extensions.fragDepth,extensionDrawBuffers:gt&&!0===o.extensions.drawBuffers,extensionShaderTextureLOD:gt&&!0===o.extensions.shaderTextureLOD,extensionClipCullDistance:gt&&!0===o.extensions.clipCullDistance&&i.has("WEBGL_clip_cull_distance"),extensionMultiDraw:gt&&!0===o.extensions.multiDraw&&i.has("WEBGL_multi_draw"),rendererExtensionFragDepth:h||i.has("EXT_frag_depth"),rendererExtensionDrawBuffers:h||i.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:h||i.has("EXT_shader_texture_lod"),rendererExtensionParallelShaderCompile:i.has("KHR_parallel_shader_compile"),customProgramCacheKey:o.customProgramCacheKey()};return yt.vertexUv1s=u.has(1),yt.vertexUv2s=u.has(2),yt.vertexUv3s=u.has(3),u.clear(),yt},getProgramCacheKey:function(e){const n=[];if(e.shaderID?n.push(e.shaderID):(n.push(e.customVertexShaderID),n.push(e.customFragmentShaderID)),void 0!==e.defines)for(const t in e.defines)n.push(t),n.push(e.defines[t]);return!1===e.isRawShaderMaterial&&(!function(t,e){t.push(e.precision),t.push(e.outputColorSpace),t.push(e.envMapMode),t.push(e.envMapCubeUVHeight),t.push(e.mapUv),t.push(e.alphaMapUv),t.push(e.lightMapUv),t.push(e.aoMapUv),t.push(e.bumpMapUv),t.push(e.normalMapUv),t.push(e.displacementMapUv),t.push(e.emissiveMapUv),t.push(e.metalnessMapUv),t.push(e.roughnessMapUv),t.push(e.anisotropyMapUv),t.push(e.clearcoatMapUv),t.push(e.clearcoatNormalMapUv),t.push(e.clearcoatRoughnessMapUv),t.push(e.iridescenceMapUv),t.push(e.iridescenceThicknessMapUv),t.push(e.sheenColorMapUv),t.push(e.sheenRoughnessMapUv),t.push(e.specularMapUv),t.push(e.specularColorMapUv),t.push(e.specularIntensityMapUv),t.push(e.transmissionMapUv),t.push(e.thicknessMapUv),t.push(e.combine),t.push(e.fogExp2),t.push(e.sizeAttenuation),t.push(e.morphTargetsCount),t.push(e.morphAttributeCount),t.push(e.numDirLights),t.push(e.numPointLights),t.push(e.numSpotLights),t.push(e.numSpotLightMaps),t.push(e.numHemiLights),t.push(e.numRectAreaLights),t.push(e.numDirLightShadows),t.push(e.numPointLightShadows),t.push(e.numSpotLightShadows),t.push(e.numSpotLightShadowsWithMaps),t.push(e.numLightProbes),t.push(e.shadowMapType),t.push(e.toneMapping),t.push(e.numClippingPlanes),t.push(e.numClipIntersection),t.push(e.depthPacking)}(n,e),function(t,e){s.disableAll(),e.isWebGL2&&s.enable(0);e.supportsVertexTextures&&s.enable(1);e.instancing&&s.enable(2);e.instancingColor&&s.enable(3);e.matcap&&s.enable(4);e.envMap&&s.enable(5);e.normalMapObjectSpace&&s.enable(6);e.normalMapTangentSpace&&s.enable(7);e.clearcoat&&s.enable(8);e.iridescence&&s.enable(9);e.alphaTest&&s.enable(10);e.vertexColors&&s.enable(11);e.vertexAlphas&&s.enable(12);e.vertexUv1s&&s.enable(13);e.vertexUv2s&&s.enable(14);e.vertexUv3s&&s.enable(15);e.vertexTangents&&s.enable(16);e.anisotropy&&s.enable(17);e.alphaHash&&s.enable(18);e.batching&&s.enable(19);t.push(s.mask),s.disableAll(),e.fog&&s.enable(0);e.useFog&&s.enable(1);e.flatShading&&s.enable(2);e.logarithmicDepthBuffer&&s.enable(3);e.skinning&&s.enable(4);e.morphTargets&&s.enable(5);e.morphNormals&&s.enable(6);e.morphColors&&s.enable(7);e.premultipliedAlpha&&s.enable(8);e.shadowMapEnabled&&s.enable(9);e.useLegacyLights&&s.enable(10);e.doubleSided&&s.enable(11);e.flipSided&&s.enable(12);e.useDepthPacking&&s.enable(13);e.dithering&&s.enable(14);e.transmission&&s.enable(15);e.sheen&&s.enable(16);e.opaque&&s.enable(17);e.pointsUvs&&s.enable(18);e.decodeVideoTexture&&s.enable(19);e.alphaToCoverage&&s.enable(20);t.push(s.mask)}(n,e),n.push(t.outputColorSpace)),n.push(e.customProgramCacheKey),n.join()},getUniforms:function(t){const e=v[t.type];let n;if(e){const t=ar[e];n=Ni.clone(t.uniforms)}else n=t.uniforms;return n},acquireProgram:function(e,n){let i;for(let t=0,e=d.length;t<e;t++){const e=d[t];if(e.cacheKey===n){i=e,++i.usedTimes;break}}return void 0===i&&(i=new ua(t,n,e,o),d.push(i)),i},releaseProgram:function(t){if(0==--t.usedTimes){const e=d.indexOf(t);d[e]=d[d.length-1],d.pop(),t.destroy()}},releaseShaderCache:function(t){c.remove(t)},programs:d,dispose:function(){c.dispose()}}}function ma(){let t=new WeakMap;return{get:function(e){let n=t.get(e);return void 0===n&&(n={},t.set(e,n)),n},remove:function(e){t.delete(e)},update:function(e,n,i){t.get(e)[n]=i},dispose:function(){t=new WeakMap}}}function va(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.material.id!==e.material.id?t.material.id-e.material.id:t.z!==e.z?t.z-e.z:t.id-e.id}function ga(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function ba(){const t=[];let e=0;const n=[],i=[],r=[];function o(n,i,r,o,a,s){let l=t[e];return void 0===l?(l={id:n.id,object:n,geometry:i,material:r,groupOrder:o,renderOrder:n.renderOrder,z:a,group:s},t[e]=l):(l.id=n.id,l.object=n,l.geometry=i,l.material=r,l.groupOrder=o,l.renderOrder=n.renderOrder,l.z=a,l.group=s),e++,l}return{opaque:n,transmissive:i,transparent:r,init:function(){e=0,n.length=0,i.length=0,r.length=0},push:function(t,e,a,s,l,c){const u=o(t,e,a,s,l,c);a.transmission>0?i.push(u):!0===a.transparent?r.push(u):n.push(u)},unshift:function(t,e,a,s,l,c){const u=o(t,e,a,s,l,c);a.transmission>0?i.unshift(u):!0===a.transparent?r.unshift(u):n.unshift(u)},finish:function(){for(let n=e,i=t.length;n<i;n++){const e=t[n];if(null===e.id)break;e.id=null,e.object=null,e.geometry=null,e.material=null,e.group=null}},sort:function(t,e){n.length>1&&n.sort(t||va),i.length>1&&i.sort(e||ga),r.length>1&&r.sort(e||ga)}}}function ya(){let t=new WeakMap;return{get:function(e,n){const i=t.get(e);let r;return void 0===i?(r=new ba,t.set(e,[r])):n>=i.length?(r=new ba,i.push(r)):r=i[n],r},dispose:function(){t=new WeakMap}}}function _a(){const t={};return{get:function(e){if(void 0!==t[e.id])return t[e.id];let n;switch(e.type){case"DirectionalLight":n={direction:new Me,color:new Xn};break;case"SpotLight":n={position:new Me,direction:new Me,color:new Xn,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new Me,color:new Xn,distance:0,decay:0};break;case"HemisphereLight":n={direction:new Me,skyColor:new Xn,groundColor:new Xn};break;case"RectAreaLight":n={color:new Xn,position:new Me,halfWidth:new Me,halfHeight:new Me}}return t[e.id]=n,n}}}let wa=0;function xa(t,e){return(e.castShadow?2:0)-(t.castShadow?2:0)+(e.map?1:0)-(t.map?1:0)}function Ca(t,e){const n=new _a,i=function(){const t={};return{get:function(e){if(void 0!==t[e.id])return t[e.id];let n;switch(e.type){case"DirectionalLight":case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new ie};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new ie,shadowCameraNear:1,shadowCameraFar:1e3}}return t[e.id]=n,n}}}(),r={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let t=0;t<9;t++)r.probe.push(new Me);const o=new Me,a=new ln,s=new ln;return{setup:function(o,a){let s=0,l=0,c=0;for(let t=0;t<9;t++)r.probe[t].set(0,0,0);let u=0,d=0,h=0,p=0,f=0,m=0,v=0,g=0,b=0,y=0,_=0;o.sort(xa);const w=!0===a?Math.PI:1;for(let t=0,e=o.length;t<e;t++){const e=o[t],a=e.color,x=e.intensity,C=e.distance,S=e.shadow&&e.shadow.map?e.shadow.map.texture:null;if(e.isAmbientLight)s+=a.r*x*w,l+=a.g*x*w,c+=a.b*x*w;else if(e.isLightProbe){for(let t=0;t<9;t++)r.probe[t].addScaledVector(e.sh.coefficients[t],x);_++}else if(e.isDirectionalLight){const t=n.get(e);if(t.color.copy(e.color).multiplyScalar(e.intensity*w),e.castShadow){const t=e.shadow,n=i.get(e);n.shadowBias=t.bias,n.shadowNormalBias=t.normalBias,n.shadowRadius=t.radius,n.shadowMapSize=t.mapSize,r.directionalShadow[u]=n,r.directionalShadowMap[u]=S,r.directionalShadowMatrix[u]=e.shadow.matrix,m++}r.directional[u]=t,u++}else if(e.isSpotLight){const t=n.get(e);t.position.setFromMatrixPosition(e.matrixWorld),t.color.copy(a).multiplyScalar(x*w),t.distance=C,t.coneCos=Math.cos(e.angle),t.penumbraCos=Math.cos(e.angle*(1-e.penumbra)),t.decay=e.decay,r.spot[h]=t;const o=e.shadow;if(e.map&&(r.spotLightMap[b]=e.map,b++,o.updateMatrices(e),e.castShadow&&y++),r.spotLightMatrix[h]=o.matrix,e.castShadow){const t=i.get(e);t.shadowBias=o.bias,t.shadowNormalBias=o.normalBias,t.shadowRadius=o.radius,t.shadowMapSize=o.mapSize,r.spotShadow[h]=t,r.spotShadowMap[h]=S,g++}h++}else if(e.isRectAreaLight){const t=n.get(e);t.color.copy(a).multiplyScalar(x),t.halfWidth.set(.5*e.width,0,0),t.halfHeight.set(0,.5*e.height,0),r.rectArea[p]=t,p++}else if(e.isPointLight){const t=n.get(e);if(t.color.copy(e.color).multiplyScalar(e.intensity*w),t.distance=e.distance,t.decay=e.decay,e.castShadow){const t=e.shadow,n=i.get(e);n.shadowBias=t.bias,n.shadowNormalBias=t.normalBias,n.shadowRadius=t.radius,n.shadowMapSize=t.mapSize,n.shadowCameraNear=t.camera.near,n.shadowCameraFar=t.camera.far,r.pointShadow[d]=n,r.pointShadowMap[d]=S,r.pointShadowMatrix[d]=e.shadow.matrix,v++}r.point[d]=t,d++}else if(e.isHemisphereLight){const t=n.get(e);t.skyColor.copy(e.color).multiplyScalar(x*w),t.groundColor.copy(e.groundColor).multiplyScalar(x*w),r.hemi[f]=t,f++}}p>0&&(e.isWebGL2?!0===t.has("OES_texture_float_linear")?(r.rectAreaLTC1=or.LTC_FLOAT_1,r.rectAreaLTC2=or.LTC_FLOAT_2):(r.rectAreaLTC1=or.LTC_HALF_1,r.rectAreaLTC2=or.LTC_HALF_2):!0===t.has("OES_texture_float_linear")?(r.rectAreaLTC1=or.LTC_FLOAT_1,r.rectAreaLTC2=or.LTC_FLOAT_2):!0===t.has("OES_texture_half_float_linear")?(r.rectAreaLTC1=or.LTC_HALF_1,r.rectAreaLTC2=or.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),r.ambient[0]=s,r.ambient[1]=l,r.ambient[2]=c;const x=r.hash;x.directionalLength===u&&x.pointLength===d&&x.spotLength===h&&x.rectAreaLength===p&&x.hemiLength===f&&x.numDirectionalShadows===m&&x.numPointShadows===v&&x.numSpotShadows===g&&x.numSpotMaps===b&&x.numLightProbes===_||(r.directional.length=u,r.spot.length=h,r.rectArea.length=p,r.point.length=d,r.hemi.length=f,r.directionalShadow.length=m,r.directionalShadowMap.length=m,r.pointShadow.length=v,r.pointShadowMap.length=v,r.spotShadow.length=g,r.spotShadowMap.length=g,r.directionalShadowMatrix.length=m,r.pointShadowMatrix.length=v,r.spotLightMatrix.length=g+b-y,r.spotLightMap.length=b,r.numSpotLightShadowsWithMaps=y,r.numLightProbes=_,x.directionalLength=u,x.pointLength=d,x.spotLength=h,x.rectAreaLength=p,x.hemiLength=f,x.numDirectionalShadows=m,x.numPointShadows=v,x.numSpotShadows=g,x.numSpotMaps=b,x.numLightProbes=_,r.version=wa++)},setupView:function(t,e){let n=0,i=0,l=0,c=0,u=0;const d=e.matrixWorldInverse;for(let e=0,h=t.length;e<h;e++){const h=t[e];if(h.isDirectionalLight){const t=r.directional[n];t.direction.setFromMatrixPosition(h.matrixWorld),o.setFromMatrixPosition(h.target.matrixWorld),t.direction.sub(o),t.direction.transformDirection(d),n++}else if(h.isSpotLight){const t=r.spot[l];t.position.setFromMatrixPosition(h.matrixWorld),t.position.applyMatrix4(d),t.direction.setFromMatrixPosition(h.matrixWorld),o.setFromMatrixPosition(h.target.matrixWorld),t.direction.sub(o),t.direction.transformDirection(d),l++}else if(h.isRectAreaLight){const t=r.rectArea[c];t.position.setFromMatrixPosition(h.matrixWorld),t.position.applyMatrix4(d),s.identity(),a.copy(h.matrixWorld),a.premultiply(d),s.extractRotation(a),t.halfWidth.set(.5*h.width,0,0),t.halfHeight.set(0,.5*h.height,0),t.halfWidth.applyMatrix4(s),t.halfHeight.applyMatrix4(s),c++}else if(h.isPointLight){const t=r.point[i];t.position.setFromMatrixPosition(h.matrixWorld),t.position.applyMatrix4(d),i++}else if(h.isHemisphereLight){const t=r.hemi[u];t.direction.setFromMatrixPosition(h.matrixWorld),t.direction.transformDirection(d),u++}}},state:r}}function Sa(t,e){const n=new Ca(t,e),i=[],r=[];return{init:function(){i.length=0,r.length=0},state:{lightsArray:i,shadowsArray:r,lights:n},setupLights:function(t){n.setup(i,t)},setupLightsView:function(t){n.setupView(i,t)},pushLight:function(t){i.push(t)},pushShadow:function(t){r.push(t)}}}function Ea(t,e){let n=new WeakMap;return{get:function(i,r=0){const o=n.get(i);let a;return void 0===o?(a=new Sa(t,e),n.set(i,[a])):r>=o.length?(a=new Sa(t,e),o.push(a)):a=o[r],a},dispose:function(){n=new WeakMap}}}class Ta extends Jn{constructor(t){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=3200,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(t)}copy(t){return super.copy(t),this.depthPacking=t.depthPacking,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this}}class Oa extends Jn{constructor(t){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(t)}copy(t){return super.copy(t),this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this}}function ka(t,e,n){let i=new tr;const o=new ie,u=new ie,d=new Ee,h=new Ta({depthPacking:3201}),p=new Oa,f={},m=n.maxTextureSize,v={[s]:l,[l]:s,[c]:2},g=new Fi({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new ie},radius:{value:4}},vertexShader:"void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",fragmentShader:"uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include <packing>\nvoid main() {\n\tconst float samples = float( VSM_SAMPLES );\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n\tfloat uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n\tfor ( float i = 0.0; i < samples; i ++ ) {\n\t\tfloat uvOffset = uvStart + i * uvStride;\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean / samples;\n\tsquared_mean = squared_mean / samples;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}"}),b=g.clone();b.defines.HORIZONTAL_PASS=1;const y=new pi;y.setAttribute("position",new ni(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const _=new Mi(y,g),w=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=r;let x=this.type;function C(n,i){const r=e.update(_);g.defines.VSM_SAMPLES!==n.blurSamples&&(g.defines.VSM_SAMPLES=n.blurSamples,b.defines.VSM_SAMPLES=n.blurSamples,g.needsUpdate=!0,b.needsUpdate=!0),null===n.mapPass&&(n.mapPass=new Oe(o.x,o.y)),g.uniforms.shadow_pass.value=n.map.texture,g.uniforms.resolution.value=n.mapSize,g.uniforms.radius.value=n.radius,t.setRenderTarget(n.mapPass),t.clear(),t.renderBufferDirect(i,null,r,g,_,null),b.uniforms.shadow_pass.value=n.mapPass.texture,b.uniforms.resolution.value=n.mapSize,b.uniforms.radius.value=n.radius,t.setRenderTarget(n.map),t.clear(),t.renderBufferDirect(i,null,r,b,_,null)}function S(e,n,i,r){let o=null;const s=!0===i.isPointLight?e.customDistanceMaterial:e.customDepthMaterial;if(void 0!==s)o=s;else if(o=!0===i.isPointLight?p:h,t.localClippingEnabled&&!0===n.clipShadows&&Array.isArray(n.clippingPlanes)&&0!==n.clippingPlanes.length||n.displacementMap&&0!==n.displacementScale||n.alphaMap&&n.alphaTest>0||n.map&&n.alphaTest>0){const t=o.uuid,e=n.uuid;let i=f[t];void 0===i&&(i={},f[t]=i);let r=i[e];void 0===r&&(r=o.clone(),i[e]=r,n.addEventListener("dispose",T)),o=r}if(o.visible=n.visible,o.wireframe=n.wireframe,o.side=r===a?null!==n.shadowSide?n.shadowSide:n.side:null!==n.shadowSide?n.shadowSide:v[n.side],o.alphaMap=n.alphaMap,o.alphaTest=n.alphaTest,o.map=n.map,o.clipShadows=n.clipShadows,o.clippingPlanes=n.clippingPlanes,o.clipIntersection=n.clipIntersection,o.displacementMap=n.displacementMap,o.displacementScale=n.displacementScale,o.displacementBias=n.displacementBias,o.wireframeLinewidth=n.wireframeLinewidth,o.linewidth=n.linewidth,!0===i.isPointLight&&!0===o.isMeshDistanceMaterial){t.properties.get(o).light=i}return o}function E(n,r,o,s,l){if(!1===n.visible)return;if(n.layers.test(r.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&l===a)&&(!n.frustumCulled||i.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(o.matrixWorldInverse,n.matrixWorld);const i=e.update(n),a=n.material;if(Array.isArray(a)){const e=i.groups;for(let c=0,u=e.length;c<u;c++){const u=e[c],d=a[u.materialIndex];if(d&&d.visible){const e=S(n,d,s,l);n.onBeforeShadow(t,n,r,o,i,e,u),t.renderBufferDirect(o,null,i,e,n,u),n.onAfterShadow(t,n,r,o,i,e,u)}}}else if(a.visible){const e=S(n,a,s,l);n.onBeforeShadow(t,n,r,o,i,e,null),t.renderBufferDirect(o,null,i,e,n,null),n.onAfterShadow(t,n,r,o,i,e,null)}}const c=n.children;for(let t=0,e=c.length;t<e;t++)E(c[t],r,o,s,l)}function T(t){t.target.removeEventListener("dispose",T);for(const e in f){const n=f[e],i=t.target.uuid;if(i in n){n[i].dispose(),delete n[i]}}}this.render=function(e,n,r){if(!1===w.enabled)return;if(!1===w.autoUpdate&&!1===w.needsUpdate)return;if(0===e.length)return;const s=t.getRenderTarget(),l=t.getActiveCubeFace(),c=t.getActiveMipmapLevel(),h=t.state;h.setBlending(0),h.buffers.color.setClear(1,1,1,1),h.buffers.depth.setTest(!0),h.setScissorTest(!1);const p=x!==a&&this.type===a,f=x===a&&this.type!==a;for(let s=0,l=e.length;s<l;s++){const l=e[s],c=l.shadow;if(void 0===c){console.warn("THREE.WebGLShadowMap:",l,"has no shadow.");continue}if(!1===c.autoUpdate&&!1===c.needsUpdate)continue;o.copy(c.mapSize);const v=c.getFrameExtents();if(o.multiply(v),u.copy(c.mapSize),(o.x>m||o.y>m)&&(o.x>m&&(u.x=Math.floor(m/v.x),o.x=u.x*v.x,c.mapSize.x=u.x),o.y>m&&(u.y=Math.floor(m/v.y),o.y=u.y*v.y,c.mapSize.y=u.y)),null===c.map||!0===p||!0===f){const t=this.type!==a?{minFilter:q,magFilter:q}:{};null!==c.map&&c.map.dispose(),c.map=new Oe(o.x,o.y,t),c.map.texture.name=l.name+".shadowMap",c.camera.updateProjectionMatrix()}t.setRenderTarget(c.map),t.clear();const g=c.getViewportCount();for(let t=0;t<g;t++){const e=c.getViewport(t);d.set(u.x*e.x,u.y*e.y,u.x*e.z,u.y*e.w),h.viewport(d),c.updateMatrices(l,t),i=c.getFrustum(),E(n,r,c.camera,l,this.type)}!0!==c.isPointLightShadow&&this.type===a&&C(c,r),c.needsUpdate=!1}x=this.type,w.needsUpdate=!1,t.setRenderTarget(s,l,c)}}function Aa(t,e,n){const i=n.isWebGL2;const r=new function(){let e=!1;const n=new Ee;let i=null;const r=new Ee(0,0,0,0);return{setMask:function(n){i===n||e||(t.colorMask(n,n,n,n),i=n)},setLocked:function(t){e=t},setClear:function(e,i,o,a,s){!0===s&&(e*=a,i*=a,o*=a),n.set(e,i,o,a),!1===r.equals(n)&&(t.clearColor(e,i,o,a),r.copy(n))},reset:function(){e=!1,i=null,r.set(-1,0,0,0)}}},o=new function(){let e=!1,n=null,i=null,r=null;return{setTest:function(e){e?st(t.DEPTH_TEST):lt(t.DEPTH_TEST)},setMask:function(i){n===i||e||(t.depthMask(i),n=i)},setFunc:function(e){if(i!==e){switch(e){case 0:t.depthFunc(t.NEVER);break;case 1:t.depthFunc(t.ALWAYS);break;case 2:t.depthFunc(t.LESS);break;case 3:default:t.depthFunc(t.LEQUAL);break;case 4:t.depthFunc(t.EQUAL);break;case 5:t.depthFunc(t.GEQUAL);break;case 6:t.depthFunc(t.GREATER);break;case 7:t.depthFunc(t.NOTEQUAL)}i=e}},setLocked:function(t){e=t},setClear:function(e){r!==e&&(t.clearDepth(e),r=e)},reset:function(){e=!1,n=null,i=null,r=null}}},a=new function(){let e=!1,n=null,i=null,r=null,o=null,a=null,s=null,l=null,c=null;return{setTest:function(n){e||(n?st(t.STENCIL_TEST):lt(t.STENCIL_TEST))},setMask:function(i){n===i||e||(t.stencilMask(i),n=i)},setFunc:function(e,n,a){i===e&&r===n&&o===a||(t.stencilFunc(e,n,a),i=e,r=n,o=a)},setOp:function(e,n,i){a===e&&s===n&&l===i||(t.stencilOp(e,n,i),a=e,s=n,l=i)},setLocked:function(t){e=t},setClear:function(e){c!==e&&(t.clearStencil(e),c=e)},reset:function(){e=!1,n=null,i=null,r=null,o=null,a=null,s=null,l=null,c=null}}},s=new WeakMap,c=new WeakMap;let k={},A={},P=new WeakMap,M=[],L=null,D=!1,R=null,I=null,j=null,N=null,F=null,z=null,B=null,$=new Xn(0,0,0),U=0,H=!1,V=null,Y=null,q=null,W=null,G=null;const X=t.getParameter(t.MAX_COMBINED_TEXTURE_IMAGE_UNITS);let K=!1,Z=0;const J=t.getParameter(t.VERSION);-1!==J.indexOf("WebGL")?(Z=parseFloat(/^WebGL (\d)/.exec(J)[1]),K=Z>=1):-1!==J.indexOf("OpenGL ES")&&(Z=parseFloat(/^OpenGL ES (\d)/.exec(J)[1]),K=Z>=2);let Q=null,tt={};const et=t.getParameter(t.SCISSOR_BOX),nt=t.getParameter(t.VIEWPORT),it=(new Ee).fromArray(et),rt=(new Ee).fromArray(nt);function ot(e,n,r,o){const a=new Uint8Array(4),s=t.createTexture();t.bindTexture(e,s),t.texParameteri(e,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(e,t.TEXTURE_MAG_FILTER,t.NEAREST);for(let s=0;s<r;s++)!i||e!==t.TEXTURE_3D&&e!==t.TEXTURE_2D_ARRAY?t.texImage2D(n+s,0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,a):t.texImage3D(n,0,t.RGBA,1,1,o,0,t.RGBA,t.UNSIGNED_BYTE,a);return s}const at={};function st(e){!0!==k[e]&&(t.enable(e),k[e]=!0)}function lt(e){!1!==k[e]&&(t.disable(e),k[e]=!1)}at[t.TEXTURE_2D]=ot(t.TEXTURE_2D,t.TEXTURE_2D,1),at[t.TEXTURE_CUBE_MAP]=ot(t.TEXTURE_CUBE_MAP,t.TEXTURE_CUBE_MAP_POSITIVE_X,6),i&&(at[t.TEXTURE_2D_ARRAY]=ot(t.TEXTURE_2D_ARRAY,t.TEXTURE_2D_ARRAY,1,1),at[t.TEXTURE_3D]=ot(t.TEXTURE_3D,t.TEXTURE_3D,1,1)),r.setClear(0,0,0,1),o.setClear(1),a.setClear(0),st(t.DEPTH_TEST),o.setFunc(3),ht(!1),pt(1),st(t.CULL_FACE),dt(0);const ct={[u]:t.FUNC_ADD,[d]:t.FUNC_SUBTRACT,[h]:t.FUNC_REVERSE_SUBTRACT};if(i)ct[103]=t.MIN,ct[104]=t.MAX;else{const t=e.get("EXT_blend_minmax");null!==t&&(ct[103]=t.MIN_EXT,ct[104]=t.MAX_EXT)}const ut={[p]:t.ZERO,[f]:t.ONE,[m]:t.SRC_COLOR,[g]:t.SRC_ALPHA,[C]:t.SRC_ALPHA_SATURATE,[w]:t.DST_COLOR,[y]:t.DST_ALPHA,[v]:t.ONE_MINUS_SRC_COLOR,[b]:t.ONE_MINUS_SRC_ALPHA,[x]:t.ONE_MINUS_DST_COLOR,[_]:t.ONE_MINUS_DST_ALPHA,[S]:t.CONSTANT_COLOR,[E]:t.ONE_MINUS_CONSTANT_COLOR,[T]:t.CONSTANT_ALPHA,[O]:t.ONE_MINUS_CONSTANT_ALPHA};function dt(e,n,i,r,o,a,s,l,c,d){if(0!==e){if(!1===D&&(st(t.BLEND),D=!0),5===e)o=o||n,a=a||i,s=s||r,n===I&&o===F||(t.blendEquationSeparate(ct[n],ct[o]),I=n,F=o),i===j&&r===N&&a===z&&s===B||(t.blendFuncSeparate(ut[i],ut[r],ut[a],ut[s]),j=i,N=r,z=a,B=s),!1!==l.equals($)&&c===U||(t.blendColor(l.r,l.g,l.b,c),$.copy(l),U=c),R=e,H=!1;else if(e!==R||d!==H){if(I===u&&F===u||(t.blendEquation(t.FUNC_ADD),I=u,F=u),d)switch(e){case 1:t.blendFuncSeparate(t.ONE,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA);break;case 2:t.blendFunc(t.ONE,t.ONE);break;case 3:t.blendFuncSeparate(t.ZERO,t.ONE_MINUS_SRC_COLOR,t.ZERO,t.ONE);break;case 4:t.blendFuncSeparate(t.ZERO,t.SRC_COLOR,t.ZERO,t.SRC_ALPHA);break;default:console.error("THREE.WebGLState: Invalid blending: ",e)}else switch(e){case 1:t.blendFuncSeparate(t.SRC_ALPHA,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA);break;case 2:t.blendFunc(t.SRC_ALPHA,t.ONE);break;case 3:t.blendFuncSeparate(t.ZERO,t.ONE_MINUS_SRC_COLOR,t.ZERO,t.ONE);break;case 4:t.blendFunc(t.ZERO,t.SRC_COLOR);break;default:console.error("THREE.WebGLState: Invalid blending: ",e)}j=null,N=null,z=null,B=null,$.set(0,0,0),U=0,R=e,H=d}}else!0===D&&(lt(t.BLEND),D=!1)}function ht(e){V!==e&&(e?t.frontFace(t.CW):t.frontFace(t.CCW),V=e)}function pt(e){0!==e?(st(t.CULL_FACE),e!==Y&&(1===e?t.cullFace(t.BACK):2===e?t.cullFace(t.FRONT):t.cullFace(t.FRONT_AND_BACK))):lt(t.CULL_FACE),Y=e}function ft(e,n,i){e?(st(t.POLYGON_OFFSET_FILL),W===n&&G===i||(t.polygonOffset(n,i),W=n,G=i)):lt(t.POLYGON_OFFSET_FILL)}return{buffers:{color:r,depth:o,stencil:a},enable:st,disable:lt,bindFramebuffer:function(e,n){return A[e]!==n&&(t.bindFramebuffer(e,n),A[e]=n,i&&(e===t.DRAW_FRAMEBUFFER&&(A[t.FRAMEBUFFER]=n),e===t.FRAMEBUFFER&&(A[t.DRAW_FRAMEBUFFER]=n)),!0)},drawBuffers:function(i,r){let o=M,a=!1;if(i)if(o=P.get(r),void 0===o&&(o=[],P.set(r,o)),i.isWebGLMultipleRenderTargets){const e=i.texture;if(o.length!==e.length||o[0]!==t.COLOR_ATTACHMENT0){for(let n=0,i=e.length;n<i;n++)o[n]=t.COLOR_ATTACHMENT0+n;o.length=e.length,a=!0}}else o[0]!==t.COLOR_ATTACHMENT0&&(o[0]=t.COLOR_ATTACHMENT0,a=!0);else o[0]!==t.BACK&&(o[0]=t.BACK,a=!0);a&&(n.isWebGL2?t.drawBuffers(o):e.get("WEBGL_draw_buffers").drawBuffersWEBGL(o))},useProgram:function(e){return L!==e&&(t.useProgram(e),L=e,!0)},setBlending:dt,setMaterial:function(e,n){2===e.side?lt(t.CULL_FACE):st(t.CULL_FACE);let i=e.side===l;n&&(i=!i),ht(i),1===e.blending&&!1===e.transparent?dt(0):dt(e.blending,e.blendEquation,e.blendSrc,e.blendDst,e.blendEquationAlpha,e.blendSrcAlpha,e.blendDstAlpha,e.blendColor,e.blendAlpha,e.premultipliedAlpha),o.setFunc(e.depthFunc),o.setTest(e.depthTest),o.setMask(e.depthWrite),r.setMask(e.colorWrite);const s=e.stencilWrite;a.setTest(s),s&&(a.setMask(e.stencilWriteMask),a.setFunc(e.stencilFunc,e.stencilRef,e.stencilFuncMask),a.setOp(e.stencilFail,e.stencilZFail,e.stencilZPass)),ft(e.polygonOffset,e.polygonOffsetFactor,e.polygonOffsetUnits),!0===e.alphaToCoverage?st(t.SAMPLE_ALPHA_TO_COVERAGE):lt(t.SAMPLE_ALPHA_TO_COVERAGE)},setFlipSided:ht,setCullFace:pt,setLineWidth:function(e){e!==q&&(K&&t.lineWidth(e),q=e)},setPolygonOffset:ft,setScissorTest:function(e){e?st(t.SCISSOR_TEST):lt(t.SCISSOR_TEST)},activeTexture:function(e){void 0===e&&(e=t.TEXTURE0+X-1),Q!==e&&(t.activeTexture(e),Q=e)},bindTexture:function(e,n,i){void 0===i&&(i=null===Q?t.TEXTURE0+X-1:Q);let r=tt[i];void 0===r&&(r={type:void 0,texture:void 0},tt[i]=r),r.type===e&&r.texture===n||(Q!==i&&(t.activeTexture(i),Q=i),t.bindTexture(e,n||at[e]),r.type=e,r.texture=n)},unbindTexture:function(){const e=tt[Q];void 0!==e&&void 0!==e.type&&(t.bindTexture(e.type,null),e.type=void 0,e.texture=void 0)},compressedTexImage2D:function(){try{t.compressedTexImage2D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},compressedTexImage3D:function(){try{t.compressedTexImage3D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texImage2D:function(){try{t.texImage2D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texImage3D:function(){try{t.texImage3D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},updateUBOMapping:function(e,n){let i=c.get(n);void 0===i&&(i=new WeakMap,c.set(n,i));let r=i.get(e);void 0===r&&(r=t.getUniformBlockIndex(n,e.name),i.set(e,r))},uniformBlockBinding:function(e,n){const i=c.get(n).get(e);s.get(n)!==i&&(t.uniformBlockBinding(n,i,e.__bindingPointIndex),s.set(n,i))},texStorage2D:function(){try{t.texStorage2D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texStorage3D:function(){try{t.texStorage3D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texSubImage2D:function(){try{t.texSubImage2D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texSubImage3D:function(){try{t.texSubImage3D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},compressedTexSubImage2D:function(){try{t.compressedTexSubImage2D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},compressedTexSubImage3D:function(){try{t.compressedTexSubImage3D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},scissor:function(e){!1===it.equals(e)&&(t.scissor(e.x,e.y,e.z,e.w),it.copy(e))},viewport:function(e){!1===rt.equals(e)&&(t.viewport(e.x,e.y,e.z,e.w),rt.copy(e))},reset:function(){t.disable(t.BLEND),t.disable(t.CULL_FACE),t.disable(t.DEPTH_TEST),t.disable(t.POLYGON_OFFSET_FILL),t.disable(t.SCISSOR_TEST),t.disable(t.STENCIL_TEST),t.disable(t.SAMPLE_ALPHA_TO_COVERAGE),t.blendEquation(t.FUNC_ADD),t.blendFunc(t.ONE,t.ZERO),t.blendFuncSeparate(t.ONE,t.ZERO,t.ONE,t.ZERO),t.blendColor(0,0,0,0),t.colorMask(!0,!0,!0,!0),t.clearColor(0,0,0,0),t.depthMask(!0),t.depthFunc(t.LESS),t.clearDepth(1),t.stencilMask(4294967295),t.stencilFunc(t.ALWAYS,0,4294967295),t.stencilOp(t.KEEP,t.KEEP,t.KEEP),t.clearStencil(0),t.cullFace(t.BACK),t.frontFace(t.CCW),t.polygonOffset(0,0),t.activeTexture(t.TEXTURE0),t.bindFramebuffer(t.FRAMEBUFFER,null),!0===i&&(t.bindFramebuffer(t.DRAW_FRAMEBUFFER,null),t.bindFramebuffer(t.READ_FRAMEBUFFER,null)),t.useProgram(null),t.lineWidth(1),t.scissor(0,0,t.canvas.width,t.canvas.height),t.viewport(0,0,t.canvas.width,t.canvas.height),k={},Q=null,tt={},A={},P=new WeakMap,M=[],L=null,D=!1,R=null,I=null,j=null,N=null,F=null,z=null,B=null,$=new Xn(0,0,0),U=0,H=!1,V=null,Y=null,q=null,W=null,G=null,it.set(0,0,t.canvas.width,t.canvas.height),rt.set(0,0,t.canvas.width,t.canvas.height),r.reset(),o.reset(),a.reset()}}}function Pa(t,e,n,i,r,o,a){const s=r.isWebGL2,l=e.has("WEBGL_multisampled_render_to_texture")?e.get("WEBGL_multisampled_render_to_texture"):null,c="undefined"!=typeof navigator&&/OculusBrowser/g.test(navigator.userAgent),u=new WeakMap;let d;const h=new WeakMap;let p=!1;try{p="undefined"!=typeof OffscreenCanvas&&null!==new OffscreenCanvas(1,1).getContext("2d")}catch(t){}function f(t,e){return p?new OffscreenCanvas(t,e):se("canvas")}function m(t,e,n,i){let r=1;if((t.width>i||t.height>i)&&(r=i/Math.max(t.width,t.height)),r<1||!0===e){if("undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap){const i=e?Qt:Math.floor,o=i(r*t.width),a=i(r*t.height);void 0===d&&(d=f(o,a));const s=n?f(o,a):d;s.width=o,s.height=a;return s.getContext("2d").drawImage(t,0,0,o,a),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+t.width+"x"+t.height+") to ("+o+"x"+a+")."),s}return"data"in t&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+t.width+"x"+t.height+")."),t}return t}function v(t){return Jt(t.width)&&Jt(t.height)}function g(t,e){return t.generateMipmaps&&e&&t.minFilter!==q&&t.minFilter!==X}function b(e){t.generateMipmap(e)}function y(n,i,r,o,a=!1){if(!1===s)return i;if(null!==n){if(void 0!==t[n])return t[n];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+n+"'")}let l=i;if(i===t.RED&&(r===t.FLOAT&&(l=t.R32F),r===t.HALF_FLOAT&&(l=t.R16F),r===t.UNSIGNED_BYTE&&(l=t.R8)),i===t.RED_INTEGER&&(r===t.UNSIGNED_BYTE&&(l=t.R8UI),r===t.UNSIGNED_SHORT&&(l=t.R16UI),r===t.UNSIGNED_INT&&(l=t.R32UI),r===t.BYTE&&(l=t.R8I),r===t.SHORT&&(l=t.R16I),r===t.INT&&(l=t.R32I)),i===t.RG&&(r===t.FLOAT&&(l=t.RG32F),r===t.HALF_FLOAT&&(l=t.RG16F),r===t.UNSIGNED_BYTE&&(l=t.RG8)),i===t.RGBA){const e=a?Et:me.getTransfer(o);r===t.FLOAT&&(l=t.RGBA32F),r===t.HALF_FLOAT&&(l=t.RGBA16F),r===t.UNSIGNED_BYTE&&(l=e===Tt?t.SRGB8_ALPHA8:t.RGBA8),r===t.UNSIGNED_SHORT_4_4_4_4&&(l=t.RGBA4),r===t.UNSIGNED_SHORT_5_5_5_1&&(l=t.RGB5_A1)}return l!==t.R16F&&l!==t.R32F&&l!==t.RG16F&&l!==t.RG32F&&l!==t.RGBA16F&&l!==t.RGBA32F||e.get("EXT_color_buffer_float"),l}function _(t,e,n){return!0===g(t,n)||t.isFramebufferTexture&&t.minFilter!==q&&t.minFilter!==X?Math.log2(Math.max(e.width,e.height))+1:void 0!==t.mipmaps&&t.mipmaps.length>0?t.mipmaps.length:t.isCompressedTexture&&Array.isArray(t.image)?e.mipmaps.length:1}function w(e){return e===q||e===W||e===G?t.NEAREST:t.LINEAR}function x(t){const e=t.target;e.removeEventListener("dispose",x),function(t){const e=i.get(t);if(void 0===e.__webglInit)return;const n=t.source,r=h.get(n);if(r){const i=r[e.__cacheKey];i.usedTimes--,0===i.usedTimes&&S(t),0===Object.keys(r).length&&h.delete(n)}i.remove(t)}(e),e.isVideoTexture&&u.delete(e)}function C(e){const n=e.target;n.removeEventListener("dispose",C),function(e){const n=e.texture,r=i.get(e),o=i.get(n);void 0!==o.__webglTexture&&(t.deleteTexture(o.__webglTexture),a.memory.textures--);e.depthTexture&&e.depthTexture.dispose();if(e.isWebGLCubeRenderTarget)for(let e=0;e<6;e++){if(Array.isArray(r.__webglFramebuffer[e]))for(let n=0;n<r.__webglFramebuffer[e].length;n++)t.deleteFramebuffer(r.__webglFramebuffer[e][n]);else t.deleteFramebuffer(r.__webglFramebuffer[e]);r.__webglDepthbuffer&&t.deleteRenderbuffer(r.__webglDepthbuffer[e])}else{if(Array.isArray(r.__webglFramebuffer))for(let e=0;e<r.__webglFramebuffer.length;e++)t.deleteFramebuffer(r.__webglFramebuffer[e]);else t.deleteFramebuffer(r.__webglFramebuffer);if(r.__webglDepthbuffer&&t.deleteRenderbuffer(r.__webglDepthbuffer),r.__webglMultisampledFramebuffer&&t.deleteFramebuffer(r.__webglMultisampledFramebuffer),r.__webglColorRenderbuffer)for(let e=0;e<r.__webglColorRenderbuffer.length;e++)r.__webglColorRenderbuffer[e]&&t.deleteRenderbuffer(r.__webglColorRenderbuffer[e]);r.__webglDepthRenderbuffer&&t.deleteRenderbuffer(r.__webglDepthRenderbuffer)}if(e.isWebGLMultipleRenderTargets)for(let e=0,r=n.length;e<r;e++){const r=i.get(n[e]);r.__webglTexture&&(t.deleteTexture(r.__webglTexture),a.memory.textures--),i.remove(n[e])}i.remove(n),i.remove(e)}(n)}function S(e){const n=i.get(e);t.deleteTexture(n.__webglTexture);const r=e.source;delete h.get(r)[n.__cacheKey],a.memory.textures--}let E=0;function T(e,r){const o=i.get(e);if(e.isVideoTexture&&function(t){const e=a.render.frame;u.get(t)!==e&&(u.set(t,e),t.update())}(e),!1===e.isRenderTargetTexture&&e.version>0&&o.__version!==e.version){const t=e.image;if(null===t)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else{if(!1!==t.complete)return void L(o,e,r);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}n.bindTexture(t.TEXTURE_2D,o.__webglTexture,t.TEXTURE0+r)}const O={[H]:t.REPEAT,[V]:t.CLAMP_TO_EDGE,[Y]:t.MIRRORED_REPEAT},k={[q]:t.NEAREST,[W]:t.NEAREST_MIPMAP_NEAREST,[G]:t.NEAREST_MIPMAP_LINEAR,[X]:t.LINEAR,[K]:t.LINEAR_MIPMAP_NEAREST,[Z]:t.LINEAR_MIPMAP_LINEAR},A={[Pt]:t.NEVER,[Nt]:t.ALWAYS,[Mt]:t.LESS,[Dt]:t.LEQUAL,[Lt]:t.EQUAL,[jt]:t.GEQUAL,[Rt]:t.GREATER,[It]:t.NOTEQUAL};function P(n,o,a){if(o.type!==nt||!1!==e.has("OES_texture_float_linear")||o.magFilter!==X&&o.magFilter!==K&&o.magFilter!==G&&o.magFilter!==Z&&o.minFilter!==X&&o.minFilter!==K&&o.minFilter!==G&&o.minFilter!==Z||console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),a?(t.texParameteri(n,t.TEXTURE_WRAP_S,O[o.wrapS]),t.texParameteri(n,t.TEXTURE_WRAP_T,O[o.wrapT]),n!==t.TEXTURE_3D&&n!==t.TEXTURE_2D_ARRAY||t.texParameteri(n,t.TEXTURE_WRAP_R,O[o.wrapR]),t.texParameteri(n,t.TEXTURE_MAG_FILTER,k[o.magFilter]),t.texParameteri(n,t.TEXTURE_MIN_FILTER,k[o.minFilter])):(t.texParameteri(n,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(n,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),n!==t.TEXTURE_3D&&n!==t.TEXTURE_2D_ARRAY||t.texParameteri(n,t.TEXTURE_WRAP_R,t.CLAMP_TO_EDGE),o.wrapS===V&&o.wrapT===V||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri(n,t.TEXTURE_MAG_FILTER,w(o.magFilter)),t.texParameteri(n,t.TEXTURE_MIN_FILTER,w(o.minFilter)),o.minFilter!==q&&o.minFilter!==X&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),o.compareFunction&&(t.texParameteri(n,t.TEXTURE_COMPARE_MODE,t.COMPARE_REF_TO_TEXTURE),t.texParameteri(n,t.TEXTURE_COMPARE_FUNC,A[o.compareFunction])),!0===e.has("EXT_texture_filter_anisotropic")){const a=e.get("EXT_texture_filter_anisotropic");if(o.magFilter===q)return;if(o.minFilter!==G&&o.minFilter!==Z)return;if(o.type===nt&&!1===e.has("OES_texture_float_linear"))return;if(!1===s&&o.type===it&&!1===e.has("OES_texture_half_float_linear"))return;(o.anisotropy>1||i.get(o).__currentAnisotropy)&&(t.texParameterf(n,a.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(o.anisotropy,r.getMaxAnisotropy())),i.get(o).__currentAnisotropy=o.anisotropy)}}function M(e,n){let i=!1;void 0===e.__webglInit&&(e.__webglInit=!0,n.addEventListener("dispose",x));const r=n.source;let o=h.get(r);void 0===o&&(o={},h.set(r,o));const s=function(t){const e=[];return e.push(t.wrapS),e.push(t.wrapT),e.push(t.wrapR||0),e.push(t.magFilter),e.push(t.minFilter),e.push(t.anisotropy),e.push(t.internalFormat),e.push(t.format),e.push(t.type),e.push(t.generateMipmaps),e.push(t.premultiplyAlpha),e.push(t.flipY),e.push(t.unpackAlignment),e.push(t.colorSpace),e.join()}(n);if(s!==e.__cacheKey){void 0===o[s]&&(o[s]={texture:t.createTexture(),usedTimes:0},a.memory.textures++,i=!0),o[s].usedTimes++;const r=o[e.__cacheKey];void 0!==r&&(o[e.__cacheKey].usedTimes--,0===r.usedTimes&&S(n)),e.__cacheKey=s,e.__webglTexture=o[s].texture}return i}function L(e,a,l){let c=t.TEXTURE_2D;(a.isDataArrayTexture||a.isCompressedArrayTexture)&&(c=t.TEXTURE_2D_ARRAY),a.isData3DTexture&&(c=t.TEXTURE_3D);const u=M(e,a),d=a.source;n.bindTexture(c,e.__webglTexture,t.TEXTURE0+l);const h=i.get(d);if(d.version!==h.__version||!0===u){n.activeTexture(t.TEXTURE0+l);const e=me.getPrimaries(me.workingColorSpace),i=a.colorSpace===_t?null:me.getPrimaries(a.colorSpace),p=a.colorSpace===_t||e===i?t.NONE:t.BROWSER_DEFAULT_WEBGL;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,a.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,a.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,a.unpackAlignment),t.pixelStorei(t.UNPACK_COLORSPACE_CONVERSION_WEBGL,p);const f=function(t){return!s&&(t.wrapS!==V||t.wrapT!==V||t.minFilter!==q&&t.minFilter!==X)}(a)&&!1===v(a.image);let w=m(a.image,f,!1,r.maxTextureSize);w=F(a,w);const x=v(w)||s,C=o.convert(a.format,a.colorSpace);let S,E=o.convert(a.type),T=y(a.internalFormat,C,E,a.colorSpace,a.isVideoTexture);P(c,a,x);const O=a.mipmaps,k=s&&!0!==a.isVideoTexture&&36196!==T,A=void 0===h.__version||!0===u,M=d.dataReady,L=_(a,w,x);if(a.isDepthTexture)T=t.DEPTH_COMPONENT,s?T=a.type===nt?t.DEPTH_COMPONENT32F:a.type===et?t.DEPTH_COMPONENT24:a.type===rt?t.DEPTH24_STENCIL8:t.DEPTH_COMPONENT16:a.type===nt&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),a.format===at&&T===t.DEPTH_COMPONENT&&a.type!==Q&&a.type!==et&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),a.type=et,E=o.convert(a.type)),a.format===st&&T===t.DEPTH_COMPONENT&&(T=t.DEPTH_STENCIL,a.type!==rt&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),a.type=rt,E=o.convert(a.type))),A&&(k?n.texStorage2D(t.TEXTURE_2D,1,T,w.width,w.height):n.texImage2D(t.TEXTURE_2D,0,T,w.width,w.height,0,C,E,null));else if(a.isDataTexture)if(O.length>0&&x){k&&A&&n.texStorage2D(t.TEXTURE_2D,L,T,O[0].width,O[0].height);for(let e=0,i=O.length;e<i;e++)S=O[e],k?M&&n.texSubImage2D(t.TEXTURE_2D,e,0,0,S.width,S.height,C,E,S.data):n.texImage2D(t.TEXTURE_2D,e,T,S.width,S.height,0,C,E,S.data);a.generateMipmaps=!1}else k?(A&&n.texStorage2D(t.TEXTURE_2D,L,T,w.width,w.height),M&&n.texSubImage2D(t.TEXTURE_2D,0,0,0,w.width,w.height,C,E,w.data)):n.texImage2D(t.TEXTURE_2D,0,T,w.width,w.height,0,C,E,w.data);else if(a.isCompressedTexture)if(a.isCompressedArrayTexture){k&&A&&n.texStorage3D(t.TEXTURE_2D_ARRAY,L,T,O[0].width,O[0].height,w.depth);for(let e=0,i=O.length;e<i;e++)S=O[e],a.format!==ot?null!==C?k?M&&n.compressedTexSubImage3D(t.TEXTURE_2D_ARRAY,e,0,0,0,S.width,S.height,w.depth,C,S.data,0,0):n.compressedTexImage3D(t.TEXTURE_2D_ARRAY,e,T,S.width,S.height,w.depth,0,S.data,0,0):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):k?M&&n.texSubImage3D(t.TEXTURE_2D_ARRAY,e,0,0,0,S.width,S.height,w.depth,C,E,S.data):n.texImage3D(t.TEXTURE_2D_ARRAY,e,T,S.width,S.height,w.depth,0,C,E,S.data)}else{k&&A&&n.texStorage2D(t.TEXTURE_2D,L,T,O[0].width,O[0].height);for(let e=0,i=O.length;e<i;e++)S=O[e],a.format!==ot?null!==C?k?M&&n.compressedTexSubImage2D(t.TEXTURE_2D,e,0,0,S.width,S.height,C,S.data):n.compressedTexImage2D(t.TEXTURE_2D,e,T,S.width,S.height,0,S.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):k?M&&n.texSubImage2D(t.TEXTURE_2D,e,0,0,S.width,S.height,C,E,S.data):n.texImage2D(t.TEXTURE_2D,e,T,S.width,S.height,0,C,E,S.data)}else if(a.isDataArrayTexture)k?(A&&n.texStorage3D(t.TEXTURE_2D_ARRAY,L,T,w.width,w.height,w.depth),M&&n.texSubImage3D(t.TEXTURE_2D_ARRAY,0,0,0,0,w.width,w.height,w.depth,C,E,w.data)):n.texImage3D(t.TEXTURE_2D_ARRAY,0,T,w.width,w.height,w.depth,0,C,E,w.data);else if(a.isData3DTexture)k?(A&&n.texStorage3D(t.TEXTURE_3D,L,T,w.width,w.height,w.depth),M&&n.texSubImage3D(t.TEXTURE_3D,0,0,0,0,w.width,w.height,w.depth,C,E,w.data)):n.texImage3D(t.TEXTURE_3D,0,T,w.width,w.height,w.depth,0,C,E,w.data);else if(a.isFramebufferTexture){if(A)if(k)n.texStorage2D(t.TEXTURE_2D,L,T,w.width,w.height);else{let e=w.width,i=w.height;for(let r=0;r<L;r++)n.texImage2D(t.TEXTURE_2D,r,T,e,i,0,C,E,null),e>>=1,i>>=1}}else if(O.length>0&&x){k&&A&&n.texStorage2D(t.TEXTURE_2D,L,T,O[0].width,O[0].height);for(let e=0,i=O.length;e<i;e++)S=O[e],k?M&&n.texSubImage2D(t.TEXTURE_2D,e,0,0,C,E,S):n.texImage2D(t.TEXTURE_2D,e,T,C,E,S);a.generateMipmaps=!1}else k?(A&&n.texStorage2D(t.TEXTURE_2D,L,T,w.width,w.height),M&&n.texSubImage2D(t.TEXTURE_2D,0,0,0,C,E,w)):n.texImage2D(t.TEXTURE_2D,0,T,C,E,w);g(a,x)&&b(c),h.__version=d.version,a.onUpdate&&a.onUpdate(a)}e.__version=a.version}function D(e,r,a,s,c,u){const d=o.convert(a.format,a.colorSpace),h=o.convert(a.type),p=y(a.internalFormat,d,h,a.colorSpace);if(!i.get(r).__hasExternalTextures){const e=Math.max(1,r.width>>u),i=Math.max(1,r.height>>u);c===t.TEXTURE_3D||c===t.TEXTURE_2D_ARRAY?n.texImage3D(c,u,p,e,i,r.depth,0,d,h,null):n.texImage2D(c,u,p,e,i,0,d,h,null)}n.bindFramebuffer(t.FRAMEBUFFER,e),N(r)?l.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,s,c,i.get(a).__webglTexture,0,j(r)):(c===t.TEXTURE_2D||c>=t.TEXTURE_CUBE_MAP_POSITIVE_X&&c<=t.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&t.framebufferTexture2D(t.FRAMEBUFFER,s,c,i.get(a).__webglTexture,u),n.bindFramebuffer(t.FRAMEBUFFER,null)}function R(e,n,i){if(t.bindRenderbuffer(t.RENDERBUFFER,e),n.depthBuffer&&!n.stencilBuffer){let r=!0===s?t.DEPTH_COMPONENT24:t.DEPTH_COMPONENT16;if(i||N(n)){const e=n.depthTexture;e&&e.isDepthTexture&&(e.type===nt?r=t.DEPTH_COMPONENT32F:e.type===et&&(r=t.DEPTH_COMPONENT24));const i=j(n);N(n)?l.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,i,r,n.width,n.height):t.renderbufferStorageMultisample(t.RENDERBUFFER,i,r,n.width,n.height)}else t.renderbufferStorage(t.RENDERBUFFER,r,n.width,n.height);t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,e)}else if(n.depthBuffer&&n.stencilBuffer){const r=j(n);i&&!1===N(n)?t.renderbufferStorageMultisample(t.RENDERBUFFER,r,t.DEPTH24_STENCIL8,n.width,n.height):N(n)?l.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,r,t.DEPTH24_STENCIL8,n.width,n.height):t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,n.width,n.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,e)}else{const e=!0===n.isWebGLMultipleRenderTargets?n.texture:[n.texture];for(let r=0;r<e.length;r++){const a=e[r],s=o.convert(a.format,a.colorSpace),c=o.convert(a.type),u=y(a.internalFormat,s,c,a.colorSpace),d=j(n);i&&!1===N(n)?t.renderbufferStorageMultisample(t.RENDERBUFFER,d,u,n.width,n.height):N(n)?l.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,d,u,n.width,n.height):t.renderbufferStorage(t.RENDERBUFFER,u,n.width,n.height)}}t.bindRenderbuffer(t.RENDERBUFFER,null)}function I(e){const r=i.get(e),o=!0===e.isWebGLCubeRenderTarget;if(e.depthTexture&&!r.__autoAllocateDepthBuffer){if(o)throw new Error("target.depthTexture not supported in Cube render targets");!function(e,r){if(r&&r.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(n.bindFramebuffer(t.FRAMEBUFFER,e),!r.depthTexture||!r.depthTexture.isDepthTexture)throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");i.get(r.depthTexture).__webglTexture&&r.depthTexture.image.width===r.width&&r.depthTexture.image.height===r.height||(r.depthTexture.image.width=r.width,r.depthTexture.image.height=r.height,r.depthTexture.needsUpdate=!0),T(r.depthTexture,0);const o=i.get(r.depthTexture).__webglTexture,a=j(r);if(r.depthTexture.format===at)N(r)?l.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.TEXTURE_2D,o,0,a):t.framebufferTexture2D(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.TEXTURE_2D,o,0);else{if(r.depthTexture.format!==st)throw new Error("Unknown depthTexture format");N(r)?l.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.TEXTURE_2D,o,0,a):t.framebufferTexture2D(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.TEXTURE_2D,o,0)}}(r.__webglFramebuffer,e)}else if(o){r.__webglDepthbuffer=[];for(let i=0;i<6;i++)n.bindFramebuffer(t.FRAMEBUFFER,r.__webglFramebuffer[i]),r.__webglDepthbuffer[i]=t.createRenderbuffer(),R(r.__webglDepthbuffer[i],e,!1)}else n.bindFramebuffer(t.FRAMEBUFFER,r.__webglFramebuffer),r.__webglDepthbuffer=t.createRenderbuffer(),R(r.__webglDepthbuffer,e,!1);n.bindFramebuffer(t.FRAMEBUFFER,null)}function j(t){return Math.min(r.maxSamples,t.samples)}function N(t){const n=i.get(t);return s&&t.samples>0&&!0===e.has("WEBGL_multisampled_render_to_texture")&&!1!==n.__useRenderToTexture}function F(t,n){const i=t.colorSpace,r=t.format,o=t.type;return!0===t.isCompressedTexture||!0===t.isVideoTexture||t.format===Bt||i!==xt&&i!==_t&&(me.getTransfer(i)===Tt?!1===s?!0===e.has("EXT_sRGB")&&r===ot?(t.format=Bt,t.minFilter=X,t.generateMipmaps=!1):n=ye.sRGBToLinear(n):r===ot&&o===J||console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",i)),n}this.allocateTextureUnit=function(){const t=E;return t>=r.maxTextures&&console.warn("THREE.WebGLTextures: Trying to use "+t+" texture units while this GPU supports only "+r.maxTextures),E+=1,t},this.resetTextureUnits=function(){E=0},this.setTexture2D=T,this.setTexture2DArray=function(e,r){const o=i.get(e);e.version>0&&o.__version!==e.version?L(o,e,r):n.bindTexture(t.TEXTURE_2D_ARRAY,o.__webglTexture,t.TEXTURE0+r)},this.setTexture3D=function(e,r){const o=i.get(e);e.version>0&&o.__version!==e.version?L(o,e,r):n.bindTexture(t.TEXTURE_3D,o.__webglTexture,t.TEXTURE0+r)},this.setTextureCube=function(e,a){const l=i.get(e);e.version>0&&l.__version!==e.version?function(e,a,l){if(6!==a.image.length)return;const c=M(e,a),u=a.source;n.bindTexture(t.TEXTURE_CUBE_MAP,e.__webglTexture,t.TEXTURE0+l);const d=i.get(u);if(u.version!==d.__version||!0===c){n.activeTexture(t.TEXTURE0+l);const e=me.getPrimaries(me.workingColorSpace),i=a.colorSpace===_t?null:me.getPrimaries(a.colorSpace),h=a.colorSpace===_t||e===i?t.NONE:t.BROWSER_DEFAULT_WEBGL;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,a.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,a.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,a.unpackAlignment),t.pixelStorei(t.UNPACK_COLORSPACE_CONVERSION_WEBGL,h);const p=a.isCompressedTexture||a.image[0].isCompressedTexture,f=a.image[0]&&a.image[0].isDataTexture,w=[];for(let t=0;t<6;t++)w[t]=p||f?f?a.image[t].image:a.image[t]:m(a.image[t],!1,!0,r.maxCubemapSize),w[t]=F(a,w[t]);const x=w[0],C=v(x)||s,S=o.convert(a.format,a.colorSpace),E=o.convert(a.type),T=y(a.internalFormat,S,E,a.colorSpace),O=s&&!0!==a.isVideoTexture,k=void 0===d.__version||!0===c,A=u.dataReady;let M,L=_(a,x,C);if(P(t.TEXTURE_CUBE_MAP,a,C),p){O&&k&&n.texStorage2D(t.TEXTURE_CUBE_MAP,L,T,x.width,x.height);for(let e=0;e<6;e++){M=w[e].mipmaps;for(let i=0;i<M.length;i++){const r=M[i];a.format!==ot?null!==S?O?A&&n.compressedTexSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+e,i,0,0,r.width,r.height,S,r.data):n.compressedTexImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+e,i,T,r.width,r.height,0,r.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):O?A&&n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+e,i,0,0,r.width,r.height,S,E,r.data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+e,i,T,r.width,r.height,0,S,E,r.data)}}}else{M=a.mipmaps,O&&k&&(M.length>0&&L++,n.texStorage2D(t.TEXTURE_CUBE_MAP,L,T,w[0].width,w[0].height));for(let e=0;e<6;e++)if(f){O?A&&n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+e,0,0,0,w[e].width,w[e].height,S,E,w[e].data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+e,0,T,w[e].width,w[e].height,0,S,E,w[e].data);for(let i=0;i<M.length;i++){const r=M[i].image[e].image;O?A&&n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+e,i+1,0,0,r.width,r.height,S,E,r.data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+e,i+1,T,r.width,r.height,0,S,E,r.data)}}else{O?A&&n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+e,0,0,0,S,E,w[e]):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+e,0,T,S,E,w[e]);for(let i=0;i<M.length;i++){const r=M[i];O?A&&n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+e,i+1,0,0,S,E,r.image[e]):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+e,i+1,T,S,E,r.image[e])}}}g(a,C)&&b(t.TEXTURE_CUBE_MAP),d.__version=u.version,a.onUpdate&&a.onUpdate(a)}e.__version=a.version}(l,e,a):n.bindTexture(t.TEXTURE_CUBE_MAP,l.__webglTexture,t.TEXTURE0+a)},this.rebindTextures=function(e,n,r){const o=i.get(e);void 0!==n&&D(o.__webglFramebuffer,e,e.texture,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,0),void 0!==r&&I(e)},this.setupRenderTarget=function(e){const l=e.texture,c=i.get(e),u=i.get(l);e.addEventListener("dispose",C),!0!==e.isWebGLMultipleRenderTargets&&(void 0===u.__webglTexture&&(u.__webglTexture=t.createTexture()),u.__version=l.version,a.memory.textures++);const d=!0===e.isWebGLCubeRenderTarget,h=!0===e.isWebGLMultipleRenderTargets,p=v(e)||s;if(d){c.__webglFramebuffer=[];for(let e=0;e<6;e++)if(s&&l.mipmaps&&l.mipmaps.length>0){c.__webglFramebuffer[e]=[];for(let n=0;n<l.mipmaps.length;n++)c.__webglFramebuffer[e][n]=t.createFramebuffer()}else c.__webglFramebuffer[e]=t.createFramebuffer()}else{if(s&&l.mipmaps&&l.mipmaps.length>0){c.__webglFramebuffer=[];for(let e=0;e<l.mipmaps.length;e++)c.__webglFramebuffer[e]=t.createFramebuffer()}else c.__webglFramebuffer=t.createFramebuffer();if(h)if(r.drawBuffers){const n=e.texture;for(let e=0,r=n.length;e<r;e++){const r=i.get(n[e]);void 0===r.__webglTexture&&(r.__webglTexture=t.createTexture(),a.memory.textures++)}}else console.warn("THREE.WebGLRenderer: WebGLMultipleRenderTargets can only be used with WebGL2 or WEBGL_draw_buffers extension.");if(s&&e.samples>0&&!1===N(e)){const i=h?l:[l];c.__webglMultisampledFramebuffer=t.createFramebuffer(),c.__webglColorRenderbuffer=[],n.bindFramebuffer(t.FRAMEBUFFER,c.__webglMultisampledFramebuffer);for(let n=0;n<i.length;n++){const r=i[n];c.__webglColorRenderbuffer[n]=t.createRenderbuffer(),t.bindRenderbuffer(t.RENDERBUFFER,c.__webglColorRenderbuffer[n]);const a=o.convert(r.format,r.colorSpace),s=o.convert(r.type),l=y(r.internalFormat,a,s,r.colorSpace,!0===e.isXRRenderTarget),u=j(e);t.renderbufferStorageMultisample(t.RENDERBUFFER,u,l,e.width,e.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+n,t.RENDERBUFFER,c.__webglColorRenderbuffer[n])}t.bindRenderbuffer(t.RENDERBUFFER,null),e.depthBuffer&&(c.__webglDepthRenderbuffer=t.createRenderbuffer(),R(c.__webglDepthRenderbuffer,e,!0)),n.bindFramebuffer(t.FRAMEBUFFER,null)}}if(d){n.bindTexture(t.TEXTURE_CUBE_MAP,u.__webglTexture),P(t.TEXTURE_CUBE_MAP,l,p);for(let n=0;n<6;n++)if(s&&l.mipmaps&&l.mipmaps.length>0)for(let i=0;i<l.mipmaps.length;i++)D(c.__webglFramebuffer[n][i],e,l,t.COLOR_ATTACHMENT0,t.TEXTURE_CUBE_MAP_POSITIVE_X+n,i);else D(c.__webglFramebuffer[n],e,l,t.COLOR_ATTACHMENT0,t.TEXTURE_CUBE_MAP_POSITIVE_X+n,0);g(l,p)&&b(t.TEXTURE_CUBE_MAP),n.unbindTexture()}else if(h){const r=e.texture;for(let o=0,a=r.length;o<a;o++){const a=r[o],s=i.get(a);n.bindTexture(t.TEXTURE_2D,s.__webglTexture),P(t.TEXTURE_2D,a,p),D(c.__webglFramebuffer,e,a,t.COLOR_ATTACHMENT0+o,t.TEXTURE_2D,0),g(a,p)&&b(t.TEXTURE_2D)}n.unbindTexture()}else{let i=t.TEXTURE_2D;if((e.isWebGL3DRenderTarget||e.isWebGLArrayRenderTarget)&&(s?i=e.isWebGL3DRenderTarget?t.TEXTURE_3D:t.TEXTURE_2D_ARRAY:console.error("THREE.WebGLTextures: THREE.Data3DTexture and THREE.DataArrayTexture only supported with WebGL2.")),n.bindTexture(i,u.__webglTexture),P(i,l,p),s&&l.mipmaps&&l.mipmaps.length>0)for(let n=0;n<l.mipmaps.length;n++)D(c.__webglFramebuffer[n],e,l,t.COLOR_ATTACHMENT0,i,n);else D(c.__webglFramebuffer,e,l,t.COLOR_ATTACHMENT0,i,0);g(l,p)&&b(i),n.unbindTexture()}e.depthBuffer&&I(e)},this.updateRenderTargetMipmap=function(e){const r=v(e)||s,o=!0===e.isWebGLMultipleRenderTargets?e.texture:[e.texture];for(let a=0,s=o.length;a<s;a++){const s=o[a];if(g(s,r)){const r=e.isWebGLCubeRenderTarget?t.TEXTURE_CUBE_MAP:t.TEXTURE_2D,o=i.get(s).__webglTexture;n.bindTexture(r,o),b(r),n.unbindTexture()}}},this.updateMultisampleRenderTarget=function(e){if(s&&e.samples>0&&!1===N(e)){const r=e.isWebGLMultipleRenderTargets?e.texture:[e.texture],o=e.width,a=e.height;let s=t.COLOR_BUFFER_BIT;const l=[],u=e.stencilBuffer?t.DEPTH_STENCIL_ATTACHMENT:t.DEPTH_ATTACHMENT,d=i.get(e),h=!0===e.isWebGLMultipleRenderTargets;if(h)for(let e=0;e<r.length;e++)n.bindFramebuffer(t.FRAMEBUFFER,d.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+e,t.RENDERBUFFER,null),n.bindFramebuffer(t.FRAMEBUFFER,d.__webglFramebuffer),t.framebufferTexture2D(t.DRAW_FRAMEBUFFER,t.COLOR_ATTACHMENT0+e,t.TEXTURE_2D,null,0);n.bindFramebuffer(t.READ_FRAMEBUFFER,d.__webglMultisampledFramebuffer),n.bindFramebuffer(t.DRAW_FRAMEBUFFER,d.__webglFramebuffer);for(let n=0;n<r.length;n++){l.push(t.COLOR_ATTACHMENT0+n),e.depthBuffer&&l.push(u);const p=void 0!==d.__ignoreDepthValues&&d.__ignoreDepthValues;if(!1===p&&(e.depthBuffer&&(s|=t.DEPTH_BUFFER_BIT),e.stencilBuffer&&(s|=t.STENCIL_BUFFER_BIT)),h&&t.framebufferRenderbuffer(t.READ_FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.RENDERBUFFER,d.__webglColorRenderbuffer[n]),!0===p&&(t.invalidateFramebuffer(t.READ_FRAMEBUFFER,[u]),t.invalidateFramebuffer(t.DRAW_FRAMEBUFFER,[u])),h){const e=i.get(r[n]).__webglTexture;t.framebufferTexture2D(t.DRAW_FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e,0)}t.blitFramebuffer(0,0,o,a,0,0,o,a,s,t.NEAREST),c&&t.invalidateFramebuffer(t.READ_FRAMEBUFFER,l)}if(n.bindFramebuffer(t.READ_FRAMEBUFFER,null),n.bindFramebuffer(t.DRAW_FRAMEBUFFER,null),h)for(let e=0;e<r.length;e++){n.bindFramebuffer(t.FRAMEBUFFER,d.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+e,t.RENDERBUFFER,d.__webglColorRenderbuffer[e]);const o=i.get(r[e]).__webglTexture;n.bindFramebuffer(t.FRAMEBUFFER,d.__webglFramebuffer),t.framebufferTexture2D(t.DRAW_FRAMEBUFFER,t.COLOR_ATTACHMENT0+e,t.TEXTURE_2D,o,0)}n.bindFramebuffer(t.DRAW_FRAMEBUFFER,d.__webglMultisampledFramebuffer)}},this.setupDepthRenderbuffer=I,this.setupFrameBufferTexture=D,this.useMultisampledRTT=N}function Ma(t,e,n){const i=n.isWebGL2;return{convert:function(n,r=""){let o;const a=me.getTransfer(r);if(n===J)return t.UNSIGNED_BYTE;if(1017===n)return t.UNSIGNED_SHORT_4_4_4_4;if(1018===n)return t.UNSIGNED_SHORT_5_5_5_1;if(1010===n)return t.BYTE;if(1011===n)return t.SHORT;if(n===Q)return t.UNSIGNED_SHORT;if(n===tt)return t.INT;if(n===et)return t.UNSIGNED_INT;if(n===nt)return t.FLOAT;if(n===it)return i?t.HALF_FLOAT:(o=e.get("OES_texture_half_float"),null!==o?o.HALF_FLOAT_OES:null);if(1021===n)return t.ALPHA;if(n===ot)return t.RGBA;if(1024===n)return t.LUMINANCE;if(1025===n)return t.LUMINANCE_ALPHA;if(n===at)return t.DEPTH_COMPONENT;if(n===st)return t.DEPTH_STENCIL;if(n===Bt)return o=e.get("EXT_sRGB"),null!==o?o.SRGB_ALPHA_EXT:null;if(1028===n)return t.RED;if(1029===n)return t.RED_INTEGER;if(1030===n)return t.RG;if(1031===n)return t.RG_INTEGER;if(1033===n)return t.RGBA_INTEGER;if(n===lt||n===ct||n===ut||n===dt)if(a===Tt){if(o=e.get("WEBGL_compressed_texture_s3tc_srgb"),null===o)return null;if(n===lt)return o.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===ct)return o.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===ut)return o.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===dt)return o.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else{if(o=e.get("WEBGL_compressed_texture_s3tc"),null===o)return null;if(n===lt)return o.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===ct)return o.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===ut)return o.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===dt)return o.COMPRESSED_RGBA_S3TC_DXT5_EXT}if(35840===n||35841===n||35842===n||35843===n){if(o=e.get("WEBGL_compressed_texture_pvrtc"),null===o)return null;if(35840===n)return o.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(35841===n)return o.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(35842===n)return o.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(35843===n)return o.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(36196===n)return o=e.get("WEBGL_compressed_texture_etc1"),null!==o?o.COMPRESSED_RGB_ETC1_WEBGL:null;if(37492===n||37496===n){if(o=e.get("WEBGL_compressed_texture_etc"),null===o)return null;if(37492===n)return a===Tt?o.COMPRESSED_SRGB8_ETC2:o.COMPRESSED_RGB8_ETC2;if(37496===n)return a===Tt?o.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:o.COMPRESSED_RGBA8_ETC2_EAC}if(37808===n||37809===n||37810===n||37811===n||37812===n||37813===n||37814===n||37815===n||37816===n||37817===n||37818===n||37819===n||37820===n||37821===n){if(o=e.get("WEBGL_compressed_texture_astc"),null===o)return null;if(37808===n)return a===Tt?o.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:o.COMPRESSED_RGBA_ASTC_4x4_KHR;if(37809===n)return a===Tt?o.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:o.COMPRESSED_RGBA_ASTC_5x4_KHR;if(37810===n)return a===Tt?o.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:o.COMPRESSED_RGBA_ASTC_5x5_KHR;if(37811===n)return a===Tt?o.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:o.COMPRESSED_RGBA_ASTC_6x5_KHR;if(37812===n)return a===Tt?o.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:o.COMPRESSED_RGBA_ASTC_6x6_KHR;if(37813===n)return a===Tt?o.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:o.COMPRESSED_RGBA_ASTC_8x5_KHR;if(37814===n)return a===Tt?o.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:o.COMPRESSED_RGBA_ASTC_8x6_KHR;if(37815===n)return a===Tt?o.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:o.COMPRESSED_RGBA_ASTC_8x8_KHR;if(37816===n)return a===Tt?o.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:o.COMPRESSED_RGBA_ASTC_10x5_KHR;if(37817===n)return a===Tt?o.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:o.COMPRESSED_RGBA_ASTC_10x6_KHR;if(37818===n)return a===Tt?o.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:o.COMPRESSED_RGBA_ASTC_10x8_KHR;if(37819===n)return a===Tt?o.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:o.COMPRESSED_RGBA_ASTC_10x10_KHR;if(37820===n)return a===Tt?o.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:o.COMPRESSED_RGBA_ASTC_12x10_KHR;if(37821===n)return a===Tt?o.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:o.COMPRESSED_RGBA_ASTC_12x12_KHR}if(n===ht||36494===n||36495===n){if(o=e.get("EXT_texture_compression_bptc"),null===o)return null;if(n===ht)return a===Tt?o.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:o.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(36494===n)return o.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(36495===n)return o.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}if(36283===n||36284===n||36285===n||36286===n){if(o=e.get("EXT_texture_compression_rgtc"),null===o)return null;if(n===ht)return o.COMPRESSED_RED_RGTC1_EXT;if(36284===n)return o.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(36285===n)return o.COMPRESSED_RED_GREEN_RGTC2_EXT;if(36286===n)return o.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}return n===rt?i?t.UNSIGNED_INT_24_8:(o=e.get("WEBGL_depth_texture"),null!==o?o.UNSIGNED_INT_24_8_WEBGL:null):void 0!==t[n]?t[n]:null}}}class La extends Hi{constructor(t=[]){super(),this.isArrayCamera=!0,this.cameras=t}}class Da extends Dn{constructor(){super(),this.isGroup=!0,this.type="Group"}}const Ra={type:"move"};class Ia{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return null===this._hand&&(this._hand=new Da,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return null===this._targetRay&&(this._targetRay=new Da,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new Me,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new Me),this._targetRay}getGripSpace(){return null===this._grip&&(this._grip=new Da,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new Me,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new Me),this._grip}dispatchEvent(t){return null!==this._targetRay&&this._targetRay.dispatchEvent(t),null!==this._grip&&this._grip.dispatchEvent(t),null!==this._hand&&this._hand.dispatchEvent(t),this}connect(t){if(t&&t.hand){const e=this._hand;if(e)for(const n of t.hand.values())this._getHandJoint(e,n)}return this.dispatchEvent({type:"connected",data:t}),this}disconnect(t){return this.dispatchEvent({type:"disconnected",data:t}),null!==this._targetRay&&(this._targetRay.visible=!1),null!==this._grip&&(this._grip.visible=!1),null!==this._hand&&(this._hand.visible=!1),this}update(t,e,n){let i=null,r=null,o=null;const a=this._targetRay,s=this._grip,l=this._hand;if(t&&"visible-blurred"!==e.session.visibilityState){if(l&&t.hand){o=!0;for(const i of t.hand.values()){const t=e.getJointPose(i,n),r=this._getHandJoint(l,i);null!==t&&(r.matrix.fromArray(t.transform.matrix),r.matrix.decompose(r.position,r.rotation,r.scale),r.matrixWorldNeedsUpdate=!0,r.jointRadius=t.radius),r.visible=null!==t}const i=l.joints["index-finger-tip"],r=l.joints["thumb-tip"],a=i.position.distanceTo(r.position),s=.02,c=.005;l.inputState.pinching&&a>s+c?(l.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:t.handedness,target:this})):!l.inputState.pinching&&a<=s-c&&(l.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:t.handedness,target:this}))}else null!==s&&t.gripSpace&&(r=e.getPose(t.gripSpace,n),null!==r&&(s.matrix.fromArray(r.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),s.matrixWorldNeedsUpdate=!0,r.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(r.linearVelocity)):s.hasLinearVelocity=!1,r.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(r.angularVelocity)):s.hasAngularVelocity=!1));null!==a&&(i=e.getPose(t.targetRaySpace,n),null===i&&null!==r&&(i=r),null!==i&&(a.matrix.fromArray(i.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,i.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(i.linearVelocity)):a.hasLinearVelocity=!1,i.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(i.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(Ra)))}return null!==a&&(a.visible=null!==i),null!==s&&(s.visible=null!==r),null!==l&&(l.visible=null!==o),this}_getHandJoint(t,e){if(void 0===t.joints[e.jointName]){const n=new Da;n.matrixAutoUpdate=!1,n.visible=!1,t.joints[e.jointName]=n,t.add(n)}return t.joints[e.jointName]}}class ja{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(t,e,n){if(null===this.texture){const i=new Se;t.properties.get(i).__webglTexture=e.texture,e.depthNear==n.depthNear&&e.depthFar==n.depthFar||(this.depthNear=e.depthNear,this.depthFar=e.depthFar),this.texture=i}}render(t,e){if(null!==this.texture){if(null===this.mesh){const t=e.cameras[0].viewport,n=new Fi({extensions:{fragDepth:!0},vertexShader:"\nvoid main() {\n\n\tgl_Position = vec4( position, 1.0 );\n\n}",fragmentShader:"\nuniform sampler2DArray depthColor;\nuniform float depthWidth;\nuniform float depthHeight;\n\nvoid main() {\n\n\tvec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight );\n\n\tif ( coord.x >= 1.0 ) {\n\n\t\tgl_FragDepthEXT = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r;\n\n\t} else {\n\n\t\tgl_FragDepthEXT = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r;\n\n\t}\n\n}",uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new Mi(new ir(20,20),n)}t.render(this.mesh,e)}}reset(){this.texture=null,this.mesh=null}}class Na extends Ht{constructor(t,e){super();const n=this;let i=null,r=1,o=null,a="local-floor",s=1,l=null,c=null,u=null,d=null,h=null,p=null;const f=new ja,m=e.getContextAttributes();let v=null,g=null;const b=[],y=[],_=new ie;let w=null;const x=new Hi;x.layers.enable(1),x.viewport=new Ee;const C=new Hi;C.layers.enable(2),C.viewport=new Ee;const S=[x,C],E=new La;E.layers.enable(1),E.layers.enable(2);let T=null,O=null;function k(t){const e=y.indexOf(t.inputSource);if(-1===e)return;const n=b[e];void 0!==n&&(n.update(t.inputSource,t.frame,l||o),n.dispatchEvent({type:t.type,data:t.inputSource}))}function A(){i.removeEventListener("select",k),i.removeEventListener("selectstart",k),i.removeEventListener("selectend",k),i.removeEventListener("squeeze",k),i.removeEventListener("squeezestart",k),i.removeEventListener("squeezeend",k),i.removeEventListener("end",A),i.removeEventListener("inputsourceschange",P);for(let t=0;t<b.length;t++){const e=y[t];null!==e&&(y[t]=null,b[t].disconnect(e))}T=null,O=null,f.reset(),t.setRenderTarget(v),h=null,d=null,u=null,i=null,g=null,I.stop(),n.isPresenting=!1,t.setPixelRatio(w),t.setSize(_.width,_.height,!1),n.dispatchEvent({type:"sessionend"})}function P(t){for(let e=0;e<t.removed.length;e++){const n=t.removed[e],i=y.indexOf(n);i>=0&&(y[i]=null,b[i].disconnect(n))}for(let e=0;e<t.added.length;e++){const n=t.added[e];let i=y.indexOf(n);if(-1===i){for(let t=0;t<b.length;t++){if(t>=y.length){y.push(n),i=t;break}if(null===y[t]){y[t]=n,i=t;break}}if(-1===i)break}const r=b[i];r&&r.connect(n)}}this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(t){let e=b[t];return void 0===e&&(e=new Ia,b[t]=e),e.getTargetRaySpace()},this.getControllerGrip=function(t){let e=b[t];return void 0===e&&(e=new Ia,b[t]=e),e.getGripSpace()},this.getHand=function(t){let e=b[t];return void 0===e&&(e=new Ia,b[t]=e),e.getHandSpace()},this.setFramebufferScaleFactor=function(t){r=t,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(t){a=t,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return l||o},this.setReferenceSpace=function(t){l=t},this.getBaseLayer=function(){return null!==d?d:h},this.getBinding=function(){return u},this.getFrame=function(){return p},this.getSession=function(){return i},this.setSession=async function(c){if(i=c,null!==i){if(v=t.getRenderTarget(),i.addEventListener("select",k),i.addEventListener("selectstart",k),i.addEventListener("selectend",k),i.addEventListener("squeeze",k),i.addEventListener("squeezestart",k),i.addEventListener("squeezeend",k),i.addEventListener("end",A),i.addEventListener("inputsourceschange",P),!0!==m.xrCompatible&&await e.makeXRCompatible(),w=t.getPixelRatio(),t.getSize(_),void 0===i.renderState.layers||!1===t.capabilities.isWebGL2){const n={antialias:void 0!==i.renderState.layers||m.antialias,alpha:!0,depth:m.depth,stencil:m.stencil,framebufferScaleFactor:r};h=new XRWebGLLayer(i,e,n),i.updateRenderState({baseLayer:h}),t.setPixelRatio(1),t.setSize(h.framebufferWidth,h.framebufferHeight,!1),g=new Oe(h.framebufferWidth,h.framebufferHeight,{format:ot,type:J,colorSpace:t.outputColorSpace,stencilBuffer:m.stencil})}else{let n=null,o=null,a=null;m.depth&&(a=m.stencil?e.DEPTH24_STENCIL8:e.DEPTH_COMPONENT24,n=m.stencil?st:at,o=m.stencil?rt:et);const s={colorFormat:e.RGBA8,depthFormat:a,scaleFactor:r};u=new XRWebGLBinding(i,e),d=u.createProjectionLayer(s),i.updateRenderState({layers:[d]}),t.setPixelRatio(1),t.setSize(d.textureWidth,d.textureHeight,!1),g=new Oe(d.textureWidth,d.textureHeight,{format:ot,type:J,depthTexture:new Br(d.textureWidth,d.textureHeight,o,void 0,void 0,void 0,void 0,void 0,void 0,n),stencilBuffer:m.stencil,colorSpace:t.outputColorSpace,samples:m.antialias?4:0});t.properties.get(g).__ignoreDepthValues=d.ignoreDepthValues}g.isXRRenderTarget=!0,this.setFoveation(s),l=null,o=await i.requestReferenceSpace(a),I.setContext(i),I.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(null!==i)return i.environmentBlendMode};const M=new Me,L=new Me;function D(t,e){null===e?t.matrixWorld.copy(t.matrix):t.matrixWorld.multiplyMatrices(e.matrixWorld,t.matrix),t.matrixWorldInverse.copy(t.matrixWorld).invert()}this.updateCamera=function(t){if(null===i)return;null!==f.texture&&(t.near=f.depthNear,t.far=f.depthFar),E.near=C.near=x.near=t.near,E.far=C.far=x.far=t.far,T===E.near&&O===E.far||(i.updateRenderState({depthNear:E.near,depthFar:E.far}),T=E.near,O=E.far,x.near=T,x.far=O,C.near=T,C.far=O,x.updateProjectionMatrix(),C.updateProjectionMatrix(),t.updateProjectionMatrix());const e=t.parent,n=E.cameras;D(E,e);for(let t=0;t<n.length;t++)D(n[t],e);2===n.length?function(t,e,n){M.setFromMatrixPosition(e.matrixWorld),L.setFromMatrixPosition(n.matrixWorld);const i=M.distanceTo(L),r=e.projectionMatrix.elements,o=n.projectionMatrix.elements,a=r[14]/(r[10]-1),s=r[14]/(r[10]+1),l=(r[9]+1)/r[5],c=(r[9]-1)/r[5],u=(r[8]-1)/r[0],d=(o[8]+1)/o[0],h=a*u,p=a*d,f=i/(-u+d),m=f*-u;e.matrixWorld.decompose(t.position,t.quaternion,t.scale),t.translateX(m),t.translateZ(f),t.matrixWorld.compose(t.position,t.quaternion,t.scale),t.matrixWorldInverse.copy(t.matrixWorld).invert();const v=a+f,g=s+f,b=h-m,y=p+(i-m),_=l*s/g*v,w=c*s/g*v;t.projectionMatrix.makePerspective(b,y,_,w,v,g),t.projectionMatrixInverse.copy(t.projectionMatrix).invert()}(E,x,C):E.projectionMatrix.copy(x.projectionMatrix),function(t,e,n){null===n?t.matrix.copy(e.matrixWorld):(t.matrix.copy(n.matrixWorld),t.matrix.invert(),t.matrix.multiply(e.matrixWorld));t.matrix.decompose(t.position,t.quaternion,t.scale),t.updateMatrixWorld(!0),t.projectionMatrix.copy(e.projectionMatrix),t.projectionMatrixInverse.copy(e.projectionMatrixInverse),t.isPerspectiveCamera&&(t.fov=2*Wt*Math.atan(1/t.projectionMatrix.elements[5]),t.zoom=1)}(t,E,e)},this.getCamera=function(){return E},this.getFoveation=function(){if(null!==d||null!==h)return s},this.setFoveation=function(t){s=t,null!==d&&(d.fixedFoveation=t),null!==h&&void 0!==h.fixedFoveation&&(h.fixedFoveation=t)},this.hasDepthSensing=function(){return null!==f.texture};let R=null;const I=new er;I.setAnimationLoop((function(e,r){if(c=r.getViewerPose(l||o),p=r,null!==c){const e=c.views;null!==h&&(t.setRenderTargetFramebuffer(g,h.framebuffer),t.setRenderTarget(g));let n=!1;e.length!==E.cameras.length&&(E.cameras.length=0,n=!0);for(let i=0;i<e.length;i++){const r=e[i];let o=null;if(null!==h)o=h.getViewport(r);else{const e=u.getViewSubImage(d,r);o=e.viewport,0===i&&(t.setRenderTargetTextures(g,e.colorTexture,d.ignoreDepthValues?void 0:e.depthStencilTexture),t.setRenderTarget(g))}let a=S[i];void 0===a&&(a=new Hi,a.layers.enable(i),a.viewport=new Ee,S[i]=a),a.matrix.fromArray(r.transform.matrix),a.matrix.decompose(a.position,a.quaternion,a.scale),a.projectionMatrix.fromArray(r.projectionMatrix),a.projectionMatrixInverse.copy(a.projectionMatrix).invert(),a.viewport.set(o.x,o.y,o.width,o.height),0===i&&(E.matrix.copy(a.matrix),E.matrix.decompose(E.position,E.quaternion,E.scale)),!0===n&&E.cameras.push(a)}const r=i.enabledFeatures;if(r&&r.includes("depth-sensing")){const n=u.getDepthInformation(e[0]);n&&n.isValid&&n.texture&&f.init(t,n,i.renderState)}}for(let t=0;t<b.length;t++){const e=y[t],n=b[t];null!==e&&void 0!==n&&n.update(e,r,l||o)}f.render(t,E),R&&R(e,r),r.detectedPlanes&&n.dispatchEvent({type:"planesdetected",data:r}),p=null})),this.setAnimationLoop=function(t){R=t},this.dispose=function(){}}}function Fa(t,e){function n(t,e){!0===t.matrixAutoUpdate&&t.updateMatrix(),e.value.copy(t.matrix)}function i(i,r){i.opacity.value=r.opacity,r.color&&i.diffuse.value.copy(r.color),r.emissive&&i.emissive.value.copy(r.emissive).multiplyScalar(r.emissiveIntensity),r.map&&(i.map.value=r.map,n(r.map,i.mapTransform)),r.alphaMap&&(i.alphaMap.value=r.alphaMap,n(r.alphaMap,i.alphaMapTransform)),r.bumpMap&&(i.bumpMap.value=r.bumpMap,n(r.bumpMap,i.bumpMapTransform),i.bumpScale.value=r.bumpScale,r.side===l&&(i.bumpScale.value*=-1)),r.normalMap&&(i.normalMap.value=r.normalMap,n(r.normalMap,i.normalMapTransform),i.normalScale.value.copy(r.normalScale),r.side===l&&i.normalScale.value.negate()),r.displacementMap&&(i.displacementMap.value=r.displacementMap,n(r.displacementMap,i.displacementMapTransform),i.displacementScale.value=r.displacementScale,i.displacementBias.value=r.displacementBias),r.emissiveMap&&(i.emissiveMap.value=r.emissiveMap,n(r.emissiveMap,i.emissiveMapTransform)),r.specularMap&&(i.specularMap.value=r.specularMap,n(r.specularMap,i.specularMapTransform)),r.alphaTest>0&&(i.alphaTest.value=r.alphaTest);const o=e.get(r).envMap;if(o&&(i.envMap.value=o,i.flipEnvMap.value=o.isCubeTexture&&!1===o.isRenderTargetTexture?-1:1,i.reflectivity.value=r.reflectivity,i.ior.value=r.ior,i.refractionRatio.value=r.refractionRatio),r.lightMap){i.lightMap.value=r.lightMap;const e=!0===t._useLegacyLights?Math.PI:1;i.lightMapIntensity.value=r.lightMapIntensity*e,n(r.lightMap,i.lightMapTransform)}r.aoMap&&(i.aoMap.value=r.aoMap,i.aoMapIntensity.value=r.aoMapIntensity,n(r.aoMap,i.aoMapTransform))}return{refreshFogUniforms:function(e,n){n.color.getRGB(e.fogColor.value,ji(t)),n.isFog?(e.fogNear.value=n.near,e.fogFar.value=n.far):n.isFogExp2&&(e.fogDensity.value=n.density)},refreshMaterialUniforms:function(t,r,o,a,s){r.isMeshBasicMaterial||r.isMeshLambertMaterial?i(t,r):r.isMeshToonMaterial?(i(t,r),function(t,e){e.gradientMap&&(t.gradientMap.value=e.gradientMap)}(t,r)):r.isMeshPhongMaterial?(i(t,r),function(t,e){t.specular.value.copy(e.specular),t.shininess.value=Math.max(e.shininess,1e-4)}(t,r)):r.isMeshStandardMaterial?(i(t,r),function(t,i){t.metalness.value=i.metalness,i.metalnessMap&&(t.metalnessMap.value=i.metalnessMap,n(i.metalnessMap,t.metalnessMapTransform));t.roughness.value=i.roughness,i.roughnessMap&&(t.roughnessMap.value=i.roughnessMap,n(i.roughnessMap,t.roughnessMapTransform));const r=e.get(i).envMap;r&&(t.envMapIntensity.value=i.envMapIntensity)}(t,r),r.isMeshPhysicalMaterial&&function(t,e,i){t.ior.value=e.ior,e.sheen>0&&(t.sheenColor.value.copy(e.sheenColor).multiplyScalar(e.sheen),t.sheenRoughness.value=e.sheenRoughness,e.sheenColorMap&&(t.sheenColorMap.value=e.sheenColorMap,n(e.sheenColorMap,t.sheenColorMapTransform)),e.sheenRoughnessMap&&(t.sheenRoughnessMap.value=e.sheenRoughnessMap,n(e.sheenRoughnessMap,t.sheenRoughnessMapTransform)));e.clearcoat>0&&(t.clearcoat.value=e.clearcoat,t.clearcoatRoughness.value=e.clearcoatRoughness,e.clearcoatMap&&(t.clearcoatMap.value=e.clearcoatMap,n(e.clearcoatMap,t.clearcoatMapTransform)),e.clearcoatRoughnessMap&&(t.clearcoatRoughnessMap.value=e.clearcoatRoughnessMap,n(e.clearcoatRoughnessMap,t.clearcoatRoughnessMapTransform)),e.clearcoatNormalMap&&(t.clearcoatNormalMap.value=e.clearcoatNormalMap,n(e.clearcoatNormalMap,t.clearcoatNormalMapTransform),t.clearcoatNormalScale.value.copy(e.clearcoatNormalScale),e.side===l&&t.clearcoatNormalScale.value.negate()));e.iridescence>0&&(t.iridescence.value=e.iridescence,t.iridescenceIOR.value=e.iridescenceIOR,t.iridescenceThicknessMinimum.value=e.iridescenceThicknessRange[0],t.iridescenceThicknessMaximum.value=e.iridescenceThicknessRange[1],e.iridescenceMap&&(t.iridescenceMap.value=e.iridescenceMap,n(e.iridescenceMap,t.iridescenceMapTransform)),e.iridescenceThicknessMap&&(t.iridescenceThicknessMap.value=e.iridescenceThicknessMap,n(e.iridescenceThicknessMap,t.iridescenceThicknessMapTransform)));e.transmission>0&&(t.transmission.value=e.transmission,t.transmissionSamplerMap.value=i.texture,t.transmissionSamplerSize.value.set(i.width,i.height),e.transmissionMap&&(t.transmissionMap.value=e.transmissionMap,n(e.transmissionMap,t.transmissionMapTransform)),t.thickness.value=e.thickness,e.thicknessMap&&(t.thicknessMap.value=e.thicknessMap,n(e.thicknessMap,t.thicknessMapTransform)),t.attenuationDistance.value=e.attenuationDistance,t.attenuationColor.value.copy(e.attenuationColor));e.anisotropy>0&&(t.anisotropyVector.value.set(e.anisotropy*Math.cos(e.anisotropyRotation),e.anisotropy*Math.sin(e.anisotropyRotation)),e.anisotropyMap&&(t.anisotropyMap.value=e.anisotropyMap,n(e.anisotropyMap,t.anisotropyMapTransform)));t.specularIntensity.value=e.specularIntensity,t.specularColor.value.copy(e.specularColor),e.specularColorMap&&(t.specularColorMap.value=e.specularColorMap,n(e.specularColorMap,t.specularColorMapTransform));e.specularIntensityMap&&(t.specularIntensityMap.value=e.specularIntensityMap,n(e.specularIntensityMap,t.specularIntensityMapTransform))}(t,r,s)):r.isMeshMatcapMaterial?(i(t,r),function(t,e){e.matcap&&(t.matcap.value=e.matcap)}(t,r)):r.isMeshDepthMaterial?i(t,r):r.isMeshDistanceMaterial?(i(t,r),function(t,n){const i=e.get(n).light;t.referencePosition.value.setFromMatrixPosition(i.matrixWorld),t.nearDistance.value=i.shadow.camera.near,t.farDistance.value=i.shadow.camera.far}(t,r)):r.isMeshNormalMaterial?i(t,r):r.isLineBasicMaterial?(function(t,e){t.diffuse.value.copy(e.color),t.opacity.value=e.opacity,e.map&&(t.map.value=e.map,n(e.map,t.mapTransform))}(t,r),r.isLineDashedMaterial&&function(t,e){t.dashSize.value=e.dashSize,t.totalSize.value=e.dashSize+e.gapSize,t.scale.value=e.scale}(t,r)):r.isPointsMaterial?function(t,e,i,r){t.diffuse.value.copy(e.color),t.opacity.value=e.opacity,t.size.value=e.size*i,t.scale.value=.5*r,e.map&&(t.map.value=e.map,n(e.map,t.uvTransform));e.alphaMap&&(t.alphaMap.value=e.alphaMap,n(e.alphaMap,t.alphaMapTransform));e.alphaTest>0&&(t.alphaTest.value=e.alphaTest)}(t,r,o,a):r.isSpriteMaterial?function(t,e){t.diffuse.value.copy(e.color),t.opacity.value=e.opacity,t.rotation.value=e.rotation,e.map&&(t.map.value=e.map,n(e.map,t.mapTransform));e.alphaMap&&(t.alphaMap.value=e.alphaMap,n(e.alphaMap,t.alphaMapTransform));e.alphaTest>0&&(t.alphaTest.value=e.alphaTest)}(t,r):r.isShadowMaterial?(t.color.value.copy(r.color),t.opacity.value=r.opacity):r.isShaderMaterial&&(r.uniformsNeedUpdate=!1)}}}function za(t,e,n,i){let r={},o={},a=[];const s=n.isWebGL2?t.getParameter(t.MAX_UNIFORM_BUFFER_BINDINGS):0;function l(t,e,n,i){const r=t.value,o=e+"_"+n;if(void 0===i[o])return i[o]="number"==typeof r||"boolean"==typeof r?r:r.clone(),!0;{const t=i[o];if("number"==typeof r||"boolean"==typeof r){if(t!==r)return i[o]=r,!0}else if(!1===t.equals(r))return t.copy(r),!0}return!1}function c(t){const e={boundary:0,storage:0};return"number"==typeof t||"boolean"==typeof t?(e.boundary=4,e.storage=4):t.isVector2?(e.boundary=8,e.storage=8):t.isVector3||t.isColor?(e.boundary=16,e.storage=12):t.isVector4?(e.boundary=16,e.storage=16):t.isMatrix3?(e.boundary=48,e.storage=48):t.isMatrix4?(e.boundary=64,e.storage=64):t.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",t),e}function u(e){const n=e.target;n.removeEventListener("dispose",u);const i=a.indexOf(n.__bindingPointIndex);a.splice(i,1),t.deleteBuffer(r[n.id]),delete r[n.id],delete o[n.id]}return{bind:function(t,e){const n=e.program;i.uniformBlockBinding(t,n)},update:function(n,d){let h=r[n.id];void 0===h&&(!function(t){const e=t.uniforms;let n=0;const i=16;for(let t=0,r=e.length;t<r;t++){const r=Array.isArray(e[t])?e[t]:[e[t]];for(let t=0,e=r.length;t<e;t++){const e=r[t],o=Array.isArray(e.value)?e.value:[e.value];for(let t=0,r=o.length;t<r;t++){const r=c(o[t]),a=n%i;0!==a&&i-a<r.boundary&&(n+=i-a),e.__data=new Float32Array(r.storage/Float32Array.BYTES_PER_ELEMENT),e.__offset=n,n+=r.storage}}}const r=n%i;r>0&&(n+=i-r);t.__size=n,t.__cache={}}(n),h=function(e){const n=function(){for(let t=0;t<s;t++)if(-1===a.indexOf(t))return a.push(t),t;return console.error("THREE.WebGLRenderer: Maximum number of simultaneously usable uniforms groups reached."),0}();e.__bindingPointIndex=n;const i=t.createBuffer(),r=e.__size,o=e.usage;return t.bindBuffer(t.UNIFORM_BUFFER,i),t.bufferData(t.UNIFORM_BUFFER,r,o),t.bindBuffer(t.UNIFORM_BUFFER,null),t.bindBufferBase(t.UNIFORM_BUFFER,n,i),i}(n),r[n.id]=h,n.addEventListener("dispose",u));const p=d.program;i.updateUBOMapping(n,p);const f=e.render.frame;o[n.id]!==f&&(!function(e){const n=r[e.id],i=e.uniforms,o=e.__cache;t.bindBuffer(t.UNIFORM_BUFFER,n);for(let e=0,n=i.length;e<n;e++){const n=Array.isArray(i[e])?i[e]:[i[e]];for(let i=0,r=n.length;i<r;i++){const r=n[i];if(!0===l(r,e,i,o)){const e=r.__offset,n=Array.isArray(r.value)?r.value:[r.value];let i=0;for(let o=0;o<n.length;o++){const a=n[o],s=c(a);"number"==typeof a||"boolean"==typeof a?(r.__data[0]=a,t.bufferSubData(t.UNIFORM_BUFFER,e+i,r.__data)):a.isMatrix3?(r.__data[0]=a.elements[0],r.__data[1]=a.elements[1],r.__data[2]=a.elements[2],r.__data[3]=0,r.__data[4]=a.elements[3],r.__data[5]=a.elements[4],r.__data[6]=a.elements[5],r.__data[7]=0,r.__data[8]=a.elements[6],r.__data[9]=a.elements[7],r.__data[10]=a.elements[8],r.__data[11]=0):(a.toArray(r.__data,i),i+=s.storage/Float32Array.BYTES_PER_ELEMENT)}t.bufferSubData(t.UNIFORM_BUFFER,e,r.__data)}}}t.bindBuffer(t.UNIFORM_BUFFER,null)}(n),o[n.id]=f)},dispose:function(){for(const e in r)t.deleteBuffer(r[e]);a=[],r={},o={}}}}class Ba{constructor(t={}){const{canvas:e=le(),context:n=null,depth:r=!0,stencil:o=!0,alpha:a=!1,antialias:c=!1,premultipliedAlpha:u=!0,preserveDrawingBuffer:d=!1,powerPreference:h="default",failIfMajorPerformanceCaveat:p=!1}=t;let f;this.isWebGLRenderer=!0,f=null!==n?n.getContextAttributes().alpha:a;const m=new Uint32Array(4),v=new Int32Array(4);let g=null,b=null;const y=[],_=[];this.domElement=e,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=wt,this._useLegacyLights=!1,this.toneMapping=M,this.toneMappingExposure=1;const w=this;let x=!1,C=0,S=0,E=null,T=-1,O=null;const k=new Ee,A=new Ee;let P=null;const L=new Xn(0);let D=0,R=e.width,I=e.height,j=1,N=null,F=null;const z=new Ee(0,0,R,I),B=new Ee(0,0,R,I);let $=!1;const U=new tr;let H=!1,V=!1,Y=null;const q=new ln,W=new ie,G=new Me,X={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function K(){return null===E?j:1}let tt,at,st,lt,ct,ut,dt,ht,pt,ft,mt,vt,gt,bt,yt,_t,Ct,St,Et,Tt,Ot,kt,At,Pt,Mt=n;function Lt(t,n){for(let i=0;i<t.length;i++){const r=t[i],o=e.getContext(r,n);if(null!==o)return o}return null}try{const t={alpha:!0,depth:r,stencil:o,antialias:c,premultipliedAlpha:u,preserveDrawingBuffer:d,powerPreference:h,failIfMajorPerformanceCaveat:p};if("setAttribute"in e&&e.setAttribute("data-engine",`three.js r${i}`),e.addEventListener("webglcontextlost",It,!1),e.addEventListener("webglcontextrestored",jt,!1),e.addEventListener("webglcontextcreationerror",Nt,!1),null===Mt){const e=["webgl2","webgl","experimental-webgl"];if(!0===w.isWebGL1Renderer&&e.shift(),Mt=Lt(e,t),null===Mt)throw Lt(e)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}"undefined"!=typeof WebGLRenderingContext&&Mt instanceof WebGLRenderingContext&&console.warn("THREE.WebGLRenderer: WebGL 1 support was deprecated in r153 and will be removed in r163."),void 0===Mt.getShaderPrecisionFormat&&(Mt.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(t){throw console.error("THREE.WebGLRenderer: "+t.message),t}function Dt(){tt=new Lr(Mt),at=new dr(Mt,tt,t),tt.init(at),kt=new Ma(Mt,tt,at),st=new Aa(Mt,tt,at),lt=new Ir(Mt),ct=new ma,ut=new Pa(Mt,tt,st,ct,at,kt,lt),dt=new pr(w),ht=new Mr(w),pt=new nr(Mt,at),At=new cr(Mt,tt,pt,at),ft=new Dr(Mt,pt,lt,At),mt=new zr(Mt,ft,pt,lt),Et=new Fr(Mt,at,ut),_t=new hr(ct),vt=new fa(w,dt,ht,tt,at,At,_t),gt=new Fa(w,ct),bt=new ya,yt=new Ea(tt,at),St=new lr(w,dt,ht,st,mt,f,u),Ct=new ka(w,mt,at),Pt=new za(Mt,lt,at,st),Tt=new ur(Mt,tt,lt,at),Ot=new Rr(Mt,tt,lt,at),lt.programs=vt.programs,w.capabilities=at,w.extensions=tt,w.properties=ct,w.renderLists=bt,w.shadowMap=Ct,w.state=st,w.info=lt}Dt();const Rt=new Na(w,Mt);function It(t){t.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),x=!0}function jt(){console.log("THREE.WebGLRenderer: Context Restored."),x=!1;const t=lt.autoReset,e=Ct.enabled,n=Ct.autoUpdate,i=Ct.needsUpdate,r=Ct.type;Dt(),lt.autoReset=t,Ct.enabled=e,Ct.autoUpdate=n,Ct.needsUpdate=i,Ct.type=r}function Nt(t){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",t.statusMessage)}function Ft(t){const e=t.target;e.removeEventListener("dispose",Ft),function(t){(function(t){const e=ct.get(t).programs;void 0!==e&&(e.forEach((function(t){vt.releaseProgram(t)})),t.isShaderMaterial&&vt.releaseShaderCache(t))})(t),ct.remove(t)}(e)}function zt(t,e,n){!0===t.transparent&&2===t.side&&!1===t.forceSinglePass?(t.side=l,t.needsUpdate=!0,Gt(t,e,n),t.side=s,t.needsUpdate=!0,Gt(t,e,n),t.side=2):Gt(t,e,n)}this.xr=Rt,this.getContext=function(){return Mt},this.getContextAttributes=function(){return Mt.getContextAttributes()},this.forceContextLoss=function(){const t=tt.get("WEBGL_lose_context");t&&t.loseContext()},this.forceContextRestore=function(){const t=tt.get("WEBGL_lose_context");t&&t.restoreContext()},this.getPixelRatio=function(){return j},this.setPixelRatio=function(t){void 0!==t&&(j=t,this.setSize(R,I,!1))},this.getSize=function(t){return t.set(R,I)},this.setSize=function(t,n,i=!0){Rt.isPresenting?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(R=t,I=n,e.width=Math.floor(t*j),e.height=Math.floor(n*j),!0===i&&(e.style.width=t+"px",e.style.height=n+"px"),this.setViewport(0,0,t,n))},this.getDrawingBufferSize=function(t){return t.set(R*j,I*j).floor()},this.setDrawingBufferSize=function(t,n,i){R=t,I=n,j=i,e.width=Math.floor(t*i),e.height=Math.floor(n*i),this.setViewport(0,0,t,n)},this.getCurrentViewport=function(t){return t.copy(k)},this.getViewport=function(t){return t.copy(z)},this.setViewport=function(t,e,n,i){t.isVector4?z.set(t.x,t.y,t.z,t.w):z.set(t,e,n,i),st.viewport(k.copy(z).multiplyScalar(j).floor())},this.getScissor=function(t){return t.copy(B)},this.setScissor=function(t,e,n,i){t.isVector4?B.set(t.x,t.y,t.z,t.w):B.set(t,e,n,i),st.scissor(A.copy(B).multiplyScalar(j).floor())},this.getScissorTest=function(){return $},this.setScissorTest=function(t){st.setScissorTest($=t)},this.setOpaqueSort=function(t){N=t},this.setTransparentSort=function(t){F=t},this.getClearColor=function(t){return t.copy(St.getClearColor())},this.setClearColor=function(){St.setClearColor.apply(St,arguments)},this.getClearAlpha=function(){return St.getClearAlpha()},this.setClearAlpha=function(){St.setClearAlpha.apply(St,arguments)},this.clear=function(t=!0,e=!0,n=!0){let i=0;if(t){let t=!1;if(null!==E){const e=E.texture.format;t=1033===e||1031===e||1029===e}if(t){const t=E.texture.type,e=t===J||t===et||t===Q||t===rt||1017===t||1018===t,n=St.getClearColor(),i=St.getClearAlpha(),r=n.r,o=n.g,a=n.b;e?(m[0]=r,m[1]=o,m[2]=a,m[3]=i,Mt.clearBufferuiv(Mt.COLOR,0,m)):(v[0]=r,v[1]=o,v[2]=a,v[3]=i,Mt.clearBufferiv(Mt.COLOR,0,v))}else i|=Mt.COLOR_BUFFER_BIT}e&&(i|=Mt.DEPTH_BUFFER_BIT),n&&(i|=Mt.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),Mt.clear(i)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){e.removeEventListener("webglcontextlost",It,!1),e.removeEventListener("webglcontextrestored",jt,!1),e.removeEventListener("webglcontextcreationerror",Nt,!1),bt.dispose(),yt.dispose(),ct.dispose(),dt.dispose(),ht.dispose(),mt.dispose(),At.dispose(),Pt.dispose(),vt.dispose(),Rt.dispose(),Rt.removeEventListener("sessionstart",$t),Rt.removeEventListener("sessionend",Ut),Y&&(Y.dispose(),Y=null),Ht.stop()},this.renderBufferDirect=function(t,e,n,i,r,o){null===e&&(e=X);const a=r.isMesh&&r.matrixWorld.determinant()<0,s=function(t,e,n,i,r){!0!==e.isScene&&(e=X);ut.resetTextureUnits();const o=e.fog,a=i.isMeshStandardMaterial?e.environment:null,s=null===E?w.outputColorSpace:!0===E.isXRRenderTarget?E.texture.colorSpace:xt,l=(i.isMeshStandardMaterial?ht:dt).get(i.envMap||a),c=!0===i.vertexColors&&!!n.attributes.color&&4===n.attributes.color.itemSize,u=!!n.attributes.tangent&&(!!i.normalMap||i.anisotropy>0),d=!!n.morphAttributes.position,h=!!n.morphAttributes.normal,p=!!n.morphAttributes.color;let f=M;i.toneMapped&&(null!==E&&!0!==E.isXRRenderTarget||(f=w.toneMapping));const m=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,v=void 0!==m?m.length:0,g=ct.get(i),y=b.state.lights;if(!0===H&&(!0===V||t!==O)){const e=t===O&&i.id===T;_t.setState(i,t,e)}let _=!1;i.version===g.__version?g.needsLights&&g.lightsStateVersion!==y.state.version||g.outputColorSpace!==s||r.isBatchedMesh&&!1===g.batching?_=!0:r.isBatchedMesh||!0!==g.batching?r.isInstancedMesh&&!1===g.instancing?_=!0:r.isInstancedMesh||!0!==g.instancing?r.isSkinnedMesh&&!1===g.skinning?_=!0:r.isSkinnedMesh||!0!==g.skinning?r.isInstancedMesh&&!0===g.instancingColor&&null===r.instanceColor||r.isInstancedMesh&&!1===g.instancingColor&&null!==r.instanceColor||g.envMap!==l||!0===i.fog&&g.fog!==o?_=!0:void 0===g.numClippingPlanes||g.numClippingPlanes===_t.numPlanes&&g.numIntersection===_t.numIntersection?(g.vertexAlphas!==c||g.vertexTangents!==u||g.morphTargets!==d||g.morphNormals!==h||g.morphColors!==p||g.toneMapping!==f||!0===at.isWebGL2&&g.morphTargetsCount!==v)&&(_=!0):_=!0:_=!0:_=!0:_=!0:(_=!0,g.__version=i.version);let x=g.currentProgram;!0===_&&(x=Gt(i,e,r));let C=!1,S=!1,k=!1;const A=x.getUniforms(),P=g.uniforms;st.useProgram(x.program)&&(C=!0,S=!0,k=!0);i.id!==T&&(T=i.id,S=!0);if(C||O!==t){A.setValue(Mt,"projectionMatrix",t.projectionMatrix),A.setValue(Mt,"viewMatrix",t.matrixWorldInverse);const e=A.map.cameraPosition;void 0!==e&&e.setValue(Mt,G.setFromMatrixPosition(t.matrixWorld)),at.logarithmicDepthBuffer&&A.setValue(Mt,"logDepthBufFC",2/(Math.log(t.far+1)/Math.LN2)),(i.isMeshPhongMaterial||i.isMeshToonMaterial||i.isMeshLambertMaterial||i.isMeshBasicMaterial||i.isMeshStandardMaterial||i.isShaderMaterial)&&A.setValue(Mt,"isOrthographic",!0===t.isOrthographicCamera),O!==t&&(O=t,S=!0,k=!0)}if(r.isSkinnedMesh){A.setOptional(Mt,r,"bindMatrix"),A.setOptional(Mt,r,"bindMatrixInverse");const t=r.skeleton;t&&(at.floatVertexTextures?(null===t.boneTexture&&t.computeBoneTexture(),A.setValue(Mt,"boneTexture",t.boneTexture,ut)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}r.isBatchedMesh&&(A.setOptional(Mt,r,"batchingTexture"),A.setValue(Mt,"batchingTexture",r._matricesTexture,ut));const L=n.morphAttributes;(void 0!==L.position||void 0!==L.normal||void 0!==L.color&&!0===at.isWebGL2)&&Et.update(r,n,x);(S||g.receiveShadow!==r.receiveShadow)&&(g.receiveShadow=r.receiveShadow,A.setValue(Mt,"receiveShadow",r.receiveShadow));i.isMeshGouraudMaterial&&null!==i.envMap&&(P.envMap.value=l,P.flipEnvMap.value=l.isCubeTexture&&!1===l.isRenderTargetTexture?-1:1);S&&(A.setValue(Mt,"toneMappingExposure",w.toneMappingExposure),g.needsLights&&(R=k,(D=P).ambientLightColor.needsUpdate=R,D.lightProbe.needsUpdate=R,D.directionalLights.needsUpdate=R,D.directionalLightShadows.needsUpdate=R,D.pointLights.needsUpdate=R,D.pointLightShadows.needsUpdate=R,D.spotLights.needsUpdate=R,D.spotLightShadows.needsUpdate=R,D.rectAreaLights.needsUpdate=R,D.hemisphereLights.needsUpdate=R),o&&!0===i.fog&&gt.refreshFogUniforms(P,o),gt.refreshMaterialUniforms(P,i,j,I,Y),qo.upload(Mt,Xt(g),P,ut));var D,R;i.isShaderMaterial&&!0===i.uniformsNeedUpdate&&(qo.upload(Mt,Xt(g),P,ut),i.uniformsNeedUpdate=!1);i.isSpriteMaterial&&A.setValue(Mt,"center",r.center);if(A.setValue(Mt,"modelViewMatrix",r.modelViewMatrix),A.setValue(Mt,"normalMatrix",r.normalMatrix),A.setValue(Mt,"modelMatrix",r.matrixWorld),i.isShaderMaterial||i.isRawShaderMaterial){const t=i.uniformsGroups;for(let e=0,n=t.length;e<n;e++)if(at.isWebGL2){const n=t[e];Pt.update(n,x),Pt.bind(n,x)}else console.warn("THREE.WebGLRenderer: Uniform Buffer Objects can only be used with WebGL 2.")}return x}(t,e,n,i,r);st.setMaterial(i,a);let l=n.index,c=1;if(!0===i.wireframe){if(l=ft.getWireframeAttribute(n),void 0===l)return;c=2}const u=n.drawRange,d=n.attributes.position;let h=u.start*c,p=(u.start+u.count)*c;null!==o&&(h=Math.max(h,o.start*c),p=Math.min(p,(o.start+o.count)*c)),null!==l?(h=Math.max(h,0),p=Math.min(p,l.count)):null!=d&&(h=Math.max(h,0),p=Math.min(p,d.count));const f=p-h;if(f<0||f===1/0)return;let m;At.setup(r,i,s,n,l);let v=Tt;if(null!==l&&(m=pt.get(l),v=Ot,v.setIndex(m)),r.isMesh)!0===i.wireframe?(st.setLineWidth(i.wireframeLinewidth*K()),v.setMode(Mt.LINES)):v.setMode(Mt.TRIANGLES);else if(r.isLine){let t=i.linewidth;void 0===t&&(t=1),st.setLineWidth(t*K()),r.isLineSegments?v.setMode(Mt.LINES):r.isLineLoop?v.setMode(Mt.LINE_LOOP):v.setMode(Mt.LINE_STRIP)}else r.isPoints?v.setMode(Mt.POINTS):r.isSprite&&v.setMode(Mt.TRIANGLES);if(r.isBatchedMesh)v.renderMultiDraw(r._multiDrawStarts,r._multiDrawCounts,r._multiDrawCount);else if(r.isInstancedMesh)v.renderInstances(h,f,r.count);else if(n.isInstancedBufferGeometry){const t=void 0!==n._maxInstanceCount?n._maxInstanceCount:1/0,e=Math.min(n.instanceCount,t);v.renderInstances(h,f,e)}else v.render(h,f)},this.compile=function(t,e,n=null){null===n&&(n=t),b=yt.get(n),b.init(),_.push(b),n.traverseVisible((function(t){t.isLight&&t.layers.test(e.layers)&&(b.pushLight(t),t.castShadow&&b.pushShadow(t))})),t!==n&&t.traverseVisible((function(t){t.isLight&&t.layers.test(e.layers)&&(b.pushLight(t),t.castShadow&&b.pushShadow(t))})),b.setupLights(w._useLegacyLights);const i=new Set;return t.traverse((function(t){const e=t.material;if(e)if(Array.isArray(e))for(let r=0;r<e.length;r++){const o=e[r];zt(o,n,t),i.add(o)}else zt(e,n,t),i.add(e)})),_.pop(),b=null,i},this.compileAsync=function(t,e,n=null){const i=this.compile(t,e,n);return new Promise((e=>{function n(){i.forEach((function(t){ct.get(t).currentProgram.isReady()&&i.delete(t)})),0!==i.size?setTimeout(n,10):e(t)}null!==tt.get("KHR_parallel_shader_compile")?n():setTimeout(n,10)}))};let Bt=null;function $t(){Ht.stop()}function Ut(){Ht.start()}const Ht=new er;function Vt(t,e,n,i){if(!1===t.visible)return;if(t.layers.test(e.layers))if(t.isGroup)n=t.renderOrder;else if(t.isLOD)!0===t.autoUpdate&&t.update(e);else if(t.isLight)b.pushLight(t),t.castShadow&&b.pushShadow(t);else if(t.isSprite){if(!t.frustumCulled||U.intersectsSprite(t)){i&&G.setFromMatrixPosition(t.matrixWorld).applyMatrix4(q);const e=mt.update(t),r=t.material;r.visible&&g.push(t,e,r,n,G.z,null)}}else if((t.isMesh||t.isLine||t.isPoints)&&(!t.frustumCulled||U.intersectsObject(t))){const e=mt.update(t),r=t.material;if(i&&(void 0!==t.boundingSphere?(null===t.boundingSphere&&t.computeBoundingSphere(),G.copy(t.boundingSphere.center)):(null===e.boundingSphere&&e.computeBoundingSphere(),G.copy(e.boundingSphere.center)),G.applyMatrix4(t.matrixWorld).applyMatrix4(q)),Array.isArray(r)){const i=e.groups;for(let o=0,a=i.length;o<a;o++){const a=i[o],s=r[a.materialIndex];s&&s.visible&&g.push(t,e,s,n,G.z,a)}}else r.visible&&g.push(t,e,r,n,G.z,null)}const r=t.children;for(let t=0,o=r.length;t<o;t++)Vt(r[t],e,n,i)}function Yt(t,e,n,i){const r=t.opaque,o=t.transmissive,a=t.transparent;b.setupLightsView(n),!0===H&&_t.setGlobalState(w.clippingPlanes,n),o.length>0&&function(t,e,n,i){const r=!0===n.isScene?n.overrideMaterial:null;if(null!==r)return;const o=at.isWebGL2;null===Y&&(Y=new Oe(1,1,{generateMipmaps:!0,type:tt.has("EXT_color_buffer_half_float")?it:J,minFilter:Z,samples:o?4:0}));w.getDrawingBufferSize(W),o?Y.setSize(W.x,W.y):Y.setSize(Qt(W.x),Qt(W.y));const a=w.getRenderTarget();w.setRenderTarget(Y),w.getClearColor(L),D=w.getClearAlpha(),D<1&&w.setClearColor(16777215,.5);w.clear();const s=w.toneMapping;w.toneMapping=M,qt(t,n,i),ut.updateMultisampleRenderTarget(Y),ut.updateRenderTargetMipmap(Y);let c=!1;for(let t=0,r=e.length;t<r;t++){const r=e[t],o=r.object,a=r.geometry,s=r.material,u=r.group;if(2===s.side&&o.layers.test(i.layers)){const t=s.side;s.side=l,s.needsUpdate=!0,Wt(o,n,i,a,s,u),s.side=t,s.needsUpdate=!0,c=!0}}!0===c&&(ut.updateMultisampleRenderTarget(Y),ut.updateRenderTargetMipmap(Y));w.setRenderTarget(a),w.setClearColor(L,D),w.toneMapping=s}(r,o,e,n),i&&st.viewport(k.copy(i)),r.length>0&&qt(r,e,n),o.length>0&&qt(o,e,n),a.length>0&&qt(a,e,n),st.buffers.depth.setTest(!0),st.buffers.depth.setMask(!0),st.buffers.color.setMask(!0),st.setPolygonOffset(!1)}function qt(t,e,n){const i=!0===e.isScene?e.overrideMaterial:null;for(let r=0,o=t.length;r<o;r++){const o=t[r],a=o.object,s=o.geometry,l=null===i?o.material:i,c=o.group;a.layers.test(n.layers)&&Wt(a,e,n,s,l,c)}}function Wt(t,e,n,i,r,o){t.onBeforeRender(w,e,n,i,r,o),t.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,t.matrixWorld),t.normalMatrix.getNormalMatrix(t.modelViewMatrix),r.onBeforeRender(w,e,n,i,t,o),!0===r.transparent&&2===r.side&&!1===r.forceSinglePass?(r.side=l,r.needsUpdate=!0,w.renderBufferDirect(n,e,i,r,t,o),r.side=s,r.needsUpdate=!0,w.renderBufferDirect(n,e,i,r,t,o),r.side=2):w.renderBufferDirect(n,e,i,r,t,o),t.onAfterRender(w,e,n,i,r,o)}function Gt(t,e,n){!0!==e.isScene&&(e=X);const i=ct.get(t),r=b.state.lights,o=b.state.shadowsArray,a=r.state.version,s=vt.getParameters(t,r.state,o,e,n),l=vt.getProgramCacheKey(s);let c=i.programs;i.environment=t.isMeshStandardMaterial?e.environment:null,i.fog=e.fog,i.envMap=(t.isMeshStandardMaterial?ht:dt).get(t.envMap||i.environment),void 0===c&&(t.addEventListener("dispose",Ft),c=new Map,i.programs=c);let u=c.get(l);if(void 0!==u){if(i.currentProgram===u&&i.lightsStateVersion===a)return Kt(t,s),u}else s.uniforms=vt.getUniforms(t),t.onBuild(n,s,w),t.onBeforeCompile(s,w),u=vt.acquireProgram(s,l),c.set(l,u),i.uniforms=s.uniforms;const d=i.uniforms;return(t.isShaderMaterial||t.isRawShaderMaterial)&&!0!==t.clipping||(d.clippingPlanes=_t.uniform),Kt(t,s),i.needsLights=function(t){return t.isMeshLambertMaterial||t.isMeshToonMaterial||t.isMeshPhongMaterial||t.isMeshStandardMaterial||t.isShadowMaterial||t.isShaderMaterial&&!0===t.lights}(t),i.lightsStateVersion=a,i.needsLights&&(d.ambientLightColor.value=r.state.ambient,d.lightProbe.value=r.state.probe,d.directionalLights.value=r.state.directional,d.directionalLightShadows.value=r.state.directionalShadow,d.spotLights.value=r.state.spot,d.spotLightShadows.value=r.state.spotShadow,d.rectAreaLights.value=r.state.rectArea,d.ltc_1.value=r.state.rectAreaLTC1,d.ltc_2.value=r.state.rectAreaLTC2,d.pointLights.value=r.state.point,d.pointLightShadows.value=r.state.pointShadow,d.hemisphereLights.value=r.state.hemi,d.directionalShadowMap.value=r.state.directionalShadowMap,d.directionalShadowMatrix.value=r.state.directionalShadowMatrix,d.spotShadowMap.value=r.state.spotShadowMap,d.spotLightMatrix.value=r.state.spotLightMatrix,d.spotLightMap.value=r.state.spotLightMap,d.pointShadowMap.value=r.state.pointShadowMap,d.pointShadowMatrix.value=r.state.pointShadowMatrix),i.currentProgram=u,i.uniformsList=null,u}function Xt(t){if(null===t.uniformsList){const e=t.currentProgram.getUniforms();t.uniformsList=qo.seqWithValue(e.seq,t.uniforms)}return t.uniformsList}function Kt(t,e){const n=ct.get(t);n.outputColorSpace=e.outputColorSpace,n.batching=e.batching,n.instancing=e.instancing,n.instancingColor=e.instancingColor,n.skinning=e.skinning,n.morphTargets=e.morphTargets,n.morphNormals=e.morphNormals,n.morphColors=e.morphColors,n.morphTargetsCount=e.morphTargetsCount,n.numClippingPlanes=e.numClippingPlanes,n.numIntersection=e.numClipIntersection,n.vertexAlphas=e.vertexAlphas,n.vertexTangents=e.vertexTangents,n.toneMapping=e.toneMapping}Ht.setAnimationLoop((function(t){Bt&&Bt(t)})),"undefined"!=typeof self&&Ht.setContext(self),this.setAnimationLoop=function(t){Bt=t,Rt.setAnimationLoop(t),null===t?Ht.stop():Ht.start()},Rt.addEventListener("sessionstart",$t),Rt.addEventListener("sessionend",Ut),this.render=function(t,e){if(void 0!==e&&!0!==e.isCamera)return void console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");if(!0===x)return;!0===t.matrixWorldAutoUpdate&&t.updateMatrixWorld(),null===e.parent&&!0===e.matrixWorldAutoUpdate&&e.updateMatrixWorld(),!0===Rt.enabled&&!0===Rt.isPresenting&&(!0===Rt.cameraAutoUpdate&&Rt.updateCamera(e),e=Rt.getCamera()),!0===t.isScene&&t.onBeforeRender(w,t,e,E),b=yt.get(t,_.length),b.init(),_.push(b),q.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),U.setFromProjectionMatrix(q),V=this.localClippingEnabled,H=_t.init(this.clippingPlanes,V),g=bt.get(t,y.length),g.init(),y.push(g),Vt(t,e,0,w.sortObjects),g.finish(),!0===w.sortObjects&&g.sort(N,F),this.info.render.frame++,!0===H&&_t.beginShadows();const n=b.state.shadowsArray;if(Ct.render(n,t,e),!0===H&&_t.endShadows(),!0===this.info.autoReset&&this.info.reset(),!1!==Rt.enabled&&!1!==Rt.isPresenting&&!1!==Rt.hasDepthSensing()||St.render(g,t),b.setupLights(w._useLegacyLights),e.isArrayCamera){const n=e.cameras;for(let e=0,i=n.length;e<i;e++){const i=n[e];Yt(g,t,i,i.viewport)}}else Yt(g,t,e);null!==E&&(ut.updateMultisampleRenderTarget(E),ut.updateRenderTargetMipmap(E)),!0===t.isScene&&t.onAfterRender(w,t,e),At.resetDefaultState(),T=-1,O=null,_.pop(),b=_.length>0?_[_.length-1]:null,y.pop(),g=y.length>0?y[y.length-1]:null},this.getActiveCubeFace=function(){return C},this.getActiveMipmapLevel=function(){return S},this.getRenderTarget=function(){return E},this.setRenderTargetTextures=function(t,e,n){ct.get(t.texture).__webglTexture=e,ct.get(t.depthTexture).__webglTexture=n;const i=ct.get(t);i.__hasExternalTextures=!0,i.__hasExternalTextures&&(i.__autoAllocateDepthBuffer=void 0===n,i.__autoAllocateDepthBuffer||!0===tt.has("WEBGL_multisampled_render_to_texture")&&(console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"),i.__useRenderToTexture=!1))},this.setRenderTargetFramebuffer=function(t,e){const n=ct.get(t);n.__webglFramebuffer=e,n.__useDefaultFramebuffer=void 0===e},this.setRenderTarget=function(t,e=0,n=0){E=t,C=e,S=n;let i=!0,r=null,o=!1,a=!1;if(t){const s=ct.get(t);void 0!==s.__useDefaultFramebuffer?(st.bindFramebuffer(Mt.FRAMEBUFFER,null),i=!1):void 0===s.__webglFramebuffer?ut.setupRenderTarget(t):s.__hasExternalTextures&&ut.rebindTextures(t,ct.get(t.texture).__webglTexture,ct.get(t.depthTexture).__webglTexture);const l=t.texture;(l.isData3DTexture||l.isDataArrayTexture||l.isCompressedArrayTexture)&&(a=!0);const c=ct.get(t).__webglFramebuffer;t.isWebGLCubeRenderTarget?(r=Array.isArray(c[e])?c[e][n]:c[e],o=!0):r=at.isWebGL2&&t.samples>0&&!1===ut.useMultisampledRTT(t)?ct.get(t).__webglMultisampledFramebuffer:Array.isArray(c)?c[n]:c,k.copy(t.viewport),A.copy(t.scissor),P=t.scissorTest}else k.copy(z).multiplyScalar(j).floor(),A.copy(B).multiplyScalar(j).floor(),P=$;if(st.bindFramebuffer(Mt.FRAMEBUFFER,r)&&at.drawBuffers&&i&&st.drawBuffers(t,r),st.viewport(k),st.scissor(A),st.setScissorTest(P),o){const i=ct.get(t.texture);Mt.framebufferTexture2D(Mt.FRAMEBUFFER,Mt.COLOR_ATTACHMENT0,Mt.TEXTURE_CUBE_MAP_POSITIVE_X+e,i.__webglTexture,n)}else if(a){const i=ct.get(t.texture),r=e||0;Mt.framebufferTextureLayer(Mt.FRAMEBUFFER,Mt.COLOR_ATTACHMENT0,i.__webglTexture,n||0,r)}T=-1},this.readRenderTargetPixels=function(t,e,n,i,r,o,a){if(!t||!t.isWebGLRenderTarget)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let s=ct.get(t).__webglFramebuffer;if(t.isWebGLCubeRenderTarget&&void 0!==a&&(s=s[a]),s){st.bindFramebuffer(Mt.FRAMEBUFFER,s);try{const a=t.texture,s=a.format,l=a.type;if(s!==ot&&kt.convert(s)!==Mt.getParameter(Mt.IMPLEMENTATION_COLOR_READ_FORMAT))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");const c=l===it&&(tt.has("EXT_color_buffer_half_float")||at.isWebGL2&&tt.has("EXT_color_buffer_float"));if(!(l===J||kt.convert(l)===Mt.getParameter(Mt.IMPLEMENTATION_COLOR_READ_TYPE)||l===nt&&(at.isWebGL2||tt.has("OES_texture_float")||tt.has("WEBGL_color_buffer_float"))||c))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");e>=0&&e<=t.width-i&&n>=0&&n<=t.height-r&&Mt.readPixels(e,n,i,r,kt.convert(s),kt.convert(l),o)}finally{const t=null!==E?ct.get(E).__webglFramebuffer:null;st.bindFramebuffer(Mt.FRAMEBUFFER,t)}}},this.copyFramebufferToTexture=function(t,e,n=0){const i=Math.pow(2,-n),r=Math.floor(e.image.width*i),o=Math.floor(e.image.height*i);ut.setTexture2D(e,0),Mt.copyTexSubImage2D(Mt.TEXTURE_2D,n,0,0,t.x,t.y,r,o),st.unbindTexture()},this.copyTextureToTexture=function(t,e,n,i=0){const r=e.image.width,o=e.image.height,a=kt.convert(n.format),s=kt.convert(n.type);ut.setTexture2D(n,0),Mt.pixelStorei(Mt.UNPACK_FLIP_Y_WEBGL,n.flipY),Mt.pixelStorei(Mt.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.premultiplyAlpha),Mt.pixelStorei(Mt.UNPACK_ALIGNMENT,n.unpackAlignment),e.isDataTexture?Mt.texSubImage2D(Mt.TEXTURE_2D,i,t.x,t.y,r,o,a,s,e.image.data):e.isCompressedTexture?Mt.compressedTexSubImage2D(Mt.TEXTURE_2D,i,t.x,t.y,e.mipmaps[0].width,e.mipmaps[0].height,a,e.mipmaps[0].data):Mt.texSubImage2D(Mt.TEXTURE_2D,i,t.x,t.y,a,s,e.image),0===i&&n.generateMipmaps&&Mt.generateMipmap(Mt.TEXTURE_2D),st.unbindTexture()},this.copyTextureToTexture3D=function(t,e,n,i,r=0){if(w.isWebGL1Renderer)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");const o=t.max.x-t.min.x+1,a=t.max.y-t.min.y+1,s=t.max.z-t.min.z+1,l=kt.convert(i.format),c=kt.convert(i.type);let u;if(i.isData3DTexture)ut.setTexture3D(i,0),u=Mt.TEXTURE_3D;else{if(!i.isDataArrayTexture&&!i.isCompressedArrayTexture)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");ut.setTexture2DArray(i,0),u=Mt.TEXTURE_2D_ARRAY}Mt.pixelStorei(Mt.UNPACK_FLIP_Y_WEBGL,i.flipY),Mt.pixelStorei(Mt.UNPACK_PREMULTIPLY_ALPHA_WEBGL,i.premultiplyAlpha),Mt.pixelStorei(Mt.UNPACK_ALIGNMENT,i.unpackAlignment);const d=Mt.getParameter(Mt.UNPACK_ROW_LENGTH),h=Mt.getParameter(Mt.UNPACK_IMAGE_HEIGHT),p=Mt.getParameter(Mt.UNPACK_SKIP_PIXELS),f=Mt.getParameter(Mt.UNPACK_SKIP_ROWS),m=Mt.getParameter(Mt.UNPACK_SKIP_IMAGES),v=n.isCompressedTexture?n.mipmaps[r]:n.image;Mt.pixelStorei(Mt.UNPACK_ROW_LENGTH,v.width),Mt.pixelStorei(Mt.UNPACK_IMAGE_HEIGHT,v.height),Mt.pixelStorei(Mt.UNPACK_SKIP_PIXELS,t.min.x),Mt.pixelStorei(Mt.UNPACK_SKIP_ROWS,t.min.y),Mt.pixelStorei(Mt.UNPACK_SKIP_IMAGES,t.min.z),n.isDataTexture||n.isData3DTexture?Mt.texSubImage3D(u,r,e.x,e.y,e.z,o,a,s,l,c,v.data):n.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),Mt.compressedTexSubImage3D(u,r,e.x,e.y,e.z,o,a,s,l,v.data)):Mt.texSubImage3D(u,r,e.x,e.y,e.z,o,a,s,l,c,v),Mt.pixelStorei(Mt.UNPACK_ROW_LENGTH,d),Mt.pixelStorei(Mt.UNPACK_IMAGE_HEIGHT,h),Mt.pixelStorei(Mt.UNPACK_SKIP_PIXELS,p),Mt.pixelStorei(Mt.UNPACK_SKIP_ROWS,f),Mt.pixelStorei(Mt.UNPACK_SKIP_IMAGES,m),0===r&&i.generateMipmaps&&Mt.generateMipmap(u),st.unbindTexture()},this.initTexture=function(t){t.isCubeTexture?ut.setTextureCube(t,0):t.isData3DTexture?ut.setTexture3D(t,0):t.isDataArrayTexture||t.isCompressedArrayTexture?ut.setTexture2DArray(t,0):ut.setTexture2D(t,0),st.unbindTexture()},this.resetState=function(){C=0,S=0,E=null,st.reset(),At.reset()},"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return $t}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(t){this._outputColorSpace=t;const e=this.getContext();e.drawingBufferColorSpace=t===Ct?"display-p3":"srgb",e.unpackColorSpace=me.workingColorSpace===St?"display-p3":"srgb"}get outputEncoding(){return console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace===wt?yt:3e3}set outputEncoding(t){console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace=t===yt?wt:xt}get useLegacyLights(){return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights}set useLegacyLights(t){console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights=t}}(class extends Ba{}).prototype.isWebGL1Renderer=!0;class $a extends Dn{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(t,e){return super.copy(t,e),null!==t.background&&(this.background=t.background.clone()),null!==t.environment&&(this.environment=t.environment.clone()),null!==t.fog&&(this.fog=t.fog.clone()),this.backgroundBlurriness=t.backgroundBlurriness,this.backgroundIntensity=t.backgroundIntensity,null!==t.overrideMaterial&&(this.overrideMaterial=t.overrideMaterial.clone()),this.matrixAutoUpdate=t.matrixAutoUpdate,this}toJSON(t){const e=super.toJSON(t);return null!==this.fog&&(e.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(e.object.backgroundBlurriness=this.backgroundBlurriness),1!==this.backgroundIntensity&&(e.object.backgroundIntensity=this.backgroundIntensity),e}}class Ua{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}getPointAt(t,e){const n=this.getUtoTmapping(t);return this.getPoint(n,e)}getPoints(t=5){const e=[];for(let n=0;n<=t;n++)e.push(this.getPoint(n/t));return e}getSpacedPoints(t=5){const e=[];for(let n=0;n<=t;n++)e.push(this.getPointAt(n/t));return e}getLength(){const t=this.getLengths();return t[t.length-1]}getLengths(t=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const e=[];let n,i=this.getPoint(0),r=0;e.push(0);for(let o=1;o<=t;o++)n=this.getPoint(o/t),r+=n.distanceTo(i),e.push(r),i=n;return this.cacheArcLengths=e,e}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(t,e){const n=this.getLengths();let i=0;const r=n.length;let o;o=e||t*n[r-1];let a,s=0,l=r-1;for(;s<=l;)if(i=Math.floor(s+(l-s)/2),a=n[i]-o,a<0)s=i+1;else{if(!(a>0)){l=i;break}l=i-1}if(i=l,n[i]===o)return i/(r-1);const c=n[i];return(i+(o-c)/(n[i+1]-c))/(r-1)}getTangent(t,e){const n=1e-4;let i=t-n,r=t+n;i<0&&(i=0),r>1&&(r=1);const o=this.getPoint(i),a=this.getPoint(r),s=e||(o.isVector2?new ie:new Me);return s.copy(a).sub(o).normalize(),s}getTangentAt(t,e){const n=this.getUtoTmapping(t);return this.getTangent(n,e)}computeFrenetFrames(t,e){const n=new Me,i=[],r=[],o=[],a=new Me,s=new ln;for(let e=0;e<=t;e++){const n=e/t;i[e]=this.getTangentAt(n,new Me)}r[0]=new Me,o[0]=new Me;let l=Number.MAX_VALUE;const c=Math.abs(i[0].x),u=Math.abs(i[0].y),d=Math.abs(i[0].z);c<=l&&(l=c,n.set(1,0,0)),u<=l&&(l=u,n.set(0,1,0)),d<=l&&n.set(0,0,1),a.crossVectors(i[0],n).normalize(),r[0].crossVectors(i[0],a),o[0].crossVectors(i[0],r[0]);for(let e=1;e<=t;e++){if(r[e]=r[e-1].clone(),o[e]=o[e-1].clone(),a.crossVectors(i[e-1],i[e]),a.length()>Number.EPSILON){a.normalize();const t=Math.acos(Xt(i[e-1].dot(i[e]),-1,1));r[e].applyMatrix4(s.makeRotationAxis(a,t))}o[e].crossVectors(i[e],r[e])}if(!0===e){let e=Math.acos(Xt(r[0].dot(r[t]),-1,1));e/=t,i[0].dot(a.crossVectors(r[0],r[t]))>0&&(e=-e);for(let n=1;n<=t;n++)r[n].applyMatrix4(s.makeRotationAxis(i[n],e*n)),o[n].crossVectors(i[n],r[n])}return{tangents:i,normals:r,binormals:o}}clone(){return(new this.constructor).copy(this)}copy(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}toJSON(){const t={metadata:{version:4.6,type:"Curve",generator:"Curve.toJSON"}};return t.arcLengthDivisions=this.arcLengthDivisions,t.type=this.type,t}fromJSON(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}}function Ha(t,e,n,i,r){const o=.5*(i-e),a=.5*(r-n),s=t*t;return(2*n-2*i+o+a)*(t*s)+(-3*n+3*i-2*o-a)*s+o*t+n}class Va extends Ua{constructor(t=[]){super(),this.isSplineCurve=!0,this.type="SplineCurve",this.points=t}getPoint(t,e=new ie){const n=e,i=this.points,r=(i.length-1)*t,o=Math.floor(r),a=r-o,s=i[0===o?o:o-1],l=i[o],c=i[o>i.length-2?i.length-1:o+1],u=i[o>i.length-3?i.length-1:o+2];return n.set(Ha(a,s.x,l.x,c.x,u.x),Ha(a,s.y,l.y,c.y,u.y)),n}copy(t){super.copy(t),this.points=[];for(let e=0,n=t.points.length;e<n;e++){const n=t.points[e];this.points.push(n.clone())}return this}toJSON(){const t=super.toJSON();t.points=[];for(let e=0,n=this.points.length;e<n;e++){const n=this.points[e];t.points.push(n.toArray())}return t}fromJSON(t){super.fromJSON(t),this.points=[];for(let e=0,n=t.points.length;e<n;e++){const n=t.points[e];this.points.push((new ie).fromArray(n))}return this}}class Ya extends pi{constructor(t=1,e=32,n=16,i=0,r=2*Math.PI,o=0,a=Math.PI){super(),this.type="SphereGeometry",this.parameters={radius:t,widthSegments:e,heightSegments:n,phiStart:i,phiLength:r,thetaStart:o,thetaLength:a},e=Math.max(3,Math.floor(e)),n=Math.max(2,Math.floor(n));const s=Math.min(o+a,Math.PI);let l=0;const c=[],u=new Me,d=new Me,h=[],p=[],f=[],m=[];for(let h=0;h<=n;h++){const v=[],g=h/n;let b=0;0===h&&0===o?b=.5/e:h===n&&s===Math.PI&&(b=-.5/e);for(let n=0;n<=e;n++){const s=n/e;u.x=-t*Math.cos(i+s*r)*Math.sin(o+g*a),u.y=t*Math.cos(o+g*a),u.z=t*Math.sin(i+s*r)*Math.sin(o+g*a),p.push(u.x,u.y,u.z),d.copy(u).normalize(),f.push(d.x,d.y,d.z),m.push(s+b,1-g),v.push(l++)}c.push(v)}for(let t=0;t<n;t++)for(let i=0;i<e;i++){const e=c[t][i+1],r=c[t][i],a=c[t+1][i],l=c[t+1][i+1];(0!==t||o>0)&&h.push(e,r,l),(t!==n-1||s<Math.PI)&&h.push(r,a,l)}this.setIndex(h),this.setAttribute("position",new oi(p,3)),this.setAttribute("normal",new oi(f,3)),this.setAttribute("uv",new oi(m,2))}copy(t){return super.copy(t),this.parameters=Object.assign({},t.parameters),this}static fromJSON(t){return new Ya(t.radius,t.widthSegments,t.heightSegments,t.phiStart,t.phiLength,t.thetaStart,t.thetaLength)}}function qa(t,e,n){return!t||!n&&t.constructor===e?t:"number"==typeof e.BYTES_PER_ELEMENT?new e(t):Array.prototype.slice.call(t)}function Wa(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}class Ga{constructor(t,e,n,i){this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=void 0!==i?i:new e.constructor(n),this.sampleValues=e,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(t){const e=this.parameterPositions;let n=this._cachedIndex,i=e[n],r=e[n-1];t:{e:{let o;n:{i:if(!(t<i)){for(let o=n+2;;){if(void 0===i){if(t<r)break i;return n=e.length,this._cachedIndex=n,this.copySampleValue_(n-1)}if(n===o)break;if(r=i,i=e[++n],t<i)break e}o=e.length;break n}if(t>=r)break t;{const a=e[1];t<a&&(n=2,r=a);for(let o=n-2;;){if(void 0===r)return this._cachedIndex=0,this.copySampleValue_(0);if(n===o)break;if(i=r,r=e[--n-1],t>=r)break e}o=n,n=0}}for(;n<o;){const i=n+o>>>1;t<e[i]?o=i:n=i+1}if(i=e[n],r=e[n-1],void 0===r)return this._cachedIndex=0,this.copySampleValue_(0);if(void 0===i)return n=e.length,this._cachedIndex=n,this.copySampleValue_(n-1)}this._cachedIndex=n,this.intervalChanged_(n,r,i)}return this.interpolate_(n,r,t,i)}getSettings_(){return this.settings||this.DefaultSettings_}copySampleValue_(t){const e=this.resultBuffer,n=this.sampleValues,i=this.valueSize,r=t*i;for(let t=0;t!==i;++t)e[t]=n[r+t];return e}interpolate_(){throw new Error("call to abstract method")}intervalChanged_(){}}class Xa extends Ga{constructor(t,e,n,i){super(t,e,n,i),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0,this.DefaultSettings_={endingStart:vt,endingEnd:vt}}intervalChanged_(t,e,n){const i=this.parameterPositions;let r=t-2,o=t+1,a=i[r],s=i[o];if(void 0===a)switch(this.getSettings_().endingStart){case gt:r=t,a=2*e-n;break;case bt:r=i.length-2,a=e+i[r]-i[r+1];break;default:r=t,a=n}if(void 0===s)switch(this.getSettings_().endingEnd){case gt:o=t,s=2*n-e;break;case bt:o=1,s=n+i[1]-i[0];break;default:o=t-1,s=e}const l=.5*(n-e),c=this.valueSize;this._weightPrev=l/(e-a),this._weightNext=l/(s-n),this._offsetPrev=r*c,this._offsetNext=o*c}interpolate_(t,e,n,i){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=t*a,l=s-a,c=this._offsetPrev,u=this._offsetNext,d=this._weightPrev,h=this._weightNext,p=(n-e)/(i-e),f=p*p,m=f*p,v=-d*m+2*d*f-d*p,g=(1+d)*m+(-1.5-2*d)*f+(-.5+d)*p+1,b=(-1-h)*m+(1.5+h)*f+.5*p,y=h*m-h*f;for(let t=0;t!==a;++t)r[t]=v*o[c+t]+g*o[l+t]+b*o[s+t]+y*o[u+t];return r}}class Ka extends Ga{constructor(t,e,n,i){super(t,e,n,i)}interpolate_(t,e,n,i){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=t*a,l=s-a,c=(n-e)/(i-e),u=1-c;for(let t=0;t!==a;++t)r[t]=o[l+t]*u+o[s+t]*c;return r}}class Za extends Ga{constructor(t,e,n,i){super(t,e,n,i)}interpolate_(t){return this.copySampleValue_(t-1)}}class Ja{constructor(t,e,n,i){if(void 0===t)throw new Error("THREE.KeyframeTrack: track name is undefined");if(void 0===e||0===e.length)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+t);this.name=t,this.times=qa(e,this.TimeBufferType),this.values=qa(n,this.ValueBufferType),this.setInterpolation(i||this.DefaultInterpolation)}static toJSON(t){const e=t.constructor;let n;if(e.toJSON!==this.toJSON)n=e.toJSON(t);else{n={name:t.name,times:qa(t.times,Array),values:qa(t.values,Array)};const e=t.getInterpolation();e!==t.DefaultInterpolation&&(n.interpolation=e)}return n.type=t.ValueTypeName,n}InterpolantFactoryMethodDiscrete(t){return new Za(this.times,this.values,this.getValueSize(),t)}InterpolantFactoryMethodLinear(t){return new Ka(this.times,this.values,this.getValueSize(),t)}InterpolantFactoryMethodSmooth(t){return new Xa(this.times,this.values,this.getValueSize(),t)}setInterpolation(t){let e;switch(t){case pt:e=this.InterpolantFactoryMethodDiscrete;break;case ft:e=this.InterpolantFactoryMethodLinear;break;case mt:e=this.InterpolantFactoryMethodSmooth}if(void 0===e){const e="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(void 0===this.createInterpolant){if(t===this.DefaultInterpolation)throw new Error(e);this.setInterpolation(this.DefaultInterpolation)}return console.warn("THREE.KeyframeTrack:",e),this}return this.createInterpolant=e,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return pt;case this.InterpolantFactoryMethodLinear:return ft;case this.InterpolantFactoryMethodSmooth:return mt}}getValueSize(){return this.values.length/this.times.length}shift(t){if(0!==t){const e=this.times;for(let n=0,i=e.length;n!==i;++n)e[n]+=t}return this}scale(t){if(1!==t){const e=this.times;for(let n=0,i=e.length;n!==i;++n)e[n]*=t}return this}trim(t,e){const n=this.times,i=n.length;let r=0,o=i-1;for(;r!==i&&n[r]<t;)++r;for(;-1!==o&&n[o]>e;)--o;if(++o,0!==r||o!==i){r>=o&&(o=Math.max(o,1),r=o-1);const t=this.getValueSize();this.times=n.slice(r,o),this.values=this.values.slice(r*t,o*t)}return this}validate(){let t=!0;const e=this.getValueSize();e-Math.floor(e)!=0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),t=!1);const n=this.times,i=this.values,r=n.length;0===r&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);let o=null;for(let e=0;e!==r;e++){const i=n[e];if("number"==typeof i&&isNaN(i)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,e,i),t=!1;break}if(null!==o&&o>i){console.error("THREE.KeyframeTrack: Out of order keys.",this,e,i,o),t=!1;break}o=i}if(void 0!==i&&Wa(i))for(let e=0,n=i.length;e!==n;++e){const n=i[e];if(isNaN(n)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,e,n),t=!1;break}}return t}optimize(){const t=this.times.slice(),e=this.values.slice(),n=this.getValueSize(),i=this.getInterpolation()===mt,r=t.length-1;let o=1;for(let a=1;a<r;++a){let r=!1;const s=t[a];if(s!==t[a+1]&&(1!==a||s!==t[0]))if(i)r=!0;else{const t=a*n,i=t-n,o=t+n;for(let a=0;a!==n;++a){const n=e[t+a];if(n!==e[i+a]||n!==e[o+a]){r=!0;break}}}if(r){if(a!==o){t[o]=t[a];const i=a*n,r=o*n;for(let t=0;t!==n;++t)e[r+t]=e[i+t]}++o}}if(r>0){t[o]=t[r];for(let t=r*n,i=o*n,a=0;a!==n;++a)e[i+a]=e[t+a];++o}return o!==t.length?(this.times=t.slice(0,o),this.values=e.slice(0,o*n)):(this.times=t,this.values=e),this}clone(){const t=this.times.slice(),e=this.values.slice(),n=new(0,this.constructor)(this.name,t,e);return n.createInterpolant=this.createInterpolant,n}}Ja.prototype.TimeBufferType=Float32Array,Ja.prototype.ValueBufferType=Float32Array,Ja.prototype.DefaultInterpolation=ft;class Qa extends Ja{}Qa.prototype.ValueTypeName="bool",Qa.prototype.ValueBufferType=Array,Qa.prototype.DefaultInterpolation=pt,Qa.prototype.InterpolantFactoryMethodLinear=void 0,Qa.prototype.InterpolantFactoryMethodSmooth=void 0;class ts extends Ja{}ts.prototype.ValueTypeName="color";class es extends Ja{}es.prototype.ValueTypeName="number";class ns extends Ga{constructor(t,e,n,i){super(t,e,n,i)}interpolate_(t,e,n,i){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=(n-e)/(i-e);let l=t*a;for(let t=l+a;l!==t;l+=4)Pe.slerpFlat(r,0,o,l-a,o,l,s);return r}}class is extends Ja{InterpolantFactoryMethodLinear(t){return new ns(this.times,this.values,this.getValueSize(),t)}}is.prototype.ValueTypeName="quaternion",is.prototype.DefaultInterpolation=ft,is.prototype.InterpolantFactoryMethodSmooth=void 0;class rs extends Ja{}rs.prototype.ValueTypeName="string",rs.prototype.ValueBufferType=Array,rs.prototype.DefaultInterpolation=pt,rs.prototype.InterpolantFactoryMethodLinear=void 0,rs.prototype.InterpolantFactoryMethodSmooth=void 0;class os extends Ja{}os.prototype.ValueTypeName="vector";const as={enabled:!1,files:{},add:function(t,e){!1!==this.enabled&&(this.files[t]=e)},get:function(t){if(!1!==this.enabled)return this.files[t]},remove:function(t){delete this.files[t]},clear:function(){this.files={}}};class ss{constructor(t,e,n){const i=this;let r,o=!1,a=0,s=0;const l=[];this.onStart=void 0,this.onLoad=t,this.onProgress=e,this.onError=n,this.itemStart=function(t){s++,!1===o&&void 0!==i.onStart&&i.onStart(t,a,s),o=!0},this.itemEnd=function(t){a++,void 0!==i.onProgress&&i.onProgress(t,a,s),a===s&&(o=!1,void 0!==i.onLoad&&i.onLoad())},this.itemError=function(t){void 0!==i.onError&&i.onError(t)},this.resolveURL=function(t){return r?r(t):t},this.setURLModifier=function(t){return r=t,this},this.addHandler=function(t,e){return l.push(t,e),this},this.removeHandler=function(t){const e=l.indexOf(t);return-1!==e&&l.splice(e,2),this},this.getHandler=function(t){for(let e=0,n=l.length;e<n;e+=2){const n=l[e],i=l[e+1];if(n.global&&(n.lastIndex=0),n.test(t))return i}return null}}}const ls=new ss;class cs{constructor(t){this.manager=void 0!==t?t:ls,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(t,e){const n=this;return new Promise((function(i,r){n.load(t,i,e,r)}))}parse(){}setCrossOrigin(t){return this.crossOrigin=t,this}setWithCredentials(t){return this.withCredentials=t,this}setPath(t){return this.path=t,this}setResourcePath(t){return this.resourcePath=t,this}setRequestHeader(t){return this.requestHeader=t,this}}cs.DEFAULT_MATERIAL_NAME="__DEFAULT";Error;const us="\\[\\]\\.:\\/",ds=new RegExp("["+us+"]","g"),hs="[^"+us+"]",ps="[^"+us.replace("\\.","")+"]",fs=new RegExp("^"+/((?:WC+[\/:])*)/.source.replace("WC",hs)+/(WCOD+)?/.source.replace("WCOD",ps)+/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",hs)+/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",hs)+"$"),ms=["material","materials","bones","map"];class vs{constructor(t,e,n){this.path=e,this.parsedPath=n||vs.parseTrackName(e),this.node=vs.findNode(t,this.parsedPath.nodeName),this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(t,e,n){return t&&t.isAnimationObjectGroup?new vs.Composite(t,e,n):new vs(t,e,n)}static sanitizeNodeName(t){return t.replace(/\s/g,"_").replace(ds,"")}static parseTrackName(t){const e=fs.exec(t);if(null===e)throw new Error("PropertyBinding: Cannot parse trackName: "+t);const n={nodeName:e[2],objectName:e[3],objectIndex:e[4],propertyName:e[5],propertyIndex:e[6]},i=n.nodeName&&n.nodeName.lastIndexOf(".");if(void 0!==i&&-1!==i){const t=n.nodeName.substring(i+1);-1!==ms.indexOf(t)&&(n.nodeName=n.nodeName.substring(0,i),n.objectName=t)}if(null===n.propertyName||0===n.propertyName.length)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+t);return n}static findNode(t,e){if(void 0===e||""===e||"."===e||-1===e||e===t.name||e===t.uuid)return t;if(t.skeleton){const n=t.skeleton.getBoneByName(e);if(void 0!==n)return n}if(t.children){const n=function(t){for(let i=0;i<t.length;i++){const r=t[i];if(r.name===e||r.uuid===e)return r;const o=n(r.children);if(o)return o}return null},i=n(t.children);if(i)return i}return null}_getValue_unavailable(){}_setValue_unavailable(){}_getValue_direct(t,e){t[e]=this.targetObject[this.propertyName]}_getValue_array(t,e){const n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)t[e++]=n[i]}_getValue_arrayElement(t,e){t[e]=this.resolvedProperty[this.propertyIndex]}_getValue_toArray(t,e){this.resolvedProperty.toArray(t,e)}_setValue_direct(t,e){this.targetObject[this.propertyName]=t[e]}_setValue_direct_setNeedsUpdate(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.needsUpdate=!0}_setValue_direct_setMatrixWorldNeedsUpdate(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_array(t,e){const n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)n[i]=t[e++]}_setValue_array_setNeedsUpdate(t,e){const n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)n[i]=t[e++];this.targetObject.needsUpdate=!0}_setValue_array_setMatrixWorldNeedsUpdate(t,e){const n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)n[i]=t[e++];this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_arrayElement(t,e){this.resolvedProperty[this.propertyIndex]=t[e]}_setValue_arrayElement_setNeedsUpdate(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.needsUpdate=!0}_setValue_arrayElement_setMatrixWorldNeedsUpdate(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_fromArray(t,e){this.resolvedProperty.fromArray(t,e)}_setValue_fromArray_setNeedsUpdate(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.needsUpdate=!0}_setValue_fromArray_setMatrixWorldNeedsUpdate(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.matrixWorldNeedsUpdate=!0}_getValue_unbound(t,e){this.bind(),this.getValue(t,e)}_setValue_unbound(t,e){this.bind(),this.setValue(t,e)}bind(){let t=this.node;const e=this.parsedPath,n=e.objectName,i=e.propertyName;let r=e.propertyIndex;if(t||(t=vs.findNode(this.rootNode,e.nodeName),this.node=t),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!t)return void console.warn("THREE.PropertyBinding: No target node found for track: "+this.path+".");if(n){let i=e.objectIndex;switch(n){case"materials":if(!t.material)return void console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);if(!t.material.materials)return void console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);t=t.material.materials;break;case"bones":if(!t.skeleton)return void console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);t=t.skeleton.bones;for(let e=0;e<t.length;e++)if(t[e].name===i){i=e;break}break;case"map":if("map"in t){t=t.map;break}if(!t.material)return void console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);if(!t.material.map)return void console.error("THREE.PropertyBinding: Can not bind to material.map as node.material does not have a map.",this);t=t.material.map;break;default:if(void 0===t[n])return void console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);t=t[n]}if(void 0!==i){if(void 0===t[i])return void console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,t);t=t[i]}}const o=t[i];if(void 0===o){const n=e.nodeName;return void console.error("THREE.PropertyBinding: Trying to update property for track: "+n+"."+i+" but it wasn't found.",t)}let a=this.Versioning.None;this.targetObject=t,void 0!==t.needsUpdate?a=this.Versioning.NeedsUpdate:void 0!==t.matrixWorldNeedsUpdate&&(a=this.Versioning.MatrixWorldNeedsUpdate);let s=this.BindingType.Direct;if(void 0!==r){if("morphTargetInfluences"===i){if(!t.geometry)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);if(!t.geometry.morphAttributes)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);void 0!==t.morphTargetDictionary[r]&&(r=t.morphTargetDictionary[r])}s=this.BindingType.ArrayElement,this.resolvedProperty=o,this.propertyIndex=r}else void 0!==o.fromArray&&void 0!==o.toArray?(s=this.BindingType.HasFromToArray,this.resolvedProperty=o):Array.isArray(o)?(s=this.BindingType.EntireArray,this.resolvedProperty=o):this.propertyName=i;this.getValue=this.GetterByBindingType[s],this.setValue=this.SetterByBindingTypeAndVersioning[s][a]}unbind(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}vs.Composite=class{constructor(t,e,n){const i=n||vs.parseTrackName(e);this._targetGroup=t,this._bindings=t.subscribe_(e,i)}getValue(t,e){this.bind();const n=this._targetGroup.nCachedObjects_,i=this._bindings[n];void 0!==i&&i.getValue(t,e)}setValue(t,e){const n=this._bindings;for(let i=this._targetGroup.nCachedObjects_,r=n.length;i!==r;++i)n[i].setValue(t,e)}bind(){const t=this._bindings;for(let e=this._targetGroup.nCachedObjects_,n=t.length;e!==n;++e)t[e].bind()}unbind(){const t=this._bindings;for(let e=this._targetGroup.nCachedObjects_,n=t.length;e!==n;++e)t[e].unbind()}},vs.prototype.BindingType={Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},vs.prototype.Versioning={None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},vs.prototype.GetterByBindingType=[vs.prototype._getValue_direct,vs.prototype._getValue_array,vs.prototype._getValue_arrayElement,vs.prototype._getValue_toArray],vs.prototype.SetterByBindingTypeAndVersioning=[[vs.prototype._setValue_direct,vs.prototype._setValue_direct_setNeedsUpdate,vs.prototype._setValue_direct_setMatrixWorldNeedsUpdate],[vs.prototype._setValue_array,vs.prototype._setValue_array_setNeedsUpdate,vs.prototype._setValue_array_setMatrixWorldNeedsUpdate],[vs.prototype._setValue_arrayElement,vs.prototype._setValue_arrayElement_setNeedsUpdate,vs.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate],[vs.prototype._setValue_fromArray,vs.prototype._setValue_fromArray_setNeedsUpdate,vs.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate]];new Float32Array(1);class gs{constructor(t,e,n=0,i=1/0){this.ray=new sn(t,e),this.near=n,this.far=i,this.camera=null,this.layers=new yn,this.params={Mesh:{},Line:{threshold:1},LOD:{},Points:{threshold:1},Sprite:{}}}set(t,e){this.ray.set(t,e)}setFromCamera(t,e){e.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(e.matrixWorld),this.ray.direction.set(t.x,t.y,.5).unproject(e).sub(this.ray.origin).normalize(),this.camera=e):e.isOrthographicCamera?(this.ray.origin.set(t.x,t.y,(e.near+e.far)/(e.near-e.far)).unproject(e),this.ray.direction.set(0,0,-1).transformDirection(e.matrixWorld),this.camera=e):console.error("THREE.Raycaster: Unsupported camera type: "+e.type)}intersectObject(t,e=!0,n=[]){return ys(t,this,n,e),n.sort(bs),n}intersectObjects(t,e=!0,n=[]){for(let i=0,r=t.length;i<r;i++)ys(t[i],this,n,e);return n.sort(bs),n}}function bs(t,e){return t.distance-e.distance}function ys(t,e,n,i){if(t.layers.test(e.layers)&&t.raycast(e,n),!0===i){const i=t.children;for(let t=0,r=i.length;t<r;t++)ys(i[t],e,n,!0)}}"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:i}})),"undefined"!=typeof window&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=i);var _s=Object.defineProperty,ws=(t,e)=>{for(var n in e)_s(t,n,{get:e[n],enumerable:!0})};ws({},{ACTIONS:()=>Rs,ANIMATION_MIN_DURATION:()=>Ss,CAPTURE_EVENTS_CLASS:()=>Ds,CTRLZOOM_TIMEOUT:()=>As,DBLCLICK_DELAY:()=>Ts,DEFAULT_TRANSITION:()=>Cs,EASINGS:()=>Fs,ICONS:()=>Ns,IDS:()=>Is,INERTIA_WINDOW:()=>Ps,KEY_CODES:()=>js,LONGTOUCH_DELAY:()=>Os,MOVE_THRESHOLD:()=>Es,SPHERE_RADIUS:()=>Ms,TWOFINGERSOVERLAY_DELAY:()=>ks,VIEWER_DATA:()=>Ls});var xs,Cs=1500,Ss=500,Es=4,Ts=300,Os=500,ks=100,As=2e3,Ps=300,Ms=10,Ls="photoSphereViewer",Ds="psv--capture-event",Rs=(t=>(t.ROTATE_UP="ROTATE_UP",t.ROTATE_DOWN="ROTATE_DOWN",t.ROTATE_RIGHT="ROTATE_RIGHT",t.ROTATE_LEFT="ROTATE_LEFT",t.ZOOM_IN="ZOOM_IN",t.ZOOM_OUT="ZOOM_OUT",t))(Rs||{}),Is={MENU:"menu",TWO_FINGERS:"twoFingers",CTRL_ZOOM:"ctrlZoom",ERROR:"error",DESCRIPTION:"description"},js={Enter:"Enter",Control:"Control",Escape:"Escape",Space:" ",PageUp:"PageUp",PageDown:"PageDown",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown",Delete:"Delete",Plus:"+",Minus:"-"},Ns={arrow:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="40 40 432 432"><g transform="rotate(0, 256, 256)"><path fill="currentColor" d="M425.23 210.55H227.39a5 5 0 01-3.53-8.53l56.56-56.57a45.5 45.5 0 000-64.28 45.15 45.15 0 00-32.13-13.3 45.15 45.15 0 00-32.14 13.3L41.32 256l174.83 174.83a45.15 45.15 0 0032.14 13.3 45.15 45.15 0 0032.13-13.3 45.5 45.5 0 000-64.28l-56.57-56.57a5 5 0 013.54-8.53h197.84c25.06 0 45.45-20.39 45.45-45.45s-20.4-45.45-45.45-45.45z"/></g>\x3c!-- Created by Flatart from the Noun Project --\x3e</svg>\n',close:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><g fill="currentColor" transform=" translate(50, 50) rotate(45)"><rect x="-5" y="-65" width="10" height="130"/><rect x="-65" y="-5" width="130" height="10"/></g></svg>',download:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="currentColor" d="M83.3 35.6h-17V3H32.2v32.6H16.6l33.6 32.7 33-32.7z"/><path fill="currentColor" d="M83.3 64.2v16.3H16.6V64.2H-.1v32.6H100V64.2H83.3z"/>\x3c!--Created by Michael Zenaty from the Noun Project--\x3e</svg>\n',fullscreenIn:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="currentColor" d="M100 40H87.1V18.8h-21V6H100zM100 93.2H66V80.3h21.1v-21H100zM34 93.2H0v-34h12.9v21.1h21zM12.9 40H0V6h34v12.9H12.8z"/>\x3c!--Created by Garrett Knoll from the Noun Project--\x3e</svg>\n',fullscreenOut:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="currentColor" d="M66 7h13v21h21v13H66zM66 60.3h34v12.9H79v21H66zM0 60.3h34v34H21V73.1H0zM21 7h13v34H0V28h21z"/>\x3c!--Created by Garrett Knoll from the Noun Project--\x3e</svg>\n',info:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path fill="currentColor" d="M28.3 26.1c-1 2.6-1.9 4.8-2.6 7-2.5 7.4-5 14.7-7.2 22-1.3 4.4.5 7.2 4.3 7.8 1.3.2 2.8.2 4.2-.1 8.2-2 11.9-8.6 15.7-15.2l-2.2 2a18.8 18.8 0 0 1-7.4 5.2 2 2 0 0 1-1.6-.2c-.2-.1 0-1 0-1.4l.8-1.8L41.9 28c.5-1.4.9-3 .7-4.4-.2-2.6-3-4.4-6.3-4.4-8.8.2-15 4.5-19.5 11.8-.2.3-.2.6-.3 1.3 3.7-2.8 6.8-6.1 11.8-6.2z"/><circle fill="currentColor" cx="39.3" cy="9.2" r="8.2"/>\x3c!--Created by Arafat Uddin from the Noun Project--\x3e</svg>\n',menu:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="10 10 80 80"><g fill="currentColor"><circle r="10" cx="20" cy="20"/><circle r="10" cx="50" cy="20"/><circle r="10" cx="80" cy="20"/><circle r="10" cx="20" cy="50"/><circle r="10" cx="50" cy="50"/><circle r="10" cx="80" cy="50"/><circle r="10" cx="20" cy="80"/><circle r="10" cx="50" cy="80"/><circle r="10" cx="80" cy="80"/></g>\x3c!-- Created by Richard Kunák from the Noun Project--\x3e</svg>\n',zoomIn:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="currentColor" d="M14.043 12.22a7.738 7.738 0 1 0-1.823 1.822l4.985 4.985c.503.504 1.32.504 1.822 0a1.285 1.285 0 0 0 0-1.822l-4.984-4.985zm-6.305 1.043a5.527 5.527 0 1 1 0-11.053 5.527 5.527 0 0 1 0 11.053z"/><path fill="currentColor" d="M8.728 4.009H6.744v2.737H4.006V8.73h2.738v2.736h1.984V8.73h2.737V6.746H8.728z"/>\x3c!--Created by Ryan Canning from the Noun Project--\x3e</svg>\n',zoomOut:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="currentColor" d="M14.043 12.22a7.738 7.738 0 1 0-1.823 1.822l4.985 4.985c.503.504 1.32.504 1.822 0a1.285 1.285 0 0 0 0-1.822l-4.984-4.985zm-6.305 1.043a5.527 5.527 0 1 1 0-11.053 5.527 5.527 0 0 1 0 11.053z"/><path fill="currentColor" d="M4.006 6.746h7.459V8.73H4.006z"/>\x3c!--Created by Ryan Canning from the Noun Project--\x3e</svg>\n'},Fs={linear:t=>t,inQuad:t=>t*t,outQuad:t=>t*(2-t),inOutQuad:t=>t<.5?2*t*t:(4-2*t)*t-1,inCubic:t=>t*t*t,outCubic:t=>--t*t*t+1,inOutCubic:t=>t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1,inQuart:t=>t*t*t*t,outQuart:t=>1- --t*t*t*t,inOutQuart:t=>t<.5?8*t*t*t*t:1-8*--t*t*t*t,inQuint:t=>t*t*t*t*t,outQuint:t=>1+--t*t*t*t*t,inOutQuint:t=>t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t,inSine:t=>1-Math.cos(t*(Math.PI/2)),outSine:t=>Math.sin(t*(Math.PI/2)),inOutSine:t=>.5-.5*Math.cos(Math.PI*t),inExpo:t=>Math.pow(2,10*(t-1)),outExpo:t=>1-Math.pow(2,-10*t),inOutExpo:t=>(t=2*t-1)<0?.5*Math.pow(2,10*t):1-.5*Math.pow(2,-10*t),inCirc:t=>1-Math.sqrt(1-t*t),outCirc:t=>Math.sqrt(1-(t-1)*(t-1)),inOutCirc:t=>(t*=2)<1?.5-.5*Math.sqrt(1-t*t):.5+.5*Math.sqrt(1-(t-=2)*t)};function zs(t,e){let n=t%e;return n<0&&(n+=e),n}function Bs(t){return t.reduce(((t,e)=>t+e),0)}function $s(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Us(t,e){return Math.atan2(e.y-t.y,e.x-t.x)}function Hs(t,e){return[0,2*Math.PI,2*-Math.PI].reduce(((n,i)=>{const r=e-t+i;return Math.abs(r)<Math.abs(n)?r:n}),1/0)}function Vs(t,e){return Math.acos(Math.cos(t.pitch)*Math.cos(e.pitch)*Math.cos(t.yaw-e.yaw)+Math.sin(t.pitch)*Math.sin(e.pitch))}function Ys([t,e],[n,i]){t-n>Math.PI?t-=2*Math.PI:t-n<-Math.PI&&(t+=2*Math.PI);const r=(n-t)*Math.cos((e+i)/2),o=i-e;return Math.sqrt(r*r+o*o)}function qs(t){return"string"==typeof t?t.match(/^[a-z]/i)?document.getElementById(t):document.querySelector(t):t}function Ws(t,e,n){void 0===n?t.classList.toggle(e):n?t.classList.add(e):n||t.classList.remove(e)}function Gs(t,e){t.classList.add(...e.split(" "))}function Xs(t,e){t.classList.remove(...e.split(" "))}function Ks(t,e){let n=t;do{if(n===e)return!0;n=n.parentElement}while(n);return!1}function Zs(t,e){if(!t?.matches)return null;let n=t;do{if(n.matches(e))return n;n=n.parentElement}while(n);return null}function Js(t){let e=0,n=0,i=t;for(;i;)e+=i.offsetLeft-i.scrollLeft+i.clientLeft,n+=i.offsetTop-i.scrollTop+i.clientTop,i=i.offsetParent;return{x:e,y:n}}function Qs(t,e){return window.getComputedStyle(t).getPropertyValue(e)}function tl(t){if(t.touches.length<2)return null;const e={x:t.touches[0].clientX,y:t.touches[0].clientY},n={x:t.touches[1].clientX,y:t.touches[1].clientY};return{distance:$s(e,n),angle:Us(e,n),center:{x:(e.x+n.x)/2,y:(e.y+n.y)/2}}}function el(t,e=!1){return e?t===xs:document.fullscreenElement===t}function nl(t,e=!1){e?(xs=t,t.classList.add("psv-fullscreen-emulation"),document.dispatchEvent(new Event("fullscreenchange"))):t.requestFullscreen()}function il(t=!1){t?(xs.classList.remove("psv-fullscreen-emulation"),xs=null,document.dispatchEvent(new Event("fullscreenchange"))):document.exitFullscreen()}function rl(t){return t.replace(/[A-Z](?:(?=[^A-Z])|[A-Z]*(?=[A-Z][^A-Z]|$))/g,((t,e)=>(e>0?"-":"")+t.toLowerCase()))}function ol(t,e){let n=!1;return function(...i){n||(n=!0,setTimeout((()=>{t.apply(this,i),n=!1}),e))}}function al(t){if("object"!=typeof t||null===t||"[object Object]"!==Object.prototype.toString.call(t))return!1;if(null===Object.getPrototypeOf(t))return!0;let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function sl(t,e){const n=e;return function t(e,i){return Array.isArray(i)?(e&&Array.isArray(e)?e.length=0:e=[],i.forEach(((n,i)=>{e[i]=t(null,n)}))):"object"==typeof i?(e&&!Array.isArray(e)||(e={}),Object.keys(i).forEach((r=>{"object"==typeof i[r]&&i[r]&&al(i[r])?i[r]!==n&&(e[r]?t(e[r],i[r]):e[r]=t(null,i[r])):e[r]=i[r]}))):e=i,e}(t,e)}function ll(t){return sl(null,t)}function cl(t){return!t||0===Object.keys(t).length&&t.constructor===Object}function ul(t){return null==t}function dl(...t){for(const e of t)if(!ul(e))return e;return null}function hl(t,e){if(t===e)return!0;if(pl(t)&&pl(e)){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n of Object.keys(t))if(!hl(t[n],e[n]))return!1;return!0}return!1}function pl(t){return"object"==typeof t&&null!==t}ws({},{Animation:()=>zl,Dynamic:()=>Bl,MultiDynamic:()=>$l,PressHandler:()=>Ul,Slider:()=>Vl,SliderDirection:()=>Hl,addClasses:()=>Gs,angle:()=>Us,applyEulerInverse:()=>Il,checkStylesheet:()=>Nl,checkVersion:()=>Fl,cleanCssPosition:()=>kl,clone:()=>ll,createTexture:()=>Dl,cssPositionIsOrdered:()=>Al,dasherize:()=>rl,deepEqual:()=>hl,deepmerge:()=>sl,distance:()=>$s,exitFullscreen:()=>il,firstNonNull:()=>dl,getAbortError:()=>gl,getAngle:()=>Vs,getClosest:()=>Zs,getConfigParser:()=>jl,getElement:()=>qs,getPosition:()=>Js,getShortestArc:()=>Hs,getStyleProperty:()=>Qs,getTouchData:()=>tl,getXMPValue:()=>wl,greatArcDistance:()=>Ys,hasParent:()=>Ks,invertResolvableBoolean:()=>vl,isAbortError:()=>bl,isEmpty:()=>cl,isExtendedPosition:()=>_l,isFullscreenEnabled:()=>el,isNil:()=>ul,isPlainObject:()=>al,logWarn:()=>yl,parseAngle:()=>Ll,parsePoint:()=>Ol,parseSpeed:()=>Pl,removeClasses:()=>Xs,requestFullscreen:()=>nl,resolveBoolean:()=>ml,speedToDuration:()=>Ml,sum:()=>Bs,throttle:()=>ol,toggleClass:()=>Ws,wrap:()=>zs});var fl=class t extends Error{constructor(e){super(e),this.name="PSVError",Error.captureStackTrace?.(this,t)}};function ml(t,e){al(t)?(e(t.initial,!0),t.promise.then((t=>e(t,!1)))):e(t,!0)}function vl(t){return{initial:!t.initial,promise:t.promise.then((t=>!t))}}function gl(){const t=new Error("Loading was aborted.");return t.name="AbortError",t}function bl(t){return"AbortError"===t?.name}function yl(t){console.warn(`PhotoSphereViewer: ${t}`)}function _l(t){return!!t&&[["textureX","textureY"],["yaw","pitch"]].some((([e,n])=>void 0!==t[e]&&void 0!==t[n]))}function wl(t,e){let n=t.match("<GPano:"+e+">(.*)</GPano:"+e+">");if(null!==n){const t=parseInt(n[1],10);return isNaN(t)?null:t}if(n=t.match("GPano:"+e+'="(.*?)"'),null!==n){const t=parseInt(n[1],10);return isNaN(t)?null:t}return null}var xl={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Cl=["left","center","right"],Sl=["top","center","bottom"],El=[...Cl,...Sl],Tl="center";function Ol(t){if(!t)return{x:.5,y:.5};if("object"==typeof t)return t;let e=t.toLocaleLowerCase().split(" ").slice(0,2);1===e.length&&(e=xl[e[0]]?[e[0],Tl]:[e[0],e[0]]);const n="left"!==e[1]&&"right"!==e[1]&&"top"!==e[0]&&"bottom"!==e[0];e=e.map((t=>xl[t]||t)),n||e.reverse();const i=e.join(" ").match(/^([0-9.]+)% ([0-9.]+)%$/);return i?{x:parseFloat(i[1])/100,y:parseFloat(i[2])/100}:{x:.5,y:.5}}function kl(t,{allowCenter:e,cssOrder:n}={allowCenter:!0,cssOrder:!0}){return t?("string"==typeof t&&(t=t.split(" ")),1===t.length&&(t[0]===Tl?t=[Tl,Tl]:-1!==Cl.indexOf(t[0])?t=[Tl,t[0]]:-1!==Sl.indexOf(t[0])&&(t=[t[0],Tl])),2!==t.length||-1===El.indexOf(t[0])||-1===El.indexOf(t[1])?(yl(`Unparsable position ${t}`),null):e||t[0]!==Tl||t[1]!==Tl?(n&&!Al(t)&&(t=[t[1],t[0]]),t[1]===Tl&&-1!==Cl.indexOf(t[0])&&(t=[Tl,t[0]]),t[0]===Tl&&-1!==Sl.indexOf(t[1])&&(t=[t[1],Tl]),t):(yl("Invalid position center center"),null)):null}function Al(t){return-1!==Sl.indexOf(t[0])&&-1!==Cl.indexOf(t[1])}function Pl(t){let e;if("string"==typeof t){const n=t.toString().trim();let i=parseFloat(n.replace(/^(-?[0-9]+(?:\.[0-9]*)?).*$/,"$1"));const r=n.replace(/^-?[0-9]+(?:\.[0-9]*)?(.*)$/,"$1").trim();switch(r.match(/(pm|per minute)$/)&&(i/=60),r){case"dpm":case"degrees per minute":case"dps":case"degrees per second":e=ne.degToRad(i);break;case"rdpm":case"radians per minute":case"rdps":case"radians per second":e=i;break;case"rpm":case"revolutions per minute":case"rps":case"revolutions per second":e=i*Math.PI*2;break;default:throw new fl(`Unknown speed unit "${r}"`)}}else e=t;return e}function Ml(t,e){if("number"!=typeof t){const n=Pl(t);return e/Math.abs(n)*1e3}return Math.abs(t)}function Ll(t,e=!1,n=e){let i;if("string"==typeof t){const e=t.toLowerCase().trim().match(/^(-?[0-9]+(?:\.[0-9]*)?)(.*)$/);if(!e)throw new fl(`Unknown angle "${t}"`);const n=parseFloat(e[1]),r=e[2];if(r)switch(r){case"deg":case"degs":i=ne.degToRad(n);break;case"rad":case"rads":i=n;break;default:throw new fl(`Unknown angle unit "${r}"`)}else i=n}else{if("number"!=typeof t||isNaN(t))throw new fl(`Unknown angle "${t}"`);i=t}return i=zs(e?i+Math.PI:i,2*Math.PI),e?ne.clamp(i-Math.PI,-Math.PI/(n?2:1),Math.PI/(n?2:1)):i}function Dl(t,e=!1){const n=new Se(t);return n.needsUpdate=!0,n.minFilter=e?Z:X,n.generateMipmaps=e,n.anisotropy=e?2:1,n}var Rl=new Pe;function Il(t,e){Rl.setFromEuler(e).invert(),t.applyQuaternion(Rl)}function jl(t,e){const n=function(n){if(!n)return ll(t);const i=ll({...t,...n}),r={};for(let[n,o]of Object.entries(i)){if(e&&n in e)o=e[n](o,{rawConfig:i,defValue:t[n]});else if(!(n in t)){yl(`Unknown option ${n}`);continue}r[n]=o}return r};return n.defaults=t,n.parsers=e||{},n}function Nl(t,e){"true"!==Qs(t,`--psv-${e}-loaded`)&&console.error(`PhotoSphereViewer: stylesheet "@photo-sphere-viewer/${e}/index.css" is not loaded`)}function Fl(t,e,n){e&&e!==n&&console.error(`PhotoSphereViewer: @photo-sphere-viewer/${t} is in version ${e} but @photo-sphere-viewer/core is in version ${n}`)}var zl=class{constructor(t){this.easing=Fs.linear,this.callbacks=[],this.resolved=!1,this.cancelled=!1,this.options=t,t?(t.easing&&(this.easing="function"==typeof t.easing?t.easing:Fs[t.easing]||Fs.linear),this.delayTimeout=setTimeout((()=>{this.delayTimeout=void 0,this.animationFrame=window.requestAnimationFrame((t=>this.__run(t)))}),t.delay||0)):this.resolved=!0}__run(t){if(this.cancelled)return;this.start||(this.start=t);const e=(t-this.start)/this.options.duration,n={};if(e<1){for(const[t,i]of Object.entries(this.options.properties))if(i){const r=i.start+(i.end-i.start)*this.easing(e);n[t]=r}this.options.onTick(n,e),this.animationFrame=window.requestAnimationFrame((t=>this.__run(t)))}else{for(const[t,e]of Object.entries(this.options.properties))e&&(n[t]=e.end);this.options.onTick(n,1),this.__resolve(!0),this.animationFrame=void 0}}__resolve(t){t?this.resolved=!0:this.cancelled=!0,this.callbacks.forEach((e=>e(t))),this.callbacks.length=0}then(t){return this.resolved||this.cancelled?Promise.resolve(this.resolved).then(t):new Promise((t=>{this.callbacks.push(t)})).then(t)}cancel(){this.cancelled||this.resolved||(this.__resolve(!1),this.delayTimeout&&(window.clearTimeout(this.delayTimeout),this.delayTimeout=void 0),this.animationFrame&&(window.cancelAnimationFrame(this.animationFrame),this.animationFrame=void 0))}},Bl=class{constructor(t,e){if(this.fn=t,this.mode=0,this.speed=0,this.speedMult=0,this.currentSpeed=0,this.target=0,this.__current=0,this.min=e.min,this.max=e.max,this.wrap=e.wrap,this.current=e.defaultValue,this.wrap&&0!==this.min)throw new fl("invalid config");this.fn&&this.fn(this.current)}get current(){return this.__current}set current(t){this.__current=t}setSpeed(t){this.speed=t}goto(t,e=1){this.mode=2,this.target=this.wrap?zs(t,this.max):ne.clamp(t,this.min,this.max),this.speedMult=e}step(t,e=1){0===e?this.setValue(this.current+t):(2!==this.mode&&(this.target=this.current),this.goto(this.target+t,e))}roll(t=!1,e=1){this.mode=1,this.target=t?-1/0:1/0,this.speedMult=e}stop(){this.mode=0}setValue(t){return this.target=this.wrap?zs(t,this.max):ne.clamp(t,this.min,this.max),this.mode=0,this.currentSpeed=0,this.target!==this.current&&(this.current=this.target,this.fn&&this.fn(this.current),!0)}update(t){if(2===this.mode){this.wrap&&Math.abs(this.target-this.current)>this.max/2&&(this.current=this.current<this.target?this.current+this.max:this.current-this.max);const t=this.currentSpeed*this.currentSpeed/(this.speed*this.speedMult*4);Math.abs(this.target-this.current)<=t&&(this.mode=0)}let e=0===this.mode?0:this.speed*this.speedMult;this.target<this.current&&(e=-e),this.currentSpeed<e?this.currentSpeed=Math.min(e,this.currentSpeed+t/1e3*this.speed*this.speedMult*2):this.currentSpeed>e&&(this.currentSpeed=Math.max(e,this.currentSpeed-t/1e3*this.speed*this.speedMult*2));let n=null;return this.current>this.target&&this.currentSpeed?n=Math.max(this.target,this.current+this.currentSpeed*t/1e3):this.current<this.target&&this.currentSpeed&&(n=Math.min(this.target,this.current+this.currentSpeed*t/1e3)),null!==n&&(n=this.wrap?zs(n,this.max):ne.clamp(n,this.min,this.max),n!==this.current)&&(this.current=n,this.fn&&this.fn(this.current),!0)}},$l=class{constructor(t,e){this.fn=t,this.dynamics=e,this.fn&&this.fn(this.current)}get current(){return Object.entries(this.dynamics).reduce(((t,[e,n])=>(t[e]=n.current,t)),{})}setSpeed(t){for(const e of Object.values(this.dynamics))e.setSpeed(t)}goto(t,e=1){for(const[n,i]of Object.entries(t))this.dynamics[n].goto(i,e)}step(t,e=1){if(0===e)this.setValue(Object.keys(t).reduce(((e,n)=>(e[n]=t[n]+this.dynamics[n].current,e)),{}));else for(const[n,i]of Object.entries(t))this.dynamics[n].step(i,e)}roll(t,e=1){for(const[n,i]of Object.entries(t))this.dynamics[n].roll(i,e)}stop(){for(const t of Object.values(this.dynamics))t.stop()}setValue(t){let e=!1;for(const[n,i]of Object.entries(t))e=this.dynamics[n].setValue(i)||e;return e&&this.fn&&this.fn(this.current),e}update(t){let e=!1;for(const n of Object.values(this.dynamics))e=n.update(t)||e;return e&&this.fn&&this.fn(this.current),e}},Ul=class{constructor(t=200){this.delay=t,this.time=0,this.delay=t}get pending(){return 0!==this.time}down(){this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0),this.time=(new Date).getTime()}up(t){if(!this.time)return;Date.now()-this.time<this.delay?this.timeout=setTimeout((()=>{t(),this.timeout=void 0,this.time=0}),this.delay):(t(),this.time=0)}},Hl=(t=>(t.VERTICAL="VERTICAL",t.HORIZONTAL="HORIZONTAL",t))(Hl||{}),Vl=class{constructor(t,e,n){this.container=t,this.direction=e,this.listener=n,this.mousedown=!1,this.mouseover=!1,this.container.addEventListener("click",this),this.container.addEventListener("mousedown",this),this.container.addEventListener("mouseenter",this),this.container.addEventListener("mouseleave",this),this.container.addEventListener("touchstart",this),this.container.addEventListener("mousemove",this,!0),this.container.addEventListener("touchmove",this,!0),window.addEventListener("mouseup",this),window.addEventListener("touchend",this)}get isVertical(){return"VERTICAL"===this.direction}get isHorizontal(){return"HORIZONTAL"===this.direction}destroy(){window.removeEventListener("mouseup",this),window.removeEventListener("touchend",this)}handleEvent(t){switch(t.type){case"click":t.stopPropagation();break;case"mousedown":this.__onMouseDown(t);break;case"mouseenter":this.__onMouseEnter(t);break;case"mouseleave":this.__onMouseLeave(t);break;case"touchstart":this.__onTouchStart(t);break;case"mousemove":this.__onMouseMove(t);break;case"touchmove":this.__onTouchMove(t);break;case"mouseup":this.__onMouseUp(t);break;case"touchend":this.__onTouchEnd(t)}}__onMouseDown(t){this.mousedown=!0,this.__update(t.clientX,t.clientY,!0)}__onMouseEnter(t){this.mouseover=!0,this.__update(t.clientX,t.clientY,!0)}__onTouchStart(t){this.mouseover=!0,this.mousedown=!0;const e=t.changedTouches[0];this.__update(e.clientX,e.clientY,!0)}__onMouseMove(t){(this.mousedown||this.mouseover)&&(t.stopPropagation(),this.__update(t.clientX,t.clientY,!0))}__onTouchMove(t){if(this.mousedown||this.mouseover){t.stopPropagation();const e=t.changedTouches[0];this.__update(e.clientX,e.clientY,!0)}}__onMouseUp(t){this.mousedown&&(this.mousedown=!1,this.__update(t.clientX,t.clientY,!1))}__onMouseLeave(t){this.mouseover&&(this.mouseover=!1,this.__update(t.clientX,t.clientY,!0))}__onTouchEnd(t){if(this.mousedown){this.mouseover=!1,this.mousedown=!1;const e=t.changedTouches[0];this.__update(e.clientX,e.clientY,!1)}}__update(t,e,n){const i=this.container.getBoundingClientRect(),r=this.isVertical?e:t,o=i[this.isVertical?"bottom":"left"],a=i[this.isVertical?"height":"width"],s=Math.abs((o-r)/a);this.listener({value:s,click:!n,mousedown:this.mousedown,mouseover:this.mouseover,cursor:{clientX:t,clientY:e}})}};ws({},{BeforeAnimateEvent:()=>Xl,BeforeRenderEvent:()=>Zl,BeforeRotateEvent:()=>Ql,ClickEvent:()=>ec,ConfigChangedEvent:()=>ic,DoubleClickEvent:()=>oc,FullscreenEvent:()=>sc,HideNotificationEvent:()=>cc,HideOverlayEvent:()=>dc,HidePanelEvent:()=>pc,HideTooltipEvent:()=>mc,KeypressEvent:()=>gc,LoadProgressEvent:()=>yc,ObjectEnterEvent:()=>Kc,ObjectEvent:()=>Gc,ObjectHoverEvent:()=>tu,ObjectLeaveEvent:()=>Jc,PanoramaErrorEvent:()=>Ec,PanoramaLoadEvent:()=>wc,PanoramaLoadedEvent:()=>Cc,PositionUpdatedEvent:()=>Oc,ReadyEvent:()=>Mc,RenderEvent:()=>Dc,RollUpdatedEvent:()=>Ac,ShowNotificationEvent:()=>Ic,ShowOverlayEvent:()=>Nc,ShowPanelEvent:()=>zc,ShowTooltipEvent:()=>$c,SizeUpdatedEvent:()=>Hc,StopAllEvent:()=>Yc,ViewerEvent:()=>Wl,ZoomUpdatedEvent:()=>Wc});var Yl=class extends Event{constructor(t,e=!1){super(t,{cancelable:e})}},ql=class extends EventTarget{dispatchEvent(t){return super.dispatchEvent(t)}addEventListener(t,e,n){super.addEventListener(t,e,n)}removeEventListener(t,e,n){super.removeEventListener(t,e,n)}},Wl=class extends Yl{},Gl=class t extends Wl{constructor(e,n){super(t.type,!0),this.position=e,this.zoomLevel=n}};Gl.type="before-animate";var Xl=Gl,Kl=class t extends Wl{constructor(e,n){super(t.type),this.timestamp=e,this.elapsed=n}};Kl.type="before-render";var Zl=Kl,Jl=class t extends Wl{constructor(e){super(t.type,!0),this.position=e}};Jl.type="before-rotate";var Ql=Jl,tc=class t extends Wl{constructor(e){super(t.type),this.data=e}};tc.type="click";var ec=tc,nc=class t extends Wl{constructor(e){super(t.type),this.options=e}containsOptions(...t){return t.some((t=>this.options.includes(t)))}};nc.type="config-changed";var ic=nc,rc=class t extends Wl{constructor(e){super(t.type),this.data=e}};rc.type="dblclick";var oc=rc,ac=class t extends Wl{constructor(e){super(t.type),this.fullscreenEnabled=e}};ac.type="fullscreen";var sc=ac,lc=class t extends Wl{constructor(e){super(t.type),this.notificationId=e}};lc.type="hide-notification";var cc=lc,uc=class t extends Wl{constructor(e){super(t.type),this.overlayId=e}};uc.type="hide-overlay";var dc=uc,hc=class t extends Wl{constructor(e){super(t.type),this.panelId=e}};hc.type="hide-panel";var pc=hc,fc=class t extends Wl{constructor(e){super(t.type),this.tooltipData=e}};fc.type="hide-tooltip";var mc=fc,vc=class t extends Wl{constructor(e){super(t.type,!0),this.key=e}};vc.type="key-press";var gc=vc,bc=class t extends Wl{constructor(e){super(t.type),this.progress=e}};bc.type="load-progress";var yc=bc,_c=class t extends Wl{constructor(e){super(t.type),this.panorama=e}};_c.type="panorama-load";var wc=_c,xc=class t extends Wl{constructor(e){super(t.type),this.data=e}};xc.type="panorama-loaded";var Cc=xc,Sc=class t extends Wl{constructor(e,n){super(t.type),this.panorama=e,this.error=n}};Sc.type="panorama-error";var Ec=Sc,Tc=class t extends Wl{constructor(e){super(t.type),this.position=e}};Tc.type="position-updated";var Oc=Tc,kc=class t extends Wl{constructor(e){super(t.type),this.roll=e}};kc.type="roll-updated";var Ac=kc,Pc=class t extends Wl{constructor(){super(t.type)}};Pc.type="ready";var Mc=Pc,Lc=class t extends Wl{constructor(){super(t.type)}};Lc.type="render";var Dc=Lc,Rc=class t extends Wl{constructor(e){super(t.type),this.notificationId=e}};Rc.type="show-notification";var Ic=Rc,jc=class t extends Wl{constructor(e){super(t.type),this.overlayId=e}};jc.type="show-overlay";var Nc=jc,Fc=class t extends Wl{constructor(e){super(t.type),this.panelId=e}};Fc.type="show-panel";var zc=Fc,Bc=class t extends Wl{constructor(e,n){super(t.type),this.tooltip=e,this.tooltipData=n}};Bc.type="show-tooltip";var $c=Bc,Uc=class t extends Wl{constructor(e){super(t.type),this.size=e}};Uc.type="size-updated";var Hc=Uc,Vc=class t extends Wl{constructor(){super(t.type)}};Vc.type="stop-all";var Yc=Vc,qc=class t extends Wl{constructor(e){super(t.type),this.zoomLevel=e}};qc.type="zoom-updated";var Wc=qc,Gc=class extends Wl{constructor(t,e,n,i,r){super(t),this.originalEvent=e,this.object=n,this.viewerPoint=i,this.userDataKey=r}},Xc=class t extends Gc{constructor(e,n,i,r){super(t.type,e,n,i,r)}};Xc.type="enter-object";var Kc=Xc,Zc=class t extends Gc{constructor(e,n,i,r){super(t.type,e,n,i,r)}};Zc.type="leave-object";var Jc=Zc,Qc=class t extends Gc{constructor(e,n,i,r){super(t.type,e,n,i,r)}};Qc.type="hover-object";var tu=Qc,eu=class{constructor(t){this.viewer=t}init(){}destroy(){}supportsTransition(t){return!1}supportsPreload(t){return!1}textureCoordsToSphericalCoords(t,e){throw new fl("Current adapter does not support texture coordinates.")}sphericalCoordsToTextureCoords(t,e){throw new fl("Current adapter does not support texture coordinates.")}};function nu(t){if(t)for(const[,e]of[["_",t],...Object.entries(t)])if(e.prototype instanceof eu)return Fl(e.id,e.VERSION,"5.7.4"),e;return null}eu.supportsDownload=!1;var iu=`${Ls}_touchSupport`,ru={loaded:!1,pixelRatio:1,isWebGLSupported:!1,maxTextureWidth:0,isTouchEnabled:null,__maxCanvasWidth:null,isIphone:!1,get maxCanvasWidth(){return null===this.__maxCanvasWidth&&(this.__maxCanvasWidth=function(t){let e=t,n=!1;for(;e>1024&&!n;){const t=document.createElement("canvas"),i=t.getContext("2d");t.width=e,t.height=e/2,i.fillStyle="white",i.fillRect(0,0,1,1);try{i.getImageData(0,0,1,1).data[0]>0&&(n=!0)}catch(t){}t.width=0,t.height=0,n||(e/=2)}if(n)return e;throw new fl("Unable to detect system capabilities")}(this.maxTextureWidth)),this.__maxCanvasWidth},load(){if(!this.loaded){const t=function(){const t=document.createElement("canvas"),e=["webgl2","webgl","experimental-webgl"];let n=null;if(!t.getContext)return null;return e.some((e=>{try{return n=t.getContext(e),null!==n}catch(t){return!1}}))?n:null}();this.pixelRatio=window.devicePixelRatio||1,this.isWebGLSupported=null!==t,this.maxTextureWidth=t?t.getParameter(t.MAX_TEXTURE_SIZE):0,this.isTouchEnabled=function(){let t="ontouchstart"in window||navigator.maxTouchPoints>0;iu in localStorage&&(t="true"===localStorage[iu]);const e=new Promise((e=>{const n=()=>{window.removeEventListener("mousedown",i),window.removeEventListener("touchstart",r),clearTimeout(a)},i=()=>{n(),localStorage[iu]=!1,e(!1)},r=()=>{n(),localStorage[iu]=!0,e(!0)},o=()=>{n(),localStorage[iu]=t,e(t)};window.addEventListener("mousedown",i,!1),window.addEventListener("touchstart",r,!1);const a=setTimeout(o,1e4)}));return{initial:t,promise:e}}(),this.isIphone=/iPhone/i.test(navigator.userAgent),this.loaded=!0}if(!ru.isWebGLSupported)throw new fl("WebGL is not supported.");if(0===ru.maxTextureWidth)throw new fl("Unable to detect system capabilities")}};var ou=URL.createObjectURL(new Blob(["(",function(){function t(t){return`rgb(${t.r}, ${t.g}, ${t.b})`}function e(t,e){return{r:Math.round(t.r/2+e.r/2),g:Math.round(t.g/2+e.g/2),b:Math.round(t.b/2+e.b/2)}}function n(e,n,i,r,o){const a=e.createLinearGradient(n,0,i,0);return a.addColorStop(0,t(r)),a.addColorStop(1,t(o)),a}function i(t,e,n,i,r,o){o=Math.round(o);let a=0,s=0,l=0,c=0;const u=t.getImageData(e,n,i,r);for(let t=0;t<r;t+=o)for(let e=0;e<i;e+=o){const n=4*(t*i+e);a+=u.data[n],s+=u.data[n+1],l+=u.data[n+2],c++}return a=Math.round(a/c),s=Math.round(s/c),l=Math.round(l/c),{r:a,g:s,b:l}}self.onmessage=r=>{const o=r.data.panoData,a=new OffscreenCanvas(o.fullWidth,o.fullHeight),s=a.getContext("2d",{willReadFrequently:!0}),l=new OffscreenCanvas(o.croppedWidth,o.croppedHeight);l.getContext("2d").putImageData(r.data.image,0,0),function(r,o,a){const s=a.fullHeight-a.croppedHeight-a.croppedY,l=a.fullWidth-a.croppedWidth-a.croppedX,c=a.croppedY+a.croppedHeight/2,u=r.width/32,d=u,h=10,p=`blur(${u}px)`,f=r.getContext("2d");if(f.drawImage(o,a.croppedX,a.croppedY,a.croppedWidth,a.croppedHeight),a.croppedY>0){if(a.croppedX>0||l>0){f.filter="none";const t=i(f,a.croppedX,a.croppedY,h,h,2),o=i(f,r.width-l-11,a.croppedY,h,h,2),s=e(t,o);a.croppedX>0&&(f.fillStyle=n(f,0,a.croppedX,s,t),f.fillRect(-d,-d,a.croppedX+2*d,c+d)),l>0&&(f.fillStyle=n(f,r.width-l,r.width,o,s),f.fillRect(r.width-l-d,-d,l+2*d,c+d))}f.filter=p,f.drawImage(o,0,0,o.width,h,a.croppedX,-d,a.croppedWidth,a.croppedY+2*d),f.fillStyle=t(i(f,0,0,r.width,h,h)),f.fillRect(-d,-d,r.width+2*d,2*d)}if(s>0){if(a.croppedX>0||l>0){f.filter="none";const t=i(f,a.croppedX,r.height-s-1-h,h,h,2),o=i(f,r.width-l-1-h,r.height-s-1-h,h,h,2),u=e(t,o);a.croppedX>0&&(f.fillStyle=n(f,0,a.croppedX,u,t),f.fillRect(-d,c,a.croppedX+2*d,r.height-c+d)),l>0&&(f.fillStyle=n(f,r.width-l,r.width,o,u),f.fillRect(r.width-l-d,c,l+2*d,r.height-c+d))}f.filter=p,f.drawImage(o,0,o.height-h,o.width,h,a.croppedX,r.height-s-d,a.croppedWidth,s+2*d),f.fillStyle=t(i(f,0,r.height-1-h,r.width,h,h)),f.fillRect(-d,r.height-d,r.width+2*d,2*d)}a.croppedX>0&&(f.filter=p,f.drawImage(o,o.width-h,0,h,o.height,-d,a.croppedY,2*d,a.croppedHeight),f.drawImage(o,0,0,h,o.height,0,a.croppedY,a.croppedX+d,a.croppedHeight));l>0&&(f.filter=p,f.drawImage(o,0,0,h,o.height,r.width-d,a.croppedY,2*d,a.croppedHeight),f.drawImage(o,o.width-h,0,h,o.height,r.width-l-d,a.croppedY,l+d,a.croppedHeight));f.filter="none",f.drawImage(o,a.croppedX,a.croppedY,a.croppedWidth,a.croppedHeight)}(a,l,o),postMessage(s.getImageData(0,0,a.width,a.height))}}.toString(),")()"],{type:"application/javascript"})),au=jl({backgroundColor:"#000",interpolateBackground:!1,resolution:64,useXmpData:!0,blur:!1},{resolution:t=>{if(!t||!ne.isPowerOfTwo(t))throw new fl("EquirectangularAdapter resolution must be power of two");return t}}),su=class extends eu{constructor(t,e){super(t),this.config=au(e),this.config.interpolateBackground&&(window.Worker?this.interpolationWorker=new Worker(ou,{name:"photo-sphere-viewer-interpolation"}):(yl("Web Worker API not available"),this.config.interpolateBackground=!1)),this.SPHERE_SEGMENTS=this.config.resolution,this.SPHERE_HORIZONTAL_SEGMENTS=this.SPHERE_SEGMENTS/2}supportsTransition(){return!0}supportsPreload(){return!0}destroy(){this.interpolationWorker?.terminate(),super.destroy()}textureCoordsToSphericalCoords(t,e){if(ul(t.textureX)||ul(t.textureY))throw new fl("Texture position is missing 'textureX' or 'textureY'");const n=(t.textureX+e.croppedX)/e.fullWidth*Math.PI*2,i=(t.textureY+e.croppedY)/e.fullHeight*Math.PI;return{yaw:n>=Math.PI?n-Math.PI:n+Math.PI,pitch:Math.PI/2-i}}sphericalCoordsToTextureCoords(t,e){const n=t.yaw/Math.PI/2*e.fullWidth,i=t.pitch/Math.PI*e.fullHeight;return{textureX:Math.round(t.yaw<Math.PI?n+e.fullWidth/2:n-e.fullWidth/2)-e.croppedX,textureY:Math.round(e.fullHeight/2-i)-e.croppedY}}async loadTexture(t,e=!0,n,i=this.config.useXmpData){if("string"!=typeof t)return Promise.reject(new fl("Invalid panorama url, are you using the right adapter?"));const r=await this.viewer.textureLoader.loadFile(t,e?t=>this.viewer.loader.setProgress(t):null,t),o=i?await this.loadXMP(r):null,a=await this.viewer.textureLoader.blobToImage(r);"function"==typeof n&&(n=n(a,o)),n||o||(n=this.__defaultPanoData(a));const s={isEquirectangular:!0,fullWidth:dl(n?.fullWidth,o?.fullWidth,a.width),fullHeight:dl(n?.fullHeight,o?.fullHeight,a.height),croppedWidth:dl(n?.croppedWidth,o?.croppedWidth,a.width),croppedHeight:dl(n?.croppedHeight,o?.croppedHeight,a.height),croppedX:dl(n?.croppedX,o?.croppedX,0),croppedY:dl(n?.croppedY,o?.croppedY,0),poseHeading:dl(n?.poseHeading,o?.poseHeading,0),posePitch:dl(n?.posePitch,o?.posePitch,0),poseRoll:dl(n?.poseRoll,o?.poseRoll,0)};s.croppedWidth===a.width&&s.croppedHeight===a.height||yl(`Invalid panoData, croppedWidth/croppedHeight is not coherent with the loaded image.\n            panoData: ${s.croppedWidth}x${s.croppedHeight}, image: ${a.width}x${a.height}`),Math.abs(s.fullWidth-2*s.fullHeight)>1&&(yl("Invalid panoData, fullWidth should be twice fullHeight"),s.fullWidth=2*s.fullHeight),s.croppedX+s.croppedWidth>s.fullWidth&&(yl("Invalid panoData, croppedX + croppedWidth > fullWidth"),s.croppedX=s.fullWidth-s.croppedWidth),s.croppedY+s.croppedHeight>s.fullHeight&&(yl("Invalid panoData, croppedY + croppedHeight > fullHeight"),s.croppedY=s.fullHeight-s.croppedHeight);return{panorama:t,texture:this.createEquirectangularTexture(a,s),panoData:s,cacheKey:t}}async loadXMP(t){const e=await this.loadBlobAsString(t),n=e.indexOf("<x:xmpmeta"),i=e.indexOf("</x:xmpmeta>"),r=e.substring(n,i);return-1!==n&&-1!==i&&r.includes("GPano:")?{isEquirectangular:!0,fullWidth:wl(r,"FullPanoWidthPixels"),fullHeight:wl(r,"FullPanoHeightPixels"),croppedWidth:wl(r,"CroppedAreaImageWidthPixels"),croppedHeight:wl(r,"CroppedAreaImageHeightPixels"),croppedX:wl(r,"CroppedAreaLeftPixels"),croppedY:wl(r,"CroppedAreaTopPixels"),poseHeading:wl(r,"PoseHeadingDegrees"),posePitch:wl(r,"PosePitchDegrees"),poseRoll:wl(r,"PoseRollDegrees")}:null}loadBlobAsString(t){return new Promise(((e,n)=>{const i=new FileReader;i.onload=()=>e(i.result),i.onerror=n,i.readAsText(t)}))}createEquirectangularTexture(t,e){if(this.config.blur||e.fullWidth>ru.maxTextureWidth||e.croppedWidth!==e.fullWidth||e.croppedHeight!==e.fullHeight){const n=Math.min(1,ru.maxCanvasWidth/e.fullWidth),i={fullWidth:e.fullWidth*n,fullHeight:e.fullHeight*n,croppedWidth:e.croppedWidth*n,croppedHeight:e.croppedHeight*n,croppedX:e.croppedX*n,croppedY:e.croppedY*n},r=document.createElement("canvas");r.width=i.fullWidth,r.height=i.fullHeight;const o=r.getContext("2d");if(this.config.backgroundColor&&(o.fillStyle=this.config.backgroundColor,o.fillRect(0,0,r.width,r.height)),this.config.blur){const e=r.width/2048,a=Math.ceil(2*e);i.croppedWidth===r.width&&(o.drawImage(t,0,0,a/n,t.height,0,i.croppedY,a,i.croppedHeight),o.drawImage(t,t.width-a/n,0,a/n,t.height,r.width-a,i.croppedY,a,i.croppedHeight)),i.croppedHeight===r.height&&(o.drawImage(t,0,0,1,1,i.croppedX,0,i.croppedWidth,a),o.drawImage(t,0,t.height-1,1,1,i.croppedX,r.height-a,i.croppedWidth,a)),o.filter=`blur(${e}px)`}o.drawImage(t,i.croppedX,i.croppedY,i.croppedWidth,i.croppedHeight);const a=Dl(r);return this.config.interpolateBackground&&i.fullWidth<=8096&&(e.croppedWidth!==e.fullWidth||e.croppedHeight!==e.fullHeight)&&(this.interpolationWorker.postMessage({image:o.getImageData(i.croppedX,i.croppedY,i.croppedWidth,i.croppedHeight),panoData:i}),this.interpolationWorker.onmessage=t=>{o.putImageData(t.data,0,0),a.needsUpdate=!0,this.viewer.needsUpdate()}),a}return Dl(t)}createMesh(t=1){const e=new Ya(Ms*t,this.SPHERE_SEGMENTS,this.SPHERE_HORIZONTAL_SEGMENTS,-Math.PI/2).scale(-1,1,1);return new Mi(e,new Qn)}setTexture(t,e){t.material.map=e.texture}setTextureOpacity(t,e){t.material.opacity=e,t.material.transparent=e<1}disposeTexture(t){t.texture?.dispose()}__defaultPanoData(t){const e=Math.max(t.width,2*t.height),n=Math.round(e/2),i=Math.round((e-t.width)/2),r=Math.round((n-t.height)/2);return{isEquirectangular:!0,fullWidth:e,fullHeight:n,croppedWidth:t.width,croppedHeight:t.height,croppedX:i,croppedY:r}}};su.id="equirectangular",su.VERSION="5.7.4",su.supportsDownload=!0;var lu=class t{constructor(e,n){this.parent=e,this.children=[],this.container=document.createElement("div"),this.state={visible:!0},this.viewer=e instanceof t?e.viewer:e,this.container.className=n.className||"",this.parent.children.push(this),this.parent.container.appendChild(this.container)}destroy(){this.parent.container.removeChild(this.container);const t=this.parent.children.indexOf(this);-1!==t&&this.parent.children.splice(t,1),this.children.slice().forEach((t=>t.destroy())),this.children.length=0}toggle(t=!this.isVisible()){t?this.show():this.hide()}hide(t){this.container.style.display="none",this.state.visible=!1}show(t){this.container.style.display="",this.state.visible=!0}isVisible(){return this.state.visible}},cu=jl({id:null,className:null,title:null,hoverScale:!1,collapsable:!1,tabbable:!0,icon:null,iconActive:null}),uu=class extends lu{constructor(t,e){super(t,{className:`psv-button ${e.hoverScale?"psv-button--hover-scale":""} ${e.className||""}`}),this.state={visible:!0,enabled:!0,supported:!0,collapsed:!1,active:!1,width:0},this.config=cu(e),this.config.id=this.constructor.id,e.icon&&this.__setIcon(e.icon),this.state.width=this.container.offsetWidth,this.config.title?this.container.title=this.config.title:this.id&&this.id in this.viewer.config.lang&&(this.container.title=this.viewer.config.lang[this.id]),e.tabbable&&(this.container.tabIndex=0),this.container.addEventListener("click",(t=>{this.state.enabled&&this.onClick(),t.stopPropagation()})),this.container.addEventListener("keydown",(t=>{t.key===js.Enter&&this.state.enabled&&(this.onClick(),t.stopPropagation())}))}get id(){return this.config.id}get title(){return this.container.title}get content(){return this.container.innerHTML}get width(){return this.state.width}get collapsable(){return this.config.collapsable}show(t=!0){this.isVisible()||(this.state.visible=!0,this.state.collapsed||(this.container.style.display=""),t&&this.viewer.navbar.autoSize())}hide(t=!0){this.isVisible()&&(this.state.visible=!1,this.container.style.display="none",t&&this.viewer.navbar.autoSize())}checkSupported(){ml(this.isSupported(),((t,e)=>{this.state&&(this.state.supported=t,e?t||this.hide():this.toggle(t))}))}autoSize(){}isSupported(){return!0}toggleActive(t=!this.state.active){t!==this.state.active&&(this.state.active=t,Ws(this.container,"psv-button--active",this.state.active),this.config.iconActive&&this.__setIcon(this.state.active?this.config.iconActive:this.config.icon))}disable(){this.container.classList.add("psv-button--disabled"),this.state.enabled=!1}enable(){this.container.classList.remove("psv-button--disabled"),this.state.enabled=!0}collapse(){this.state.collapsed=!0,this.container.style.display="none"}uncollapse(){this.state.collapsed=!1,this.state.visible&&(this.container.style.display="")}__setIcon(t){this.container.innerHTML=t,Gs(this.container.querySelector("svg"),"psv-button-svg")}},du=class extends uu{constructor(t,e){super(t,{className:`psv-custom-button ${e.className||""}`,hoverScale:!1,collapsable:!1!==e.collapsable,tabbable:!1!==e.tabbable,title:e.title}),this.customOnClick=e.onClick,e.id?this.config.id=e.id:this.config.id="psvButton-"+Math.random().toString(36).substring(2),e.content&&("string"==typeof e.content?this.container.innerHTML=e.content:(this.container.classList.add("psv-custom-button--no-padding"),e.content.style.height="100%",e.content.attachViewer?.(this.viewer),this.container.appendChild(e.content))),this.state.width=this.container.offsetWidth,e.disabled&&this.disable(),!1===e.visible&&this.hide()}onClick(){this.customOnClick?.(this.viewer)}},hu=class extends uu{constructor(t){super(t,{className:"psv-description-button",hoverScale:!0,collapsable:!1,tabbable:!0,icon:Ns.info}),this.mode=0,this.viewer.addEventListener(cc.type,this),this.viewer.addEventListener(Ic.type,this),this.viewer.addEventListener(pc.type,this),this.viewer.addEventListener(zc.type,this),this.viewer.addEventListener(ic.type,this)}destroy(){this.viewer.removeEventListener(cc.type,this),this.viewer.removeEventListener(Ic.type,this),this.viewer.removeEventListener(pc.type,this),this.viewer.removeEventListener(zc.type,this),this.viewer.removeEventListener(ic.type,this),super.destroy()}handleEvent(t){if(t instanceof ic)return void(t.containsOptions("description")&&this.autoSize(!0));if(!this.mode)return;let e=!1;t instanceof cc?e=1===this.mode:t instanceof Ic?e=1===this.mode&&t.notificationId!==Is.DESCRIPTION:t instanceof pc?e=2===this.mode:t instanceof zc&&(e=2===this.mode&&t.panelId!==Is.DESCRIPTION),e&&(this.toggleActive(!1),this.mode=0)}onClick(){this.mode?this.__close():this.__open()}hide(t){super.hide(t),this.mode&&this.__close()}autoSize(t=!1){if(t){const t=this.viewer.navbar.getButton("caption",!1),e=t&&!t.isVisible(),n=!!this.viewer.config.description;e||n?this.show(!1):this.hide(!1)}}__close(){switch(this.mode){case 1:this.viewer.notification.hide(Is.DESCRIPTION);break;case 2:this.viewer.panel.hide(Is.DESCRIPTION)}}__open(){this.toggleActive(!0),this.viewer.config.description?(this.mode=2,this.viewer.panel.show({id:Is.DESCRIPTION,content:(this.viewer.config.caption?`<p>${this.viewer.config.caption}</p>`:"")+this.viewer.config.description})):(this.mode=1,this.viewer.notification.show({id:Is.DESCRIPTION,content:this.viewer.config.caption}))}};hu.id="description";var pu=class extends uu{constructor(t){super(t,{className:"psv-download-button",hoverScale:!0,collapsable:!0,tabbable:!0,icon:Ns.download}),this.viewer.addEventListener(ic.type,this)}destroy(){this.viewer.removeEventListener(ic.type,this),super.destroy()}handleEvent(t){t instanceof ic&&t.containsOptions("downloadUrl")&&this.checkSupported()}onClick(){const t=document.createElement("a");t.href=this.viewer.config.downloadUrl||this.viewer.config.panorama,t.href.startsWith("data:")&&!this.viewer.config.downloadName?t.download="panorama."+t.href.substring(0,t.href.indexOf(";")).split("/").pop():t.download=this.viewer.config.downloadName||t.href.split("/").pop(),t.target="_blank",this.viewer.container.appendChild(t),t.click(),setTimeout((()=>{this.viewer.container.removeChild(t)}),100)}checkSupported(){this.viewer.adapter.constructor.supportsDownload||this.viewer.config.downloadUrl?this.show():this.hide()}};pu.id="download";var fu=class extends uu{constructor(t){super(t,{className:"psv-fullscreen-button",hoverScale:!0,collapsable:!1,tabbable:!0,icon:Ns.fullscreenIn,iconActive:Ns.fullscreenOut}),this.viewer.addEventListener(sc.type,this)}destroy(){this.viewer.removeEventListener(sc.type,this),super.destroy()}handleEvent(t){t instanceof sc&&this.toggleActive(t.fullscreenEnabled)}onClick(){this.viewer.toggleFullscreen()}};fu.id="fullscreen";var mu=class extends uu{constructor(t){super(t,{className:"psv-menu-button",hoverScale:!0,collapsable:!1,tabbable:!0,icon:Ns.menu}),this.viewer.addEventListener(zc.type,this),this.viewer.addEventListener(pc.type,this),super.hide()}destroy(){this.viewer.removeEventListener(zc.type,this),this.viewer.removeEventListener(pc.type,this),super.destroy()}handleEvent(t){t instanceof zc?this.toggleActive(t.panelId===Is.MENU):t instanceof pc&&this.toggleActive(!1)}onClick(){this.state.active?this.__hideMenu():this.__showMenu()}hide(t){super.hide(t),this.__hideMenu()}show(t){super.show(t),this.state.active&&this.__showMenu()}__showMenu(){var t,e;this.viewer.panel.show({id:Is.MENU,content:(t=this.viewer.navbar.collapsed,e=this.viewer.config.lang.menu,`\n<div class="psv-panel-menu psv-panel-menu--stripped">\n  <h1 class="psv-panel-menu-title">${Ns.menu} ${e}</h1>\n  <ul class="psv-panel-menu-list">\n    ${t.map((t=>`\n    <li data-psv-button="${t.id}" class="psv-panel-menu-item" tabindex="0">\n      <span class="psv-panel-menu-item-icon">${t.content}</span>\n      <span class="psv-panel-menu-item-label">${t.title}</span>\n    </li>\n    `)).join("")}\n  </ul>\n</div>\n`),noMargin:!0,clickHandler:t=>{const e=t?Zs(t,"li"):void 0,n=e?e.dataset.psvButton:void 0;n&&(this.viewer.navbar.getButton(n).onClick(),this.__hideMenu())}})}__hideMenu(){this.viewer.panel.hide(Is.MENU)}};function vu(t){let e=0;switch(t){case 0:e=90;break;case 1:e=-90;break;case 3:e=180;break;default:e=0}return Ns.arrow.replace("rotate(0",`rotate(${e}`)}mu.id="menu";var gu=class extends uu{constructor(t,e){super(t,{className:"psv-move-button",hoverScale:!0,collapsable:!1,tabbable:!0,icon:vu(e)}),this.direction=e,this.handler=new Ul,this.container.addEventListener("mousedown",this),this.container.addEventListener("keydown",this),this.container.addEventListener("keyup",this),this.viewer.container.addEventListener("mouseup",this),this.viewer.container.addEventListener("touchend",this)}destroy(){this.__onMouseUp(),this.viewer.container.removeEventListener("mouseup",this),this.viewer.container.removeEventListener("touchend",this),super.destroy()}handleEvent(t){switch(t.type){case"mousedown":this.__onMouseDown();break;case"mouseup":case"touchend":this.__onMouseUp();break;case"keydown":t.key===js.Enter&&this.__onMouseDown();break;case"keyup":t.key===js.Enter&&this.__onMouseUp()}}onClick(){}isSupported(){return vl(ru.isTouchEnabled)}__onMouseDown(){if(!this.state.enabled)return;const t={};switch(this.direction){case 0:t.pitch=!1;break;case 1:t.pitch=!0;break;case 3:t.yaw=!1;break;default:t.yaw=!0}this.viewer.stopAll(),this.viewer.dynamics.position.roll(t),this.handler.down()}__onMouseUp(){this.state.enabled&&this.handler.up((()=>{this.viewer.dynamics.position.stop(),this.viewer.resetIdleTimer()}))}};gu.groupId="move";var bu=class extends gu{constructor(t){super(t,1)}};bu.id="moveDown";var yu=class extends gu{constructor(t){super(t,2)}};yu.id="moveLeft";var _u=class extends gu{constructor(t){super(t,3)}};_u.id="moveRight";var wu=class extends gu{constructor(t){super(t,0)}};wu.id="moveUp";var xu=class extends uu{constructor(t,e,n){super(t,{className:"psv-zoom-button",hoverScale:!0,collapsable:!1,tabbable:!0,icon:e}),this.direction=n,this.handler=new Ul,this.container.addEventListener("mousedown",this),this.container.addEventListener("keydown",this),this.container.addEventListener("keyup",this),this.viewer.container.addEventListener("mouseup",this),this.viewer.container.addEventListener("touchend",this)}destroy(){this.__onMouseUp(),this.viewer.container.removeEventListener("mouseup",this),this.viewer.container.removeEventListener("touchend",this),super.destroy()}handleEvent(t){switch(t.type){case"mousedown":this.__onMouseDown();break;case"mouseup":case"touchend":this.__onMouseUp();break;case"keydown":t.key===js.Enter&&this.__onMouseDown();break;case"keyup":t.key===js.Enter&&this.__onMouseUp()}}onClick(){}isSupported(){return vl(ru.isTouchEnabled)}__onMouseDown(){this.state.enabled&&(this.viewer.dynamics.zoom.roll(1===this.direction),this.handler.down())}__onMouseUp(){this.state.enabled&&this.handler.up((()=>this.viewer.dynamics.zoom.stop()))}};xu.groupId="zoom";var Cu=class extends xu{constructor(t){super(t,Ns.zoomIn,0)}};Cu.id="zoomIn";var Su=class extends xu{constructor(t){super(t,Ns.zoomOut,1)}};Su.id="zoomOut";var Eu=class extends uu{constructor(t){super(t,{className:"psv-zoom-range",hoverScale:!1,collapsable:!1,tabbable:!1}),this.zoomRange=document.createElement("div"),this.zoomRange.className="psv-zoom-range-line",this.container.appendChild(this.zoomRange),this.zoomValue=document.createElement("div"),this.zoomValue.className="psv-zoom-range-handle",this.zoomRange.appendChild(this.zoomValue),this.slider=new Vl(this.container,"HORIZONTAL",(t=>this.__onSliderUpdate(t))),this.mediaMinWidth=parseInt(Qs(this.container,"max-width"),10),this.viewer.addEventListener(Wc.type,this),this.viewer.state.ready?this.__moveZoomValue(this.viewer.getZoomLevel()):this.viewer.addEventListener(Mc.type,this)}destroy(){this.slider.destroy(),this.viewer.removeEventListener(Wc.type,this),this.viewer.removeEventListener(Mc.type,this),super.destroy()}handleEvent(t){t instanceof Wc?this.__moveZoomValue(t.zoomLevel):t instanceof Mc&&this.__moveZoomValue(this.viewer.getZoomLevel())}onClick(){}isSupported(){return vl(ru.isTouchEnabled)}autoSize(){this.state.supported&&(this.viewer.state.size.width<=this.mediaMinWidth&&this.state.visible?this.hide(!1):this.viewer.state.size.width>this.mediaMinWidth&&!this.state.visible&&this.show(!1))}__moveZoomValue(t){this.zoomValue.style.left=t/100*this.zoomRange.offsetWidth-this.zoomValue.offsetWidth/2+"px"}__onSliderUpdate(t){t.mousedown&&this.viewer.zoom(100*t.value)}};Eu.id="zoomRange",Eu.groupId="zoom";var Tu=class extends ql{constructor(t){super(),this.viewer=t}init(){}destroy(){}};function Ou(t){if(t)for(const[,e]of[["_",t],...Object.entries(t)])if(e.prototype instanceof Tu)return Fl(e.id,e.VERSION,"5.7.4"),e;return null}(class extends Tu{constructor(t,e){super(t),this.config=this.constructor.configParser(e)}setOption(t,e){this.setOptions({[t]:e})}setOptions(t){const e={...this.config,...t},n=this.constructor,i=n.configParser,r=n.readonlyOptions,o=n.id;for(let[n,a]of Object.entries(t))n in i.defaults?r.includes(n)?yl(`${o}: Option "${n}" cannot be updated`):(n in i.parsers&&(a=i.parsers[n](a,{rawConfig:e,defValue:i.defaults[n]})),this.config[n]=a):yl(`${o}: Unknown option "${n}"`)}}).readonlyOptions=[];var ku={panorama:null,container:null,adapter:[su,null],plugins:[],caption:null,description:null,downloadUrl:null,downloadName:null,loadingImg:null,loadingTxt:"",size:null,fisheye:0,minFov:30,maxFov:90,defaultZoomLvl:50,defaultYaw:0,defaultPitch:0,sphereCorrection:null,moveSpeed:1,zoomSpeed:1,moveInertia:!0,mousewheel:!0,mousemove:!0,mousewheelCtrlKey:!1,touchmoveTwoFingers:!1,panoData:null,requestHeaders:null,rendererParameters:{alpha:!0,antialias:!0},withCredentials:!1,navbar:["zoom","move","download","description","caption","fullscreen"],lang:{zoom:"Zoom",zoomOut:"Zoom out",zoomIn:"Zoom in",moveUp:"Move up",moveDown:"Move down",moveLeft:"Move left",moveRight:"Move right",description:"Description",download:"Download",fullscreen:"Fullscreen",loading:"Loading...",menu:"Menu",close:"Close",twoFingers:"Use two fingers to navigate",ctrlZoom:"Use ctrl + scroll to zoom the image",loadError:"The panorama cannot be loaded",webglError:"Your browser does not seem to support WebGL"},keyboard:"fullscreen",keyboardActions:{[js.ArrowUp]:"ROTATE_UP",[js.ArrowDown]:"ROTATE_DOWN",[js.ArrowRight]:"ROTATE_RIGHT",[js.ArrowLeft]:"ROTATE_LEFT",[js.PageUp]:"ZOOM_IN",[js.PageDown]:"ZOOM_OUT",[js.Plus]:"ZOOM_IN",[js.Minus]:"ZOOM_OUT"}},Au={panorama:"Use setPanorama method to change the panorama",panoData:"Use setPanorama method to change the panorama",container:"Cannot change viewer container",adapter:"Cannot change adapter",plugins:"Cannot change plugins"},Pu={container:t=>{if(!t)throw new fl("No value given for container.");return t},adapter:(t,{defValue:e})=>{if(!(t=t?Array.isArray(t)?[nu(t[0]),t[1]]:[nu(t),null]:e)[0])throw new fl("An undefined value was given for adapter.");if(!t[0].id)throw new fl("Adapter has no id.");return t},defaultYaw:t=>Ll(t),defaultPitch:t=>Ll(t,!0),defaultZoomLvl:t=>ne.clamp(t,0,100),minFov:(t,{rawConfig:e})=>(e.maxFov<t&&(yl("maxFov cannot be lower than minFov"),t=e.maxFov),ne.clamp(t,1,179)),maxFov:(t,{rawConfig:e})=>(t<e.minFov&&(t=e.minFov),ne.clamp(t,1,179)),lang:t=>({...ku.lang,...t}),keyboard:t=>!!t&&("object"==typeof t?(yl("Use keyboardActions to configure the keyboard actions, keyboard option must be either true, false, 'fullscreen' or 'always'"),"fullscreen"):"always"===t?"always":"fullscreen"),keyboardActions:(t,{rawConfig:e})=>e.keyboard&&"object"==typeof e.keyboard?e.keyboard:t,fisheye:t=>!0===t?1:!1===t?0:t,requestHeaders:t=>t&&"object"==typeof t?()=>t:"function"==typeof t?t:null,rendererParameters:(t,{defValue:e})=>({...t,...e}),plugins:t=>t.map(((t,e)=>{if(!(t=Array.isArray(t)?[Ou(t[0]),t[1]]:[Ou(t),null])[0])throw new fl(`An undefined value was given for plugin ${e}.`);if(!t[0].id)throw new fl(`Plugin ${e} has no id.`);return t})),navbar:t=>!1===t?null:!0===t?ll(ku.navbar):"string"==typeof t?t.split(/[ ,]/):t},Mu=jl(ku,Pu),Lu=class extends uu{constructor(t){super(t,{className:"psv-caption",hoverScale:!1,collapsable:!1,tabbable:!0}),this.contentWidth=0,this.state.width=0,this.contentElt=document.createElement("div"),this.contentElt.className="psv-caption-content",this.container.appendChild(this.contentElt),this.setCaption(this.viewer.config.caption)}hide(){this.contentElt.style.display="none",this.state.visible=!1}show(){this.contentElt.style.display="",this.state.visible=!0}onClick(){}setCaption(t){this.show(),this.contentElt.innerHTML=t??"",this.contentElt.innerHTML?this.contentWidth=this.contentElt.offsetWidth:this.contentWidth=0,this.autoSize()}autoSize(){this.toggle(this.container.offsetWidth>=this.contentWidth),this.__refreshButton()}__refreshButton(){this.viewer.navbar.getButton(hu.id,!1)?.autoSize(!0)}};Lu.id="caption";var Du={},Ru={};[Su,Eu,Cu,hu,Lu,pu,fu,yu,_u,wu,bu].forEach((t=>function(t,e){if(!t.id)throw new fl("Button id is required");if(Du[t.id]=t,t.groupId&&(Ru[t.groupId]=Ru[t.groupId]||[]).push(t),e){const n=ku.navbar;switch(e){case"start":n.unshift(t.id);break;case"end":n.push(t.id);break;default:{const[i,r]=e.split(":"),o=n.indexOf(i);if(!i||!r||-1===o)throw new fl(`Invalid defaultPosition ${e}`);n.splice(o+("right"===r?1:0),0,t.id)}}}}(t)));var Iu=class extends lu{constructor(t){super(t,{className:`psv-navbar ${Ds}`}),this.collapsed=[],this.state.visible=!1}show(){this.viewer.container.classList.add("psv--has-navbar"),this.container.classList.add("psv-navbar--open"),this.state.visible=!0}hide(){this.viewer.container.classList.remove("psv--has-navbar"),this.container.classList.remove("psv-navbar--open"),this.state.visible=!1}setButtons(t){this.children.slice().forEach((t=>t.destroy())),this.children.length=0,-1!==t.indexOf(Lu.id)&&-1===t.indexOf(hu.id)&&t.splice(t.indexOf(Lu.id),0,hu.id),t.forEach((t=>{"object"==typeof t?new du(this,t):Du[t]?new Du[t](this):Ru[t]?Ru[t].forEach((t=>{new t(this)})):yl(`Unknown button ${t}`)})),new mu(this),this.children.forEach((t=>{t instanceof uu&&t.checkSupported()})),this.autoSize()}setCaption(t){this.children.some((e=>e instanceof Lu&&(e.setCaption(t),!0)))}getButton(t,e=!0){const n=this.children.find((e=>e instanceof uu&&e.id===t));return!n&&e&&yl(`button "${t}" not found in the navbar`),n}autoSize(){this.children.forEach((t=>{t instanceof uu&&t.autoSize()}));const t=this.container.offsetWidth;let e=0;const n=[];this.children.forEach((t=>{t.isVisible()&&t instanceof uu&&(e+=t.width,t.collapsable&&n.push(t))})),0!==e&&(t<e&&n.length>0?(n.forEach((t=>t.collapse())),this.collapsed=n,this.getButton(mu.id).show(!1)):t>=e&&this.collapsed.length>0&&(this.collapsed.forEach((t=>t.uncollapse())),this.collapsed=[],this.getButton(mu.id).hide(!1)),this.getButton(Lu.id,!1)?.autoSize())}};as.enabled=!1;var ju={enabled:!0,maxItems:10,ttl:600,items:{},purgeInterval:null,init(){as.enabled&&(yl("ThreeJS cache should be disabled"),as.enabled=!1),!this.purgeInterval&&this.enabled&&(this.purgeInterval=setInterval((()=>this.purge()),6e4))},add(t,e,n){this.enabled&&e&&(this.items[e]=this.items[e]??{files:{},lastAccess:null},this.items[e].files[t]=n,this.items[e].lastAccess=Date.now())},get(t,e){if(this.enabled&&e&&this.items[e])return this.items[e].lastAccess=Date.now(),this.items[e].files[t]},remove(t,e){this.enabled&&e&&this.items[e]&&(delete this.items[e].files[t],0===Object.keys(this.items[e].files).length&&delete this.items[e])},purge(){Object.entries(this.items).sort((([,t],[,e])=>e.lastAccess-t.lastAccess)).forEach((([t,{lastAccess:e}],n)=>{n>0&&(Date.now()-e>=1e3*this.ttl||n>=this.maxItems)&&delete this.items[t]}))}},Nu=class extends lu{constructor(t){super(t,{className:"psv-loader-container"}),this.loader=document.createElement("div"),this.loader.className="psv-loader",this.container.appendChild(this.loader),this.size=this.loader.offsetWidth,this.canvas=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.canvas.setAttribute("class","psv-loader-canvas"),this.canvas.setAttribute("viewBox",`0 0 ${this.size} ${this.size}`),this.loader.appendChild(this.canvas),this.textColor=Qs(this.loader,"color"),this.color=Qs(this.canvas,"color"),this.border=parseInt(Qs(this.loader,"--psv-loader-border"),10),this.thickness=parseInt(Qs(this.loader,"--psv-loader-tickness"),10),this.viewer.addEventListener(ic.type,this),this.__updateContent(),this.hide()}destroy(){this.viewer.removeEventListener(ic.type,this),super.destroy()}handleEvent(t){t instanceof ic&&t.containsOptions("loadingImg","loadingTxt")&&this.__updateContent()}setProgress(t){const e=Math.min(t,99.999)/100*Math.PI*2,n=this.size/2,i=n,r=this.thickness/2+this.border,o=(this.size-this.thickness)/2-this.border,a=Math.sin(e)*o+n,s=-Math.cos(e)*o+n,l=t>50?"1":"0";this.canvas.innerHTML=`\n            <circle cx="${n}" cy="${n}" r="${n}" fill="${this.color}"/>\n            <path d="M ${i} ${r} A ${o} ${o} 0 ${l} 1 ${a} ${s}" \n                  fill="none" stroke="${this.textColor}" stroke-width="${this.thickness}" stroke-linecap="round"/>\n        `,this.viewer.dispatchEvent(new yc(Math.round(t)))}__updateContent(){const t=this.loader.querySelector(".psv-loader-image, .psv-loader-text");let e;if(t&&this.loader.removeChild(t),this.viewer.config.loadingImg?(e=document.createElement("img"),e.className="psv-loader-image",e.src=this.viewer.config.loadingImg):null!==this.viewer.config.loadingTxt&&(e=document.createElement("div"),e.className="psv-loader-text",e.innerHTML=this.viewer.config.loadingTxt||this.viewer.config.lang.loading),e){const t=Math.round(Math.sqrt(2*Math.pow(this.size/2-this.thickness/2-this.border,2)));e.style.maxWidth=t+"px",e.style.maxHeight=t+"px",this.loader.appendChild(e)}}},Fu=class extends lu{constructor(t){super(t,{className:"psv-notification"}),this.state={visible:!1,contentId:null,timeout:null},this.content=document.createElement("div"),this.content.className="psv-notification-content",this.container.appendChild(this.content),this.content.addEventListener("click",(()=>this.hide()))}isVisible(t){return this.state.visible&&(!t||!this.state.contentId||this.state.contentId===t)}toggle(){throw new fl("Notification cannot be toggled")}show(t){this.state.timeout&&(clearTimeout(this.state.timeout),this.state.timeout=null),"string"==typeof t&&(t={content:t}),this.state.contentId=t.id||null,this.content.innerHTML=t.content,this.container.classList.add("psv-notification--visible"),this.state.visible=!0,this.viewer.dispatchEvent(new Ic(t.id)),t.timeout&&(this.state.timeout=setTimeout((()=>this.hide(this.state.contentId)),t.timeout))}hide(t){if(this.isVisible(t)){const t=this.state.contentId;this.container.classList.remove("psv-notification--visible"),this.state.visible=!1,this.state.contentId=null,this.viewer.dispatchEvent(new cc(t))}}},zu=class extends lu{constructor(t){super(t,{className:`psv-overlay ${Ds}`}),this.state={visible:!1,contentId:null,dissmisable:!0},this.image=document.createElement("div"),this.image.className="psv-overlay-image",this.container.appendChild(this.image),this.title=document.createElement("div"),this.title.className="psv-overlay-title",this.container.appendChild(this.title),this.text=document.createElement("div"),this.text.className="psv-overlay-text",this.container.appendChild(this.text),this.container.addEventListener("click",this),this.viewer.addEventListener(gc.type,this),super.hide()}destroy(){this.viewer.removeEventListener(gc.type,this),super.destroy()}handleEvent(t){"click"===t.type?this.isVisible()&&this.state.dissmisable&&(this.hide(),t.stopPropagation()):t instanceof gc&&this.isVisible()&&this.state.dissmisable&&t.key===js.Escape&&(this.hide(),t.preventDefault())}isVisible(t){return this.state.visible&&(!t||!this.state.contentId||this.state.contentId===t)}toggle(){throw new fl("Overlay cannot be toggled")}show(t){"string"==typeof t&&(t={title:t}),this.state.contentId=t.id||null,this.state.dissmisable=!1!==t.dissmisable,this.image.innerHTML=t.image||"",this.title.innerHTML=t.title||"",this.text.innerHTML=t.text||"",super.show(),this.viewer.dispatchEvent(new Nc(t.id))}hide(t){if(this.isVisible(t)){const t=this.state.contentId;super.hide(),this.state.contentId=null,this.viewer.dispatchEvent(new dc(t))}}},Bu="psv-panel-content--no-interaction",$u=class extends lu{constructor(t){super(t,{className:`psv-panel ${Ds}`}),this.state={visible:!1,contentId:null,mouseX:0,mouseY:0,mousedown:!1,clickHandler:null,keyHandler:null,width:{}};const e=document.createElement("div");e.className="psv-panel-resizer",this.container.appendChild(e);const n=document.createElement("div");n.className="psv-panel-close-button",n.innerHTML=Ns.close,n.title=t.config.lang.close,this.container.appendChild(n),this.content=document.createElement("div"),this.content.className="psv-panel-content",this.container.appendChild(this.content),this.container.addEventListener("wheel",(t=>t.stopPropagation())),n.addEventListener("click",(()=>this.hide())),e.addEventListener("mousedown",this),e.addEventListener("touchstart",this),this.viewer.container.addEventListener("mouseup",this),this.viewer.container.addEventListener("touchend",this),this.viewer.container.addEventListener("mousemove",this),this.viewer.container.addEventListener("touchmove",this),this.viewer.addEventListener(gc.type,this)}destroy(){this.viewer.removeEventListener(gc.type,this),this.viewer.container.removeEventListener("mousemove",this),this.viewer.container.removeEventListener("touchmove",this),this.viewer.container.removeEventListener("mouseup",this),this.viewer.container.removeEventListener("touchend",this),super.destroy()}handleEvent(t){switch(t.type){case"mousedown":this.__onMouseDown(t);break;case"touchstart":this.__onTouchStart(t);break;case"mousemove":this.__onMouseMove(t);break;case"touchmove":this.__onTouchMove(t);break;case"mouseup":this.__onMouseUp(t);break;case"touchend":this.__onTouchEnd(t);break;case gc.type:this.__onKeyPress(t)}}isVisible(t){return this.state.visible&&(!t||!this.state.contentId||this.state.contentId===t)}toggle(){throw new fl("Panel cannot be toggled")}show(t){"string"==typeof t&&(t={content:t});const e=this.isVisible(t.id);this.state.contentId=t.id||null,this.state.visible=!0,this.state.clickHandler&&(this.content.removeEventListener("click",this.state.clickHandler),this.content.removeEventListener("keydown",this.state.keyHandler),this.state.clickHandler=null,this.state.keyHandler=null),t.id&&this.state.width[t.id]?this.container.style.width=this.state.width[t.id]:t.width?this.container.style.width=t.width:this.container.style.width=null,this.content.innerHTML=t.content,this.content.scrollTop=0,this.container.classList.add("psv-panel--open"),Ws(this.content,"psv-panel-content--no-margin",!0===t.noMargin),t.clickHandler&&(this.state.clickHandler=e=>{t.clickHandler(e.target)},this.state.keyHandler=e=>{e.key===js.Enter&&t.clickHandler(e.target)},this.content.addEventListener("click",this.state.clickHandler),this.content.addEventListener("keydown",this.state.keyHandler),e||setTimeout((()=>{this.content.querySelector("a,button,[tabindex]")?.focus()}),300)),this.viewer.dispatchEvent(new zc(t.id))}hide(t){if(this.isVisible(t)){const t=this.state.contentId;this.state.visible=!1,this.state.contentId=null,this.content.innerHTML=null,this.container.classList.remove("psv-panel--open"),this.state.clickHandler&&(this.content.removeEventListener("click",this.state.clickHandler),this.state.clickHandler=null),this.viewer.dispatchEvent(new pc(t))}}__onMouseDown(t){t.stopPropagation(),this.__startResize(t.clientX,t.clientY)}__onTouchStart(t){if(t.stopPropagation(),1===t.touches.length){const e=t.touches[0];this.__startResize(e.clientX,e.clientY)}}__onMouseUp(t){this.state.mousedown&&(t.stopPropagation(),this.state.mousedown=!1,this.content.classList.remove(Bu))}__onTouchEnd(t){this.state.mousedown&&(t.stopPropagation(),0===t.touches.length&&(this.state.mousedown=!1,this.content.classList.remove(Bu)))}__onMouseMove(t){this.state.mousedown&&(t.stopPropagation(),this.__resize(t.clientX,t.clientY))}__onTouchMove(t){if(this.state.mousedown){const e=t.touches[0];this.__resize(e.clientX,e.clientY)}}__onKeyPress(t){this.isVisible()&&t.key===js.Escape&&(this.hide(),t.preventDefault())}__startResize(t,e){this.state.mouseX=t,this.state.mouseY=e,this.state.mousedown=!0,this.content.classList.add(Bu)}__resize(t,e){const n=t,i=e,r=Math.max(200,this.container.offsetWidth-(n-this.state.mouseX))+"px";this.state.contentId&&(this.state.width[this.state.contentId]=r),this.container.style.width=r,this.state.mouseX=n,this.state.mouseY=i}},Uu=class extends lu{constructor(t,e){super(t,{className:"psv-tooltip"}),this.state={visible:!0,arrow:0,border:0,state:0,width:0,height:0,pos:"",config:null,data:null},this.content=document.createElement("div"),this.content.className="psv-tooltip-content",this.container.appendChild(this.content),this.arrow=document.createElement("div"),this.arrow.className="psv-tooltip-arrow",this.container.appendChild(this.arrow),this.container.addEventListener("transitionend",this),this.container.addEventListener("touchdown",(t=>t.stopPropagation())),this.container.addEventListener("mousedown",(t=>t.stopPropagation())),this.container.style.top="-1000px",this.container.style.left="-1000px",this.show(e)}handleEvent(t){"transitionend"===t.type&&this.__onTransitionEnd(t)}destroy(){delete this.state.data,super.destroy()}toggle(){throw new fl("Tooltip cannot be toggled")}show(t){if(0!==this.state.state)throw new fl("Initialized tooltip cannot be re-initialized");t.className&&Gs(this.container,t.className),t.style&&Object.assign(this.container.style,t.style),this.state.state=3,this.update(t.content,t),this.state.data=t.data,this.state.state=1,this.viewer.dispatchEvent(new $c(this,this.state.data)),this.__waitImages()}update(t,e){this.content.innerHTML=t;const n=this.container.getBoundingClientRect();this.state.width=n.right-n.left,this.state.height=n.bottom-n.top,this.state.arrow=parseInt(Qs(this.arrow,"border-top-width"),10),this.state.border=parseInt(Qs(this.container,"border-top-left-radius"),10),this.move(e??this.state.config),this.__waitImages()}move(t){if(1!==this.state.state&&3!==this.state.state)throw new fl("Uninitialized tooltip cannot be moved");t.box=t.box??this.state.config?.box??{width:0,height:0},this.state.config=t;const e=this.container,n=this.arrow,i={posClass:kl(t.position,{allowCenter:!1,cssOrder:!1})||["top","center"],width:this.state.width,height:this.state.height,top:0,left:0,arrowTop:0,arrowLeft:0};this.__computeTooltipPosition(i,t);let r=null,o=null;if(i.top<0?r="bottom":i.top+i.height>this.viewer.state.size.height&&(r="top"),i.left<0?o="right":i.left+i.width>this.viewer.state.size.width&&(o="left"),o||r){const e=Al(i.posClass);r&&(i.posClass[e?0:1]=r),o&&(i.posClass[e?1:0]=o),this.__computeTooltipPosition(i,t)}e.style.top=i.top+"px",e.style.left=i.left+"px",n.style.top=i.arrowTop+"px",n.style.left=i.arrowLeft+"px";const a=i.posClass.join("-");a!==this.state.pos&&(e.classList.remove(`psv-tooltip--${this.state.pos}`),this.state.pos=a,e.classList.add(`psv-tooltip--${this.state.pos}`))}hide(){this.container.classList.remove("psv-tooltip--visible"),this.state.state=2,this.viewer.dispatchEvent(new mc(this.state.data))}__onTransitionEnd(t){if("transform"===t.propertyName)switch(this.state.state){case 1:this.container.classList.add("psv-tooltip--visible"),this.state.state=3;break;case 2:this.state.state=0,this.destroy()}}__computeTooltipPosition(t,e){const n=this.state.arrow,i=e.top,r=t.height,o=e.left,a=t.width,s=n+this.state.border,l=e.box.width/2+2*n,c=e.box.height/2+2*n;switch(t.posClass.join("-")){case"top-left":t.top=i-c-r,t.left=o+s-a,t.arrowTop=r,t.arrowLeft=a-s-n;break;case"top-center":t.top=i-c-r,t.left=o-a/2,t.arrowTop=r,t.arrowLeft=a/2-n;break;case"top-right":t.top=i-c-r,t.left=o-s,t.arrowTop=r,t.arrowLeft=n;break;case"bottom-left":t.top=i+c,t.left=o+s-a,t.arrowTop=2*-n,t.arrowLeft=a-s-n;break;case"bottom-center":t.top=i+c,t.left=o-a/2,t.arrowTop=2*-n,t.arrowLeft=a/2-n;break;case"bottom-right":t.top=i+c,t.left=o-s,t.arrowTop=2*-n,t.arrowLeft=n;break;case"left-top":t.top=i+s-r,t.left=o-l-a,t.arrowTop=r-s-n,t.arrowLeft=a;break;case"center-left":t.top=i-r/2,t.left=o-l-a,t.arrowTop=r/2-n,t.arrowLeft=a;break;case"left-bottom":t.top=i-s,t.left=o-l-a,t.arrowTop=n,t.arrowLeft=a;break;case"right-top":t.top=i+s-r,t.left=o+l,t.arrowTop=r-s-n,t.arrowLeft=2*-n;break;case"center-right":t.top=i-r/2,t.left=o+l,t.arrowTop=r/2-n,t.arrowLeft=2*-n;break;case"right-bottom":t.top=i-s,t.left=o+l,t.arrowTop=n,t.arrowLeft=2*-n}}__waitImages(){const t=this.content.querySelectorAll("img");if(t.length>0){const e=[];t.forEach((t=>{t.complete||e.push(new Promise((e=>{t.onload=e,t.onerror=e})))})),e.length&&Promise.all(e).then((()=>{if(1===this.state.state||3===this.state.state){const t=this.container.getBoundingClientRect();this.state.width=t.right-t.left,this.state.height=t.bottom-t.top,this.move(this.state.config)}}))}}},Hu=class{constructor(t){this.viewer=t,this.config=t.config,this.state=t.state}destroy(){}},Vu=new Me,Yu=new bn(0,0,0,"ZXY"),qu=class extends Hu{constructor(t){super(t)}fovToZoomLevel(t){const e=Math.round((t-this.config.minFov)/(this.config.maxFov-this.config.minFov)*100);return e-2*(e-50)}zoomLevelToFov(t){return this.config.maxFov+t/100*(this.config.minFov-this.config.maxFov)}vFovToHFov(t){return ne.radToDeg(2*Math.atan(Math.tan(ne.degToRad(t)/2)*this.state.aspect))}getAnimationProperties(t,e,n){const i=!ul(e),r=!ul(n),o={};let a=null;if(i){const n=this.viewer.getPosition(),i=Hs(n.yaw,e.yaw);o.yaw={start:n.yaw,end:n.yaw+i},o.pitch={start:n.pitch,end:e.pitch},a=Ml(t,Vs(n,e))}if(r){const e=this.viewer.getZoomLevel(),i=Math.abs(n-e);o.zoom={start:e,end:n},null===a&&(a=Ml(t,Math.PI/4*i/100))}return a=null===a?"number"==typeof t?t:Ss:Math.max(Ss,a),{duration:a,properties:o}}textureCoordsToSphericalCoords(t){if(!this.state.textureData?.panoData)throw new fl("Current adapter does not support texture coordinates or no texture has been loaded");const e=this.viewer.adapter.textureCoordsToSphericalCoords(t,this.state.textureData.panoData);return Yu.equals(this.viewer.renderer.panoramaPose)&&Yu.equals(this.viewer.renderer.sphereCorrection)?e:(this.sphericalCoordsToVector3(e,Vu),Vu.applyEuler(this.viewer.renderer.panoramaPose),Vu.applyEuler(this.viewer.renderer.sphereCorrection),this.vector3ToSphericalCoords(Vu))}sphericalCoordsToTextureCoords(t){if(!this.state.textureData?.panoData)throw new fl("Current adapter does not support texture coordinates or no texture has been loaded");return Yu.equals(this.viewer.renderer.panoramaPose)&&Yu.equals(this.viewer.renderer.sphereCorrection)||(this.sphericalCoordsToVector3(t,Vu),Il(Vu,this.viewer.renderer.sphereCorrection),Il(Vu,this.viewer.renderer.panoramaPose),t=this.vector3ToSphericalCoords(Vu)),this.viewer.adapter.sphericalCoordsToTextureCoords(t,this.state.textureData.panoData)}sphericalCoordsToVector3(t,e,n=Ms){return e||(e=new Me),e.x=n*-Math.cos(t.pitch)*Math.sin(t.yaw),e.y=n*Math.sin(t.pitch),e.z=n*Math.cos(t.pitch)*Math.cos(t.yaw),e}vector3ToSphericalCoords(t){const e=Math.acos(t.y/Math.sqrt(t.x*t.x+t.y*t.y+t.z*t.z)),n=Math.atan2(t.x,t.z);return{yaw:n<0?-n:2*Math.PI-n,pitch:Math.PI/2-e}}viewerCoordsToVector3(t){const e=this.viewer.renderer.getIntersections(t).filter((t=>t.object.userData[Ls]));return e.length?e[0].point:null}viewerCoordsToSphericalCoords(t){const e=this.viewerCoordsToVector3(t);return e?this.vector3ToSphericalCoords(e):null}vector3ToViewerCoords(t){const e=t.clone();return e.project(this.viewer.renderer.camera),{x:Math.round((e.x+1)/2*this.state.size.width),y:Math.round((1-e.y)/2*this.state.size.height)}}sphericalCoordsToViewerCoords(t){return this.sphericalCoordsToVector3(t,Vu),this.vector3ToViewerCoords(Vu)}isPointVisible(t){let e,n;if(t instanceof Me)e=t,n=this.vector3ToViewerCoords(t);else{if(!_l(t))return!1;e=this.sphericalCoordsToVector3(t,Vu),n=this.vector3ToViewerCoords(e)}return e.dot(this.viewer.state.direction)>0&&n.x>=0&&n.x<=this.viewer.state.size.width&&n.y>=0&&n.y<=this.viewer.state.size.height}cleanPosition(t){if("yaw"in t||"pitch"in t){if(!("yaw"in t)||!("pitch"in t))throw new fl("Position is missing 'yaw' or 'pitch'");return{yaw:Ll(t.yaw),pitch:Ll(t.pitch,!this.state.littlePlanet)}}return this.textureCoordsToSphericalCoords(t)}cleanSphereCorrection(t){return{pan:Ll(t?.pan||0),tilt:Ll(t?.tilt||0,!0),roll:Ll(t?.roll||0,!0,!1)}}cleanPanoramaPose(t){return{pan:ne.degToRad(t?.poseHeading||0),tilt:ne.degToRad(t?.posePitch||0),roll:ne.degToRad(t?.poseRoll||0)}}},Wu=class t{constructor(){this.$=t.IDLE}is(...t){return t.some((t=>this.$&t))}set(t){this.$=t}add(t){this.$|=t}remove(t){this.$&=~t}};Wu.IDLE=0,Wu.CLICK=1,Wu.MOVING=2,Wu.INERTIA=4;var Gu=Wu,Xu=class extends Hu{constructor(t){super(t),this.data={startMouseX:0,startMouseY:0,mouseX:0,mouseY:0,mouseHistory:[],pinchDist:0,ctrlKeyDown:!1,dblclickData:null,dblclickTimeout:null,longtouchTimeout:null,twofingersTimeout:null,ctrlZoomTimeout:null},this.step=new Gu,this.keyHandler=new Ul,this.resizeObserver=new ResizeObserver(ol((()=>this.viewer.autoSize()),50)),this.moveThreshold=Es*ru.pixelRatio}init(){window.addEventListener("keydown",this,{passive:!1}),window.addEventListener("keyup",this),this.viewer.container.addEventListener("mousedown",this),window.addEventListener("mousemove",this,{passive:!1}),window.addEventListener("mouseup",this),this.viewer.container.addEventListener("touchstart",this,{passive:!1}),window.addEventListener("touchmove",this,{passive:!1}),window.addEventListener("touchend",this,{passive:!1}),this.viewer.container.addEventListener("wheel",this,{passive:!1}),document.addEventListener("fullscreenchange",this),this.resizeObserver.observe(this.viewer.container)}destroy(){window.removeEventListener("keydown",this),window.removeEventListener("keyup",this),this.viewer.container.removeEventListener("mousedown",this),window.removeEventListener("mousemove",this),window.removeEventListener("mouseup",this),this.viewer.container.removeEventListener("touchstart",this),window.removeEventListener("touchmove",this),window.removeEventListener("touchend",this),this.viewer.container.removeEventListener("wheel",this),document.removeEventListener("fullscreenchange",this),this.resizeObserver.disconnect(),clearTimeout(this.data.dblclickTimeout),clearTimeout(this.data.longtouchTimeout),clearTimeout(this.data.twofingersTimeout),clearTimeout(this.data.ctrlZoomTimeout),super.destroy()}handleEvent(t){switch(t.type){case"keydown":this.__onKeyDown(t);break;case"keyup":this.__onKeyUp();break;case"mousemove":this.__onMouseMove(t);break;case"mouseup":this.__onMouseUp(t);break;case"touchmove":this.__onTouchMove(t);break;case"touchend":this.__onTouchEnd(t);break;case"fullscreenchange":this.__onFullscreenChange()}if(!Zs(t.target,"."+Ds))switch(t.type){case"mousedown":this.__onMouseDown(t);break;case"touchstart":this.__onTouchStart(t);break;case"wheel":this.__onMouseWheel(t)}}__onKeyDown(t){if(this.config.mousewheelCtrlKey&&(this.data.ctrlKeyDown=t.key===js.Control,this.data.ctrlKeyDown&&(clearTimeout(this.data.ctrlZoomTimeout),this.viewer.overlay.hide(Is.CTRL_ZOOM))),!this.viewer.dispatchEvent(new gc(t.key)))return;if(!this.state.keyboardEnabled)return;const e=this.config.keyboardActions?.[t.key];if("function"==typeof e)e(this.viewer),t.preventDefault();else if(e&&!this.keyHandler.pending){switch("ZOOM_IN"!==e&&"ZOOM_OUT"!==e&&this.viewer.stopAll(),e){case"ROTATE_UP":this.viewer.dynamics.position.roll({pitch:!1});break;case"ROTATE_DOWN":this.viewer.dynamics.position.roll({pitch:!0});break;case"ROTATE_RIGHT":this.viewer.dynamics.position.roll({yaw:!1});break;case"ROTATE_LEFT":this.viewer.dynamics.position.roll({yaw:!0});break;case"ZOOM_IN":this.viewer.dynamics.zoom.roll(!1);break;case"ZOOM_OUT":this.viewer.dynamics.zoom.roll(!0)}this.keyHandler.down(),t.preventDefault()}}__onKeyUp(){this.data.ctrlKeyDown=!1,this.state.keyboardEnabled&&this.keyHandler.up((()=>{this.viewer.dynamics.position.stop(),this.viewer.dynamics.zoom.stop(),this.viewer.resetIdleTimer()}))}__onMouseDown(t){this.step.add(Gu.CLICK),this.data.startMouseX=t.clientX,this.data.startMouseY=t.clientY}__onMouseUp(t){this.step.is(Gu.CLICK,Gu.MOVING)&&this.__stopMove(t.clientX,t.clientY,t.target,2===t.button)}__onMouseMove(t){this.config.mousemove&&this.step.is(Gu.CLICK,Gu.MOVING)&&(t.preventDefault(),this.__doMove(t.clientX,t.clientY)),this.__handleObjectsEvents(t)}__onTouchStart(t){1===t.touches.length?(this.step.add(Gu.CLICK),this.data.startMouseX=t.touches[0].clientX,this.data.startMouseY=t.touches[0].clientY,this.data.longtouchTimeout||(this.data.longtouchTimeout=setTimeout((()=>{const e=t.touches[0];this.__stopMove(e.clientX,e.clientY,e.target,!0),this.data.longtouchTimeout=null}),Os))):2===t.touches.length&&(this.step.set(Gu.IDLE),this.__cancelLongTouch(),this.config.mousemove&&(this.__cancelTwoFingersOverlay(),this.__startMoveZoom(t),t.preventDefault()))}__onTouchEnd(t){if(this.__cancelLongTouch(),this.step.is(Gu.CLICK,Gu.MOVING))if(t.preventDefault(),this.__cancelTwoFingersOverlay(),1===t.touches.length)this.__stopMove(this.data.mouseX,this.data.mouseY);else if(0===t.touches.length){const e=t.changedTouches[0];this.__stopMove(e.clientX,e.clientY,e.target)}}__onTouchMove(t){if(this.__cancelLongTouch(),this.config.mousemove)if(1===t.touches.length){if(this.config.touchmoveTwoFingers)this.step.is(Gu.CLICK)&&!this.data.twofingersTimeout&&(this.data.twofingersTimeout=setTimeout((()=>{this.viewer.overlay.show({id:Is.TWO_FINGERS,image:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="currentColor" d="M33.38 33.2a1.96 1.96 0 0 0 1.5-3.23 10.61 10.61 0 0 1 7.18-17.51c.7-.06 1.31-.49 1.61-1.12a13.02 13.02 0 0 1 11.74-7.43c7.14 0 12.96 5.8 12.96 12.9 0 3.07-1.1 6.05-3.1 8.38-.7.82-.61 2.05.21 2.76.83.7 2.07.6 2.78-.22a16.77 16.77 0 0 0 4.04-10.91C72.3 7.54 64.72 0 55.4 0a16.98 16.98 0 0 0-14.79 8.7 14.6 14.6 0 0 0-12.23 14.36c0 3.46 1.25 6.82 3.5 9.45.4.45.94.69 1.5.69m45.74 43.55a22.13 22.13 0 0 1-5.23 12.4c-4 4.55-9.53 6.86-16.42 6.86-12.6 0-20.1-10.8-20.17-10.91a1.82 1.82 0 0 0-.08-.1c-5.3-6.83-14.55-23.82-17.27-28.87-.05-.1 0-.21.02-.23a6.3 6.3 0 0 1 8.24 1.85l9.38 12.59a1.97 1.97 0 0 0 3.54-1.17V25.34a4 4 0 0 1 1.19-2.87 3.32 3.32 0 0 1 2.4-.95c1.88.05 3.4 1.82 3.4 3.94v24.32a1.96 1.96 0 0 0 3.93 0v-33.1a3.5 3.5 0 0 1 7 0v35.39a1.96 1.96 0 0 0 3.93 0v-.44c.05-2.05 1.6-3.7 3.49-3.7 1.93 0 3.5 1.7 3.5 3.82v5.63c0 .24.04.48.13.71l.1.26a1.97 1.97 0 0 0 3.76-.37c.33-1.78 1.77-3.07 3.43-3.07 1.9 0 3.45 1.67 3.5 3.74l-1.77 18.1zM77.39 51c-1.25 0-2.45.32-3.5.9v-.15c0-4.27-3.33-7.74-7.42-7.74-1.26 0-2.45.33-3.5.9V16.69a7.42 7.42 0 0 0-14.85 0v1.86a7 7 0 0 0-3.28-.94 7.21 7.21 0 0 0-5.26 2.07 7.92 7.92 0 0 0-2.38 5.67v37.9l-5.83-7.82a10.2 10.2 0 0 0-13.35-2.92 4.1 4.1 0 0 0-1.53 5.48C20 64.52 28.74 80.45 34.07 87.34c.72 1.04 9.02 12.59 23.4 12.59 7.96 0 14.66-2.84 19.38-8.2a26.06 26.06 0 0 0 6.18-14.6l1.78-18.2v-.2c0-4.26-3.32-7.73-7.42-7.73z"/>\x3c!--Created by AomAm from the Noun Project--\x3e</svg>\n',title:this.config.lang.twoFingers})}),ks));else if(this.step.is(Gu.CLICK,Gu.MOVING)){t.preventDefault();const e=t.touches[0];this.__doMove(e.clientX,e.clientY)}}else this.__doMoveZoom(t),this.__cancelTwoFingersOverlay()}__cancelLongTouch(){this.data.longtouchTimeout&&(clearTimeout(this.data.longtouchTimeout),this.data.longtouchTimeout=null)}__cancelTwoFingersOverlay(){this.config.touchmoveTwoFingers&&(this.data.twofingersTimeout&&(clearTimeout(this.data.twofingersTimeout),this.data.twofingersTimeout=null),this.viewer.overlay.hide(Is.TWO_FINGERS))}__onMouseWheel(t){if(!this.config.mousewheel||!t.deltaY)return;if(this.config.mousewheelCtrlKey&&!this.data.ctrlKeyDown)return this.viewer.overlay.show({id:Is.CTRL_ZOOM,image:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="10 17 79 79"><path fill="currentColor" d="M38.1 29.27c-.24 0-.44.2-.44.45v10.7a.45.45 0 00.9 0v-10.7c0-.25-.2-.45-.45-.45zm10.2 26.66a11.54 11.54 0 01-8.48-6.14.45.45 0 10-.8.41 12.45 12.45 0 009.22 6.62.45.45 0 00.07-.9zm24.55-13.08a23.04 23.04 0 00-22.56-23v7.07l-.01.05a2.83 2.83 0 012.39 2.78v14.03l.09-.02h8.84v-9.22a.45.45 0 11.9 0v9.22h10.35v-.9zm0 27.33V44.66H62.5c-.02 2.01-.52 4-1.47 5.76a.45.45 0 01-.61.18.45.45 0 01-.19-.61 11.54 11.54 0 001.36-5.33h-8.83l-.1-.01a2.83 2.83 0 01-2.83 2.84h-.04-.04a2.83 2.83 0 01-2.83-2.83v-14.9a2.82 2.82 0 012.47-2.8v-7.11a23.04 23.04 0 00-22.57 23v.91h14.72V29.88a8.2 8.2 0 015.02-7.57c.22-.1.5.01.59.24.1.23-.01.5-.24.6a7.3 7.3 0 00-4.47 6.73v13.88h3.9a.45.45 0 110 .9h-3.9v.15a7.32 7.32 0 0011.23 6.17.45.45 0 01.49.76 8.22 8.22 0 01-12.62-6.93v-.15H26.82v25.52a23.04 23.04 0 0023.01 23.01 23.04 23.04 0 0023.02-23.01zm1.8-27.33v27.33A24.85 24.85 0 0149.84 95a24.85 24.85 0 01-24.82-24.82V42.85a24.85 24.85 0 0124.82-24.82 24.85 24.85 0 0124.83 24.82zM57.98 29.88v9.36a.45.45 0 11-.9 0v-9.36a7.28 7.28 0 00-3.4-6.17.45.45 0 01.49-.76 8.18 8.18 0 013.8 6.93z"/>\x3c!-- Created by Icon Island from the Noun Project --\x3e</svg>\n',title:this.config.lang.ctrlZoom}),clearTimeout(this.data.ctrlZoomTimeout),void(this.data.ctrlZoomTimeout=setTimeout((()=>this.viewer.overlay.hide(Is.CTRL_ZOOM)),As));t.preventDefault(),t.stopPropagation();const e=t.deltaY/Math.abs(t.deltaY)*5*this.config.zoomSpeed;0!==e&&this.viewer.dynamics.zoom.step(-e,5)}__onFullscreenChange(){const t=this.viewer.isFullscreenEnabled();"fullscreen"===this.config.keyboard&&(t?this.viewer.startKeyboardControl():this.viewer.stopKeyboardControl()),this.viewer.dispatchEvent(new sc(t))}__resetMove(){this.step.set(Gu.IDLE),this.data.mouseX=0,this.data.mouseY=0,this.data.startMouseX=0,this.data.startMouseY=0,this.data.mouseHistory.length=0}__startMoveZoom(t){this.viewer.stopAll(),this.__resetMove();const e=tl(t);this.step.set(Gu.MOVING),({distance:this.data.pinchDist,center:{x:this.data.mouseX,y:this.data.mouseY}}=e),this.__logMouseMove(this.data.mouseX,this.data.mouseY)}__stopMove(t,e,n,i=!1){this.step.is(Gu.MOVING)?this.config.moveInertia?(this.__logMouseMove(t,e),this.__stopMoveInertia(t,e)):(this.__resetMove(),this.viewer.resetIdleTimer()):(this.step.is(Gu.CLICK)&&!this.__moveThresholdReached(t,e)&&this.__doClick(t,e,n,i),this.step.remove(Gu.CLICK),this.step.is(Gu.INERTIA)||(this.__resetMove(),this.viewer.resetIdleTimer()))}__stopMoveInertia(t,e){const n=new Va(this.data.mouseHistory.map((([,t,e])=>new ie(t,e)))).getTangent(1),i=this.data.mouseHistory.reduce((({total:t,prev:e},n)=>({total:e?t+$s({x:e[1],y:e[2]},{x:n[1],y:n[2]})/(n[0]-e[0]):0,prev:n})),{total:0,prev:null}).total/this.data.mouseHistory.length;if(!i)return this.__resetMove(),void this.viewer.resetIdleTimer();this.step.set(Gu.INERTIA);let r=t,o=e;this.state.animation=new zl({properties:{speed:{start:i,end:0}},duration:1e3,easing:"outQuad",onTick:t=>{r+=t.speed*n.x*3*ru.pixelRatio,o+=t.speed*n.y*3*ru.pixelRatio,this.__applyMove(r,o)}}),this.state.animation.then((t=>{this.state.animation=null,t&&(this.__resetMove(),this.viewer.resetIdleTimer())}))}__doClick(t,e,n,i=!1){const r=this.viewer.container.getBoundingClientRect(),o=t-r.left,a=e-r.top,s=this.viewer.renderer.getIntersections({x:o,y:a}),l=s.find((t=>t.object.userData[Ls]));if(l){const r=this.viewer.dataHelper.vector3ToSphericalCoords(l.point),c={rightclick:i,target:n,clientX:t,clientY:e,viewerX:o,viewerY:a,yaw:r.yaw,pitch:r.pitch,objects:s.map((t=>t.object)).filter((t=>!t.userData[Ls]))};try{const t=this.viewer.dataHelper.sphericalCoordsToTextureCoords(c);Object.assign(c,t)}catch(t){}this.data.dblclickTimeout?(Math.abs(this.data.dblclickData.clientX-c.clientX)<this.moveThreshold&&Math.abs(this.data.dblclickData.clientY-c.clientY)<this.moveThreshold&&this.viewer.dispatchEvent(new oc(this.data.dblclickData)),clearTimeout(this.data.dblclickTimeout),this.data.dblclickTimeout=null,this.data.dblclickData=null):(this.viewer.dispatchEvent(new ec(c)),this.data.dblclickData=ll(c),this.data.dblclickTimeout=setTimeout((()=>{this.data.dblclickTimeout=null,this.data.dblclickData=null}),Ts))}}__handleObjectsEvents(t){if(!cl(this.state.objectsObservers)&&Ks(t.target,this.viewer.container)){const e=Js(this.viewer.container),n={x:t.clientX-e.x,y:t.clientY-e.y},i=this.viewer.renderer.getIntersections(n),r=(e,i,r)=>{this.viewer.dispatchEvent(new r(t,e,n,i))};for(const[t,e]of Object.entries(this.state.objectsObservers)){const n=i.find((e=>e.object.userData[t]));n?(e&&n.object!==e&&(r(e,t,Jc),this.state.objectsObservers[t]=null),e?r(n.object,t,tu):(this.state.objectsObservers[t]=n.object,r(n.object,t,Kc))):e&&(r(e,t,Jc),this.state.objectsObservers[t]=null)}}}__doMove(t,e){this.step.is(Gu.CLICK)&&this.__moveThresholdReached(t,e)?(this.viewer.stopAll(),this.__resetMove(),this.step.set(Gu.MOVING),this.data.mouseX=t,this.data.mouseY=e,this.__logMouseMove(t,e)):this.step.is(Gu.MOVING)&&(this.__applyMove(t,e),this.__logMouseMove(t,e))}__moveThresholdReached(t,e){return Math.abs(t-this.data.startMouseX)>=this.moveThreshold||Math.abs(e-this.data.startMouseY)>=this.moveThreshold}__applyMove(t,e){const n=(t-this.data.mouseX)*Math.cos(this.state.roll)-(e-this.data.mouseY)*Math.sin(this.state.roll),i=(e-this.data.mouseY)*Math.cos(this.state.roll)+(t-this.data.mouseX)*Math.sin(this.state.roll),r=this.config.moveSpeed*(n/this.state.size.width)*ne.degToRad(this.state.littlePlanet?90:this.state.hFov),o=this.config.moveSpeed*(i/this.state.size.height)*ne.degToRad(this.state.littlePlanet?90:this.state.vFov),a=this.viewer.getPosition();this.viewer.rotate({yaw:a.yaw-r,pitch:a.pitch+o}),this.data.mouseX=t,this.data.mouseY=e}__doMoveZoom(t){if(this.step.is(Gu.MOVING)){t.preventDefault();const e=tl(t),n=(e.distance-this.data.pinchDist)/ru.pixelRatio*this.config.zoomSpeed;this.viewer.zoom(this.viewer.getZoomLevel()+n),this.__doMove(e.center.x,e.center.y),this.data.pinchDist=e.distance}}__logMouseMove(t,e){const n=Date.now(),i=this.data.mouseHistory.length?this.data.mouseHistory[this.data.mouseHistory.length-1]:[0,-1,-1];i[1]===t&&i[2]===e?i[0]=n:n===i[0]?(i[1]=t,i[2]=e):this.data.mouseHistory.push([n,t,e]);let r=null;for(let t=0;t<this.data.mouseHistory.length;)this.data.mouseHistory[t][0]<n-Ps?this.data.mouseHistory.splice(t,1):r&&this.data.mouseHistory[t][0]-r>Ps/10?(this.data.mouseHistory.splice(0,t),t=0,r=this.data.mouseHistory[t][0]):(r=this.data.mouseHistory[t][0],t++)}};me.enabled=!1;var Ku=new ie,Zu=new ln,Ju=new Re,Qu=class extends Hu{constructor(t){super(t),this.frustumNeedsUpdate=!0,this.renderer=new Ba(this.config.rendererParameters),this.renderer.setPixelRatio(ru.pixelRatio),this.renderer.outputColorSpace=xt,this.renderer.domElement.className="psv-canvas",this.scene=new $a,this.camera=new Hi(50,16/9,.1,2*Ms),this.camera.matrixWorldAutoUpdate=!1,this.mesh=this.viewer.adapter.createMesh(),this.mesh.userData={[Ls]:!0},this.meshContainer=new Da,this.meshContainer.add(this.mesh),this.scene.add(this.meshContainer),this.raycaster=new gs,this.frustum=new tr,this.container=document.createElement("div"),this.container.className="psv-canvas-container",this.container.appendChild(this.renderer.domElement),this.viewer.container.appendChild(this.container),this.viewer.addEventListener(Hc.type,this),this.viewer.addEventListener(Wc.type,this),this.viewer.addEventListener(Oc.type,this),this.viewer.addEventListener(Ac.type,this),this.viewer.addEventListener(ic.type,this),this.hide()}get panoramaPose(){return this.mesh.rotation}get sphereCorrection(){return this.meshContainer.rotation}init(){this.show(),this.renderer.setAnimationLoop((t=>this.__renderLoop(t)))}destroy(){this.renderer.setAnimationLoop(null),this.cleanScene(this.scene),this.viewer.container.removeChild(this.container),this.viewer.removeEventListener(Hc.type,this),this.viewer.removeEventListener(Wc.type,this),this.viewer.removeEventListener(Oc.type,this),this.viewer.removeEventListener(Ac.type,this),this.viewer.removeEventListener(ic.type,this),super.destroy()}handleEvent(t){switch(t.type){case Hc.type:this.__onSizeUpdated();break;case Wc.type:this.__onZoomUpdated();break;case Oc.type:case Ac.type:this.__onPositionUpdated();break;case ic.type:t.containsOptions("fisheye")&&this.__onPositionUpdated()}}hide(){this.container.style.opacity="0"}show(){this.container.style.opacity="1"}setCustomRenderer(t){this.customRenderer=t?t(this.renderer):null,this.viewer.needsUpdate()}__onSizeUpdated(){this.renderer.setSize(this.state.size.width,this.state.size.height),this.camera.aspect=this.state.aspect,this.camera.updateProjectionMatrix(),this.viewer.needsUpdate(),this.frustumNeedsUpdate=!0}__onZoomUpdated(){this.camera.fov=this.state.vFov,this.camera.updateProjectionMatrix(),this.viewer.needsUpdate(),this.frustumNeedsUpdate=!0}__onPositionUpdated(){this.camera.position.set(0,0,0),this.camera.lookAt(this.state.direction),this.config.fisheye&&this.camera.position.copy(this.state.direction).multiplyScalar(this.config.fisheye/2).negate(),this.camera.rotateZ(-this.state.roll),this.camera.updateMatrixWorld(),this.viewer.needsUpdate(),this.frustumNeedsUpdate=!0}__renderLoop(t){const e=this.timestamp?t-this.timestamp:0;this.timestamp=t,this.viewer.dispatchEvent(new Zl(t,e)),this.viewer.dynamics.update(e),(this.state.needsUpdate||this.state.continuousUpdateCount>0)&&(this.state.needsUpdate=!1,(this.customRenderer||this.renderer).render(this.scene,this.camera),this.viewer.dispatchEvent(new Dc))}setTexture(t){this.state.textureData&&this.viewer.adapter.disposeTexture(this.state.textureData),this.state.textureData=t,this.viewer.adapter.setTexture(this.mesh,t),this.viewer.needsUpdate()}setPanoramaPose(t,e=this.mesh){const n=this.viewer.dataHelper.cleanPanoramaPose(t);e.rotation.set(-n.tilt,-n.pan,-n.roll,"ZXY")}setSphereCorrection(t,e=this.meshContainer){const n=this.viewer.dataHelper.cleanSphereCorrection(t);e.rotation.set(n.tilt,n.pan,n.roll,"ZXY")}transition(t,e){const n=!ul(e.position),i=!ul(e.zoom),r=new Xl(n?this.viewer.dataHelper.cleanPosition(e.position):void 0,e.zoom);this.viewer.dispatchEvent(r);const o=new Da,a=this.viewer.adapter.createMesh(.5);if(this.viewer.adapter.setTexture(a,t,!0),this.viewer.adapter.setTextureOpacity(a,0),this.setPanoramaPose(t.panoData,a),this.setSphereCorrection(e.sphereCorrection,o),n&&"fade-only"===e.transition){const t=this.viewer.getPosition(),e=new Me(0,1,0);o.rotateOnWorldAxis(e,r.position.yaw-t.yaw);const n=new Me(0,1,0).cross(this.camera.getWorldDirection(new Me)).normalize();o.rotateOnWorldAxis(n,r.position.pitch-t.pitch)}o.add(a),this.scene.add(o),this.renderer.setRenderTarget(new Oe),this.renderer.render(this.scene,this.camera),this.renderer.setRenderTarget(null);const{duration:s,properties:l}=this.viewer.dataHelper.getAnimationProperties(e.speed,!0===e.transition?r.position:null,r.zoomLevel),c=new zl({properties:{...l,opacity:{start:0,end:1}},duration:s,easing:"inOutCubic",onTick:t=>{this.viewer.adapter.setTextureOpacity(a,t.opacity),n&&!0===e.transition&&this.viewer.dynamics.position.setValue({yaw:t.yaw,pitch:t.pitch}),i&&this.viewer.dynamics.zoom.setValue(t.zoom),this.viewer.needsUpdate()}});return c.then((i=>{i?(this.setTexture(t),this.viewer.adapter.setTextureOpacity(this.mesh,1),this.setPanoramaPose(t.panoData),this.setSphereCorrection(e.sphereCorrection),n&&"fade-only"===e.transition&&this.viewer.rotate(e.position)):this.viewer.adapter.disposeTexture(t),this.scene.remove(o),a.geometry.dispose(),a.geometry=null})),c}getIntersections(t){Ku.x=2*t.x/this.state.size.width-1,Ku.y=-2*t.y/this.state.size.height+1,this.raycaster.setFromCamera(Ku,this.camera);const e=this.raycaster.intersectObjects(this.scene.children,!0).filter((t=>t.object.visible)).filter((t=>t.object.isMesh&&!!t.object.userData));return this.customRenderer?.getIntersections&&e.push(...this.customRenderer.getIntersections(this.raycaster,Ku)),e}isObjectVisible(t){if(!t)return!1;if(this.frustumNeedsUpdate&&(Zu.multiplyMatrices(this.camera.projectionMatrix,this.camera.matrixWorldInverse),this.frustum.setFromProjectionMatrix(Zu),this.frustumNeedsUpdate=!1),t.isVector3)return this.frustum.containsPoint(t);if(t.isMesh&&t.geometry){const e=t;return e.geometry.boundingBox||e.geometry.computeBoundingBox(),Ju.copy(e.geometry.boundingBox).applyMatrix4(e.matrixWorld),this.frustum.intersectsBox(Ju)}return!!t.isObject3D&&this.frustum.intersectsObject(t)}addObject(t){this.scene.add(t)}removeObject(t){this.scene.remove(t)}cleanScene(t){const e=t=>{t.map?.dispose(),t.uniforms&&Object.values(t.uniforms).forEach((t=>{t.value?.dispose?.()})),t.dispose()};t.traverse((n=>{n.geometry?.dispose(),n.material&&(Array.isArray(n.material)?n.material.forEach((t=>{e(t)})):e(n.material)),n instanceof $a||n.dispose?.(),n!==t&&this.cleanScene(n)}))}},td=class extends cs{load(t,e,n,i,r){const o=new Request(t,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"});fetch(o,{signal:r}).then((t=>{if(200===t.status||0===t.status){const e=t.body.getReader(),r=t.headers.get("Content-Length")||t.headers.get("X-File-Size"),o=r?parseInt(r):0,a=0!==o;let s=0;const l=new ReadableStream({start(t){!function r(){e.read().then((({done:e,value:i})=>{if(e)t.close();else{s+=i.byteLength;const e=new ProgressEvent("progress",{lengthComputable:a,loaded:s,total:o});n(e),t.enqueue(i),r()}})).catch((t=>{i(t)}))}()}});return new Response(l)}throw new Error(`fetch for "${t.url}" responded with ${t.status}: ${t.statusText}`)})).then((t=>t.blob())).then((t=>{e(t)})).catch((t=>{i(t)}))}},ed=class extends cs{load(t,e,n,i){const r=document.createElement("img");function o(){l(),e(this)}function a(t){if(l(),i?.aborted){const t=new Error;t.name="AbortError",t.message="The operation was aborted.",n(t)}else n(t)}function s(){r.src=""}function l(){r.removeEventListener("load",o,!1),r.removeEventListener("error",a,!1),i?.removeEventListener("abort",s,!1)}return r.addEventListener("load",o,!1),r.addEventListener("error",a,!1),i?.addEventListener("abort",s,!1),t.startsWith("data:")||void 0===this.crossOrigin||(r.crossOrigin=this.crossOrigin),r.src=t,r}},nd=class extends Hu{constructor(t){super(t),this.abortCtrl={},this.fileLoader=new td,this.imageLoader=new ed,this.config.withCredentials&&(this.fileLoader.setWithCredentials(!0),this.imageLoader.setCrossOrigin("use-credentials"))}destroy(){this.abortLoading(),super.destroy()}abortLoading(){Object.values(this.abortCtrl).forEach((t=>t.abort())),this.abortCtrl={}}loadFile(t,e,n){const i=ju.get(t,n);if(i){if(i instanceof Blob)return e?.(100),Promise.resolve(i);ju.remove(t,n)}return this.config.requestHeaders&&this.fileLoader.setRequestHeader(this.config.requestHeaders(t)),new Promise(((i,r)=>{let o=0;e?.(o),this.fileLoader.load(t,(r=>{o=100,e?.(o),ju.add(t,n,r),i(r)}),(t=>{if(t.lengthComputable){const n=t.loaded/t.total*100;n>o&&(o=n,e?.(o))}}),(t=>{r(t)}),this.__getAbortSignal(n))}))}loadImage(t,e,n){const i=ju.get(t,n);return i?(e?.(100),i instanceof Blob?this.blobToImage(i):Promise.resolve(i)):e||this.config.requestHeaders?this.loadFile(t,e,n).then((t=>this.blobToImage(t))):new Promise(((e,i)=>{this.imageLoader.load(t,(i=>{ju.add(t,n,i),e(i)}),(t=>{i(t)}),this.__getAbortSignal(n))}))}blobToImage(t){return new Promise(((e,n)=>{const i=document.createElement("img");i.onload=()=>{URL.revokeObjectURL(i.src),e(i)},i.onerror=n,i.src=URL.createObjectURL(t)}))}preloadPanorama(t){return this.viewer.adapter.supportsPreload(t)?this.viewer.adapter.loadTexture(t,!1):Promise.reject(new fl("Current adapter does not support preload"))}__getAbortSignal(t){return t?(this.abortCtrl[t]?.signal.aborted&&delete this.abortCtrl[t],this.abortCtrl[t]||(this.abortCtrl[t]=new AbortController),this.abortCtrl[t].signal):null}},id=class extends Hu{constructor(t){super(t),this.zoom=new Bl((t=>{this.viewer.state.vFov=this.viewer.dataHelper.zoomLevelToFov(t),this.viewer.state.hFov=this.viewer.dataHelper.vFovToHFov(this.viewer.state.vFov),this.viewer.dispatchEvent(new Wc(t))}),{defaultValue:this.viewer.config.defaultZoomLvl,min:0,max:100,wrap:!1}),this.position=new $l((t=>{this.viewer.dataHelper.sphericalCoordsToVector3(t,this.viewer.state.direction),this.viewer.dispatchEvent(new Oc(t))}),{yaw:new Bl(null,{defaultValue:this.config.defaultYaw,min:0,max:2*Math.PI,wrap:!0}),pitch:new Bl(null,{defaultValue:this.config.defaultPitch,min:this.viewer.state.littlePlanet?0:-Math.PI/2,max:this.viewer.state.littlePlanet?2*Math.PI:Math.PI/2,wrap:this.viewer.state.littlePlanet})}),this.roll=new Bl((t=>{this.viewer.state.roll=t,this.viewer.dispatchEvent(new Ac(t))}),{defaultValue:0,min:-Math.PI,max:Math.PI,wrap:!1}),this.updateSpeeds()}updateSpeeds(){this.zoom.setSpeed(50*this.config.zoomSpeed),this.position.setSpeed(ne.degToRad(50*this.config.moveSpeed)),this.roll.setSpeed(ne.degToRad(50*this.config.moveSpeed))}update(t){this.zoom.update(t),this.position.update(t),this.roll.update(t)}},rd=class{constructor(){this.ready=!1,this.needsUpdate=!1,this.continuousUpdateCount=0,this.keyboardEnabled=!1,this.direction=new Me(0,0,Ms),this.roll=0,this.vFov=60,this.hFov=60,this.aspect=1,this.animation=null,this.transitionAnimation=null,this.loadingPromise=null,this.littlePlanet=!1,this.idleTime=-1,this.objectsObservers={},this.size={width:0,height:0}}},od=class extends ql{constructor(t){if(super(),this.plugins={},this.children=[],this.onResize=ol((()=>this.navbar.autoSize()),500),this.parent=qs(t.container),!this.parent)throw new fl('"container" element not found.');this.parent[Ls]=this,this.container=document.createElement("div"),this.container.classList.add("psv-container"),this.parent.appendChild(this.container),Nl(this.container,"core"),this.state=new rd,this.config=Mu(t),this.__setSize(this.config.size),this.overlay=new zu(this);try{ru.load()}catch(t){return console.error(t),void this.showError(this.config.lang.webglError)}ju.init(),this.adapter=new this.config.adapter[0](this,this.config.adapter[1]),this.renderer=new Qu(this),this.textureLoader=new nd(this),this.eventsHandler=new Xu(this),this.dataHelper=new qu(this),this.dynamics=new id(this),this.adapter.init?.(),this.loader=new Nu(this),this.navbar=new Iu(this),this.panel=new $u(this),this.notification=new Fu(this),this.autoSize(),this.setCursor(null),ml(ru.isTouchEnabled,(t=>{Ws(this.container,"psv--is-touch",t)})),this.config.plugins.forEach((([t,e])=>{this.plugins[t.id]=new t(this,e)}));for(const t of Object.values(this.plugins))t.init?.();this.config.navbar&&this.navbar.setButtons(this.config.navbar),this.state.loadingPromise||(this.config.panorama?this.setPanorama(this.config.panorama):this.loader.show())}destroy(){this.stopAll(),this.stopKeyboardControl(),this.exitFullscreen();for(const[t,e]of Object.entries(this.plugins))e.destroy(),delete this.plugins[t];this.children.slice().forEach((t=>t.destroy())),this.children.length=0,this.eventsHandler?.destroy(),this.renderer?.destroy(),this.textureLoader?.destroy(),this.dataHelper?.destroy(),this.adapter?.destroy(),this.dynamics?.destroy(),this.parent.removeChild(this.container),delete this.parent[Ls]}init(){this.eventsHandler.init(),this.renderer.init(),this.config.navbar&&this.navbar.show(),"always"===this.config.keyboard&&this.startKeyboardControl(),this.resetIdleTimer(),this.state.ready=!0,this.dispatchEvent(new Mc)}resetIdleTimer(){this.state.idleTime=performance.now()}disableIdleTimer(){this.state.idleTime=-1}getPlugin(t){if("string"==typeof t)return this.plugins[t];{const e=Ou(t);return e?this.plugins[e.id]:null}}getPosition(){return this.dataHelper.cleanPosition(this.dynamics.position.current)}getZoomLevel(){return this.dynamics.zoom.current}getSize(){return{...this.state.size}}isFullscreenEnabled(){return el(this.parent,ru.isIphone)}needsUpdate(){this.state.needsUpdate=!0}needsContinuousUpdate(t){t?this.state.continuousUpdateCount++:this.state.continuousUpdateCount>0&&this.state.continuousUpdateCount--}autoSize(){this.container.clientWidth===this.state.size.width&&this.container.clientHeight===this.state.size.height||(this.state.size.width=Math.round(this.container.clientWidth),this.state.size.height=Math.round(this.container.clientHeight),this.state.aspect=this.state.size.width/this.state.size.height,this.state.hFov=this.dataHelper.vFovToHFov(this.state.vFov),this.dispatchEvent(new Hc(this.getSize())),this.onResize())}setPanorama(t,e={}){this.textureLoader.abortLoading(),this.state.transitionAnimation?.cancel(),this.state.ready||["sphereCorrection","panoData"].forEach((t=>{t in e||(e[t]=this.config[t])})),void 0===e.transition&&(e.transition=!0),void 0===e.speed&&(e.speed=Cs),void 0===e.showLoader&&(e.showLoader=!0),void 0===e.caption&&(e.caption=this.config.caption),void 0===e.description&&(e.description=this.config.description),e.panoData||"function"!=typeof this.config.panoData||(e.panoData=this.config.panoData);const n=!ul(e.position),i=!ul(e.zoom);(n||i)&&this.stopAll(),this.hideError(),this.resetIdleTimer(),this.config.panorama=t,this.config.caption=e.caption,this.config.description=e.description;const r=e=>{if(bl(e))return!1;if(this.loader.hide(),this.state.loadingPromise=null,e)throw this.navbar.setCaption(""),this.showError(this.config.lang.loadError),console.error(e),this.dispatchEvent(new Ec(t,e)),e;return this.navbar.setCaption(this.config.caption),!0};this.navbar.setCaption(`<em>${this.config.lang.loading}</em>`),!e.showLoader&&this.state.ready||this.loader.show(),this.dispatchEvent(new wc(t));const o=this.adapter.loadTexture(this.config.panorama,!0,e.panoData).then((t=>{if(t.panorama!==this.config.panorama)throw this.adapter.disposeTexture(t),gl();return t}));return e.transition&&this.state.ready&&this.adapter.supportsTransition(this.config.panorama)?this.state.loadingPromise=o.then((t=>(this.loader.hide(),this.dispatchEvent(new Cc(t)),this.state.transitionAnimation=this.renderer.transition(t,e),this.state.transitionAnimation))).then((t=>{if(this.state.transitionAnimation=null,!t)throw gl()})).then((()=>r()),(t=>r(t))):this.state.loadingPromise=o.then((t=>{this.renderer.show(),this.renderer.setTexture(t),this.renderer.setPanoramaPose(t.panoData),this.renderer.setSphereCorrection(e.sphereCorrection),this.state.ready||this.init(),this.dispatchEvent(new Cc(t)),i&&this.zoom(e.zoom),n&&this.rotate(e.position)})).then((()=>r()),(t=>r(t))),this.state.loadingPromise}setOptions(t){const e={...this.config,...t};for(let[n,i]of Object.entries(t))if(n in ku)if(n in Au)yl(Au[n]);else switch(n in Pu&&(i=Pu[n](i,{rawConfig:e,defValue:ku[n]})),this.config[n]=i,n){case"mousemove":this.state.cursorOverride||this.setCursor(null);break;case"caption":this.navbar.setCaption(this.config.caption);break;case"size":this.resize(this.config.size);break;case"sphereCorrection":this.renderer.setSphereCorrection(this.config.sphereCorrection);break;case"navbar":case"lang":this.navbar.setButtons(this.config.navbar);break;case"moveSpeed":case"zoomSpeed":this.dynamics.updateSpeeds();break;case"minFov":case"maxFov":this.dynamics.zoom.setValue(this.dataHelper.fovToZoomLevel(this.state.vFov)),this.dispatchEvent(new Wc(this.getZoomLevel()));break;case"keyboard":"always"===this.config.keyboard?this.startKeyboardControl():this.stopKeyboardControl()}else yl(`Unknown option ${n}`);this.needsUpdate(),this.dispatchEvent(new ic(Object.keys(t)))}setOption(t,e){this.setOptions({[t]:e})}showError(t){this.overlay.show({id:Is.ERROR,image:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="15 15 70 70"><path fill="currentColor" d="M50,16.2c-18.6,0-33.8,15.1-33.8,33.8S31.4,83.7,50,83.7S83.8,68.6,83.8,50S68.6,16.2,50,16.2z M50,80.2c-16.7,0-30.2-13.6-30.2-30.2S33.3,19.7,50,19.7S80.3,33.3,80.3,50S66.7,80.2,50,80.2z"/><rect fill="currentColor" x="48" y="31.7" width="4" height="28"/><rect fill="currentColor" x="48" y="63.2" width="4" height="5"/>\x3c!--Created by Shastry from the Noun Project--\x3e</svg>\n',title:t,dissmisable:!1})}hideError(){this.overlay.hide(Is.ERROR)}rotate(t){const e=new Ql(this.dataHelper.cleanPosition(t));this.dispatchEvent(e),e.defaultPrevented||this.dynamics.position.setValue(e.position)}zoom(t){this.dynamics.zoom.setValue(t)}zoomIn(t=1){this.dynamics.zoom.step(t)}zoomOut(t=1){this.dynamics.zoom.step(-t)}animate(t){const e=_l(t),n=!ul(t.zoom),i=new Xl(e?this.dataHelper.cleanPosition(t):void 0,t.zoom);if(this.dispatchEvent(i),i.defaultPrevented)return;this.stopAll();const{duration:r,properties:o}=this.dataHelper.getAnimationProperties(t.speed,i.position,i.zoomLevel);return r?(this.state.animation=new zl({properties:o,duration:r,easing:t.easing||"inOutSine",onTick:t=>{e&&this.dynamics.position.setValue({yaw:t.yaw,pitch:t.pitch}),n&&this.dynamics.zoom.setValue(t.zoom)}}),this.state.animation.then((()=>{this.state.animation=null,this.resetIdleTimer()})),this.state.animation):(e&&this.rotate(i.position),n&&this.zoom(i.zoomLevel),new zl(null))}stopAnimation(){return this.state.animation?(this.state.animation.cancel(),this.state.animation):Promise.resolve()}resize(t){this.__setSize(t),this.autoSize()}__setSize(t){const e=t;["width","height"].forEach((n=>{t&&e[n]&&(/^[0-9.]+$/.test(e[n])&&(e[n]+="px"),this.parent.style[n]=e[n])}))}enterFullscreen(){this.isFullscreenEnabled()||nl(this.parent,ru.isIphone)}exitFullscreen(){this.isFullscreenEnabled()&&il(ru.isIphone)}toggleFullscreen(){this.isFullscreenEnabled()?this.exitFullscreen():this.enterFullscreen()}startKeyboardControl(){this.state.keyboardEnabled=!0}stopKeyboardControl(){this.state.keyboardEnabled=!1}createTooltip(t){return new Uu(this,t)}setCursor(t){this.state.cursorOverride=t,this.container.style.cursor=t||(this.config.mousemove?"move":"default")}observeObjects(t){this.state.objectsObservers[t]||(this.state.objectsObservers[t]=null)}unobserveObjects(t){delete this.state.objectsObservers[t]}stopAll(){return this.dispatchEvent(new Yc),this.disableIdleTimer(),this.stopAnimation()}}},9123:(t,e,n)=>{t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=16)}([function(t,e){t.exports=n(5715)},function(t,e){t.exports=n(1132)},function(t,e){t.exports=n(3693)},function(t,e){t.exports=n(7639)},function(t,e){t.exports=n(3950)},function(t,e){t.exports=n(8221)},function(t,e){t.exports=n(6020)},function(t,e){t.exports=n(7297)},function(t,e){t.exports=n(8059)},function(t,e){t.exports=n(3488)},function(t,e){t.exports=n(7334)},function(t,e){t.exports=n(3738)},function(t,e){t.exports=n(8090)},function(t,e){t.exports=n(5189)},function(t,e){t.exports=n(2893)},function(t,e,n){},function(t,e,n){"use strict";n.r(e);var i=n(0),r=n.n(i),o=n(1),a=n.n(o),s=n(2),l=n.n(s),c=n(3),u=n.n(c),d=n(4),h=n.n(d).a;function p(t){return function(e){if("mousedown"===e.type&&0===e.button){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];t.call.apply(t,[this,e].concat(i))}}}var f,m=n(5),v=n.n(m),g=n(6),b=n.n(g);function y(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}var _=[],w=100;function x(t){var e=t.$el,n=t.listener,i=t.lastWidth,r=t.lastHeight,o=e.offsetWidth,a=e.offsetHeight;i===o&&r===a||(t.lastWidth=o,t.lastHeight=a,n({width:o,height:a}))}function C(t,e){var n={$el:t,listener:e,lastWidth:null,lastHeight:null};return _.push(n),x(n),f=setInterval((function(){_.forEach(x)}),w),function(){y(_,n),_.length||(clearInterval(f),f=null)}}function S(t,e){var n=9===document.documentMode,i=!0,r=(n?C:b.a)(t,(function(){return i||e.apply(void 0,arguments)}));return i=!1,r}function E(t){var e=getComputedStyle(t),n=e.overflow,i=e.overflowX,r=e.overflowY;return/(auto|scroll|overlay)/.test(n+r+i)}function T(t,e){var n=function(t){for(var e=[],n=t.parentNode;n&&"BODY"!==n.nodeName&&n.nodeType===document.ELEMENT_NODE;)E(n)&&e.push(n),n=n.parentNode;return e.push(window),e}(t);return window.addEventListener("resize",e,{passive:!0}),n.forEach((function(t){t.addEventListener("scroll",e,{passive:!0})})),function(){window.removeEventListener("resize",e,{passive:!0}),n.forEach((function(t){t.removeEventListener("scroll",e,{passive:!0})}))}}function O(t){return t!=t}var k=n(7),A=n.n(k),P=n(8),M=n.n(P),L=n(9),D=n.n(L),R=n(10),I=n.n(R),j=function(){return Object.create(null)},N=n(11),F=n.n(N);function z(t){return null!=t&&"object"===F()(t)&&Object.getPrototypeOf(t)===Object.prototype}function B(t,e){if(z(e))for(var n=Object.keys(e),i=0,r=n.length;i<r;i++)o=t,a=n[i],z(s=e[n[i]])?(o[a]||(o[a]={}),B(o[a],s)):o[a]=s;var o,a,s;return t}var $=n(12),U=n.n($);function H(t,e){return-1!==t.indexOf(e)}function V(t,e,n){for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]}function Y(t,e){if(t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}var q=null,W="ALL_CHILDREN",G="ALL_DESCENDANTS",X="LEAF_CHILDREN",K="LEAF_DESCENDANTS",Z="LOAD_ROOT_OPTIONS",J="LOAD_CHILDREN_OPTIONS",Q="ASYNC_SEARCH",tt="ALL",et="BRANCH_PRIORITY",nt="LEAF_PRIORITY",it="ALL_WITH_INDETERMINATE",rt="ORDER_SELECTED",ot="LEVEL",at="INDEX",st=8,lt=13,ct=27,ut=35,dt=36,ht=37,pt=38,ft=39,mt=40,vt=46;function gt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function bt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?gt(n,!0).forEach((function(e){l()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gt(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function yt(t,e){for(var n=0;;){if(t.level<n)return-1;if(e.level<n)return 1;if(t.index[n]!==e.index[n])return t.index[n]-e.index[n];n++}}function _t(t,e,n){return t?u()(e,n):H(n,e)}function wt(t){return t.message||String(t)}var xt=0,Ct={provide:function(){return{instance:this}},props:{allowClearingDisabled:{type:Boolean,default:!1},allowSelectingDisabledDescendants:{type:Boolean,default:!1},alwaysOpen:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!1},async:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},autoLoadRootOptions:{type:Boolean,default:!0},autoDeselectAncestors:{type:Boolean,default:!1},autoDeselectDescendants:{type:Boolean,default:!1},autoSelectAncestors:{type:Boolean,default:!1},autoSelectDescendants:{type:Boolean,default:!1},backspaceRemoves:{type:Boolean,default:!0},beforeClearAll:{type:Function,default:I()(!0)},branchNodesFirst:{type:Boolean,default:!1},cacheOptions:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},clearAllText:{type:String,default:"Clear all"},clearOnSelect:{type:Boolean,default:!1},clearValueText:{type:String,default:"Clear value"},closeOnSelect:{type:Boolean,default:!0},defaultExpandLevel:{type:Number,default:0},defaultOptions:{default:!1},deleteRemoves:{type:Boolean,default:!0},delimiter:{type:String,default:","},flattenSearchResults:{type:Boolean,default:!1},disableBranchNodes:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disableFuzzyMatching:{type:Boolean,default:!1},flat:{type:Boolean,default:!1},instanceId:{default:function(){return"".concat(xt++,"$$")},type:[String,Number]},joinValues:{type:Boolean,default:!1},limit:{type:Number,default:1/0},limitText:{type:Function,default:function(t){return"and ".concat(t," more")}},loadingText:{type:String,default:"Loading..."},loadOptions:{type:Function},matchKeys:{type:Array,default:I()(["label"])},maxHeight:{type:Number,default:300},multiple:{type:Boolean,default:!1},name:{type:String},noChildrenText:{type:String,default:"No sub-options."},noOptionsText:{type:String,default:"No options available."},noResultsText:{type:String,default:"No results found..."},normalizer:{type:Function,default:D.a},openDirection:{type:String,default:"auto",validator:function(t){return H(["auto","top","bottom","above","below"],t)}},openOnClick:{type:Boolean,default:!0},openOnFocus:{type:Boolean,default:!1},options:{type:Array},placeholder:{type:String,default:"Select..."},required:{type:Boolean,default:!1},retryText:{type:String,default:"Retry?"},retryTitle:{type:String,default:"Click to retry"},searchable:{type:Boolean,default:!0},searchNested:{type:Boolean,default:!1},searchPromptText:{type:String,default:"Type to search..."},showCount:{type:Boolean,default:!1},showCountOf:{type:String,default:W,validator:function(t){return H([W,G,X,K],t)}},showCountOnSearch:null,sortValueBy:{type:String,default:rt,validator:function(t){return H([rt,ot,at],t)}},tabIndex:{type:Number,default:0},value:null,valueConsistsOf:{type:String,default:et,validator:function(t){return H([tt,et,nt,it],t)}},valueFormat:{type:String,default:"id"},zIndex:{type:[Number,String],default:999}},data:function(){return{trigger:{isFocused:!1,searchQuery:""},menu:{isOpen:!1,current:null,lastScrollPosition:0,placement:"bottom"},forest:{normalizedOptions:[],nodeMap:j(),checkedStateMap:j(),selectedNodeIds:this.extractCheckedNodeIdsFromValue(),selectedNodeMap:j()},rootOptionsStates:{isLoaded:!1,isLoading:!1,loadingError:""},localSearch:{active:!1,noResults:!0,countMap:j()},remoteSearch:j()}},computed:{selectedNodes:function(){return this.forest.selectedNodeIds.map(this.getNode)},internalValue:function(){var t,e=this;if(this.single||this.flat||this.disableBranchNodes||this.valueConsistsOf===tt)t=this.forest.selectedNodeIds.slice();else if(this.valueConsistsOf===et)t=this.forest.selectedNodeIds.filter((function(t){var n=e.getNode(t);return!!n.isRootNode||!e.isSelected(n.parentNode)}));else if(this.valueConsistsOf===nt)t=this.forest.selectedNodeIds.filter((function(t){var n=e.getNode(t);return!!n.isLeaf||0===n.children.length}));else if(this.valueConsistsOf===it){var n,i=[];t=this.forest.selectedNodeIds.slice(),this.selectedNodes.forEach((function(e){e.ancestors.forEach((function(e){H(i,e.id)||H(t,e.id)||i.push(e.id)}))})),(n=t).push.apply(n,i)}return this.sortValueBy===ot?t.sort((function(t,n){return function(t,e){return t.level===e.level?yt(t,e):t.level-e.level}(e.getNode(t),e.getNode(n))})):this.sortValueBy===at&&t.sort((function(t,n){return yt(e.getNode(t),e.getNode(n))})),t},hasValue:function(){return this.internalValue.length>0},single:function(){return!this.multiple},visibleOptionIds:function(){var t=this,e=[];return this.traverseAllNodesByIndex((function(n){if(t.localSearch.active&&!t.shouldOptionBeIncludedInSearchResult(n)||e.push(n.id),n.isBranch&&!t.shouldExpand(n))return!1})),e},hasVisibleOptions:function(){return 0!==this.visibleOptionIds.length},showCountOnSearchComputed:function(){return"boolean"==typeof this.showCountOnSearch?this.showCountOnSearch:this.showCount},hasBranchNodes:function(){return this.forest.normalizedOptions.some((function(t){return t.isBranch}))},shouldFlattenOptions:function(){return this.localSearch.active&&this.flattenSearchResults}},watch:{alwaysOpen:function(t){t?this.openMenu():this.closeMenu()},branchNodesFirst:function(){this.initialize()},disabled:function(t){t&&this.menu.isOpen?this.closeMenu():t||this.menu.isOpen||!this.alwaysOpen||this.openMenu()},flat:function(){this.initialize()},internalValue:function(t,e){Y(t,e)&&this.$emit("input",this.getValue(),this.getInstanceId())},matchKeys:function(){this.initialize()},multiple:function(t){t&&this.buildForestState()},options:{handler:function(){this.async||(this.initialize(),this.rootOptionsStates.isLoaded=Array.isArray(this.options))},deep:!0,immediate:!0},"trigger.searchQuery":function(){this.async?this.handleRemoteSearch():this.handleLocalSearch(),this.$emit("search-change",this.trigger.searchQuery,this.getInstanceId())},value:function(){var t=this.extractCheckedNodeIdsFromValue();Y(t,this.internalValue)&&this.fixSelectedNodeIds(t)}},methods:{verifyProps:function(){var t=this;if(h((function(){return!t.async||t.searchable}),(function(){return'For async search mode, the value of "searchable" prop must be true.'})),null!=this.options||this.loadOptions||h((function(){return!1}),(function(){return'Are you meant to dynamically load options? You need to use "loadOptions" prop.'})),this.flat&&h((function(){return t.multiple}),(function(){return'You are using flat mode. But you forgot to add "multiple=true"?'})),!this.flat){["autoSelectAncestors","autoSelectDescendants","autoDeselectAncestors","autoDeselectDescendants"].forEach((function(e){h((function(){return!t[e]}),(function(){return'"'.concat(e,'" only applies to flat mode.')}))}))}},resetFlags:function(){this._blurOnSelect=!1},initialize:function(){var t=this.async?this.getRemoteSearchEntry().options:this.options;if(Array.isArray(t)){var e=this.forest.nodeMap;this.forest.nodeMap=j(),this.keepDataOfSelectedNodes(e),this.forest.normalizedOptions=this.normalize(q,t,e),this.fixSelectedNodeIds(this.internalValue)}else this.forest.normalizedOptions=[]},getInstanceId:function(){return null==this.instanceId?this.id:this.instanceId},getValue:function(){var t=this;if("id"===this.valueFormat)return this.multiple?this.internalValue.slice():this.internalValue[0];var e=this.internalValue.map((function(e){return t.getNode(e).raw}));return this.multiple?e:e[0]},getNode:function(t){return h((function(){return null!=t}),(function(){return"Invalid node id: ".concat(t)})),null==t?null:t in this.forest.nodeMap?this.forest.nodeMap[t]:this.createFallbackNode(t)},createFallbackNode:function(t){var e=this.extractNodeFromValue(t),n={id:t,label:this.enhancedNormalizer(e).label||"".concat(t," (unknown)"),ancestors:[],parentNode:q,isFallbackNode:!0,isRootNode:!0,isLeaf:!0,isBranch:!1,isDisabled:!1,isNew:!1,index:[-1],level:0,raw:e};return this.$set(this.forest.nodeMap,t,n)},extractCheckedNodeIdsFromValue:function(){var t=this;return null==this.value?[]:"id"===this.valueFormat?this.multiple?this.value.slice():[this.value]:(this.multiple?this.value:[this.value]).map((function(e){return t.enhancedNormalizer(e)})).map((function(t){return t.id}))},extractNodeFromValue:function(t){var e=this,n={id:t};return"id"===this.valueFormat?n:V(this.multiple?Array.isArray(this.value)?this.value:[]:this.value?[this.value]:[],(function(n){return n&&e.enhancedNormalizer(n).id===t}))||n},fixSelectedNodeIds:function(t){var e=this,n=[];if(this.single||this.flat||this.disableBranchNodes||this.valueConsistsOf===tt)n=t;else if(this.valueConsistsOf===et)t.forEach((function(t){n.push(t);var i=e.getNode(t);i.isBranch&&e.traverseDescendantsBFS(i,(function(t){n.push(t.id)}))}));else if(this.valueConsistsOf===nt)for(var i=j(),r=t.slice();r.length;){var o=r.shift(),a=this.getNode(o);n.push(o),a.isRootNode||(a.parentNode.id in i||(i[a.parentNode.id]=a.parentNode.children.length),0==--i[a.parentNode.id]&&r.push(a.parentNode.id))}else if(this.valueConsistsOf===it)for(var s=j(),l=t.filter((function(t){var n=e.getNode(t);return n.isLeaf||0===n.children.length}));l.length;){var c=l.shift(),u=this.getNode(c);n.push(c),u.isRootNode||(u.parentNode.id in s||(s[u.parentNode.id]=u.parentNode.children.length),0==--s[u.parentNode.id]&&l.push(u.parentNode.id))}Y(this.forest.selectedNodeIds,n)&&(this.forest.selectedNodeIds=n),this.buildForestState()},keepDataOfSelectedNodes:function(t){var e=this;this.forest.selectedNodeIds.forEach((function(n){if(t[n]){var i=bt({},t[n],{isFallbackNode:!0});e.$set(e.forest.nodeMap,n,i)}}))},isSelected:function(t){return!0===this.forest.selectedNodeMap[t.id]},traverseDescendantsBFS:function(t,e){if(t.isBranch)for(var n=t.children.slice();n.length;){var i=n[0];i.isBranch&&n.push.apply(n,a()(i.children)),e(i),n.shift()}},traverseDescendantsDFS:function(t,e){var n=this;t.isBranch&&t.children.forEach((function(t){n.traverseDescendantsDFS(t,e),e(t)}))},traverseAllNodesDFS:function(t){var e=this;this.forest.normalizedOptions.forEach((function(n){e.traverseDescendantsDFS(n,t),t(n)}))},traverseAllNodesByIndex:function(t){!function e(n){n.children.forEach((function(n){!1!==t(n)&&n.isBranch&&e(n)}))}({children:this.forest.normalizedOptions})},toggleClickOutsideEvent:function(t){t?document.addEventListener("mousedown",this.handleClickOutside,!1):document.removeEventListener("mousedown",this.handleClickOutside,!1)},getValueContainer:function(){return this.$refs.control.$refs["value-container"]},getInput:function(){return this.getValueContainer().$refs.input},focusInput:function(){this.getInput().focus()},blurInput:function(){this.getInput().blur()},handleMouseDown:p((function(t){(t.preventDefault(),t.stopPropagation(),this.disabled)||(this.getValueContainer().$el.contains(t.target)&&!this.menu.isOpen&&(this.openOnClick||this.trigger.isFocused)&&this.openMenu(),this._blurOnSelect?this.blurInput():this.focusInput(),this.resetFlags())})),handleClickOutside:function(t){this.$refs.wrapper&&!this.$refs.wrapper.contains(t.target)&&(this.blurInput(),this.closeMenu())},handleLocalSearch:function(){var t=this,e=this.trigger.searchQuery,n=function(){return t.resetHighlightedOptionWhenNecessary(!0)};if(!e)return this.localSearch.active=!1,n();this.localSearch.active=!0,this.localSearch.noResults=!0,this.traverseAllNodesDFS((function(e){var n;e.isBranch&&(e.isExpandedOnSearch=!1,e.showAllChildrenOnSearch=!1,e.isMatched=!1,e.hasMatchedDescendants=!1,t.$set(t.localSearch.countMap,e.id,(n={},l()(n,W,0),l()(n,G,0),l()(n,X,0),l()(n,K,0),n)))}));var i=e.trim().toLocaleLowerCase(),r=i.replace(/\s+/g," ").split(" ");this.traverseAllNodesDFS((function(e){t.searchNested&&r.length>1?e.isMatched=r.every((function(t){return _t(!1,t,e.nestedSearchLabel)})):e.isMatched=t.matchKeys.some((function(n){return _t(!t.disableFuzzyMatching,i,e.lowerCased[n])})),e.isMatched&&(t.localSearch.noResults=!1,e.ancestors.forEach((function(e){return t.localSearch.countMap[e.id][G]++})),e.isLeaf&&e.ancestors.forEach((function(e){return t.localSearch.countMap[e.id][K]++})),e.parentNode!==q&&(t.localSearch.countMap[e.parentNode.id][W]+=1,e.isLeaf&&(t.localSearch.countMap[e.parentNode.id][X]+=1))),(e.isMatched||e.isBranch&&e.isExpandedOnSearch)&&e.parentNode!==q&&(e.parentNode.isExpandedOnSearch=!0,e.parentNode.hasMatchedDescendants=!0)})),n()},handleRemoteSearch:function(){var t=this,e=this.trigger.searchQuery,n=this.getRemoteSearchEntry(),i=function(){t.initialize(),t.resetHighlightedOptionWhenNecessary(!0)};if((""===e||this.cacheOptions)&&n.isLoaded)return i();this.callLoadOptionsProp({action:Q,args:{searchQuery:e},isPending:function(){return n.isLoading},start:function(){n.isLoading=!0,n.isLoaded=!1,n.loadingError=""},succeed:function(r){n.isLoaded=!0,n.options=r,t.trigger.searchQuery===e&&i()},fail:function(t){n.loadingError=wt(t)},end:function(){n.isLoading=!1}})},getRemoteSearchEntry:function(){var t=this,e=this.trigger.searchQuery,n=this.remoteSearch[e]||bt({},{isLoaded:!1,isLoading:!1,loadingError:""},{options:[]});if(this.$watch((function(){return n.options}),(function(){t.trigger.searchQuery===e&&t.initialize()}),{deep:!0}),""===e){if(Array.isArray(this.defaultOptions))return n.options=this.defaultOptions,n.isLoaded=!0,n;if(!0!==this.defaultOptions)return n.isLoaded=!0,n}return this.remoteSearch[e]||this.$set(this.remoteSearch,e,n),n},shouldExpand:function(t){return this.localSearch.active?t.isExpandedOnSearch:t.isExpanded},shouldOptionBeIncludedInSearchResult:function(t){return!!t.isMatched||(!(!t.isBranch||!t.hasMatchedDescendants||this.flattenSearchResults)||!(t.isRootNode||!t.parentNode.showAllChildrenOnSearch))},shouldShowOptionInMenu:function(t){return!(this.localSearch.active&&!this.shouldOptionBeIncludedInSearchResult(t))},getControl:function(){return this.$refs.control.$el},getMenu:function(){var t=(this.appendToBody?this.$refs.portal.portalTarget:this).$refs.menu.$refs.menu;return t&&"#comment"!==t.nodeName?t:null},setCurrentHighlightedOption:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.menu.current;if(null!=i&&i in this.forest.nodeMap&&(this.forest.nodeMap[i].isHighlighted=!1),this.menu.current=t.id,t.isHighlighted=!0,this.menu.isOpen&&n){var r=function(){var n,i,r,o,a,s=e.getMenu(),l=s.querySelector('.vue-treeselect__option[data-id="'.concat(t.id,'"]'));l&&(i=l,r=(n=s).getBoundingClientRect(),o=i.getBoundingClientRect(),a=i.offsetHeight/3,o.bottom+a>r.bottom?n.scrollTop=Math.min(i.offsetTop+i.clientHeight-n.offsetHeight+a,n.scrollHeight):o.top-a<r.top&&(n.scrollTop=Math.max(i.offsetTop-a,0)))};this.getMenu()?r():this.$nextTick(r)}},resetHighlightedOptionWhenNecessary:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.menu.current;!t&&null!=e&&e in this.forest.nodeMap&&this.shouldShowOptionInMenu(this.getNode(e))||this.highlightFirstOption()},highlightFirstOption:function(){if(this.hasVisibleOptions){var t=this.visibleOptionIds[0];this.setCurrentHighlightedOption(this.getNode(t))}},highlightPrevOption:function(){if(this.hasVisibleOptions){var t=this.visibleOptionIds.indexOf(this.menu.current)-1;if(-1===t)return this.highlightLastOption();this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[t]))}},highlightNextOption:function(){if(this.hasVisibleOptions){var t=this.visibleOptionIds.indexOf(this.menu.current)+1;if(t===this.visibleOptionIds.length)return this.highlightFirstOption();this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[t]))}},highlightLastOption:function(){if(this.hasVisibleOptions){var t=U()(this.visibleOptionIds);this.setCurrentHighlightedOption(this.getNode(t))}},resetSearchQuery:function(){this.trigger.searchQuery=""},closeMenu:function(){!this.menu.isOpen||!this.disabled&&this.alwaysOpen||(this.saveMenuScrollPosition(),this.menu.isOpen=!1,this.toggleClickOutsideEvent(!1),this.resetSearchQuery(),this.$emit("close",this.getValue(),this.getInstanceId()))},openMenu:function(){this.disabled||this.menu.isOpen||(this.menu.isOpen=!0,this.$nextTick(this.resetHighlightedOptionWhenNecessary),this.$nextTick(this.restoreMenuScrollPosition),this.options||this.async||this.loadRootOptions(),this.toggleClickOutsideEvent(!0),this.$emit("open",this.getInstanceId()))},toggleMenu:function(){this.menu.isOpen?this.closeMenu():this.openMenu()},toggleExpanded:function(t){var e;this.localSearch.active?(e=t.isExpandedOnSearch=!t.isExpandedOnSearch)&&(t.showAllChildrenOnSearch=!0):e=t.isExpanded=!t.isExpanded,e&&!t.childrenStates.isLoaded&&this.loadChildrenOptions(t)},buildForestState:function(){var t=this,e=j();this.forest.selectedNodeIds.forEach((function(t){e[t]=!0})),this.forest.selectedNodeMap=e;var n=j();this.multiple&&(this.traverseAllNodesByIndex((function(t){n[t.id]=0})),this.selectedNodes.forEach((function(e){n[e.id]=2,t.flat||t.disableBranchNodes||e.ancestors.forEach((function(e){t.isSelected(e)||(n[e.id]=1)}))}))),this.forest.checkedStateMap=n},enhancedNormalizer:function(t){return bt({},t,{},this.normalizer(t,this.getInstanceId()))},normalize:function(t,e,n){var i=this,o=e.map((function(t){return[i.enhancedNormalizer(t),t]})).map((function(e,o){var a=r()(e,2),s=a[0],c=a[1];i.checkDuplication(s),i.verifyNodeShape(s);var u=s.id,d=s.label,p=s.children,f=s.isDefaultExpanded,m=t===q,v=m?0:t.level+1,g=Array.isArray(p)||null===p,b=!g,y=!!s.isDisabled||!i.flat&&!m&&t.isDisabled,_=!!s.isNew,w=i.matchKeys.reduce((function(t,e){return bt({},t,l()({},e,(n=s[e],"string"==typeof n?n:"number"!=typeof n||O(n)?"":n+"").toLocaleLowerCase()));var n}),{}),x=m?w.label:t.nestedSearchLabel+" "+w.label,C=i.$set(i.forest.nodeMap,u,j());if(i.$set(C,"id",u),i.$set(C,"label",d),i.$set(C,"level",v),i.$set(C,"ancestors",m?[]:[t].concat(t.ancestors)),i.$set(C,"index",(m?[]:t.index).concat(o)),i.$set(C,"parentNode",t),i.$set(C,"lowerCased",w),i.$set(C,"nestedSearchLabel",x),i.$set(C,"isDisabled",y),i.$set(C,"isNew",_),i.$set(C,"isMatched",!1),i.$set(C,"isHighlighted",!1),i.$set(C,"isBranch",g),i.$set(C,"isLeaf",b),i.$set(C,"isRootNode",m),i.$set(C,"raw",c),g){var S,E=Array.isArray(p);i.$set(C,"childrenStates",bt({},{isLoaded:!1,isLoading:!1,loadingError:""},{isLoaded:E})),i.$set(C,"isExpanded","boolean"==typeof f?f:v<i.defaultExpandLevel),i.$set(C,"hasMatchedDescendants",!1),i.$set(C,"hasDisabledDescendants",!1),i.$set(C,"isExpandedOnSearch",!1),i.$set(C,"showAllChildrenOnSearch",!1),i.$set(C,"count",(S={},l()(S,W,0),l()(S,G,0),l()(S,X,0),l()(S,K,0),S)),i.$set(C,"children",E?i.normalize(C,p,n):[]),!0===f&&C.ancestors.forEach((function(t){t.isExpanded=!0})),E||"function"==typeof i.loadOptions?!E&&C.isExpanded&&i.loadChildrenOptions(C):h((function(){return!1}),(function(){return'Unloaded branch node detected. "loadOptions" prop is required to load its children.'}))}if(C.ancestors.forEach((function(t){return t.count[G]++})),b&&C.ancestors.forEach((function(t){return t.count[K]++})),m||(t.count[W]+=1,b&&(t.count[X]+=1),y&&(t.hasDisabledDescendants=!0)),n&&n[u]){var T=n[u];C.isMatched=T.isMatched,C.showAllChildrenOnSearch=T.showAllChildrenOnSearch,C.isHighlighted=T.isHighlighted,T.isBranch&&C.isBranch&&(C.isExpanded=T.isExpanded,C.isExpandedOnSearch=T.isExpandedOnSearch,T.childrenStates.isLoaded&&!C.childrenStates.isLoaded?C.isExpanded=!1:C.childrenStates=bt({},T.childrenStates))}return C}));if(this.branchNodesFirst){var a=o.filter((function(t){return t.isBranch})),s=o.filter((function(t){return t.isLeaf}));o=a.concat(s)}return o},loadRootOptions:function(){var t=this;this.callLoadOptionsProp({action:Z,isPending:function(){return t.rootOptionsStates.isLoading},start:function(){t.rootOptionsStates.isLoading=!0,t.rootOptionsStates.loadingError=""},succeed:function(){t.rootOptionsStates.isLoaded=!0,t.$nextTick((function(){t.resetHighlightedOptionWhenNecessary(!0)}))},fail:function(e){t.rootOptionsStates.loadingError=wt(e)},end:function(){t.rootOptionsStates.isLoading=!1}})},loadChildrenOptions:function(t){var e=this,n=t.id,i=t.raw;this.callLoadOptionsProp({action:J,args:{parentNode:i},isPending:function(){return e.getNode(n).childrenStates.isLoading},start:function(){e.getNode(n).childrenStates.isLoading=!0,e.getNode(n).childrenStates.loadingError=""},succeed:function(){e.getNode(n).childrenStates.isLoaded=!0},fail:function(t){e.getNode(n).childrenStates.loadingError=wt(t)},end:function(){e.getNode(n).childrenStates.isLoading=!1}})},callLoadOptionsProp:function(t){var e=t.action,n=t.args,i=t.isPending,r=t.start,o=t.succeed,a=t.fail,s=t.end;if(this.loadOptions&&!i()){r();var l=M()((function(t,e){t?a(t):o(e),s()})),c=this.loadOptions(bt({id:this.getInstanceId(),instanceId:this.getInstanceId(),action:e},n,{callback:l}));A()(c)&&c.then((function(){l()}),(function(t){l(t)})).catch((function(t){console.error(t)}))}},checkDuplication:function(t){var e=this;h((function(){return!(t.id in e.forest.nodeMap&&!e.forest.nodeMap[t.id].isFallbackNode)}),(function(){return"Detected duplicate presence of node id ".concat(JSON.stringify(t.id),". ")+'Their labels are "'.concat(e.forest.nodeMap[t.id].label,'" and "').concat(t.label,'" respectively.')}))},verifyNodeShape:function(t){h((function(){return!(void 0===t.children&&!0===t.isBranch)}),(function(){return"Are you meant to declare an unloaded branch node? `isBranch: true` is no longer supported, please use `children: null` instead."}))},select:function(t){if(!this.disabled&&!t.isDisabled){this.single&&this.clear();var e=this.multiple&&!this.flat?0===this.forest.checkedStateMap[t.id]:!this.isSelected(t);e?this._selectNode(t):this._deselectNode(t),this.buildForestState(),e?this.$emit("select",t.raw,this.getInstanceId()):this.$emit("deselect",t.raw,this.getInstanceId()),this.localSearch.active&&e&&(this.single||this.clearOnSelect)&&this.resetSearchQuery(),this.single&&this.closeOnSelect&&(this.closeMenu(),this.searchable&&(this._blurOnSelect=!0))}},clear:function(){var t=this;this.hasValue&&(this.single||this.allowClearingDisabled?this.forest.selectedNodeIds=[]:this.forest.selectedNodeIds=this.forest.selectedNodeIds.filter((function(e){return t.getNode(e).isDisabled})),this.buildForestState())},_selectNode:function(t){var e=this;if(this.single||this.disableBranchNodes)return this.addValue(t);if(this.flat)return this.addValue(t),void(this.autoSelectAncestors?t.ancestors.forEach((function(t){e.isSelected(t)||t.isDisabled||e.addValue(t)})):this.autoSelectDescendants&&this.traverseDescendantsBFS(t,(function(t){e.isSelected(t)||t.isDisabled||e.addValue(t)})));var n=t.isLeaf||!t.hasDisabledDescendants||this.allowSelectingDisabledDescendants;if(n&&this.addValue(t),t.isBranch&&this.traverseDescendantsBFS(t,(function(t){t.isDisabled&&!e.allowSelectingDisabledDescendants||e.addValue(t)})),n)for(var i=t;(i=i.parentNode)!==q&&i.children.every(this.isSelected);)this.addValue(i)},_deselectNode:function(t){var e=this;if(this.disableBranchNodes)return this.removeValue(t);if(this.flat)return this.removeValue(t),void(this.autoDeselectAncestors?t.ancestors.forEach((function(t){e.isSelected(t)&&!t.isDisabled&&e.removeValue(t)})):this.autoDeselectDescendants&&this.traverseDescendantsBFS(t,(function(t){e.isSelected(t)&&!t.isDisabled&&e.removeValue(t)})));var n=!1;if(t.isBranch&&this.traverseDescendantsDFS(t,(function(t){t.isDisabled&&!e.allowSelectingDisabledDescendants||(e.removeValue(t),n=!0)})),t.isLeaf||n||0===t.children.length){this.removeValue(t);for(var i=t;(i=i.parentNode)!==q&&this.isSelected(i);)this.removeValue(i)}},addValue:function(t){this.forest.selectedNodeIds.push(t.id),this.forest.selectedNodeMap[t.id]=!0},removeValue:function(t){y(this.forest.selectedNodeIds,t.id),delete this.forest.selectedNodeMap[t.id]},removeLastValue:function(){if(this.hasValue){if(this.single)return this.clear();var t=U()(this.internalValue),e=this.getNode(t);this.select(e)}},saveMenuScrollPosition:function(){var t=this.getMenu();t&&(this.menu.lastScrollPosition=t.scrollTop)},restoreMenuScrollPosition:function(){var t=this.getMenu();t&&(t.scrollTop=this.menu.lastScrollPosition)}},created:function(){this.verifyProps(),this.resetFlags()},mounted:function(){this.autoFocus&&this.focusInput(),this.options||this.async||!this.autoLoadRootOptions||this.loadRootOptions(),this.alwaysOpen&&this.openMenu(),this.async&&this.defaultOptions&&this.handleRemoteSearch()},destroyed:function(){this.toggleClickOutsideEvent(!1)}};function St(t){return"string"==typeof t?t:null==t||O(t)?"":JSON.stringify(t)}var Et={name:"vue-treeselect--hidden-fields",inject:["instance"],functional:!0,render:function(t,e){var n=arguments[0],i=e.injections.instance;if(!i.name||i.disabled||!i.hasValue)return null;var r=i.internalValue.map(St);return i.multiple&&i.joinValues&&(r=[r.join(i.delimiter)]),r.map((function(t,e){return n("input",{attrs:{type:"hidden",name:i.name},domProps:{value:t},key:"hidden-field-"+e})}))}};function Tt(t,e,n,i,r,o,a,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}var Ot=Tt(Et,undefined,undefined,!1,null,null,null);Ot.options.__file="src/components/HiddenFields.vue";var kt=Ot.exports,At=n(13),Pt=n.n(At),Mt=[lt,ut,dt,ht,pt,ft,mt],Lt=Tt({name:"vue-treeselect--input",inject:["instance"],data:function(){return{inputWidth:5,value:""}},computed:{needAutoSize:function(){var t=this.instance;return t.searchable&&!t.disabled&&t.multiple},inputStyle:function(){return{width:this.needAutoSize?"".concat(this.inputWidth,"px"):null}}},watch:{"instance.trigger.searchQuery":function(t){this.value=t},value:function(){this.needAutoSize&&this.$nextTick(this.updateInputWidth)}},created:function(){this.debouncedCallback=v()(this.updateSearchQuery,200,{leading:!0,trailing:!0})},methods:{clear:function(){this.onInput({target:{value:""}})},focus:function(){this.instance.disabled||this.$refs.input&&this.$refs.input.focus()},blur:function(){this.$refs.input&&this.$refs.input.blur()},onFocus:function(){var t=this.instance;t.trigger.isFocused=!0,t.openOnFocus&&t.openMenu()},onBlur:function(){var t=this.instance,e=t.getMenu();if(e&&document.activeElement===e)return this.focus();t.trigger.isFocused=!1,t.closeMenu()},onInput:function(t){var e=t.target.value;this.value=e,e?this.debouncedCallback():(this.debouncedCallback.cancel(),this.updateSearchQuery())},onKeyDown:function(t){var e=this.instance,n="which"in t?t.which:t.keyCode;if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)){if(!e.menu.isOpen&&H(Mt,n))return t.preventDefault(),e.openMenu();switch(n){case st:e.backspaceRemoves&&!this.value.length&&e.removeLastValue();break;case lt:if(t.preventDefault(),null===e.menu.current)return;var i=e.getNode(e.menu.current);if(i.isBranch&&e.disableBranchNodes)return;e.select(i);break;case ct:this.value.length?this.clear():e.menu.isOpen&&e.closeMenu();break;case ut:t.preventDefault(),e.highlightLastOption();break;case dt:t.preventDefault(),e.highlightFirstOption();break;case ht:var r=e.getNode(e.menu.current);r.isBranch&&e.shouldExpand(r)?(t.preventDefault(),e.toggleExpanded(r)):!r.isRootNode&&(r.isLeaf||r.isBranch&&!e.shouldExpand(r))&&(t.preventDefault(),e.setCurrentHighlightedOption(r.parentNode));break;case pt:t.preventDefault(),e.highlightPrevOption();break;case ft:var o=e.getNode(e.menu.current);o.isBranch&&!e.shouldExpand(o)&&(t.preventDefault(),e.toggleExpanded(o));break;case mt:t.preventDefault(),e.highlightNextOption();break;case vt:e.deleteRemoves&&!this.value.length&&e.removeLastValue();break;default:e.openMenu()}}},onMouseDown:function(t){this.value.length&&t.stopPropagation()},renderInputContainer:function(){var t=this.$createElement,e=this.instance,n={},i=[];return e.searchable&&!e.disabled&&(i.push(this.renderInput()),this.needAutoSize&&i.push(this.renderSizer())),e.searchable||B(n,{on:{focus:this.onFocus,blur:this.onBlur,keydown:this.onKeyDown},ref:"input"}),e.searchable||e.disabled||B(n,{attrs:{tabIndex:e.tabIndex}}),t("div",Pt()([{class:"vue-treeselect__input-container"},n]),[i])},renderInput:function(){var t=this.$createElement,e=this.instance;return t("input",{ref:"input",class:"vue-treeselect__input",attrs:{type:"text",autocomplete:"off",tabIndex:e.tabIndex,required:e.required&&!e.hasValue},domProps:{value:this.value},style:this.inputStyle,on:{focus:this.onFocus,input:this.onInput,blur:this.onBlur,keydown:this.onKeyDown,mousedown:this.onMouseDown}})},renderSizer:function(){return(0,this.$createElement)("div",{ref:"sizer",class:"vue-treeselect__sizer"},[this.value])},updateInputWidth:function(){this.inputWidth=Math.max(5,this.$refs.sizer.scrollWidth+15)},updateSearchQuery:function(){this.instance.trigger.searchQuery=this.value}},render:function(){return this.renderInputContainer()}},undefined,undefined,!1,null,null,null);Lt.options.__file="src/components/Input.vue";var Dt=Lt.exports,Rt={name:"vue-treeselect--placeholder",inject:["instance"],render:function(){var t=arguments[0],e=this.instance;return t("div",{class:{"vue-treeselect__placeholder":!0,"vue-treeselect-helper-zoom-effect-off":!0,"vue-treeselect-helper-hide":e.hasValue||e.trigger.searchQuery}},[e.placeholder])}},It=Tt(Rt,undefined,undefined,!1,null,null,null);It.options.__file="src/components/Placeholder.vue";var jt=It.exports,Nt={name:"vue-treeselect--single-value",inject:["instance"],methods:{renderSingleValueLabel:function(){var t=this.instance,e=t.selectedNodes[0],n=t.$scopedSlots["value-label"];return n?n({node:e}):e.label}},render:function(){var t=arguments[0],e=this.instance;return(0,this.$parent.renderValueContainer)([e.hasValue&&!e.trigger.searchQuery&&t("div",{class:"vue-treeselect__single-value"},[this.renderSingleValueLabel()]),t(jt),t(Dt,{ref:"input"})])}},Ft=Tt(Nt,undefined,undefined,!1,null,null,null);Ft.options.__file="src/components/SingleValue.vue";var zt=Ft.exports,Bt=function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 348.333 348.333"}},[e("path",{attrs:{d:"M336.559 68.611L231.016 174.165l105.543 105.549c15.699 15.705 15.699 41.145 0 56.85-7.844 7.844-18.128 11.769-28.407 11.769-10.296 0-20.581-3.919-28.419-11.769L174.167 231.003 68.609 336.563c-7.843 7.844-18.128 11.769-28.416 11.769-10.285 0-20.563-3.919-28.413-11.769-15.699-15.698-15.699-41.139 0-56.85l105.54-105.549L11.774 68.611c-15.699-15.699-15.699-41.145 0-56.844 15.696-15.687 41.127-15.687 56.829 0l105.563 105.554L279.721 11.767c15.705-15.687 41.139-15.687 56.832 0 15.705 15.699 15.705 41.145.006 56.844z"}})])};Bt._withStripped=!0;var $t=Tt({name:"vue-treeselect--x"},Bt,[],!1,null,null,null);$t.options.__file="src/components/icons/Delete.vue";var Ut=$t.exports,Ht={name:"vue-treeselect--multi-value-item",inject:["instance"],props:{node:{type:Object,required:!0}},methods:{handleMouseDown:p((function(){var t=this.instance,e=this.node;t.select(e)}))},render:function(){var t=arguments[0],e=this.instance,n=this.node,i={"vue-treeselect__multi-value-item":!0,"vue-treeselect__multi-value-item-disabled":n.isDisabled,"vue-treeselect__multi-value-item-new":n.isNew},r=e.$scopedSlots["value-label"],o=r?r({node:n}):n.label;return t("div",{class:"vue-treeselect__multi-value-item-container"},[t("div",{class:i,on:{mousedown:this.handleMouseDown}},[t("span",{class:"vue-treeselect__multi-value-label"},[o]),t("span",{class:"vue-treeselect__icon vue-treeselect__value-remove"},[t(Ut)])])])}},Vt=Tt(Ht,undefined,undefined,!1,null,null,null);Vt.options.__file="src/components/MultiValueItem.vue";var Yt=Vt.exports,qt={name:"vue-treeselect--multi-value",inject:["instance"],methods:{renderMultiValueItems:function(){var t=this.$createElement,e=this.instance;return e.internalValue.slice(0,e.limit).map(e.getNode).map((function(e){return t(Yt,{key:"multi-value-item-".concat(e.id),attrs:{node:e}})}))},renderExceedLimitTip:function(){var t=this.$createElement,e=this.instance,n=e.internalValue.length-e.limit;return n<=0?null:t("div",{class:"vue-treeselect__limit-tip vue-treeselect-helper-zoom-effect-off",key:"exceed-limit-tip"},[t("span",{class:"vue-treeselect__limit-tip-text"},[e.limitText(n)])])}},render:function(){var t=arguments[0];return(0,this.$parent.renderValueContainer)(t("transition-group",Pt()([{class:"vue-treeselect__multi-value"},{props:{tag:"div",name:"vue-treeselect__multi-value-item--transition",appear:!0}}]),[this.renderMultiValueItems(),this.renderExceedLimitTip(),t(jt,{key:"placeholder"}),t(Dt,{ref:"input",key:"input"})]))}},Wt=Tt(qt,undefined,undefined,!1,null,null,null);Wt.options.__file="src/components/MultiValue.vue";var Gt=Wt.exports,Xt=function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 292.362 292.362"}},[e("path",{attrs:{d:"M286.935 69.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952 0-9.233 1.807-12.85 5.424C1.807 72.998 0 77.279 0 82.228c0 4.948 1.807 9.229 5.424 12.847l127.907 127.907c3.621 3.617 7.902 5.428 12.85 5.428s9.233-1.811 12.847-5.428L286.935 95.074c3.613-3.617 5.427-7.898 5.427-12.847 0-4.948-1.814-9.229-5.427-12.85z"}})])};Xt._withStripped=!0;var Kt=Tt({name:"vue-treeselect--arrow"},Xt,[],!1,null,null,null);Kt.options.__file="src/components/icons/Arrow.vue";var Zt=Kt.exports,Jt={name:"vue-treeselect--control",inject:["instance"],computed:{shouldShowX:function(){var t=this.instance;return t.clearable&&!t.disabled&&t.hasValue&&(this.hasUndisabledValue||t.allowClearingDisabled)},shouldShowArrow:function(){var t=this.instance;return!t.alwaysOpen||!t.menu.isOpen},hasUndisabledValue:function(){var t=this.instance;return t.hasValue&&t.internalValue.some((function(e){return!t.getNode(e).isDisabled}))}},methods:{renderX:function(){var t=this.$createElement,e=this.instance,n=e.multiple?e.clearAllText:e.clearValueText;return this.shouldShowX?t("div",{class:"vue-treeselect__x-container",attrs:{title:n},on:{mousedown:this.handleMouseDownOnX}},[t(Ut,{class:"vue-treeselect__x"})]):null},renderArrow:function(){var t=this.$createElement,e={"vue-treeselect__control-arrow":!0,"vue-treeselect__control-arrow--rotated":this.instance.menu.isOpen};return this.shouldShowArrow?t("div",{class:"vue-treeselect__control-arrow-container",on:{mousedown:this.handleMouseDownOnArrow}},[t(Zt,{class:e})]):null},handleMouseDownOnX:p((function(t){t.stopPropagation(),t.preventDefault();var e=this.instance,n=e.beforeClearAll(),i=function(t){t&&e.clear()};A()(n)?n.then(i):setTimeout((function(){return i(n)}),0)})),handleMouseDownOnArrow:p((function(t){t.preventDefault(),t.stopPropagation();var e=this.instance;e.focusInput(),e.toggleMenu()})),renderValueContainer:function(t){return(0,this.$createElement)("div",{class:"vue-treeselect__value-container"},[t])}},render:function(){var t=arguments[0],e=this.instance,n=e.single?zt:Gt;return t("div",{class:"vue-treeselect__control",on:{mousedown:e.handleMouseDown}},[t(n,{ref:"value-container"}),this.renderX(),this.renderArrow()])}},Qt=Tt(Jt,undefined,undefined,!1,null,null,null);Qt.options.__file="src/components/Control.vue";var te=Qt.exports,ee={name:"vue-treeselect--tip",functional:!0,props:{type:{type:String,required:!0},icon:{type:String,required:!0}},render:function(t,e){var n=arguments[0],i=e.props,r=e.children;return n("div",{class:"vue-treeselect__tip vue-treeselect__".concat(i.type,"-tip")},[n("div",{class:"vue-treeselect__icon-container"},[n("span",{class:"vue-treeselect__icon-".concat(i.icon)})]),n("span",{class:"vue-treeselect__tip-text vue-treeselect__".concat(i.type,"-tip-text")},[r])])}},ne=Tt(ee,undefined,undefined,!1,null,null,null);ne.options.__file="src/components/Tip.vue";var ie,re,oe,ae=ne.exports,se={name:"vue-treeselect--option",inject:["instance"],props:{node:{type:Object,required:!0}},computed:{shouldExpand:function(){var t=this.instance,e=this.node;return e.isBranch&&t.shouldExpand(e)},shouldShow:function(){var t=this.instance,e=this.node;return t.shouldShowOptionInMenu(e)}},methods:{renderOption:function(){var t=this.$createElement,e=this.instance,n=this.node;return t("div",{class:{"vue-treeselect__option":!0,"vue-treeselect__option--disabled":n.isDisabled,"vue-treeselect__option--selected":e.isSelected(n),"vue-treeselect__option--highlight":n.isHighlighted,"vue-treeselect__option--matched":e.localSearch.active&&n.isMatched,"vue-treeselect__option--hide":!this.shouldShow},on:{mouseenter:this.handleMouseEnterOption},attrs:{"data-id":n.id}},[this.renderArrow(),this.renderLabelContainer([this.renderCheckboxContainer([this.renderCheckbox()]),this.renderLabel()])])},renderSubOptionsList:function(){var t=this.$createElement;return this.shouldExpand?t("div",{class:"vue-treeselect__list"},[this.renderSubOptions(),this.renderNoChildrenTip(),this.renderLoadingChildrenTip(),this.renderLoadingChildrenErrorTip()]):null},renderArrow:function(){var t=this.$createElement,e=this.instance,n=this.node;if(e.shouldFlattenOptions&&this.shouldShow)return null;if(n.isBranch){var i={"vue-treeselect__option-arrow":!0,"vue-treeselect__option-arrow--rotated":this.shouldExpand};return t("div",{class:"vue-treeselect__option-arrow-container",on:{mousedown:this.handleMouseDownOnArrow}},[t("transition",{props:{name:"vue-treeselect__option-arrow--prepare",appear:!0}},[t(Zt,{class:i})])])}return e.hasBranchNodes?(ie||(ie=t("div",{class:"vue-treeselect__option-arrow-placeholder"},[" "])),ie):null},renderLabelContainer:function(t){return(0,this.$createElement)("div",{class:"vue-treeselect__label-container",on:{mousedown:this.handleMouseDownOnLabelContainer}},[t])},renderCheckboxContainer:function(t){var e=this.$createElement,n=this.instance,i=this.node;return n.single||n.disableBranchNodes&&i.isBranch?null:e("div",{class:"vue-treeselect__checkbox-container"},[t])},renderCheckbox:function(){var t=this.$createElement,e=this.instance,n=this.node,i=e.forest.checkedStateMap[n.id],r={"vue-treeselect__checkbox":!0,"vue-treeselect__checkbox--checked":2===i,"vue-treeselect__checkbox--indeterminate":1===i,"vue-treeselect__checkbox--unchecked":0===i,"vue-treeselect__checkbox--disabled":n.isDisabled};return re||(re=t("span",{class:"vue-treeselect__check-mark"})),oe||(oe=t("span",{class:"vue-treeselect__minus-mark"})),t("span",{class:r},[re,oe])},renderLabel:function(){var t=this.$createElement,e=this.instance,n=this.node,i=n.isBranch&&(e.localSearch.active?e.showCountOnSearchComputed:e.showCount),r=i?e.localSearch.active?e.localSearch.countMap[n.id][e.showCountOf]:n.count[e.showCountOf]:NaN,o="vue-treeselect__label",a="vue-treeselect__count",s=e.$scopedSlots["option-label"];return s?s({node:n,shouldShowCount:i,count:r,labelClassName:o,countClassName:a}):t("label",{class:o},[n.label,i&&t("span",{class:a},["(",r,")"])])},renderSubOptions:function(){var t=this.$createElement,e=this.node;return e.childrenStates.isLoaded?e.children.map((function(e){return t(se,{attrs:{node:e},key:e.id})})):null},renderNoChildrenTip:function(){var t=this.$createElement,e=this.instance,n=this.node;return!n.childrenStates.isLoaded||n.children.length?null:t(ae,{attrs:{type:"no-children",icon:"warning"}},[e.noChildrenText])},renderLoadingChildrenTip:function(){var t=this.$createElement,e=this.instance;return this.node.childrenStates.isLoading?t(ae,{attrs:{type:"loading",icon:"loader"}},[e.loadingText]):null},renderLoadingChildrenErrorTip:function(){var t=this.$createElement,e=this.instance,n=this.node;return n.childrenStates.loadingError?t(ae,{attrs:{type:"error",icon:"error"}},[n.childrenStates.loadingError,t("a",{class:"vue-treeselect__retry",attrs:{title:e.retryTitle},on:{mousedown:this.handleMouseDownOnRetry}},[e.retryText])]):null},handleMouseEnterOption:function(t){var e=this.instance,n=this.node;t.target===t.currentTarget&&e.setCurrentHighlightedOption(n,!1)},handleMouseDownOnArrow:p((function(){var t=this.instance,e=this.node;t.toggleExpanded(e)})),handleMouseDownOnLabelContainer:p((function(){var t=this.instance,e=this.node;e.isBranch&&t.disableBranchNodes?t.toggleExpanded(e):t.select(e)})),handleMouseDownOnRetry:p((function(){var t=this.instance,e=this.node;t.loadChildrenOptions(e)}))},render:function(){var t=arguments[0],e=this.node,n=this.instance.shouldFlattenOptions?0:e.level;return t("div",{class:l()({"vue-treeselect__list-item":!0},"vue-treeselect__indent-level-".concat(n),!0)},[this.renderOption(),e.isBranch&&t("transition",{props:{name:"vue-treeselect__list--transition"}},[this.renderSubOptionsList()])])}},le=Tt(se,undefined,undefined,!1,null,null,null);le.options.__file="src/components/Option.vue";var ce=le.exports,ue={top:"top",bottom:"bottom",above:"top",below:"bottom"},de={name:"vue-treeselect--menu",inject:["instance"],computed:{menuStyle:function(){return{maxHeight:this.instance.maxHeight+"px"}},menuContainerStyle:function(){var t=this.instance;return{zIndex:t.appendToBody?null:t.zIndex}}},watch:{"instance.menu.isOpen":function(t){t?this.$nextTick(this.onMenuOpen):this.onMenuClose()}},created:function(){this.menuSizeWatcher=null,this.menuResizeAndScrollEventListeners=null},mounted:function(){this.instance.menu.isOpen&&this.$nextTick(this.onMenuOpen)},destroyed:function(){this.onMenuClose()},methods:{renderMenu:function(){var t=this.$createElement,e=this.instance;return e.menu.isOpen?t("div",{ref:"menu",class:"vue-treeselect__menu",on:{mousedown:e.handleMouseDown},style:this.menuStyle},[this.renderBeforeList(),e.async?this.renderAsyncSearchMenuInner():e.localSearch.active?this.renderLocalSearchMenuInner():this.renderNormalMenuInner(),this.renderAfterList()]):null},renderBeforeList:function(){var t=this.instance.$scopedSlots["before-list"];return t?t():null},renderAfterList:function(){var t=this.instance.$scopedSlots["after-list"];return t?t():null},renderNormalMenuInner:function(){var t=this.instance;return t.rootOptionsStates.isLoading?this.renderLoadingOptionsTip():t.rootOptionsStates.loadingError?this.renderLoadingRootOptionsErrorTip():t.rootOptionsStates.isLoaded&&0===t.forest.normalizedOptions.length?this.renderNoAvailableOptionsTip():this.renderOptionList()},renderLocalSearchMenuInner:function(){var t=this.instance;return t.rootOptionsStates.isLoading?this.renderLoadingOptionsTip():t.rootOptionsStates.loadingError?this.renderLoadingRootOptionsErrorTip():t.rootOptionsStates.isLoaded&&0===t.forest.normalizedOptions.length?this.renderNoAvailableOptionsTip():t.localSearch.noResults?this.renderNoResultsTip():this.renderOptionList()},renderAsyncSearchMenuInner:function(){var t=this.instance,e=t.getRemoteSearchEntry(),n=""===t.trigger.searchQuery&&!t.defaultOptions,i=!n&&(e.isLoaded&&0===e.options.length);return n?this.renderSearchPromptTip():e.isLoading?this.renderLoadingOptionsTip():e.loadingError?this.renderAsyncSearchLoadingErrorTip():i?this.renderNoResultsTip():this.renderOptionList()},renderOptionList:function(){var t=this.$createElement,e=this.instance;return t("div",{class:"vue-treeselect__list"},[e.forest.normalizedOptions.map((function(e){return t(ce,{attrs:{node:e},key:e.id})}))])},renderSearchPromptTip:function(){var t=this.$createElement,e=this.instance;return t(ae,{attrs:{type:"search-prompt",icon:"warning"}},[e.searchPromptText])},renderLoadingOptionsTip:function(){var t=this.$createElement,e=this.instance;return t(ae,{attrs:{type:"loading",icon:"loader"}},[e.loadingText])},renderLoadingRootOptionsErrorTip:function(){var t=this.$createElement,e=this.instance;return t(ae,{attrs:{type:"error",icon:"error"}},[e.rootOptionsStates.loadingError,t("a",{class:"vue-treeselect__retry",on:{click:e.loadRootOptions},attrs:{title:e.retryTitle}},[e.retryText])])},renderAsyncSearchLoadingErrorTip:function(){var t=this.$createElement,e=this.instance,n=e.getRemoteSearchEntry();return t(ae,{attrs:{type:"error",icon:"error"}},[n.loadingError,t("a",{class:"vue-treeselect__retry",on:{click:e.handleRemoteSearch},attrs:{title:e.retryTitle}},[e.retryText])])},renderNoAvailableOptionsTip:function(){var t=this.$createElement,e=this.instance;return t(ae,{attrs:{type:"no-options",icon:"warning"}},[e.noOptionsText])},renderNoResultsTip:function(){var t=this.$createElement,e=this.instance;return t(ae,{attrs:{type:"no-results",icon:"warning"}},[e.noResultsText])},onMenuOpen:function(){this.adjustMenuOpenDirection(),this.setupMenuSizeWatcher(),this.setupMenuResizeAndScrollEventListeners()},onMenuClose:function(){this.removeMenuSizeWatcher(),this.removeMenuResizeAndScrollEventListeners()},adjustMenuOpenDirection:function(){var t=this.instance;if(t.menu.isOpen){var e=t.getMenu(),n=t.getControl(),i=e.getBoundingClientRect(),r=n.getBoundingClientRect(),o=i.height,a=window.innerHeight,s=r.top,l=window.innerHeight-r.bottom>o+40,c=s>o+40;r.top>=0&&r.top<=a||r.top<0&&r.bottom>0?"auto"!==t.openDirection?t.menu.placement=ue[t.openDirection]:t.menu.placement=l||!c?"bottom":"top":t.closeMenu()}},setupMenuSizeWatcher:function(){var t=this.instance.getMenu();this.menuSizeWatcher||(this.menuSizeWatcher={remove:S(t,this.adjustMenuOpenDirection)})},setupMenuResizeAndScrollEventListeners:function(){var t=this.instance.getControl();this.menuResizeAndScrollEventListeners||(this.menuResizeAndScrollEventListeners={remove:T(t,this.adjustMenuOpenDirection)})},removeMenuSizeWatcher:function(){this.menuSizeWatcher&&(this.menuSizeWatcher.remove(),this.menuSizeWatcher=null)},removeMenuResizeAndScrollEventListeners:function(){this.menuResizeAndScrollEventListeners&&(this.menuResizeAndScrollEventListeners.remove(),this.menuResizeAndScrollEventListeners=null)}},render:function(){var t=arguments[0];return t("div",{ref:"menu-container",class:"vue-treeselect__menu-container",style:this.menuContainerStyle},[t("transition",{attrs:{name:"vue-treeselect__menu--transition"}},[this.renderMenu()])])}},he=Tt(de,undefined,undefined,!1,null,null,null);he.options.__file="src/components/Menu.vue";var pe=he.exports,fe=n(14),me=n.n(fe);function ve(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}var ge,be={name:"vue-treeselect--portal-target",inject:["instance"],watch:{"instance.menu.isOpen":function(t){t?this.setupHandlers():this.removeHandlers()},"instance.menu.placement":function(){this.updateMenuContainerOffset()}},created:function(){this.controlResizeAndScrollEventListeners=null,this.controlSizeWatcher=null},mounted:function(){this.instance.menu.isOpen&&this.setupHandlers()},methods:{setupHandlers:function(){this.updateWidth(),this.updateMenuContainerOffset(),this.setupControlResizeAndScrollEventListeners(),this.setupControlSizeWatcher()},removeHandlers:function(){this.removeControlResizeAndScrollEventListeners(),this.removeControlSizeWatcher()},setupControlResizeAndScrollEventListeners:function(){var t=this.instance.getControl();this.controlResizeAndScrollEventListeners||(this.controlResizeAndScrollEventListeners={remove:T(t,this.updateMenuContainerOffset)})},setupControlSizeWatcher:function(){var t=this,e=this.instance.getControl();this.controlSizeWatcher||(this.controlSizeWatcher={remove:S(e,(function(){t.updateWidth(),t.updateMenuContainerOffset()}))})},removeControlResizeAndScrollEventListeners:function(){this.controlResizeAndScrollEventListeners&&(this.controlResizeAndScrollEventListeners.remove(),this.controlResizeAndScrollEventListeners=null)},removeControlSizeWatcher:function(){this.controlSizeWatcher&&(this.controlSizeWatcher.remove(),this.controlSizeWatcher=null)},updateWidth:function(){var t=this.instance,e=this.$el,n=t.getControl().getBoundingClientRect();e.style.width=n.width+"px"},updateMenuContainerOffset:function(){var t=this.instance,e=t.getControl(),n=this.$el,i=e.getBoundingClientRect(),r=n.getBoundingClientRect(),o="bottom"===t.menu.placement?i.height:0,a=Math.round(i.left-r.left)+"px",s=Math.round(i.top-r.top+o)+"px";this.$refs.menu.$refs["menu-container"].style[V(["transform","webkitTransform","MozTransform","msTransform"],(function(t){return t in document.body.style}))]="translate(".concat(a,", ").concat(s,")")}},render:function(){var t=arguments[0],e=this.instance;return t("div",{class:["vue-treeselect__portal-target",e.wrapperClass],style:{zIndex:e.zIndex},attrs:{"data-instance-id":e.getInstanceId()}},[t(pe,{ref:"menu"})])},destroyed:function(){this.removeHandlers()}},ye={name:"vue-treeselect--menu-portal",created:function(){this.portalTarget=null},mounted:function(){this.setup()},destroyed:function(){this.teardown()},methods:{setup:function(){var t=document.createElement("div");document.body.appendChild(t),this.portalTarget=new me.a(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ve(n,!0).forEach((function(e){l()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ve(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({el:t,parent:this},be))},teardown:function(){document.body.removeChild(this.portalTarget.$el),this.portalTarget.$el.innerHTML="",this.portalTarget.$destroy(),this.portalTarget=null}},render:function(){return ge||(ge=(0,arguments[0])("div",{class:"vue-treeselect__menu-placeholder"})),ge}},_e=Tt(ye,undefined,undefined,!1,null,null,null);_e.options.__file="src/components/MenuPortal.vue";var we=_e.exports,xe={name:"vue-treeselect",mixins:[Ct],computed:{wrapperClass:function(){return{"vue-treeselect":!0,"vue-treeselect--single":this.single,"vue-treeselect--multi":this.multiple,"vue-treeselect--searchable":this.searchable,"vue-treeselect--disabled":this.disabled,"vue-treeselect--focused":this.trigger.isFocused,"vue-treeselect--has-value":this.hasValue,"vue-treeselect--open":this.menu.isOpen,"vue-treeselect--open-above":"top"===this.menu.placement,"vue-treeselect--open-below":"bottom"===this.menu.placement,"vue-treeselect--branch-nodes-disabled":this.disableBranchNodes,"vue-treeselect--append-to-body":this.appendToBody}}},render:function(){var t=arguments[0];return t("div",{ref:"wrapper",class:this.wrapperClass},[t(kt),t(te,{ref:"control"}),this.appendToBody?t(we,{ref:"portal"}):t(pe,{ref:"menu"})])}},Ce=Tt(xe,undefined,undefined,!1,null,null,null);Ce.options.__file="src/components/Treeselect.vue";var Se=Ce.exports;n(15);n.d(e,"VERSION",(function(){return Ee})),n.d(e,"Treeselect",(function(){return Se})),n.d(e,"treeselectMixin",(function(){return Ct})),n.d(e,"LOAD_ROOT_OPTIONS",(function(){return Z})),n.d(e,"LOAD_CHILDREN_OPTIONS",(function(){return J})),n.d(e,"ASYNC_SEARCH",(function(){return Q}));e.default=Se;var Ee="0.4.0"}])},5577:(t,e,n)=>{"use strict";function i(t,e,n){return t(n={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&n.path)}},n.exports),n.exports}n.d(e,{Ay:()=>yn,Kx:()=>Le});var r=i((function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)})),o=i((function(t){var e=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)})),a=function(t){return"object"==typeof t?null!==t:"function"==typeof t},s=function(t){if(!a(t))throw TypeError(t+" is not an object!");return t},l=function(t){try{return!!t()}catch(t){return!0}},c=!l((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),u=r.document,d=a(u)&&a(u.createElement),h=function(t){return d?u.createElement(t):{}},p=!c&&!l((function(){return 7!=Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a})),f=Object.defineProperty,m={f:c?Object.defineProperty:function(t,e,n){if(s(t),e=function(t,e){if(!a(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!a(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!a(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!a(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}(e,!0),s(n),p)try{return f(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},v=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},g=c?function(t,e,n){return m.f(t,e,v(1,n))}:function(t,e,n){return t[e]=n,t},b={}.hasOwnProperty,y=function(t,e){return b.call(t,e)},_=0,w=Math.random(),x=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++_+w).toString(36))},C=i((function(t){var e="__core-js_shared__",n=r[e]||(r[e]={});(t.exports=function(t,e){return n[t]||(n[t]=void 0!==e?e:{})})("versions",[]).push({version:o.version,mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),S=C("native-function-to-string",Function.toString),E=i((function(t){var e=x("src"),n="toString",i=(""+S).split(n);o.inspectSource=function(t){return S.call(t)},(t.exports=function(t,n,o,a){var s="function"==typeof o;s&&(y(o,"name")||g(o,"name",n)),t[n]!==o&&(s&&(y(o,e)||g(o,e,t[n]?""+t[n]:i.join(String(n)))),t===r?t[n]=o:a?t[n]?t[n]=o:g(t,n,o):(delete t[n],g(t,n,o)))})(Function.prototype,n,(function(){return"function"==typeof this&&this[e]||S.call(this)}))})),T=function(t,e,n){if(function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!")}(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}},O="prototype",k=function(t,e,n){var i,a,s,l,c=t&k.F,u=t&k.G,d=t&k.S,h=t&k.P,p=t&k.B,f=u?r:d?r[e]||(r[e]={}):(r[e]||{})[O],m=u?o:o[e]||(o[e]={}),v=m[O]||(m[O]={});for(i in u&&(n=e),n)s=((a=!c&&f&&void 0!==f[i])?f:n)[i],l=p&&a?T(s,r):h&&"function"==typeof s?T(Function.call,s):s,f&&E(f,i,s,t&k.U),m[i]!=s&&g(m,i,l),h&&v[i]!=s&&(v[i]=s)};r.core=o,k.F=1,k.G=2,k.S=4,k.P=8,k.B=16,k.W=32,k.U=64,k.R=128;var A=k,P={}.toString,M=function(t){return P.call(t).slice(8,-1)},L=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==M(t)?t.split(""):Object(t)},D=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t},R=function(t){return L(D(t))},I=Math.ceil,j=Math.floor,N=function(t){return isNaN(t=+t)?0:(t>0?j:I)(t)},F=Math.min,z=function(t){return t>0?F(N(t),9007199254740991):0},B=Math.max,$=Math.min,U=function(t){return function(e,n,i){var r,o=R(e),a=z(o.length),s=function(t,e){return(t=N(t))<0?B(t+e,0):$(t,e)}(i,a);if(t&&n!=n){for(;a>s;)if((r=o[s++])!=r)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},H=i((function(t){var e=C("wks"),n=r.Symbol,i="function"==typeof n;(t.exports=function(t){return e[t]||(e[t]=i&&n[t]||(i?n:x)("Symbol."+t))}).store=e})),V=H("unscopables"),Y=Array.prototype;null==Y[V]&&g(Y,V,{});var q=function(t){Y[V][t]=!0},W=U(!0);A(A.P,"Array",{includes:function(t){return W(this,t,arguments.length>1?arguments[1]:void 0)}}),q("includes"),o.Array.includes;var G=C("keys"),X=function(t){return G[t]||(G[t]=x(t))},K=U(!1),Z=X("IE_PROTO"),J="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Q=Object.keys||function(t){return function(t,e){var n,i=R(t),r=0,o=[];for(n in i)n!=Z&&y(i,n)&&o.push(n);for(;e.length>r;)y(i,n=e[r++])&&(~K(o,n)||o.push(n));return o}(t,J)},tt={f:Object.getOwnPropertySymbols},et={f:{}.propertyIsEnumerable},nt=function(t){return Object(D(t))},it=Object.assign,rt=!it||l((function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=it({},t)[n]||Object.keys(it({},e)).join("")!=i}))?function(t,e){for(var n=nt(t),i=arguments.length,r=1,o=tt.f,a=et.f;i>r;)for(var s,l=L(arguments[r++]),u=o?Q(l).concat(o(l)):Q(l),d=u.length,h=0;d>h;)s=u[h++],c&&!a.call(l,s)||(n[s]=l[s]);return n}:it;A(A.S+A.F,"Object",{assign:rt}),o.Object.assign;var ot=et.f,at=function(t){return function(e){for(var n,i=R(e),r=Q(i),o=r.length,a=0,s=[];o>a;)n=r[a++],c&&!ot.call(i,n)||s.push(t?[n,i[n]]:i[n]);return s}},st=at(!0);A(A.S,"Object",{entries:function(t){return st(t)}}),o.Object.entries;var lt=at(!1);A(A.S,"Object",{values:function(t){return lt(t)}}),o.Object.values;var ct=H("match"),ut=function(t,e,n){if(a(i=e)&&(void 0!==(r=i[ct])?r:"RegExp"==M(i)))throw TypeError("String#"+n+" doesn't accept regex!");var i,r;return String(D(t))},dt=H("match"),ht="startsWith",pt=""[ht];A(A.P+A.F*function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[dt]=!1,!"/./"[t](e)}catch(t){}}return!0}(ht),"String",{startsWith:function(t){var e=ut(this,t,ht),n=z(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),i=String(t);return pt?pt.call(e,i,n):e.slice(n,n+i.length)===i}}),o.String.startsWith;var ft={},mt=c?Object.defineProperties:function(t,e){s(t);for(var n,i=Q(e),r=i.length,o=0;r>o;)m.f(t,n=i[o++],e[n]);return t},vt=r.document,gt=vt&&vt.documentElement,bt=X("IE_PROTO"),yt=function(){},_t="prototype",wt=function(){var t,e=h("iframe"),n=J.length;for(e.style.display="none",gt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),wt=t.F;n--;)delete wt[_t][J[n]];return wt()},xt=Object.create||function(t,e){var n;return null!==t?(yt[_t]=s(t),n=new yt,yt[_t]=null,n[bt]=t):n=wt(),void 0===e?n:mt(n,e)},Ct=m.f,St=H("toStringTag"),Et=function(t,e,n){t&&!y(t=n?t:t.prototype,St)&&Ct(t,St,{configurable:!0,value:e})},Tt={};g(Tt,H("iterator"),(function(){return this}));var Ot,kt=function(t,e,n){t.prototype=xt(Tt,{next:v(1,n)}),Et(t,e+" Iterator")},At=X("IE_PROTO"),Pt=Object.prototype,Mt=Object.getPrototypeOf||function(t){return t=nt(t),y(t,At)?t[At]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Pt:null},Lt=H("iterator"),Dt=!([].keys&&"next"in[].keys()),Rt="keys",It="values",jt=function(){return this},Nt=(Ot=!0,function(t,e){var n,i,r=String(D(t)),o=N(e),a=r.length;return o<0||o>=a?Ot?"":void 0:(n=r.charCodeAt(o))<55296||n>56319||o+1===a||(i=r.charCodeAt(o+1))<56320||i>57343?Ot?r.charAt(o):n:Ot?r.slice(o,o+2):i-56320+(n-55296<<10)+65536});!function(t,e,n,i,r,o,a){kt(n,e,i);var s,l,c,u=function(t){if(!Dt&&t in f)return f[t];switch(t){case Rt:case It:return function(){return new n(this,t)}}return function(){return new n(this,t)}},d=e+" Iterator",h=r==It,p=!1,f=t.prototype,m=f[Lt]||f["@@iterator"]||r&&f[r],v=m||u(r),b=r?h?u("entries"):v:void 0,y="Array"==e&&f.entries||m;if(y&&(c=Mt(y.call(new t)))!==Object.prototype&&c.next&&(Et(c,d,!0),"function"!=typeof c[Lt]&&g(c,Lt,jt)),h&&m&&m.name!==It&&(p=!0,v=function(){return m.call(this)}),(Dt||p||!f[Lt])&&g(f,Lt,v),ft[e]=v,ft[d]=jt,r)if(s={values:h?v:u(It),keys:o?v:u(Rt),entries:b},a)for(l in s)l in f||E(f,l,s[l]);else A(A.P+A.F*(Dt||p),e,s)}(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=Nt(e,n),this._i+=t.length,{value:t,done:!1})}));var Ft=function(t,e,n,i){try{return i?e(s(n)[0],n[1]):e(n)}catch(e){var r=t.return;throw void 0!==r&&s(r.call(t)),e}},zt=H("iterator"),Bt=Array.prototype,$t=function(t,e,n){e in t?m.f(t,e,v(0,n)):t[e]=n},Ut=H("toStringTag"),Ht="Arguments"==M(function(){return arguments}()),Vt=H("iterator"),Yt=o.getIteratorMethod=function(t){if(null!=t)return t[Vt]||t["@@iterator"]||ft[function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Ut))?n:Ht?M(e):"Object"==(i=M(e))&&"function"==typeof e.callee?"Arguments":i}(t)]},qt=H("iterator"),Wt=!1;try{var Gt=[7][qt]();Gt.return=function(){Wt=!0},Array.from(Gt,(function(){throw 2}))}catch(t){}A(A.S+A.F*!function(t,e){if(!e&&!Wt)return!1;var n=!1;try{var i=[7],r=i[qt]();r.next=function(){return{done:n=!0}},i[qt]=function(){return r},t(i)}catch(t){}return n}((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,i,r,o,a=nt(t),s="function"==typeof this?this:Array,l=arguments.length,c=l>1?arguments[1]:void 0,u=void 0!==c,d=0,h=Yt(a);if(u&&(c=T(c,l>2?arguments[2]:void 0,2)),null!=h&&(s!=Array||(void 0===(o=h)||ft.Array!==o&&Bt[zt]!==o)))for(r=h.call(a),n=new s;!(i=r.next()).done;d++)$t(n,d,u?Ft(r,c,[i.value,d],!0):i.value);else for(n=new s(e=z(a.length));e>d;d++)$t(n,d,u?c(a[d],d):a[d]);return n.length=d,n}}),o.Array.from;var Xt=Array.isArray||function(t){return"Array"==M(t)},Kt=H("species"),Zt=function(t,e){return new(function(t){var e;return Xt(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!Xt(e.prototype)||(e=void 0),a(e)&&null===(e=e[Kt])&&(e=void 0)),void 0===e?Array:e}(t))(e)},Jt=function(t,e){var n=1==t,i=2==t,r=3==t,o=4==t,a=6==t,s=5==t||a,l=e||Zt;return function(e,c,u){for(var d,h,p=nt(e),f=L(p),m=T(c,u,3),v=z(f.length),g=0,b=n?l(e,v):i?l(e,0):void 0;v>g;g++)if((s||g in f)&&(h=m(d=f[g],g,p),t))if(n)b[g]=h;else if(h)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:b.push(d)}else if(o)return!1;return a?-1:r||o?o:b}}(5),Qt="find",te=!0;Qt in[]&&Array(1)[Qt]((function(){te=!1})),A(A.P+A.F*te,"Array",{find:function(t){return Jt(this,t,arguments.length>1?arguments[1]:void 0)}}),q(Qt),o.Array.find;class ee{static register(t){this.store=t}}function ne(t){return Array.isArray(t)}function ie(t){return ne(t)?t.length:Object.keys(t).length}function re(t,e){const n=Object.assign({},t);return Object.keys(t).reduce(((n,i)=>(n[i]=e(t[i],i,t),n)),n)}function oe(t,e){if(t!==e){const n=void 0!==t,i=null===t,r=t==t,o=void 0!==e,a=null===e,s=e==e;if("number"==typeof t&&"number"==typeof e||(t=String(t),e=String(e)),!a&&t>e||i&&o&&s||!n&&s||!r)return 1;if(!i&&t<e||a&&n&&r||!o&&r||!s)return-1}return 0}var ae={isArray:ne,size:ie,isEmpty:function(t){return 0===ie(t)},forOwn:function(t,e){Object.keys(t).forEach((n=>e(t[n],n,t)))},map:function(t,e){const n=[];for(const i in t)n.push(e(t[i],i,t));return n},mapValues:re,keyBy:function(t,e){const n={};return t.forEach((t=>{n[t[e]]=t})),n},orderBy:function(t,e,n){let i=-1;const r=t.map((t=>({criteria:e.map((e=>"function"==typeof e?e(t):t[e])),index:++i,value:t})));return function(t,e){let n=t.length;t.sort(e);const i=[];for(;n--;)i[n]=t[n].value;return i}(r,((t,e)=>function(t,e,n){let i=-1;const r=t.criteria,o=e.criteria,a=r.length,s=n.length;for(;++i<a;){const t=oe(r[i],o[i]);if(t){if(i>=s)return t;return t*("desc"===n[i]?-1:1)}}return t.index-e.index}(t,e,n)))},groupBy:function(t,e){return t.reduce(((t,n)=>{const i=e(n);return void 0===t[i]&&(t[i]=[]),t[i].push(n),t}),{})},cloneDeep:function t(e){if(null===e)return e;if(ne(e)){const n=[];return e.forEach((t=>n.push(t))),n.map((e=>t(e)))}if("object"==typeof e&&e!=={}){const n={...e};return Object.keys(n).forEach((e=>n[e]=t(n[e]))),n}return e}};class se{static make(){return this.count++,`${this.prefix}${this.count}`}static reset(){this.count=0}}se.count=0,se.prefix="$uid";class le{constructor(t){this.model=t}}class ce extends le{constructor(t,e,n){super(t),this.isNullable=!1,this.value=e,this.mutator=n}nullable(){return this.isNullable=!0,this}mutate(t,e){const n=this.mutator||this.model.mutators()[e];return n?n(t):t}}class ue extends ce{constructor(t,e,n){super(t,e,n)}make(t,e,n){let i=t=void 0!==t?t:this.value;return"function"==typeof t&&(i=t()),this.mutate(i,n)}}class de extends ce{constructor(t,e,n){super(t,e,n)}make(t,e,n){return this.mutate(this.fix(t),n)}fix(t){return void 0===t?this.value:"string"==typeof t||null===t&&this.isNullable?t:t+""}}class he extends ce{constructor(t,e,n){super(t,e,n)}make(t,e,n){return this.mutate(this.fix(t),n)}fix(t){return void 0===t?this.value:"number"==typeof t?t:"string"==typeof t?parseFloat(t):"boolean"==typeof t?t?1:0:null===t&&this.isNullable?t:0}}class pe extends ce{constructor(t,e,n){super(t,e,n)}make(t,e,n){return this.mutate(this.fix(t),n)}fix(t){if(void 0===t)return this.value;if("boolean"==typeof t)return t;if("string"==typeof t){if(0===t.length)return!1;const e=parseInt(t,0);return!!isNaN(e)||!!e}return"number"==typeof t?!!t:!(null!==t||!this.isNullable)&&t}}class fe extends ce{constructor(t,e){super(t,e)}make(t){return"number"==typeof t||"string"==typeof t?t:"function"==typeof this.value?this.value():se.make()}}class me extends le{getRelation(t,e,n){const i=t.newQuery(e);return n.forEach((t=>{t(i)})),i}getKeys(t,e){return t.reduce(((t,n)=>(null===n[e]||void 0===n[e]||t.push(n[e]),t)),[])}mapSingleRelations(t,e){const n=new Map;return t.forEach((t=>{const i=t[e];!n.get(i)&&n.set(i,t)})),n}mapManyRelations(t,e){const n=new Map;return t.forEach((t=>{const i=t[e];let r=n.get(i);r||(r=[],n.set(i,r)),r.push(t)})),n}mapRelationsByOrders(t,e,n,i){const r={};return e.forEach(((e,o)=>{t.filter((t=>t[i]===o)).forEach((t=>{const i=t[n];r[i]||(r[i]=[]),r[i]=r[i].concat(e)}))})),r}isOneRelation(t){return!ne(t)&&null!==t&&"object"==typeof t}isManyRelation(t){return!!ne(t)&&!(t.length<1)}makeOneRelation(t,e){if(!this.isOneRelation(t))return null;return new(e.getModelFromRecord(t)||e)(t)}makeManyRelation(t,e){return this.isManyRelation(t)?t.filter((t=>this.isOneRelation(t))).map((t=>new(e.getModelFromRecord(t)||e)(t))):[]}}class ve extends me{constructor(t,e,n,i){super(t),this.related=this.model.relation(e),this.foreignKey=n,this.localKey=i}define(t){return t.one(this.related)}attach(t,e,n){e[this.localKey]||(e[this.localKey]=this.model.getIndexIdFromRecord(e));const i=n[this.related.entity]&&n[this.related.entity][t];i&&(i[this.foreignKey]=e[this.localKey])}make(t,e,n){return this.makeOneRelation(t,this.related)}load(t,e,n,i){const r=this.getRelation(t,this.related.entity,i);this.addEagerConstraints(r,e),this.match(e,r.get(),n)}addEagerConstraints(t,e){t.whereFk(this.foreignKey,this.getKeys(e,this.localKey))}match(t,e,n){const i=this.buildDictionary(e);t.forEach((t=>{const e=t[this.localKey],r=i[e];t[n]=r||null}))}buildDictionary(t){return t.reduce(((t,e)=>(t[e[this.foreignKey]]=e,t)),{})}}class ge extends me{constructor(t,e,n,i){super(t),this.parent=this.model.relation(e),this.foreignKey=n,this.ownerKey=i}define(t){return t.one(this.parent)}attach(t,e,n){void 0===e[this.foreignKey]&&(e[this.foreignKey]=n[this.parent.entity]&&n[this.parent.entity][t]?n[this.parent.entity][t][this.ownerKey]:t)}make(t,e,n){return this.makeOneRelation(t,this.parent)}load(t,e,n,i){const r=this.getRelation(t,this.parent.entity,i);this.addEagerConstraints(r,e),this.match(e,r.get(),n)}addEagerConstraints(t,e){t.whereFk(this.ownerKey,this.getKeys(e,this.foreignKey))}match(t,e,n){const i=this.buildDictionary(e);t.forEach((t=>{const e=t[this.foreignKey],r=null!==e?i[e]:null;t[n]=r||null}))}buildDictionary(t){return t.reduce(((t,e)=>(t[e[this.ownerKey]]=e,t)),{})}}class be extends me{constructor(t,e,n,i){super(t),this.related=this.model.relation(e),this.foreignKey=n,this.localKey=i}define(t){return t.many(this.related)}attach(t,e,n){t.forEach((t=>{const i=n[this.related.entity];i&&i[t]&&void 0===i[t][this.foreignKey]&&(i[t][this.foreignKey]=e[this.localKey])}))}make(t,e,n){return this.makeManyRelation(t,this.related)}load(t,e,n,i){const r=this.getRelation(t,this.related.entity,i);this.addEagerConstraints(r,e),this.match(e,r.get(),n)}addEagerConstraints(t,e){t.whereFk(this.foreignKey,this.getKeys(e,this.localKey))}match(t,e,n){const i=this.buildDictionary(e);t.forEach((t=>{const e=t[this.localKey],r=i[e];t[n]=r||[]}))}buildDictionary(t){return t.reduce(((t,e)=>{const n=e[this.foreignKey];return t[n]||(t[n]=[]),t[n].push(e),t}),{})}}class ye extends me{constructor(t,e,n,i){super(t),this.parent=this.model.relation(e),this.foreignKey=n,this.ownerKey=i}define(t){return t.many(this.parent)}attach(t,e,n){0!==t.length&&(e[this.foreignKey]=t.map((t=>this.parent.getIdFromRecord(n[this.parent.entity][t]))))}make(t,e,n){return this.makeManyRelation(t,this.parent)}load(t,e,n,i){const r=this.getRelation(t,this.parent.entity,i);this.addConstraintForHasManyBy(r,e);const o=this.mapSingleRelations(r.get(),this.ownerKey);e.forEach((t=>{const e=this.getRelatedRecords(o,t[this.foreignKey]);t[n]=e}))}addConstraintForHasManyBy(t,e){const n=e.reduce(((t,e)=>t.concat(e[this.foreignKey])),[]);t.where(this.ownerKey,n)}getRelatedRecords(t,e){const n=[];return t.forEach(((t,i)=>{-1!==e.indexOf(i)&&n.push(t)})),n}}class _e extends me{constructor(t,e,n,i,r,o,a){super(t),this.related=this.model.relation(e),this.through=this.model.relation(n),this.firstKey=i,this.secondKey=r,this.localKey=o,this.secondLocalKey=a}define(t){return t.many(this.related)}attach(t,e,n){}make(t,e,n){return this.makeManyRelation(t,this.related)}load(t,e,n,i){const r=this.getRelation(t,this.related.entity,i),o=t.newQuery(this.through.entity);this.addEagerConstraintForThrough(o,e);const a=o.get();this.addEagerConstraintForRelated(r,a);const s=this.mapThroughRelations(a,r);e.forEach((t=>{const e=s[t[this.localKey]];t[n]=e||[]}))}addEagerConstraintForThrough(t,e){t.where(this.firstKey,this.getKeys(e,this.localKey))}addEagerConstraintForRelated(t,e){t.where(this.secondKey,this.getKeys(e,this.secondLocalKey))}mapThroughRelations(t,e){const n=this.mapManyRelations(e.get(),this.secondKey);return t.reduce(((t,e)=>{const i=e[this.firstKey];t[i]||(t[i]=[]);const r=n.get(e[this.secondLocalKey]);return void 0===r||(t[i]=t[i].concat(r)),t}),{})}}class we extends me{constructor(t,e,n,i,r,o,a){super(t),this.pivotKey="pivot",this.related=this.model.relation(e),this.pivot=this.model.relation(n),this.foreignPivotKey=i,this.relatedPivotKey=r,this.parentKey=o,this.relatedKey=a}as(t){return this.pivotKey=t,this}define(t){return t.many(this.related)}attach(t,e,n){}make(t,e,n){return this.makeManyRelation(t,this.related)}load(t,e,n,i){const r=this.getRelation(t,this.related.entity,i),o=t.newQuery(this.pivot.entity);this.addEagerConstraintForPivot(o,e);const a=o.get();this.addEagerConstraintForRelated(r,a);const s=this.mapPivotRelations(a,r);e.forEach((t=>{const e=s[t[this.parentKey]];t[n]=e||[]}))}addEagerConstraintForPivot(t,e){t.whereFk(this.foreignPivotKey,this.getKeys(e,this.parentKey))}addEagerConstraintForRelated(t,e){t.whereFk(this.relatedKey,this.getKeys(e,this.relatedPivotKey))}mapPivotRelations(t,e){const n=this.mapManyRelations(e.get(),this.relatedKey);return e.orders.length?this.mapRelationsByOrders(t,n,this.foreignPivotKey,this.relatedPivotKey):t.reduce(((t,e)=>{const i=e[this.foreignPivotKey];t[i]||(t[i]=[]);const r=n.get(e[this.relatedPivotKey]);return r&&(t[i]=t[i].concat(r.map((t=>(t[this.pivotKey]=e,t))))),t}),{})}createPivots(t,e,n){return ae.isArray(this.pivot.primaryKey)?(ae.forOwn(e[t.entity],(t=>{const i=t[n];void 0!==i&&0!==i.length&&this.createPivotRecord(e,t,i)})),e):e}createPivotRecord(t,e,n){n.forEach((n=>{const i=e[this.parentKey],r=t[this.related.entity][n][this.relatedKey],o=JSON.stringify([this.pivot.primaryKey[0]===this.foreignPivotKey?i:r,this.pivot.primaryKey[1]===this.foreignPivotKey?i:r]),a=t[this.pivot.entity]?t[this.pivot.entity][o]:{},s=t[this.related.entity][n][this.pivotKey]||{};t[this.pivot.entity]={...t[this.pivot.entity],[o]:{...a,...s,$id:o,[this.foreignPivotKey]:i,[this.relatedPivotKey]:r}}}))}}class xe extends me{constructor(t,e,n){super(t),this.id=e,this.type=n}define(t){return t.union(((t,e)=>e[this.type]))}attach(t,e,n){}make(t,e,n){const i=e[this.type];try{const e=this.model.relation(i);return this.makeOneRelation(t,e)}catch(t){return null}}load(t,e,n,i){const r=this.getTypes(e).reduce(((e,n)=>{const r=this.getRelation(t,n,i);return e[n]=this.mapSingleRelations(r.get(),"$id"),e}),{});e.forEach((t=>{const e=t[this.id],i=t[this.type],o=r[i].get(String(e));t[n]=o||null}))}getTypes(t){return t.reduce(((t,e)=>{const n=e[this.type];return!t.includes(n)&&t.push(n),t}),[])}}class Ce extends me{constructor(t,e,n,i,r){super(t),this.related=this.model.relation(e),this.id=n,this.type=i,this.localKey=r}define(t){return t.one(this.related)}attach(t,e,n){const i=n[this.related.entity][t];i[this.id]=i[this.id]||this.related.getIdFromRecord(e),i[this.type]=i[this.type]||this.model.entity}make(t,e,n){return this.makeOneRelation(t,this.related)}load(t,e,n,i){const r=this.getRelation(t,this.related.entity,i);this.addEagerConstraintForMorphOne(r,e,t.entity);const o=this.mapSingleRelations(r.get(),this.id);e.forEach((t=>{const e=o.get(t[this.localKey]);t[n]=e||null}))}addEagerConstraintForMorphOne(t,e,n){t.whereFk(this.type,n).whereFk(this.id,this.getKeys(e,this.localKey))}}class Se extends me{constructor(t,e,n,i,r){super(t),this.related=this.model.relation(e),this.id=n,this.type=i,this.localKey=r}define(t){return t.many(this.related)}attach(t,e,n){const i=n[this.related.entity];t.forEach((t=>{const n=i[t];n[this.id]=n[this.id]||this.related.getIdFromRecord(e),n[this.type]=n[this.type]||this.model.entity}))}make(t,e,n){return this.makeManyRelation(t,this.related)}load(t,e,n,i){const r=this.getRelation(t,this.related.entity,i);this.addEagerConstraintForMorphMany(r,e,t.entity);const o=this.mapManyRelations(r.get(),this.id);e.forEach((t=>{const e=o.get(t[this.localKey]);t[n]=e||[]}))}addEagerConstraintForMorphMany(t,e,n){t.whereFk(this.type,n).whereFk(this.id,this.getKeys(e,this.localKey))}}class Ee extends me{constructor(t,e,n,i,r,o,a,s){super(t),this.pivotKey="pivot",this.related=this.model.relation(e),this.pivot=this.model.relation(n),this.relatedId=i,this.id=r,this.type=o,this.parentKey=a,this.relatedKey=s}as(t){return this.pivotKey=t,this}define(t){return t.many(this.related)}attach(t,e,n){}make(t,e,n){return this.makeManyRelation(t,this.related)}load(t,e,n,i){const r=this.getRelation(t,this.related.entity,i),o=t.newQuery(this.pivot.entity);this.addEagerConstraintForPivot(o,e,t.entity);const a=o.get();this.addEagerConstraintForRelated(r,a);const s=this.mapPivotRelations(a,r);e.forEach((t=>{const e=s[t[this.parentKey]];t[n]=e||[]}))}addEagerConstraintForPivot(t,e,n){t.whereFk(this.type,n).whereFk(this.id,this.getKeys(e,this.parentKey))}addEagerConstraintForRelated(t,e){t.whereFk(this.relatedKey,this.getKeys(e,this.relatedId))}mapPivotRelations(t,e){const n=this.mapManyRelations(e.get(),this.relatedKey);return e.orders.length?this.mapRelationsByOrders(t,n,this.id,this.relatedId):t.reduce(((t,e)=>{const i=e[this.id];t[i]||(t[i]=[]);const r=n.get(e[this.relatedId]);return void 0===r||0===r.length||(t[i]=t[i].concat(r.map((t=>(t[this.pivotKey]=e,t))))),t}),{})}createPivots(t,e,n){return ae.forOwn(e[t.entity],(i=>{const r=t.query().newQuery(this.pivot.entity).where(this.id,i[this.parentKey]).where(this.type,t.entity).get(),o=(i[n]||[]).filter((t=>!r.includes(t)));ae.isArray(o)&&0!==o.length&&this.createPivotRecord(t,e,i,o)})),e}createPivotRecord(t,e,n,i){i.forEach((i=>{const r=n[this.parentKey],o=e[this.related.entity][i][this.relatedKey],a=`${r}_${i}_${t.entity}`,s=e[this.related.entity][i][this.pivotKey]||{};e[this.pivot.entity]={...e[this.pivot.entity],[a]:{...s,$id:a,[this.relatedId]:o,[this.id]:r,[this.type]:t.entity}}}))}}class Te extends me{constructor(t,e,n,i,r,o,a,s){super(t),this.pivotKey="pivot",this.related=this.model.relation(e),this.pivot=this.model.relation(n),this.relatedId=i,this.id=r,this.type=o,this.parentKey=a,this.relatedKey=s}as(t){return this.pivotKey=t,this}define(t){return t.many(this.related)}attach(t,e,n){}make(t,e,n){return this.makeManyRelation(t,this.related)}load(t,e,n,i){const r=this.getRelation(t,this.related.entity,i),o=t.newQuery(this.pivot.entity);this.addEagerConstraintForPivot(o,e,this.related.entity);const a=o.get();this.addEagerConstraintForRelated(r,a);const s=this.mapPivotRelations(a,r);e.forEach((t=>{const e=s[t[this.parentKey]];t[n]=e||[]}))}addEagerConstraintForPivot(t,e,n){t.whereFk(this.type,n).whereFk(this.relatedId,this.getKeys(e,this.parentKey))}addEagerConstraintForRelated(t,e){t.whereFk(this.relatedKey,this.getKeys(e,this.id))}mapPivotRelations(t,e){const n=this.mapManyRelations(e.get(),this.relatedKey);return e.orders.length?this.mapRelationsByOrders(t,n,this.relatedId,this.id):t.reduce(((t,e)=>{const i=e[this.relatedId];t[i]||(t[i]=[]);const r=n.get(e[this.id]);return void 0===r||0===r.length||(t[i]=t[i].concat(r.map((t=>(t[this.pivotKey]=e,t))))),t}),{})}createPivots(t,e,n){return ae.forOwn(e[t.entity],(t=>{const i=t[n];ae.isArray(i)&&this.createPivotRecord(e,t,i)})),e}createPivotRecord(t,e,n){n.forEach((n=>{const i=e[this.parentKey],r=`${n}_${i}_${this.related.entity}`,o=t[this.related.entity][n][this.pivotKey]||{};t[this.pivot.entity]={...t[this.pivot.entity],[r]:{...o,$id:r,[this.relatedId]:i,[this.id]:this.model.getIdFromRecord(t[this.related.entity][n]),[this.type]:this.related.entity}}}))}}const Oe={relations:!0};function ke(t,e={}){e={...Oe,...e};const n={},i=t.$fields();for(const r in i){const o=i[r],a=t[r];o instanceof me?n[r]=e.relations?Pe(a):Me(a):n[r]=Ae(t[r])}return n}function Ae(t){return null===t?null:ne(t)?t.map((t=>Ae(t))):"object"==typeof t?function(t){const e={};for(const n in t)e[n]=Ae(t[n]);return e}(t):t}function Pe(t){return null===t?null:ne(t)?t.map((t=>t.$toJson())):t.$toJson()}function Me(t){return ne(t)?[]:null}class Le{constructor(t){this.$id=null,this.$fill(t)}static fields(){return{}}static attr(t,e){return new ue(this,t,e)}static string(t,e){return new de(this,t,e)}static number(t,e){return new he(this,t,e)}static boolean(t,e){return new pe(this,t,e)}static uid(t){return new fe(this,t)}static increment(){return console.warn("[Vuex ORM] Attribute type `increment` has been deprecated and replaced with `uid`."),this.uid()}static hasOne(t,e,n){return new ve(this,t,e,this.localKey(n))}static belongsTo(t,e,n){return new ge(this,t,e,this.relation(t).localKey(n))}static hasMany(t,e,n){return new be(this,t,e,this.localKey(n))}static hasManyBy(t,e,n){return new ye(this,t,e,this.relation(t).localKey(n))}static hasManyThrough(t,e,n,i,r,o){return new _e(this,t,e,n,i,this.localKey(r),this.relation(e).localKey(o))}static belongsToMany(t,e,n,i,r,o){return new we(this,t,e,n,i,this.localKey(r),this.relation(t).localKey(o))}static morphTo(t,e){return new xe(this,t,e)}static morphOne(t,e,n,i){return new Ce(this,t,e,n,this.localKey(i))}static morphMany(t,e,n,i){return new Se(this,t,e,n,this.localKey(i))}static morphToMany(t,e,n,i,r,o,a){return new Ee(this,t,e,n,i,r,this.localKey(o),this.relation(t).localKey(a))}static morphedByMany(t,e,n,i,r,o,a){return new Te(this,t,e,n,i,r,this.localKey(o),this.relation(t).localKey(a))}static mutators(){return{}}static types(){return{}}static store(){return ee.store}static database(){return this.store().$db()}static namespace(t){return`${this.database().namespace}/${this.entity}/${t}`}static getters(t){return this.store().getters[this.namespace(t)]}static dispatch(t,e){return this.store().dispatch(this.namespace(t),e)}static commit(t){this.store().commit(`${this.database().namespace}/$mutate`,{entity:this.entity,callback:t})}static getFields(){return this.cachedFields||(this.cachedFields={}),this.cachedFields[this.entity]||(this.cachedFields[this.entity]=this.fields()),this.cachedFields[this.entity]}static all(){return this.getters("all")()}static find(t){return this.getters("find")(t)}static findIn(t){return this.getters("findIn")(t)}static query(){return this.getters("query")()}static exists(){return this.query().exists()}static new(){return this.dispatch("new")}static create(t){return this.dispatch("create",t)}static insert(t){return this.dispatch("insert",t)}static update(t){return this.dispatch("update",t)}static insertOrUpdate(t){return this.dispatch("insertOrUpdate",t)}static delete(t){return this.dispatch("delete",t)}static deleteAll(){return this.dispatch("deleteAll")}static isPrimaryKey(t){return ae.isArray(this.primaryKey)?this.primaryKey.includes(t):this.primaryKey===t}static isCompositePrimaryKey(){return ae.isArray(this.primaryKey)}static getIdFromRecord(t){const e=this.primaryKey;if("string"==typeof e)return this.getIdFromValue(t[e]);const n=e.reduce(((e,n)=>{const i=this.getIdFromValue(t[n]);return null!==i&&e.push(i),e}),[]);return n.length===e.length?n:null}static getIdFromValue(t){return"string"==typeof t&&""!==t||"number"==typeof t?t:null}static getIndexIdFromRecord(t){const e=this.getIdFromRecord(t);return null===e?null:ae.isArray(e)?JSON.stringify(e):String(e)}static localKey(t){return t||("string"==typeof this.primaryKey?this.primaryKey:"id")}static getModelFromRecord(t){return t instanceof this?t.$self():this.getTypeModel(t[this.typeKey])}static relation(t){return"string"!=typeof t?t:this.database().model(t)}static pivotFields(){const t=[];return ae.forOwn(this.getFields(),((e,n)=>{(e instanceof we||e instanceof Ee||e instanceof Te)&&t.push({[n]:e})})),t}static hasPivotFields(){return this.pivotFields().length>0}static hasTypes(){return Object.keys(this.types()).length>0}static getTypeModel(t){const e=this.types()[t];return e||null}static getTypeKeyValueFromModel(t){const e=t||this,n=this.types();for(const t in n)if(n[t].entity===e.entity)return t;return null}static findRelationInSubTypes(t){const e=this.types();for(const n in e){const i=e[n].getFields();for(const e in i)if(e===t&&i[e]instanceof me)return i[e]}return null}static hydrate(t){return new this(t).$getAttributes()}$self(){return this.constructor}$primaryKey(){return this.$self().primaryKey}$fields(){return this.$self().getFields()}$setIndexId(t){return this.$id=t,this}$store(){return this.$self().store()}$namespace(t){return this.$self().namespace(t)}$getters(t){return this.$self().getters(t)}async $dispatch(t,e){return this.$self().dispatch(t,e)}$all(){return this.$getters("all")()}$find(t){return this.$getters("find")(t)}$findIn(t){return this.$getters("findIn")(t)}$query(){return this.$getters("query")()}async $create(t){return this.$dispatch("create",t)}async $insert(t){return this.$dispatch("insert",t)}async $update(t){return ae.isArray(t)||void 0!==t.where?this.$dispatch("update",t):null===this.$self().getIndexIdFromRecord(t)?this.$dispatch("update",{where:this.$self().getIdFromRecord(this),data:t}):this.$dispatch("update",t)}async $insertOrUpdate(t){return this.$dispatch("insertOrUpdate",t)}async $save(){const t=this.$self().getFields(),e=Object.keys(t).reduce(((e,n)=>(t[n]instanceof ce&&(e[n]=this[n]),e)),{}),n=await this.$dispatch("insertOrUpdate",{data:e});return this.$fill(n[this.$self().entity][0]),this}async $delete(){const t=this.$primaryKey();return ae.isArray(t)?this.$dispatch("delete",(e=>t.every((t=>e[t]===this[t])))):this.$dispatch("delete",this[t])}async $deleteAll(){return this.$dispatch("deleteAll")}$fill(t={}){const e=this.$fields();for(const n in e){const i=e[n],r=t[n];this[n]=i.make(r,t,n)}void 0!==t.$id&&this.$setIndexId(t.$id)}$generateId(){return this.$generatePrimaryId().$generateIndexId()}$generatePrimaryId(){const t=this.$self().primaryKey;return(ae.isArray(t)?t:[t]).forEach((t=>{void 0!==this[t]&&null!==this[t]||(this[t]=se.make())})),this}$generateIndexId(){return this.$setIndexId(this.$getIndexIdFromAttributes())}$getIndexIdFromAttributes(){return this.$self().getIndexIdFromRecord(this)}$getAttributes(){return function(t){const e=ke(t,{relations:!1});return e.$id=t.$id,e}(this)}$toJson(){return ke(this)}}Le.primaryKey="id",Le.typeKey="type",Le.state={};const De={query:(t,e,n,i)=>()=>i[`${t.$connection}/query`](t.$name),all:(t,e,n,i)=>()=>i[`${t.$connection}/all`](t.$name),find:(t,e,n,i)=>e=>i[`${t.$connection}/find`](t.$name,e),findIn:(t,e,n,i)=>e=>i[`${t.$connection}/findIn`](t.$name,e)};const Re={new:async function(t){const e=t.state,n=e.$name;return t.dispatch(`${e.$connection}/new`,{entity:n},{root:!0})},create:async function(t,e){const n=t.state,i=n.$name;return t.dispatch(`${n.$connection}/create`,{...e,entity:i},{root:!0})},insert:async function(t,e){const n=t.state,i=n.$name;return t.dispatch(`${n.$connection}/insert`,{...e,entity:i},{root:!0})},update:async function(t,e){const n=t.state,i=n.$name;return ne(e)||void 0===e.data?t.dispatch(`${n.$connection}/update`,{entity:i,data:e},{root:!0}):t.dispatch(`${n.$connection}/update`,{entity:i,...e},{root:!0})},insertOrUpdate:async function(t,e){const n=t.state,i=n.$name;return t.dispatch(`${n.$connection}/insertOrUpdate`,{entity:i,...e},{root:!0})},delete:async function(t,e){const n=t.state,i=n.$name,r=e;return t.dispatch(`${n.$connection}/delete`,{entity:i,where:r},{root:!0})},deleteAll:async function(t){const e=t.state,n=e.$name;return t.dispatch(`${e.$connection}/deleteAll`,{entity:n},{root:!0})}};function Ie(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function je(t,e,n){return e&&Ie(t.prototype,e),n&&Ie(t,n),t}function Ne(){return Ne=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Ne.apply(this,arguments)}function Fe(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function ze(t){return!(!t||"function"!=typeof t.hasOwnProperty||!(t.hasOwnProperty("__ownerID")||t._map&&t._map.hasOwnProperty("__ownerID")))}function Be(t,e,n){return Object.keys(t).reduce((function(e,i){var r=""+i;return e.has(r)?e.set(r,n(e.get(r),t[r])):e}),e)}var $e=function(){function t(t,e,n){if(void 0===e&&(e={}),void 0===n&&(n={}),!t||"string"!=typeof t)throw new Error("Expected a string key for Entity, but found "+t+".");var i=n,r=i.idAttribute,o=void 0===r?"id":r,a=i.mergeStrategy,s=void 0===a?function(t,e){return Ne({},t,e)}:a,l=i.processStrategy,c=void 0===l?function(t){return Ne({},t)}:l,u=i.fallbackStrategy,d=void 0===u?function(t,e){}:u;this._key=t,this._getId="function"==typeof o?o:function(t){return function(e){return ze(e)?e.get(t):e[t]}}(o),this._idAttribute=o,this._mergeStrategy=s,this._processStrategy=c,this._fallbackStrategy=d,this.define(e)}var e=t.prototype;return e.define=function(t){this.schema=Object.keys(t).reduce((function(e,n){var i,r=t[n];return Ne({},e,((i={})[n]=r,i))}),this.schema||{})},e.getId=function(t,e,n){return this._getId(t,e,n)},e.merge=function(t,e){return this._mergeStrategy(t,e)},e.fallback=function(t,e){return this._fallbackStrategy(t,e)},e.normalize=function(t,e,n,i,r,o){var a=this,s=this.getId(t,e,n),l=this.key;if(l in o||(o[l]={}),s in o[l]||(o[l][s]=[]),o[l][s].some((function(e){return e===t})))return s;o[l][s].push(t);var c=this._processStrategy(t,e,n);return Object.keys(this.schema).forEach((function(e){if(c.hasOwnProperty(e)&&"object"==typeof c[e]){var n=a.schema[e],s="function"==typeof n?n(t):n;c[e]=i(c[e],c,e,s,r,o)}})),r(this,c,t,e,n),s},e.denormalize=function(t,e){var n=this;return ze(t)?Be(this.schema,t,e):(Object.keys(this.schema).forEach((function(i){if(t.hasOwnProperty(i)){var r=n.schema[i];t[i]=e(t[i],r)}})),t)},je(t,[{key:"key",get:function(){return this._key}},{key:"idAttribute",get:function(){return this._idAttribute}}]),t}(),Ue=function(){function t(t,e){e&&(this._schemaAttribute="string"==typeof e?function(t){return t[e]}:e),this.define(t)}var e=t.prototype;return e.define=function(t){this.schema=t},e.getSchemaAttribute=function(t,e,n){return!this.isSingleSchema&&this._schemaAttribute(t,e,n)},e.inferSchema=function(t,e,n){if(this.isSingleSchema)return this.schema;var i=this.getSchemaAttribute(t,e,n);return this.schema[i]},e.normalizeValue=function(t,e,n,i,r,o){var a=this.inferSchema(t,e,n);if(!a)return t;var s=i(t,e,n,a,r,o);return this.isSingleSchema||null==s?s:{id:s,schema:this.getSchemaAttribute(t,e,n)}},e.denormalizeValue=function(t,e){var n=ze(t)?t.get("schema"):t.schema;return this.isSingleSchema||n?e((this.isSingleSchema?void 0:ze(t)?t.get("id"):t.id)||t,this.isSingleSchema?this.schema:this.schema[n]):t},je(t,[{key:"isSingleSchema",get:function(){return!this._schemaAttribute}}]),t}(),He=function(t){function e(e,n){if(!n)throw new Error('Expected option "schemaAttribute" not found on UnionSchema.');return t.call(this,e,n)||this}Fe(e,t);var n=e.prototype;return n.normalize=function(t,e,n,i,r,o){return this.normalizeValue(t,e,n,i,r,o)},n.denormalize=function(t,e){return this.denormalizeValue(t,e)},e}(Ue),Ve=function(t){function e(){return t.apply(this,arguments)||this}Fe(e,t);var n=e.prototype;return n.normalize=function(t,e,n,i,r,o){var a=this;return Object.keys(t).reduce((function(e,n,s){var l,c=t[n];return null!=c?Ne({},e,((l={})[n]=a.normalizeValue(c,t,n,i,r,o),l)):e}),{})},n.denormalize=function(t,e){var n=this;return Object.keys(t).reduce((function(i,r){var o,a=t[r];return Ne({},i,((o={})[r]=n.denormalizeValue(a,e),o))}),{})},e}(Ue),Ye=function(t){return Array.isArray(t)?t:Object.keys(t).map((function(e){return t[e]}))},qe=function(t,e,n,i,r,o,a){return t=function(t){if(Array.isArray(t)&&t.length>1)throw new Error("Expected schema definition to be a single schema, but found "+t.length+".");return t[0]}(t),Ye(e).map((function(e,s){return r(e,n,i,t,o,a)}))},We=function(t){function e(){return t.apply(this,arguments)||this}Fe(e,t);var n=e.prototype;return n.normalize=function(t,e,n,i,r,o){var a=this;return Ye(t).map((function(t,s){return a.normalizeValue(t,e,n,i,r,o)})).filter((function(t){return null!=t}))},n.denormalize=function(t,e){var n=this;return t&&t.map?t.map((function(t){return n.denormalizeValue(t,e)})):t},e}(Ue),Ge=function(t,e,n,i,r,o,a){var s=Ne({},e);return Object.keys(t).forEach((function(n){var i=t[n],l="function"==typeof i?i(e):i,c=r(e[n],e,n,l,o,a);null==c?delete s[n]:s[n]=c})),s},Xe=function(t,e,n){if(ze(e))return Be(t,e,n);var i=Ne({},e);return Object.keys(t).forEach((function(e){null!=i[e]&&(i[e]=n(i[e],t[e]))})),i},Ke=function(){function t(t){this.define(t)}var e=t.prototype;return e.define=function(t){this.schema=Object.keys(t).reduce((function(e,n){var i,r=t[n];return Ne({},e,((i={})[n]=r,i))}),this.schema||{})},e.normalize=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Ge.apply(void 0,[this.schema].concat(e))},e.denormalize=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Xe.apply(void 0,[this.schema].concat(e))},t}(),Ze=function t(e,n,i,r,o,a){return"object"==typeof e&&e?"object"!=typeof r||r.normalize&&"function"==typeof r.normalize?r.normalize(e,n,i,t,o,a):(Array.isArray(r)?qe:Ge)(r,e,n,i,t,o,a):e},Je={Array:We,Entity:$e,Object:Ke,Union:He,Values:Ve};class Qe{static process(t,e){if(ae.isEmpty(e))return{};const n=t.database.schemas[t.model.entity];return function(t,e){if(!t||"object"!=typeof t)throw new Error('Unexpected input given to normalize. Expected type to be "object", found "'+(null===t?"null":typeof t)+'".');var n={},i=function(t){return function(e,n,i,r,o){var a=e.key,s=e.getId(i,r,o);a in t||(t[a]={});var l=t[a][s];t[a][s]=l?e.merge(l,n):n}}(n);return{entities:n,result:Ze(t,t,null,e,i,{})}}(e,ae.isArray(e)?[n]:n).entities}}class tn{static process(t,e){return Object.keys(e).forEach((n=>{const i=t.getModel(n);i.hasPivotFields()&&ae.forOwn(i.pivotFields(),(t=>{ae.forOwn(t,((t,n)=>{t.createPivots(i,e,n)}))}))})),e}}class en{static process(t,e){return ae.forOwn(e,((n,i)=>{const r=t.getModel(i).fields();ae.forOwn(n,(t=>{ae.forOwn(t,((n,i)=>{const o=r[i];o instanceof me&&null!==n&&o.attach(n,t,e)}))}))})),e}}class nn{static normalize(t,e){let n=Qe.process(t,e);return n=en.process(t,n),n=tn.process(t,n),n}}class rn{static filter(t,e){return 0===t.wheres.length?e:e.filter((e=>this.check(t,e)))}static check(t,e){const n=ae.groupBy(t.wheres,(t=>t.boolean)),i=this.getComparator(t,e);let r=[];return n.and&&r.push(n.and.every(i)),n.or&&r.push(n.or.some(i)),-1!==r.indexOf(!0)}static getComparator(t,e){return n=>{if("function"==typeof n.field){const i=new un(t.store,t.entity),r=this.executeWhereClosure(i,e,n.field);if("boolean"==typeof r)return r;const o=i.get();return!ae.isEmpty(o.filter((t=>t.$id===e.$id)))}return"function"==typeof n.value?n.value(e[n.field]):ae.isArray(n.value)?-1!==n.value.indexOf(e[n.field]):e[n.field]===n.value}}static executeWhereClosure(t,e,n){if(3!==n.length)return n(e,t);const i=new t.model(e);return n(e,t,i)}}class on{static filter(t,e){if(0===t.orders.length)return e;const n=t.orders.map((t=>t.key)),i=t.orders.map((t=>t.direction));return ae.orderBy(e,n,i)}}class an{static filter(t,e){return e.slice(t.offsetNumber,t.offsetNumber+t.limitNumber)}}class sn{static where(t,e){return rn.filter(t,e)}static orderBy(t,e){return on.filter(t,e)}static limit(t,e){return an.filter(t,e)}}class ln{static with(t,e,n){"*"!==e?ne(e)?e.forEach((e=>this.with(t,e,n))):this.parseWithRelations(t,e.split("."),n):this.withAll(t,n)}static withAll(t,e){const n=t.model.getFields();for(const i in n)n[i]instanceof me&&this.with(t,i,e)}static withAllRecursive(t,e){this.withAll(t,(t=>{e>0&&t.withAllRecursive(e-1)}))}static setEagerLoad(t,e,n=null){t.load[e]||(t.load[e]=[]),n&&t.load[e].push(n)}static parseWithRelations(t,e,n){const i=e[0];i.split("|").forEach((i=>{1!==e.length?this.setEagerLoad(t,i):this.setEagerLoad(t,i,n)})),1!==e.length&&(e.shift(),this.addNestedWiths(t,i,e,n))}static addNestedWiths(t,e,n,i){this.setEagerLoad(t,e,(t=>{t.with(n.join("."),i)}))}static eagerLoadRelations(t,e){const n=t.model.getFields();for(const i in t.load){const r=t.load[i];let o=n[i];if(o instanceof me)o.load(t,e,i,r);else if(t.model.hasTypes()){const n=t.model.findRelationInSubTypes(i);null!==n&&n.load(t,e,i,r)}}}}class cn{static has(t,e,n,i){this.setHas(t,e,"exists",n,i)}static hasNot(t,e,n,i){this.setHas(t,e,"doesntExist",n,i)}static whereHas(t,e,n){this.setHas(t,e,"exists",void 0,void 0,n)}static whereHasNot(t,e,n){this.setHas(t,e,"doesntExist",void 0,void 0,n)}static setHas(t,e,n,i=">=",r=1,o=null){"number"!=typeof i?t.have.push({relation:e,type:n,operator:i,count:r,constraint:o}):t.have.push({relation:e,type:n,operator:">=",count:i,constraint:o})}static applyConstraints(t){if(0===t.have.length)return;const e=t.newQuery();this.addHasWhereConstraints(t,e),this.addHasConstraints(t,e.get())}static addHasWhereConstraints(t,e){t.have.forEach((t=>{e.with(t.relation,t.constraint)}))}static addHasConstraints(t,e){const n=this.getComparators(t),i=[];e.forEach((t=>{n.every((e=>e(t)))&&i.push(t.$self().getIdFromRecord(t))})),t.whereIdIn(i)}static getComparators(t){return t.have.map((t=>this.getComparator(t)))}static getComparator(t){const e=this.getCountComparator(t.operator);return n=>{const i=this.getRelationshipCount(n[t.relation]),r=e(i,t.count);return"exists"===t.type?r:!r}}static getRelationshipCount(t){return ne(t)?t.length:t?1:0}static getCountComparator(t){switch(t){case"=":default:return(t,e)=>t===e;case">":return(t,e)=>t>e;case">=":return(t,e)=>t>=e;case"<":return(t,e)=>t>0&&t<e;case"<=":return(t,e)=>t>0&&t<=e}}}class un{constructor(t,e){this.appliedOnBase=!0,this.idFilter=null,this.cancelIdFilter=!1,this.joinedIdFilter=null,this.wheres=[],this.have=[],this.orders=[],this.offsetNumber=0,this.limitNumber=Math.pow(2,53)-1,this.load={},this.store=t,this.database=t.$db(),this.model=this.getModel(e),this.baseModel=this.getBaseModel(e),this.entity=e,this.baseEntity=this.baseModel.entity,this.rootState=this.database.getState(),this.state=this.rootState[this.baseEntity],this.appliedOnBase=this.baseEntity===this.entity}static deleteAll(t){const e=t.$db(),n=e.models();for(const i in n){e.getState()[i]&&new this(t,i).deleteAll()}}static on(t,e){const n=++this.lastHookId;return this.hooks[t]||(this.hooks[t]=[]),this.hooks[t].push({id:n,callback:e}),n}static off(t){return Object.keys(this.hooks).some((e=>{const n=this.hooks[e],i=n.findIndex((e=>e.id===t));return-1!==i&&(n.splice(i,1),!0)}))}self(){return this.constructor}newQuery(t){return t=t||this.entity,new un(this.store,t)}getModel(t){const e=t||this.entity;return this.database.model(e)}getModels(){return this.database.models()}getBaseModel(t){return this.database.baseModel(t)}all(){return this.get()}find(t){const e=this.state.data[this.normalizeIndexId(t)];return e?this.item(this.hydrate(e)):null}findIn(t){if(!ae.isArray(t))return[];const e=t.reduce(((t,e)=>{const n=this.state.data[this.normalizeIndexId(e)];return n?(t.push(this.hydrate(n)),t):t}),[]);return this.collect(e)}get(){const t=this.select();return this.collect(t)}first(){const t=this.select();return 0===t.length?null:this.item(this.hydrate(t[0]))}last(){const t=this.select();return 0===t.length?null:this.item(this.hydrate(t[t.length-1]))}exists(){return this.select().length>0}where(t,e){return this.isIdfilterable(t)&&this.setIdFilter(e),this.wheres.push({field:t,value:e,boolean:"and"}),this}orWhere(t,e){return this.cancelIdFilter=!0,this.wheres.push({field:t,value:e,boolean:"or"}),this}whereId(t){return this.model.isCompositePrimaryKey()?this.where("$id",this.normalizeIndexId(t)):this.where(this.model.primaryKey,t)}whereIdIn(t){if(this.model.isCompositePrimaryKey()){const e=t.reduce(((t,e)=>[...t,this.normalizeIndexId(e)]),[]);return this.where("$id",e)}return this.where(this.model.primaryKey,t)}whereFk(t,e){const n=ae.isArray(e)?e:[e];return t===this.model.primaryKey?(this.setJoinedIdFilter(n),this):(this.where(t,n),this)}normalizeIndexId(t){if(this.model.isCompositePrimaryKey()){if(!ae.isArray(t))throw new Error("[Vuex ORM] Entity `"+this.entity+"` is configured with a composite primary key and expects an array value but instead received: "+JSON.stringify(t));return JSON.stringify(t)}if(ae.isArray(t))throw new Error("[Vuex ORM] Entity `"+this.entity+"` expects a single value but instead received: "+JSON.stringify(t));return t}isIdfilterable(t){return(t===this.model.primaryKey||"$id"===t)&&!this.cancelIdFilter}setIdFilter(t){const e=ae.isArray(t)?t:[t];null!==this.idFilter?this.idFilter=new Set(e.filter((t=>this.idFilter.has(t)))):this.idFilter=new Set(e)}setJoinedIdFilter(t){null!==this.joinedIdFilter?this.joinedIdFilter=new Set(t.filter((t=>this.joinedIdFilter.has(t)))):this.joinedIdFilter=new Set(t)}orderBy(t,e="asc"){return this.orders.push({key:t,direction:e}),this}offset(t){return this.offsetNumber=t,this}limit(t){return this.limitNumber=t,this}with(t,e=null){return ln.with(this,t,e),this}withAll(t=null){return ln.withAll(this,t),this}withAllRecursive(t=3){return ln.withAllRecursive(this,t),this}has(t,e,n){return cn.has(this,t,e,n),this}hasNot(t,e,n){return cn.hasNot(this,t,e,n),this}whereHas(t,e){return cn.whereHas(this,t,e),this}whereHasNot(t,e){return cn.whereHasNot(this,t,e),this}records(){return this.finalizeIdFilter(),this.getIdsToLookup().reduce(((t,e)=>{const n=this.state.data[e];if(!n)return t;const i=this.hydrate(n);return this.appliedOnBase||this.model.entity===i.$self().entity?(t.push(i),t):t}),[])}finalizeIdFilter(){this.cancelIdFilter&&null!==this.idFilter&&(this.where(this.model.isCompositePrimaryKey()?"$id":this.model.primaryKey,Array.from(this.idFilter.values())),this.idFilter=null)}getIdsToLookup(){return this.idFilter&&this.joinedIdFilter?Array.from(this.idFilter.values()).filter((t=>this.joinedIdFilter.has(t))):this.idFilter||this.joinedIdFilter?Array.from((this.idFilter||this.joinedIdFilter).values()):Object.keys(this.state.data)}select(){cn.applyConstraints(this);let t=this.records();return t=this.executeSelectHook("beforeSelect",t),t=this.filterWhere(t),t=this.executeSelectHook("afterWhere",t),t=this.filterOrderBy(t),t=this.executeSelectHook("afterOrderBy",t),t=this.filterLimit(t),t=this.executeSelectHook("afterLimit",t),t}filterWhere(t){return sn.where(this,t)}filterOrderBy(t){return sn.orderBy(this,t)}filterLimit(t){return sn.limit(this,t)}count(){return this.get().length}max(t){const e=this.get().reduce(((e,n)=>("number"==typeof n[t]&&e.push(n[t]),e)),[]);return 0===e.length?0:Math.max(...e)}min(t){const e=this.get().reduce(((e,n)=>("number"==typeof n[t]&&e.push(n[t]),e)),[]);return 0===e.length?0:Math.min(...e)}sum(t){return this.get().reduce(((e,n)=>("number"==typeof n[t]&&(e+=n[t]),e)),0)}item(t){return Object.keys(this.load).length>0&&ln.eagerLoadRelations(this,[t]),t}collect(t){return t.length<1?[]:(Object.keys(this.load).length>0&&(t=t.map((t=>new(this.model.getModelFromRecord(t))(t))),ln.eagerLoadRelations(this,t)),t)}new(){const t=(new this.model).$generateId();return this.commitInsert(t.$getAttributes()),t}create(t,e){return this.persist("create",t,e)}createRecords(t){return this.deleteAll(),this.insertRecords(t)}insert(t,e){return this.persist("insert",t,e)}insertRecords(t){let e=this.mapHydrateRecords(t);return e=this.executeMutationHooks("beforeCreate",e),this.commitInsertRecords(this.convertCollectionToRecords(e)),this.executeMutationHooks("afterCreate",e),e}update(t,e,n){if(ae.isArray(t))return this.persist("update",t,n);if("function"==typeof t){if(!e)throw new Error("You must specify `where` to update records by specifying `data` as a closure.");return"function"==typeof e?this.updateByCondition(t,e):this.updateById(t,e)}if("function"==typeof e)return this.updateByCondition(t,e);if(!e)return this.persist("update",t,n);if(this.model.isCompositePrimaryKey()&&!ae.isArray(e))throw new Error("[Vuex ORM] You can't specify `where` value as `string` or `number` when you have a composite key defined in your model. Please include composite keys to the `data` fields.");return this.updateById(t,e)}updateRecords(t){const e=this.hydrateRecordsByMerging(t);return this.performUpdate(e)}updateById(t,e){e="number"==typeof e?e.toString():this.normalizeIndexId(e);const n=this.state.data[e];if(!n)return null;const i=this.hydrate(n),r={[e]:this.processUpdate(t,i)};return this.performUpdate(r),r[e]}updateByCondition(t,e){const n=Object.keys(this.state.data).reduce(((n,i)=>{const r=this.hydrate(this.state.data[i]);return e(r)?(n[i]=this.processUpdate(t,r),n):n}),{});return this.performUpdate(n)}processUpdate(t,e){return"function"==typeof t?(t(e),e):e.constructor!==this.model&&e instanceof Le?this.hydrate({...e,...t},e.constructor):this.hydrate({...e,...t})}performUpdate(t){t=this.updateIndexes(t);const e=this.buildHooks("beforeUpdate"),n=this.buildHooks("afterUpdate"),i=[];for(const r in t){const o=t[r];e.some((t=>!1===t(o,null,this.entity)))||(this.commitInsert(o.$getAttributes()),n.forEach((t=>{t(o,null,this.entity)})),i.push(o))}return i}updateIndexes(t){return Object.keys(t).reduce(((t,e)=>{const n=t[e],i=String(this.model.getIndexIdFromRecord(n));return e!==i&&(n.$id=i,t[i]=n,delete t[e]),t}),t)}insertOrUpdate(t,e){return this.persist("insertOrUpdate",t,e)}insertOrUpdateRecords(t){let e={},n={};return Object.keys(t).forEach((i=>{const r=t[i];this.state.data[i]?n[i]=r:e[i]=r})),[...this.insertRecords(e),...this.updateRecords(n)]}persist(t,e,n){const i=ae.cloneDeep(e),r=this.normalize(i);return ae.isEmpty(r)?("create"===t&&this.emptyState(),{}):Object.entries(r).reduce(((e,[i,r])=>{const o=this.newQuery(i),a=this.getPersistMethod(i,n,t),s=o.persistRecords(a,r);return s.length>0&&(e[i]=s),e}),{})}persistRecords(t,e){switch(t){case"create":return this.createRecords(e);case"insert":return this.insertRecords(e);case"update":return this.updateRecords(e);case"insertOrUpdate":return this.insertOrUpdateRecords(e)}}getPersistMethod(t,e,n){return e.create&&e.create.includes(t)?"create":e.insert&&e.insert.includes(t)?"insert":e.update&&e.update.includes(t)?"update":e.insertOrUpdate&&e.insertOrUpdate.includes(t)?"insertOrUpdate":n}delete(t){return"function"==typeof t?this.deleteByCondition(t):this.deleteById(t)}deleteAll(){return this.appliedOnBase?this.deleteByCondition((()=>!0)):this.deleteByCondition((t=>t.$self().entity===this.model.entity))}deleteById(t){const e=this.find(t);return e?this.deleteByCondition((t=>t.$id===e.$id))[0]:null}deleteByCondition(t){let e=this.mapHydrateAndFilterRecords(this.state.data,t);return e=this.executeMutationHooks("beforeDelete",e),0===e.length?[]:(this.commitDelete(e.map((t=>t.$id))),this.executeMutationHooks("afterDelete",e),e)}commit(t,e){this.store.commit(`${this.database.namespace}/${t}`,{entity:this.baseEntity,...e})}commitInsert(t){this.commit("insert",{record:t})}commitInsertRecords(t){this.commit("insertRecords",{records:t})}commitDelete(t){this.commit("delete",{id:t})}normalize(t){return nn.normalize(this,t)}hydrate(t,e){if(e)return new e(t);const n=this.model.getModelFromRecord(t);if(null!==n)return new n(t);if(!this.appliedOnBase&&void 0===t[this.model.typeKey]){const e=this.model.getTypeKeyValueFromModel();return t={...t,[this.model.typeKey]:e},new this.model(t)}return new(this.getBaseModel(this.entity))(t)}hydrateRecordsByMerging(t){return Object.keys(t).reduce(((e,n)=>{const i=this.state.data[n];if(!i)return e;const r=t[n],o=this.model.getModelFromRecord(i);return null===o?(e[n]=this.hydrate({...i,...r}),e):(e[n]=this.hydrate({...i,...r},o),e)}),{})}mapHydrateRecords(t){return ae.map(t,(t=>this.hydrate(t)))}mapHydrateAndFilterRecords(t,e){const n=[];for(const i in t){const r=this.hydrate(t[i]);e(r)&&n.push(r)}return n}convertCollectionToRecords(t){return t.reduce(((t,e)=>(t[e.$id]=e.$getAttributes(),t)),{})}emptyState(){this.deleteAll()}buildHooks(t){const e=this.getGlobalHookAsArray(t),n=this.model[t];return n&&e.push(n.bind(this.model)),e}getGlobalHookAsArray(t){const e=this.self().hooks[t];return e?e.map((t=>t.callback.bind(this))):[]}executeMutationHooks(t,e){const n=this.buildHooks(t);return 0===n.length?e:e.filter((t=>!n.some((e=>!1===e(t,null,this.entity)))))}executeSelectHook(t,e){return this.buildHooks(t).reduce(((t,n)=>n(e,this.entity)),e)}}un.hooks={},un.lastHookId=0;const dn={query:function(t){return t=>new un(this,t)},all:function(t){return t=>new un(this,t).all()},find:function(t){return(t,e)=>new un(this,t).find(e)},findIn:function(t){return(t,e)=>new un(this,t).findIn(e)}};class hn{static createPersistOptions(t){return{create:t.create,insert:t.insert,update:t.update,insertOrUpdate:t.insertOrUpdate}}}const pn={new:async function(t,e){return new un(this,e.entity).new()},create:async function(t,e){const n=e.entity,i=e.data,r=hn.createPersistOptions(e);return new un(this,n).create(i,r)},insert:async function(t,e){const n=e.entity,i=e.data,r=hn.createPersistOptions(e);return new un(this,n).insert(i,r)},update:async function(t,e){const n=e.entity,i=e.data,r=e.where||null,o=hn.createPersistOptions(e);return new un(this,n).update(i,r,o)},insertOrUpdate:async function(t,e){const n=e.entity,i=e.data,r=hn.createPersistOptions(e);return new un(this,n).insertOrUpdate(i,r)},delete:async function(t,e){const{entity:n,where:i}=e;return new un(this,n).delete(i)},deleteAll:async function(t,e){e&&e.entity?new un(this,e.entity).deleteAll():un.deleteAll(this)}};class fn{constructor(t,e,n){this.store=t,this.connection=e,this.entity=n,this.rootState=this.store.state[e],this.state=this.rootState[n]}insert(t){this.state.data={...this.state.data,[t.$id]:t}}insertRecords(t){this.state.data={...this.state.data,...t}}delete(t){const e={};for(const n in this.state.data)t.includes(n)||(e[n]=this.state.data[n]);this.state.data=e}}const mn={$mutate:function(t,e){e.callback(t[e.entity])},insert:function(t,e){const{entity:n,record:i}=e;new fn(this,t.$name,n).insert(i)},insertRecords:function(t,e){const{entity:n,records:i}=e;new fn(this,t.$name,n).insertRecords(i)},delete:function(t,e){const{entity:n,id:i}=e;new fn(this,t.$name,n).delete(i)}};class vn{static create(t){return(e,n,i)=>{this.generateIds(e,t);return this.generateIndexId(e,t)}}static generateIds(t,e){(ne(e.primaryKey)?e.primaryKey:[e.primaryKey]).forEach((n=>{if(void 0!==t[n]&&null!==t[n])return;const i=e.getFields()[n];t[n]=i instanceof fe?i.make():se.make()}))}static generateIndexId(t,e){return t.$id=e.getIndexIdFromRecord(t),t.$id}}class gn{constructor(t){this.schemas={},this.model=t;const e=t.database().models();Object.keys(e).forEach((t=>{this.one(e[t])}))}static create(t){return new this(t).one()}one(t){if(t=t||this.model,this.schemas[t.entity])return this.schemas[t.entity];const e=new Je.Entity(t.entity,{},{idAttribute:vn.create(t)});this.schemas[t.entity]=e;const n=this.definition(t);return e.define(n),e}many(t){return new Je.Array(this.one(t))}union(t){return new Je.Union(this.schemas,t)}definition(t){const e=t.getFields();return Object.keys(e).reduce(((t,n)=>{const i=e[n];return i instanceof me&&(t[n]=i.define(this)),t}),{})}}class bn{constructor(){this.entities=[],this.schemas={},this.isStarted=!1}start(t,e){this.store=t,this.namespace=e,this.connect(),this.registerModules(),this.createSchema(),this.isStarted=!0}register(t,e={}){this.checkModelTypeMappingCapability(t);const n={name:t.entity,base:t.baseEntity||t.entity,model:this.createBindingModel(t),module:e};this.entities.push(n),this.isStarted&&(this.registerModule(n),this.registerSchema(n))}model(t){const e="string"==typeof t?t:t.entity,n=this.entities.find((t=>t.name===e)),i=n?n.model:null;if(!i)throw new Error(`[Vuex ORM] Could not find the model \`${e}\`. Please check if you have registered the model to the database.`);return i}baseModel(t){const e="string"==typeof t?t:t.entity,n=this.entities.find((t=>t.name===e)),i=n?this.model(n.base):null;if(!i)throw new Error(`[Vuex ORM] Could not find the model \`${e}\`. Please check if you have registered the model to the database.`);return i}models(){return this.entities.reduce(((t,e)=>(t[e.name]=e.model,t)),{})}baseModels(){return this.entities.reduce(((t,e)=>(t[e.name]=this.model(e.base),t)),{})}module(t){const e=this.modules()[t];if(!e)throw new Error(`[Vuex ORM] Could not find the module \`${t}\`. Please check if you have registered the module to the database.`);return e}modules(){return this.entities.reduce(((t,e)=>(t[e.name]=e.module,t)),{})}getState(){return this.store.state[this.namespace]}createBindingModel(t){let e;try{e=new Function("model",`\n        'use strict';\n        return class ${t.name} extends model {}\n      `)(t)}catch(n){e=class extends t{},Object.defineProperty(e,"name",{get:()=>t.name})}return Object.defineProperty(e,"store",{value:()=>this.store}),e}registerModules(){this.store.registerModule(this.namespace,this.createModule())}registerModule(t){this.store.registerModule([this.namespace,t.name],this.createSubModule(t))}createModule(){const t=this.createRootModule();return this.entities.forEach((e=>{t.modules[e.name]=this.createSubModule(e)})),t}createRootModule(){return{namespaced:!0,state:this.createRootState(),getters:this.createRootGetters(),actions:this.createRootActions(),mutations:this.createRootMutations(),modules:{}}}createRootState(){return()=>({$name:this.namespace})}createRootGetters(){return re(dn,((t,e)=>dn[e].bind(this.store)))}createRootActions(){return pn}createRootMutations(){return mn}createSubModule(t){return{namespaced:!0,state:this.createSubState(t),getters:this.createSubGetters(t),actions:this.createSubActions(t),mutations:this.createSubMutations(t)}}createSubState(t){const{name:e,model:n,module:i}=t,r="function"==typeof n.state?n.state():n.state,o="function"==typeof i.state?i.state():i.state;return()=>({...r,...o,$connection:this.namespace,$name:e,data:{}})}createSubGetters(t){return{...De,...t.module.getters}}createSubActions(t){return{...Re,...t.module.actions}}createSubMutations(t){var e;return null!==(e=t.module.mutations)&&void 0!==e?e:{}}createSchema(){this.entities.forEach((t=>{this.registerSchema(t)}))}registerSchema(t){this.schemas[t.name]=gn.create(t.model)}connect(){this.store.$db=()=>this}checkModelTypeMappingCapability(t){if(!t.baseEntity)return;const e=this.model(t.baseEntity);e&&e.types===Le.types&&console.warn(`[Vuex ORM] Model \`${t.name}\` extends \`${e.name}\` which doesn't overwrite Model.types(). You will not be able to use type mapping.`)}}const yn={install:(t,e={})=>{const n=e.namespace||"entities";return e=>{t.start(e,n),ee.register(e)}},use:function(t,e={}){const n={Model:Le,Attribute:le,Type:ce,Attr:ue,String:de,Number:he,Boolean:pe,Uid:fe,Relation:me,HasOne:ve,BelongsTo:ge,HasMany:be,HasManyBy:ye,BelongsToMany:we,HasManyThrough:_e,MorphTo:xe,MorphOne:Ce,MorphMany:Se,MorphToMany:Ee,MorphedByMany:Te,Getters:De,Actions:Re,RootGetters:dn,RootActions:pn,RootMutations:mn,Query:un,Database:bn};t.install(n,e)},Container:ee,Database:bn,Model:Le,Attribute:le,Type:ce,Attr:ue,String:de,Number:he,Boolean:pe,Uid:fe,Relation:me,HasOne:ve,BelongsTo:ge,HasMany:be,HasManyBy:ye,BelongsToMany:we,HasManyThrough:_e,MorphTo:xe,MorphOne:Ce,MorphMany:Se,MorphToMany:Ee,MorphedByMany:Te,Getters:De,Actions:Re,RootGetters:dn,RootActions:pn,RootMutations:mn,Query:un}},2505:(t,e,n)=>{t.exports=n(8015)},5592:(t,e,n)=>{"use strict";var i=n(9516),r=n(7522),o=n(3948),a=n(9106),s=n(9615),l=n(2012),c=n(4202),u=n(7763);t.exports=function(t){return new Promise((function(e,n){var d=t.data,h=t.headers;i.isFormData(d)&&delete h["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var f=t.auth.username||"",m=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";h.Authorization="Basic "+btoa(f+":"+m)}var v=s(t.baseURL,t.url);if(p.open(t.method.toUpperCase(),a(v,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var i="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,o={data:t.responseType&&"text"!==t.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:i,config:t,request:p};r(e,n,o),p=null}},p.onabort=function(){p&&(n(u("Request aborted",t,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(u("Network Error",t,null,p)),p=null},p.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(u(e,t,"ECONNABORTED",p)),p=null},i.isStandardBrowserEnv()){var g=(t.withCredentials||c(v))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;g&&(h[t.xsrfHeaderName]=g)}if("setRequestHeader"in p&&i.forEach(h,(function(t,e){void 0===d&&"content-type"===e.toLowerCase()?delete h[e]:p.setRequestHeader(e,t)})),i.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),t.responseType)try{p.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){p&&(p.abort(),n(t),p=null)})),d||(d=null),p.send(d)}))}},8015:(t,e,n)=>{"use strict";var i=n(9516),r=n(9012),o=n(5155),a=n(5343);function s(t){var e=new o(t),n=r(o.prototype.request,e);return i.extend(n,o.prototype,e),i.extend(n,e),n}var l=s(n(6987));l.Axios=o,l.create=function(t){return s(a(l.defaults,t))},l.Cancel=n(1928),l.CancelToken=n(3191),l.isCancel=n(3864),l.all=function(t){return Promise.all(t)},l.spread=n(7980),l.isAxiosError=n(5019),t.exports=l,t.exports.default=l},1928:t=>{"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},3191:(t,e,n)=>{"use strict";var i=n(1928);function r(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new i(t),e(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var t;return{token:new r((function(e){t=e})),cancel:t}},t.exports=r},3864:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},5155:(t,e,n)=>{"use strict";var i=n(9516),r=n(9106),o=n(3471),a=n(4490),s=n(5343);function l(t){this.defaults=t,this.interceptors={request:new o,response:new o}}l.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},l.prototype.getUri=function(t){return t=s(this.defaults,t),r(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(t){l.prototype[t]=function(e,n,i){return this.request(s(i||{},{method:t,url:e,data:n}))}})),t.exports=l},3471:(t,e,n)=>{"use strict";var i=n(9516);function r(){this.handlers=[]}r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){i.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=r},9615:(t,e,n)=>{"use strict";var i=n(9137),r=n(4680);t.exports=function(t,e){return t&&!i(e)?r(t,e):e}},7763:(t,e,n)=>{"use strict";var i=n(5449);t.exports=function(t,e,n,r,o){var a=new Error(t);return i(a,e,n,r,o)}},4490:(t,e,n)=>{"use strict";var i=n(9516),r=n(2881),o=n(3864),a=n(6987);function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=r(t.data,t.headers,t.transformRequest),t.headers=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return s(t),e.data=r(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(s(t),e&&e.response&&(e.response.data=r(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},5449:t=>{"use strict";t.exports=function(t,e,n,i,r){return t.config=e,n&&(t.code=n),t.request=i,t.response=r,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},5343:(t,e,n)=>{"use strict";var i=n(9516);t.exports=function(t,e){e=e||{};var n={},r=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(t,e){return i.isPlainObject(t)&&i.isPlainObject(e)?i.merge(t,e):i.isPlainObject(e)?i.merge({},e):i.isArray(e)?e.slice():e}function c(r){i.isUndefined(e[r])?i.isUndefined(t[r])||(n[r]=l(void 0,t[r])):n[r]=l(t[r],e[r])}i.forEach(r,(function(t){i.isUndefined(e[t])||(n[t]=l(void 0,e[t]))})),i.forEach(o,c),i.forEach(a,(function(r){i.isUndefined(e[r])?i.isUndefined(t[r])||(n[r]=l(void 0,t[r])):n[r]=l(void 0,e[r])})),i.forEach(s,(function(i){i in e?n[i]=l(t[i],e[i]):i in t&&(n[i]=l(void 0,t[i]))}));var u=r.concat(o).concat(a).concat(s),d=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===u.indexOf(t)}));return i.forEach(d,c),n}},7522:(t,e,n)=>{"use strict";var i=n(7763);t.exports=function(t,e,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(i("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},2881:(t,e,n)=>{"use strict";var i=n(9516);t.exports=function(t,e,n){return i.forEach(n,(function(n){t=n(t,e)})),t}},6987:(t,e,n)=>{"use strict";var i=n(5606),r=n(9516),o=n(7018),a={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var l,c={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==i&&"[object process]"===Object.prototype.toString.call(i))&&(l=n(5592)),l),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(s(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){c.headers[t]=r.merge(a)})),t.exports=c},9012:t=>{"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return t.apply(e,n)}}},9106:(t,e,n)=>{"use strict";var i=n(9516);function r(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(i.isURLSearchParams(e))o=e.toString();else{var a=[];i.forEach(e,(function(t,e){null!=t&&(i.isArray(t)?e+="[]":t=[t],i.forEach(t,(function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),a.push(r(e)+"="+r(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},4680:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},3948:(t,e,n)=>{"use strict";var i=n(9516);t.exports=i.isStandardBrowserEnv()?{write:function(t,e,n,r,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(r)&&s.push("path="+r),i.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},9137:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},5019:t=>{"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},4202:(t,e,n)=>{"use strict";var i=n(9516);t.exports=i.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(t){var i=t;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=r(window.location.href),function(e){var n=i.isString(e)?r(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},7018:(t,e,n)=>{"use strict";var i=n(9516);t.exports=function(t,e){i.forEach(t,(function(n,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[i])}))}},2012:(t,e,n)=>{"use strict";var i=n(9516),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(i.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=i.trim(t.substr(0,o)).toLowerCase(),n=i.trim(t.substr(o+1)),e){if(a[e]&&r.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},7980:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},9516:(t,e,n)=>{"use strict";var i=n(9012),r=Object.prototype.toString;function o(t){return"[object Array]"===r.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function l(t){if("[object Object]"!==r.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function c(t){return"[object Function]"===r.call(t)}function u(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.call(null,t[r],r,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===r.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isPlainObject:l,isUndefined:a,isDate:function(t){return"[object Date]"===r.call(t)},isFile:function(t){return"[object File]"===r.call(t)},isBlob:function(t){return"[object Blob]"===r.call(t)},isFunction:c,isStream:function(t){return s(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:u,merge:function t(){var e={};function n(n,i){l(e[i])&&l(n)?e[i]=t(e[i],n):l(n)?e[i]=t({},n):o(n)?e[i]=n.slice():e[i]=n}for(var i=0,r=arguments.length;i<r;i++)u(arguments[i],n);return e},extend:function(t,e,n){return u(e,(function(e,r){t[r]=n&&"function"==typeof e?i(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},5189:t=>{var e=/^(attrs|props|on|nativeOn|class|style|hook)$/;function n(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}t.exports=function(t){return t.reduce((function(t,i){var r,o,a,s,l;for(a in i)if(r=t[a],o=i[a],r&&e.test(a))if("class"===a&&("string"==typeof r&&(l=r,t[a]=r={},r[l]=!0),"string"==typeof o&&(l=o,i[a]=o={},o[l]=!0)),"on"===a||"nativeOn"===a||"hook"===a)for(s in o)r[s]=n(r[s],o[s]);else if(Array.isArray(r))t[a]=r.concat(o);else if(Array.isArray(o))t[a]=[r].concat(o);else for(s in o)r[s]=o[s];else t[a]=i[a];return t}),{})}},5501:()=>{!function(t){"use strict";var e=!1,n=t.fn.val;function i(t,n){t.addEventListener("mousedown",(function(t){t.preventDefault(),n(t)})),t.addEventListener("touchstart",(function(t){t.cancelable&&t.preventDefault(),n(t)})),t.addEventListener("keydown",(function(t){32!==t.keyCode||e||(e=!0,n(t))}))}t.fn.val=function(t){return arguments.length>=1&&this[0]&&this[0]["bootstrap-input-spinner"]&&this[0].setValue&&this[0].setValue(t),n.apply(this,arguments)},t.fn.InputSpinner=t.fn.inputSpinner=function(n){var r={decrementButton:"<strong>-</strong>",incrementButton:"<strong>+</strong>",groupClass:"",buttonsClass:"btn-primary",buttonsWidth:"2.125rem",textAlign:"center",maxWidth:"50px",autoDelay:500,autoInterval:100,boostThreshold:10,boostMultiplier:"auto",locale:null};for(var o in n)r[o]=n[o];var a='<div class="input-group '+r.groupClass+'"><div class="input-group-prepend"><button style="min-width: '+r.buttonsWidth+'" class="btn btn-decrement '+r.buttonsClass+'" type="button">'+r.decrementButton+'</button></div><input type="text" style="text-align: '+r.textAlign+";max-width: "+r.maxWidth+'" class="form-control"/><div class="input-group-append"><button style="min-width: '+r.buttonsWidth+'" class="btn btn-increment '+r.buttonsClass+'" type="button">'+r.incrementButton+"</button></div></div>",s=r.locale||navigator.language||"en-US";this.each((function(){var n=t(this);n[0]["bootstrap-input-spinner"]=!0,n.hide();var o=null,l=null,c="auto"===r.boostMultiplier,u=c?1:r.boostMultiplier,d=t(a),h=d.find(".btn-decrement"),p=d.find(".btn-increment"),f=d.find("input"),m=null,v=null,g=null,b=null,y=null;R();var _,w,x=new Intl.NumberFormat(s,{minimumFractionDigits:y,maximumFractionDigits:y}),C=parseFloat(n[0].value),S=0,E=n.attr("data-prefix")||"",T=n.attr("data-suffix")||"";if(E){var O=t('<span class="input-group-text">'+E+"</span>");d.find(".input-group-prepend").append(O)}if(T){var k=t('<span class="input-group-text">'+T+"</span>");d.find(".input-group-append").prepend(k)}function A(t,e){void 0===e&&(e=!0),isNaN(t)||""===t?(n[0].value="",e&&(f[0].value=""),C=0):(t=parseFloat(t),t=Math.min(Math.max(t,m),v),t=Math.round(t*Math.pow(10,y))/Math.pow(10,y),n[0].value=t,e&&(f[0].value=x.format(t)),C=t)}function P(t,e){e&&setTimeout((function(){var n;"function"==typeof Event?n=new Event(e,{bubbles:!0}):(n=document.createEvent("Event")).initEvent(e,!0,!0),t[0].dispatchEvent(n)}))}function M(t){f[0].disabled||(L(t),D(),o=setTimeout((function(){l=setInterval((function(){S>r.boostThreshold?c?(L(t*parseInt(u,10)),u<1e8&&(u*=1.1),b&&(u=Math.min(b,u))):L(t*u):L(t),S++}),r.autoInterval)}),r.autoDelay))}function L(t){isNaN(C)&&(C=0),A(Math.round(C/t)*t+t),P(n,"input"),P(n,"change")}function D(){S=0,u=u=c?1:r.boostMultiplier,clearTimeout(o),clearTimeout(l)}function R(){f.prop("required",n.prop("required")),f.prop("placeholder",n.prop("placeholder"));var t=n.prop("disabled");f.prop("disabled",t),p.prop("disabled",t),h.prop("disabled",t),t&&D();var e=n.prop("class"),i="";/form-control-sm/g.test(e)?i="input-group-sm":/form-control-lg/g.test(e)&&(i="input-group-lg");var o=e.replace(/form-control(-(sm|lg))?/g,"");d.prop("class","input-group "+i+" "+r.groupClass),f.prop("class","form-control "+o),m=parseFloat(n.prop("min"))||0,v=isNaN(n.prop("max"))||""===n.prop("max")?1/0:parseFloat(n.prop("max")),g=parseFloat(n.prop("step"))||1,b=parseInt(n.attr("data-step-max"))||0;var a=parseInt(n.attr("data-decimals"))||0;y!==a&&(y=a,x=new Intl.NumberFormat(s,{minimumFractionDigits:y,maximumFractionDigits:y}))}n[0].setValue=function(t){A(t)},new MutationObserver((function(){R(),A(C,!0)})).observe(n[0],{attributes:!0}),n.after(d),A(C),f.on("paste input change focusout",(function(t){var e=f[0].value,i="focusout"===t.type;e=function(t){var e=new Intl.NumberFormat(s),n=e.format(1111).replace(/1/g,""),i=e.format(1.1).replace(/1/g,"");return parseFloat(t.replace(new RegExp("\\"+n,"g"),"").replace(new RegExp("\\"+i),"."))}(e),A(e,i),P(n,t.type)})),i(h[0],(function(){M(-g)})),i(p[0],(function(){M(g)})),_=document.body,w=function(){D()},_.addEventListener("mouseup",(function(t){w(t)})),_.addEventListener("touchend",(function(t){w(t)})),_.addEventListener("keyup",(function(t){32===t.keyCode&&(e=!1,w(t))}))}))}}(jQuery)},1771:(t,e,n)=>{"use strict";n.r(e);var i=n(2893);window.axios=n(2505),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";var r=document.head.querySelector('meta[name="csrf-token"]');function o(t,e,n){return new Promise((function(i,r){var o={url:t,method:e};"get"===e?o.params=n:o.data=n,axios(o).then((function(t){i(t)})).catch((function(t){t.response&&401===t.response.status&&(window.location.href="/login"),r(t)}))}))}r?window.axios.defaults.headers.common["X-CSRF-TOKEN"]=r.content:console.error("CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token"),i.default.prototype.$get=function(t,e){return new Promise((function(n,i){o(t,"get",e).then((function(t){n(t)})).catch((function(t){i(t)}))}))},i.default.prototype.$post=function(t,e){return new Promise((function(n,i){o(t,"post",e).then((function(t){n(t)})).catch((function(t){i(t)}))}))},i.default.prototype.$put=function(t,e){return new Promise((function(n,i){o(t,"put",e).then((function(t){n(t)})).catch((function(t){i(t)}))}))},i.default.prototype.$del=function(t,e){return new Promise((function(n,i){o(t,"delete",{id:e}).then((function(t){n(t)})).catch((function(t){i(t)}))}))}},5239:(t,e,n)=>{"use strict";var i=n(2893),r=n(4948),o=n.n(r),a=function(){function t(){}return t.install=function(t,e){var n,i=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e){var i=o().mixin(e);return i.fire.apply(i,t)}return o().fire.apply(o(),t)};for(n in o())Object.prototype.hasOwnProperty.call(o(),n)&&"function"==typeof o()[n]&&(i[n]=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return o()[t].apply(o(),e)}}(n));t.swal=i,t.prototype.hasOwnProperty("$swal")||(t.prototype.$swal=i)},t}();const s=a;var l=n(5072),c=n.n(l),u=n(9635),d={insert:"head",singleton:!1};c()(u.A,d);u.A.locals;var h=n(5493),p=n(254),f=n(7938),m=n(1817),v=n(8494),g=n(6710),b=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!(e=(0,g.cy)(e)?e.join("."):e)||!(0,g.Gv)(t))return n;if(e in t)return t[e];var i=(e=String(e).replace(m.gh,".$1")).split(".").filter(v.D);return 0===i.length?n:i.every((function(e){return(0,g.Gv)(t)&&e in t&&!(0,g.z)(t=t[e])}))?t:(0,g.kZ)(t)?null:n},y=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=b(t,e);return(0,g.z)(i)?n:i},_=n(1671),w=n(5606),x=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=void 0!==w&&w&&w.env||{};return t?n[t]||e:n},C=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;x("BOOTSTRAP_VUE_NO_WARN")||"production"===x("NODE_ENV")||console.warn("[BootstrapVue warn]: ".concat(e?"".concat(e," - "):"").concat(t))},S=function(t){return!h.KJ&&(C("".concat(t,": Can not be called during SSR.")),!0)},E=function(t){return!h.p4&&(C("".concat(t,": Requires Promise support.")),!0)};function T(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var O=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$_config={}}var e,n,i;return e=t,n=[{key:"setConfig",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,g.Qd)(e)&&(0,_.Ev)(e).forEach((function(n){var i=e[n];"breakpoints"===n?!(0,g.cy)(i)||i.length<2||i.some((function(t){return!(0,g.Kg)(t)||0===t.length}))?C('"breakpoints" must be an array of at least 2 breakpoint names',p.o_):t.$_config[n]=(0,f.m)(i):(0,g.Qd)(i)&&(t.$_config[n]=(0,_.Ev)(i).reduce((function(t,e){return(0,g.b0)(i[e])||(t[e]=(0,f.m)(i[e])),t}),t.$_config[n]||{}))}))}},{key:"resetConfig",value:function(){this.$_config={}}},{key:"getConfig",value:function(){return(0,f.m)(this.$_config)}},{key:"getConfigValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return(0,f.m)(b(this.$_config,t,e))}}],n&&T(e.prototype,n),i&&T(e,i),t}();function k(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function A(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?k(Object(n),!0).forEach((function(e){P(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function P(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var M,L,D=(M=!1,L=["Multiple instances of Vue detected!","You may need to set up an alias for Vue in your bundler config.","See: https://bootstrap-vue.org/docs#using-module-bundlers"].join("\n"),function(t){M||i.default===t||h.Vh||C(L),M=!0}),R=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.components,n=t.directives,r=t.plugins,o=function t(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.installed||(t.installed=!0,D(o),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default;e.prototype[p.si]=i.default.prototype[p.si]=e.prototype[p.si]||i.default.prototype[p.si]||new O,e.prototype[p.si].setConfig(t)}(a,o),F(o,e),B(o,n),j(o,r))};return o.installed=!1,o},I=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return A(A({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),{},{install:R(t)})},j=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in e)n&&e[n]&&t.use(e[n])},N=function(t,e,n){t&&e&&n&&t.component(e,n)},F=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in e)N(t,n,e[n])},z=function(t,e,n){t&&e&&n&&t.directive(e.replace(/^VB/,"B"),n)},B=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in e)z(t,n,e[n])},$=n(8722),U="_uid",H=n(9800),V="change",Y="click",q="close",W="context",G="context-changed",X="destroyed",K="disable",Z="disabled",J="enable",Q="enabled",tt="filtered",et="first",nt="focusin",it="focusout",rt="head-clicked",ot="hidden",at="hide",st="input",lt="last",ct="mouseenter",ut="mouseleave",dt="next",ht="open",pt="page-click",ft="prev",mt="refreshed",vt="row-clicked",gt="selected",bt="show",yt="shown",_t="sliding-end",wt="toggle",xt="hook:beforeDestroy",Ct="hook:destroyed",St="update:",Et="bv",Tt={passive:!0},Ot={passive:!0,capture:!1},kt=n(72),At="append",Pt="badge",Mt="bottom-row",Lt="button-content",Dt="custom-foot",Rt="default",It="empty",jt="file-name",Nt="first",Ft="footer",zt="header",Bt="label",$t="lead",Ut="modal-cancel",Ht="modal-ok",Vt="modal-title",Yt="prepend",qt="row-details",Wt="table-busy",Gt="table-caption",Xt="table-colgroup",Kt="title",Zt="top-row",Jt=n(8789),Qt=function(){return Array.from.apply(Array,arguments)},te=function(t,e){return-1!==t.indexOf(e)},ee=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Array.prototype.concat.apply([],e)},ne=function(t,e){var n=(0,g.Tn)(e)?e:function(){return e};return Array.apply(null,{length:t}).map(n)},ie=function t(e){return e.reduce((function(e,n){return ee(e,Array.isArray(n)?t(n):n)}),[])},re=n(9821),oe=n(9809),ae=Jt.Hg.prototype,se=["button","[href]:not(.disabled)","input","select","textarea","[tabindex]","[contenteditable]"].map((function(t){return"".concat(t,":not(:disabled):not([disabled])")})).join(", "),le=ae.matches||ae.msMatchesSelector||ae.webkitMatchesSelector,ce=ae.closest||function(t){var e=this;do{if(we(e,t))return e;e=e.parentElement||e.parentNode}while(!(0,g.kZ)(e)&&e.nodeType===Node.ELEMENT_NODE);return null},ue=h.jf.requestAnimationFrame||h.jf.webkitRequestAnimationFrame||h.jf.mozRequestAnimationFrame||h.jf.msRequestAnimationFrame||h.jf.oRequestAnimationFrame||function(t){return setTimeout(t,16)},de=h.jf.MutationObserver||h.jf.WebKitMutationObserver||h.jf.MozMutationObserver||null,he=function(t){return!(!t||t.nodeType!==Node.ELEMENT_NODE)},pe=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=h.qQ.activeElement;return e&&!t.some((function(t){return t===e}))?e:null},fe=function(t,e){return(0,oe.dI)(t).toLowerCase()===(0,oe.dI)(e).toLowerCase()},me=function(t){return he(t)&&t===pe()},ve=function(t){if(!he(t)||!t.parentNode||!Ce(h.qQ.body,t))return!1;if("none"===Re(t,"display"))return!1;var e=Ie(t);return!!(e&&e.height>0&&e.width>0)},ge=function(t){return!he(t)||t.disabled||Me(t,"disabled")||Oe(t,"disabled")},be=function(t){return he(t)&&t.offsetHeight},ye=function(t,e){return Qt((he(e)?e:h.qQ).querySelectorAll(t))},_e=function(t,e){return(he(e)?e:h.qQ).querySelector(t)||null},we=function(t,e){return!!he(t)&&le.call(t,e)},xe=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!he(e))return null;var i=ce.call(e,t);return n?i:i===e?null:i},Ce=function(t,e){return!(!t||!(0,g.Tn)(t.contains))&&t.contains(e)},Se=function(t){return h.qQ.getElementById(/^#/.test(t)?t.slice(1):t)||null},Ee=function(t,e){e&&he(t)&&t.classList&&t.classList.add(e)},Te=function(t,e){e&&he(t)&&t.classList&&t.classList.remove(e)},Oe=function(t,e){return!!(e&&he(t)&&t.classList)&&t.classList.contains(e)},ke=function(t,e,n){e&&he(t)&&t.setAttribute(e,n)},Ae=function(t,e){e&&he(t)&&t.removeAttribute(e)},Pe=function(t,e){return e&&he(t)?t.getAttribute(e):null},Me=function(t,e){return e&&he(t)?t.hasAttribute(e):null},Le=function(t,e,n){e&&he(t)&&(t.style[e]=n)},De=function(t,e){e&&he(t)&&(t.style[e]="")},Re=function(t,e){return e&&he(t)&&t.style[e]||null},Ie=function(t){return he(t)?t.getBoundingClientRect():null},je=function(t){var e=h.jf.getComputedStyle;return e&&he(t)?e(t):{}},Ne=function(t){var e={top:0,left:0};if(!he(t)||0===t.getClientRects().length)return e;var n=Ie(t);if(n){var i=t.ownerDocument.defaultView;e.top=n.top+i.pageYOffset,e.left=n.left+i.pageXOffset}return e},Fe=function(t){var e={top:0,left:0};if(!he(t))return e;var n={top:0,left:0},i=je(t);if("fixed"===i.position)e=Ie(t)||e;else{e=Ne(t);for(var r=t.ownerDocument,o=t.offsetParent||r.documentElement;o&&(o===r.body||o===r.documentElement)&&"static"===je(o).position;)o=o.parentNode;if(o&&o!==t&&o.nodeType===Node.ELEMENT_NODE){n=Ne(o);var a=je(o);n.top+=(0,re.SP)(a.borderTopWidth,0),n.left+=(0,re.SP)(a.borderLeftWidth,0)}}return{top:e.top-n.top-(0,re.SP)(i.marginTop,0),left:e.left-n.left-(0,re.SP)(i.marginLeft,0)}},ze=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return ye(se,t).filter(ve).filter((function(t){return t.tabIndex>-1&&!t.disabled}))},Be=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{t.focus(e)}catch(t){}return me(t)},$e=function(t){try{t.blur()}catch(t){}return!me(t)},Ue=n(1340);var He=function(t){var e,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.type,s=void 0===a?kt.Kg:a,l=o.defaultValue,c=void 0===l?void 0:l,u=o.validator,d=void 0===u?void 0:u,h=o.event,p=void 0===h?st:h,f=(e={},n=t,r=(0,Ue.Yg)(s,c,d),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e);return{mixin:i.default.extend({model:{prop:t,event:p},props:f}),props:f,prop:t,event:p}},Ve=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(t=ee(t).filter(v.D)).some((function(t){return e[t]||n[t]}))},Ye=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t=ee(t).filter(v.D);for(var o=0;o<t.length&&!e;o++){var a=t[o];e=i[a]||r[a]}return(0,g.Tn)(e)?e(n):e},qe=i.default.extend({methods:{hasNormalizedSlot:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Rt,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.$scopedSlots,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.$slots;return Ve(t,e,n)},normalizeSlot:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Rt,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.$scopedSlots,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.$slots,r=Ye(t,e,n,i);return r?ee(r):r}}}),We=function(t){return h.Ew?(0,g.Gv)(t)?t:{capture:!!t||!1}:!!((0,g.Gv)(t)?t.capture:t)},Ge=function(t,e,n,i){t&&t.addEventListener&&t.addEventListener(e,n,We(i))},Xe=function(t,e,n,i){t&&t.removeEventListener&&t.removeEventListener(e,n,We(i))},Ke=function(t){for(var e=t?Ge:Xe,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];e.apply(void 0,i)},Ze=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.preventDefault,i=void 0===n||n,r=e.propagation,o=void 0===r||r,a=e.immediatePropagation,s=void 0!==a&&a;i&&t.preventDefault(),o&&t.stopPropagation(),s&&t.stopImmediatePropagation()},Je=function(t){return(0,oe.kW)(t.replace(m.lW,""))},Qe=function(t,e){return[Et,Je(t),e].join("::")},tn=function(t,e){return[Et,e,Je(t)].join("::")};var en=(0,Ue.sC)({ariaLabel:(0,Ue.Yg)(kt.vq,"Close"),content:(0,Ue.Yg)(kt.vq,"&times;"),disabled:(0,Ue.Yg)(kt.Ye,!1),textVariant:(0,Ue.Yg)(kt.vq)},H.a8),nn=i.default.extend({name:H.a8,functional:!0,props:en,render:function(t,e){var n,i,r,o=e.props,a=e.data,s=e.slots,l=e.scopedSlots,c=s(),u=l||{},d={staticClass:"close",class:(n={},i="text-".concat(o.textVariant),r=o.textVariant,i in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,n),attrs:{type:"button",disabled:o.disabled,"aria-label":o.ariaLabel?String(o.ariaLabel):null},on:{click:function(t){o.disabled&&(0,g.xH)(t)&&Ze(t)}}};return Ve(Rt,u,c)||(d.domProps={innerHTML:o.content}),t("button",(0,$.L)(a,d),Ye(Rt,{},u,c))}});function rn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function on(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rn(Object(n),!0).forEach((function(e){an(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function an(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var sn,ln={name:"",enterClass:"",enterActiveClass:"",enterToClass:"show",leaveClass:"show",leaveActiveClass:"",leaveToClass:""},cn=on(on({},ln),{},{enterActiveClass:"fade",leaveActiveClass:"fade"}),un={appear:(0,Ue.Yg)(kt.Ye,!1),mode:(0,Ue.Yg)(kt.vq),noFade:(0,Ue.Yg)(kt.Ye,!1),transProps:(0,Ue.Yg)(kt.bD)},dn=i.default.extend({name:H.s3,functional:!0,props:un,render:function(t,e){var n=e.children,i=e.data,r=e.props,o=r.transProps;return(0,g.Qd)(o)||(o=r.noFade?ln:cn,r.appear&&(o=on(on({},o),{},{appear:!0,appearClass:o.enterClass,appearActiveClass:o.enterActiveClass,appearToClass:o.enterToClass}))),o=on(on({mode:r.mode},o),{},{css:!0}),t("transition",(0,$.L)(i,{props:o}),n)}});function hn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function pn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?hn(Object(n),!0).forEach((function(e){fn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function fn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var mn=He("show",{type:kt.gy,defaultValue:!1}),vn=mn.mixin,gn=mn.props,bn=mn.prop,yn=mn.event,_n=function(t){return""===t||(0,g.Lm)(t)?0:(t=(0,re.yJ)(t,0))>0?t:0},wn=function(t){return""===t||!0===t||!((0,re.yJ)(t,0)<1)&&!!t},xn=(0,Ue.sC)((0,_.di)(pn(pn({},gn),{},{dismissLabel:(0,Ue.Yg)(kt.vq,"Close"),dismissible:(0,Ue.Yg)(kt.Ye,!1),fade:(0,Ue.Yg)(kt.Ye,!1),variant:(0,Ue.Yg)(kt.vq,"info")})),H.fu),Cn=I({components:{BAlert:i.default.extend({name:H.fu,mixins:[vn,qe],props:xn,data:function(){return{countDown:0,localShow:wn(this[bn])}},watch:(sn={},fn(sn,bn,(function(t){this.countDown=_n(t),this.localShow=wn(t)})),fn(sn,"countDown",(function(t){var e=this;this.clearCountDownInterval();var n=this[bn];(0,g.kf)(n)&&(this.$emit("dismiss-count-down",t),n!==t&&this.$emit(yn,t),t>0?(this.localShow=!0,this.$_countDownTimeout=setTimeout((function(){e.countDown--}),1e3)):this.$nextTick((function(){ue((function(){e.localShow=!1}))})))})),fn(sn,"localShow",(function(t){var e=this[bn];t||!this.dismissible&&!(0,g.kf)(e)||this.$emit("dismissed"),(0,g.kf)(e)||e===t||this.$emit(yn,t)})),sn),created:function(){this.$_filterTimer=null;var t=this[bn];this.countDown=_n(t),this.localShow=wn(t)},beforeDestroy:function(){this.clearCountDownInterval()},methods:{dismiss:function(){this.clearCountDownInterval(),this.countDown=0,this.localShow=!1},clearCountDownInterval:function(){clearTimeout(this.$_countDownTimeout),this.$_countDownTimeout=null}},render:function(t){var e=t();if(this.localShow){var n=this.dismissible,i=this.variant,r=t();n&&(r=t(nn,{attrs:{"aria-label":this.dismissLabel},on:{click:this.dismiss}},[this.normalizeSlot("dismiss")])),e=t("div",{staticClass:"alert",class:fn({"alert-dismissible":n},"alert-".concat(i),i),attrs:{role:"alert","aria-live":"polite","aria-atomic":!0},key:this[U]},[r,this.normalizeSlot()])}return t(dn,{props:{noFade:!this.fade}},[e])}})}}),Sn=n(8014);function En(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Tn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tn(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var On="b-aspect",kn=(0,Ue.sC)({aspect:(0,Ue.Yg)(kt.$$,"1:1"),tag:(0,Ue.Yg)(kt.vq,"div")},H.pj),An=i.default.extend({name:H.pj,mixins:[qe],props:kn,computed:{padding:function(){var t=this.aspect,e=1;if(m.CI.test(t)){var n=En(t.split(m.kF).map((function(t){return(0,re.SP)(t)||1})),2);e=n[0]/n[1]}else e=(0,re.SP)(t)||1;return"".concat(100/(0,Sn.NY)(e),"%")}},render:function(t){var e=t("div",{staticClass:"".concat(On,"-sizer flex-grow-1"),style:{paddingBottom:this.padding,height:0}}),n=t("div",{staticClass:"".concat(On,"-content flex-grow-1 w-100 mw-100"),style:{marginLeft:"-100%"}},this.normalizeSlot());return t(this.tag,{staticClass:"".concat(On," d-flex")},[e,n])}}),Pn=I({components:{BAspect:An}}),Mn=function(t){return"%"+t.charCodeAt(0).toString(16)},Ln=function(t){return encodeURIComponent((0,oe.dI)(t)).replace(m.xZ,Mn).replace(m.yF,",")},Dn=decodeURIComponent,Rn=function(t){var e={};return(t=(0,oe.dI)(t).trim().replace(m.zK,""))?(t.split("&").forEach((function(t){var n=t.replace(m.qe," ").split("="),i=Dn(n.shift()),r=n.length>0?Dn(n.join("=")):null;(0,g.b0)(e[i])?e[i]=r:(0,g.cy)(e[i])?e[i].push(r):e[i]=[e[i],r]})),e):e},In=function(t){return!(!t.href&&!t.to)},jn=function(t){return!(!t||fe(t,"a"))},Nn=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.href,n=t.to,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/";if(e)return e;if(jn(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"a"))return null;if((0,g.Kg)(n))return n||r;if((0,g.Qd)(n)&&(n.path||n.query||n.hash)){var o=(0,oe.dI)(n.path),a=function(t){if(!(0,g.Qd)(t))return"";var e=(0,_.HP)(t).map((function(e){var n=t[e];return(0,g.b0)(n)?"":(0,g.kZ)(n)?Ln(e):(0,g.cy)(n)?n.reduce((function(t,n){return(0,g.kZ)(n)?t.push(Ln(e)):(0,g.b0)(n)||t.push(Ln(e)+"="+Ln(n)),t}),[]).join("&"):Ln(e)+"="+Ln(n)})).filter((function(t){return t.length>0})).join("&");return e?"?".concat(e):""}(n.query),s=(0,oe.dI)(n.hash);return s=s&&"#"!==s.charAt(0)?"#".concat(s):s,"".concat(o).concat(a).concat(s)||r}return i},Fn=n(1809),zn=n(3058);function Bn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function $n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bn(Object(n),!0).forEach((function(e){Un(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Un(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Hn=function t(e,n){return e?(e.$options||{}).components[n]||t(e.$parent,n):null},Vn=(0,_.cJ)(zn.x,["content"]),Yn=(0,Ue.sC)((0,_.di)($n($n({},Vn),{},{icon:(0,Ue.Yg)(kt.vq)})),H.Oz),qn=i.default.extend({name:H.Oz,functional:!0,props:Yn,render:function(t,e){var n=e.data,i=e.props,r=e.parent,o=(0,oe.fL)((0,oe.Bq)(i.icon||"")).replace(m.g6,"");return t(o&&Hn(r,"BIcon".concat(o))||Fn.ufk,(0,$.L)(n,{props:(0,Ue.YL)(Vn,i)}))}}),Wn=40,Gn=35,Xn=13,Kn=36,Zn=37,Jn=39,Qn=32,ti=38,ei=function(t,e){if(t.length!==e.length)return!1;for(var n=!0,i=0;n&&i<t.length;i++)n=ni(t[i],e[i]);return n},ni=function t(e,n){if(e===n)return!0;var i=(0,g.$P)(e),r=(0,g.$P)(n);if(i||r)return!(!i||!r)&&e.getTime()===n.getTime();if(i=(0,g.cy)(e),r=(0,g.cy)(n),i||r)return!(!i||!r)&&ei(e,n);if(i=(0,g.Gv)(e),r=(0,g.Gv)(n),i||r){if(!i||!r)return!1;if((0,_.HP)(e).length!==(0,_.HP)(n).length)return!1;for(var o in e){var a=(0,_.mQ)(e,o),s=(0,_.mQ)(n,o);if(a&&!s||!a&&s||!t(e[o],n[o]))return!1}}return String(e)===String(n)};function ii(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ri=function(t){return!t||0===(0,_.HP)(t).length},oi=function(t){return{handler:function(e,n){if(!ni(e,n))if(ri(e)||ri(n))this[t]=(0,f.m)(e);else{for(var i in n)(0,_.mQ)(e,i)||this.$delete(this.$data[t],i);for(var r in e)this.$set(this.$data[t],r,e[r])}}}},ai=function(t,e){return i.default.extend({data:function(){return ii({},e,(0,f.m)(this[t]))},watch:ii({},t,oi(e))})},si=ai("$attrs","bvAttrs"),li=i.default.extend({methods:{listenOnRoot:function(t,e){var n=this;this.$root.$on(t,e),this.$on(xt,(function(){n.$root.$off(t,e)}))},listenOnRootOnce:function(t,e){var n=this;this.$root.$once(t,e),this.$on(xt,(function(){n.$root.$off(t,e)}))},emitOnRoot:function(t){for(var e,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];(e=this.$root).$emit.apply(e,[t].concat(i))}}}),ci=ai("$listeners","bvListeners");function ui(t){return function(t){if(Array.isArray(t))return di(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return di(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return di(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function di(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function hi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function pi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?hi(Object(n),!0).forEach((function(e){fi(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function fi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var mi=Qe(H.Xc,"clicked"),vi={activeClass:(0,Ue.Yg)(kt.vq),append:(0,Ue.Yg)(kt.Ye,!1),event:(0,Ue.Yg)(kt.vj,Y),exact:(0,Ue.Yg)(kt.Ye,!1),exactActiveClass:(0,Ue.Yg)(kt.vq),replace:(0,Ue.Yg)(kt.Ye,!1),routerTag:(0,Ue.Yg)(kt.vq,"a"),to:(0,Ue.Yg)(kt.RJ)},gi={noPrefetch:(0,Ue.Yg)(kt.Ye,!1),prefetch:(0,Ue.Yg)(kt.Ye,null)},bi=(0,Ue.sC)((0,_.di)(pi(pi(pi({},gi),vi),{},{active:(0,Ue.Yg)(kt.Ye,!1),disabled:(0,Ue.Yg)(kt.Ye,!1),href:(0,Ue.Yg)(kt.vq),rel:(0,Ue.Yg)(kt.vq,null),routerComponentName:(0,Ue.Yg)(kt.vq),target:(0,Ue.Yg)(kt.vq,"_self")})),H.Xc),yi=i.default.extend({name:H.Xc,mixins:[si,ci,li,qe],inheritAttrs:!1,props:bi,computed:{computedTag:function(){return function(t,e){var n=t.to,i=t.disabled,r=t.routerComponentName,o=!!e.$router;return!o||o&&(i||!n)?"a":r||(e.$nuxt?"nuxt-link":"router-link")}({to:this.to,disabled:this.disabled,routerComponentName:this.routerComponentName},this)},isRouterLink:function(){return jn(this.computedTag)},computedRel:function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.target,n=t.rel;return"_blank"===e&&(0,g.kZ)(n)?"noopener":n||null}({target:this.target,rel:this.rel})},computedHref:function(){var t=this.to,e=this.href;return Nn({to:t,href:e},this.computedTag)},computedProps:function(){var t=this.prefetch;return this.isRouterLink?pi(pi({},(0,Ue.YL)(pi(pi({},vi),gi),this)),{},{prefetch:(0,g.Lm)(t)?t:void 0,tag:this.routerTag}):{}},computedAttrs:function(){var t=this.bvAttrs,e=this.computedHref,n=this.computedRel,i=this.disabled,r=this.target,o=this.routerTag,a=this.isRouterLink;return pi(pi(pi(pi({},t),e?{href:e}:{}),a&&!fe(o,"a")?{}:{rel:n,target:r}),{},{tabindex:i?"-1":(0,g.b0)(t.tabindex)?null:t.tabindex,"aria-disabled":i?"true":null})},computedListeners:function(){return pi(pi({},this.bvListeners),{},{click:this.onClick})}},methods:{onClick:function(t){var e=arguments,n=(0,g.xH)(t),i=this.isRouterLink,r=this.bvListeners.click;n&&this.disabled?Ze(t,{immediatePropagation:!0}):(i&&t.currentTarget.__vue__&&t.currentTarget.__vue__.$emit(Y,t),ee(r).filter((function(t){return(0,g.Tn)(t)})).forEach((function(t){t.apply(void 0,ui(e))})),this.emitOnRoot(mi,t),this.emitOnRoot("clicked::link",t)),n&&!i&&"#"===this.computedHref&&Ze(t,{propagation:!1})},focus:function(){Be(this.$el)},blur:function(){$e(this.$el)}},render:function(t){var e=this.active,n=this.disabled;return t(this.computedTag,fi({class:{active:e,disabled:n},attrs:this.computedAttrs,props:this.computedProps},this.isRouterLink?"nativeOn":"on",this.computedListeners),this.normalizeSlot())}});function _i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function wi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_i(Object(n),!0).forEach((function(e){xi(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ci=(0,_.cJ)(bi,["event","routerTag"]);delete Ci.href.default,delete Ci.to.default;var Si=(0,Ue.sC)((0,_.di)(wi(wi({},Ci),{},{block:(0,Ue.Yg)(kt.Ye,!1),disabled:(0,Ue.Yg)(kt.Ye,!1),pill:(0,Ue.Yg)(kt.Ye,!1),pressed:(0,Ue.Yg)(kt.Ye,null),size:(0,Ue.Yg)(kt.vq),squared:(0,Ue.Yg)(kt.Ye,!1),tag:(0,Ue.Yg)(kt.vq,"button"),type:(0,Ue.Yg)(kt.vq,"button"),variant:(0,Ue.Yg)(kt.vq,"secondary")})),H.hZ),Ei=function(t){"focusin"===t.type?Ee(t.target,"focus"):"focusout"===t.type&&Te(t.target,"focus")},Ti=function(t){return In(t)||fe(t.tag,"a")},Oi=function(t){return(0,g.Lm)(t.pressed)},ki=function(t){return!(Ti(t)||t.tag&&!fe(t.tag,"button"))},Ai=function(t){return!Ti(t)&&!ki(t)},Pi=function(t){var e;return["btn-".concat(t.variant||"secondary"),(e={},xi(e,"btn-".concat(t.size),t.size),xi(e,"btn-block",t.block),xi(e,"rounded-pill",t.pill),xi(e,"rounded-0",t.squared&&!t.pill),xi(e,"disabled",t.disabled),xi(e,"active",t.pressed),e)]},Mi=function(t){return Ti(t)?(0,Ue.YL)(Ci,t):{}},Li=function(t,e){var n=ki(t),i=Ti(t),r=Oi(t),o=Ai(t),a=i&&"#"===t.href,s=e.attrs&&e.attrs.role?e.attrs.role:null,l=e.attrs?e.attrs.tabindex:null;return(o||a)&&(l="0"),{type:n&&!i?t.type:null,disabled:n?t.disabled:null,role:o||a?"button":s,"aria-disabled":o?String(t.disabled):null,"aria-pressed":r?String(t.pressed):null,autocomplete:r?"off":null,tabindex:t.disabled&&!n?"-1":l}},Di=i.default.extend({name:H.hZ,functional:!0,props:Si,render:function(t,e){var n=e.props,i=e.data,r=e.listeners,o=e.children,a=Oi(n),s=Ti(n),l=Ai(n),c=s&&"#"===n.href,u={keydown:function(t){if(!n.disabled&&(l||c)){var e=t.keyCode;if(e===Qn||e===Xn&&l){var i=t.currentTarget||t.target;Ze(t,{propagation:!1}),i.click()}}},click:function(t){n.disabled&&(0,g.xH)(t)?Ze(t):a&&r&&r["update:pressed"]&&ee(r["update:pressed"]).forEach((function(t){(0,g.Tn)(t)&&t(!n.pressed)}))}};a&&(u.focusin=Ei,u.focusout=Ei);var d={staticClass:"btn",class:Pi(n),props:Mi(n),attrs:Li(n,i),on:u};return t(s?yi:n.tag,(0,$.L)(i,d),o)}});function Ri(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ii(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ri(Object(n),!0).forEach((function(e){ji(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ri(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ji(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ni="b-avatar",Fi=["sm",null,"lg"],zi=.4*.7,Bi=function(t){return t=(0,g.Kg)(t)&&(0,g.kf)(t)?(0,re.SP)(t,0):t,(0,g.Et)(t)?"".concat(t,"px"):t||null},$i=(0,_.cJ)(bi,["active","event","routerTag"]),Ui=(0,Ue.sC)((0,_.di)(Ii(Ii({},$i),{},{alt:(0,Ue.Yg)(kt.vq,"avatar"),ariaLabel:(0,Ue.Yg)(kt.vq),badge:(0,Ue.Yg)(kt.iF,!1),badgeLeft:(0,Ue.Yg)(kt.Ye,!1),badgeOffset:(0,Ue.Yg)(kt.vq),badgeTop:(0,Ue.Yg)(kt.Ye,!1),badgeVariant:(0,Ue.Yg)(kt.vq,"primary"),button:(0,Ue.Yg)(kt.Ye,!1),buttonType:(0,Ue.Yg)(kt.vq,"button"),icon:(0,Ue.Yg)(kt.vq),rounded:(0,Ue.Yg)(kt.iF,!1),size:(0,Ue.Yg)(kt.$$),square:(0,Ue.Yg)(kt.Ye,!1),src:(0,Ue.Yg)(kt.vq),text:(0,Ue.Yg)(kt.vq),variant:(0,Ue.Yg)(kt.vq,"secondary")})),H.g4),Hi=i.default.extend({name:H.g4,mixins:[qe],inject:{bvAvatarGroup:{default:null}},props:Ui,data:function(){return{localSrc:this.src||null}},computed:{computedSize:function(){var t=this.bvAvatarGroup;return Bi(t?t.size:this.size)},computedVariant:function(){var t=this.bvAvatarGroup;return t&&t.variant?t.variant:this.variant},computedRounded:function(){var t=this.bvAvatarGroup,e=!(!t||!t.square)||this.square,n=t&&t.rounded?t.rounded:this.rounded;return e?"0":""===n||(n||"circle")},fontStyle:function(){var t=this.computedSize,e=-1===Fi.indexOf(t)?"calc(".concat(t," * ").concat(.4,")"):null;return e?{fontSize:e}:{}},marginStyle:function(){var t=this.computedSize,e=this.bvAvatarGroup,n=e?e.overlapScale:0,i=t&&n?"calc(".concat(t," * -").concat(n,")"):null;return i?{marginLeft:i,marginRight:i}:{}},badgeStyle:function(){var t=this.computedSize,e=this.badgeTop,n=this.badgeLeft,i=this.badgeOffset||"0px";return{fontSize:-1===Fi.indexOf(t)?"calc(".concat(t," * ").concat(zi," )"):null,top:e?i:null,bottom:e?null:i,left:n?i:null,right:n?null:i}}},watch:{src:function(t,e){t!==e&&(this.localSrc=t||null)}},methods:{onImgError:function(t){this.localSrc=null,this.$emit("img-error",t)},onClick:function(t){this.$emit(Y,t)}},render:function(t){var e,n=this.computedVariant,i=this.disabled,r=this.computedRounded,o=this.icon,a=this.localSrc,s=this.text,l=this.fontStyle,c=this.marginStyle,u=this.computedSize,d=this.button,h=this.buttonType,p=this.badge,f=this.badgeVariant,m=this.badgeStyle,v=!d&&In(this),g=d?Di:v?yi:"span",b=this.alt,y=this.ariaLabel||null,_=null;this.hasNormalizedSlot()?_=t("span",{staticClass:"b-avatar-custom"},[this.normalizeSlot()]):a?(_=t("img",{style:n?{}:{width:"100%",height:"100%"},attrs:{src:a,alt:b},on:{error:this.onImgError}}),_=t("span",{staticClass:"b-avatar-img"},[_])):_=o?t(qn,{props:{icon:o},attrs:{"aria-hidden":"true",alt:b}}):s?t("span",{staticClass:"b-avatar-text",style:l},[t("span",s)]):t(Fn.oF4,{attrs:{"aria-hidden":"true",alt:b}});var w=t(),x=this.hasNormalizedSlot(Pt);if(p||""===p||x){var C=!0===p?"":p;w=t("span",{staticClass:"b-avatar-badge",class:ji({},"badge-".concat(f),f),style:m},[x?this.normalizeSlot(Pt):C])}return t(g,{staticClass:Ni,class:(e={},ji(e,"".concat(Ni,"-").concat(u),u&&-1!==Fi.indexOf(u)),ji(e,"badge-".concat(n),!d&&n),ji(e,"rounded",!0===r),ji(e,"rounded-".concat(r),r&&!0!==r),ji(e,"disabled",i),e),style:Ii(Ii({},c),{},{width:u,height:u}),attrs:{"aria-label":y||null},props:d?{variant:n,disabled:i,type:h}:v?(0,Ue.YL)($i,this):{},on:d||v?{click:this.onClick}:{}},[_,w])}}),Vi=(0,Ue.sC)({overlap:(0,Ue.Yg)(kt.$$,.3),rounded:(0,Ue.Yg)(kt.iF,!1),size:(0,Ue.Yg)(kt.vq),square:(0,Ue.Yg)(kt.Ye,!1),tag:(0,Ue.Yg)(kt.vq,"div"),variant:(0,Ue.Yg)(kt.vq)},H.qV),Yi=i.default.extend({name:H.qV,mixins:[qe],provide:function(){return{bvAvatarGroup:this}},props:Vi,computed:{computedSize:function(){return Bi(this.size)},overlapScale:function(){return(0,Sn.rp)((0,Sn.JB)((0,re.SP)(this.overlap,0),0),1)/2},paddingStyle:function(){var t=this.computedSize;return(t=t?"calc(".concat(t," * ").concat(this.overlapScale,")"):null)?{paddingLeft:t,paddingRight:t}:{}}},render:function(t){var e=t("div",{staticClass:"b-avatar-group-inner",style:this.paddingStyle},this.normalizeSlot());return t(this.tag,{staticClass:"b-avatar-group",attrs:{role:"group"}},[e])}}),qi=I({components:{BAvatar:Hi,BAvatarGroup:Yi}});function Wi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Gi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Wi(Object(n),!0).forEach((function(e){Xi(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Xi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ki=(0,_.cJ)(bi,["event","routerTag"]);delete Ki.href.default,delete Ki.to.default;var Zi=(0,Ue.sC)((0,_.di)(Gi(Gi({},Ki),{},{pill:(0,Ue.Yg)(kt.Ye,!1),tag:(0,Ue.Yg)(kt.vq,"span"),variant:(0,Ue.Yg)(kt.vq,"secondary")})),H.ss),Ji=i.default.extend({name:H.ss,functional:!0,props:Zi,render:function(t,e){var n=e.props,i=e.data,r=e.children,o=n.active,a=n.disabled,s=In(n),l=s?yi:n.tag,c=n.variant||"secondary";return t(l,(0,$.L)(i,{staticClass:"badge",class:["badge-".concat(c),{"badge-pill":n.pill,active:o,disabled:a}],props:s?(0,Ue.YL)(Ki,n):{}}),r)}}),Qi=I({components:{BBadge:Ji}}),tr=function(){return String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(m.hz,"")},er=function(t,e){return t?{innerHTML:t}:e?{textContent:e}:{}};function nr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ir(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?nr(Object(n),!0).forEach((function(e){rr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function rr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var or=(0,Ue.sC)((0,_.di)(ir(ir({},(0,_.cJ)(bi,["event","routerTag"])),{},{ariaCurrent:(0,Ue.Yg)(kt.vq,"location"),html:(0,Ue.Yg)(kt.vq),text:(0,Ue.Yg)(kt.vq)})),H.xf),ar=i.default.extend({name:H.xf,functional:!0,props:or,render:function(t,e){var n=e.props,i=e.data,r=e.children,o=n.active,a=o?"span":yi,s={attrs:{"aria-current":o?n.ariaCurrent:null},props:(0,Ue.YL)(or,n)};return r||(s.domProps=er(n.html,n.text)),t(a,(0,$.L)(i,s),r)}}),sr=(0,Ue.sC)(or,H.KS),lr=i.default.extend({name:H.KS,functional:!0,props:sr,render:function(t,e){var n=e.props,i=e.data,r=e.children;return t("li",(0,$.L)(i,{staticClass:"breadcrumb-item",class:{active:n.active}}),[t(ar,{props:n},r)])}});function cr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ur(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?cr(Object(n),!0).forEach((function(e){dr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function dr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var hr=(0,Ue.sC)({items:(0,Ue.Yg)(kt.Rl)},H.yR),pr=i.default.extend({name:H.yR,functional:!0,props:hr,render:function(t,e){var n=e.props,i=e.data,r=e.children,o=n.items,a=r;if((0,g.cy)(o)){var s=!1;a=o.map((function(e,n){(0,g.Gv)(e)||(e={text:(0,oe.dI)(e)});var i=e.active;return i&&(s=!0),i||s||(i=n+1===o.length),t(lr,{props:ur(ur({},e),{},{active:i})})}))}return t("ol",(0,$.L)(i,{staticClass:"breadcrumb"}),a)}}),fr=I({components:{BBreadcrumb:pr,BBreadcrumbItem:lr,BBreadcrumbLink:ar}}),mr=I({components:{BButton:Di,BBtn:Di,BButtonClose:nn,BBtnClose:nn}});function vr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function gr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vr(Object(n),!0).forEach((function(e){br(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function br(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var yr=(0,Ue.sC)((0,_.di)(gr(gr({},(0,_.Up)(Si,["size"])),{},{ariaRole:(0,Ue.Yg)(kt.vq,"group"),size:(0,Ue.Yg)(kt.vq),tag:(0,Ue.Yg)(kt.vq,"div"),vertical:(0,Ue.Yg)(kt.Ye,!1)})),H.$W),_r=i.default.extend({name:H.$W,functional:!0,props:yr,render:function(t,e){var n=e.props,i=e.data,r=e.children;return t(n.tag,(0,$.L)(i,{class:br({"btn-group":!n.vertical,"btn-group-vertical":n.vertical},"btn-group-".concat(n.size),n.size),attrs:{role:n.ariaRole}}),r)}}),wr=I({components:{BButtonGroup:_r,BBtnGroup:_r}}),xr=[".btn:not(.disabled):not([disabled]):not(.dropdown-item)",".form-control:not(.disabled):not([disabled])","select:not(.disabled):not([disabled])",'input[type="checkbox"]:not(.disabled)','input[type="radio"]:not(.disabled)'].join(","),Cr=(0,Ue.sC)({justify:(0,Ue.Yg)(kt.Ye,!1),keyNav:(0,Ue.Yg)(kt.Ye,!1)},H.R3),Sr=i.default.extend({name:H.R3,mixins:[qe],props:Cr,mounted:function(){this.keyNav&&this.getItems()},methods:{getItems:function(){var t=ye(xr,this.$el);return t.forEach((function(t){t.tabIndex=-1})),t.filter((function(t){return ve(t)}))},focusFirst:function(){var t=this.getItems();Be(t[0])},focusPrev:function(t){var e=this.getItems(),n=e.indexOf(t.target);n>-1&&(e=e.slice(0,n).reverse(),Be(e[0]))},focusNext:function(t){var e=this.getItems(),n=e.indexOf(t.target);n>-1&&(e=e.slice(n+1),Be(e[0]))},focusLast:function(){var t=this.getItems().reverse();Be(t[0])},onFocusin:function(t){var e=this.$el;t.target!==e||Ce(e,t.relatedTarget)||(Ze(t),this.focusFirst(t))},onKeydown:function(t){var e=t.keyCode,n=t.shiftKey;e===ti||e===Zn?(Ze(t),n?this.focusFirst(t):this.focusPrev(t)):e!==Wn&&e!==Jn||(Ze(t),n?this.focusLast(t):this.focusNext(t))}},render:function(t){var e=this.keyNav;return t("div",{staticClass:"btn-toolbar",class:{"justify-content-between":this.justify},attrs:{role:"toolbar",tabindex:e?"0":null},on:e?{focusin:this.onFocusin,keydown:this.onKeydown}:{}},[this.normalizeSlot()])}}),Er=I({components:{BButtonToolbar:Sr,BBtnToolbar:Sr}}),Tr="gregory",Or="long",kr="short",Ar="2-digit",Pr="numeric";function Mr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Lr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lr(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Dr(t,e,n){return Dr=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var r=new(Function.bind.apply(t,i));return n&&Rr(r,n.prototype),r},Dr.apply(null,arguments)}function Rr(t,e){return Rr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Rr(t,e)}var Ir,jr=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Dr(Date,e)},Nr=function(t){if((0,g.Kg)(t)&&m.Uz.test(t.trim())){var e=Mr(t.split(m.l7).map((function(t){return(0,re.yJ)(t,1)})),3),n=e[0],i=e[1],r=e[2];return jr(n,i-1,r)}return(0,g.$P)(t)?jr(t.getFullYear(),t.getMonth(),t.getDate()):null},Fr=function(t){if(!(t=Nr(t)))return null;var e=t.getFullYear(),n="0".concat(t.getMonth()+1).slice(-2),i="0".concat(t.getDate()).slice(-2);return"".concat(e,"-").concat(n,"-").concat(i)},zr=function(t,e){return new Intl.DateTimeFormat(t,e).format},Br=function(t,e){return Fr(t)===Fr(e)},$r=function(t){return(t=jr(t)).setDate(1),t},Ur=function(t){return(t=jr(t)).setMonth(t.getMonth()+1),t.setDate(0),t},Hr=function(t,e){var n=(t=jr(t)).getMonth();return t.setFullYear(t.getFullYear()+e),t.getMonth()!==n&&t.setDate(0),t},Vr=function(t){var e=(t=jr(t)).getMonth();return t.setMonth(e-1),t.getMonth()===e&&t.setDate(0),t},Yr=function(t){var e=(t=jr(t)).getMonth();return t.setMonth(e+1),t.getMonth()===(e+2)%12&&t.setDate(0),t},qr=function(t){return Hr(t,-1)},Wr=function(t){return Hr(t,1)},Gr=function(t){return Hr(t,-10)},Xr=function(t){return Hr(t,10)},Kr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t=Nr(t),e=Nr(e)||t,n=Nr(n)||t,t?t<e?e:t>n?n:t:null},Zr=["ar","az","ckb","fa","he","ks","lrc","mzn","ps","sd","te","ug","ur","yi"].map((function(t){return t.toLowerCase()})),Jr=function(t){var e=(0,oe.dI)(t).toLowerCase().replace(m.Vp,"").split("-"),n=e.slice(0,2).join("-"),i=e[0];return te(Zr,n)||te(Zr,i)},Qr={id:(0,Ue.Yg)(kt.vq)},to=i.default.extend({props:Qr,data:function(){return{localId_:null}},computed:{safeId:function(){var t=this.id||this.localId_;return function(e){return t?(e=String(e||"").replace(/\s+/g,"_"))?t+"_"+e:t:null}}},mounted:function(){var t=this;this.$nextTick((function(){t.localId_="__BVID__".concat(t[U])}))}});function eo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function no(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?eo(Object(n),!0).forEach((function(e){io(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):eo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function io(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ro=He("value",{type:kt.O9}),oo=ro.mixin,ao=ro.props,so=ro.prop,lo=ro.event,co=(0,Ue.sC)((0,_.di)(no(no(no({},Qr),ao),{},{ariaControls:(0,Ue.Yg)(kt.vq),block:(0,Ue.Yg)(kt.Ye,!1),dateDisabledFn:(0,Ue.Yg)(kt.KF),dateFormatOptions:(0,Ue.Yg)(kt.bD,{year:Pr,month:Or,day:Pr,weekday:Or}),dateInfoFn:(0,Ue.Yg)(kt.KF),direction:(0,Ue.Yg)(kt.vq),disabled:(0,Ue.Yg)(kt.Ye,!1),hidden:(0,Ue.Yg)(kt.Ye,!1),hideHeader:(0,Ue.Yg)(kt.Ye,!1),initialDate:(0,Ue.Yg)(kt.O9),labelCalendar:(0,Ue.Yg)(kt.vq,"Calendar"),labelCurrentMonth:(0,Ue.Yg)(kt.vq,"Current month"),labelHelp:(0,Ue.Yg)(kt.vq,"Use cursor keys to navigate calendar dates"),labelNav:(0,Ue.Yg)(kt.vq,"Calendar navigation"),labelNextDecade:(0,Ue.Yg)(kt.vq,"Next decade"),labelNextMonth:(0,Ue.Yg)(kt.vq,"Next month"),labelNextYear:(0,Ue.Yg)(kt.vq,"Next year"),labelNoDateSelected:(0,Ue.Yg)(kt.vq,"No date selected"),labelPrevDecade:(0,Ue.Yg)(kt.vq,"Previous decade"),labelPrevMonth:(0,Ue.Yg)(kt.vq,"Previous month"),labelPrevYear:(0,Ue.Yg)(kt.vq,"Previous year"),labelSelected:(0,Ue.Yg)(kt.vq,"Selected date"),labelToday:(0,Ue.Yg)(kt.vq,"Today"),locale:(0,Ue.Yg)(kt.vj),max:(0,Ue.Yg)(kt.O9),min:(0,Ue.Yg)(kt.O9),navButtonVariant:(0,Ue.Yg)(kt.vq,"secondary"),noHighlightToday:(0,Ue.Yg)(kt.Ye,!1),noKeyNav:(0,Ue.Yg)(kt.Ye,!1),readonly:(0,Ue.Yg)(kt.Ye,!1),roleDescription:(0,Ue.Yg)(kt.vq),selectedVariant:(0,Ue.Yg)(kt.vq,"primary"),showDecadeNav:(0,Ue.Yg)(kt.Ye,!1),startWeekday:(0,Ue.Yg)(kt.$$,0),todayVariant:(0,Ue.Yg)(kt.vq),valueAsDate:(0,Ue.Yg)(kt.Ye,!1),weekdayHeaderFormat:(0,Ue.Yg)(kt.vq,kr,(function(t){return te([Or,kr,"narrow"],t)})),width:(0,Ue.Yg)(kt.vq,"270px")})),H.L5),uo=i.default.extend({name:H.L5,mixins:[si,to,oo,qe],props:co,data:function(){var t=Fr(this[so])||"";return{selectedYMD:t,activeYMD:t||Fr(Kr(this.initialDate||this.getToday()),this.min,this.max),gridHasFocus:!1,isLive:!1}},computed:{valueId:function(){return this.safeId()},widgetId:function(){return this.safeId("_calendar-wrapper_")},navId:function(){return this.safeId("_calendar-nav_")},gridId:function(){return this.safeId("_calendar-grid_")},gridCaptionId:function(){return this.safeId("_calendar-grid-caption_")},gridHelpId:function(){return this.safeId("_calendar-grid-help_")},activeId:function(){return this.activeYMD?this.safeId("_cell-".concat(this.activeYMD,"_")):null},selectedDate:function(){return Nr(this.selectedYMD)},activeDate:function(){return Nr(this.activeYMD)},computedMin:function(){return Nr(this.min)},computedMax:function(){return Nr(this.max)},computedWeekStarts:function(){return(0,Sn.JB)((0,re.yJ)(this.startWeekday,0),0)%7},computedLocale:function(){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tr;return t=ee(t).filter(v.D),new Intl.DateTimeFormat(t,{calendar:e}).resolvedOptions().locale}(ee(this.locale).filter(v.D),Tr)},computedDateDisabledFn:function(){var t=this.dateDisabledFn;return(0,Ue.mV)(t)?t:function(){return!1}},computedDateInfoFn:function(){var t=this.dateInfoFn;return(0,Ue.mV)(t)?t:function(){return{}}},calendarLocale:function(){var t=new Intl.DateTimeFormat(this.computedLocale,{calendar:Tr}),e=t.resolvedOptions().calendar,n=t.resolvedOptions().locale;return e!==Tr&&(n=n.replace(/-u-.+$/i,"").concat("-u-ca-gregory")),n},calendarYear:function(){return this.activeDate.getFullYear()},calendarMonth:function(){return this.activeDate.getMonth()},calendarFirstDay:function(){return jr(this.calendarYear,this.calendarMonth,1,12)},calendarDaysInMonth:function(){var t=jr(this.calendarFirstDay);return t.setMonth(t.getMonth()+1,0),t.getDate()},computedVariant:function(){return"btn-".concat(this.selectedVariant||"primary")},computedTodayVariant:function(){return"btn-outline-".concat(this.todayVariant||this.selectedVariant||"primary")},computedNavButtonVariant:function(){return"btn-outline-".concat(this.navButtonVariant||"primary")},isRTL:function(){var t=(0,oe.dI)(this.direction).toLowerCase();return"rtl"===t||"ltr"!==t&&Jr(this.computedLocale)},context:function(){var t=this.selectedYMD,e=this.activeYMD,n=Nr(t),i=Nr(e);return{selectedYMD:t,selectedDate:n,selectedFormatted:n?this.formatDateString(n):this.labelNoDateSelected,activeYMD:e,activeDate:i,activeFormatted:i?this.formatDateString(i):"",disabled:this.dateDisabled(i),locale:this.computedLocale,calendarLocale:this.calendarLocale,rtl:this.isRTL}},dateOutOfRange:function(){var t=this.computedMin,e=this.computedMax;return function(n){return n=Nr(n),t&&n<t||e&&n>e}},dateDisabled:function(){var t=this,e=this.dateOutOfRange;return function(n){n=Nr(n);var i=Fr(n);return!(!e(n)&&!t.computedDateDisabledFn(i,n))}},formatDateString:function(){return zr(this.calendarLocale,no(no({year:Pr,month:Ar,day:Ar},this.dateFormatOptions),{},{hour:void 0,minute:void 0,second:void 0,calendar:Tr}))},formatYearMonth:function(){return zr(this.calendarLocale,{year:Pr,month:Or,calendar:Tr})},formatWeekdayName:function(){return zr(this.calendarLocale,{weekday:Or,calendar:Tr})},formatWeekdayNameShort:function(){return zr(this.calendarLocale,{weekday:this.weekdayHeaderFormat||kr,calendar:Tr})},formatDay:function(){var t=new Intl.NumberFormat([this.computedLocale],{style:"decimal",minimumIntegerDigits:1,minimumFractionDigits:0,maximumFractionDigits:0,notation:"standard"});return function(e){return t.format(e.getDate())}},prevDecadeDisabled:function(){var t=this.computedMin;return this.disabled||t&&Ur(Gr(this.activeDate))<t},prevYearDisabled:function(){var t=this.computedMin;return this.disabled||t&&Ur(qr(this.activeDate))<t},prevMonthDisabled:function(){var t=this.computedMin;return this.disabled||t&&Ur(Vr(this.activeDate))<t},thisMonthDisabled:function(){return this.disabled},nextMonthDisabled:function(){var t=this.computedMax;return this.disabled||t&&$r(Yr(this.activeDate))>t},nextYearDisabled:function(){var t=this.computedMax;return this.disabled||t&&$r(Wr(this.activeDate))>t},nextDecadeDisabled:function(){var t=this.computedMax;return this.disabled||t&&$r(Xr(this.activeDate))>t},calendar:function(){for(var t=[],e=this.calendarFirstDay,n=e.getFullYear(),i=e.getMonth(),r=this.calendarDaysInMonth,o=e.getDay(),a=0-((this.computedWeekStarts>o?7:0)-this.computedWeekStarts)-o,s=0;s<6&&a<r;s++){t[s]=[];for(var l=0;l<7;l++){a++;var c=jr(n,i,a),u=c.getMonth(),d=Fr(c),h=this.dateDisabled(c),p=this.computedDateInfoFn(d,Nr(d));p=(0,g.Kg)(p)||(0,g.cy)(p)?{class:p}:(0,g.Qd)(p)?no({class:""},p):{class:""},t[s].push({ymd:d,day:this.formatDay(c),label:this.formatDateString(c),isThisMonth:u===i,isDisabled:h,info:p})}}return t},calendarHeadings:function(){var t=this;return this.calendar[0].map((function(e){return{text:t.formatWeekdayNameShort(Nr(e.ymd)),label:t.formatWeekdayName(Nr(e.ymd))}}))}},watch:(Ir={},io(Ir,so,(function(t,e){var n=Fr(t)||"",i=Fr(e)||"";Br(n,i)||(this.activeYMD=n||this.activeYMD,this.selectedYMD=n)})),io(Ir,"selectedYMD",(function(t,e){t!==e&&this.$emit(lo,this.valueAsDate?Nr(t)||null:t||"")})),io(Ir,"context",(function(t,e){ni(t,e)||this.$emit(W,t)})),io(Ir,"hidden",(function(t){this.activeYMD=this.selectedYMD||Fr(this[so]||this.constrainDate(this.initialDate||this.getToday())),this.setLive(!t)})),Ir),created:function(){var t=this;this.$nextTick((function(){t.$emit(W,t.context)}))},mounted:function(){this.setLive(!0)},activated:function(){this.setLive(!0)},deactivated:function(){this.setLive(!1)},beforeDestroy:function(){this.setLive(!1)},methods:{focus:function(){this.disabled||Be(this.$refs.grid)},blur:function(){this.disabled||$e(this.$refs.grid)},setLive:function(t){var e=this;t?this.$nextTick((function(){ue((function(){e.isLive=!0}))})):this.isLive=!1},getToday:function(){return Nr(jr())},constrainDate:function(t){return Kr(t,this.computedMin,this.computedMax)},emitSelected:function(t){var e=this;this.$nextTick((function(){e.$emit(gt,Fr(t)||"",Nr(t)||null)}))},setGridFocusFlag:function(t){this.gridHasFocus=!this.disabled&&"focus"===t.type},onKeydownWrapper:function(t){if(!this.noKeyNav){var e=t.altKey,n=t.ctrlKey,i=t.keyCode;if(te([33,34,Gn,Kn,Zn,ti,Jn,Wn],i)){Ze(t);var r=jr(this.activeDate),o=jr(this.activeDate),a=r.getDate(),s=this.constrainDate(this.getToday()),l=this.isRTL;33===i?(r=(e?n?Gr:qr:Vr)(r),(o=jr(r)).setDate(1)):34===i?(r=(e?n?Xr:Wr:Yr)(r),(o=jr(r)).setMonth(o.getMonth()+1),o.setDate(0)):i===Zn?(r.setDate(a+(l?1:-1)),o=r=this.constrainDate(r)):i===Jn?(r.setDate(a+(l?-1:1)),o=r=this.constrainDate(r)):i===ti?(r.setDate(a-7),o=r=this.constrainDate(r)):i===Wn?(r.setDate(a+7),o=r=this.constrainDate(r)):i===Kn?o=r=s:i===Gn&&(o=r=Nr(this.selectedDate)||s),this.dateOutOfRange(o)||Br(r,this.activeDate)||(this.activeYMD=Fr(r)),this.focus()}}},onKeydownGrid:function(t){var e=t.keyCode,n=this.activeDate;e!==Xn&&e!==Qn||(Ze(t),this.disabled||this.readonly||this.dateDisabled(n)||(this.selectedYMD=Fr(n),this.emitSelected(n)),this.focus())},onClickDay:function(t){var e=this.selectedDate,n=this.activeDate,i=Nr(t.ymd);this.disabled||t.isDisabled||this.dateDisabled(i)||(this.readonly||(this.selectedYMD=Fr(Br(i,e)?e:i),this.emitSelected(i)),this.activeYMD=Fr(Br(i,n)?n:jr(i)),this.focus())},gotoPrevDecade:function(){this.activeYMD=Fr(this.constrainDate(Gr(this.activeDate)))},gotoPrevYear:function(){this.activeYMD=Fr(this.constrainDate(qr(this.activeDate)))},gotoPrevMonth:function(){this.activeYMD=Fr(this.constrainDate(Vr(this.activeDate)))},gotoCurrentMonth:function(){this.activeYMD=Fr(this.constrainDate(this.getToday()))},gotoNextMonth:function(){this.activeYMD=Fr(this.constrainDate(Yr(this.activeDate)))},gotoNextYear:function(){this.activeYMD=Fr(this.constrainDate(Wr(this.activeDate)))},gotoNextDecade:function(){this.activeYMD=Fr(this.constrainDate(Xr(this.activeDate)))},onHeaderClick:function(){this.disabled||(this.activeYMD=this.selectedYMD||Fr(this.getToday()),this.focus())}},render:function(t){var e=this;if(this.hidden)return t();var n=this.valueId,i=this.widgetId,r=this.navId,o=this.gridId,a=this.gridCaptionId,s=this.gridHelpId,l=this.activeId,c=this.disabled,u=this.noKeyNav,d=this.isLive,h=this.isRTL,p=this.activeYMD,f=this.selectedYMD,m=this.safeId,g=!this.showDecadeNav,b=Fr(this.getToday()),y=!this.noHighlightToday,_=t("output",{staticClass:"form-control form-control-sm text-center",class:{"text-muted":c,readonly:this.readonly||c},attrs:{id:n,for:o,role:"status",tabindex:c?null:"-1","data-selected":(0,oe.dI)(f),"aria-live":d?"polite":"off","aria-atomic":d?"true":null},on:{click:this.onHeaderClick,focus:this.onHeaderClick}},this.selectedDate?[t("bdi",{staticClass:"sr-only"}," (".concat((0,oe.dI)(this.labelSelected),") ")),t("bdi",this.formatDateString(this.selectedDate))]:this.labelNoDateSelected||" ");_=t("header",{staticClass:"b-calendar-header",class:{"sr-only":this.hideHeader},attrs:{title:this.selectedDate&&this.labelSelectedDate||null}},[_]);var w={isRTL:h},x={shiftV:.5},C=no(no({},x),{},{flipH:h}),S=no(no({},x),{},{flipH:!h}),E=this.normalizeSlot("nav-prev-decade",w)||t(Fn.d_W,{props:C}),T=this.normalizeSlot("nav-prev-year",w)||t(Fn.pJ4,{props:C}),O=this.normalizeSlot("nav-prev-month",w)||t(Fn.Eql,{props:C}),k=this.normalizeSlot("nav-this-month",w)||t(Fn.zvQ,{props:x}),A=this.normalizeSlot("nav-next-month",w)||t(Fn.Eql,{props:S}),P=this.normalizeSlot("nav-next-year",w)||t(Fn.pJ4,{props:S}),M=this.normalizeSlot("nav-next-decade",w)||t(Fn.d_W,{props:S}),L=function(n,i,r,o,a){return t("button",{staticClass:"btn btn-sm border-0 flex-fill",class:[e.computedNavButtonVariant,{disabled:o}],attrs:{title:i||null,type:"button",tabindex:u?"-1":null,"aria-label":i||null,"aria-disabled":o?"true":null,"aria-keyshortcuts":a||null},on:o?{}:{click:r}},[t("div",{attrs:{"aria-hidden":"true"}},[n])])},D=t("div",{staticClass:"b-calendar-nav d-flex",attrs:{id:r,role:"group",tabindex:u?"-1":null,"aria-hidden":c?"true":null,"aria-label":this.labelNav||null,"aria-controls":o}},[g?t():L(E,this.labelPrevDecade,this.gotoPrevDecade,this.prevDecadeDisabled,"Ctrl+Alt+PageDown"),L(T,this.labelPrevYear,this.gotoPrevYear,this.prevYearDisabled,"Alt+PageDown"),L(O,this.labelPrevMonth,this.gotoPrevMonth,this.prevMonthDisabled,"PageDown"),L(k,this.labelCurrentMonth,this.gotoCurrentMonth,this.thisMonthDisabled,"Home"),L(A,this.labelNextMonth,this.gotoNextMonth,this.nextMonthDisabled,"PageUp"),L(P,this.labelNextYear,this.gotoNextYear,this.nextYearDisabled,"Alt+PageUp"),g?t():L(M,this.labelNextDecade,this.gotoNextDecade,this.nextDecadeDisabled,"Ctrl+Alt+PageUp")]),R=t("header",{staticClass:"b-calendar-grid-caption text-center font-weight-bold",class:{"text-muted":c},attrs:{id:a,"aria-live":d?"polite":null,"aria-atomic":d?"true":null},key:"grid-caption"},this.formatYearMonth(this.calendarFirstDay)),I=t("div",{staticClass:"b-calendar-grid-weekdays row no-gutters border-bottom",attrs:{"aria-hidden":"true"}},this.calendarHeadings.map((function(e,n){return t("small",{staticClass:"col text-truncate",class:{"text-muted":c},attrs:{title:e.label===e.text?null:e.label,"aria-label":e.label},key:n},e.text)}))),j=this.calendar.map((function(n){var i=n.map((function(n,i){var r,o=n.ymd===f,a=n.ymd===p,s=n.ymd===b,l=m("_cell-".concat(n.ymd,"_")),u=t("span",{staticClass:"btn border-0 rounded-circle text-nowrap",class:(r={focus:a&&e.gridHasFocus,disabled:n.isDisabled||c,active:o},io(r,e.computedVariant,o),io(r,e.computedTodayVariant,s&&y&&!o&&n.isThisMonth),io(r,"btn-outline-light",!(s&&y||o||a)),io(r,"btn-light",!(s&&y)&&!o&&a),io(r,"text-muted",!n.isThisMonth&&!o),io(r,"text-dark",!(s&&y)&&!o&&!a&&n.isThisMonth),io(r,"font-weight-bold",(o||n.isThisMonth)&&!n.isDisabled),r),on:{click:function(){return e.onClickDay(n)}}},n.day);return t("div",{staticClass:"col p-0",class:n.isDisabled?"bg-light":n.info.class||"",attrs:{id:l,role:"button","data-date":n.ymd,"aria-hidden":n.isThisMonth?null:"true","aria-disabled":n.isDisabled||c?"true":null,"aria-label":[n.label,o?"(".concat(e.labelSelected,")"):null,s?"(".concat(e.labelToday,")"):null].filter(v.D).join(" "),"aria-selected":o?"true":null,"aria-current":o?"date":null},key:i},[u])}));return t("div",{staticClass:"row no-gutters",key:n[0].ymd},i)}));j=t("div",{staticClass:"b-calendar-grid-body",style:c?{pointerEvents:"none"}:{}},j);var N=t("footer",{staticClass:"b-calendar-grid-help border-top small text-muted text-center bg-light",attrs:{id:s}},[t("div",{staticClass:"small"},this.labelHelp)]),F=t("div",{staticClass:"b-calendar-grid form-control h-auto text-center",attrs:{id:o,role:"application",tabindex:u?"-1":c?null:"0","data-month":p.slice(0,-3),"aria-roledescription":this.labelCalendar||null,"aria-labelledby":a,"aria-describedby":s,"aria-disabled":c?"true":null,"aria-activedescendant":l},on:{keydown:this.onKeydownGrid,focus:this.setGridFocusFlag,blur:this.setGridFocusFlag},ref:"grid"},[R,I,j,N]),z=this.normalizeSlot();z=z?t("footer",{staticClass:"b-calendar-footer"},z):t();var B=t("div",{staticClass:"b-calendar-inner",style:this.block?{}:{width:this.width},attrs:{id:i,dir:h?"rtl":"ltr",lang:this.computedLocale||null,role:"group","aria-disabled":c?"true":null,"aria-controls":this.ariaControls||null,"aria-roledescription":this.roleDescription||null,"aria-describedby":[this.bvAttrs["aria-describedby"],n,s].filter(v.D).join(" ")},on:{keydown:this.onKeydownWrapper}},[_,D,F,z]);return t("div",{staticClass:"b-calendar",class:{"d-block":this.block}},[B])}}),ho=I({components:{BCalendar:uo}}),po=(0,Ue.sC)({bgVariant:(0,Ue.Yg)(kt.vq),borderVariant:(0,Ue.Yg)(kt.vq),tag:(0,Ue.Yg)(kt.vq,"div"),textVariant:(0,Ue.Yg)(kt.vq)},H.fZ),fo=(i.default.extend({props:po}),(0,Ue.sC)({title:(0,Ue.Yg)(kt.vq),titleTag:(0,Ue.Yg)(kt.vq,"h4")},H.es)),mo=i.default.extend({name:H.es,functional:!0,props:fo,render:function(t,e){var n=e.props,i=e.data,r=e.children;return t(n.titleTag,(0,$.L)(i,{staticClass:"card-title"}),r||(0,oe.dI)(n.title))}}),vo=(0,Ue.sC)({subTitle:(0,Ue.Yg)(kt.vq),subTitleTag:(0,Ue.Yg)(kt.vq,"h6"),subTitleTextVariant:(0,Ue.Yg)(kt.vq,"muted")},H.t2),go=i.default.extend({name:H.t2,functional:!0,props:vo,render:function(t,e){var n=e.props,i=e.data,r=e.children;return t(n.subTitleTag,(0,$.L)(i,{staticClass:"card-subtitle",class:[n.subTitleTextVariant?"text-".concat(n.subTitleTextVariant):null]}),r||(0,oe.dI)(n.subTitle))}});function bo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function yo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bo(Object(n),!0).forEach((function(e){_o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var wo=(0,Ue.sC)((0,_.di)(yo(yo(yo(yo({},fo),vo),(0,Ue.ij)(po,Ue.Pw.bind(null,"body"))),{},{bodyClass:(0,Ue.Yg)(kt.VE),overlay:(0,Ue.Yg)(kt.Ye,!1)})),H.St),xo=i.default.extend({name:H.St,functional:!0,props:wo,render:function(t,e){var n,i=e.props,r=e.data,o=e.children,a=i.bodyBgVariant,s=i.bodyBorderVariant,l=i.bodyTextVariant,c=t();i.title&&(c=t(mo,{props:(0,Ue.YL)(fo,i)}));var u=t();return i.subTitle&&(u=t(go,{props:(0,Ue.YL)(vo,i),class:["mb-2"]})),t(i.bodyTag,(0,$.L)(r,{staticClass:"card-body",class:[(n={"card-img-overlay":i.overlay},_o(n,"bg-".concat(a),a),_o(n,"border-".concat(s),s),_o(n,"text-".concat(l),l),n),i.bodyClass]}),[c,u,o])}});function Co(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function So(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Co(Object(n),!0).forEach((function(e){Eo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Co(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Eo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var To=(0,Ue.sC)((0,_.di)(So(So({},(0,Ue.ij)(po,Ue.Pw.bind(null,"header"))),{},{header:(0,Ue.Yg)(kt.vq),headerClass:(0,Ue.Yg)(kt.VE),headerHtml:(0,Ue.Yg)(kt.vq)})),H.N9),Oo=i.default.extend({name:H.N9,functional:!0,props:To,render:function(t,e){var n,i=e.props,r=e.data,o=e.children,a=i.headerBgVariant,s=i.headerBorderVariant,l=i.headerTextVariant;return t(i.headerTag,(0,$.L)(r,{staticClass:"card-header",class:[i.headerClass,(n={},Eo(n,"bg-".concat(a),a),Eo(n,"border-".concat(s),s),Eo(n,"text-".concat(l),l),n)],domProps:o?{}:er(i.headerHtml,i.header)}),o)}});function ko(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ao(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ko(Object(n),!0).forEach((function(e){Po(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ko(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Po(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Mo=(0,Ue.sC)((0,_.di)(Ao(Ao({},(0,Ue.ij)(po,Ue.Pw.bind(null,"footer"))),{},{footer:(0,Ue.Yg)(kt.vq),footerClass:(0,Ue.Yg)(kt.VE),footerHtml:(0,Ue.Yg)(kt.vq)})),H.Fw),Lo=i.default.extend({name:H.Fw,functional:!0,props:Mo,render:function(t,e){var n,i=e.props,r=e.data,o=e.children,a=i.footerBgVariant,s=i.footerBorderVariant,l=i.footerTextVariant;return t(i.footerTag,(0,$.L)(r,{staticClass:"card-footer",class:[i.footerClass,(n={},Po(n,"bg-".concat(a),a),Po(n,"border-".concat(s),s),Po(n,"text-".concat(l),l),n)],domProps:o?{}:er(i.footerHtml,i.footer)}),o)}});function Do(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ro='<svg width="%{w}" height="%{h}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 %{w} %{h}" preserveAspectRatio="none"><rect width="100%" height="100%" style="fill:%{f};"></rect></svg>',Io=(0,Ue.sC)({alt:(0,Ue.Yg)(kt.vq),blank:(0,Ue.Yg)(kt.Ye,!1),blankColor:(0,Ue.Yg)(kt.vq,"transparent"),block:(0,Ue.Yg)(kt.Ye,!1),center:(0,Ue.Yg)(kt.Ye,!1),fluid:(0,Ue.Yg)(kt.Ye,!1),fluidGrow:(0,Ue.Yg)(kt.Ye,!1),height:(0,Ue.Yg)(kt.$$),left:(0,Ue.Yg)(kt.Ye,!1),right:(0,Ue.Yg)(kt.Ye,!1),rounded:(0,Ue.Yg)(kt.iF,!1),sizes:(0,Ue.Yg)(kt.vj),src:(0,Ue.Yg)(kt.vq),srcset:(0,Ue.Yg)(kt.vj),thumbnail:(0,Ue.Yg)(kt.Ye,!1),width:(0,Ue.Yg)(kt.$$)},H.EC),jo=i.default.extend({name:H.EC,functional:!0,props:Io,render:function(t,e){var n,i=e.props,r=e.data,o=i.alt,a=i.src,s=i.block,l=i.fluidGrow,c=i.rounded,u=(0,re.yJ)(i.width)||null,d=(0,re.yJ)(i.height)||null,h=null,p=ee(i.srcset).filter(v.D).join(","),f=ee(i.sizes).filter(v.D).join(",");return i.blank&&(!d&&u?d=u:!u&&d&&(u=d),u||d||(u=1,d=1),a=function(t,e,n){var i=encodeURIComponent(Ro.replace("%{w}",(0,oe.dI)(t)).replace("%{h}",(0,oe.dI)(e)).replace("%{f}",n));return"data:image/svg+xml;charset=UTF-8,".concat(i)}(u,d,i.blankColor||"transparent"),p=null,f=null),i.left?h="float-left":i.right?h="float-right":i.center&&(h="mx-auto",s=!0),t("img",(0,$.L)(r,{attrs:{src:a,alt:o,width:u?(0,oe.dI)(u):null,height:d?(0,oe.dI)(d):null,srcset:p||null,sizes:f||null},class:(n={"img-thumbnail":i.thumbnail,"img-fluid":i.fluid||l,"w-100":l,rounded:""===c||!0===c},Do(n,"rounded-".concat(c),(0,g.Kg)(c)&&""!==c),Do(n,h,h),Do(n,"d-block",s),n)}))}});function No(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Fo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?No(Object(n),!0).forEach((function(e){zo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):No(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function zo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Bo=(0,Ue.sC)((0,_.di)(Fo(Fo({},(0,_.Up)(Io,["src","alt","width","height","left","right"])),{},{bottom:(0,Ue.Yg)(kt.Ye,!1),end:(0,Ue.Yg)(kt.Ye,!1),start:(0,Ue.Yg)(kt.Ye,!1),top:(0,Ue.Yg)(kt.Ye,!1)})),H.fp),$o=i.default.extend({name:H.fp,functional:!0,props:Bo,render:function(t,e){var n=e.props,i=e.data,r=n.src,o=n.alt,a=n.width,s=n.height,l="card-img";return n.top?l+="-top":n.right||n.end?l+="-right":n.bottom?l+="-bottom":(n.left||n.start)&&(l+="-left"),t("img",(0,$.L)(i,{class:l,attrs:{src:r,alt:o,width:a,height:s}}))}});function Uo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ho(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Uo(Object(n),!0).forEach((function(e){Vo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Uo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Vo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Yo=(0,Ue.ij)(Bo,Ue.Pw.bind(null,"img"));Yo.imgSrc.required=!1;var qo=(0,Ue.sC)((0,_.di)(Ho(Ho(Ho(Ho(Ho(Ho({},wo),To),Mo),Yo),po),{},{align:(0,Ue.Yg)(kt.vq),noBody:(0,Ue.Yg)(kt.Ye,!1)})),H.fZ),Wo=i.default.extend({name:H.fZ,functional:!0,props:qo,render:function(t,e){var n,i=e.props,r=e.data,o=e.slots,a=e.scopedSlots,s=i.imgSrc,l=i.imgLeft,c=i.imgRight,u=i.imgStart,d=i.imgEnd,h=i.imgBottom,p=i.header,f=i.headerHtml,m=i.footer,v=i.footerHtml,g=i.align,b=i.textVariant,y=i.bgVariant,_=i.borderVariant,w=a||{},x=o(),C={},S=t(),E=t();if(s){var T=t($o,{props:(0,Ue.YL)(Yo,i,Ue.sd.bind(null,"img"))});h?E=T:S=T}var O=t(),k=Ve(zt,w,x);(k||p||f)&&(O=t(Oo,{props:(0,Ue.YL)(To,i),domProps:k?{}:er(f,p)},Ye(zt,C,w,x)));var A=Ye(Rt,C,w,x);i.noBody||(A=t(xo,{props:(0,Ue.YL)(wo,i)},A),i.overlay&&s&&(A=t("div",{staticClass:"position-relative"},[S,A,E]),S=t(),E=t()));var P=t();return(Ve(Ft,w,x)||m||v)&&(P=t(Lo,{props:(0,Ue.YL)(Mo,i),domProps:k?{}:er(v,m)},Ye(Ft,C,w,x))),t(i.tag,(0,$.L)(r,{staticClass:"card",class:(n={"flex-row":l||u,"flex-row-reverse":(c||d)&&!(l||u)},Vo(n,"text-".concat(g),g),Vo(n,"bg-".concat(y),y),Vo(n,"border-".concat(_),_),Vo(n,"text-".concat(b),b),n)}),[S,O,A,P,E])}});function Go(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var Xo,Ko="__bv__visibility_observer",Zo=function(){function t(e,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=e,this.callback=n.callback,this.margin=n.margin||0,this.once=n.once||!1,this.observer=null,this.visible=void 0,this.doneOnce=!1,this.createObserver(i)}var e,n,i;return e=t,(n=[{key:"createObserver",value:function(t){var e=this;if(this.observer&&this.stop(),!this.doneOnce&&(0,g.Tn)(this.callback)){try{this.observer=new IntersectionObserver(this.handler.bind(this),{root:null,rootMargin:this.margin,threshold:0})}catch(t){return this.doneOnce=!0,this.observer=void 0,void this.callback(null)}t.context.$nextTick((function(){ue((function(){e.observer&&e.observer.observe(e.el)}))}))}}},{key:"handler",value:function(t){var e=t?t[0]:{},n=Boolean(e.isIntersecting||e.intersectionRatio>0);n!==this.visible&&(this.visible=n,this.callback(n),this.once&&this.visible&&(this.doneOnce=!0,this.stop()))}},{key:"stop",value:function(){this.observer&&this.observer.disconnect(),this.observer=null}}])&&Go(e.prototype,n),i&&Go(e,i),t}(),Jo=function(t){var e=t[Ko];e&&e.stop&&e.stop(),delete t[Ko]},Qo=function(t,e,n){var i=e.value,r=e.modifiers,o={margin:"0px",once:!1,callback:i};(0,_.HP)(r).forEach((function(t){m._$.test(t)?o.margin="".concat(t,"px"):"once"===t.toLowerCase()&&(o.once=!0)})),Jo(t),t[Ko]=new Zo(t,o,n),t[Ko]._prevModifiers=(0,_.o8)(r)},ta={bind:Qo,componentUpdated:function(t,e,n){var i=e.value,r=e.oldValue,o=e.modifiers;o=(0,_.o8)(o),!t||i===r&&t[Ko]&&ni(o,t[Ko]._prevModifiers)||Qo(t,{value:i,modifiers:o},n)},unbind:function(t){Jo(t)}};function ea(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function na(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ea(Object(n),!0).forEach((function(e){ia(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ea(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ia(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ra="show",oa=St+ra,aa=(0,_.cJ)(Io,["blank"]),sa=(0,Ue.sC)(na(na({},aa),{},ia({blankColor:(0,Ue.Yg)(kt.vq,"transparent"),blankHeight:(0,Ue.Yg)(kt.$$),blankSrc:(0,Ue.Yg)(kt.vq,null),blankWidth:(0,Ue.Yg)(kt.$$),offset:(0,Ue.Yg)(kt.$$,360)},ra,(0,Ue.Yg)(kt.Ye,!1))),H.N0),la=i.default.extend({name:H.N0,directives:{"b-visible":ta},props:sa,data:function(){return{isShown:this[ra]}},computed:{computedSrc:function(){var t=this.blankSrc;return!t||this.isShown?this.src:t},computedBlank:function(){return!(this.isShown||this.blankSrc)},computedWidth:function(){var t=this.width;return this.isShown?t:this.blankWidth||t},computedHeight:function(){var t=this.height;return this.isShown?t:this.blankHeight||t},computedSrcset:function(){var t=ee(this.srcset).filter(v.D).join(",");return!this.blankSrc||this.isShown?t:null},computedSizes:function(){var t=ee(this.sizes).filter(v.D).join(",");return!this.blankSrc||this.isShown?t:null}},watch:(Xo={},ia(Xo,ra,(function(t,e){if(t!==e){var n=!h.D2||t;this.isShown=n,n!==t&&this.$nextTick(this.updateShowProp)}})),ia(Xo,"isShown",(function(t,e){t!==e&&this.updateShowProp()})),Xo),mounted:function(){this.isShown=!h.D2||this[ra]},methods:{updateShowProp:function(){this.$emit(oa,this.isShown)},doShow:function(t){!t&&null!==t||this.isShown||(this.isShown=!0)}},render:function(t){var e,n=[];this.isShown||n.push({name:"b-visible",value:this.doShow,modifiers:(e={},ia(e,"".concat((0,re.yJ)(this.offset,0)),!0),ia(e,"once",!0),e)});return t(jo,{directives:n,props:na({src:this.computedSrc,blank:this.computedBlank,width:this.computedWidth,height:this.computedHeight,srcset:this.computedSrcset||null,sizes:this.computedSizes||null},(0,Ue.YL)(aa,this.$props))})}});function ca(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ua(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ca(Object(n),!0).forEach((function(e){da(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ca(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function da(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ha=(0,Ue.sC)((0,_.di)(ua(ua({},(0,_.cJ)(sa,(0,_.HP)(Io))),(0,_.cJ)(Bo,["src","alt","width","height"]))),H.eW),pa=i.default.extend({name:H.eW,functional:!0,props:ha,render:function(t,e){var n=e.props,i=e.data,r="card-img";return n.top?r+="-top":n.right||n.end?r+="-right":n.bottom?r+="-bottom":(n.left||n.start)&&(r+="-left"),t(la,(0,$.L)(i,{class:[r],props:(0,_.cJ)(n,["left","right"])}))}}),fa=(0,Ue.sC)({textTag:(0,Ue.Yg)(kt.vq,"p")},H.pW),ma=i.default.extend({name:H.pW,functional:!0,props:fa,render:function(t,e){var n=e.props,i=e.data,r=e.children;return t(n.textTag,(0,$.L)(i,{staticClass:"card-text"}),r)}}),va=(0,Ue.sC)({columns:(0,Ue.Yg)(kt.Ye,!1),deck:(0,Ue.Yg)(kt.Ye,!1),tag:(0,Ue.Yg)(kt.vq,"div")},H.H3),ga=i.default.extend({name:H.H3,functional:!0,props:va,render:function(t,e){var n=e.props,i=e.data,r=e.children;return t(n.tag,(0,$.L)(i,{class:n.deck?"card-deck":n.columns?"card-columns":"card-group"}),r)}}),ba=I({components:{BCard:Wo,BCardHeader:Oo,BCardBody:xo,BCardTitle:mo,BCardSubTitle:go,BCardFooter:Lo,BCardImg:$o,BCardImgLazy:pa,BCardText:ma,BCardGroup:ga}}),ya=function(){};function _a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function wa(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xa,Ca=function(t,e,n){if(t=t?t.$el||t:null,!he(t))return null;if(i="observeDom",!h.aB&&(C("".concat(i,": Requires MutationObserver support.")),1))return null;var i,r=new de((function(t){for(var n=!1,i=0;i<t.length&&!n;i++){var r=t[i],o=r.type,a=r.target;("characterData"===o&&a.nodeType===Node.TEXT_NODE||"attributes"===o||"childList"===o&&(r.addedNodes.length>0||r.removedNodes.length>0))&&(n=!0)}n&&e()}));return r.observe(t,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_a(Object(n),!0).forEach((function(e){wa(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({childList:!0,subtree:!0},n)),r};function Sa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ea(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Sa(Object(n),!0).forEach((function(e){Ta(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Sa(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ta(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Oa=He("value",{type:kt.Rn,defaultValue:0}),ka=Oa.mixin,Aa=Oa.props,Pa=Oa.prop,Ma=Oa.event,La={next:{dirClass:"carousel-item-left",overlayClass:"carousel-item-next"},prev:{dirClass:"carousel-item-right",overlayClass:"carousel-item-prev"}},Da={TOUCH:"touch",PEN:"pen"},Ra={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend oTransitionEnd",transition:"transitionend"},Ia=(0,Ue.sC)((0,_.di)(Ea(Ea(Ea({},Qr),Aa),{},{background:(0,Ue.Yg)(kt.vq),controls:(0,Ue.Yg)(kt.Ye,!1),fade:(0,Ue.Yg)(kt.Ye,!1),imgHeight:(0,Ue.Yg)(kt.$$),imgWidth:(0,Ue.Yg)(kt.$$),indicators:(0,Ue.Yg)(kt.Ye,!1),interval:(0,Ue.Yg)(kt.Rn,5e3),labelGotoSlide:(0,Ue.Yg)(kt.vq,"Goto slide"),labelIndicators:(0,Ue.Yg)(kt.vq,"Select a slide to display"),labelNext:(0,Ue.Yg)(kt.vq,"Next slide"),labelPrev:(0,Ue.Yg)(kt.vq,"Previous slide"),noAnimation:(0,Ue.Yg)(kt.Ye,!1),noHoverPause:(0,Ue.Yg)(kt.Ye,!1),noTouch:(0,Ue.Yg)(kt.Ye,!1),noWrap:(0,Ue.Yg)(kt.Ye,!1)})),H.v1),ja=i.default.extend({name:H.v1,mixins:[to,ka,qe],provide:function(){return{bvCarousel:this}},props:Ia,data:function(){return{index:this[Pa]||0,isSliding:!1,transitionEndEvent:null,slides:[],direction:null,isPaused:!((0,re.yJ)(this.interval,0)>0),touchStartX:0,touchDeltaX:0}},computed:{numSlides:function(){return this.slides.length}},watch:(xa={},Ta(xa,Pa,(function(t,e){t!==e&&this.setSlide((0,re.yJ)(t,0))})),Ta(xa,"interval",(function(t,e){t!==e&&(t?(this.pause(!0),this.start(!1)):this.pause(!1))})),Ta(xa,"isPaused",(function(t,e){t!==e&&this.$emit(t?"paused":"unpaused")})),Ta(xa,"index",(function(t,e){t===e||this.isSliding||this.doSlide(t,e)})),xa),created:function(){this.$_interval=null,this.$_animationTimeout=null,this.$_touchTimeout=null,this.$_observer=null,this.isPaused=!((0,re.yJ)(this.interval,0)>0)},mounted:function(){this.transitionEndEvent=function(t){for(var e in Ra)if(!(0,g.b0)(t.style[e]))return Ra[e];return null}(this.$el)||null,this.updateSlides(),this.setObserver(!0)},beforeDestroy:function(){this.clearInterval(),this.clearAnimationTimeout(),this.clearTouchTimeout(),this.setObserver(!1)},methods:{clearInterval:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){clearInterval(this.$_interval),this.$_interval=null})),clearAnimationTimeout:function(){clearTimeout(this.$_animationTimeout),this.$_animationTimeout=null},clearTouchTimeout:function(){clearTimeout(this.$_touchTimeout),this.$_touchTimeout=null},setObserver:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$_observer&&this.$_observer.disconnect(),this.$_observer=null,t&&(this.$_observer=Ca(this.$refs.inner,this.updateSlides.bind(this),{subtree:!1,childList:!0,attributes:!0,attributeFilter:["id"]}))},setSlide:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(h.KJ&&document.visibilityState&&document.hidden)){var i=this.noWrap,r=this.numSlides;t=(0,Sn.Zr)(t),0!==r&&(this.isSliding?this.$once(_t,(function(){ue((function(){return e.setSlide(t,n)}))})):(this.direction=n,this.index=t>=r?i?r-1:0:t<0?i?0:r-1:t,i&&this.index!==t&&this.index!==this[Pa]&&this.$emit(Ma,this.index)))}},prev:function(){this.setSlide(this.index-1,"prev")},next:function(){this.setSlide(this.index+1,"next")},pause:function(t){t||(this.isPaused=!0),this.clearInterval()},start:function(t){t||(this.isPaused=!1),this.clearInterval(),this.interval&&this.numSlides>1&&(this.$_interval=setInterval(this.next,(0,Sn.JB)(1e3,this.interval)))},restart:function(){this.$el.contains(pe())||this.start()},doSlide:function(t,e){var n=this,i=Boolean(this.interval),r=this.calcDirection(this.direction,e,t),o=r.overlayClass,a=r.dirClass,s=this.slides[e],l=this.slides[t];if(s&&l){if(this.isSliding=!0,i&&this.pause(!1),this.$emit("sliding-start",t),this.$emit(Ma,this.index),this.noAnimation)Ee(l,"active"),Te(s,"active"),this.isSliding=!1,this.$nextTick((function(){return n.$emit(_t,t)}));else{Ee(l,o),be(l),Ee(s,a),Ee(l,a);var c=!1,u=function e(){if(!c){if(c=!0,n.transitionEndEvent)n.transitionEndEvent.split(/\s+/).forEach((function(t){return Xe(l,t,e,Ot)}));n.clearAnimationTimeout(),Te(l,a),Te(l,o),Ee(l,"active"),Te(s,"active"),Te(s,a),Te(s,o),ke(s,"aria-current","false"),ke(l,"aria-current","true"),ke(s,"aria-hidden","true"),ke(l,"aria-hidden","false"),n.isSliding=!1,n.direction=null,n.$nextTick((function(){return n.$emit(_t,t)}))}};if(this.transitionEndEvent)this.transitionEndEvent.split(/\s+/).forEach((function(t){return Ge(l,t,u,Ot)}));this.$_animationTimeout=setTimeout(u,650)}i&&this.start(!1)}},updateSlides:function(){this.pause(!0),this.slides=ye(".carousel-item",this.$refs.inner);var t=this.slides.length,e=(0,Sn.JB)(0,(0,Sn.rp)((0,Sn.Zr)(this.index),t-1));this.slides.forEach((function(n,i){var r=i+1;i===e?(Ee(n,"active"),ke(n,"aria-current","true")):(Te(n,"active"),ke(n,"aria-current","false")),ke(n,"aria-posinset",String(r)),ke(n,"aria-setsize",String(t))})),this.setSlide(e),this.start(this.isPaused)},calcDirection:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t?La[t]:(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)>(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)?La.next:La.prev},handleClick:function(t,e){var n=t.keyCode;"click"!==t.type&&n!==Qn&&n!==Xn||(Ze(t),e())},handleSwipe:function(){var t=(0,Sn.NY)(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0?this.prev():e<0&&this.next()}},touchStart:function(t){h.sU&&Da[t.pointerType.toUpperCase()]?this.touchStartX=t.clientX:h.sU||(this.touchStartX=t.touches[0].clientX)},touchMove:function(t){t.touches&&t.touches.length>1?this.touchDeltaX=0:this.touchDeltaX=t.touches[0].clientX-this.touchStartX},touchEnd:function(t){h.sU&&Da[t.pointerType.toUpperCase()]&&(this.touchDeltaX=t.clientX-this.touchStartX),this.handleSwipe(),this.pause(!1),this.clearTouchTimeout(),this.$_touchTimeout=setTimeout(this.start,500+(0,Sn.JB)(1e3,this.interval))}},render:function(t){var e=this,n=this.indicators,i=this.background,r=this.noAnimation,o=this.noHoverPause,a=this.noTouch,s=this.index,l=this.isSliding,c=this.pause,u=this.restart,d=this.touchStart,p=this.touchEnd,f=this.safeId("__BV_inner_"),m=t("div",{staticClass:"carousel-inner",attrs:{id:f,role:"list"},ref:"inner"},[this.normalizeSlot()]),v=t();if(this.controls){var g=function(n,i,r){var o=function(t){l?Ze(t,{propagation:!1}):e.handleClick(t,r)};return t("a",{staticClass:"carousel-control-".concat(n),attrs:{href:"#",role:"button","aria-controls":f,"aria-disabled":l?"true":null},on:{click:o,keydown:o}},[t("span",{staticClass:"carousel-control-".concat(n,"-icon"),attrs:{"aria-hidden":"true"}}),t("span",{class:"sr-only"},[i])])};v=[g("prev",this.labelPrev,this.prev),g("next",this.labelNext,this.next)]}var b=t("ol",{staticClass:"carousel-indicators",directives:[{name:"show",value:n}],attrs:{id:this.safeId("__BV_indicators_"),"aria-hidden":n?"false":"true","aria-label":this.labelIndicators,"aria-owns":f}},this.slides.map((function(i,r){var o=function(t){e.handleClick(t,(function(){e.setSlide(r)}))};return t("li",{class:{active:r===s},attrs:{role:"button",id:e.safeId("__BV_indicator_".concat(r+1,"_")),tabindex:n?"0":"-1","aria-current":r===s?"true":"false","aria-label":"".concat(e.labelGotoSlide," ").concat(r+1),"aria-describedby":i.id||null,"aria-controls":f},on:{click:o,keydown:o},key:"slide_".concat(r)})}))),y={mouseenter:o?ya:c,mouseleave:o?ya:u,focusin:c,focusout:u,keydown:function(t){if(!/input|textarea/i.test(t.target.tagName)){var n=t.keyCode;n!==Zn&&n!==Jn||(Ze(t),e[n===Zn?"prev":"next"]())}}};return h.px&&!a&&(h.sU?(y["&pointerdown"]=d,y["&pointerup"]=p):(y["&touchstart"]=d,y["&touchmove"]=this.touchMove,y["&touchend"]=p)),t("div",{staticClass:"carousel",class:{slide:!r,"carousel-fade":!r&&this.fade,"pointer-event":h.px&&h.sU&&!a},style:{background:i},attrs:{role:"region",id:this.safeId(),"aria-busy":l?"true":"false"},on:y},[m,v,b])}});function Na(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Fa(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Na(Object(n),!0).forEach((function(e){za(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Na(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function za(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ba,$a={imgAlt:(0,Ue.Yg)(kt.vq),imgBlank:(0,Ue.Yg)(kt.Ye,!1),imgBlankColor:(0,Ue.Yg)(kt.vq,"transparent"),imgHeight:(0,Ue.Yg)(kt.$$),imgSrc:(0,Ue.Yg)(kt.vq),imgWidth:(0,Ue.Yg)(kt.$$)},Ua=(0,Ue.sC)((0,_.di)(Fa(Fa(Fa({},Qr),$a),{},{background:(0,Ue.Yg)(kt.vq),caption:(0,Ue.Yg)(kt.vq),captionHtml:(0,Ue.Yg)(kt.vq),captionTag:(0,Ue.Yg)(kt.vq,"h3"),contentTag:(0,Ue.Yg)(kt.vq,"div"),contentVisibleUp:(0,Ue.Yg)(kt.vq),text:(0,Ue.Yg)(kt.vq),textHtml:(0,Ue.Yg)(kt.vq),textTag:(0,Ue.Yg)(kt.vq,"p")})),H.dN),Ha=I({components:{BCarousel:ja,BCarouselSlide:i.default.extend({name:H.dN,mixins:[to,qe],inject:{bvCarousel:{default:function(){return{noTouch:!0}}}},props:Ua,computed:{contentClasses:function(){return[this.contentVisibleUp?"d-none":"",this.contentVisibleUp?"d-".concat(this.contentVisibleUp,"-block"):""]},computedWidth:function(){return this.imgWidth||this.bvCarousel.imgWidth||null},computedHeight:function(){return this.imgHeight||this.bvCarousel.imgHeight||null}},render:function(t){var e=this.normalizeSlot("img");if(!e&&(this.imgSrc||this.imgBlank)){var n={};!this.bvCarousel.noTouch&&h.px&&(n.dragstart=function(t){return Ze(t,{propagation:!1})}),e=t(jo,{props:Fa(Fa({},(0,Ue.YL)($a,this.$props,Ue.sd.bind(null,"img"))),{},{width:this.computedWidth,height:this.computedHeight,fluidGrow:!0,block:!0}),on:n})}var i=[!(!this.caption&&!this.captionHtml)&&t(this.captionTag,{domProps:er(this.captionHtml,this.caption)}),!(!this.text&&!this.textHtml)&&t(this.textTag,{domProps:er(this.textHtml,this.text)}),this.normalizeSlot()||!1],r=t();return i.some(v.D)&&(r=t(this.contentTag,{staticClass:"carousel-caption",class:this.contentClasses},i.map((function(e){return e||t()})))),t("div",{staticClass:"carousel-item",style:{background:this.background||this.bvCarousel.background||null},attrs:{id:this.safeId(),role:"listitem"}},[e,r])}})}}),Va="show",Ya={css:!0,enterClass:"",enterActiveClass:"collapsing",enterToClass:"collapse show",leaveClass:"collapse show",leaveActiveClass:"collapsing",leaveToClass:"collapse"},qa={enter:function(t){Le(t,"height",0),ue((function(){be(t),Le(t,"height","".concat(t.scrollHeight,"px"))}))},afterEnter:function(t){De(t,"height")},leave:function(t){Le(t,"height","auto"),Le(t,"display","block"),Le(t,"height","".concat(Ie(t).height,"px")),be(t),Le(t,"height",0)},afterLeave:function(t){De(t,"height")}},Wa={appear:(0,Ue.Yg)(kt.Ye,!1)},Ga=i.default.extend({name:H.d6,functional:!0,props:Wa,render:function(t,e){var n=e.props,i=e.data,r=e.children;return t("transition",(0,$.L)(i,{props:Ya,on:qa},{props:n}),r)}});function Xa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ka(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xa(Object(n),!0).forEach((function(e){Za(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xa(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Za(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ja=tn(H.CU,"toggle"),Qa=tn(H.CU,"request-state"),ts=Qe(H.CU,"accordion"),es=Qe(H.CU,"state"),ns=Qe(H.CU,"sync-state"),is=He("visible",{type:kt.Ye,defaultValue:!1}),rs=is.mixin,os=is.props,as=is.prop,ss=is.event,ls=(0,Ue.sC)((0,_.di)(Ka(Ka(Ka({},Qr),os),{},{accordion:(0,Ue.Yg)(kt.vq),appear:(0,Ue.Yg)(kt.Ye,!1),isNav:(0,Ue.Yg)(kt.Ye,!1),tag:(0,Ue.Yg)(kt.vq,"div")})),H.CU),cs=i.default.extend({name:H.CU,mixins:[to,rs,qe,li],props:ls,data:function(){return{show:this[as],transitioning:!1}},computed:{classObject:function(){var t=this.transitioning;return{"navbar-collapse":this.isNav,collapse:!t,show:this.show&&!t}},slotScope:function(){var t=this;return{visible:this.show,close:function(){t.show=!1}}}},watch:(Ba={},Za(Ba,as,(function(t){t!==this.show&&(this.show=t)})),Za(Ba,"show",(function(t,e){t!==e&&this.emitState()})),Ba),created:function(){this.show=this[as]},mounted:function(){var t=this;this.show=this[as],this.listenOnRoot(Ja,this.handleToggleEvt),this.listenOnRoot(ts,this.handleAccordionEvt),this.isNav&&(this.setWindowEvents(!0),this.handleResize()),this.$nextTick((function(){t.emitState()})),this.listenOnRoot(Qa,(function(e){e===t.safeId()&&t.$nextTick(t.emitSync)}))},updated:function(){this.emitSync()},deactivated:function(){this.isNav&&this.setWindowEvents(!1)},activated:function(){this.isNav&&this.setWindowEvents(!0),this.emitSync()},beforeDestroy:function(){this.show=!1,this.isNav&&h.KJ&&this.setWindowEvents(!1)},methods:{setWindowEvents:function(t){Ke(t,window,"resize",this.handleResize,Ot),Ke(t,window,"orientationchange",this.handleResize,Ot)},toggle:function(){this.show=!this.show},onEnter:function(){this.transitioning=!0,this.$emit(bt)},onAfterEnter:function(){this.transitioning=!1,this.$emit(yt)},onLeave:function(){this.transitioning=!0,this.$emit(at)},onAfterLeave:function(){this.transitioning=!1,this.$emit(ot)},emitState:function(){var t=this.show,e=this.accordion,n=this.safeId();this.$emit(ss,t),this.emitOnRoot(es,n,t),e&&t&&this.emitOnRoot(ts,n,e)},emitSync:function(){this.emitOnRoot(ns,this.safeId(),this.show)},checkDisplayBlock:function(){var t=this.$el,e=Oe(t,Va);Te(t,Va);var n="block"===je(t).display;return e&&Ee(t,Va),n},clickHandler:function(t){var e=t.target;this.isNav&&e&&"block"===je(this.$el).display&&(!we(e,".nav-link,.dropdown-item")&&!xe(".nav-link,.dropdown-item",e)||this.checkDisplayBlock()||(this.show=!1))},handleToggleEvt:function(t){t===this.safeId()&&this.toggle()},handleAccordionEvt:function(t,e){var n=this.accordion,i=this.show;if(n&&n===e){var r=t===this.safeId();(r&&!i||!r&&i)&&this.toggle()}},handleResize:function(){this.show="block"===je(this.$el).display}},render:function(t){var e=this.appear,n=t(this.tag,{class:this.classObject,directives:[{name:"show",value:this.show}],attrs:{id:this.safeId()},on:{click:this.clickHandler}},this.normalizeSlot(Rt,this.slotScope));return t(Ga,{props:{appear:e},on:{enter:this.onEnter,afterEnter:this.onAfterEnter,leave:this.onLeave,afterLeave:this.onAfterLeave}},[n])}}),us="collapsed",ds="not-collapsed",hs="__BV_toggle",ps="".concat(hs,"_HANDLER__"),fs="".concat(hs,"_CLICK__"),ms="".concat(hs,"_STATE__"),vs="".concat(hs,"_TARGETS__"),gs="aria-controls",bs="aria-expanded",ys="role",_s="tabindex",ws="overflow-anchor",xs=tn(H.CU,"toggle"),Cs=Qe(H.CU,"state"),Ss=Qe(H.CU,"sync-state"),Es=tn(H.CU,"request-state"),Ts=[Xn,Qn],Os=function(t){return!te(["button","a"],t.tagName.toLowerCase())},ks=function(t){var e=t[fs];e&&(Xe(t,"click",e,Tt),Xe(t,"keydown",e,Tt)),t[fs]=null},As=function(t,e){t[ps]&&e.context&&e.context.$root.$off([Cs,Ss],t[ps]),t[ps]=null},Ps=function(t,e){e?(Te(t,us),Ee(t,ds),ke(t,bs,"true")):(Te(t,ds),Ee(t,us),ke(t,bs,"false"))},Ms=function(t,e){t[e]=null,delete t[e]},Ls=function(t,e,n){if(h.KJ&&n.context){Os(t)&&(Me(t,ys)||ke(t,ys,"button"),Me(t,_s)||ke(t,_s,"0")),Ps(t,t[ms]);var i=function(t,e){var n=t.modifiers,i=t.arg,r=t.value,o=(0,_.HP)(n||{});if(r=(0,g.Kg)(r)?r.split(m.Vs):r,fe(e.tagName,"a")){var a=Pe(e,"href")||"";m.Wi.test(a)&&o.push(a.replace(m.YH,""))}return ee(i,r).forEach((function(t){return(0,g.Kg)(t)&&o.push(t)})),o.filter((function(t,e,n){return t&&n.indexOf(t)===e}))}(e,t);i.length>0?(ke(t,gs,i.join(" ")),Le(t,ws,"none")):(Ae(t,gs),De(t,ws)),ue((function(){!function(t,e){if(ks(t),e.context){var n=function(n){"keydown"===n.type&&!te(Ts,n.keyCode)||ge(t)||(t[vs]||[]).forEach((function(t){e.context.$root.$emit(xs,t)}))};t[fs]=n,Ge(t,"click",n,Tt),Os(t)&&Ge(t,"keydown",n,Tt)}}(t,n)})),ni(i,t[vs])||(t[vs]=i,i.forEach((function(t){n.context.$root.$emit(Es,t)})))}},Ds={bind:function(t,e,n){t[ms]=!1,t[vs]=[],function(t,e){if(As(t,e),e.context){var n=function(e,n){te(t[vs]||[],e)&&(t[ms]=n,Ps(t,n))};t[ps]=n,e.context.$root.$on([Cs,Ss],n)}}(t,n),Ls(t,e,n)},componentUpdated:Ls,updated:Ls,unbind:function(t,e,n){ks(t),As(t,n),Ms(t,ps),Ms(t,fs),Ms(t,ms),Ms(t,vs),Te(t,us),Te(t,ds),Ae(t,bs),Ae(t,gs),Ae(t,ys),De(t,ws)}},Rs=I({directives:{VBToggle:Ds}}),Is=I({components:{BCollapse:cs},plugins:{VBTogglePlugin:Rs}}),js=n(8851);function Ns(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var Fs=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw new TypeError("Failed to construct '".concat(this.constructor.name,"'. 1 argument required, ").concat(arguments.length," given."));(0,_.kp)(this,t.Defaults,this.constructor.Defaults,n,{type:e}),(0,_.ny)(this,{type:(0,_.Am)(),cancelable:(0,_.Am)(),nativeEvent:(0,_.Am)(),target:(0,_.Am)(),relatedTarget:(0,_.Am)(),vueTarget:(0,_.Am)(),componentId:(0,_.Am)()});var i=!1;this.preventDefault=function(){this.cancelable&&(i=!0)},(0,_.n8)(this,"defaultPrevented",{enumerable:!0,get:function(){return i}})}var e,n,i;return e=t,i=[{key:"Defaults",get:function(){return{type:"",cancelable:!0,nativeEvent:null,target:null,relatedTarget:null,vueTarget:null,componentId:null}}}],(n=null)&&Ns(e.prototype,n),i&&Ns(e,i),t}(),zs=i.default.extend({data:function(){return{listenForClickOut:!1}},watch:{listenForClickOut:function(t,e){t!==e&&(Xe(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Ot),t&&Ge(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Ot))}},beforeCreate:function(){this.clickOutElement=null,this.clickOutEventName=null},mounted:function(){this.clickOutElement||(this.clickOutElement=document),this.clickOutEventName||(this.clickOutEventName="click"),this.listenForClickOut&&Ge(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Ot)},beforeDestroy:function(){Xe(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Ot)},methods:{isClickOut:function(t){return!Ce(this.$el,t.target)},_clickOutHandler:function(t){this.clickOutHandler&&this.isClickOut(t)&&this.clickOutHandler(t)}}}),Bs=i.default.extend({data:function(){return{listenForFocusIn:!1}},watch:{listenForFocusIn:function(t,e){t!==e&&(Xe(this.focusInElement,"focusin",this._focusInHandler,Ot),t&&Ge(this.focusInElement,"focusin",this._focusInHandler,Ot))}},beforeCreate:function(){this.focusInElement=null},mounted:function(){this.focusInElement||(this.focusInElement=document),this.listenForFocusIn&&Ge(this.focusInElement,"focusin",this._focusInHandler,Ot)},beforeDestroy:function(){Xe(this.focusInElement,"focusin",this._focusInHandler,Ot)},methods:{_focusInHandler:function(t){this.focusInHandler&&this.focusInHandler(t)}}});function $s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Us(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$s(Object(n),!0).forEach((function(e){Hs(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Hs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Vs=Qe(H.eN,yt),Ys=Qe(H.eN,ot),qs=[".dropdown-item",".b-dropdown-form"].map((function(t){return"".concat(t,":not(.disabled):not([disabled])")})).join(", "),Ws=(0,Ue.sC)((0,_.di)(Us(Us({},Qr),{},{boundary:(0,Ue.Yg)([Jt.wt,kt.vq],"scrollParent"),disabled:(0,Ue.Yg)(kt.Ye,!1),dropleft:(0,Ue.Yg)(kt.Ye,!1),dropright:(0,Ue.Yg)(kt.Ye,!1),dropup:(0,Ue.Yg)(kt.Ye,!1),noFlip:(0,Ue.Yg)(kt.Ye,!1),offset:(0,Ue.Yg)(kt.$$,0),popperOpts:(0,Ue.Yg)(kt.bD,{}),right:(0,Ue.Yg)(kt.Ye,!1)})),H.eN),Gs=i.default.extend({mixins:[to,li,zs,Bs],provide:function(){return{bvDropdown:this}},inject:{bvNavbar:{default:null}},props:Ws,data:function(){return{visible:!1,visibleChangePrevented:!1}},computed:{inNavbar:function(){return!(0,g.kZ)(this.bvNavbar)},toggler:function(){var t=this.$refs.toggle;return t?t.$el||t:null},directionClass:function(){return this.dropup?"dropup":this.dropright?"dropright":this.dropleft?"dropleft":""},boundaryClass:function(){return"scrollParent"===this.boundary||this.inNavbar?"":"position-static"}},watch:{visible:function(t,e){if(this.visibleChangePrevented)this.visibleChangePrevented=!1;else if(t!==e){var n=new Fs(t?bt:at,{cancelable:!0,vueTarget:this,target:this.$refs.menu,relatedTarget:null,componentId:this.safeId?this.safeId():this.id||null});if(this.emitEvent(n),n.defaultPrevented)return this.visibleChangePrevented=!0,this.visible=e,void this.$off(ot,this.focusToggler);t?this.showMenu():this.hideMenu()}},disabled:function(t,e){t!==e&&t&&this.visible&&(this.visible=!1)}},created:function(){this.$_popper=null,this.$_hideTimeout=null},deactivated:function(){this.visible=!1,this.whileOpenListen(!1),this.destroyPopper()},beforeDestroy:function(){this.visible=!1,this.whileOpenListen(!1),this.destroyPopper(),this.clearHideTimeout()},methods:{emitEvent:function(t){var e=t.type;this.emitOnRoot(Qe(H.eN,e),t),this.$emit(e,t)},showMenu:function(){var t=this;if(!this.disabled){if(!this.inNavbar)if(void 0===js.default)C("Popper.js not found. Falling back to CSS positioning",H.eN);else{var e=this.dropup&&this.right||this.split?this.$el:this.$refs.toggle;e=e.$el||e,this.createPopper(e)}this.emitOnRoot(Vs,this),this.whileOpenListen(!0),this.$nextTick((function(){t.focusMenu(),t.$emit(yt)}))}},hideMenu:function(){this.whileOpenListen(!1),this.emitOnRoot(Ys,this),this.$emit(ot),this.destroyPopper()},createPopper:function(t){this.destroyPopper(),this.$_popper=new js.default(t,this.$refs.menu,this.getPopperConfig())},destroyPopper:function(){this.$_popper&&this.$_popper.destroy(),this.$_popper=null},updatePopper:function(){try{this.$_popper.scheduleUpdate()}catch(t){}},clearHideTimeout:function(){clearTimeout(this.$_hideTimeout),this.$_hideTimeout=null},getPopperConfig:function(){var t="bottom-start";this.dropup?t=this.right?"top-end":"top-start":this.dropright?t="right-start":this.dropleft?t="left-start":this.right&&(t="bottom-end");var e={placement:t,modifiers:{offset:{offset:this.offset||0},flip:{enabled:!this.noFlip}}},n=this.boundary;return n&&(e.modifiers.preventOverflow={boundariesElement:n}),(0,_.D9)(e,this.popperOpts||{})},whileOpenListen:function(t){this.listenForClickOut=t,this.listenForFocusIn=t;var e=t?"$on":"$off";this.$root[e](Vs,this.rootCloseListener)},rootCloseListener:function(t){t!==this&&(this.visible=!1)},show:function(){var t=this;this.disabled||ue((function(){t.visible=!0}))},hide:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.disabled||(this.visible=!1,t&&this.$once(ot,this.focusToggler))},toggle:function(t){var e=t=t||{},n=e.type,i=e.keyCode;("click"===n||"keydown"===n&&-1!==[Xn,Qn,Wn].indexOf(i))&&(this.disabled?this.visible=!1:(this.$emit(wt,t),Ze(t),this.visible?this.hide(!0):this.show()))},onMousedown:function(t){Ze(t,{propagation:!1})},onKeydown:function(t){var e=t.keyCode;27===e?this.onEsc(t):e===Wn?this.focusNext(t,!1):e===ti&&this.focusNext(t,!0)},onEsc:function(t){this.visible&&(this.visible=!1,Ze(t),this.$once(ot,this.focusToggler))},onSplitClick:function(t){this.disabled?this.visible=!1:this.$emit(Y,t)},hideHandler:function(t){var e=this,n=t.target;!this.visible||Ce(this.$refs.menu,n)||Ce(this.toggler,n)||(this.clearHideTimeout(),this.$_hideTimeout=setTimeout((function(){return e.hide()}),this.inNavbar?300:0))},clickOutHandler:function(t){this.hideHandler(t)},focusInHandler:function(t){this.hideHandler(t)},focusNext:function(t,e){var n=this,i=t.target;!this.visible||t&&xe(".dropdown form",i)||(Ze(t),this.$nextTick((function(){var t=n.getItems();if(!(t.length<1)){var r=t.indexOf(i);e&&r>0?r--:!e&&r<t.length-1&&r++,r<0&&(r=0),n.focusItem(r,t)}})))},focusItem:function(t,e){var n=e.find((function(e,n){return n===t}));Be(n)},getItems:function(){return(ye(qs,this.$refs.menu)||[]).filter(ve)},focusMenu:function(){Be(this.$refs.menu)},focusToggler:function(){var t=this;this.$nextTick((function(){Be(t.toggler)}))}}});function Xs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ks(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xs(Object(n),!0).forEach((function(e){Zs(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xs(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Zs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Js=(0,Ue.sC)((0,_.di)(Ks(Ks(Ks({},Qr),Ws),{},{block:(0,Ue.Yg)(kt.Ye,!1),html:(0,Ue.Yg)(kt.vq),lazy:(0,Ue.Yg)(kt.Ye,!1),menuClass:(0,Ue.Yg)(kt.VE),noCaret:(0,Ue.Yg)(kt.Ye,!1),role:(0,Ue.Yg)(kt.vq,"menu"),size:(0,Ue.Yg)(kt.vq),split:(0,Ue.Yg)(kt.Ye,!1),splitButtonType:(0,Ue.Yg)(kt.vq,"button",(function(t){return te(["button","submit","reset"],t)})),splitClass:(0,Ue.Yg)(kt.VE),splitHref:(0,Ue.Yg)(kt.vq),splitTo:(0,Ue.Yg)(kt.RJ),splitVariant:(0,Ue.Yg)(kt.vq),text:(0,Ue.Yg)(kt.vq),toggleClass:(0,Ue.Yg)(kt.VE),toggleTag:(0,Ue.Yg)(kt.vq,"button"),toggleText:(0,Ue.Yg)(kt.vq,"Toggle dropdown"),variant:(0,Ue.Yg)(kt.vq,"secondary")})),H.eN),Qs=i.default.extend({name:H.eN,mixins:[to,Gs,qe],props:Js,computed:{dropdownClasses:function(){var t=this.block,e=this.split;return[this.directionClass,this.boundaryClass,{show:this.visible,"btn-group":e||!t,"d-flex":t&&e}]},menuClasses:function(){return[this.menuClass,{"dropdown-menu-right":this.right,show:this.visible}]},toggleClasses:function(){var t=this.split;return[this.toggleClass,{"dropdown-toggle-split":t,"dropdown-toggle-no-caret":this.noCaret&&!t}]}},render:function(t){var e=this.visible,n=this.variant,i=this.size,r=this.block,o=this.disabled,a=this.split,s=this.role,l=this.hide,c=this.toggle,u={variant:n,size:i,block:r,disabled:o},d=this.normalizeSlot(Lt),h=this.hasNormalizedSlot(Lt)?{}:er(this.html,this.text),p=t();if(a){var f=this.splitTo,m=this.splitHref,v=this.splitButtonType,g=Ks(Ks({},u),{},{variant:this.splitVariant||n});f?g.to=f:m?g.href=m:v&&(g.type=v),p=t(Di,{class:this.splitClass,attrs:{id:this.safeId("_BV_button_")},props:g,domProps:h,on:{click:this.onSplitClick},ref:"button"},d),d=[t("span",{class:["sr-only"]},[this.toggleText])],h={}}var b=t(Di,{staticClass:"dropdown-toggle",class:this.toggleClasses,attrs:{id:this.safeId("_BV_toggle_"),"aria-haspopup":"true","aria-expanded":(0,oe.dI)(e)},props:Ks(Ks({},u),{},{tag:this.toggleTag,block:r&&!a}),domProps:h,on:{mousedown:this.onMousedown,click:c,keydown:c},ref:"toggle"},d),y=t("ul",{staticClass:"dropdown-menu",class:this.menuClasses,attrs:{role:s,tabindex:"-1","aria-labelledby":this.safeId(a?"_BV_button_":"_BV_toggle_")},on:{keydown:this.onKeydown},ref:"menu"},[!this.lazy||e?this.normalizeSlot(Rt,{hide:l}):t()]);return t("div",{staticClass:"dropdown b-dropdown",class:this.dropdownClasses,attrs:{id:this.safeId()}},[p,b,y])}});function tl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function el(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tl(Object(n),!0).forEach((function(e){nl(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function nl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var il=(0,_.cJ)(bi,["event","routerTag"]),rl=(0,Ue.sC)((0,_.di)(el(el({},il),{},{linkClass:(0,Ue.Yg)(kt.VE),variant:(0,Ue.Yg)(kt.vq)})),H.ae),ol=i.default.extend({name:H.ae,mixins:[si,qe],inject:{bvDropdown:{default:null}},inheritAttrs:!1,props:rl,computed:{computedAttrs:function(){return el(el({},this.bvAttrs),{},{role:"menuitem"})}},methods:{closeDropdown:function(){var t=this;ue((function(){t.bvDropdown&&t.bvDropdown.hide(!0)}))},onClick:function(t){this.$emit(Y,t),this.closeDropdown()}},render:function(t){var e=this.linkClass,n=this.variant,i=this.active,r=this.disabled,o=this.onClick,a=this.bvAttrs;return t("li",{class:a.class,style:a.style,attrs:{role:"presentation"}},[t(yi,{staticClass:"dropdown-item",class:[e,nl({},"text-".concat(n),n&&!(i||r))],props:(0,Ue.YL)(il,this.$props),attrs:this.computedAttrs,on:{click:o},ref:"item"},this.normalizeSlot())])}});function al(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function sl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?al(Object(n),!0).forEach((function(e){ll(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):al(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ll(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var cl=(0,Ue.sC)({active:(0,Ue.Yg)(kt.Ye,!1),activeClass:(0,Ue.Yg)(kt.vq,"active"),buttonClass:(0,Ue.Yg)(kt.VE),disabled:(0,Ue.Yg)(kt.Ye,!1),variant:(0,Ue.Yg)(kt.vq)},H.T5),ul=i.default.extend({name:H.T5,mixins:[si,qe],inject:{bvDropdown:{default:null}},inheritAttrs:!1,props:cl,computed:{computedAttrs:function(){return sl(sl({},this.bvAttrs),{},{role:"menuitem",type:"button",disabled:this.disabled})}},methods:{closeDropdown:function(){this.bvDropdown&&this.bvDropdown.hide(!0)},onClick:function(t){this.$emit(Y,t),this.closeDropdown()}},render:function(t){var e,n=this.active,i=this.variant,r=this.bvAttrs;return t("li",{class:r.class,style:r.style,attrs:{role:"presentation"}},[t("button",{staticClass:"dropdown-item",class:[this.buttonClass,(e={},ll(e,this.activeClass,n),ll(e,"text-".concat(i),i&&!(n||this.disabled)),e)],attrs:this.computedAttrs,on:{click:this.onClick},ref:"button"},this.normalizeSlot())])}});function dl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function hl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dl(Object(n),!0).forEach((function(e){pl(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function pl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var fl=(0,Ue.sC)({id:(0,Ue.Yg)(kt.vq),tag:(0,Ue.Yg)(kt.vq,"header"),variant:(0,Ue.Yg)(kt.vq)},H.k8),ml=i.default.extend({name:H.k8,functional:!0,props:fl,render:function(t,e){var n=e.props,i=e.data,r=e.children,o=n.tag,a=n.variant;return t("li",(0,$.L)((0,_.cJ)(i,["attrs"]),{attrs:{role:"presentation"}}),[t(o,{staticClass:"dropdown-header",class:pl({},"text-".concat(a),a),attrs:hl(hl({},i.attrs||{}),{},{id:n.id||null,role:fe(o,"header")?null:"heading"}),ref:"header"},r)])}});function vl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function gl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vl(Object(n),!0).forEach((function(e){bl(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function bl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var yl=(0,Ue.sC)({tag:(0,Ue.Yg)(kt.vq,"hr")},H.cJ),_l=i.default.extend({name:H.cJ,functional:!0,props:yl,render:function(t,e){var n=e.props,i=e.data;return t("li",(0,$.L)((0,_.cJ)(i,["attrs"]),{attrs:{role:"presentation"}}),[t(n.tag,{staticClass:"dropdown-divider",attrs:gl(gl({},i.attrs||{}),{},{role:"separator","aria-orientation":"horizontal"}),ref:"divider"})])}}),wl=(0,Ue.sC)({id:(0,Ue.Yg)(kt.vq),inline:(0,Ue.Yg)(kt.Ye,!1),novalidate:(0,Ue.Yg)(kt.Ye,!1),validated:(0,Ue.Yg)(kt.Ye,!1)},H.PR),xl=i.default.extend({name:H.PR,functional:!0,props:wl,render:function(t,e){var n=e.props,i=e.data,r=e.children;return t("form",(0,$.L)(i,{class:{"form-inline":n.inline,"was-validated":n.validated},attrs:{id:n.id,novalidate:n.novalidate}}),r)}});function Cl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Sl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Cl(Object(n),!0).forEach((function(e){El(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function El(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Tl=(0,Ue.sC)((0,_.di)(Sl(Sl({},wl),{},{disabled:(0,Ue.Yg)(kt.Ye,!1),formClass:(0,Ue.Yg)(kt.VE)})),H.nJ),Ol=i.default.extend({name:H.nJ,functional:!0,props:Tl,render:function(t,e){var n=e.props,i=e.data,r=e.listeners,o=e.children;return t("li",(0,$.L)((0,_.cJ)(i,["attrs","on"]),{attrs:{role:"presentation"}}),[t(xl,{staticClass:"b-dropdown-form",class:[n.formClass,{disabled:n.disabled}],props:n,attrs:Sl(Sl({},i.attrs||{}),{},{disabled:n.disabled,tabindex:n.disabled?null:"-1"}),on:r,ref:"form"},o)])}});var kl=(0,Ue.sC)({tag:(0,Ue.Yg)(kt.vq,"p"),textClass:(0,Ue.Yg)(kt.VE),variant:(0,Ue.Yg)(kt.vq)},H.gd),Al=i.default.extend({name:H.gd,functional:!0,props:kl,render:function(t,e){var n,i,r,o=e.props,a=e.data,s=e.children,l=o.tag,c=o.textClass,u=o.variant;return t("li",(0,$.L)((0,_.cJ)(a,["attrs"]),{attrs:{role:"presentation"}}),[t(l,{staticClass:"b-dropdown-text",class:[c,(n={},i="text-".concat(u),r=u,i in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,n)],props:o,attrs:a.attrs||{},ref:"text"},s)])}});function Pl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ml(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pl(Object(n),!0).forEach((function(e){Ll(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ll(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Dl=(0,Ue.sC)({ariaDescribedby:(0,Ue.Yg)(kt.vq),header:(0,Ue.Yg)(kt.vq),headerClasses:(0,Ue.Yg)(kt.VE),headerTag:(0,Ue.Yg)(kt.vq,"header"),headerVariant:(0,Ue.Yg)(kt.vq),id:(0,Ue.Yg)(kt.vq)},H.sO),Rl=i.default.extend({name:H.sO,functional:!0,props:Dl,render:function(t,e){var n=e.props,i=e.data,r=e.slots,o=e.scopedSlots,a=n.id,s=n.variant,l=n.header,c=n.headerTag,u=r(),d=o||{},h={},p=a?"_bv_".concat(a,"_group_dd_header"):null,f=t();return(Ve(zt,d,u)||l)&&(f=t(c,{staticClass:"dropdown-header",class:[n.headerClasses,Ll({},"text-".concat(s),s)],attrs:{id:p,role:fe(c,"header")?null:"heading"}},Ye(zt,h,d,u)||l)),t("li",(0,$.L)((0,_.cJ)(i,["attrs"]),{attrs:{role:"presentation"}}),[f,t("ul",{staticClass:"list-unstyled",attrs:Ml(Ml({},i.attrs||{}),{},{id:a,role:"group","aria-describedby":[p,n.ariaDescribedBy].filter(v.D).join(" ").trim()||null})},Ye(Rt,h,d,u))])}}),Il=I({components:{BDropdown:Qs,BDd:Qs,BDropdownItem:ol,BDdItem:ol,BDropdownItemButton:ul,BDropdownItemBtn:ul,BDdItemButton:ul,BDdItemBtn:ul,BDropdownHeader:ml,BDdHeader:ml,BDropdownDivider:_l,BDdDivider:_l,BDropdownForm:Ol,BDdForm:Ol,BDropdownText:Al,BDdText:Al,BDropdownGroup:Rl,BDdGroup:Rl}});var jl=["iframe","embed","video","object","img","b-img","b-img-lazy"],Nl=(0,Ue.sC)({aspect:(0,Ue.Yg)(kt.vq,"16by9"),tag:(0,Ue.Yg)(kt.vq,"div"),type:(0,Ue.Yg)(kt.vq,"iframe",(function(t){return te(jl,t)}))},H.aM),Fl=i.default.extend({name:H.aM,functional:!0,props:Nl,render:function(t,e){var n,i,r,o=e.props,a=e.data,s=e.children,l=o.aspect;return t(o.tag,{staticClass:"embed-responsive",class:(n={},i="embed-responsive-".concat(l),r=l,i in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,n),ref:a.ref},[t(o.type,(0,$.L)((0,_.cJ)(a,["ref"]),{staticClass:"embed-responsive-item"}),s)])}}),zl=I({components:{BEmbed:Fl}}),Bl=(0,Ue.sC)({disabledField:(0,Ue.Yg)(kt.vq,"disabled"),htmlField:(0,Ue.Yg)(kt.vq,"html"),options:(0,Ue.Yg)(kt.Xo,[]),textField:(0,Ue.Yg)(kt.vq,"text"),valueField:(0,Ue.Yg)(kt.vq,"value")},"formOptionControls"),$l=i.default.extend({props:Bl,computed:{formOptions:function(){return this.normalizeOptions(this.options)}},methods:{normalizeOption:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if((0,g.Qd)(t)){var n=y(t,this.valueField),i=y(t,this.textField);return{value:(0,g.b0)(n)?e||i:n,text:tr(String((0,g.b0)(i)?e:i)),html:y(t,this.htmlField),disabled:Boolean(y(t,this.disabledField))}}return{value:e||t,text:tr(String(t)),disabled:!1}},normalizeOptions:function(t){var e=this;return(0,g.cy)(t)?t.map((function(t){return e.normalizeOption(t)})):(0,g.Qd)(t)?(C('Setting prop "options" to an object is deprecated. Use the array format instead.',this.$options.name),(0,_.HP)(t).map((function(n){return e.normalizeOption(t[n]||{},n)}))):[]}}});function Ul(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Hl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ul(Object(n),!0).forEach((function(e){Vl(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ul(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Vl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Yl=(0,Ue.sC)((0,_.di)(Hl(Hl({},Bl),{},{id:(0,Ue.Yg)(kt.vq,void 0,!0)})),H.go),ql=i.default.extend({name:H.go,mixins:[$l,qe],props:Yl,render:function(t){var e=this.id,n=this.formOptions.map((function(e,n){var i=e.value,r=e.text,o=e.html,a=e.disabled;return t("option",{attrs:{value:i,disabled:a},domProps:er(o,r),key:"option_".concat(n)})}));return t("datalist",{attrs:{id:e}},[n,this.normalizeSlot()])}});var Wl,Gl,Xl=(0,Ue.sC)({id:(0,Ue.Yg)(kt.vq),inline:(0,Ue.Yg)(kt.Ye,!1),tag:(0,Ue.Yg)(kt.vq,"small"),textVariant:(0,Ue.Yg)(kt.vq,"muted")},H.hU),Kl=i.default.extend({name:H.hU,functional:!0,props:Xl,render:function(t,e){var n,i,r,o=e.props,a=e.data,s=e.children;return t(o.tag,(0,$.L)(a,{class:(n={"form-text":!o.inline},i="text-".concat(o.textVariant),r=o.textVariant,i in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,n),attrs:{id:o.id}}),s)}}),Zl=(0,Ue.sC)({ariaLive:(0,Ue.Yg)(kt.vq),forceShow:(0,Ue.Yg)(kt.Ye,!1),id:(0,Ue.Yg)(kt.vq),role:(0,Ue.Yg)(kt.vq),state:(0,Ue.Yg)(kt.Ye,null),tag:(0,Ue.Yg)(kt.vq,"div"),tooltip:(0,Ue.Yg)(kt.Ye,!1)},H.Z0),Jl=i.default.extend({name:H.Z0,functional:!0,props:Zl,render:function(t,e){var n=e.props,i=e.data,r=e.children,o=n.tooltip,a=n.ariaLive,s=!0===n.forceShow||!1===n.state;return t(n.tag,(0,$.L)(i,{class:{"d-block":s,"invalid-feedback":!o,"invalid-tooltip":o},attrs:{id:n.id||null,role:n.role||null,"aria-live":a||null,"aria-atomic":a?"true":null}}),r)}}),Ql=(0,Ue.sC)({ariaLive:(0,Ue.Yg)(kt.vq),forceShow:(0,Ue.Yg)(kt.Ye,!1),id:(0,Ue.Yg)(kt.vq),role:(0,Ue.Yg)(kt.vq),state:(0,Ue.Yg)(kt.Ye,null),tag:(0,Ue.Yg)(kt.vq,"div"),tooltip:(0,Ue.Yg)(kt.Ye,!1)},H.Qi),tc=i.default.extend({name:H.Qi,functional:!0,props:Ql,render:function(t,e){var n=e.props,i=e.data,r=e.children,o=n.tooltip,a=n.ariaLive,s=!0===n.forceShow||!0===n.state;return t(n.tag,(0,$.L)(i,{class:{"d-block":s,"valid-feedback":!o,"valid-tooltip":o},attrs:{id:n.id||null,role:n.role||null,"aria-live":a||null,"aria-atomic":a?"true":null}}),r)}}),ec=(0,Ue.sC)({tag:(0,Ue.Yg)(kt.vq,"div")},H.yd),nc=i.default.extend({name:H.yd,functional:!0,props:ec,render:function(t,e){var n=e.props,i=e.data,r=e.children;return t(n.tag,(0,$.L)(i,{staticClass:"form-row"}),r)}}),ic=I({components:{BForm:xl,BFormDatalist:ql,BDatalist:ql,BFormText:Kl,BFormInvalidFeedback:Jl,BFormFeedback:Jl,BFormValidFeedback:tc,BFormRow:nc}}),rc=function(t,e){for(var n=0;n<t.length;n++)if(ni(t[n],e))return n;return-1},oc="input, textarea, select",ac=(0,Ue.sC)({autofocus:(0,Ue.Yg)(kt.Ye,!1),disabled:(0,Ue.Yg)(kt.Ye,!1),form:(0,Ue.Yg)(kt.vq),id:(0,Ue.Yg)(kt.vq),name:(0,Ue.Yg)(kt.vq),required:(0,Ue.Yg)(kt.Ye,!1)},"formControls"),sc=i.default.extend({props:ac,mounted:function(){this.handleAutofocus()},activated:function(){this.handleAutofocus()},methods:{handleAutofocus:function(){var t=this;this.$nextTick((function(){ue((function(){var e=t.$el;t.autofocus&&ve(e)&&(we(e,oc)||(e=_e(oc,e)),Be(e))}))}))}}}),lc=(0,Ue.sC)({plain:(0,Ue.Yg)(kt.Ye,!1)},"formControls"),cc=i.default.extend({props:lc,computed:{custom:function(){return!this.plain}}}),uc=(0,Ue.sC)({size:(0,Ue.Yg)(kt.vq)},"formControls"),dc=i.default.extend({props:uc,computed:{sizeFormClass:function(){return[this.size?"form-control-".concat(this.size):null]}}}),hc=(0,Ue.sC)({state:(0,Ue.Yg)(kt.Ye,null)},"formState"),pc=i.default.extend({props:hc,computed:{computedState:function(){return(0,g.Lm)(this.state)?this.state:null},stateClass:function(){var t=this.computedState;return!0===t?"is-valid":!1===t?"is-invalid":null},computedAriaInvalid:function(){var t=this.ariaInvalid;return!0===t||"true"===t||""===t||!1===this.computedState?"true":t}}});function fc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function mc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fc(Object(n),!0).forEach((function(e){vc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function vc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var gc,bc=He("checked",{defaultValue:null}),yc=bc.mixin,_c=bc.props,wc=bc.prop,xc=bc.event,Cc=(0,Ue.sC)((0,_.di)(mc(mc(mc(mc(mc(mc(mc({},Qr),_c),ac),uc),hc),lc),{},{ariaLabel:(0,Ue.Yg)(kt.vq),ariaLabelledby:(0,Ue.Yg)(kt.vq),button:(0,Ue.Yg)(kt.Ye,!1),buttonVariant:(0,Ue.Yg)(kt.vq),inline:(0,Ue.Yg)(kt.Ye,!1),value:(0,Ue.Yg)(kt.Kg)})),"formRadioCheckControls"),Sc=i.default.extend({mixins:[si,to,yc,qe,sc,dc,pc,cc],inheritAttrs:!1,props:Cc,data:function(){return{localChecked:this.isGroup?this.bvGroup[wc]:this[wc],hasFocus:!1}},computed:{computedLocalChecked:{get:function(){return this.isGroup?this.bvGroup.localChecked:this.localChecked},set:function(t){this.isGroup?this.bvGroup.localChecked=t:this.localChecked=t}},isChecked:function(){return ni(this.value,this.computedLocalChecked)},isRadio:function(){return!0},isGroup:function(){return!!this.bvGroup},isBtnMode:function(){return this.isGroup?this.bvGroup.buttons:this.button},isPlain:function(){return!this.isBtnMode&&(this.isGroup?this.bvGroup.plain:this.plain)},isCustom:function(){return!this.isBtnMode&&!this.isPlain},isSwitch:function(){return!(this.isBtnMode||this.isRadio||this.isPlain)&&(this.isGroup?this.bvGroup.switches:this.switch)},isInline:function(){return this.isGroup?this.bvGroup.inline:this.inline},isDisabled:function(){return this.isGroup&&this.bvGroup.disabled||this.disabled},isRequired:function(){return this.computedName&&(this.isGroup?this.bvGroup.required:this.required)},computedName:function(){return(this.isGroup?this.bvGroup.groupName:this.name)||null},computedForm:function(){return(this.isGroup?this.bvGroup.form:this.form)||null},computedSize:function(){return(this.isGroup?this.bvGroup.size:this.size)||""},computedState:function(){return this.isGroup?this.bvGroup.computedState:(0,g.Lm)(this.state)?this.state:null},computedButtonVariant:function(){var t=this.buttonVariant;return t||(this.isGroup&&this.bvGroup.buttonVariant?this.bvGroup.buttonVariant:"secondary")},buttonClasses:function(){var t,e=this.computedSize;return["btn","btn-".concat(this.computedButtonVariant),(t={},vc(t,"btn-".concat(e),e),vc(t,"disabled",this.isDisabled),vc(t,"active",this.isChecked),vc(t,"focus",this.hasFocus),t)]},computedAttrs:function(){var t=this.isDisabled,e=this.isRequired;return mc(mc({},this.bvAttrs),{},{id:this.safeId(),type:this.isRadio?"radio":"checkbox",name:this.computedName,form:this.computedForm,disabled:t,required:e,"aria-required":e||null,"aria-label":this.ariaLabel||null,"aria-labelledby":this.ariaLabelledby||null})}},watch:(Wl={},vc(Wl,wc,(function(){this["".concat(wc,"Watcher")].apply(this,arguments)})),vc(Wl,"computedLocalChecked",(function(){this.computedLocalCheckedWatcher.apply(this,arguments)})),Wl),methods:(Gl={},vc(Gl,"".concat(wc,"Watcher"),(function(t){ni(t,this.computedLocalChecked)||(this.computedLocalChecked=t)})),vc(Gl,"computedLocalCheckedWatcher",(function(t,e){ni(t,e)||this.$emit(xc,t)})),vc(Gl,"handleChange",(function(t){var e=this,n=t.target.checked,i=this.value,r=n?i:null;this.computedLocalChecked=i,this.$nextTick((function(){e.$emit(V,r),e.isGroup&&e.bvGroup.$emit(V,r)}))})),vc(Gl,"handleFocus",(function(t){t.target&&("focus"===t.type?this.hasFocus=!0:"blur"===t.type&&(this.hasFocus=!1))})),vc(Gl,"focus",(function(){this.isDisabled||Be(this.$refs.input)})),vc(Gl,"blur",(function(){this.isDisabled||$e(this.$refs.input)})),Gl),render:function(t){var e=this.isRadio,n=this.isBtnMode,i=this.isPlain,r=this.isCustom,o=this.isInline,a=this.isSwitch,s=this.computedSize,l=this.bvAttrs,c=this.normalizeSlot(),u=t("input",{class:[{"form-check-input":i,"custom-control-input":r,"position-static":i&&!c},n?"":this.stateClass],directives:[{name:"model",value:this.computedLocalChecked}],attrs:this.computedAttrs,domProps:{value:this.value,checked:this.isChecked},on:mc({change:this.handleChange},n?{focus:this.handleFocus,blur:this.handleFocus}:{}),key:"input",ref:"input"});if(n){var d=t("label",{class:this.buttonClasses},[u,c]);return this.isGroup||(d=t("div",{class:["btn-group-toggle","d-inline-block"]},[d])),d}var h=t();return i&&!c||(h=t("label",{class:{"form-check-label":i,"custom-control-label":r},attrs:{for:this.safeId()}},c)),t("div",{class:[vc({"form-check":i,"form-check-inline":i&&o,"custom-control":r,"custom-control-inline":r&&o,"custom-checkbox":r&&!e&&!a,"custom-switch":a,"custom-radio":r&&e},"b-custom-control-".concat(s),s&&!n),l.class],style:l.style},[u,h])}});function Ec(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Tc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ec(Object(n),!0).forEach((function(e){Oc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ec(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Oc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var kc="indeterminate",Ac=St+kc,Pc=(0,Ue.sC)((0,_.di)(Tc(Tc({},Cc),{},(Oc(gc={},kc,(0,Ue.Yg)(kt.Ye,!1)),Oc(gc,"switch",(0,Ue.Yg)(kt.Ye,!1)),Oc(gc,"uncheckedValue",(0,Ue.Yg)(kt.Kg,!1)),Oc(gc,"value",(0,Ue.Yg)(kt.Kg,!0)),gc))),H.$m),Mc=i.default.extend({name:H.$m,mixins:[Sc],inject:{bvGroup:{from:"bvCheckGroup",default:null}},props:Pc,computed:{isChecked:function(){var t=this.value,e=this.computedLocalChecked;return(0,g.cy)(e)?rc(e,t)>-1:ni(e,t)},isRadio:function(){return!1}},watch:Oc({},kc,(function(t,e){ni(t,e)||this.setIndeterminate(t)})),mounted:function(){this.setIndeterminate(this[kc])},methods:{computedLocalCheckedWatcher:function(t,e){if(!ni(t,e)){this.$emit(xc,t);var n=this.$refs.input;n&&this.$emit(Ac,n.indeterminate)}},handleChange:function(t){var e=this,n=t.target,i=n.checked,r=n.indeterminate,o=this.value,a=this.uncheckedValue,s=this.computedLocalChecked;if((0,g.cy)(s)){var l=rc(s,o);i&&l<0?s=s.concat(o):!i&&l>-1&&(s=s.slice(0,l).concat(s.slice(l+1)))}else s=i?o:a;this.computedLocalChecked=s,this.$nextTick((function(){e.$emit(V,s),e.isGroup&&e.bvGroup.$emit(V,s),e.$emit(Ac,r)}))},setIndeterminate:function(t){(0,g.cy)(this.computedLocalChecked)&&(t=!1);var e=this.$refs.input;e&&(e.indeterminate=t,this.$emit(Ac,t))}}});function Lc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Dc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Lc(Object(n),!0).forEach((function(e){Rc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Rc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ic,jc=(0,Ue.sC)((0,_.di)(Dc(Dc(Dc(Dc(Dc({},Qr),ac),Cc),uc),hc)),H.JO),Nc=i.default.extend({name:H.JO,mixins:[to,Sc,sc,dc,pc],inject:{bvGroup:{from:"bvRadioGroup",default:!1}},props:jc,watch:{computedLocalChecked:function(t,e){ni(t,e)||this.$emit(xc,t)}}});function Fc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function zc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Fc(Object(n),!0).forEach((function(e){Bc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Bc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $c,Uc=["aria-describedby","aria-labelledby"],Hc=He("checked"),Vc=Hc.mixin,Yc=Hc.props,qc=Hc.prop,Wc=Hc.event,Gc=(0,Ue.sC)((0,_.di)(zc(zc(zc(zc(zc(zc(zc(zc({},Qr),Yc),ac),Bl),uc),hc),lc),{},{ariaInvalid:(0,Ue.Yg)(kt.iF,!1),buttonVariant:(0,Ue.Yg)(kt.vq),buttons:(0,Ue.Yg)(kt.Ye,!1),stacked:(0,Ue.Yg)(kt.Ye,!1),validated:(0,Ue.Yg)(kt.Ye,!1)})),"formRadioCheckGroups"),Xc=i.default.extend({mixins:[to,Vc,qe,sc,$l,dc,pc,cc],inheritAttrs:!1,props:Gc,data:function(){return{localChecked:this[qc]}},computed:{inline:function(){return!this.stacked},groupName:function(){return this.name||this.safeId()},groupClasses:function(){var t=this.inline,e=this.size,n={"was-validated":this.validated};return this.buttons&&(n=[n,"btn-group-toggle",Bc({"btn-group":t,"btn-group-vertical":!t},"btn-group-".concat(e),e)]),n}},watch:(Ic={},Bc(Ic,qc,(function(t){ni(t,this.localChecked)||(this.localChecked=t)})),Bc(Ic,"localChecked",(function(t,e){ni(t,e)||this.$emit(Wc,t)})),Ic),render:function(t){var e=this,n=this.isRadioGroup,i=(0,_.Up)(this.$attrs,Uc),r=n?Nc:Mc,o=this.formOptions.map((function(n,o){var a="BV_option_".concat(o);return t(r,{props:{disabled:n.disabled||!1,id:e.safeId(a),value:n.value},attrs:i,key:a},[t("span",{domProps:er(n.html,n.text)})])}));return t("div",{class:[this.groupClasses,"bv-no-focus-ring"],attrs:zc(zc({},(0,_.cJ)(this.$attrs,Uc)),{},{"aria-invalid":this.computedAriaInvalid,"aria-required":this.required?"true":null,id:this.safeId(),role:n?"radiogroup":"group",tabindex:"-1"})},[this.normalizeSlot(Nt),o,this.normalizeSlot()])}});function Kc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Zc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Kc(Object(n),!0).forEach((function(e){Jc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Jc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qc=(0,Ue.sC)((0,_.di)(Zc(Zc({},Gc),{},(Jc($c={},qc,(0,Ue.Yg)(kt.Rl,[])),Jc($c,"switches",(0,Ue.Yg)(kt.Ye,!1)),$c))),H.ZX),tu=i.default.extend({name:H.ZX,mixins:[Xc],provide:function(){return{bvCheckGroup:this}},props:Qc,computed:{isRadioGroup:function(){return!1}}}),eu=I({components:{BFormCheckbox:Mc,BCheckbox:Mc,BCheck:Mc,BFormCheckboxGroup:tu,BCheckboxGroup:tu,BCheckGroup:tu}}),nu="__BV_hover_handler__",iu="mouseenter",ru=function(t,e,n){Ke(t,e,iu,n,Ot),Ke(t,e,"mouseleave",n,Ot)},ou=function(t,e){var n=e.value,i=void 0===n?null:n;if(h.KJ){var r=t[nu],o=(0,g.Tn)(r),a=!(o&&r.fn===i);o&&a&&(ru(!1,t,r),delete t[nu]),(0,g.Tn)(i)&&a&&(t[nu]=function(t){var e=function(e){t(e.type===iu,e)};return e.fn=t,e}(i),ru(!0,t,t[nu]))}},au={bind:ou,componentUpdated:ou,unbind:function(t){ou(t,{value:null})}};function su(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function lu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?su(Object(n),!0).forEach((function(e){cu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):su(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function cu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var uu,du=(0,_.di)(lu(lu(lu(lu(lu(lu({},Qr),uc),hc),(0,_.cJ)(Ws,["disabled"])),(0,_.cJ)(ac,["autofocus"])),{},{buttonOnly:(0,Ue.Yg)(kt.Ye,!1),buttonVariant:(0,Ue.Yg)(kt.vq,"secondary"),formattedValue:(0,Ue.Yg)(kt.vq),labelSelected:(0,Ue.Yg)(kt.vq),lang:(0,Ue.Yg)(kt.vq),menuClass:(0,Ue.Yg)(kt.VE),placeholder:(0,Ue.Yg)(kt.vq),readonly:(0,Ue.Yg)(kt.Ye,!1),rtl:(0,Ue.Yg)(kt.Ye,null),value:(0,Ue.Yg)(kt.vq,"")})),hu=i.default.extend({name:H.Pn,directives:{"b-hover":au},mixins:[to,dc,pc,Gs,qe],props:du,data:function(){return{isHovered:!1,hasFocus:!1}},computed:{idButton:function(){return this.safeId()},idLabel:function(){return this.safeId("_value_")},idMenu:function(){return this.safeId("_dialog_")},idWrapper:function(){return this.safeId("_outer_")},computedDir:function(){return!0===this.rtl?"rtl":!1===this.rtl?"ltr":null}},methods:{focus:function(){this.disabled||Be(this.$refs.toggle)},blur:function(){this.disabled||$e(this.$refs.toggle)},setFocus:function(t){this.hasFocus="focus"===t.type},handleHover:function(t){this.isHovered=t}},render:function(t){var e,n=this.idButton,i=this.idLabel,r=this.idMenu,o=this.idWrapper,a=this.disabled,s=this.readonly,l=this.required,c=this.name,u=this.state,d=this.visible,h=this.size,p=this.isHovered,f=this.hasFocus,m=this.labelSelected,v=this.buttonVariant,g=this.buttonOnly,b=(0,oe.dI)(this.value)||"",y=!1===u||l&&!b,_={isHovered:p,hasFocus:f,state:u,opened:d},w=t("button",{staticClass:"btn",class:(e={},cu(e,"btn-".concat(v),g),cu(e,"btn-".concat(h),h),cu(e,"h-auto",!g),cu(e,"dropdown-toggle",g),cu(e,"dropdown-toggle-no-caret",g),e),attrs:{id:n,type:"button",disabled:a,"aria-haspopup":"dialog","aria-expanded":d?"true":"false","aria-invalid":y?"true":null,"aria-required":l?"true":null},directives:[{name:"b-hover",value:this.handleHover}],on:{mousedown:this.onMousedown,click:this.toggle,keydown:this.toggle,"!focus":this.setFocus,"!blur":this.setFocus},ref:"toggle"},[this.hasNormalizedSlot(Lt)?this.normalizeSlot(Lt,_):t(Fn.rc_,{props:{scale:1.25}})]),x=t();c&&!a&&(x=t("input",{attrs:{type:"hidden",name:c||null,form:this.form||null,value:b}}));var C=t("div",{staticClass:"dropdown-menu",class:[this.menuClass,{show:d,"dropdown-menu-right":this.right}],attrs:{id:r,role:"dialog",tabindex:"-1","aria-modal":"false","aria-labelledby":i},on:{keydown:this.onKeydown},ref:"menu"},[this.normalizeSlot(Rt,{opened:d})]),S=t("label",{class:g?"sr-only":["form-control",{"text-muted":!b},this.stateClass,this.sizeFormClass],attrs:{id:i,for:n,"aria-invalid":y?"true":null,"aria-required":l?"true":null},directives:[{name:"b-hover",value:this.handleHover}],on:{"!click":function(t){Ze(t,{preventDefault:!1})}}},[b?this.formattedValue||b:this.placeholder||"",b&&m?t("bdi",{staticClass:"sr-only"},m):""]);return t("div",{staticClass:"b-form-btn-label-control dropdown",class:[this.directionClass,this.boundaryClass,[{"btn-group":g,"form-control":!g,focus:f&&!g,show:d,"is-valid":!0===u,"is-invalid":!1===u},g?null:this.sizeFormClass]],attrs:{id:o,role:g?null:"group",lang:this.lang||null,dir:this.computedDir,"aria-disabled":a,"aria-readonly":s&&!a,"aria-labelledby":i,"aria-invalid":!1===u||l&&!b?"true":null,"aria-required":l?"true":null}},[w,x,C,S])}});function pu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function fu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pu(Object(n),!0).forEach((function(e){mu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function mu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var vu,gu=He("value",{type:kt.O9}),bu=gu.mixin,yu=gu.props,_u=gu.prop,wu=gu.event,xu=(0,_.cJ)(co,["block","hidden","id","noKeyNav","roleDescription","value","width"]),Cu=(0,_.cJ)(du,["formattedValue","id","lang","rtl","value"]),Su=(0,Ue.sC)((0,_.di)(fu(fu(fu(fu(fu({},Qr),yu),xu),Cu),{},{calendarWidth:(0,Ue.Yg)(kt.vq,"270px"),closeButton:(0,Ue.Yg)(kt.Ye,!1),closeButtonVariant:(0,Ue.Yg)(kt.vq,"outline-secondary"),dark:(0,Ue.Yg)(kt.Ye,!1),labelCloseButton:(0,Ue.Yg)(kt.vq,"Close"),labelResetButton:(0,Ue.Yg)(kt.vq,"Reset"),labelTodayButton:(0,Ue.Yg)(kt.vq,"Select today"),noCloseOnSelect:(0,Ue.Yg)(kt.Ye,!1),resetButton:(0,Ue.Yg)(kt.Ye,!1),resetButtonVariant:(0,Ue.Yg)(kt.vq,"outline-danger"),resetValue:(0,Ue.Yg)(kt.O9),todayButton:(0,Ue.Yg)(kt.Ye,!1),todayButtonVariant:(0,Ue.Yg)(kt.vq,"outline-primary")})),H.Ub),Eu=i.default.extend({name:H.Ub,mixins:[to,bu],props:Su,data:function(){return{localYMD:Fr(this[_u])||"",isVisible:!1,localLocale:null,isRTL:!1,formattedValue:"",activeYMD:""}},computed:{calendarYM:function(){return this.activeYMD.slice(0,-3)},computedLang:function(){return(this.localLocale||"").replace(/-u-.*$/i,"")||null},computedResetValue:function(){return Fr(Kr(this.resetValue))||""}},watch:(uu={},mu(uu,_u,(function(t){this.localYMD=Fr(t)||""})),mu(uu,"localYMD",(function(t){this.isVisible&&this.$emit(wu,this.valueAsDate?Nr(t)||null:t||"")})),mu(uu,"calendarYM",(function(t,e){if(t!==e&&e)try{this.$refs.control.updatePopper()}catch(t){}})),uu),methods:{focus:function(){this.disabled||Be(this.$refs.control)},blur:function(){this.disabled||$e(this.$refs.control)},setAndClose:function(t){var e=this;this.localYMD=t,this.noCloseOnSelect||this.$nextTick((function(){e.$refs.control.hide(!0)}))},onSelected:function(t){var e=this;this.$nextTick((function(){e.setAndClose(t)}))},onInput:function(t){this.localYMD!==t&&(this.localYMD=t)},onContext:function(t){var e=t.activeYMD,n=t.isRTL,i=t.locale,r=t.selectedYMD,o=t.selectedFormatted;this.isRTL=n,this.localLocale=i,this.formattedValue=o,this.localYMD=r,this.activeYMD=e,this.$emit(W,t)},onTodayButton:function(){this.setAndClose(Fr(Kr(jr(),this.min,this.max)))},onResetButton:function(){this.setAndClose(this.computedResetValue)},onCloseButton:function(){this.$refs.control.hide(!0)},onShow:function(){this.isVisible=!0},onShown:function(){var t=this;this.$nextTick((function(){Be(t.$refs.calendar),t.$emit(yt)}))},onHidden:function(){this.isVisible=!1,this.$emit(ot)},defaultButtonFn:function(t){var e=t.isHovered,n=t.hasFocus;return this.$createElement(e||n?Fn.Pu4:Fn.kew,{attrs:{"aria-hidden":"true"}})}},render:function(t){var e=this.localYMD,n=this.disabled,i=this.readonly,r=this.dark,o=this.$props,a=this.$scopedSlots,s=(0,g.z)(this.placeholder)?this.labelNoDateSelected:this.placeholder,l=[];if(this.todayButton){var c=this.labelTodayButton;l.push(t(Di,{props:{disabled:n||i,size:"sm",variant:this.todayButtonVariant},attrs:{"aria-label":c||null},on:{click:this.onTodayButton}},c))}if(this.resetButton){var u=this.labelResetButton;l.push(t(Di,{props:{disabled:n||i,size:"sm",variant:this.resetButtonVariant},attrs:{"aria-label":u||null},on:{click:this.onResetButton}},u))}if(this.closeButton){var d=this.labelCloseButton;l.push(t(Di,{props:{disabled:n,size:"sm",variant:this.closeButtonVariant},attrs:{"aria-label":d||null},on:{click:this.onCloseButton}},d))}l.length>0&&(l=[t("div",{staticClass:"b-form-date-controls d-flex flex-wrap",class:{"justify-content-between":l.length>1,"justify-content-end":l.length<2}},l)]);var h=t(uo,{staticClass:"b-form-date-calendar w-100",props:fu(fu({},(0,Ue.YL)(xu,o)),{},{hidden:!this.isVisible,value:e,valueAsDate:!1,width:this.calendarWidth}),on:{selected:this.onSelected,input:this.onInput,context:this.onContext},scopedSlots:(0,_.Up)(a,["nav-prev-decade","nav-prev-year","nav-prev-month","nav-this-month","nav-next-month","nav-next-year","nav-next-decade"]),key:"calendar",ref:"calendar"},l);return t(hu,{staticClass:"b-form-datepicker",props:fu(fu({},(0,Ue.YL)(Cu,o)),{},{formattedValue:e?this.formattedValue:"",id:this.safeId(),lang:this.computedLang,menuClass:[{"bg-dark":r,"text-light":r},this.menuClass],placeholder:s,rtl:this.isRTL,value:e}),on:{show:this.onShow,shown:this.onShown,hidden:this.onHidden},scopedSlots:mu({},Lt,a[Lt]||this.defaultButtonFn),ref:"control"},[h])}}),Tu=I({components:{BFormDatepicker:Eu,BDatepicker:Eu}});function Ou(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ku(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ou(Object(n),!0).forEach((function(e){Au(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ou(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Au(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Pu=He("value",{type:[kt.Rl,Jt.ZH],defaultValue:null,validator:function(t){return""===t?(C(Iu,H.O_),!0):(0,g.z)(t)||ju(t)}}),Mu=Pu.mixin,Lu=Pu.props,Du=Pu.prop,Ru=Pu.event,Iu='Setting "value"/"v-model" to an empty string for reset is deprecated. Set to "null" instead.',ju=function t(e){return(0,g.fo)(e)||(0,g.cy)(e)&&e.every((function(e){return t(e)}))},Nu=function(t){return(0,g.Tn)(t.getAsEntry)?t.getAsEntry():(0,g.Tn)(t.webkitGetAsEntry)?t.webkitGetAsEntry():null},Fu=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new Promise((function(i){var r=[];!function o(){e.readEntries((function(e){0===e.length?i(Promise.all(r).then((function(t){return t.reduce((function(t,e){return ee(t,e)}),[])}))):(r.push(Promise.all(e.map((function(e){if(e){if(e.isDirectory)return t(e.createReader(),"".concat(n).concat(e.name,"/"));if(e.isFile)return new Promise((function(t){e.file((function(e){e.$path="".concat(n).concat(e.name),t(e)}))}))}return null})).filter(v.D))),o())}))}()}))},zu=(0,Ue.sC)((0,_.di)(ku(ku(ku(ku(ku(ku(ku({},Qr),Lu),ac),lc),hc),uc),{},{accept:(0,Ue.Yg)(kt.vq,""),browseText:(0,Ue.Yg)(kt.vq,"Browse"),capture:(0,Ue.Yg)(kt.Ye,!1),directory:(0,Ue.Yg)(kt.Ye,!1),dropPlaceholder:(0,Ue.Yg)(kt.vq,"Drop files here"),fileNameFormatter:(0,Ue.Yg)(kt.KF),multiple:(0,Ue.Yg)(kt.Ye,!1),noDrop:(0,Ue.Yg)(kt.Ye,!1),noDropPlaceholder:(0,Ue.Yg)(kt.vq,"Not allowed"),noTraverse:(0,Ue.Yg)(kt.Ye,!1),placeholder:(0,Ue.Yg)(kt.vq,"No file chosen")})),H.O_),Bu=i.default.extend({name:H.O_,mixins:[si,to,Mu,qe,sc,pc,cc,qe],inheritAttrs:!1,props:zu,data:function(){return{files:[],dragging:!1,dropAllowed:!this.noDrop,hasFocus:!1}},computed:{computedAccept:function(){var t=this.accept;return 0===(t=(t||"").trim().split(/[,\s]+/).filter(v.D)).length?null:t.map((function(t){var e="name",n="^",i="$";return m.nZ.test(t)?n="":(e="type",m.y.test(t)&&(i=".+$",t=t.slice(0,-1))),t=(0,oe.Nt)(t),{rx:new RegExp("".concat(n).concat(t).concat(i)),prop:e}}))},computedCapture:function(){var t=this.capture;return!0===t||""===t||(t||null)},computedAttrs:function(){var t=this.name,e=this.disabled,n=this.required,i=this.form,r=this.computedCapture,o=this.accept,a=this.multiple,s=this.directory;return ku(ku({},this.bvAttrs),{},{type:"file",id:this.safeId(),name:t,disabled:e,required:n,form:i||null,capture:r,accept:o||null,multiple:a,directory:s,webkitdirectory:s,"aria-required":n?"true":null})},computedFileNameFormatter:function(){var t=this.fileNameFormatter;return(0,Ue.mV)(t)?t:this.defaultFileNameFormatter},clonedFiles:function(){return(0,f.m)(this.files)},flattenedFiles:function(){return ie(this.files)},fileNames:function(){return this.flattenedFiles.map((function(t){return t.name}))},labelContent:function(){if(this.dragging&&!this.noDrop)return this.normalizeSlot("drop-placeholder",{allowed:this.dropAllowed})||(this.dropAllowed?this.dropPlaceholder:this.$createElement("span",{staticClass:"text-danger"},this.noDropPlaceholder));if(0===this.files.length)return this.normalizeSlot("placeholder")||this.placeholder;var t=this.flattenedFiles,e=this.clonedFiles,n=this.fileNames,i=this.computedFileNameFormatter;return this.hasNormalizedSlot(jt)?this.normalizeSlot(jt,{files:t,filesTraversed:e,names:n}):i(t,e,n)}},watch:(vu={},Au(vu,Du,(function(t){(!t||(0,g.cy)(t)&&0===t.length)&&this.reset()})),Au(vu,"files",(function(t,e){if(!ni(t,e)){var n=this.multiple,i=this.noTraverse,r=!n||i?ie(t):t;this.$emit(Ru,n?r:r[0]||null)}})),vu),created:function(){this.$_form=null},mounted:function(){var t=xe("form",this.$el);t&&(Ge(t,"reset",this.reset,Tt),this.$_form=t)},beforeDestroy:function(){var t=this.$_form;t&&Xe(t,"reset",this.reset,Tt)},methods:{isFileValid:function(t){if(!t)return!1;var e=this.computedAccept;return!e||e.some((function(e){return e.rx.test(t[e.prop])}))},isFilesArrayValid:function(t){var e=this;return(0,g.cy)(t)?t.every((function(t){return e.isFileValid(t)})):this.isFileValid(t)},defaultFileNameFormatter:function(t,e,n){return n.join(", ")},setFiles:function(t){this.dropAllowed=!this.noDrop,this.dragging=!1,this.files=this.multiple?this.directory?t:ie(t):ie(t).slice(0,1)},setInputFiles:function(t){try{var e=new ClipboardEvent("").clipboardData||new DataTransfer;ie((0,f.m)(t)).forEach((function(t){delete t.$path,e.items.add(t)})),this.$refs.input.files=e.files}catch(t){}},reset:function(){try{var t=this.$refs.input;t.value="",t.type="",t.type="file"}catch(t){}this.files=[]},handleFiles:function(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){var e=t.filter(this.isFilesArrayValid);e.length>0&&(this.setFiles(e),this.setInputFiles(e))}else this.setFiles(t)},focusHandler:function(t){this.plain||"focusout"===t.type?this.hasFocus=!1:this.hasFocus=!0},onChange:function(t){var e=this,n=t.type,i=t.target,r=t.dataTransfer,o=void 0===r?{}:r,a="drop"===n;this.$emit(V,t);var s=Qt(o.items||[]);if(h.p4&&s.length>0&&!(0,g.kZ)(Nu(s[0])))(function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Promise.all(Qt(t).filter((function(t){return"file"===t.kind})).map((function(t){var n=Nu(t);if(n){if(n.isDirectory&&e)return Fu(n.createReader(),"".concat(n.name,"/"));if(n.isFile)return new Promise((function(t){n.file((function(e){e.$path="",t(e)}))}))}return null})).filter(v.D))})(s,this.directory).then((function(t){return e.handleFiles(t,a)}));else{var l=Qt(i.files||o.files||[]).map((function(t){return t.$path=t.webkitRelativePath||"",t}));this.handleFiles(l,a)}},onDragenter:function(t){Ze(t),this.dragging=!0;var e=t.dataTransfer,n=void 0===e?{}:e;if(this.noDrop||this.disabled||!this.dropAllowed)return n.dropEffect="none",void(this.dropAllowed=!1);n.dropEffect="copy"},onDragover:function(t){Ze(t),this.dragging=!0;var e=t.dataTransfer,n=void 0===e?{}:e;if(this.noDrop||this.disabled||!this.dropAllowed)return n.dropEffect="none",void(this.dropAllowed=!1);n.dropEffect="copy"},onDragleave:function(t){var e=this;Ze(t),this.$nextTick((function(){e.dragging=!1,e.dropAllowed=!e.noDrop}))},onDrop:function(t){var e=this;Ze(t),this.dragging=!1,this.noDrop||this.disabled||!this.dropAllowed?this.$nextTick((function(){e.dropAllowed=!e.noDrop})):this.onChange(t)}},render:function(t){var e=this.custom,n=this.plain,i=this.size,r=this.dragging,o=this.stateClass,a=this.bvAttrs,s=t("input",{class:[{"form-control-file":n,"custom-file-input":e,focus:e&&this.hasFocus},o],style:e?{zIndex:-5}:{},attrs:this.computedAttrs,on:{change:this.onChange,focusin:this.focusHandler,focusout:this.focusHandler,reset:this.reset},ref:"input"});if(n)return s;var l=t("label",{staticClass:"custom-file-label",class:{dragging:r},attrs:{for:this.safeId(),"data-browse":this.browseText||null}},[t("span",{staticClass:"d-block form-file-text",style:{pointerEvents:"none"}},[this.labelContent])]);return t("div",{staticClass:"custom-file b-form-file",class:[Au({},"b-custom-control-".concat(i),i),o,a.class],style:a.style,attrs:{id:this.safeId("_BV_file_outer_")},on:{dragenter:this.onDragenter,dragover:this.onDragover,dragleave:this.onDragleave,drop:this.onDrop}},[s,l])}}),$u=I({components:{BFormFile:Bu,BFile:Bu}}),Uu=n(1586),Hu=function(t){return"\\"+t},Vu=function(t){var e=(t=(0,oe.dI)(t)).length,n=t.charCodeAt(0);return t.split("").reduce((function(i,r,o){var a=t.charCodeAt(o);return 0===a?i+"�":127===a||a>=1&&a<=31||0===o&&a>=48&&a<=57||1===o&&a>=48&&a<=57&&45===n?i+Hu("".concat(a.toString(16)," ")):0===o&&45===a&&1===e?i+Hu(r):a>=128||45===a||95===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+r:i+Hu(r)}),"")},Yu=n(3886);function qu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Wu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qu(Object(n),!0).forEach((function(e){Gu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Gu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Xu=["auto","start","end","center","baseline","stretch"],Ku=(0,Yu.B)((function(t,e,n){var i=t;if(!(0,g.z)(n)&&!1!==n)return e&&(i+="-".concat(e)),"col"!==t||""!==n&&!0!==n?(i+="-".concat(n),(0,oe.gQ)(i)):(0,oe.gQ)(i)})),Zu=(0,_.vt)(null),Ju={name:H.bW,functional:!0,get props(){return delete this.props,this.props=(t=(0,Uu.Ak)().filter(v.D),e=t.reduce((function(t,e){return t[e]=(0,Ue.Yg)(kt.gy),t}),(0,_.vt)(null)),n=t.reduce((function(t,e){return t[(0,Ue.CH)(e,"offset")]=(0,Ue.Yg)(kt.$$),t}),(0,_.vt)(null)),i=t.reduce((function(t,e){return t[(0,Ue.CH)(e,"order")]=(0,Ue.Yg)(kt.$$),t}),(0,_.vt)(null)),Zu=(0,_.kp)((0,_.vt)(null),{col:(0,_.HP)(e),offset:(0,_.HP)(n),order:(0,_.HP)(i)}),(0,Ue.sC)((0,_.di)(Wu(Wu(Wu(Wu({},e),n),i),{},{alignSelf:(0,Ue.Yg)(kt.vq,null,(function(t){return te(Xu,t)})),col:(0,Ue.Yg)(kt.Ye,!1),cols:(0,Ue.Yg)(kt.$$),offset:(0,Ue.Yg)(kt.$$),order:(0,Ue.Yg)(kt.$$),tag:(0,Ue.Yg)(kt.vq,"div")})),H.bW));var t,e,n,i},render:function(t,e){var n,i=e.props,r=e.data,o=e.children,a=i.cols,s=i.offset,l=i.order,c=i.alignSelf,u=[];for(var d in Zu)for(var h=Zu[d],p=0;p<h.length;p++){var f=Ku(d,h[p].replace(d,""),i[h[p]]);f&&u.push(f)}var v=u.some((function(t){return m.Xx.test(t)}));return u.push((Gu(n={col:i.col||!v&&!a},"col-".concat(a),a),Gu(n,"offset-".concat(s),s),Gu(n,"order-".concat(l),l),Gu(n,"align-self-".concat(c),c),n)),t(i.tag,(0,$.L)(r,{class:u}),o)}};function Qu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function td(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qu(Object(n),!0).forEach((function(e){ed(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ed(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var nd=["input","select","textarea"],id=nd.map((function(t){return"".concat(t,":not([disabled])")})).join(),rd=[].concat(nd,["a","button","label"]),od={name:H.R_,mixins:[to,pc,qe],get props(){return delete this.props,this.props=(0,Ue.sC)((0,_.di)(td(td(td(td({},Qr),hc),(0,Uu.Ak)().reduce((function(t,e){return t[(0,Ue.CH)(e,"contentCols")]=(0,Ue.Yg)(kt.gy),t[(0,Ue.CH)(e,"labelAlign")]=(0,Ue.Yg)(kt.vq),t[(0,Ue.CH)(e,"labelCols")]=(0,Ue.Yg)(kt.gy),t}),(0,_.vt)(null))),{},{description:(0,Ue.Yg)(kt.vq),disabled:(0,Ue.Yg)(kt.Ye,!1),feedbackAriaLive:(0,Ue.Yg)(kt.vq,"assertive"),invalidFeedback:(0,Ue.Yg)(kt.vq),label:(0,Ue.Yg)(kt.vq),labelClass:(0,Ue.Yg)(kt.VE),labelFor:(0,Ue.Yg)(kt.vq),labelSize:(0,Ue.Yg)(kt.vq),labelSrOnly:(0,Ue.Yg)(kt.Ye,!1),tooltip:(0,Ue.Yg)(kt.Ye,!1),validFeedback:(0,Ue.Yg)(kt.vq),validated:(0,Ue.Yg)(kt.Ye,!1)})),H.R_)},data:function(){return{ariaDescribedby:null}},computed:{contentColProps:function(){return this.getColProps(this.$props,"content")},labelAlignClasses:function(){return this.getAlignClasses(this.$props,"label")},labelColProps:function(){return this.getColProps(this.$props,"label")},isHorizontal:function(){return(0,_.HP)(this.contentColProps).length>0||(0,_.HP)(this.labelColProps).length>0}},watch:{ariaDescribedby:function(t,e){t!==e&&this.updateAriaDescribedby(t,e)}},mounted:function(){var t=this;this.$nextTick((function(){t.updateAriaDescribedby(t.ariaDescribedby)}))},methods:{getAlignClasses:function(t,e){return(0,Uu.Ak)().reduce((function(n,i){var r=t[(0,Ue.CH)(i,"".concat(e,"Align"))]||null;return r&&n.push(["text",i,r].filter(v.D).join("-")),n}),[])},getColProps:function(t,e){return(0,Uu.Ak)().reduce((function(n,i){var r=t[(0,Ue.CH)(i,"".concat(e,"Cols"))];return r=""===r||(r||!1),(0,g.Lm)(r)||"auto"===r||(r=(r=(0,re.yJ)(r,0))>0&&r),r&&(n[i||((0,g.Lm)(r)?"col":"cols")]=r),n}),{})},updateAriaDescribedby:function(t,e){var n=this.labelFor;if(h.KJ&&n){var i=_e("#".concat(Vu(n)),this.$refs.content);if(i){var r="aria-describedby",o=(t||"").split(m.Vs),a=(e||"").split(m.Vs),s=(Pe(i,r)||"").split(m.Vs).filter((function(t){return!te(a,t)})).concat(o).filter((function(t,e,n){return n.indexOf(t)===e})).filter(v.D).join(" ").trim();s?ke(i,r,s):Ae(i,r)}}},onLegendClick:function(t){if(!this.labelFor){var e=t.target,n=e?e.tagName:"";if(-1===rd.indexOf(n)){var i=ye(id,this.$refs.content).filter(ve);1===i.length&&Be(i[0])}}}},render:function(t){var e=this.computedState,n=this.feedbackAriaLive,i=this.isHorizontal,r=this.labelFor,o=this.normalizeSlot,a=this.safeId,s=this.tooltip,l=a(),c=!r,u=t(),d=o(Bt)||this.label,h=d?a("_BV_label_"):null;if(d||i){var p=this.labelSize,f=this.labelColProps,m=c?"legend":"label";this.labelSrOnly?(d&&(u=t(m,{class:"sr-only",attrs:{id:h,for:r||null}},[d])),u=t(i?Ju:"div",{props:i?f:{}},[u])):u=t(i?Ju:m,{on:c?{click:this.onLegendClick}:{},props:i?td(td({},f),{},{tag:m}):{},attrs:{id:h,for:r||null,tabindex:c?"-1":null},class:[c?"bv-no-focus-ring":"",i||c?"col-form-label":"",!i&&c?"pt-0":"",i||c?"":"d-block",p?"col-form-label-".concat(p):"",this.labelAlignClasses,this.labelClass]},[d])}var g=t(),b=o("invalid-feedback")||this.invalidFeedback,y=b?a("_BV_feedback_invalid_"):null;b&&(g=t(Jl,{props:{ariaLive:n,id:y,role:n?"alert":null,state:e,tooltip:s},attrs:{tabindex:b?"-1":null}},[b]));var _=t(),w=o("valid-feedback")||this.validFeedback,x=w?a("_BV_feedback_valid_"):null;w&&(_=t(tc,{props:{ariaLive:n,id:x,role:n?"alert":null,state:e,tooltip:s},attrs:{tabindex:w?"-1":null}},[w]));var C=t(),S=o("description")||this.description,E=S?a("_BV_description_"):null;S&&(C=t(Kl,{attrs:{id:E,tabindex:"-1"}},[S]));var T=this.ariaDescribedby=[E,!1===e?y:null,!0===e?x:null].filter(v.D).join(" ")||null,O=t(i?Ju:"div",{props:i?this.contentColProps:{},ref:"content"},[o(Rt,{ariaDescribedby:T,descriptionId:E,id:l,labelId:h})||t(),g,_,C]);return t(c?"fieldset":i?nc:"div",{staticClass:"form-group",class:[{"was-validated":this.validated},this.stateClass],attrs:{id:l,disabled:c?this.disabled:null,role:c?null:"group","aria-invalid":this.computedAriaInvalid,"aria-labelledby":c&&i?h:null}},i&&c?[t(nc,[u,O])]:[u,O])}},ad=I({components:{BFormGroup:od,BFormFieldset:od}}),sd=i.default.extend({computed:{selectionStart:{cache:!1,get:function(){return this.$refs.input.selectionStart},set:function(t){this.$refs.input.selectionStart=t}},selectionEnd:{cache:!1,get:function(){return this.$refs.input.selectionEnd},set:function(t){this.$refs.input.selectionEnd=t}},selectionDirection:{cache:!1,get:function(){return this.$refs.input.selectionDirection},set:function(t){this.$refs.input.selectionDirection=t}}},methods:{select:function(){var t;(t=this.$refs.input).select.apply(t,arguments)},setSelectionRange:function(){var t;(t=this.$refs.input).setSelectionRange.apply(t,arguments)},setRangeText:function(){var t;(t=this.$refs.input).setRangeText.apply(t,arguments)}}});function ld(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function cd(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ld(Object(n),!0).forEach((function(e){ud(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ld(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ud(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var dd=He("value",{type:kt.$$,defaultValue:"",event:"update"}),hd=dd.mixin,pd=dd.props,fd=dd.prop,md=dd.event,vd=(0,Ue.sC)((0,_.di)(cd(cd({},pd),{},{ariaInvalid:(0,Ue.Yg)(kt.iF,!1),autocomplete:(0,Ue.Yg)(kt.vq),debounce:(0,Ue.Yg)(kt.$$,0),formatter:(0,Ue.Yg)(kt.KF),lazy:(0,Ue.Yg)(kt.Ye,!1),lazyFormatter:(0,Ue.Yg)(kt.Ye,!1),number:(0,Ue.Yg)(kt.Ye,!1),placeholder:(0,Ue.Yg)(kt.vq),plaintext:(0,Ue.Yg)(kt.Ye,!1),readonly:(0,Ue.Yg)(kt.Ye,!1),trim:(0,Ue.Yg)(kt.Ye,!1)})),"formTextControls"),gd=i.default.extend({mixins:[hd],props:vd,data:function(){var t=this[fd];return{localValue:(0,oe.dI)(t),vModelValue:this.modifyValue(t)}},computed:{computedClass:function(){var t=this.plaintext,e=this.type,n="range"===e,i="color"===e;return[{"custom-range":n,"form-control-plaintext":t&&!n&&!i,"form-control":i||!t&&!n},this.sizeFormClass,this.stateClass]},computedDebounce:function(){return(0,Sn.JB)((0,re.yJ)(this.debounce,0),0)},hasFormatter:function(){return(0,Ue.mV)(this.formatter)}},watch:ud({},fd,(function(t){var e=(0,oe.dI)(t),n=this.modifyValue(t);e===this.localValue&&n===this.vModelValue||(this.clearDebounce(),this.localValue=e,this.vModelValue=n)})),created:function(){this.$_inputDebounceTimer=null},mounted:function(){this.$on(xt,this.clearDebounce)},beforeDestroy:function(){this.clearDebounce()},methods:{clearDebounce:function(){clearTimeout(this.$_inputDebounceTimer),this.$_inputDebounceTimer=null},formatValue:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t=(0,oe.dI)(t),!this.hasFormatter||this.lazyFormatter&&!n||(t=this.formatter(t,e)),t},modifyValue:function(t){return t=(0,oe.dI)(t),this.trim&&(t=t.trim()),this.number&&(t=(0,re.SP)(t,t)),t},updateValue:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.lazy;if(!i||n){this.clearDebounce();var r=function(){if((t=e.modifyValue(t))!==e.vModelValue)e.vModelValue=t,e.$emit(md,t);else if(e.hasFormatter){var n=e.$refs.input;n&&t!==n.value&&(n.value=t)}},o=this.computedDebounce;o>0&&!i&&!n?this.$_inputDebounceTimer=setTimeout(r,o):r()}},onInput:function(t){if(!t.target.composing){var e=t.target.value,n=this.formatValue(e,t);!1===n||t.defaultPrevented?Ze(t,{propagation:!1}):(this.localValue=n,this.updateValue(n),this.$emit(st,n))}},onChange:function(t){var e=t.target.value,n=this.formatValue(e,t);!1===n||t.defaultPrevented?Ze(t,{propagation:!1}):(this.localValue=n,this.updateValue(n,!0),this.$emit(V,n))},onBlur:function(t){var e=t.target.value,n=this.formatValue(e,t,!0);!1!==n&&(this.localValue=(0,oe.dI)(this.modifyValue(n)),this.updateValue(n,!0)),this.$emit("blur",t)},focus:function(){this.disabled||Be(this.$el)},blur:function(){this.disabled||$e(this.$el)}}}),bd=i.default.extend({computed:{validity:{cache:!1,get:function(){return this.$refs.input.validity}},validationMessage:{cache:!1,get:function(){return this.$refs.input.validationMessage}},willValidate:{cache:!1,get:function(){return this.$refs.input.willValidate}}},methods:{setCustomValidity:function(){var t;return(t=this.$refs.input).setCustomValidity.apply(t,arguments)},checkValidity:function(){var t;return(t=this.$refs.input).checkValidity.apply(t,arguments)},reportValidity:function(){var t;return(t=this.$refs.input).reportValidity.apply(t,arguments)}}});function yd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function _d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?yd(Object(n),!0).forEach((function(e){wd(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yd(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function wd(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xd,Cd=["text","password","email","number","url","tel","search","range","color","date","time","datetime","datetime-local","month","week"],Sd=(0,Ue.sC)((0,_.di)(_d(_d(_d(_d(_d(_d({},Qr),ac),uc),hc),vd),{},{list:(0,Ue.Yg)(kt.vq),max:(0,Ue.Yg)(kt.$$),min:(0,Ue.Yg)(kt.$$),noWheel:(0,Ue.Yg)(kt.Ye,!1),step:(0,Ue.Yg)(kt.$$),type:(0,Ue.Yg)(kt.vq,"text",(function(t){return te(Cd,t)}))})),H.aJ),Ed=i.default.extend({name:H.aJ,mixins:[ci,to,sc,dc,pc,gd,sd,bd],props:Sd,computed:{localType:function(){var t=this.type;return te(Cd,t)?t:"text"},computedAttrs:function(){var t=this.localType,e=this.name,n=this.form,i=this.disabled,r=this.placeholder,o=this.required,a=this.min,s=this.max,l=this.step;return{id:this.safeId(),name:e,form:n,type:t,disabled:i,placeholder:r,required:o,autocomplete:this.autocomplete||null,readonly:this.readonly||this.plaintext,min:a,max:s,step:l,list:"password"!==t?this.list:null,"aria-required":o?"true":null,"aria-invalid":this.computedAriaInvalid}},computedListeners:function(){return _d(_d({},this.bvListeners),{},{input:this.onInput,change:this.onChange,blur:this.onBlur})}},watch:{noWheel:function(t){this.setWheelStopper(t)}},mounted:function(){this.setWheelStopper(this.noWheel)},deactivated:function(){this.setWheelStopper(!1)},activated:function(){this.setWheelStopper(this.noWheel)},beforeDestroy:function(){this.setWheelStopper(!1)},methods:{setWheelStopper:function(t){var e=this.$el;Ke(t,e,"focus",this.onWheelFocus),Ke(t,e,"blur",this.onWheelBlur),t||Xe(document,"wheel",this.stopWheel)},onWheelFocus:function(){Ge(document,"wheel",this.stopWheel)},onWheelBlur:function(){Xe(document,"wheel",this.stopWheel)},stopWheel:function(t){Ze(t,{propagation:!1}),$e(this.$el)}},render:function(t){return t("input",{class:this.computedClass,attrs:this.computedAttrs,domProps:{value:this.localValue},on:this.computedListeners,ref:"input"})}}),Td=I({components:{BFormInput:Ed,BInput:Ed}}),Od=(0,Ue.sC)(Gc,H.Rs),kd=i.default.extend({name:H.Rs,mixins:[Xc],provide:function(){return{bvRadioGroup:this}},props:Od,computed:{isRadioGroup:function(){return!0}}}),Ad=I({components:{BFormRadio:Nc,BRadio:Nc,BFormRadioGroup:kd,BRadioGroup:kd}});function Pd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Md(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pd(Object(n),!0).forEach((function(e){Ld(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pd(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ld(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Dd=He("value",{type:kt.$$,event:V}),Rd=Dd.mixin,Id=Dd.props,jd=Dd.prop,Nd=Dd.event,Fd=function(t){return(0,Sn.JB)(3,(0,re.yJ)(t,5))},zd=function(t,e,n){return(0,Sn.JB)((0,Sn.rp)(t,n),e)},Bd=i.default.extend({name:H.WY,mixins:[qe],props:{disabled:(0,Ue.Yg)(kt.Ye,!1),focused:(0,Ue.Yg)(kt.Ye,!1),hasClear:(0,Ue.Yg)(kt.Ye,!1),rating:(0,Ue.Yg)(kt.Rn,0),readonly:(0,Ue.Yg)(kt.Ye,!1),star:(0,Ue.Yg)(kt.Rn,0),variant:(0,Ue.Yg)(kt.vq)},methods:{onClick:function(t){this.disabled||this.readonly||(Ze(t,{propagation:!1}),this.$emit(gt,this.star))}},render:function(t){var e=this.rating,n=this.star,i=this.focused,r=this.hasClear,o=this.variant,a=this.disabled,s=this.readonly,l=r?0:1,c=e>=n?"full":e>=n-.5?"half":"empty",u={variant:o,disabled:a,readonly:s};return t("span",{staticClass:"b-rating-star",class:{focused:i&&e===n||!(0,re.yJ)(e)&&n===l,"b-rating-star-empty":"empty"===c,"b-rating-star-half":"half"===c,"b-rating-star-full":"full"===c},attrs:{tabindex:a||s?null:"-1"},on:{click:this.onClick}},[t("span",{staticClass:"b-rating-icon"},[this.normalizeSlot(c,u)])])}}),$d=(0,Ue.sC)((0,_.di)(Md(Md(Md(Md(Md({},Qr),Id),(0,_.cJ)(ac,["required","autofocus"])),uc),{},{color:(0,Ue.Yg)(kt.vq),iconClear:(0,Ue.Yg)(kt.vq,"x"),iconEmpty:(0,Ue.Yg)(kt.vq,"star"),iconFull:(0,Ue.Yg)(kt.vq,"star-fill"),iconHalf:(0,Ue.Yg)(kt.vq,"star-half"),inline:(0,Ue.Yg)(kt.Ye,!1),locale:(0,Ue.Yg)(kt.vj),noBorder:(0,Ue.Yg)(kt.Ye,!1),precision:(0,Ue.Yg)(kt.$$),readonly:(0,Ue.Yg)(kt.Ye,!1),showClear:(0,Ue.Yg)(kt.Ye,!1),showValue:(0,Ue.Yg)(kt.Ye,!1),showValueMax:(0,Ue.Yg)(kt.Ye,!1),stars:(0,Ue.Yg)(kt.$$,5,(function(t){return(0,re.yJ)(t)>=3})),variant:(0,Ue.Yg)(kt.vq)})),H.Pe),Ud=i.default.extend({name:H.Pe,components:{BIconStar:Fn.I9Y,BIconStarHalf:Fn.pAC,BIconStarFill:Fn.bB,BIconX:Fn.qCC},mixins:[to,Rd,dc],props:$d,data:function(){var t=(0,re.SP)(this[jd],null),e=Fd(this.stars);return{localValue:(0,g.kZ)(t)?null:zd(t,0,e),hasFocus:!1}},computed:{computedStars:function(){return Fd(this.stars)},computedRating:function(){var t=(0,re.SP)(this.localValue,0),e=(0,re.yJ)(this.precision,3);return zd((0,re.SP)(t.toFixed(e)),0,this.computedStars)},computedLocale:function(){var t=ee(this.locale).filter(v.D);return new Intl.NumberFormat(t).resolvedOptions().locale},isInteractive:function(){return!this.disabled&&!this.readonly},isRTL:function(){return Jr(this.computedLocale)},formattedRating:function(){var t=(0,re.yJ)(this.precision),e=this.showValueMax,n=this.computedLocale,i={notation:"standard",minimumFractionDigits:isNaN(t)?0:t,maximumFractionDigits:isNaN(t)?3:t},r=this.computedStars.toLocaleString(n),o=this.localValue;return o=(0,g.kZ)(o)?e?"-":"":o.toLocaleString(n,i),e?"".concat(o,"/").concat(r):o}},watch:(xd={},Ld(xd,jd,(function(t,e){if(t!==e){var n=(0,re.SP)(t,null);this.localValue=(0,g.kZ)(n)?null:zd(n,0,this.computedStars)}})),Ld(xd,"localValue",(function(t,e){t!==e&&t!==(this.value||0)&&this.$emit(Nd,t||null)})),Ld(xd,"disabled",(function(t){t&&(this.hasFocus=!1,this.blur())})),xd),methods:{focus:function(){this.disabled||Be(this.$el)},blur:function(){this.disabled||$e(this.$el)},onKeydown:function(t){var e=t.keyCode;if(this.isInteractive&&te([Zn,Wn,Jn,ti],e)){Ze(t,{propagation:!1});var n=(0,re.yJ)(this.localValue,0),i=this.showClear?0:1,r=this.computedStars,o=this.isRTL?-1:1;e===Zn?this.localValue=zd(n-o,i,r)||null:e===Jn?this.localValue=zd(n+o,i,r):e===Wn?this.localValue=zd(n-1,i,r)||null:e===ti&&(this.localValue=zd(n+1,i,r))}},onSelected:function(t){this.isInteractive&&(this.localValue=t)},onFocus:function(t){this.hasFocus=!!this.isInteractive&&"focus"===t.type},renderIcon:function(t){return this.$createElement(qn,{props:{icon:t,variant:this.disabled||this.color?null:this.variant||null}})},iconEmptyFn:function(){return this.renderIcon(this.iconEmpty)},iconHalfFn:function(){return this.renderIcon(this.iconHalf)},iconFullFn:function(){return this.renderIcon(this.iconFull)},iconClearFn:function(){return this.$createElement(qn,{props:{icon:this.iconClear}})}},render:function(t){var e=this,n=this.disabled,i=this.readonly,r=this.name,o=this.form,a=this.inline,s=this.variant,l=this.color,c=this.noBorder,u=this.hasFocus,d=this.computedRating,h=this.computedStars,p=this.formattedRating,f=this.showClear,m=this.isRTL,v=this.isInteractive,b=this.$scopedSlots,y=[];if(f&&!n&&!i){var _=t("span",{staticClass:"b-rating-icon"},[(b["icon-clear"]||this.iconClearFn)()]);y.push(t("span",{staticClass:"b-rating-star b-rating-star-clear flex-grow-1",class:{focused:u&&0===d},attrs:{tabindex:v?"-1":null},on:{click:function(){return e.onSelected(null)}},key:"clear"},[_]))}for(var w=0;w<h;w++){var x=w+1;y.push(t(Bd,{staticClass:"flex-grow-1",style:l&&!n?{color:l}:{},props:{rating:d,star:x,variant:n?null:s||null,disabled:n,readonly:i,focused:u,hasClear:f},on:{selected:this.onSelected},scopedSlots:{empty:b["icon-empty"]||this.iconEmptyFn,half:b["icon-half"]||this.iconHalfFn,full:b["icon-full"]||this.iconFullFn},key:w}))}return r&&y.push(t("input",{attrs:{type:"hidden",value:(0,g.kZ)(this.localValue)?"":d,name:r,form:o||null},key:"hidden"})),this.showValue&&y.push(t("b",{staticClass:"b-rating-value flex-grow-1",attrs:{"aria-hidden":"true"},key:"value"},(0,oe.dI)(p))),t("output",{staticClass:"b-rating form-control align-items-center",class:[{"d-inline-flex":a,"d-flex":!a,"border-0":c,disabled:n,readonly:!n&&i},this.sizeFormClass],attrs:{id:this.safeId(),dir:m?"rtl":"ltr",tabindex:n?null:"0",disabled:n,role:"slider","aria-disabled":n?"true":null,"aria-readonly":!n&&i?"true":null,"aria-live":"off","aria-valuemin":f?"0":"1","aria-valuemax":(0,oe.dI)(h),"aria-valuenow":d?(0,oe.dI)(d):null},on:{keydown:this.onKeydown,focus:this.onFocus,blur:this.onFocus}},y)}}),Hd=I({components:{BFormRating:Ud,BRating:Ud}}),Vd=He("value"),Yd=Vd.mixin,qd=Vd.props,Wd=Vd.prop,Gd=Vd.event;function Xd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Kd(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xd(Object(n),!0).forEach((function(e){Zd(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xd(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Zd(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Jd=(0,Ue.sC)((0,_.di)(Kd(Kd({},Bl),{},{labelField:(0,Ue.Yg)(kt.vq,"label"),optionsField:(0,Ue.Yg)(kt.vq,"options")})),"formOptions"),Qd=i.default.extend({mixins:[$l],props:Jd,methods:{normalizeOption:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if((0,g.Qd)(t)){var n=y(t,this.valueField),i=y(t,this.textField),r=y(t,this.optionsField,null);return(0,g.kZ)(r)?{value:(0,g.b0)(n)?e||i:n,text:String((0,g.b0)(i)?e:i),html:y(t,this.htmlField),disabled:Boolean(y(t,this.disabledField))}:{label:String(y(t,this.labelField)||i),options:this.normalizeOptions(r)}}return{value:e||t,text:String(t),disabled:!1}}}}),th=(0,Ue.sC)({disabled:(0,Ue.Yg)(kt.Ye,!1),value:(0,Ue.Yg)(kt.Kg,void 0,!0)},H.af),eh=i.default.extend({name:H.af,functional:!0,props:th,render:function(t,e){var n=e.props,i=e.data,r=e.children,o=n.value,a=n.disabled;return t("option",(0,$.L)(i,{attrs:{disabled:a},domProps:{value:o}}),r)}});function nh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ih(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?nh(Object(n),!0).forEach((function(e){rh(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nh(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function rh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var oh=(0,Ue.sC)((0,_.di)(ih(ih({},Bl),{},{label:(0,Ue.Yg)(kt.vq,void 0,!0)})),H.c4),ah=i.default.extend({name:H.c4,mixins:[qe,$l],props:oh,render:function(t){var e=this.label,n=this.formOptions.map((function(e,n){var i=e.value,r=e.text,o=e.html,a=e.disabled;return t(eh,{attrs:{value:i,disabled:a},domProps:er(o,r),key:"option_".concat(n)})}));return t("optgroup",{attrs:{label:e}},[this.normalizeSlot(Nt),n,this.normalizeSlot()])}});function sh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function lh(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?sh(Object(n),!0).forEach((function(e){ch(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sh(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ch(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var uh,dh=(0,Ue.sC)((0,_.di)(lh(lh(lh(lh(lh(lh(lh({},Qr),qd),ac),lc),uc),hc),{},{ariaInvalid:(0,Ue.Yg)(kt.iF,!1),multiple:(0,Ue.Yg)(kt.Ye,!1),selectSize:(0,Ue.Yg)(kt.Rn,0)})),H.ml),hh=i.default.extend({name:H.ml,mixins:[to,Yd,sc,dc,pc,cc,Qd,qe],props:dh,data:function(){return{localValue:this[Wd]}},computed:{computedSelectSize:function(){return this.plain||0!==this.selectSize?this.selectSize:null},inputClass:function(){return[this.plain?"form-control":"custom-select",this.size&&this.plain?"form-control-".concat(this.size):null,this.size&&!this.plain?"custom-select-".concat(this.size):null,this.stateClass]}},watch:{value:function(t){this.localValue=t},localValue:function(){this.$emit(Gd,this.localValue)}},methods:{focus:function(){Be(this.$refs.input)},blur:function(){$e(this.$refs.input)},onChange:function(t){var e=this,n=t.target,i=Qt(n.options).filter((function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));this.localValue=n.multiple?i:i[0],this.$nextTick((function(){e.$emit(V,e.localValue)}))}},render:function(t){var e=this.name,n=this.disabled,i=this.required,r=this.computedSelectSize,o=this.localValue,a=this.formOptions.map((function(e,n){var i=e.value,r=e.label,o=e.options,a=e.disabled,s="option_".concat(n);return(0,g.cy)(o)?t(ah,{props:{label:r,options:o},key:s}):t(eh,{props:{value:i,disabled:a},domProps:er(e.html,e.text),key:s})}));return t("select",{class:this.inputClass,attrs:{id:this.safeId(),name:e,form:this.form||null,multiple:this.multiple||null,size:r,disabled:n,required:i,"aria-required":i?"true":null,"aria-invalid":this.computedAriaInvalid},on:{change:this.onChange},directives:[{name:"model",value:o}],ref:"input"},[this.normalizeSlot(Nt),a,this.normalizeSlot()])}}),ph=I({components:{BFormSelect:hh,BFormSelectOption:eh,BFormSelectOptionGroup:ah,BSelect:hh,BSelectOption:eh,BSelectOptionGroup:ah}});function fh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function mh(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fh(Object(n),!0).forEach((function(e){vh(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fh(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function vh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var gh=He("value",{type:kt.gG}),bh=gh.mixin,yh=gh.props,_h=gh.prop,wh=gh.event,xh=[ti,Wn,Kn,Gn,33,34],Ch=(0,Ue.sC)((0,_.di)(mh(mh(mh(mh(mh(mh({},Qr),yh),(0,_.cJ)(ac,["required","autofocus"])),uc),hc),{},{ariaControls:(0,Ue.Yg)(kt.vq),ariaLabel:(0,Ue.Yg)(kt.vq),formatterFn:(0,Ue.Yg)(kt.KF),inline:(0,Ue.Yg)(kt.Ye,!1),labelDecrement:(0,Ue.Yg)(kt.vq,"Decrement"),labelIncrement:(0,Ue.Yg)(kt.vq,"Increment"),locale:(0,Ue.Yg)(kt.vj),max:(0,Ue.Yg)(kt.$$,100),min:(0,Ue.Yg)(kt.$$,1),placeholder:(0,Ue.Yg)(kt.vq),readonly:(0,Ue.Yg)(kt.Ye,!1),repeatDelay:(0,Ue.Yg)(kt.$$,500),repeatInterval:(0,Ue.Yg)(kt.$$,100),repeatStepMultiplier:(0,Ue.Yg)(kt.$$,4),repeatThreshold:(0,Ue.Yg)(kt.$$,10),step:(0,Ue.Yg)(kt.$$,1),vertical:(0,Ue.Yg)(kt.Ye,!1),wrap:(0,Ue.Yg)(kt.Ye,!1)})),H.cg),Sh=i.default.extend({name:H.cg,mixins:[si,to,bh,dc,pc,qe],inheritAttrs:!1,props:Ch,data:function(){return{localValue:(0,re.SP)(this[_h],null),hasFocus:!1}},computed:{spinId:function(){return this.safeId()},computedInline:function(){return this.inline&&!this.vertical},computedReadonly:function(){return this.readonly&&!this.disabled},computedRequired:function(){return this.required&&!this.computedReadonly&&!this.disabled},computedStep:function(){return(0,re.SP)(this.step,1)},computedMin:function(){return(0,re.SP)(this.min,1)},computedMax:function(){var t=(0,re.SP)(this.max,100),e=this.computedStep,n=this.computedMin;return(0,Sn.Zr)((t-n)/e)*e+n},computedDelay:function(){var t=(0,re.yJ)(this.repeatDelay,0);return t>0?t:500},computedInterval:function(){var t=(0,re.yJ)(this.repeatInterval,0);return t>0?t:100},computedThreshold:function(){return(0,Sn.JB)((0,re.yJ)(this.repeatThreshold,10),1)},computedStepMultiplier:function(){return(0,Sn.JB)((0,re.yJ)(this.repeatStepMultiplier,4),1)},computedPrecision:function(){var t=this.computedStep;return(0,Sn.Zr)(t)===t?0:(t.toString().split(".")[1]||"").length},computedMultiplier:function(){return(0,Sn.z4)(10,this.computedPrecision||0)},valueAsFixed:function(){var t=this.localValue;return(0,g.kZ)(t)?"":t.toFixed(this.computedPrecision)},computedLocale:function(){var t=ee(this.locale).filter(v.D);return new Intl.NumberFormat(t).resolvedOptions().locale},computedRTL:function(){return Jr(this.computedLocale)},defaultFormatter:function(){var t=this.computedPrecision;return new Intl.NumberFormat(this.computedLocale,{style:"decimal",useGrouping:!1,minimumIntegerDigits:1,minimumFractionDigits:t,maximumFractionDigits:t,notation:"standard"}).format},computedFormatter:function(){var t=this.formatterFn;return(0,Ue.mV)(t)?t:this.defaultFormatter},computedAttrs:function(){return mh(mh({},this.bvAttrs),{},{role:"group",lang:this.computedLocale,tabindex:this.disabled?null:"-1",title:this.ariaLabel})},computedSpinAttrs:function(){var t=this.spinId,e=this.localValue,n=this.computedRequired,i=this.disabled,r=this.state,o=this.computedFormatter,a=!(0,g.kZ)(e);return mh(mh({dir:this.computedRTL?"rtl":"ltr"},this.bvAttrs),{},{id:t,role:"spinbutton",tabindex:i?null:"0","aria-live":"off","aria-label":this.ariaLabel||null,"aria-controls":this.ariaControls||null,"aria-invalid":!1===r||!a&&n?"true":null,"aria-required":n?"true":null,"aria-valuemin":(0,oe.dI)(this.computedMin),"aria-valuemax":(0,oe.dI)(this.computedMax),"aria-valuenow":a?e:null,"aria-valuetext":a?o(e):null})}},watch:(uh={},vh(uh,_h,(function(t){this.localValue=(0,re.SP)(t,null)})),vh(uh,"localValue",(function(t){this.$emit(wh,t)})),vh(uh,"disabled",(function(t){t&&this.clearRepeat()})),vh(uh,"readonly",(function(t){t&&this.clearRepeat()})),uh),created:function(){this.$_autoDelayTimer=null,this.$_autoRepeatTimer=null,this.$_keyIsDown=!1},beforeDestroy:function(){this.clearRepeat()},deactivated:function(){this.clearRepeat()},methods:{focus:function(){this.disabled||Be(this.$refs.spinner)},blur:function(){this.disabled||$e(this.$refs.spinner)},emitChange:function(){this.$emit(V,this.localValue)},stepValue:function(t){var e=this.localValue;if(!this.disabled&&!(0,g.kZ)(e)){var n=this.computedStep*t,i=this.computedMin,r=this.computedMax,o=this.computedMultiplier,a=this.wrap;e=(0,Sn.jn)((e-i)/n)*n+i+n,e=(0,Sn.jn)(e*o)/o,this.localValue=e>r?a?i:r:e<i?a?r:i:e}},onFocusBlur:function(t){this.disabled?this.hasFocus=!1:this.hasFocus="focus"===t.type},stepUp:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=this.localValue;(0,g.kZ)(e)?this.localValue=this.computedMin:this.stepValue(1*t)},stepDown:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=this.localValue;(0,g.kZ)(e)?this.localValue=this.wrap?this.computedMax:this.computedMin:this.stepValue(-1*t)},onKeydown:function(t){var e=t.keyCode,n=t.altKey,i=t.ctrlKey,r=t.metaKey;if(!(this.disabled||this.readonly||n||i||r)&&te(xh,e)){if(Ze(t,{propagation:!1}),this.$_keyIsDown)return;this.resetTimers(),te([ti,Wn],e)?(this.$_keyIsDown=!0,e===ti?this.handleStepRepeat(t,this.stepUp):e===Wn&&this.handleStepRepeat(t,this.stepDown)):33===e?this.stepUp(this.computedStepMultiplier):34===e?this.stepDown(this.computedStepMultiplier):e===Kn?this.localValue=this.computedMin:e===Gn&&(this.localValue=this.computedMax)}},onKeyup:function(t){var e=t.keyCode,n=t.altKey,i=t.ctrlKey,r=t.metaKey;this.disabled||this.readonly||n||i||r||te(xh,e)&&(Ze(t,{propagation:!1}),this.resetTimers(),this.$_keyIsDown=!1,this.emitChange())},handleStepRepeat:function(t,e){var n=this,i=t||{},r=i.type,o=i.button;if(!this.disabled&&!this.readonly){if("mousedown"===r&&o)return;this.resetTimers(),e(1);var a=this.computedThreshold,s=this.computedStepMultiplier,l=this.computedDelay,c=this.computedInterval;this.$_autoDelayTimer=setTimeout((function(){var t=0;n.$_autoRepeatTimer=setInterval((function(){e(t<a?1:s),t++}),c)}),l)}},onMouseup:function(t){var e=t||{},n=e.type,i=e.button;"mouseup"===n&&i||(Ze(t,{propagation:!1}),this.resetTimers(),this.setMouseup(!1),this.emitChange())},setMouseup:function(t){try{Ke(t,document.body,"mouseup",this.onMouseup,!1),Ke(t,document.body,"touchend",this.onMouseup,!1)}catch(t){}},resetTimers:function(){clearTimeout(this.$_autoDelayTimer),clearInterval(this.$_autoRepeatTimer),this.$_autoDelayTimer=null,this.$_autoRepeatTimer=null},clearRepeat:function(){this.resetTimers(),this.setMouseup(!1),this.$_keyIsDown=!1}},render:function(t){var e=this,n=this.spinId,i=this.localValue,r=this.computedInline,o=this.computedReadonly,a=this.vertical,s=this.disabled,l=this.computedFormatter,c=!(0,g.kZ)(i),u=function(i,r,l,c,u,d,h){var p=t(l,{props:{scale:e.hasFocus?1.5:1.25},attrs:{"aria-hidden":"true"}}),f={hasFocus:e.hasFocus},m=function(t){s||o||(Ze(t,{propagation:!1}),e.setMouseup(!0),Be(t.currentTarget),e.handleStepRepeat(t,i))};return t("button",{staticClass:"btn btn-sm border-0 rounded-0",class:{"py-0":!a},attrs:{tabindex:"-1",type:"button",disabled:s||o||d,"aria-disabled":s||o||d?"true":null,"aria-controls":n,"aria-label":r||null,"aria-keyshortcuts":u||null},on:{mousedown:m,touchstart:m},key:c||null,ref:c},[e.normalizeSlot(h,f)||p])},d=u(this.stepUp,this.labelIncrement,Fn.aaU,"inc","ArrowUp",!1,"increment"),h=u(this.stepDown,this.labelDecrement,Fn.cJX,"dec","ArrowDown",!1,"decrement"),p=t();this.name&&!s&&(p=t("input",{attrs:{type:"hidden",name:this.name,form:this.form||null,value:this.valueAsFixed},key:"hidden"}));var f=t("output",{staticClass:"flex-grow-1",class:{"d-flex":a,"align-self-center":!a,"align-items-center":a,"border-top":a,"border-bottom":a,"border-left":!a,"border-right":!a},attrs:this.computedSpinAttrs,key:"output",ref:"spinner"},[t("bdi",c?l(i):this.placeholder||"")]);return t("div",{staticClass:"b-form-spinbutton form-control",class:[{disabled:s,readonly:o,focus:this.hasFocus,"d-inline-flex":r||a,"d-flex":!r&&!a,"align-items-stretch":!a,"flex-column":a},this.sizeFormClass,this.stateClass],attrs:this.computedAttrs,on:{keydown:this.onKeydown,keyup:this.onKeyup,"!focus":this.onFocusBlur,"!blur":this.onFocusBlur}},a?[d,p,f,h]:[h,p,f,d])}}),Eh=I({components:{BFormSpinbutton:Sh,BSpinbutton:Sh}});function Th(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Oh(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Th(Object(n),!0).forEach((function(e){kh(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Th(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function kh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ah,Ph=(0,Ue.sC)((0,_.di)(Oh(Oh({},Qr),{},{disabled:(0,Ue.Yg)(kt.Ye,!1),noRemove:(0,Ue.Yg)(kt.Ye,!1),pill:(0,Ue.Yg)(kt.Ye,!1),removeLabel:(0,Ue.Yg)(kt.vq,"Remove tag"),tag:(0,Ue.Yg)(kt.vq,"span"),title:(0,Ue.Yg)(kt.vq),variant:(0,Ue.Yg)(kt.vq,"secondary")})),H.y5),Mh=i.default.extend({name:H.y5,mixins:[to,qe],props:Ph,methods:{onRemove:function(t){var e=t.type,n=t.keyCode;this.disabled||"click"!==e&&("keydown"!==e||46!==n)||this.$emit("remove")}},render:function(t){var e=this.title,n=this.tag,i=this.variant,r=this.pill,o=this.disabled,a=this.safeId(),s=this.safeId("_taglabel_"),l=t();this.noRemove||o||(l=t(nn,{staticClass:"b-form-tag-remove",props:{ariaLabel:this.removeLabel},attrs:{"aria-controls":a,"aria-describedby":s,"aria-keyshortcuts":"Delete"},on:{click:this.onRemove,keydown:this.onRemove}}));var c=t("span",{staticClass:"b-form-tag-content flex-grow-1 text-truncate",attrs:{id:s}},this.normalizeSlot()||e);return t(Ji,{staticClass:"b-form-tag d-inline-flex align-items-baseline mw-100",class:{disabled:o},props:{tag:n,variant:i,pill:r},attrs:{id:a,title:e||null,"aria-labelledby":s}},[c,l])}});function Lh(t){return function(t){if(Array.isArray(t))return Dh(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Dh(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dh(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dh(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Rh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ih(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Rh(Object(n),!0).forEach((function(e){jh(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Rh(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function jh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Nh=He("value",{type:kt.Rl,defaultValue:[]}),Fh=Nh.mixin,zh=Nh.props,Bh=Nh.prop,$h=Nh.event,Uh=["text","email","tel","url","number"],Hh=[".b-form-tag","button","input","select"].join(" "),Vh=function(t){return ee(t).map((function(t){return(0,oe.Bq)((0,oe.dI)(t))})).filter((function(t,e,n){return t.length>0&&n.indexOf(t)===e}))},Yh=function(t){return(0,g.Kg)(t)?t:(0,g.xH)(t)&&t.target.value||""},qh=(0,Ue.sC)((0,_.di)(Ih(Ih(Ih(Ih(Ih(Ih({},Qr),zh),ac),uc),hc),{},{addButtonText:(0,Ue.Yg)(kt.vq,"Add"),addButtonVariant:(0,Ue.Yg)(kt.vq,"outline-secondary"),addOnChange:(0,Ue.Yg)(kt.Ye,!1),duplicateTagText:(0,Ue.Yg)(kt.vq,"Duplicate tag(s)"),ignoreInputFocusSelector:(0,Ue.Yg)(kt.vj,Hh),inputAttrs:(0,Ue.Yg)(kt.bD,{}),inputClass:(0,Ue.Yg)(kt.VE),inputId:(0,Ue.Yg)(kt.vq),inputType:(0,Ue.Yg)(kt.vq,"text",(function(t){return te(Uh,t)})),invalidTagText:(0,Ue.Yg)(kt.vq,"Invalid tag(s)"),limit:(0,Ue.Yg)(kt.Rn),limitTagsText:(0,Ue.Yg)(kt.vq,"Tag limit reached"),noAddOnEnter:(0,Ue.Yg)(kt.Ye,!1),noOuterFocus:(0,Ue.Yg)(kt.Ye,!1),noTagRemove:(0,Ue.Yg)(kt.Ye,!1),placeholder:(0,Ue.Yg)(kt.vq,"Add tag..."),removeOnDelete:(0,Ue.Yg)(kt.Ye,!1),separator:(0,Ue.Yg)(kt.vj),tagClass:(0,Ue.Yg)(kt.VE),tagPills:(0,Ue.Yg)(kt.Ye,!1),tagRemoveLabel:(0,Ue.Yg)(kt.vq,"Remove tag"),tagRemovedLabel:(0,Ue.Yg)(kt.vq,"Tag removed"),tagValidator:(0,Ue.Yg)(kt.KF),tagVariant:(0,Ue.Yg)(kt.vq,"secondary")})),H.xp),Wh=i.default.extend({name:H.xp,mixins:[to,Fh,sc,dc,pc,qe],props:qh,data:function(){return{hasFocus:!1,newTag:"",tags:[],removedTags:[],tagsState:{all:[],valid:[],invalid:[],duplicate:[]}}},computed:{computedInputId:function(){return this.inputId||this.safeId("__input__")},computedInputType:function(){return te(Uh,this.inputType)?this.inputType:"text"},computedInputAttrs:function(){var t=this.disabled,e=this.form;return Ih(Ih({},this.inputAttrs),{},{id:this.computedInputId,value:this.newTag,disabled:t,form:e})},computedInputHandlers:function(){return{input:this.onInputInput,change:this.onInputChange,keydown:this.onInputKeydown,reset:this.reset}},computedSeparator:function(){return ee(this.separator).filter(g.Kg).filter(v.D).join("")},computedSeparatorRegExp:function(){var t,e=this.computedSeparator;return e?new RegExp("[".concat((t=e,(0,oe.Nt)(t).replace(m.DS,"\\s")),"]+")):null},computedJoiner:function(){var t=this.computedSeparator.charAt(0);return" "!==t?"".concat(t," "):t},computeIgnoreInputFocusSelector:function(){return ee(this.ignoreInputFocusSelector).filter(v.D).join(",").trim()},disableAddButton:function(){var t=this,e=(0,oe.Bq)(this.newTag);return""===e||!this.splitTags(e).some((function(e){return!te(t.tags,e)&&t.validateTag(e)}))},duplicateTags:function(){return this.tagsState.duplicate},hasDuplicateTags:function(){return this.duplicateTags.length>0},invalidTags:function(){return this.tagsState.invalid},hasInvalidTags:function(){return this.invalidTags.length>0},isLimitReached:function(){var t=this.limit;return(0,g.Et)(t)&&t>=0&&this.tags.length>=t}},watch:(Ah={},jh(Ah,Bh,(function(t){this.tags=Vh(t)})),jh(Ah,"tags",(function(t,e){ni(t,this[Bh])||this.$emit($h,t),ni(t,e)||(t=ee(t).filter(v.D),e=ee(e).filter(v.D),this.removedTags=e.filter((function(e){return!te(t,e)})))})),jh(Ah,"tagsState",(function(t,e){ni(t,e)||this.$emit("tag-state",t.valid,t.invalid,t.duplicate)})),Ah),created:function(){this.tags=Vh(this[Bh])},mounted:function(){var t=this,e=xe("form",this.$el);e&&(Ge(e,"reset",this.reset,Tt),this.$on(xt,(function(){Xe(e,"reset",t.reset,Tt)})))},methods:{addTag:function(t){if(t=(0,g.Kg)(t)?t:this.newTag,!this.disabled&&""!==(0,oe.Bq)(t)&&!this.isLimitReached){var e=this.parseTags(t);if(e.valid.length>0||0===e.all.length)if(we(this.getInput(),"select"))this.newTag="";else{var n=[].concat(Lh(e.invalid),Lh(e.duplicate));this.newTag=e.all.filter((function(t){return te(n,t)})).join(this.computedJoiner).concat(n.length>0?this.computedJoiner.charAt(0):"")}e.valid.length>0&&(this.tags=ee(this.tags,e.valid)),this.tagsState=e,this.focus()}},removeTag:function(t){var e=this;this.disabled||(this.tags=this.tags.filter((function(e){return e!==t})),this.$nextTick((function(){e.focus()})))},reset:function(){var t=this;this.newTag="",this.tags=[],this.$nextTick((function(){t.removedTags=[],t.tagsState={all:[],valid:[],invalid:[],duplicate:[]}}))},onInputInput:function(t){if(!(this.disabled||(0,g.xH)(t)&&t.target.composing)){var e=Yh(t),n=this.computedSeparatorRegExp;this.newTag!==e&&(this.newTag=e),e=(0,oe.Mr)(e),n&&n.test(e.slice(-1))?this.addTag():this.tagsState=""===e?{all:[],valid:[],invalid:[],duplicate:[]}:this.parseTags(e)}},onInputChange:function(t){if(!this.disabled&&this.addOnChange){var e=Yh(t);this.newTag!==e&&(this.newTag=e),this.addTag()}},onInputKeydown:function(t){if(!this.disabled&&(0,g.xH)(t)){var e=t.keyCode,n=t.target.value||"";this.noAddOnEnter||e!==Xn?!this.removeOnDelete||8!==e&&46!==e||""!==n||(Ze(t,{propagation:!1}),this.tags=this.tags.slice(0,-1)):(Ze(t,{propagation:!1}),this.addTag())}},onClick:function(t){var e=this,n=this.computeIgnoreInputFocusSelector,i=t.target;this.disabled||me(i)||n&&xe(n,i,!0)||this.$nextTick((function(){e.focus()}))},onFocusin:function(){this.hasFocus=!0},onFocusout:function(){this.hasFocus=!1},handleAutofocus:function(){var t=this;this.$nextTick((function(){ue((function(){t.autofocus&&!t.disabled&&t.focus()}))}))},focus:function(){this.disabled||Be(this.getInput())},blur:function(){this.disabled||$e(this.getInput())},splitTags:function(t){t=(0,oe.dI)(t);var e=this.computedSeparatorRegExp;return(e?t.split(e):[t]).map(oe.Bq).filter(v.D)},parseTags:function(t){var e=this,n=this.splitTags(t),i={all:n,valid:[],invalid:[],duplicate:[]};return n.forEach((function(t){te(e.tags,t)||te(i.valid,t)?te(i.duplicate,t)||i.duplicate.push(t):e.validateTag(t)?i.valid.push(t):te(i.invalid,t)||i.invalid.push(t)})),i},validateTag:function(t){var e=this.tagValidator;return!(0,Ue.mV)(e)||e(t)},getInput:function(){return _e("#".concat(Vu(this.computedInputId)),this.$el)},defaultRender:function(t){var e=t.addButtonText,n=t.addButtonVariant,i=t.addTag,r=t.disableAddButton,o=t.disabled,a=t.duplicateTagText,s=t.inputAttrs,l=t.inputClass,c=t.inputHandlers,u=t.inputType,d=t.invalidTagText,h=t.isDuplicate,p=t.isInvalid,f=t.isLimitReached,m=t.limitTagsText,g=t.noTagRemove,b=t.placeholder,y=t.removeTag,_=t.tagClass,w=t.tagPills,x=t.tagRemoveLabel,C=t.tagVariant,S=t.tags,E=this.$createElement,T=S.map((function(t){return t=(0,oe.dI)(t),E(Mh,{class:_,props:{disabled:o,noRemove:g,pill:w,removeLabel:x,tag:"li",title:t,variant:C},on:{remove:function(){return y(t)}},key:"tags_".concat(t)},t)})),O=d&&p?this.safeId("__invalid_feedback__"):null,k=a&&h?this.safeId("__duplicate_feedback__"):null,A=m&&f?this.safeId("__limit_feedback__"):null,P=[s["aria-describedby"],O,k,A].filter(v.D).join(" "),M=E("input",{staticClass:"b-form-tags-input w-100 flex-grow-1 p-0 m-0 bg-transparent border-0",class:l,style:{outline:0,minWidth:"5rem"},attrs:Ih(Ih({},s),{},{"aria-describedby":P||null,type:u,placeholder:b||null}),domProps:{value:s.value},on:c,directives:[{name:"model",value:s.value}],ref:"input"}),L=E(Di,{staticClass:"b-form-tags-button py-0",class:{invisible:r},style:{fontSize:"90%"},props:{disabled:r||f,variant:n},on:{click:function(){return i()}},ref:"button"},[this.normalizeSlot("add-button-text")||e]),D=this.safeId("__tag_list__"),R=E("li",{staticClass:"b-from-tags-field flex-grow-1",attrs:{role:"none","aria-live":"off","aria-controls":D},key:"tags_field"},[E("div",{staticClass:"d-flex",attrs:{role:"group"}},[M,L])]),I=E("ul",{staticClass:"b-form-tags-list list-unstyled mb-0 d-flex flex-wrap align-items-center",attrs:{id:D},key:"tags_list"},[T,R]),j=E();if(d||a||m){var N=this.computedJoiner,F=E();O&&(F=E(Jl,{props:{id:O,forceShow:!0},key:"tags_invalid_feedback"},[this.invalidTagText,": ",this.invalidTags.join(N)]));var z=E();k&&(z=E(Kl,{props:{id:k},key:"tags_duplicate_feedback"},[this.duplicateTagText,": ",this.duplicateTags.join(N)]));var B=E();A&&(B=E(Kl,{props:{id:A},key:"tags_limit_feedback"},[m])),j=E("div",{attrs:{"aria-live":"polite","aria-atomic":"true"},key:"tags_feedback"},[F,z,B])}return[I,j]}},render:function(t){var e=this.name,n=this.disabled,i=this.required,r=this.form,o=this.tags,a=this.computedInputId,s=this.hasFocus,l=this.noOuterFocus,c=Ih({tags:o.slice(),inputAttrs:this.computedInputAttrs,inputType:this.computedInputType,inputHandlers:this.computedInputHandlers,removeTag:this.removeTag,addTag:this.addTag,reset:this.reset,inputId:a,isInvalid:this.hasInvalidTags,invalidTags:this.invalidTags.slice(),isDuplicate:this.hasDuplicateTags,duplicateTags:this.duplicateTags.slice(),isLimitReached:this.isLimitReached,disableAddButton:this.disableAddButton},(0,_.Up)(this.$props,["addButtonText","addButtonVariant","disabled","duplicateTagText","form","inputClass","invalidTagText","limit","limitTagsText","noTagRemove","placeholder","required","separator","size","state","tagClass","tagPills","tagRemoveLabel","tagVariant"])),u=this.normalizeSlot(Rt,c)||this.defaultRender(c),d=t("output",{staticClass:"sr-only",attrs:{id:this.safeId("__selected_tags__"),role:"status",for:a,"aria-live":s?"polite":"off","aria-atomic":"true","aria-relevant":"additions text"}},this.tags.join(", ")),h=t("div",{staticClass:"sr-only",attrs:{id:this.safeId("__removed_tags__"),role:"status","aria-live":s?"assertive":"off","aria-atomic":"true"}},this.removedTags.length>0?"(".concat(this.tagRemovedLabel,") ").concat(this.removedTags.join(", ")):""),p=t();if(e&&!n){var f=o.length>0;p=(f?o:[""]).map((function(n){return t("input",{class:{"sr-only":!f},attrs:{type:f?"hidden":"text",value:n,required:i,name:e,form:r},key:"tag_input_".concat(n)})}))}return t("div",{staticClass:"b-form-tags form-control h-auto",class:[{focus:s&&!l&&!n,disabled:n},this.sizeFormClass,this.stateClass],attrs:{id:this.safeId(),role:"group",tabindex:n||l?null:"-1","aria-describedby":this.safeId("__selected_tags__")},on:{click:this.onClick,focusin:this.onFocusin,focusout:this.onFocusout}},[d,h,u,p])}}),Gh=I({components:{BFormTags:Wh,BTags:Wh,BFormTag:Mh,BTag:Mh}});function Xh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Kh(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xh(Object(n),!0).forEach((function(e){Zh(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xh(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Zh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Jh,Qh=(0,Ue.sC)((0,_.di)(Kh(Kh(Kh(Kh(Kh(Kh({},Qr),ac),uc),hc),vd),{},{maxRows:(0,Ue.Yg)(kt.$$),noAutoShrink:(0,Ue.Yg)(kt.Ye,!1),noResize:(0,Ue.Yg)(kt.Ye,!1),rows:(0,Ue.Yg)(kt.$$,2),wrap:(0,Ue.Yg)(kt.vq,"soft")})),H.YT),tp=i.default.extend({name:H.YT,directives:{"b-visible":ta},mixins:[ci,to,li,sc,dc,pc,gd,sd,bd],props:Qh,data:function(){return{heightInPx:null}},computed:{computedStyle:function(){var t={resize:!this.computedRows||this.noResize?"none":null};return this.computedRows||(t.height=this.heightInPx,t.overflowY="scroll"),t},computedMinRows:function(){return(0,Sn.JB)((0,re.yJ)(this.rows,2),2)},computedMaxRows:function(){return(0,Sn.JB)(this.computedMinRows,(0,re.yJ)(this.maxRows,0))},computedRows:function(){return this.computedMinRows===this.computedMaxRows?this.computedMinRows:null},computedAttrs:function(){var t=this.disabled,e=this.required;return{id:this.safeId(),name:this.name||null,form:this.form||null,disabled:t,placeholder:this.placeholder||null,required:e,autocomplete:this.autocomplete||null,readonly:this.readonly||this.plaintext,rows:this.computedRows,wrap:this.wrap||null,"aria-required":this.required?"true":null,"aria-invalid":this.computedAriaInvalid}},computedListeners:function(){return Kh(Kh({},this.bvListeners),{},{input:this.onInput,change:this.onChange,blur:this.onBlur})}},watch:{localValue:function(){this.setHeight()}},mounted:function(){this.setHeight()},methods:{visibleCallback:function(t){t&&this.$nextTick(this.setHeight)},setHeight:function(){var t=this;this.$nextTick((function(){ue((function(){t.heightInPx=t.computeHeight()}))}))},computeHeight:function(){if(this.$isServer||!(0,g.kZ)(this.computedRows))return null;var t=this.$el;if(!ve(t))return null;var e=je(t),n=(0,re.SP)(e.lineHeight,1),i=(0,re.SP)(e.borderTopWidth,0)+(0,re.SP)(e.borderBottomWidth,0),r=(0,re.SP)(e.paddingTop,0)+(0,re.SP)(e.paddingBottom,0),o=i+r,a=n*this.computedMinRows+o,s=Re(t,"height")||e.height;Le(t,"height","auto");var l=t.scrollHeight;Le(t,"height",s);var c=(0,Sn.JB)((l-r)/n,2),u=(0,Sn.rp)((0,Sn.JB)(c,this.computedMinRows),this.computedMaxRows),d=(0,Sn.JB)((0,Sn.ih)(u*n+o),a);return this.noAutoShrink&&(0,re.SP)(s,0)>d?s:"".concat(d,"px")}},render:function(t){return t("textarea",{class:this.computedClass,style:this.computedStyle,directives:[{name:"b-visible",value:this.visibleCallback,modifiers:{640:!0}}],attrs:this.computedAttrs,domProps:{value:this.localValue},on:this.computedListeners,ref:"input"})}}),ep=I({components:{BFormTextarea:tp,BTextarea:tp}});function np(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ip(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?np(Object(n),!0).forEach((function(e){rp(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):np(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function rp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function op(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ap(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ap(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ap(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var sp,lp=He("value",{type:kt.vq,defaultValue:""}),cp=lp.mixin,up=lp.props,dp=lp.prop,hp=lp.event,pp="numeric",fp=function(t){return"00".concat(t||"").slice(-2)},mp=function(t){t=(0,oe.dI)(t);var e=null,n=null,i=null;if(m.$9.test(t)){var r=op(t.split(":").map((function(t){return(0,re.yJ)(t,null)})),3);e=r[0],n=r[1],i=r[2]}return{hours:(0,g.z)(e)?null:e,minutes:(0,g.z)(n)?null:n,seconds:(0,g.z)(i)?null:i,ampm:(0,g.z)(e)||e<12?0:1}},vp=(0,Ue.sC)((0,_.di)(ip(ip(ip(ip({},Qr),up),(0,_.Up)(Ch,["labelIncrement","labelDecrement"])),{},{ariaLabelledby:(0,Ue.Yg)(kt.vq),disabled:(0,Ue.Yg)(kt.Ye,!1),hidden:(0,Ue.Yg)(kt.Ye,!1),hideHeader:(0,Ue.Yg)(kt.Ye,!1),hour12:(0,Ue.Yg)(kt.Ye,null),labelAm:(0,Ue.Yg)(kt.vq,"AM"),labelAmpm:(0,Ue.Yg)(kt.vq,"AM/PM"),labelHours:(0,Ue.Yg)(kt.vq,"Hours"),labelMinutes:(0,Ue.Yg)(kt.vq,"Minutes"),labelNoTimeSelected:(0,Ue.Yg)(kt.vq,"No time selected"),labelPm:(0,Ue.Yg)(kt.vq,"PM"),labelSeconds:(0,Ue.Yg)(kt.vq,"Seconds"),labelSelected:(0,Ue.Yg)(kt.vq,"Selected time"),locale:(0,Ue.Yg)(kt.vj),minutesStep:(0,Ue.Yg)(kt.$$,1),readonly:(0,Ue.Yg)(kt.Ye,!1),secondsStep:(0,Ue.Yg)(kt.$$,1),showSeconds:(0,Ue.Yg)(kt.Ye,!1)})),H.KZ),gp=i.default.extend({name:H.KZ,mixins:[to,cp,qe],props:vp,data:function(){var t=mp(this[dp]||"");return{modelHours:t.hours,modelMinutes:t.minutes,modelSeconds:t.seconds,modelAmpm:t.ampm,isLive:!1}},computed:{computedHMS:function(){return function(t){var e=t.hours,n=t.minutes,i=t.seconds,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,g.kZ)(e)||(0,g.kZ)(n)||r&&(0,g.kZ)(i)?"":[e,n,r?i:0].map(fp).join(":")}({hours:this.modelHours,minutes:this.modelMinutes,seconds:this.modelSeconds},this.showSeconds)},resolvedOptions:function(){var t=ee(this.locale).filter(v.D),e={hour:pp,minute:pp,second:pp};(0,g.z)(this.hour12)||(e.hour12=!!this.hour12);var n=new Intl.DateTimeFormat(t,e).resolvedOptions(),i=n.hour12||!1,r=n.hourCycle||(i?"h12":"h23");return{locale:n.locale,hour12:i,hourCycle:r}},computedLocale:function(){return this.resolvedOptions.locale},computedLang:function(){return(this.computedLocale||"").replace(/-u-.*$/,"")},computedRTL:function(){return Jr(this.computedLang)},computedHourCycle:function(){return this.resolvedOptions.hourCycle},is12Hour:function(){return!!this.resolvedOptions.hour12},context:function(){return{locale:this.computedLocale,isRTL:this.computedRTL,hourCycle:this.computedHourCycle,hour12:this.is12Hour,hours:this.modelHours,minutes:this.modelMinutes,seconds:this.showSeconds?this.modelSeconds:0,value:this.computedHMS,formatted:this.formattedTimeString}},valueId:function(){return this.safeId()||null},computedAriaLabelledby:function(){return[this.ariaLabelledby,this.valueId].filter(v.D).join(" ")||null},timeFormatter:function(){var t={hour12:this.is12Hour,hourCycle:this.computedHourCycle,hour:pp,minute:pp,timeZone:"UTC"};return this.showSeconds&&(t.second=pp),zr(this.computedLocale,t)},numberFormatter:function(){return new Intl.NumberFormat(this.computedLocale,{style:"decimal",minimumIntegerDigits:2,minimumFractionDigits:0,maximumFractionDigits:0,notation:"standard"}).format},formattedTimeString:function(){var t=this.modelHours,e=this.modelMinutes,n=this.showSeconds&&this.modelSeconds||0;return this.computedHMS?this.timeFormatter(jr(Date.UTC(0,0,1,t,e,n))):this.labelNoTimeSelected||" "},spinScopedSlots:function(){var t=this.$createElement;return{increment:function(e){var n=e.hasFocus;return t(Fn.KLB,{props:{scale:n?1.5:1.25},attrs:{"aria-hidden":"true"}})},decrement:function(e){var n=e.hasFocus;return t(Fn.KLB,{props:{flipV:!0,scale:n?1.5:1.25},attrs:{"aria-hidden":"true"}})}}}},watch:(Jh={},rp(Jh,dp,(function(t,e){if(t!==e&&!ni(mp(t),mp(this.computedHMS))){var n=mp(t),i=n.hours,r=n.minutes,o=n.seconds,a=n.ampm;this.modelHours=i,this.modelMinutes=r,this.modelSeconds=o,this.modelAmpm=a}})),rp(Jh,"computedHMS",(function(t,e){t!==e&&this.$emit(hp,t)})),rp(Jh,"context",(function(t,e){ni(t,e)||this.$emit(W,t)})),rp(Jh,"modelAmpm",(function(t,e){var n=this;if(t!==e){var i=(0,g.kZ)(this.modelHours)?0:this.modelHours;this.$nextTick((function(){0===t&&i>11?n.modelHours=i-12:1===t&&i<12&&(n.modelHours=i+12)}))}})),rp(Jh,"modelHours",(function(t,e){t!==e&&(this.modelAmpm=t>11?1:0)})),Jh),created:function(){var t=this;this.$nextTick((function(){t.$emit(W,t.context)}))},mounted:function(){this.setLive(!0)},activated:function(){this.setLive(!0)},deactivated:function(){this.setLive(!1)},beforeDestroy:function(){this.setLive(!1)},methods:{focus:function(){this.disabled||Be(this.$refs.spinners[0])},blur:function(){if(!this.disabled){var t=pe();Ce(this.$el,t)&&$e(t)}},formatHours:function(t){var e=this.computedHourCycle;return t=0===(t=this.is12Hour&&t>12?t-12:t)&&"h12"===e?12:0===t&&"h24"===e?24:12===t&&"h11"===e?0:t,this.numberFormatter(t)},formatMinutes:function(t){return this.numberFormatter(t)},formatSeconds:function(t){return this.numberFormatter(t)},formatAmpm:function(t){return 0===t?this.labelAm:1===t?this.labelPm:""},setHours:function(t){this.modelHours=t},setMinutes:function(t){this.modelMinutes=t},setSeconds:function(t){this.modelSeconds=t},setAmpm:function(t){this.modelAmpm=t},onSpinLeftRight:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.type,n=t.keyCode;if(!this.disabled&&"keydown"===e&&(n===Zn||n===Jn)){Ze(t);var i=this.$refs.spinners||[],r=i.map((function(t){return!!t.hasFocus})).indexOf(!0);r=(r+=n===Zn?-1:1)>=i.length?0:r<0?i.length-1:r,Be(i[r])}},setLive:function(t){var e=this;t?this.$nextTick((function(){ue((function(){e.isLive=!0}))})):this.isLive=!1}},render:function(t){var e=this;if(this.hidden)return t();var n=this.valueId,i=this.computedAriaLabelledby,r=[],o=function(i,o,a){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=e.safeId("_spinbutton_".concat(o,"_"))||null;return r.push(l),t(Sh,{class:a,props:ip({id:l,placeholder:"--",vertical:!0,required:!0,disabled:e.disabled,readonly:e.readonly,locale:e.computedLocale,labelIncrement:e.labelIncrement,labelDecrement:e.labelDecrement,wrap:!0,ariaControls:n,min:0},s),scopedSlots:e.spinScopedSlots,on:{change:i},key:o,ref:"spinners",refInFor:!0})},a=function(){return t("div",{staticClass:"d-flex flex-column",class:{"text-muted":e.disabled||e.readonly},attrs:{"aria-hidden":"true"}},[t(Fn.zvQ,{props:{shiftV:4,scale:.5}}),t(Fn.zvQ,{props:{shiftV:-4,scale:.5}})])},s=[];s.push(o(this.setHours,"hours","b-time-hours",{value:this.modelHours,max:23,step:1,formatterFn:this.formatHours,ariaLabel:this.labelHours})),s.push(a()),s.push(o(this.setMinutes,"minutes","b-time-minutes",{value:this.modelMinutes,max:59,step:this.minutesStep||1,formatterFn:this.formatMinutes,ariaLabel:this.labelMinutes})),this.showSeconds&&(s.push(a()),s.push(o(this.setSeconds,"seconds","b-time-seconds",{value:this.modelSeconds,max:59,step:this.secondsStep||1,formatterFn:this.formatSeconds,ariaLabel:this.labelSeconds}))),this.is12Hour&&s.push(o(this.setAmpm,"ampm","b-time-ampm",{value:this.modelAmpm,max:1,formatterFn:this.formatAmpm,ariaLabel:this.labelAmpm,required:!1})),s=t("div",{staticClass:"d-flex align-items-center justify-content-center mx-auto",attrs:{role:"group",tabindex:this.disabled||this.readonly?null:"-1","aria-labelledby":i},on:{keydown:this.onSpinLeftRight,click:function(t){t.target===t.currentTarget&&e.focus()}}},s);var l=t("output",{staticClass:"form-control form-control-sm text-center",class:{disabled:this.disabled||this.readonly},attrs:{id:n,role:"status",for:r.filter(v.D).join(" ")||null,tabindex:this.disabled?null:"-1","aria-live":this.isLive?"polite":"off","aria-atomic":"true"},on:{click:this.focus,focus:this.focus}},[t("bdi",this.formattedTimeString),this.computedHMS?t("span",{staticClass:"sr-only"}," (".concat(this.labelSelected,") ")):""]),c=t("header",{staticClass:"b-time-header",class:{"sr-only":this.hideHeader}},[l]),u=this.normalizeSlot();return u=u?t("footer",{staticClass:"b-time-footer"},u):t(),t("div",{staticClass:"b-time d-inline-flex flex-column text-center",attrs:{role:"group",lang:this.computedLang||null,"aria-labelledby":i||null,"aria-disabled":this.disabled?"true":null,"aria-readonly":this.readonly&&!this.disabled?"true":null}},[c,s,u])}});function bp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function yp(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bp(Object(n),!0).forEach((function(e){_p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bp(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var wp=He("value",{type:kt.vq,defaultValue:""}),xp=wp.mixin,Cp=wp.props,Sp=wp.prop,Ep=wp.event,Tp=(0,_.cJ)(vp,["hidden","id","value"]),Op=(0,_.cJ)(du,["formattedValue","id","lang","rtl","value"]),kp=(0,Ue.sC)((0,_.di)(yp(yp(yp(yp(yp({},Qr),Cp),Tp),Op),{},{closeButtonVariant:(0,Ue.Yg)(kt.vq,"outline-secondary"),labelCloseButton:(0,Ue.Yg)(kt.vq,"Close"),labelNowButton:(0,Ue.Yg)(kt.vq,"Select now"),labelResetButton:(0,Ue.Yg)(kt.vq,"Reset"),noCloseButton:(0,Ue.Yg)(kt.Ye,!1),nowButton:(0,Ue.Yg)(kt.Ye,!1),nowButtonVariant:(0,Ue.Yg)(kt.vq,"outline-primary"),resetButton:(0,Ue.Yg)(kt.Ye,!1),resetButtonVariant:(0,Ue.Yg)(kt.vq,"outline-danger"),resetValue:(0,Ue.Yg)(kt.O9)})),H.lu),Ap=i.default.extend({name:H.lu,mixins:[to,xp],props:kp,data:function(){return{localHMS:this[Sp]||"",localLocale:null,isRTL:!1,formattedValue:"",isVisible:!1}},computed:{computedLang:function(){return(this.localLocale||"").replace(/-u-.*$/i,"")||null}},watch:(sp={},_p(sp,Sp,(function(t){this.localHMS=t||""})),_p(sp,"localHMS",(function(t){this.isVisible&&this.$emit(Ep,t||"")})),sp),methods:{focus:function(){this.disabled||Be(this.$refs.control)},blur:function(){this.disabled||$e(this.$refs.control)},setAndClose:function(t){var e=this;this.localHMS=t,this.$nextTick((function(){e.$refs.control.hide(!0)}))},onInput:function(t){this.localHMS!==t&&(this.localHMS=t)},onContext:function(t){var e=t.isRTL,n=t.locale,i=t.value,r=t.formatted;this.isRTL=e,this.localLocale=n,this.formattedValue=r,this.localHMS=i||"",this.$emit(W,t)},onNowButton:function(){var t=new Date,e=[t.getHours(),t.getMinutes(),this.showSeconds?t.getSeconds():0].map((function(t){return"00".concat(t||"").slice(-2)})).join(":");this.setAndClose(e)},onResetButton:function(){this.setAndClose(this.resetValue)},onCloseButton:function(){this.$refs.control.hide(!0)},onShow:function(){this.isVisible=!0},onShown:function(){var t=this;this.$nextTick((function(){Be(t.$refs.time),t.$emit(yt)}))},onHidden:function(){this.isVisible=!1,this.$emit(ot)},defaultButtonFn:function(t){var e=t.isHovered,n=t.hasFocus;return this.$createElement(e||n?Fn.Nxd:Fn.g6V,{attrs:{"aria-hidden":"true"}})}},render:function(t){var e=this.localHMS,n=this.disabled,i=this.readonly,r=this.$props,o=(0,g.z)(this.placeholder)?this.labelNoTimeSelected:this.placeholder,a=[];if(this.nowButton){var s=this.labelNowButton;a.push(t(Di,{props:{size:"sm",disabled:n||i,variant:this.nowButtonVariant},attrs:{"aria-label":s||null},on:{click:this.onNowButton},key:"now-btn"},s))}if(this.resetButton){a.length>0&&a.push(t("span"," "));var l=this.labelResetButton;a.push(t(Di,{props:{size:"sm",disabled:n||i,variant:this.resetButtonVariant},attrs:{"aria-label":l||null},on:{click:this.onResetButton},key:"reset-btn"},l))}if(!this.noCloseButton){a.length>0&&a.push(t("span"," "));var c=this.labelCloseButton;a.push(t(Di,{props:{size:"sm",disabled:n,variant:this.closeButtonVariant},attrs:{"aria-label":c||null},on:{click:this.onCloseButton},key:"close-btn"},c))}a.length>0&&(a=[t("div",{staticClass:"b-form-date-controls d-flex flex-wrap",class:{"justify-content-between":a.length>1,"justify-content-end":a.length<2}},a)]);var u=t(gp,{staticClass:"b-form-time-control",props:yp(yp({},(0,Ue.YL)(Tp,r)),{},{value:e,hidden:!this.isVisible}),on:{input:this.onInput,context:this.onContext},ref:"time"},a);return t(hu,{staticClass:"b-form-timepicker",props:yp(yp({},(0,Ue.YL)(Op,r)),{},{id:this.safeId(),value:e,formattedValue:e?this.formattedValue:"",placeholder:o,rtl:this.isRTL,lang:this.computedLang}),on:{show:this.onShow,shown:this.onShown,hidden:this.onHidden},scopedSlots:_p({},Lt,this.$scopedSlots[Lt]||this.defaultButtonFn),ref:"control"},[u])}}),Pp=I({components:{BFormTimepicker:Ap,BTimepicker:Ap}}),Mp=I({components:{BImg:jo,BImgLazy:la}}),Lp=(0,Ue.sC)({tag:(0,Ue.Yg)(kt.vq,"div")},H.z9),Dp=i.default.extend({name:H.z9,functional:!0,props:Lp,render:function(t,e){var n=e.props,i=e.data,r=e.children;return t(n.tag,(0,$.L)(i,{staticClass:"input-group-text"}),r)}}),Rp=(0,Ue.sC)({append:(0,Ue.Yg)(kt.Ye,!1),id:(0,Ue.Yg)(kt.vq),isText:(0,Ue.Yg)(kt.Ye,!1),tag:(0,Ue.Yg)(kt.vq,"div")},H.am),Ip=i.default.extend({name:H.am,functional:!0,props:Rp,render:function(t,e){var n=e.props,i=e.data,r=e.children,o=n.append;return t(n.tag,(0,$.L)(i,{class:{"input-group-append":o,"input-group-prepend":!o},attrs:{id:n.id}}),n.isText?[t(Dp,r)]:r)}});function jp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Np(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?jp(Object(n),!0).forEach((function(e){Fp(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jp(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Fp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var zp=(0,Ue.sC)((0,_.cJ)(Rp,["append"]),H.OX),Bp=i.default.extend({name:H.OX,functional:!0,props:zp,render:function(t,e){var n=e.props,i=e.data,r=e.children;return t(Ip,(0,$.L)(i,{props:Np(Np({},n),{},{append:!0})}),r)}});function $p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Up(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$p(Object(n),!0).forEach((function(e){Hp(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Hp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Vp=(0,Ue.sC)((0,_.cJ)(Rp,["append"]),H.md),Yp=i.default.extend({name:H.md,functional:!0,props:Vp,render:function(t,e){var n=e.props,i=e.data,r=e.children;return t(Ip,(0,$.L)(i,{props:Up(Up({},n),{},{append:!1})}),r)}});var qp=(0,Ue.sC)({append:(0,Ue.Yg)(kt.vq),appendHtml:(0,Ue.Yg)(kt.vq),id:(0,Ue.Yg)(kt.vq),prepend:(0,Ue.Yg)(kt.vq),prependHtml:(0,Ue.Yg)(kt.vq),size:(0,Ue.Yg)(kt.vq),tag:(0,Ue.Yg)(kt.vq,"div")},H.nR),Wp=i.default.extend({name:H.nR,functional:!0,props:qp,render:function(t,e){var n=e.props,i=e.data,r=e.slots,o=e.scopedSlots,a=n.prepend,s=n.prependHtml,l=n.append,c=n.appendHtml,u=n.size,d=o||{},h=r(),p={},f=t(),m=Ve(Yt,d,h);(m||a||s)&&(f=t(Yp,[m?Ye(Yt,p,d,h):t(Dp,{domProps:er(s,a)})]));var v,g,b,y=t(),_=Ve(At,d,h);return(_||l||c)&&(y=t(Bp,[_?Ye(At,p,d,h):t(Dp,{domProps:er(c,l)})])),t(n.tag,(0,$.L)(i,{staticClass:"input-group",class:(v={},g="input-group-".concat(u),b=u,g in v?Object.defineProperty(v,g,{value:b,enumerable:!0,configurable:!0,writable:!0}):v[g]=b,v),attrs:{id:n.id||null,role:"group"}}),[f,Ye(Rt,p,d,h),y])}}),Gp=I({components:{BInputGroup:Wp,BInputGroupAddon:Ip,BInputGroupPrepend:Yp,BInputGroupAppend:Bp,BInputGroupText:Dp}});var Xp=(0,Ue.sC)({fluid:(0,Ue.Yg)(kt.iF,!1),tag:(0,Ue.Yg)(kt.vq,"div")},H.gc),Kp=i.default.extend({name:H.gc,functional:!0,props:Xp,render:function(t,e){var n,i,r,o=e.props,a=e.data,s=e.children,l=o.fluid;return t(o.tag,(0,$.L)(a,{class:(n={container:!(l||""===l),"container-fluid":!0===l||""===l},i="container-".concat(l),r=l&&!0!==l,i in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,n)}),s)}});function Zp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Jp=(0,Ue.sC)({bgVariant:(0,Ue.Yg)(kt.vq),borderVariant:(0,Ue.Yg)(kt.vq),containerFluid:(0,Ue.Yg)(kt.iF,!1),fluid:(0,Ue.Yg)(kt.Ye,!1),header:(0,Ue.Yg)(kt.vq),headerHtml:(0,Ue.Yg)(kt.vq),headerLevel:(0,Ue.Yg)(kt.$$,3),headerTag:(0,Ue.Yg)(kt.vq,"h1"),lead:(0,Ue.Yg)(kt.vq),leadHtml:(0,Ue.Yg)(kt.vq),leadTag:(0,Ue.Yg)(kt.vq,"p"),tag:(0,Ue.Yg)(kt.vq,"div"),textVariant:(0,Ue.Yg)(kt.vq)},H.py),Qp=i.default.extend({name:H.py,functional:!0,props:Jp,render:function(t,e){var n,i=e.props,r=e.data,o=e.slots,a=e.scopedSlots,s=i.header,l=i.headerHtml,c=i.lead,u=i.leadHtml,d=i.textVariant,h=i.bgVariant,p=i.borderVariant,f=a||{},m=o(),v={},g=t(),b=Ve(zt,f,m);if(b||s||l){var y=i.headerLevel;g=t(i.headerTag,{class:Zp({},"display-".concat(y),y),domProps:b?{}:er(l,s)},Ye(zt,v,f,m))}var _=t(),w=Ve($t,f,m);(w||c||u)&&(_=t(i.leadTag,{staticClass:"lead",domProps:w?{}:er(u,c)},Ye($t,v,f,m)));var x=[g,_,Ye(Rt,v,f,m)];return i.fluid&&(x=[t(Kp,{props:{fluid:i.containerFluid}},x)]),t(i.tag,(0,$.L)(r,{staticClass:"jumbotron",class:(n={"jumbotron-fluid":i.fluid},Zp(n,"text-".concat(d),d),Zp(n,"bg-".concat(h),h),Zp(n,"border-".concat(p),p),Zp(n,"border",p),n)}),x)}}),tf=I({components:{BJumbotron:Qp}});function ef(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function nf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ef(Object(n),!0).forEach((function(e){rf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ef(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function rf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var of=["start","end","center"],af=(0,Yu.B)((function(t,e){return(e=(0,oe.Bq)((0,oe.dI)(e)))?(0,oe.gQ)(["row-cols",t,e].filter(v.D).join("-")):null})),sf=(0,Yu.B)((function(t){return(0,oe.gQ)(t.replace("cols",""))})),lf=[],cf={name:H.XB,functional:!0,get props(){var t;return delete this.props,this.props=(t=(0,Uu.Ak)().reduce((function(t,e){return t[(0,Ue.CH)(e,"cols")]=(0,Ue.Yg)(kt.$$),t}),(0,_.vt)(null)),lf=(0,_.HP)(t),(0,Ue.sC)((0,_.di)(nf(nf({},t),{},{alignContent:(0,Ue.Yg)(kt.vq,null,(function(t){return te(ee(of,"between","around","stretch"),t)})),alignH:(0,Ue.Yg)(kt.vq,null,(function(t){return te(ee(of,"between","around"),t)})),alignV:(0,Ue.Yg)(kt.vq,null,(function(t){return te(ee(of,"baseline","stretch"),t)})),noGutters:(0,Ue.Yg)(kt.Ye,!1),tag:(0,Ue.Yg)(kt.vq,"div")})),H.XB)),this.props},render:function(t,e){var n,i=e.props,r=e.data,o=e.children,a=i.alignV,s=i.alignH,l=i.alignContent,c=[];return lf.forEach((function(t){var e=af(sf(t),i[t]);e&&c.push(e)})),c.push((rf(n={"no-gutters":i.noGutters},"align-items-".concat(a),a),rf(n,"justify-content-".concat(s),s),rf(n,"align-content-".concat(l),l),n)),t(i.tag,(0,$.L)(r,{staticClass:"row",class:c}),o)}},uf=I({components:{BContainer:Kp,BRow:cf,BCol:Ju,BFormRow:nc}}),df=I({components:{BLink:yi}});var hf=(0,Ue.sC)({flush:(0,Ue.Yg)(kt.Ye,!1),horizontal:(0,Ue.Yg)(kt.iF,!1),tag:(0,Ue.Yg)(kt.vq,"div")},H.l$),pf=i.default.extend({name:H.l$,functional:!0,props:hf,render:function(t,e){var n=e.props,i=e.data,r=e.children,o=""===n.horizontal||n.horizontal;o=!n.flush&&o;var a,s,l,c={staticClass:"list-group",class:(a={"list-group-flush":n.flush,"list-group-horizontal":!0===o},s="list-group-horizontal-".concat(o),l=(0,g.Kg)(o),s in a?Object.defineProperty(a,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[s]=l,a)};return t(n.tag,(0,$.L)(i,c),r)}});function ff(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function mf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ff(Object(n),!0).forEach((function(e){vf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ff(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function vf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var gf=["a","router-link","button","b-link"],bf=(0,_.cJ)(bi,["event","routerTag"]);delete bf.href.default,delete bf.to.default;var yf=(0,Ue.sC)((0,_.di)(mf(mf({},bf),{},{action:(0,Ue.Yg)(kt.Ye,!1),button:(0,Ue.Yg)(kt.Ye,!1),tag:(0,Ue.Yg)(kt.vq,"div"),variant:(0,Ue.Yg)(kt.vq)})),H.jA),_f=i.default.extend({name:H.jA,functional:!0,props:yf,render:function(t,e){var n,i=e.props,r=e.data,o=e.children,a=i.button,s=i.variant,l=i.active,c=i.disabled,u=In(i),d=a?"button":u?yi:i.tag,h=!!(i.action||u||a||te(gf,i.tag)),p={},f={};return fe(d,"button")?(r.attrs&&r.attrs.type||(p.type="button"),i.disabled&&(p.disabled=!0)):f=(0,Ue.YL)(bf,i),t(d,(0,$.L)(r,{attrs:p,props:f,staticClass:"list-group-item",class:(n={},vf(n,"list-group-item-".concat(s),s),vf(n,"list-group-item-action",h),vf(n,"active",l),vf(n,"disabled",c),n)}),o)}}),wf=I({components:{BListGroup:pf,BListGroupItem:_f}});var xf=(0,Ue.sC)({right:(0,Ue.Yg)(kt.Ye,!1),tag:(0,Ue.Yg)(kt.vq,"div"),verticalAlign:(0,Ue.Yg)(kt.vq,"top")},H.Y0),Cf=i.default.extend({name:H.Y0,functional:!0,props:xf,render:function(t,e){var n,i,r,o=e.props,a=e.data,s=e.children,l=o.verticalAlign,c="top"===l?"start":"bottom"===l?"end":l;return t(o.tag,(0,$.L)(a,{staticClass:"media-aside",class:(n={"media-aside-right":o.right},i="align-self-".concat(c),r=c,i in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,n)}),s)}}),Sf=(0,Ue.sC)({tag:(0,Ue.Yg)(kt.vq,"div")},H.EW),Ef=i.default.extend({name:H.EW,functional:!0,props:Sf,render:function(t,e){var n=e.props,i=e.data,r=e.children;return t(n.tag,(0,$.L)(i,{staticClass:"media-body"}),r)}}),Tf=(0,Ue.sC)({noBody:(0,Ue.Yg)(kt.Ye,!1),rightAlign:(0,Ue.Yg)(kt.Ye,!1),tag:(0,Ue.Yg)(kt.vq,"div"),verticalAlign:(0,Ue.Yg)(kt.vq,"top")},H.Ll),Of=i.default.extend({name:H.Ll,functional:!0,props:Tf,render:function(t,e){var n=e.props,i=e.data,r=e.slots,o=e.scopedSlots,a=e.children,s=n.noBody,l=n.rightAlign,c=n.verticalAlign,u=s?a:[];if(!s){var d={},h=r(),p=o||{};u.push(t(Ef,Ye(Rt,d,p,h)));var f=Ye("aside",d,p,h);f&&u[l?"push":"unshift"](t(Cf,{props:{right:l,verticalAlign:c}},f))}return t(n.tag,(0,$.L)(i,{staticClass:"media"}),u)}}),kf=I({components:{BMedia:Of,BMediaAside:Cf,BMediaBody:Ef}}),Af="$_bv_documentHandlers_",Pf=i.default.extend({created:function(){var t=this;h.KJ&&(this[Af]={},this.$once(xt,(function(){var e=t[Af]||{};delete t[Af],(0,_.HP)(e).forEach((function(t){(e[t]||[]).forEach((function(e){return Xe(document,t,e,Ot)}))}))})))},methods:{listenDocument:function(t,e,n){t?this.listenOnDocument(e,n):this.listenOffDocument(e,n)},listenOnDocument:function(t,e){this[Af]&&(0,g.Kg)(t)&&(0,g.Tn)(e)&&(this[Af][t]=this[Af][t]||[],te(this[Af][t],e)||(this[Af][t].push(e),Ge(document,t,e,Ot)))},listenOffDocument:function(t,e){this[Af]&&(0,g.Kg)(t)&&(0,g.Tn)(e)&&(Xe(document,t,e,Ot),this[Af][t]=(this[Af][t]||[]).filter((function(t){return t!==e})))}}}),Mf="$_bv_windowHandlers_",Lf=i.default.extend({beforeCreate:function(){this[Mf]={}},beforeDestroy:function(){if(h.KJ){var t=this[Mf];delete this[Mf],(0,_.HP)(t).forEach((function(e){(t[e]||[]).forEach((function(t){return Xe(window,e,t,Ot)}))}))}},methods:{listenWindow:function(t,e,n){t?this.listenOnWindow(e,n):this.listenOffWindow(e,n)},listenOnWindow:function(t,e){h.KJ&&this[Mf]&&(0,g.Kg)(t)&&(0,g.Tn)(e)&&(this[Mf][t]=this[Mf][t]||[],te(this[Mf][t],e)||(this[Mf][t].push(e),Ge(window,t,e,Ot)))},listenOffWindow:function(t,e){h.KJ&&this[Mf]&&(0,g.Kg)(t)&&(0,g.Tn)(e)&&(Xe(window,t,e,Ot),this[Mf][t]=(this[Mf][t]||[]).filter((function(t){return t!==e})))}}}),Df=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t&&t.$options._scopeId||e};var Rf=i.default.extend({computed:{scopedStyleAttrs:function(){var t,e,n,i=Df(this.$parent);return i?(n="",(e=i)in(t={})?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t):{}}}}),If=i.default.extend({abstract:!0,name:H.Px,props:{nodes:(0,Ue.Yg)(kt.y4)},data:function(t){return{updatedNodes:t.nodes}},destroyed:function(){var t;(t=this.$el)&&t.parentNode&&t.parentNode.removeChild(t)},render:function(t){var e=this.updatedNodes,n=(0,g.Tn)(e)?e({}):e;return(n=ee(n).filter(v.D))&&n.length>0&&!n[0].text?n[0]:t()}}),jf={container:(0,Ue.Yg)([Jt.wt,kt.vq],"body"),disabled:(0,Ue.Yg)(kt.Ye,!1),tag:(0,Ue.Yg)(kt.vq,"div")},Nf=i.default.extend({name:H.ne,mixins:[qe],props:jf,watch:{disabled:{immediate:!0,handler:function(t){t?this.unmountTarget():this.$nextTick(this.mountTarget)}}},created:function(){this.$_defaultFn=null,this.$_target=null},beforeMount:function(){this.mountTarget()},updated:function(){this.updateTarget()},beforeDestroy:function(){this.unmountTarget(),this.$_defaultFn=null},methods:{getContainer:function(){if(h.KJ){var t=this.container;return(0,g.Kg)(t)?_e(t):t}return null},mountTarget:function(){if(!this.$_target){var t=this.getContainer();if(t){var e=document.createElement("div");t.appendChild(e),this.$_target=new If({el:e,parent:this,propsData:{nodes:ee(this.normalizeSlot())}})}}},updateTarget:function(){if(h.KJ&&this.$_target){var t=this.$scopedSlots.default;this.disabled||(t&&this.$_defaultFn!==t?this.$_target.updatedNodes=t:t||(this.$_target.updatedNodes=this.$slots.default)),this.$_defaultFn=t}},unmountTarget:function(){this.$_target&&this.$_target.$destroy(),this.$_target=null}},render:function(t){if(this.disabled){var e=ee(this.normalizeSlot()).filter(v.D);if(e.length>0&&!e[0].text)return e[0]}return t()}});function Ff(t){return Ff="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},Ff(t)}function zf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Bf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zf(Object(n),!0).forEach((function(e){$f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zf(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function $f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Uf(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Hf(t,e,n){return Hf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Wf(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}},Hf(t,e,n||t)}function Vf(t,e){return Vf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Vf(t,e)}function Yf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Wf(t);if(e){var r=Wf(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===Ff(e)||"function"==typeof e))return e;return qf(t)}(this,n)}}function qf(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Wf(t){return Wf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Wf(t)}var Gf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Vf(t,e)}(o,t);var e,n,i,r=Yf(o);function o(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),e=r.call(this,t,n),(0,_.ny)(qf(e),{trigger:(0,_.Am)()}),e}return e=o,i=[{key:"Defaults",get:function(){return Bf(Bf({},Hf(Wf(o),"Defaults",this)),{},{trigger:null})}}],(n=null)&&Uf(e.prototype,n),i&&Uf(e,i),o}(Fs),Xf=new(i.default.extend({data:function(){return{modals:[],baseZIndex:null,scrollbarWidth:null,isBodyOverflowing:!1}},computed:{modalCount:function(){return this.modals.length},modalsAreOpen:function(){return this.modalCount>0}},watch:{modalCount:function(t,e){h.KJ&&(this.getScrollbarWidth(),t>0&&0===e?(this.checkScrollbar(),this.setScrollbar(),Ee(document.body,"modal-open")):0===t&&e>0&&(this.resetScrollbar(),Te(document.body,"modal-open")),ke(document.body,"data-modal-open-count",String(t)))},modals:function(t){var e=this;this.checkScrollbar(),ue((function(){e.updateModals(t||[])}))}},methods:{registerModal:function(t){var e=this;t&&-1===this.modals.indexOf(t)&&(this.modals.push(t),t.$once(xt,(function(){e.unregisterModal(t)})))},unregisterModal:function(t){var e=this.modals.indexOf(t);e>-1&&(this.modals.splice(e,1),t._isBeingDestroyed||t._isDestroyed||this.resetModal(t))},getBaseZIndex:function(){if((0,g.kZ)(this.baseZIndex)&&h.KJ){var t=document.createElement("div");Ee(t,"modal-backdrop"),Ee(t,"d-none"),Le(t,"display","none"),document.body.appendChild(t),this.baseZIndex=(0,re.yJ)(je(t).zIndex,1040),document.body.removeChild(t)}return this.baseZIndex||1040},getScrollbarWidth:function(){if((0,g.kZ)(this.scrollbarWidth)&&h.KJ){var t=document.createElement("div");Ee(t,"modal-scrollbar-measure"),document.body.appendChild(t),this.scrollbarWidth=Ie(t).width-t.clientWidth,document.body.removeChild(t)}return this.scrollbarWidth||0},updateModals:function(t){var e=this,n=this.getBaseZIndex(),i=this.getScrollbarWidth();t.forEach((function(t,r){t.zIndex=n+r,t.scrollbarWidth=i,t.isTop=r===e.modals.length-1,t.isBodyOverflowing=e.isBodyOverflowing}))},resetModal:function(t){t&&(t.zIndex=this.getBaseZIndex(),t.isTop=!0,t.isBodyOverflowing=!1)},checkScrollbar:function(){var t=Ie(document.body),e=t.left,n=t.right;this.isBodyOverflowing=e+n<window.innerWidth},setScrollbar:function(){var t=document.body;if(t._paddingChangedForModal=t._paddingChangedForModal||[],t._marginChangedForModal=t._marginChangedForModal||[],this.isBodyOverflowing){var e=this.scrollbarWidth;ye(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top").forEach((function(n){var i=Re(n,"paddingRight")||"";ke(n,"data-padding-right",i),Le(n,"paddingRight","".concat((0,re.SP)(je(n).paddingRight,0)+e,"px")),t._paddingChangedForModal.push(n)})),ye(".sticky-top").forEach((function(n){var i=Re(n,"marginRight")||"";ke(n,"data-margin-right",i),Le(n,"marginRight","".concat((0,re.SP)(je(n).marginRight,0)-e,"px")),t._marginChangedForModal.push(n)})),ye(".navbar-toggler").forEach((function(n){var i=Re(n,"marginRight")||"";ke(n,"data-margin-right",i),Le(n,"marginRight","".concat((0,re.SP)(je(n).marginRight,0)+e,"px")),t._marginChangedForModal.push(n)}));var n=Re(t,"paddingRight")||"";ke(t,"data-padding-right",n),Le(t,"paddingRight","".concat((0,re.SP)(je(t).paddingRight,0)+e,"px"))}},resetScrollbar:function(){var t=document.body;t._paddingChangedForModal&&t._paddingChangedForModal.forEach((function(t){Me(t,"data-padding-right")&&(Le(t,"paddingRight",Pe(t,"data-padding-right")||""),Ae(t,"data-padding-right"))})),t._marginChangedForModal&&t._marginChangedForModal.forEach((function(t){Me(t,"data-margin-right")&&(Le(t,"marginRight",Pe(t,"data-margin-right")||""),Ae(t,"data-margin-right"))})),t._paddingChangedForModal=null,t._marginChangedForModal=null,Me(t,"data-padding-right")&&(Le(t,"paddingRight",Pe(t,"data-padding-right")||""),Ae(t,"data-padding-right"))}}}));function Kf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Zf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Kf(Object(n),!0).forEach((function(e){Jf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kf(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Jf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qf=He("visible",{type:kt.Ye,defaultValue:!1,event:V}),tm=Qf.mixin,em=Qf.props,nm=Qf.prop,im=Qf.event,rm="cancel",om="headerclose",am="ok",sm=[rm,om,am],lm={subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:["style","class"]},cm=(0,Ue.sC)((0,_.di)(Zf(Zf(Zf({},Qr),em),{},{ariaLabel:(0,Ue.Yg)(kt.vq),autoFocusButton:(0,Ue.Yg)(kt.vq,null,(function(t){return(0,g.z)(t)||te(sm,t)})),bodyBgVariant:(0,Ue.Yg)(kt.vq),bodyClass:(0,Ue.Yg)(kt.VE),bodyTextVariant:(0,Ue.Yg)(kt.vq),busy:(0,Ue.Yg)(kt.Ye,!1),buttonSize:(0,Ue.Yg)(kt.vq),cancelDisabled:(0,Ue.Yg)(kt.Ye,!1),cancelTitle:(0,Ue.Yg)(kt.vq,"Cancel"),cancelTitleHtml:(0,Ue.Yg)(kt.vq),cancelVariant:(0,Ue.Yg)(kt.vq,"secondary"),centered:(0,Ue.Yg)(kt.Ye,!1),contentClass:(0,Ue.Yg)(kt.VE),dialogClass:(0,Ue.Yg)(kt.VE),footerBgVariant:(0,Ue.Yg)(kt.vq),footerBorderVariant:(0,Ue.Yg)(kt.vq),footerClass:(0,Ue.Yg)(kt.VE),footerTextVariant:(0,Ue.Yg)(kt.vq),headerBgVariant:(0,Ue.Yg)(kt.vq),headerBorderVariant:(0,Ue.Yg)(kt.vq),headerClass:(0,Ue.Yg)(kt.VE),headerCloseContent:(0,Ue.Yg)(kt.vq,"&times;"),headerCloseLabel:(0,Ue.Yg)(kt.vq,"Close"),headerCloseVariant:(0,Ue.Yg)(kt.vq),headerTextVariant:(0,Ue.Yg)(kt.vq),hideBackdrop:(0,Ue.Yg)(kt.Ye,!1),hideFooter:(0,Ue.Yg)(kt.Ye,!1),hideHeader:(0,Ue.Yg)(kt.Ye,!1),hideHeaderClose:(0,Ue.Yg)(kt.Ye,!1),ignoreEnforceFocusSelector:(0,Ue.Yg)(kt.vj),lazy:(0,Ue.Yg)(kt.Ye,!1),modalClass:(0,Ue.Yg)(kt.VE),noCloseOnBackdrop:(0,Ue.Yg)(kt.Ye,!1),noCloseOnEsc:(0,Ue.Yg)(kt.Ye,!1),noEnforceFocus:(0,Ue.Yg)(kt.Ye,!1),noFade:(0,Ue.Yg)(kt.Ye,!1),noStacking:(0,Ue.Yg)(kt.Ye,!1),okDisabled:(0,Ue.Yg)(kt.Ye,!1),okOnly:(0,Ue.Yg)(kt.Ye,!1),okTitle:(0,Ue.Yg)(kt.vq,"OK"),okTitleHtml:(0,Ue.Yg)(kt.vq),okVariant:(0,Ue.Yg)(kt.vq,"primary"),returnFocus:(0,Ue.Yg)([Jt.wt,kt.bD,kt.vq]),scrollable:(0,Ue.Yg)(kt.Ye,!1),size:(0,Ue.Yg)(kt.vq,"md"),static:(0,Ue.Yg)(kt.Ye,!1),title:(0,Ue.Yg)(kt.vq),titleClass:(0,Ue.Yg)(kt.VE),titleHtml:(0,Ue.Yg)(kt.vq),titleSrOnly:(0,Ue.Yg)(kt.Ye,!1),titleTag:(0,Ue.Yg)(kt.vq,"h5")})),H.Y7),um=i.default.extend({name:H.Y7,mixins:[si,to,tm,Pf,li,Lf,qe,Rf],inheritAttrs:!1,props:cm,data:function(){return{isHidden:!0,isVisible:!1,isTransitioning:!1,isShow:!1,isBlock:!1,isOpening:!1,isClosing:!1,ignoreBackdropClick:!1,isModalOverflowing:!1,scrollbarWidth:0,zIndex:Xf.getBaseZIndex(),isTop:!0,isBodyOverflowing:!1}},computed:{modalId:function(){return this.safeId()},modalOuterId:function(){return this.safeId("__BV_modal_outer_")},modalHeaderId:function(){return this.safeId("__BV_modal_header_")},modalBodyId:function(){return this.safeId("__BV_modal_body_")},modalTitleId:function(){return this.safeId("__BV_modal_title_")},modalContentId:function(){return this.safeId("__BV_modal_content_")},modalFooterId:function(){return this.safeId("__BV_modal_footer_")},modalBackdropId:function(){return this.safeId("__BV_modal_backdrop_")},modalClasses:function(){return[{fade:!this.noFade,show:this.isShow},this.modalClass]},modalStyles:function(){var t="".concat(this.scrollbarWidth,"px");return{paddingLeft:!this.isBodyOverflowing&&this.isModalOverflowing?t:"",paddingRight:this.isBodyOverflowing&&!this.isModalOverflowing?t:"",display:this.isBlock?"block":"none"}},dialogClasses:function(){var t;return[(t={},Jf(t,"modal-".concat(this.size),this.size),Jf(t,"modal-dialog-centered",this.centered),Jf(t,"modal-dialog-scrollable",this.scrollable),t),this.dialogClass]},headerClasses:function(){var t;return[(t={},Jf(t,"bg-".concat(this.headerBgVariant),this.headerBgVariant),Jf(t,"text-".concat(this.headerTextVariant),this.headerTextVariant),Jf(t,"border-".concat(this.headerBorderVariant),this.headerBorderVariant),t),this.headerClass]},titleClasses:function(){return[{"sr-only":this.titleSrOnly},this.titleClass]},bodyClasses:function(){var t;return[(t={},Jf(t,"bg-".concat(this.bodyBgVariant),this.bodyBgVariant),Jf(t,"text-".concat(this.bodyTextVariant),this.bodyTextVariant),t),this.bodyClass]},footerClasses:function(){var t;return[(t={},Jf(t,"bg-".concat(this.footerBgVariant),this.footerBgVariant),Jf(t,"text-".concat(this.footerTextVariant),this.footerTextVariant),Jf(t,"border-".concat(this.footerBorderVariant),this.footerBorderVariant),t),this.footerClass]},modalOuterStyle:function(){return{position:"absolute",zIndex:this.zIndex}},slotScope:function(){return{cancel:this.onCancel,close:this.onClose,hide:this.hide,ok:this.onOk,visible:this.isVisible}},computeIgnoreEnforceFocusSelector:function(){return ee(this.ignoreEnforceFocusSelector).filter(v.D).join(",").trim()},computedAttrs:function(){return Zf(Zf(Zf({},this.static?{}:this.scopedStyleAttrs),this.bvAttrs),{},{id:this.modalOuterId})},computedModalAttrs:function(){var t=this.isVisible,e=this.ariaLabel;return{id:this.modalId,role:"dialog","aria-hidden":t?null:"true","aria-modal":t?"true":null,"aria-label":e,"aria-labelledby":this.hideHeader||e||!(this.hasNormalizedSlot(Vt)||this.titleHtml||this.title)?null:this.modalTitleId,"aria-describedby":this.modalBodyId}}},watch:Jf({},nm,(function(t,e){t!==e&&this[t?"show":"hide"]()})),created:function(){this.$_observer=null,this.$_returnFocus=this.returnFocus||null},mounted:function(){this.zIndex=Xf.getBaseZIndex(),this.listenOnRoot(tn(H.Y7,bt),this.showHandler),this.listenOnRoot(tn(H.Y7,at),this.hideHandler),this.listenOnRoot(tn(H.Y7,wt),this.toggleHandler),this.listenOnRoot(Qe(H.Y7,bt),this.modalListener),!0===this[nm]&&this.$nextTick(this.show)},beforeDestroy:function(){this.setObserver(!1),this.isVisible&&(this.isVisible=!1,this.isShow=!1,this.isTransitioning=!1)},methods:{setObserver:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$_observer&&this.$_observer.disconnect(),this.$_observer=null,t&&(this.$_observer=Ca(this.$refs.content,this.checkModalOverflow.bind(this),lm))},updateModel:function(t){t!==this[nm]&&this.$emit(im,t)},buildEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Gf(t,Zf(Zf({cancelable:!1,target:this.$refs.modal||this.$el||null,relatedTarget:null,trigger:null},e),{},{vueTarget:this,componentId:this.modalId}))},show:function(){if(!this.isVisible&&!this.isOpening)if(this.isClosing)this.$once(ot,this.show);else{this.isOpening=!0,this.$_returnFocus=this.$_returnFocus||this.getActiveElement();var t=this.buildEvent(bt,{cancelable:!0});if(this.emitEvent(t),t.defaultPrevented||this.isVisible)return this.isOpening=!1,void this.updateModel(!1);this.doShow()}},hide:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(this.isVisible&&!this.isClosing){this.isClosing=!0;var e=this.buildEvent(at,{cancelable:"FORCE"!==t,trigger:t||null});if(t===am?this.$emit("ok",e):t===rm?this.$emit("cancel",e):t===om&&this.$emit(q,e),this.emitEvent(e),e.defaultPrevented||!this.isVisible)return this.isClosing=!1,void this.updateModel(!0);this.setObserver(!1),this.isVisible=!1,this.updateModel(!1)}},toggle:function(t){t&&(this.$_returnFocus=t),this.isVisible?this.hide("toggle"):this.show()},getActiveElement:function(){var t=pe(h.KJ?[document.body]:[]);return t&&t.focus?t:null},doShow:function(){var t=this;Xf.modalsAreOpen&&this.noStacking?this.listenOnRootOnce(Qe(H.Y7,ot),this.doShow):(Xf.registerModal(this),this.isHidden=!1,this.$nextTick((function(){t.isVisible=!0,t.isOpening=!1,t.updateModel(!0),t.$nextTick((function(){t.setObserver(!0)}))})))},onBeforeEnter:function(){this.isTransitioning=!0,this.setResizeEvent(!0)},onEnter:function(){var t=this;this.isBlock=!0,ue((function(){ue((function(){t.isShow=!0}))}))},onAfterEnter:function(){var t=this;this.checkModalOverflow(),this.isTransitioning=!1,ue((function(){t.emitEvent(t.buildEvent(yt)),t.setEnforceFocus(!0),t.$nextTick((function(){t.focusFirst()}))}))},onBeforeLeave:function(){this.isTransitioning=!0,this.setResizeEvent(!1),this.setEnforceFocus(!1)},onLeave:function(){this.isShow=!1},onAfterLeave:function(){var t=this;this.isBlock=!1,this.isTransitioning=!1,this.isModalOverflowing=!1,this.isHidden=!0,this.$nextTick((function(){t.isClosing=!1,Xf.unregisterModal(t),t.returnFocusTo(),t.emitEvent(t.buildEvent(ot))}))},emitEvent:function(t){var e=t.type;this.emitOnRoot(Qe(H.Y7,e),t,t.componentId),this.$emit(e,t)},onDialogMousedown:function(){var t=this,e=this.$refs.modal;Ge(e,"mouseup",(function n(i){Xe(e,"mouseup",n,Ot),i.target===e&&(t.ignoreBackdropClick=!0)}),Ot)},onClickOut:function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:this.isVisible&&!this.noCloseOnBackdrop&&Ce(document.body,t.target)&&(Ce(this.$refs.content,t.target)||this.hide("backdrop"))},onOk:function(){this.hide(am)},onCancel:function(){this.hide(rm)},onClose:function(){this.hide(om)},onEsc:function(t){27===t.keyCode&&this.isVisible&&!this.noCloseOnEsc&&this.hide("esc")},focusHandler:function(t){var e=this.$refs.content,n=t.target;if(!(this.noEnforceFocus||!this.isTop||!this.isVisible||!e||document===n||Ce(e,n)||this.computeIgnoreEnforceFocusSelector&&xe(this.computeIgnoreEnforceFocusSelector,n,!0))){var i=ze(this.$refs.content),r=this.$refs["bottom-trap"],o=this.$refs["top-trap"];if(r&&n===r){if(Be(i[0]))return}else if(o&&n===o&&Be(i[i.length-1]))return;Be(e,{preventScroll:!0})}},setEnforceFocus:function(t){this.listenDocument(t,"focusin",this.focusHandler)},setResizeEvent:function(t){this.listenWindow(t,"resize",this.checkModalOverflow),this.listenWindow(t,"orientationchange",this.checkModalOverflow)},showHandler:function(t,e){t===this.modalId&&(this.$_returnFocus=e||this.getActiveElement(),this.show())},hideHandler:function(t){t===this.modalId&&this.hide("event")},toggleHandler:function(t,e){t===this.modalId&&this.toggle(e)},modalListener:function(t){this.noStacking&&t.vueTarget!==this&&this.hide()},focusFirst:function(){var t=this;h.KJ&&ue((function(){var e=t.$refs.modal,n=t.$refs.content,i=t.getActiveElement();if(e&&n&&(!i||!Ce(n,i))){var r=t.$refs["ok-button"],o=t.$refs["cancel-button"],a=t.$refs["close-button"],s=t.autoFocusButton,l=s===am&&r?r.$el||r:s===rm&&o?o.$el||o:s===om&&a?a.$el||a:n;Be(l),l===n&&t.$nextTick((function(){e.scrollTop=0}))}}))},returnFocusTo:function(){var t=this.returnFocus||this.$_returnFocus||null;this.$_returnFocus=null,this.$nextTick((function(){(t=(0,g.Kg)(t)?_e(t):t)&&(t=t.$el||t,Be(t))}))},checkModalOverflow:function(){if(this.isVisible){var t=this.$refs.modal;this.isModalOverflowing=t.scrollHeight>document.documentElement.clientHeight}},makeModal:function(t){var e=t();if(!this.hideHeader){var n=this.normalizeSlot("modal-header",this.slotScope);if(!n){var i=t();this.hideHeaderClose||(i=t(nn,{props:{content:this.headerCloseContent,disabled:this.isTransitioning,ariaLabel:this.headerCloseLabel,textVariant:this.headerCloseVariant||this.headerTextVariant},on:{click:this.onClose},ref:"close-button"},[this.normalizeSlot("modal-header-close")])),n=[t(this.titleTag,{staticClass:"modal-title",class:this.titleClasses,attrs:{id:this.modalTitleId},domProps:this.hasNormalizedSlot(Vt)?{}:er(this.titleHtml,this.title)},this.normalizeSlot(Vt,this.slotScope)),i]}e=t("header",{staticClass:"modal-header",class:this.headerClasses,attrs:{id:this.modalHeaderId},ref:"header"},[n])}var r=t("div",{staticClass:"modal-body",class:this.bodyClasses,attrs:{id:this.modalBodyId},ref:"body"},this.normalizeSlot(Rt,this.slotScope)),o=t();if(!this.hideFooter){var a=this.normalizeSlot("modal-footer",this.slotScope);if(!a){var s=t();this.okOnly||(s=t(Di,{props:{variant:this.cancelVariant,size:this.buttonSize,disabled:this.cancelDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot(Ut)?{}:er(this.cancelTitleHtml,this.cancelTitle),on:{click:this.onCancel},ref:"cancel-button"},this.normalizeSlot(Ut))),a=[s,t(Di,{props:{variant:this.okVariant,size:this.buttonSize,disabled:this.okDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot(Ht)?{}:er(this.okTitleHtml,this.okTitle),on:{click:this.onOk},ref:"ok-button"},this.normalizeSlot(Ht))]}o=t("footer",{staticClass:"modal-footer",class:this.footerClasses,attrs:{id:this.modalFooterId},ref:"footer"},[a])}var l=t("div",{staticClass:"modal-content",class:this.contentClass,attrs:{id:this.modalContentId,tabindex:"-1"},ref:"content"},[e,r,o]),c=t(),u=t();this.isVisible&&!this.noEnforceFocus&&(c=t("span",{attrs:{tabindex:"0"},ref:"top-trap"}),u=t("span",{attrs:{tabindex:"0"},ref:"bottom-trap"}));var d=t("div",{staticClass:"modal-dialog",class:this.dialogClasses,on:{mousedown:this.onDialogMousedown},ref:"dialog"},[c,l,u]),h=t("div",{staticClass:"modal",class:this.modalClasses,style:this.modalStyles,attrs:this.computedModalAttrs,on:{keydown:this.onEsc,click:this.onClickOut},directives:[{name:"show",value:this.isVisible}],ref:"modal"},[d]);h=t("transition",{props:{enterClass:"",enterToClass:"",enterActiveClass:"",leaveClass:"",leaveActiveClass:"",leaveToClass:""},on:{beforeEnter:this.onBeforeEnter,enter:this.onEnter,afterEnter:this.onAfterEnter,beforeLeave:this.onBeforeLeave,leave:this.onLeave,afterLeave:this.onAfterLeave}},[h]);var p=t();return!this.hideBackdrop&&this.isVisible&&(p=t("div",{staticClass:"modal-backdrop",attrs:{id:this.modalBackdropId}},this.normalizeSlot("modal-backdrop"))),p=t(dn,{props:{noFade:this.noFade}},[p]),t("div",{style:this.modalOuterStyle,attrs:this.computedAttrs,key:"modal-outer-".concat(this[U])},[h,p])}},render:function(t){return this.static?this.lazy&&this.isHidden?t():this.makeModal(t):this.isHidden?t():t(Nf,[this.makeModal(t)])}}),dm=tn(H.Y7,bt),hm="__bv_modal_directive__",pm=function(t){var e=t.modifiers,n=void 0===e?{}:e,i=t.arg,r=t.value;return(0,g.Kg)(r)?r:(0,g.Kg)(i)?i:(0,_.HP)(n).reverse()[0]},fm=function(t){return t&&we(t,".dropdown-menu > li, li.nav-item")&&_e("a, button",t)||t},mm=function(t){t&&"BUTTON"!==t.tagName&&(Me(t,"role")||ke(t,"role","button"),"A"===t.tagName||Me(t,"tabindex")||ke(t,"tabindex","0"))},vm=function(t){var e=t[hm]||{},n=e.trigger,i=e.handler;n&&i&&(Xe(n,"click",i,Tt),Xe(n,"keydown",i,Tt),Xe(t,"click",i,Tt),Xe(t,"keydown",i,Tt)),delete t[hm]},gm=function(t,e,n){var i=t[hm]||{},r=pm(e),o=fm(t);r===i.target&&o===i.trigger||(vm(t),function(t,e,n){var i=pm(e),r=fm(t);if(i&&r){var o=function(t){var e=t.currentTarget;if(!ge(e)){var r=t.type,o=t.keyCode;"click"!==r&&("keydown"!==r||o!==Xn&&o!==Qn)||n.context.$root.$emit(dm,i,e)}};t[hm]={handler:o,target:i,trigger:r},mm(r),Ge(r,"click",o,Tt),"BUTTON"!==r.tagName&&"button"===Pe(r,"role")&&Ge(r,"keydown",o,Tt)}}(t,e,n)),mm(o)},bm={inserted:gm,updated:function(){},componentUpdated:gm,unbind:vm};function ym(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function wm(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_m(Object(n),!0).forEach((function(e){xm(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xm(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Cm(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var Sm,Em="$bvModal",Tm="_bv__modal",Om=["id"].concat(function(t){if(Array.isArray(t))return Cm(t)}(Sm=(0,_.HP)((0,_.cJ)(cm,["busy","lazy","noStacking","static","visible"])))||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(Sm)||function(t,e){if(t){if("string"==typeof t)return Cm(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cm(t,e):void 0}}(Sm)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),km=function(){},Am={msgBoxContent:"default",title:"modal-title",okTitle:"modal-ok",cancelTitle:"modal-cancel"},Pm=function(t){return Om.reduce((function(e,n){return(0,g.b0)(t[n])||(e[n]=t[n]),e}),{})},Mm=I({plugins:{plugin:function(t){var e=t.extend({name:H.y$,extends:um,destroyed:function(){this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},mounted:function(){var t=this,e=function(){t.$nextTick((function(){ue((function(){t.$destroy()}))}))};this.$parent.$once(Ct,e),this.$once(ot,e),this.$router&&this.$route&&this.$once(xt,this.$watch("$router",e)),this.show()}}),n=function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(n&&!E(Em)&&!S(Em)&&(0,g.Tn)(r))return function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:km;if(!S(Em)&&!E(Em)){var r=new e({parent:t,propsData:wm(wm(wm({},Pm((0,Uu.AV)(H.Y7))),{},{hideHeaderClose:!0,hideHeader:!(n.title||n.titleHtml)},(0,_.cJ)(n,(0,_.HP)(Am))),{},{lazy:!1,busy:!1,visible:!1,noStacking:!1,noEnforceFocus:!1})});return(0,_.HP)(Am).forEach((function(t){(0,g.b0)(n[t])||(r.$slots[Am[t]]=ee(n[t]))})),new Promise((function(t,e){var n=!1;r.$once(Ct,(function(){n||e(new Error("BootstrapVue MsgBox destroyed before resolve"))})),r.$on(at,(function(e){if(!e.defaultPrevented){var r=i(e);e.defaultPrevented||(n=!0,t(r))}}));var o=document.createElement("div");document.body.appendChild(o),r.$mount(o)}))}}(t,wm(wm({},Pm(i)),{},{msgBoxContent:n}),r)},i=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(0,_.kp)(this,{_vm:e,_root:e.$root}),(0,_.ny)(this,{_vm:(0,_.Am)(),_root:(0,_.Am)()})}var e,i,r;return e=t,i=[{key:"show",value:function(t){if(t&&this._root){for(var e,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];(e=this._root).$emit.apply(e,[tn(H.Y7,"show"),t].concat(i))}}},{key:"hide",value:function(t){if(t&&this._root){for(var e,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];(e=this._root).$emit.apply(e,[tn(H.Y7,"hide"),t].concat(i))}}},{key:"msgBoxOk",value:function(t){var e=wm(wm({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),{},{okOnly:!0,okDisabled:!1,hideFooter:!1,msgBoxContent:t});return n(this._vm,t,e,(function(){return!0}))}},{key:"msgBoxConfirm",value:function(t){var e=wm(wm({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),{},{okOnly:!1,okDisabled:!1,cancelDisabled:!1,hideFooter:!1});return n(this._vm,t,e,(function(t){var e=t.trigger;return"ok"===e||"cancel"!==e&&null}))}}],i&&ym(e.prototype,i),r&&ym(e,r),t}();t.mixin({beforeCreate:function(){this[Tm]=new i(this)}}),(0,_.mQ)(t.prototype,Em)||(0,_.n8)(t.prototype,Em,{get:function(){return this&&this[Tm]||C('"'.concat(Em,'" must be accessed from a Vue instance "this" context.'),H.Y7),this[Tm]}})}}}),Lm=I({components:{BModal:um},directives:{VBModal:bm},plugins:{BVModalPlugin:Mm}});function Dm(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Rm=(0,Ue.sC)({align:(0,Ue.Yg)(kt.vq),cardHeader:(0,Ue.Yg)(kt.Ye,!1),fill:(0,Ue.Yg)(kt.Ye,!1),justified:(0,Ue.Yg)(kt.Ye,!1),pills:(0,Ue.Yg)(kt.Ye,!1),small:(0,Ue.Yg)(kt.Ye,!1),tabs:(0,Ue.Yg)(kt.Ye,!1),tag:(0,Ue.Yg)(kt.vq,"ul"),vertical:(0,Ue.Yg)(kt.Ye,!1)},H.O2),Im=i.default.extend({name:H.O2,functional:!0,props:Rm,render:function(t,e){var n,i,r=e.props,o=e.data,a=e.children,s=r.tabs,l=r.pills,c=r.vertical,u=r.align,d=r.cardHeader;return t(r.tag,(0,$.L)(o,{staticClass:"nav",class:(n={"nav-tabs":s,"nav-pills":l&&!s,"card-header-tabs":!c&&d&&s,"card-header-pills":!c&&d&&l&&!s,"flex-column":c,"nav-fill":!c&&r.fill,"nav-justified":!c&&r.justified},Dm(n,(i=u,"justify-content-".concat(i="left"===i?"start":"right"===i?"end":i)),!c&&u),Dm(n,"small",r.small),n)}),a)}});function jm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Nm(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?jm(Object(n),!0).forEach((function(e){Fm(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jm(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Fm(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var zm=(0,_.cJ)(bi,["event","routerTag"]),Bm=(0,Ue.sC)((0,_.di)(Nm(Nm({},zm),{},{linkAttrs:(0,Ue.Yg)(kt.bD,{}),linkClasses:(0,Ue.Yg)(kt.VE)})),H.k2),$m=i.default.extend({name:H.k2,functional:!0,props:Bm,render:function(t,e){var n=e.props,i=e.data,r=e.listeners,o=e.children;return t("li",(0,$.L)((0,_.cJ)(i,["on"]),{staticClass:"nav-item"}),[t(yi,{staticClass:"nav-link",class:n.linkClasses,attrs:n.linkAttrs,props:(0,Ue.YL)(zm,n),on:r},o)])}}),Um=i.default.extend({name:H.wq,functional:!0,props:{},render:function(t,e){var n=e.data,i=e.children;return t("li",(0,$.L)(n,{staticClass:"navbar-text"}),i)}});function Hm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Vm(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Hm(Object(n),!0).forEach((function(e){Ym(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hm(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ym(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var qm=(0,_.cJ)(wl,["inline"]),Wm=(0,Ue.sC)((0,_.di)(Vm(Vm({},qm),{},{formClass:(0,Ue.Yg)(kt.VE)})),H.b4),Gm=i.default.extend({name:H.b4,functional:!0,props:Wm,render:function(t,e){var n=e.props,i=e.data,r=e.children,o=e.listeners,a=t(xl,{class:n.formClass,props:Vm(Vm({},(0,Ue.YL)(qm,n)),{},{inline:!0}),attrs:i.attrs,on:o},r);return t("li",(0,$.L)((0,_.cJ)(i,["attrs","on"]),{staticClass:"form-inline"}),[a])}});function Xm(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Km(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Zm(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Km(Object(n),!0).forEach((function(e){Jm(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Km(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Jm(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qm=(0,Ue.sC)((0,_.di)(Zm(Zm({},Qr),(0,_.Up)(Js,[].concat(function(t){return function(t){if(Array.isArray(t))return Xm(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Xm(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xm(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,_.HP)(Ws)),["html","lazy","menuClass","noCaret","role","text","toggleClass"])))),H.SD),tv=i.default.extend({name:H.SD,mixins:[to,Gs,qe],props:Qm,computed:{toggleId:function(){return this.safeId("_BV_toggle_")},dropdownClasses:function(){return[this.directionClass,this.boundaryClass,{show:this.visible}]},menuClasses:function(){return[this.menuClass,{"dropdown-menu-right":this.right,show:this.visible}]},toggleClasses:function(){return[this.toggleClass,{"dropdown-toggle-no-caret":this.noCaret}]}},render:function(t){var e=this.toggleId,n=this.visible,i=this.hide,r=t(yi,{staticClass:"nav-link dropdown-toggle",class:this.toggleClasses,props:{href:"#".concat(this.id||""),disabled:this.disabled},attrs:{id:e,role:"button","aria-haspopup":"true","aria-expanded":n?"true":"false"},on:{mousedown:this.onMousedown,click:this.toggle,keydown:this.toggle},ref:"toggle"},[this.normalizeSlot([Lt,"text"])||t("span",{domProps:er(this.html,this.text)})]),o=t("ul",{staticClass:"dropdown-menu",class:this.menuClasses,attrs:{tabindex:"-1","aria-labelledby":e},on:{keydown:this.onKeydown},ref:"menu"},!this.lazy||n?this.normalizeSlot(Rt,{hide:i}):[t()]);return t("li",{staticClass:"nav-item b-nav-dropdown dropdown",class:this.dropdownClasses,attrs:{id:this.safeId()}},[r,o])}}),ev=I({components:{BNav:Im,BNavItem:$m,BNavText:Um,BNavForm:Gm,BNavItemDropdown:tv,BNavItemDd:tv,BNavDropdown:tv,BNavDd:tv},plugins:{DropdownPlugin:Il}});function nv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var iv=(0,Ue.sC)({fixed:(0,Ue.Yg)(kt.vq),print:(0,Ue.Yg)(kt.Ye,!1),sticky:(0,Ue.Yg)(kt.Ye,!1),tag:(0,Ue.Yg)(kt.vq,"nav"),toggleable:(0,Ue.Yg)(kt.iF,!1),type:(0,Ue.Yg)(kt.vq,"light"),variant:(0,Ue.Yg)(kt.vq)},H.ff),rv=i.default.extend({name:H.ff,mixins:[qe],provide:function(){return{bvNavbar:this}},props:iv,computed:{breakpointClass:function(){var t=this.toggleable,e=(0,Uu.BQ)()[0],n=null;return t&&(0,g.Kg)(t)&&t!==e?n="navbar-expand-".concat(t):!1===t&&(n="navbar-expand"),n}},render:function(t){var e,n=this.tag,i=this.type,r=this.variant,o=this.fixed;return t(n,{staticClass:"navbar",class:[(e={"d-print":this.print,"sticky-top":this.sticky},nv(e,"navbar-".concat(i),i),nv(e,"bg-".concat(r),r),nv(e,"fixed-".concat(o),o),e),this.breakpointClass],attrs:{role:fe(n,"nav")?null:"navigation"}},[this.normalizeSlot()])}});function ov(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var av=(0,Ue.sC)((0,_.Up)(Rm,["tag","fill","justified","align","small"]),H.VV),sv=i.default.extend({name:H.VV,functional:!0,props:av,render:function(t,e){var n,i,r=e.props,o=e.data,a=e.children,s=r.align;return t(r.tag,(0,$.L)(o,{staticClass:"navbar-nav",class:(n={"nav-fill":r.fill,"nav-justified":r.justified},ov(n,(i=s,"justify-content-".concat(i="left"===i?"start":"right"===i?"end":i)),s),ov(n,"small",r.small),n)}),a)}});function lv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function cv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?lv(Object(n),!0).forEach((function(e){uv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lv(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function uv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var dv=(0,_.cJ)(bi,["event","routerTag"]);dv.href.default=void 0,dv.to.default=void 0;var hv=(0,Ue.sC)((0,_.di)(cv(cv({},dv),{},{tag:(0,Ue.Yg)(kt.vq,"div")})),H.z6),pv=i.default.extend({name:H.z6,functional:!0,props:hv,render:function(t,e){var n=e.props,i=e.data,r=e.children,o=n.to||n.href;return t(o?yi:n.tag,(0,$.L)(i,{staticClass:"navbar-brand",props:o?(0,Ue.YL)(dv,n):{}}),r)}}),fv="navbar-toggler",mv=Qe(H.CU,"state"),vv=Qe(H.CU,"sync-state"),gv=(0,Ue.sC)({disabled:(0,Ue.Yg)(kt.Ye,!1),label:(0,Ue.Yg)(kt.vq,"Toggle navigation"),target:(0,Ue.Yg)(kt.vj,void 0,!0)},H.kY),bv=i.default.extend({name:H.kY,directives:{VBToggle:Ds},mixins:[li,qe],props:gv,data:function(){return{toggleState:!1}},created:function(){this.listenOnRoot(mv,this.handleStateEvt),this.listenOnRoot(vv,this.handleStateEvt)},methods:{onClick:function(t){this.disabled||this.$emit(Y,t)},handleStateEvt:function(t,e){t===this.target&&(this.toggleState=e)}},render:function(t){var e=this.disabled;return t("button",{staticClass:fv,class:{disabled:e},directives:[{name:"VBToggle",value:this.target}],attrs:{type:"button",disabled:e,"aria-label":this.label},on:{click:this.onClick}},[this.normalizeSlot(Rt,{expanded:this.toggleState})||t("span",{staticClass:"".concat(fv,"-icon")})])}}),yv=I({components:{BNavbar:rv,BNavbarNav:sv,BNavbarBrand:pv,BNavbarToggle:bv,BNavToggle:bv},plugins:{NavPlugin:ev,CollapsePlugin:Is,DropdownPlugin:Il}});function _v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var wv=(0,Ue.sC)({label:(0,Ue.Yg)(kt.vq),role:(0,Ue.Yg)(kt.vq,"status"),small:(0,Ue.Yg)(kt.Ye,!1),tag:(0,Ue.Yg)(kt.vq,"span"),type:(0,Ue.Yg)(kt.vq,"border"),variant:(0,Ue.Yg)(kt.vq)},H.Oi),xv=i.default.extend({name:H.Oi,functional:!0,props:wv,render:function(t,e){var n,i=e.props,r=e.data,o=e.slots,a=e.scopedSlots,s=o(),l=Ye(Bt,{},a||{},s)||i.label;return l&&(l=t("span",{staticClass:"sr-only"},l)),t(i.tag,(0,$.L)(r,{attrs:{role:l?i.role||"status":null,"aria-hidden":l?null:"true"},class:(n={},_v(n,"spinner-".concat(i.type),i.type),_v(n,"spinner-".concat(i.type,"-sm"),i.small),_v(n,"text-".concat(i.variant),i.variant),n)}),[l||t()])}});function Cv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Sv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Cv(Object(n),!0).forEach((function(e){Ev(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cv(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ev(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Tv,Ov={top:0,left:0,bottom:0,right:0},kv=(0,Ue.sC)({bgColor:(0,Ue.Yg)(kt.vq),blur:(0,Ue.Yg)(kt.vq,"2px"),fixed:(0,Ue.Yg)(kt.Ye,!1),noCenter:(0,Ue.Yg)(kt.Ye,!1),noFade:(0,Ue.Yg)(kt.Ye,!1),noWrap:(0,Ue.Yg)(kt.Ye,!1),opacity:(0,Ue.Yg)(kt.$$,.85,(function(t){var e=(0,re.SP)(t,0);return e>=0&&e<=1})),overlayTag:(0,Ue.Yg)(kt.vq,"div"),rounded:(0,Ue.Yg)(kt.iF,!1),show:(0,Ue.Yg)(kt.Ye,!1),spinnerSmall:(0,Ue.Yg)(kt.Ye,!1),spinnerType:(0,Ue.Yg)(kt.vq,"border"),spinnerVariant:(0,Ue.Yg)(kt.vq),variant:(0,Ue.Yg)(kt.vq,"light"),wrapTag:(0,Ue.Yg)(kt.vq,"div"),zIndex:(0,Ue.Yg)(kt.$$,10)},H.PJ),Av=I({components:{BOverlay:i.default.extend({name:H.PJ,mixins:[qe],props:kv,computed:{computedRounded:function(){var t=this.rounded;return!0===t||""===t?"rounded":t?"rounded-".concat(t):""},computedVariant:function(){var t=this.variant;return t&&!this.bgColor?"bg-".concat(t):""},slotScope:function(){return{spinnerType:this.spinnerType||null,spinnerVariant:this.spinnerVariant||null,spinnerSmall:this.spinnerSmall}}},methods:{defaultOverlayFn:function(t){var e=t.spinnerType,n=t.spinnerVariant,i=t.spinnerSmall;return this.$createElement(xv,{props:{type:e,variant:n,small:i}})}},render:function(t){var e=this,n=this.show,i=this.fixed,r=this.noFade,o=this.noWrap,a=this.slotScope,s=t();if(n){var l=t("div",{staticClass:"position-absolute",class:[this.computedVariant,this.computedRounded],style:Sv(Sv({},Ov),{},{opacity:this.opacity,backgroundColor:this.bgColor||null,backdropFilter:this.blur?"blur(".concat(this.blur,")"):null})}),c=t("div",{staticClass:"position-absolute",style:this.noCenter?Sv({},Ov):{top:"50%",left:"50%",transform:"translateX(-50%) translateY(-50%)"}},[this.normalizeSlot("overlay",a)||this.defaultOverlayFn(a)]);s=t(this.overlayTag,{staticClass:"b-overlay",class:{"position-absolute":!o||o&&!i,"position-fixed":o&&i},style:Sv(Sv({},Ov),{},{zIndex:this.zIndex||10}),on:{click:function(t){return e.$emit(Y,t)}},key:"overlay"},[l,c])}return s=t(dn,{props:{noFade:r,appear:!0},on:{"after-enter":function(){return e.$emit(yt)},"after-leave":function(){return e.$emit(ot)}}},[s]),o?s:t(this.wrapTag,{staticClass:"b-overlay-wrap position-relative",attrs:{"aria-busy":n?"true":null}},o?[s]:[this.normalizeSlot(),s])}})}});function Pv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Mv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pv(Object(n),!0).forEach((function(e){Lv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pv(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Lv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Dv=He("value",{type:kt.gy,defaultValue:null,validator:function(t){return!(!(0,g.kZ)(t)&&(0,re.yJ)(t,0)<1)||(C('"v-model" value must be a number greater than "0"',H.n4),!1)}}),Rv=Dv.mixin,Iv=Dv.props,jv=Dv.prop,Nv=Dv.event,Fv=function(t){var e=(0,re.yJ)(t)||1;return e<1?5:e},zv=function(t,e){var n=(0,re.yJ)(t)||1;return n>e?e:n<1?1:n},Bv=function(t){if(t.keyCode===Qn)return Ze(t,{immediatePropagation:!0}),t.currentTarget.click(),!1},$v=(0,Ue.sC)((0,_.di)(Mv(Mv({},Iv),{},{align:(0,Ue.Yg)(kt.vq,"left"),ariaLabel:(0,Ue.Yg)(kt.vq,"Pagination"),disabled:(0,Ue.Yg)(kt.Ye,!1),ellipsisClass:(0,Ue.Yg)(kt.VE),ellipsisText:(0,Ue.Yg)(kt.vq,"…"),firstClass:(0,Ue.Yg)(kt.VE),firstNumber:(0,Ue.Yg)(kt.Ye,!1),firstText:(0,Ue.Yg)(kt.vq,"«"),hideEllipsis:(0,Ue.Yg)(kt.Ye,!1),hideGotoEndButtons:(0,Ue.Yg)(kt.Ye,!1),labelFirstPage:(0,Ue.Yg)(kt.vq,"Go to first page"),labelLastPage:(0,Ue.Yg)(kt.vq,"Go to last page"),labelNextPage:(0,Ue.Yg)(kt.vq,"Go to next page"),labelPage:(0,Ue.Yg)(kt.WL,"Go to page"),labelPrevPage:(0,Ue.Yg)(kt.vq,"Go to previous page"),lastClass:(0,Ue.Yg)(kt.VE),lastNumber:(0,Ue.Yg)(kt.Ye,!1),lastText:(0,Ue.Yg)(kt.vq,"»"),limit:(0,Ue.Yg)(kt.$$,5,(function(t){return!((0,re.yJ)(t,0)<1)||(C('Prop "limit" must be a number greater than "0"',H.n4),!1)})),nextClass:(0,Ue.Yg)(kt.VE),nextText:(0,Ue.Yg)(kt.vq,"›"),pageClass:(0,Ue.Yg)(kt.VE),pills:(0,Ue.Yg)(kt.Ye,!1),prevClass:(0,Ue.Yg)(kt.VE),prevText:(0,Ue.Yg)(kt.vq,"‹"),size:(0,Ue.Yg)(kt.vq)})),"pagination"),Uv=i.default.extend({mixins:[Rv,qe],props:$v,data:function(){var t=(0,re.yJ)(this[jv],0);return{currentPage:t=t>0?t:-1,localNumberOfPages:1,localLimit:5}},computed:{btnSize:function(){var t=this.size;return t?"pagination-".concat(t):""},alignment:function(){var t=this.align;return"center"===t?"justify-content-center":"end"===t||"right"===t?"justify-content-end":"fill"===t?"text-center":""},styleClass:function(){return this.pills?"b-pagination-pills":""},computedCurrentPage:function(){return zv(this.currentPage,this.localNumberOfPages)},paginationParams:function(){var t=this.localLimit,e=this.localNumberOfPages,n=this.computedCurrentPage,i=this.hideEllipsis,r=this.firstNumber,o=this.lastNumber,a=!1,s=!1,l=t,c=1;e<=t?l=e:n<t-1&&t>3?(i&&!o||(s=!0,l=t-(r?0:1)),l=(0,Sn.rp)(l,t)):e-n+2<t&&t>3?(i&&!r||(a=!0,l=t-(o?0:1)),c=e-l+1):(t>3&&(l=t-(i?0:2),a=!(i&&!r),s=!(i&&!o)),c=n-(0,Sn.Zr)(l/2)),c<1?(c=1,a=!1):c>e-l&&(c=e-l+1,s=!1),a&&r&&c<4&&(l+=2,c=1,a=!1);var u=c+l-1;return s&&o&&u>e-3&&(l+=u===e-2?2:3,s=!1),t<=3&&(r&&1===c?l=(0,Sn.rp)(l+1,e,t+1):o&&e===c+l-1&&(c=(0,Sn.JB)(c-1,1),l=(0,Sn.rp)(e-c+1,e,t+1))),{showFirstDots:a,showLastDots:s,numberOfLinks:l=(0,Sn.rp)(l,e-c+1),startNumber:c}},pageList:function(){var t=this.paginationParams,e=t.numberOfLinks,n=t.startNumber,i=this.computedCurrentPage,r=function(t,e){return ne(e,(function(e,n){return{number:t+n,classes:null}}))}(n,e);if(r.length>3){var o=i-n,a="bv-d-xs-down-none";if(0===o)for(var s=3;s<r.length;s++)r[s].classes=a;else if(o===r.length-1)for(var l=0;l<r.length-3;l++)r[l].classes=a;else{for(var c=0;c<o-1;c++)r[c].classes=a;for(var u=r.length-1;u>o+1;u--)r[u].classes=a}}return r}},watch:(Tv={},Lv(Tv,jv,(function(t,e){t!==e&&(this.currentPage=zv(t,this.localNumberOfPages))})),Lv(Tv,"currentPage",(function(t,e){t!==e&&this.$emit(Nv,t>0?t:null)})),Lv(Tv,"limit",(function(t,e){t!==e&&(this.localLimit=Fv(t))})),Tv),created:function(){var t=this;this.localLimit=Fv(this.limit),this.$nextTick((function(){t.currentPage=t.currentPage>t.localNumberOfPages?t.localNumberOfPages:t.currentPage}))},methods:{handleKeyNav:function(t){var e=t.keyCode,n=t.shiftKey;this.isNav||(e===Zn||e===ti?(Ze(t,{propagation:!1}),n?this.focusFirst():this.focusPrev()):e!==Jn&&e!==Wn||(Ze(t,{propagation:!1}),n?this.focusLast():this.focusNext()))},getButtons:function(){return ye("button.page-link, a.page-link",this.$el).filter((function(t){return ve(t)}))},focusCurrent:function(){var t=this;this.$nextTick((function(){var e=t.getButtons().find((function(e){return(0,re.yJ)(Pe(e,"aria-posinset"),0)===t.computedCurrentPage}));Be(e)||t.focusFirst()}))},focusFirst:function(){var t=this;this.$nextTick((function(){var e=t.getButtons().find((function(t){return!ge(t)}));Be(e)}))},focusLast:function(){var t=this;this.$nextTick((function(){var e=t.getButtons().reverse().find((function(t){return!ge(t)}));Be(e)}))},focusPrev:function(){var t=this;this.$nextTick((function(){var e=t.getButtons(),n=e.indexOf(pe());n>0&&!ge(e[n-1])&&Be(e[n-1])}))},focusNext:function(){var t=this;this.$nextTick((function(){var e=t.getButtons(),n=e.indexOf(pe());n<e.length-1&&!ge(e[n+1])&&Be(e[n+1])}))}},render:function(t){var e=this,n=this.disabled,i=this.labelPage,r=this.ariaLabel,o=this.isNav,a=this.localNumberOfPages,s=this.computedCurrentPage,l=this.pageList.map((function(t){return t.number})),c=this.paginationParams,u=c.showFirstDots,d=c.showLastDots,h="fill"===this.align,p=[],f=function(t){return t===s},m=this.currentPage<1,v=function(i,r,s,l,c,u,d){var p=n||f(u)||m||i<1||i>a,v=i<1?1:i>a?a:i,g={disabled:p,page:v,index:v-1},b=e.normalizeSlot(s,g)||(0,oe.dI)(l)||t(),y=t(p?"span":o?yi:"button",{staticClass:"page-link",class:{"flex-grow-1":!o&&!p&&h},props:p||!o?{}:e.linkProps(i),attrs:{role:o?null:"menuitem",type:o||p?null:"button",tabindex:p||o?null:"-1","aria-label":r,"aria-controls":e.ariaControls||null,"aria-disabled":p?"true":null},on:p?{}:{"!click":function(t){e.onClick(t,i)},keydown:Bv}},[b]);return t("li",{key:d,staticClass:"page-item",class:[{disabled:p,"flex-fill":h,"d-flex":h&&!o&&!p},c],attrs:{role:o?null:"presentation","aria-hidden":p?"true":null}},[y])},b=function(n){return t("li",{staticClass:"page-item",class:["disabled","bv-d-xs-down-none",h?"flex-fill":"",e.ellipsisClass],attrs:{role:"separator"},key:"ellipsis-".concat(n?"last":"first")},[t("span",{staticClass:"page-link"},[e.normalizeSlot("ellipsis-text")||(0,oe.dI)(e.ellipsisText)||t()])])},y=function(r,s){var l=r.number,c=f(l)&&!m,u=n?null:c||m&&0===s?"0":"-1",d={role:o?null:"menuitemradio",type:o||n?null:"button","aria-disabled":n?"true":null,"aria-controls":e.ariaControls||null,"aria-label":(0,Ue.mV)(i)?i(l):"".concat((0,g.Tn)(i)?i():i," ").concat(l),"aria-checked":o?null:c?"true":"false","aria-current":o&&c?"page":null,"aria-posinset":o?null:l,"aria-setsize":o?null:a,tabindex:o?null:u},p=(0,oe.dI)(e.makePage(l)),v={page:l,index:l-1,content:p,active:c,disabled:n},b=t(n?"span":o?yi:"button",{props:n||!o?{}:e.linkProps(l),staticClass:"page-link",class:{"flex-grow-1":!o&&!n&&h},attrs:d,on:n?{}:{"!click":function(t){e.onClick(t,l)},keydown:Bv}},[e.normalizeSlot("page",v)||p]);return t("li",{staticClass:"page-item",class:[{disabled:n,active:c,"flex-fill":h,"d-flex":h&&!o&&!n},r.classes,e.pageClass],attrs:{role:o?null:"presentation"},key:"page-".concat(l)},[b])},_=t();this.firstNumber||this.hideGotoEndButtons||(_=v(1,this.labelFirstPage,"first-text",this.firstText,this.firstClass,1,"pagination-goto-first")),p.push(_),p.push(v(s-1,this.labelPrevPage,"prev-text",this.prevText,this.prevClass,1,"pagination-goto-prev")),p.push(this.firstNumber&&1!==l[0]?y({number:1},0):t()),p.push(u?b(!1):t()),this.pageList.forEach((function(t,n){var i=u&&e.firstNumber&&1!==l[0]?1:0;p.push(y(t,n+i))})),p.push(d?b(!0):t()),p.push(this.lastNumber&&l[l.length-1]!==a?y({number:a},-1):t()),p.push(v(s+1,this.labelNextPage,"next-text",this.nextText,this.nextClass,a,"pagination-goto-next"));var w=t();this.lastNumber||this.hideGotoEndButtons||(w=v(a,this.labelLastPage,"last-text",this.lastText,this.lastClass,a,"pagination-goto-last")),p.push(w);var x=t("ul",{staticClass:"pagination",class:["b-pagination",this.btnSize,this.alignment,this.styleClass],attrs:{role:o?null:"menubar","aria-disabled":n?"true":"false","aria-label":o?null:r||null},on:o?{}:{keydown:this.handleKeyNav},ref:"ul"},p);return o?t("nav",{attrs:{"aria-disabled":n?"true":null,"aria-hidden":n?"true":"false","aria-label":o&&r||null}},[x]):x}});function Hv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Vv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Hv(Object(n),!0).forEach((function(e){Yv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hv(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Yv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var qv=function(t){return(0,Sn.JB)((0,re.yJ)(t)||20,1)},Wv=function(t){return(0,Sn.JB)((0,re.yJ)(t)||0,0)},Gv=(0,Ue.sC)((0,_.di)(Vv(Vv({},$v),{},{ariaControls:(0,Ue.Yg)(kt.vq),perPage:(0,Ue.Yg)(kt.$$,20),totalRows:(0,Ue.Yg)(kt.$$,0)})),H.n4),Xv=I({components:{BPagination:i.default.extend({name:H.n4,mixins:[Uv],props:Gv,computed:{numberOfPages:function(){var t=(0,Sn.ih)(Wv(this.totalRows)/qv(this.perPage));return t<1?1:t},pageSizeNumberOfPages:function(){return{perPage:qv(this.perPage),totalRows:Wv(this.totalRows),numberOfPages:this.numberOfPages}}},watch:{pageSizeNumberOfPages:function(t,e){(0,g.z)(e)||(t.perPage!==e.perPage&&t.totalRows===e.totalRows||t.numberOfPages!==e.numberOfPages&&this.currentPage>t.numberOfPages)&&(this.currentPage=1),this.localNumberOfPages=t.numberOfPages}},created:function(){var t=this;this.localNumberOfPages=this.numberOfPages;var e=(0,re.yJ)(this[jv],0);e>0?this.currentPage=e:this.$nextTick((function(){t.currentPage=0}))},methods:{onClick:function(t,e){var n=this;if(e!==this.currentPage){var i=t.target,r=new Fs(pt,{cancelable:!0,vueTarget:this,target:i});this.$emit(r.type,r,e),r.defaultPrevented||(this.currentPage=e,this.$emit(V,this.currentPage),this.$nextTick((function(){ve(i)&&n.$el.contains(i)?Be(i):n.focusCurrent()})))}},makePage:function(t){return t},linkProps:function(){return{}}}})}});function Kv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Zv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Kv(Object(n),!0).forEach((function(e){Jv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kv(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Jv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qv=(0,_.cJ)(bi,["event","routerTag"]),tg=(0,Ue.sC)((0,_.di)(Zv(Zv(Zv({},$v),Qv),{},{baseUrl:(0,Ue.Yg)(kt.vq,"/"),linkGen:(0,Ue.Yg)(kt.KF),noPageDetect:(0,Ue.Yg)(kt.Ye,!1),numberOfPages:(0,Ue.Yg)(kt.$$,1,(function(t){return!((0,re.yJ)(t,0)<1)||(C('Prop "number-of-pages" must be a number greater than "0"',H.Pj),!1)})),pageGen:(0,Ue.Yg)(kt.KF),pages:(0,Ue.Yg)(kt.Rl),useRouter:(0,Ue.Yg)(kt.Ye,!1)})),H.Pj),eg=i.default.extend({name:H.Pj,mixins:[Uv],props:tg,computed:{isNav:function(){return!0},computedValue:function(){var t=(0,re.yJ)(this.value,0);return t<1?null:t}},watch:{numberOfPages:function(){var t=this;this.$nextTick((function(){t.setNumberOfPages()}))},pages:function(){var t=this;this.$nextTick((function(){t.setNumberOfPages()}))}},created:function(){this.setNumberOfPages()},mounted:function(){var t=this;this.$router&&this.$watch("$route",(function(){t.$nextTick((function(){ue((function(){t.guessCurrentPage()}))}))}))},methods:{setNumberOfPages:function(){var t,e=this;(0,g.cy)(this.pages)&&this.pages.length>0?this.localNumberOfPages=this.pages.length:this.localNumberOfPages=(t=this.numberOfPages,(0,Sn.JB)((0,re.yJ)(t,0),1)),this.$nextTick((function(){e.guessCurrentPage()}))},onClick:function(t,e){var n=this;if(e!==this.currentPage){var i=t.currentTarget||t.target,r=new Fs(pt,{cancelable:!0,vueTarget:this,target:i});this.$emit(r.type,r,e),r.defaultPrevented||(ue((function(){n.currentPage=e,n.$emit(V,e)})),this.$nextTick((function(){$e(i)})))}},getPageInfo:function(t){if(!(0,g.cy)(this.pages)||0===this.pages.length||(0,g.b0)(this.pages[t-1])){var e="".concat(this.baseUrl).concat(t);return{link:this.useRouter?{path:e}:e,text:(0,oe.dI)(t)}}var n=this.pages[t-1];if((0,g.Gv)(n)){var i=n.link;return{link:(0,g.Gv)(i)?i:this.useRouter?{path:i}:i,text:(0,oe.dI)(n.text||t)}}return{link:(0,oe.dI)(n),text:(0,oe.dI)(t)}},makePage:function(t){var e=this.pageGen,n=this.getPageInfo(t);return(0,Ue.mV)(e)?e(t,n):n.text},makeLink:function(t){var e=this.linkGen,n=this.getPageInfo(t);return(0,Ue.mV)(e)?e(t,n):n.link},linkProps:function(t){var e=(0,Ue.YL)(Qv,this),n=this.makeLink(t);return this.useRouter||(0,g.Gv)(n)?e.to=n:e.href=n,e},resolveLink:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{(t=document.createElement("a")).href=Nn({to:e},"a","/","/"),document.body.appendChild(t);var n=t,i=n.pathname,r=n.hash,o=n.search;return document.body.removeChild(t),{path:i,hash:r,query:Rn(o)}}catch(e){try{t&&t.parentNode&&t.parentNode.removeChild(t)}catch(t){}return{}}},resolveRoute:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{var e=this.$router.resolve(t,this.$route).route;return{path:e.path,hash:e.hash,query:e.query}}catch(t){return{}}},guessCurrentPage:function(){var t=this.$router,e=this.$route,n=this.computedValue;if(!this.noPageDetect&&!n&&(h.KJ||!h.KJ&&t))for(var i=t&&e?{path:e.path,hash:e.hash,query:e.query}:{},r=h.KJ?window.location||document.location:null,o=r?{path:r.pathname,hash:r.hash,query:Rn(r.search)}:{},a=1;!n&&a<=this.localNumberOfPages;a++){var s=this.makeLink(a);n=t&&((0,g.Gv)(s)||this.useRouter)?ni(this.resolveRoute(s),i)?a:null:h.KJ?ni(this.resolveLink(s),o)?a:null:-1}this.currentPage=n>0?n:0}}}),ng=I({components:{BPaginationNav:eg}}),ig={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left",TOPLEFT:"top",TOPRIGHT:"top",RIGHTTOP:"right",RIGHTBOTTOM:"right",BOTTOMLEFT:"bottom",BOTTOMRIGHT:"bottom",LEFTTOP:"left",LEFTBOTTOM:"left"},rg={AUTO:0,TOPLEFT:-1,TOP:0,TOPRIGHT:1,RIGHTTOP:-1,RIGHT:0,RIGHTBOTTOM:1,BOTTOMLEFT:-1,BOTTOM:0,BOTTOMRIGHT:1,LEFTTOP:-1,LEFT:0,LEFTBOTTOM:1},og={arrowPadding:(0,Ue.Yg)(kt.$$,6),boundary:(0,Ue.Yg)([Jt.wt,kt.vq],"scrollParent"),boundaryPadding:(0,Ue.Yg)(kt.$$,5),fallbackPlacement:(0,Ue.Yg)(kt.vj,"flip"),offset:(0,Ue.Yg)(kt.$$,0),placement:(0,Ue.Yg)(kt.vq,"top"),target:(0,Ue.Yg)([Jt.wt,Jt.NZ])},ag=i.default.extend({name:H.Dx,props:og,data:function(){return{noFade:!1,localShow:!0,attachment:this.getAttachment(this.placement)}},computed:{templateType:function(){return"unknown"},popperConfig:function(){var t=this,e=this.placement;return{placement:this.getAttachment(e),modifiers:{offset:{offset:this.getOffset(e)},flip:{behavior:this.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{padding:this.boundaryPadding,boundariesElement:this.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t.popperPlacementChange(e)},onUpdate:function(e){t.popperPlacementChange(e)}}}},created:function(){var t=this;this.$_popper=null,this.localShow=!0,this.$on(bt,(function(e){t.popperCreate(e)}));var e=function(){t.$nextTick((function(){ue((function(){t.$destroy()}))}))};this.$parent.$once(Ct,e),this.$once(ot,e)},beforeMount:function(){this.attachment=this.getAttachment(this.placement)},updated:function(){this.updatePopper()},beforeDestroy:function(){this.destroyPopper()},destroyed:function(){var t=this.$el;t&&t.parentNode&&t.parentNode.removeChild(t)},methods:{hide:function(){this.localShow=!1},getAttachment:function(t){return ig[String(t).toUpperCase()]||"auto"},getOffset:function(t){if(!this.offset){var e=this.$refs.arrow||_e(".arrow",this.$el),n=(0,re.SP)(je(e).width,0)+(0,re.SP)(this.arrowPadding,0);switch(rg[String(t).toUpperCase()]||0){case 1:return"+50%p - ".concat(n,"px");case-1:return"-50%p + ".concat(n,"px");default:return 0}}return this.offset},popperCreate:function(t){this.destroyPopper(),this.$_popper=new js.default(this.target,t,this.popperConfig)},destroyPopper:function(){this.$_popper&&this.$_popper.destroy(),this.$_popper=null},updatePopper:function(){this.$_popper&&this.$_popper.scheduleUpdate()},popperPlacementChange:function(t){this.attachment=this.getAttachment(t.placement)},renderTemplate:function(t){return t("div")}},render:function(t){var e=this,n=this.noFade;return t(dn,{props:{appear:!0,noFade:n},on:{beforeEnter:function(t){return e.$emit(bt,t)},afterEnter:function(t){return e.$emit(yt,t)},beforeLeave:function(t){return e.$emit(at,t)},afterLeave:function(t){return e.$emit(ot,t)}}},[this.localShow?this.renderTemplate(t):t()])}});function sg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function lg(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?sg(Object(n),!0).forEach((function(e){cg(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sg(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function cg(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ug={html:(0,Ue.Yg)(kt.Ye,!1),id:(0,Ue.Yg)(kt.vq)},dg=i.default.extend({name:H.WU,extends:ag,mixins:[Rf],props:ug,data:function(){return{title:"",content:"",variant:null,customClass:null,interactive:!0}},computed:{templateType:function(){return"tooltip"},templateClasses:function(){var t,e=this.variant,n=this.attachment,i=this.templateType;return[(t={noninteractive:!this.interactive},cg(t,"b-".concat(i,"-").concat(e),e),cg(t,"bs-".concat(i,"-").concat(n),n),t),this.customClass]},templateAttributes:function(){var t=this.id;return lg(lg({},this.$parent.$parent.$attrs),{},{id:t,role:"tooltip",tabindex:"-1"},this.scopedStyleAttrs)},templateListeners:function(){var t=this;return{mouseenter:function(e){t.$emit(ct,e)},mouseleave:function(e){t.$emit(ut,e)},focusin:function(e){t.$emit(nt,e)},focusout:function(e){t.$emit(it,e)}}}},methods:{renderTemplate:function(t){var e=this.title,n=(0,g.Tn)(e)?e({}):e,i=this.html&&!(0,g.Tn)(e)?{innerHTML:e}:{};return t("div",{staticClass:"tooltip b-tooltip",class:this.templateClasses,attrs:this.templateAttributes,on:this.templateListeners},[t("div",{staticClass:"arrow",ref:"arrow"}),t("div",{staticClass:"tooltip-inner",domProps:i},[n])])}}});function hg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function pg(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?hg(Object(n),!0).forEach((function(e){fg(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hg(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function fg(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var mg,vg,gg=".modal-content",bg=Qe(H.Y7,ot),yg=[gg,".b-sidebar"].join(", "),_g="data-original-title",wg={title:"",content:"",variant:null,customClass:null,triggers:"",placement:"auto",fallbackPlacement:"flip",target:null,container:null,noFade:!1,boundary:"scrollParent",boundaryPadding:5,offset:0,delay:0,arrowPadding:6,interactive:!0,disabled:!1,id:null,html:!1},xg=i.default.extend({name:H.z0,mixins:[li],data:function(){return pg(pg({},wg),{},{activeTrigger:{hover:!1,click:!1,focus:!1},localShow:!1})},computed:{templateType:function(){return"tooltip"},computedId:function(){return this.id||"__bv_".concat(this.templateType,"_").concat(this[U],"__")},computedDelay:function(){var t={show:0,hide:0};return(0,g.Qd)(this.delay)?(t.show=(0,Sn.JB)((0,re.yJ)(this.delay.show,0),0),t.hide=(0,Sn.JB)((0,re.yJ)(this.delay.hide,0),0)):((0,g.Et)(this.delay)||(0,g.Kg)(this.delay))&&(t.show=t.hide=(0,Sn.JB)((0,re.yJ)(this.delay,0),0)),t},computedTriggers:function(){return ee(this.triggers).filter(v.D).join(" ").trim().toLowerCase().split(/\s+/).sort()},isWithActiveTrigger:function(){for(var t in this.activeTrigger)if(this.activeTrigger[t])return!0;return!1},computedTemplateData:function(){return{title:this.title,content:this.content,variant:this.variant,customClass:this.customClass,noFade:this.noFade,interactive:this.interactive}}},watch:{computedTriggers:function(t,e){var n=this;ni(t,e)||this.$nextTick((function(){n.unListen(),e.forEach((function(e){te(t,e)||n.activeTrigger[e]&&(n.activeTrigger[e]=!1)})),n.listen()}))},computedTemplateData:function(){this.handleTemplateUpdate()},title:function(t,e){t===e||t||this.hide()},disabled:function(t){t?this.disable():this.enable()}},created:function(){var t=this;this.$_tip=null,this.$_hoverTimeout=null,this.$_hoverState="",this.$_visibleInterval=null,this.$_enabled=!this.disabled,this.$_noop=ya.bind(this),this.$parent&&this.$parent.$once(xt,(function(){t.$nextTick((function(){ue((function(){t.$destroy()}))}))})),this.$nextTick((function(){var e=t.getTarget();e&&Ce(document.body,e)?(t.scopeId=Df(t.$parent),t.listen()):C((0,g.Kg)(t.target)?'Unable to find target element by ID "#'.concat(t.target,'" in document.'):"The provided target is no valid HTML element.",t.templateType)}))},updated:function(){this.$nextTick(this.handleTemplateUpdate)},deactivated:function(){this.forceHide()},beforeDestroy:function(){this.unListen(),this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.clearVisibilityInterval(),this.destroyTemplate(),this.$_noop=null},methods:{getTemplate:function(){return dg},updateData:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!1;(0,_.HP)(wg).forEach((function(i){(0,g.b0)(e[i])||t[i]===e[i]||(t[i]=e[i],"title"===i&&(n=!0))})),n&&this.localShow&&this.fixTitle()},createTemplateAndShow:function(){var t=this.getContainer(),e=this.getTemplate(),n=this.$_tip=new e({parent:this,propsData:{id:this.computedId,html:this.html,placement:this.placement,fallbackPlacement:this.fallbackPlacement,target:this.getPlacementTarget(),boundary:this.getBoundary(),offset:(0,re.yJ)(this.offset,0),arrowPadding:(0,re.yJ)(this.arrowPadding,0),boundaryPadding:(0,re.yJ)(this.boundaryPadding,0)}});this.handleTemplateUpdate(),n.$once(bt,this.onTemplateShow),n.$once(yt,this.onTemplateShown),n.$once(at,this.onTemplateHide),n.$once(ot,this.onTemplateHidden),n.$once(Ct,this.destroyTemplate),n.$on(nt,this.handleEvent),n.$on(it,this.handleEvent),n.$on(ct,this.handleEvent),n.$on(ut,this.handleEvent),n.$mount(t.appendChild(document.createElement("div")))},hideTemplate:function(){this.$_tip&&this.$_tip.hide(),this.clearActiveTriggers(),this.$_hoverState=""},destroyTemplate:function(){this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.$_hoverState="",this.clearActiveTriggers(),this.localPlacementTarget=null;try{this.$_tip.$destroy()}catch(t){}this.$_tip=null,this.removeAriaDescribedby(),this.restoreTitle(),this.localShow=!1},getTemplateElement:function(){return this.$_tip?this.$_tip.$el:null},handleTemplateUpdate:function(){var t=this,e=this.$_tip;if(e){["title","content","variant","customClass","noFade","interactive"].forEach((function(n){e[n]!==t[n]&&(e[n]=t[n])}))}},show:function(){var t=this.getTarget();if(t&&Ce(document.body,t)&&ve(t)&&!this.dropdownOpen()&&(!(0,g.z)(this.title)&&""!==this.title||!(0,g.z)(this.content)&&""!==this.content)&&!this.$_tip&&!this.localShow){this.localShow=!0;var e=this.buildEvent(bt,{cancelable:!0});this.emitEvent(e),e.defaultPrevented?this.destroyTemplate():(this.fixTitle(),this.addAriaDescribedby(),this.createTemplateAndShow())}},hide:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.getTemplateElement()&&this.localShow){var e=this.buildEvent(at,{cancelable:!t});this.emitEvent(e),e.defaultPrevented||this.hideTemplate()}else this.restoreTitle()},forceHide:function(){this.getTemplateElement()&&this.localShow&&(this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.$_hoverState="",this.clearActiveTriggers(),this.$_tip&&(this.$_tip.noFade=!0),this.hide(!0))},enable:function(){this.$_enabled=!0,this.emitEvent(this.buildEvent(Q))},disable:function(){this.$_enabled=!1,this.emitEvent(this.buildEvent(Z))},onTemplateShow:function(){this.setWhileOpenListeners(!0)},onTemplateShown:function(){var t=this.$_hoverState;this.$_hoverState="","out"===t&&this.leave(null),this.emitEvent(this.buildEvent(yt))},onTemplateHide:function(){this.setWhileOpenListeners(!1)},onTemplateHidden:function(){this.destroyTemplate(),this.emitEvent(this.buildEvent(ot))},getTarget:function(){var t=this.target;return(0,g.Kg)(t)?t=Se(t.replace(/^#/,"")):(0,g.Tn)(t)?t=t():t&&(t=t.$el||t),he(t)?t:null},getPlacementTarget:function(){return this.getTarget()},getTargetId:function(){var t=this.getTarget();return t&&t.id?t.id:null},getContainer:function(){var t=!!this.container&&(this.container.$el||this.container),e=document.body,n=this.getTarget();return!1===t?xe(yg,n)||e:(0,g.Kg)(t)&&Se(t.replace(/^#/,""))||e},getBoundary:function(){return this.boundary?this.boundary.$el||this.boundary:"scrollParent"},isInModal:function(){var t=this.getTarget();return t&&xe(gg,t)},isDropdown:function(){var t=this.getTarget();return t&&Oe(t,"dropdown")},dropdownOpen:function(){var t=this.getTarget();return this.isDropdown()&&t&&_e(".dropdown-menu.show",t)},clearHoverTimeout:function(){clearTimeout(this.$_hoverTimeout),this.$_hoverTimeout=null},clearVisibilityInterval:function(){clearInterval(this.$_visibleInterval),this.$_visibleInterval=null},clearActiveTriggers:function(){for(var t in this.activeTrigger)this.activeTrigger[t]=!1},addAriaDescribedby:function(){var t=this.getTarget(),e=Pe(t,"aria-describedby")||"";e=e.split(/\s+/).concat(this.computedId).join(" ").trim(),ke(t,"aria-describedby",e)},removeAriaDescribedby:function(){var t=this,e=this.getTarget(),n=Pe(e,"aria-describedby")||"";(n=n.split(/\s+/).filter((function(e){return e!==t.computedId})).join(" ").trim())?ke(e,"aria-describedby",n):Ae(e,"aria-describedby")},fixTitle:function(){var t=this.getTarget();if(Me(t,"title")){var e=Pe(t,"title");ke(t,"title",""),e&&ke(t,_g,e)}},restoreTitle:function(){var t=this.getTarget();if(Me(t,_g)){var e=Pe(t,_g);Ae(t,_g),e&&ke(t,"title",e)}},buildEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Fs(t,pg({cancelable:!1,target:this.getTarget(),relatedTarget:this.getTemplateElement()||null,componentId:this.computedId,vueTarget:this},e))},emitEvent:function(t){var e=t.type;this.emitOnRoot(Qe(this.templateType,e),t),this.$emit(e,t)},listen:function(){var t=this,e=this.getTarget();e&&(this.setRootListener(!0),this.computedTriggers.forEach((function(n){"click"===n?Ge(e,"click",t.handleEvent,Ot):"focus"===n?(Ge(e,"focusin",t.handleEvent,Ot),Ge(e,"focusout",t.handleEvent,Ot)):"blur"===n?Ge(e,"focusout",t.handleEvent,Ot):"hover"===n&&(Ge(e,"mouseenter",t.handleEvent,Ot),Ge(e,"mouseleave",t.handleEvent,Ot))}),this))},unListen:function(){var t=this,e=this.getTarget();this.setRootListener(!1),["click","focusin","focusout","mouseenter","mouseleave"].forEach((function(n){e&&Xe(e,n,t.handleEvent,Ot)}),this)},setRootListener:function(t){var e=this.$root;if(e){var n=t?"$on":"$off",i=this.templateType;e[n](tn(i,at),this.doHide),e[n](tn(i,bt),this.doShow),e[n](tn(i,K),this.doDisable),e[n](tn(i,J),this.doEnable)}},setWhileOpenListeners:function(t){this.setModalListener(t),this.setDropdownListener(t),this.visibleCheck(t),this.setOnTouchStartListener(t)},visibleCheck:function(t){var e=this;this.clearVisibilityInterval();var n=this.getTarget(),i=this.getTemplateElement();t&&(this.$_visibleInterval=setInterval((function(){!i||!e.localShow||n.parentNode&&ve(n)||e.forceHide()}),100))},setModalListener:function(t){this.isInModal()&&this.$root[t?"$on":"$off"](bg,this.forceHide)},setOnTouchStartListener:function(t){var e=this;"ontouchstart"in document.documentElement&&Qt(document.body.children).forEach((function(n){Ke(t,n,"mouseover",e.$_noop)}))},setDropdownListener:function(t){var e=this.getTarget();e&&this.$root&&this.isDropdown&&e.__vue__&&e.__vue__[t?"$on":"$off"](yt,this.forceHide)},handleEvent:function(t){var e=this.getTarget();if(e&&!ge(e)&&this.$_enabled&&!this.dropdownOpen()){var n=t.type,i=this.computedTriggers;if("click"===n&&te(i,"click"))this.click(t);else if("mouseenter"===n&&te(i,"hover"))this.enter(t);else if("focusin"===n&&te(i,"focus"))this.enter(t);else if("focusout"===n&&(te(i,"focus")||te(i,"blur"))||"mouseleave"===n&&te(i,"hover")){var r=this.getTemplateElement(),o=t.target,a=t.relatedTarget;if(r&&Ce(r,o)&&Ce(e,a)||r&&Ce(e,o)&&Ce(r,a)||r&&Ce(r,o)&&Ce(r,a)||Ce(e,o)&&Ce(e,a))return;this.leave(t)}}},doHide:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.forceHide()},doShow:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.show()},doDisable:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.disable()},doEnable:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.enable()},click:function(t){this.$_enabled&&!this.dropdownOpen()&&(Be(t.currentTarget),this.activeTrigger.click=!this.activeTrigger.click,this.isWithActiveTrigger?this.enter(null):this.leave(null))},toggle:function(){this.$_enabled&&!this.dropdownOpen()&&(this.localShow?this.leave(null):this.enter(null))},enter:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&(this.activeTrigger["focusin"===e.type?"focus":"hover"]=!0),this.localShow||"in"===this.$_hoverState?this.$_hoverState="in":(this.clearHoverTimeout(),this.$_hoverState="in",this.computedDelay.show?(this.fixTitle(),this.$_hoverTimeout=setTimeout((function(){"in"===t.$_hoverState?t.show():t.localShow||t.restoreTitle()}),this.computedDelay.show)):this.show())},leave:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&(this.activeTrigger["focusout"===e.type?"focus":"hover"]=!1,"focusout"===e.type&&te(this.computedTriggers,"blur")&&(this.activeTrigger.click=!1,this.activeTrigger.hover=!1)),this.isWithActiveTrigger||(this.clearHoverTimeout(),this.$_hoverState="out",this.computedDelay.hide?this.$_hoverTimeout=setTimeout((function(){"out"===t.$_hoverState&&t.hide()}),this.computedDelay.hide):this.hide())}}});function Cg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Sg(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Eg="disabled",Tg=St+Eg,Og="show",kg=St+Og,Ag=(0,Ue.sC)((Sg(mg={boundary:(0,Ue.Yg)([Jt.wt,kt.bD,kt.vq],"scrollParent"),boundaryPadding:(0,Ue.Yg)(kt.$$,50),container:(0,Ue.Yg)([Jt.wt,kt.bD,kt.vq]),customClass:(0,Ue.Yg)(kt.vq),delay:(0,Ue.Yg)(kt.xm,50)},Eg,(0,Ue.Yg)(kt.Ye,!1)),Sg(mg,"fallbackPlacement",(0,Ue.Yg)(kt.vj,"flip")),Sg(mg,"id",(0,Ue.Yg)(kt.vq)),Sg(mg,"noFade",(0,Ue.Yg)(kt.Ye,!1)),Sg(mg,"noninteractive",(0,Ue.Yg)(kt.Ye,!1)),Sg(mg,"offset",(0,Ue.Yg)(kt.$$,0)),Sg(mg,"placement",(0,Ue.Yg)(kt.vq,"top")),Sg(mg,Og,(0,Ue.Yg)(kt.Ye,!1)),Sg(mg,"target",(0,Ue.Yg)([Jt.wt,Jt.NZ,kt.KF,kt.bD,kt.vq],void 0,!0)),Sg(mg,"title",(0,Ue.Yg)(kt.vq)),Sg(mg,"triggers",(0,Ue.Yg)(kt.vj,"hover focus")),Sg(mg,"variant",(0,Ue.Yg)(kt.vq)),mg),H.GT),Pg=i.default.extend({name:H.GT,mixins:[qe],inheritAttrs:!1,props:Ag,data:function(){return{localShow:this[Og],localTitle:"",localContent:""}},computed:{templateData:function(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Cg(Object(n),!0).forEach((function(e){Sg(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cg(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({title:this.localTitle,content:this.localContent,interactive:!this.noninteractive},(0,_.Up)(this.$props,["boundary","boundaryPadding","container","customClass","delay","fallbackPlacement","id","noFade","offset","placement","target","target","triggers","variant",Eg]))},templateTitleContent:function(){return{title:this.title,content:this.content}}},watch:(vg={},Sg(vg,Og,(function(t,e){t!==e&&t!==this.localShow&&this.$_toolpop&&(t?this.$_toolpop.show():this.$_toolpop.forceHide())})),Sg(vg,Eg,(function(t){t?this.doDisable():this.doEnable()})),Sg(vg,"localShow",(function(t){this.$emit(kg,t)})),Sg(vg,"templateData",(function(){var t=this;this.$nextTick((function(){t.$_toolpop&&t.$_toolpop.updateData(t.templateData)}))})),Sg(vg,"templateTitleContent",(function(){this.$nextTick(this.updateContent)})),vg),created:function(){this.$_toolpop=null},updated:function(){this.$nextTick(this.updateContent)},beforeDestroy:function(){this.$off(ht,this.doOpen),this.$off(q,this.doClose),this.$off(K,this.doDisable),this.$off(J,this.doEnable),this.$_toolpop&&(this.$_toolpop.$destroy(),this.$_toolpop=null)},mounted:function(){var t=this;this.$nextTick((function(){var e=t.getComponent();t.updateContent();var n=Df(t)||Df(t.$parent),i=t.$_toolpop=new e({parent:t,_scopeId:n||void 0});i.updateData(t.templateData),i.$on(bt,t.onShow),i.$on(yt,t.onShown),i.$on(at,t.onHide),i.$on(ot,t.onHidden),i.$on(Z,t.onDisabled),i.$on(Q,t.onEnabled),t[Eg]&&t.doDisable(),t.$on(ht,t.doOpen),t.$on(q,t.doClose),t.$on(K,t.doDisable),t.$on(J,t.doEnable),t.localShow&&i.show()}))},methods:{getComponent:function(){return xg},updateContent:function(){this.setTitle(this.normalizeSlot()||this.title)},setTitle:function(t){t=(0,g.z)(t)?"":t,this.localTitle!==t&&(this.localTitle=t)},setContent:function(t){t=(0,g.z)(t)?"":t,this.localContent!==t&&(this.localContent=t)},onShow:function(t){this.$emit(bt,t),t&&(this.localShow=!t.defaultPrevented)},onShown:function(t){this.localShow=!0,this.$emit(yt,t)},onHide:function(t){this.$emit(at,t)},onHidden:function(t){this.$emit(ot,t),this.localShow=!1},onDisabled:function(t){t&&t.type===Z&&(this.$emit(Tg,!0),this.$emit(Z,t))},onEnabled:function(t){t&&t.type===Q&&(this.$emit(Tg,!1),this.$emit(Q,t))},doOpen:function(){!this.localShow&&this.$_toolpop&&this.$_toolpop.show()},doClose:function(){this.localShow&&this.$_toolpop&&this.$_toolpop.hide()},doDisable:function(){this.$_toolpop&&this.$_toolpop.disable()},doEnable:function(){this.$_toolpop&&this.$_toolpop.enable()}},render:function(t){return t()}}),Mg=i.default.extend({name:H.fy,extends:dg,computed:{templateType:function(){return"popover"}},methods:{renderTemplate:function(t){var e=this.title,n=this.content,i=(0,g.Tn)(e)?e({}):e,r=(0,g.Tn)(n)?n({}):n,o=this.html&&!(0,g.Tn)(e)?{innerHTML:e}:{},a=this.html&&!(0,g.Tn)(n)?{innerHTML:n}:{};return t("div",{staticClass:"popover b-popover",class:this.templateClasses,attrs:this.templateAttributes,on:this.templateListeners},[t("div",{staticClass:"arrow",ref:"arrow"}),(0,g.z)(i)||""===i?t():t("h3",{staticClass:"popover-header",domProps:o},[i]),(0,g.z)(r)||""===r?t():t("div",{staticClass:"popover-body",domProps:a},[r])])}}}),Lg=i.default.extend({name:H.Pp,extends:xg,computed:{templateType:function(){return"popover"}},methods:{getTemplate:function(){return Mg}}});function Dg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Rg(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Dg(Object(n),!0).forEach((function(e){Ig(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dg(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ig(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var jg=(0,Ue.sC)((0,_.di)(Rg(Rg({},Ag),{},{content:(0,Ue.Yg)(kt.vq),placement:(0,Ue.Yg)(kt.vq,"right"),triggers:(0,Ue.Yg)(kt.vj,Y)})),H.qc),Ng=i.default.extend({name:H.qc,extends:Pg,inheritAttrs:!1,props:jg,methods:{getComponent:function(){return Lg},updateContent:function(){this.setContent(this.normalizeSlot()||this.content),this.setTitle(this.normalizeSlot(Kt)||this.title)}}});function Fg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function zg(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Fg(Object(n),!0).forEach((function(e){Bg(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fg(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Bg(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $g="__BV_Popover__",Ug={focus:!0,hover:!0,click:!0,blur:!0,manual:!0},Hg=/^html$/i,Vg=/^nofade$/i,Yg=/^(auto|top(left|right)?|bottom(left|right)?|left(top|bottom)?|right(top|bottom)?)$/i,qg=/^(window|viewport|scrollParent)$/i,Wg=/^d\d+$/i,Gg=/^ds\d+$/i,Xg=/^dh\d+$/i,Kg=/^o-?\d+$/i,Zg=/^v-.+$/i,Jg=/\s+/,Qg=function(t,e,n){if(h.KJ){var i=function(t,e){var n={title:void 0,content:void 0,trigger:"",placement:"right",fallbackPlacement:"flip",container:!1,animation:!0,offset:0,disabled:!1,id:null,html:!1,delay:(0,Uu.AV)(H.qc,"delay",50),boundary:String((0,Uu.AV)(H.qc,"boundary","scrollParent")),boundaryPadding:(0,re.yJ)((0,Uu.AV)(H.qc,"boundaryPadding",5),0),variant:(0,Uu.AV)(H.qc,"variant"),customClass:(0,Uu.AV)(H.qc,"customClass")};if((0,g.Kg)(t.value)||(0,g.Et)(t.value)||(0,g.Tn)(t.value)?n.content=t.value:(0,g.Qd)(t.value)&&(n=zg(zg({},n),t.value)),t.arg&&(n.container="#".concat(t.arg)),(0,g.b0)(n.title)){var i=e.data||{};n.title=i.attrs&&!(0,g.z)(i.attrs.title)?i.attrs.title:void 0}(0,g.Qd)(n.delay)||(n.delay={show:(0,re.yJ)(n.delay,0),hide:(0,re.yJ)(n.delay,0)}),(0,_.HP)(t.modifiers).forEach((function(t){if(Hg.test(t))n.html=!0;else if(Vg.test(t))n.animation=!1;else if(Yg.test(t))n.placement=t;else if(qg.test(t))t="scrollparent"===t?"scrollParent":t,n.boundary=t;else if(Wg.test(t)){var e=(0,re.yJ)(t.slice(1),0);n.delay.show=e,n.delay.hide=e}else Gg.test(t)?n.delay.show=(0,re.yJ)(t.slice(2),0):Xg.test(t)?n.delay.hide=(0,re.yJ)(t.slice(2),0):Kg.test(t)?n.offset=(0,re.yJ)(t.slice(1),0):Zg.test(t)&&(n.variant=t.slice(2)||null)}));var r={};return ee(n.trigger||"").filter(v.D).join(" ").trim().toLowerCase().split(Jg).forEach((function(t){Ug[t]&&(r[t]=!0)})),(0,_.HP)(t.modifiers).forEach((function(t){t=t.toLowerCase(),Ug[t]&&(r[t]=!0)})),n.trigger=(0,_.HP)(r).join(" "),"blur"===n.trigger&&(n.trigger="focus"),n.trigger||(n.trigger="click"),n}(e,n);if(!t[$g]){var r=n.context;t[$g]=new Lg({parent:r,_scopeId:Df(r,void 0)}),t[$g].__bv_prev_data__={},t[$g].$on(bt,(function(){var e={};(0,g.Tn)(i.title)&&(e.title=i.title(t)),(0,g.Tn)(i.content)&&(e.content=i.content(t)),(0,_.HP)(e).length>0&&t[$g].updateData(e)}))}var o={title:i.title,content:i.content,triggers:i.trigger,placement:i.placement,fallbackPlacement:i.fallbackPlacement,variant:i.variant,customClass:i.customClass,container:i.container,boundary:i.boundary,delay:i.delay,offset:i.offset,noFade:!i.animation,id:i.id,disabled:i.disabled,html:i.html},a=t[$g].__bv_prev_data__;if(t[$g].__bv_prev_data__=o,!ni(o,a)){var s={target:t};(0,_.HP)(o).forEach((function(e){o[e]!==a[e]&&(s[e]="title"!==e&&"content"!==e||!(0,g.Tn)(o[e])?o[e]:o[e](t))})),t[$g].updateData(s)}}},tb=I({directives:{VBPopover:{bind:function(t,e,n){Qg(t,e,n)},componentUpdated:function(t,e,n){n.context.$nextTick((function(){Qg(t,e,n)}))},unbind:function(t){!function(t){t[$g]&&(t[$g].$destroy(),t[$g]=null),delete t[$g]}(t)}}}}),eb=I({components:{BPopover:Ng},plugins:{VBPopoverPlugin:tb}}),nb=(0,Ue.sC)({animated:(0,Ue.Yg)(kt.Ye,null),label:(0,Ue.Yg)(kt.vq),labelHtml:(0,Ue.Yg)(kt.vq),max:(0,Ue.Yg)(kt.$$,null),precision:(0,Ue.Yg)(kt.$$,null),showProgress:(0,Ue.Yg)(kt.Ye,null),showValue:(0,Ue.Yg)(kt.Ye,null),striped:(0,Ue.Yg)(kt.Ye,null),value:(0,Ue.Yg)(kt.$$,0),variant:(0,Ue.Yg)(kt.vq)},H.gU),ib=i.default.extend({name:H.gU,mixins:[qe],inject:{bvProgress:{default:function(){return{}}}},props:nb,computed:{progressBarClasses:function(){var t=this.computedAnimated,e=this.computedVariant;return[e?"bg-".concat(e):"",this.computedStriped||t?"progress-bar-striped":"",t?"progress-bar-animated":""]},progressBarStyles:function(){return{width:this.computedValue/this.computedMax*100+"%"}},computedValue:function(){return(0,re.SP)(this.value,0)},computedMax:function(){var t=(0,re.SP)(this.max)||(0,re.SP)(this.bvProgress.max,0);return t>0?t:100},computedPrecision:function(){return(0,Sn.JB)((0,re.yJ)(this.precision,(0,re.yJ)(this.bvProgress.precision,0)),0)},computedProgress:function(){var t=this.computedPrecision,e=(0,Sn.z4)(10,t);return(0,re.Mg)(100*e*this.computedValue/this.computedMax/e,t)},computedVariant:function(){return this.variant||this.bvProgress.variant},computedStriped:function(){return(0,g.Lm)(this.striped)?this.striped:this.bvProgress.striped||!1},computedAnimated:function(){return(0,g.Lm)(this.animated)?this.animated:this.bvProgress.animated||!1},computedShowProgress:function(){return(0,g.Lm)(this.showProgress)?this.showProgress:this.bvProgress.showProgress||!1},computedShowValue:function(){return(0,g.Lm)(this.showValue)?this.showValue:this.bvProgress.showValue||!1}},render:function(t){var e,n=this.label,i=this.labelHtml,r=this.computedValue,o=this.computedPrecision,a={};return this.hasNormalizedSlot()?e=this.normalizeSlot():n||i?a=er(i,n):this.computedShowProgress?e=this.computedProgress:this.computedShowValue&&(e=(0,re.Mg)(r,o)),t("div",{staticClass:"progress-bar",class:this.progressBarClasses,style:this.progressBarStyles,attrs:{role:"progressbar","aria-valuemin":"0","aria-valuemax":(0,oe.dI)(this.computedMax),"aria-valuenow":(0,re.Mg)(r,o)},domProps:a},e)}});function rb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ob(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rb(Object(n),!0).forEach((function(e){ab(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rb(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ab(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var sb,lb=(0,_.cJ)(nb,["label","labelHtml"]),cb=(0,Ue.sC)((0,_.di)(ob(ob({},lb),{},{animated:(0,Ue.Yg)(kt.Ye,!1),height:(0,Ue.Yg)(kt.vq),max:(0,Ue.Yg)(kt.$$,100),precision:(0,Ue.Yg)(kt.$$,0),showProgress:(0,Ue.Yg)(kt.Ye,!1),showValue:(0,Ue.Yg)(kt.Ye,!1),striped:(0,Ue.Yg)(kt.Ye,!1)})),H.qI),ub=I({components:{BProgress:i.default.extend({name:H.qI,mixins:[qe],provide:function(){return{bvProgress:this}},props:cb,computed:{progressHeight:function(){return{height:this.height||null}}},render:function(t){var e=this.normalizeSlot();return e||(e=t(ib,{props:(0,Ue.YL)(lb,this.$props)})),t("div",{staticClass:"progress",style:this.progressHeight},[e])}}),BProgressBar:ib}});function db(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function hb(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?db(Object(n),!0).forEach((function(e){pb(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):db(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function pb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var fb="b-sidebar",mb=tn(H.CU,"request-state"),vb=tn(H.CU,"toggle"),gb=Qe(H.CU,"state"),bb=Qe(H.CU,"sync-state"),yb=He("visible",{type:kt.Ye,defaultValue:!1,event:V}),_b=yb.mixin,wb=yb.props,xb=yb.prop,Cb=yb.event,Sb=(0,Ue.sC)((0,_.di)(hb(hb(hb({},Qr),wb),{},{ariaLabel:(0,Ue.Yg)(kt.vq),ariaLabelledby:(0,Ue.Yg)(kt.vq),backdrop:(0,Ue.Yg)(kt.Ye,!1),backdropVariant:(0,Ue.Yg)(kt.vq,"dark"),bgVariant:(0,Ue.Yg)(kt.vq,"light"),bodyClass:(0,Ue.Yg)(kt.VE),closeLabel:(0,Ue.Yg)(kt.vq),footerClass:(0,Ue.Yg)(kt.VE),headerClass:(0,Ue.Yg)(kt.VE),lazy:(0,Ue.Yg)(kt.Ye,!1),noCloseOnBackdrop:(0,Ue.Yg)(kt.Ye,!1),noCloseOnEsc:(0,Ue.Yg)(kt.Ye,!1),noCloseOnRouteChange:(0,Ue.Yg)(kt.Ye,!1),noEnforceFocus:(0,Ue.Yg)(kt.Ye,!1),noHeader:(0,Ue.Yg)(kt.Ye,!1),noHeaderClose:(0,Ue.Yg)(kt.Ye,!1),noSlide:(0,Ue.Yg)(kt.Ye,!1),right:(0,Ue.Yg)(kt.Ye,!1),shadow:(0,Ue.Yg)(kt.iF,!1),sidebarClass:(0,Ue.Yg)(kt.VE),tag:(0,Ue.Yg)(kt.vq,"div"),textVariant:(0,Ue.Yg)(kt.vq,"dark"),title:(0,Ue.Yg)(kt.vq),width:(0,Ue.Yg)(kt.vq),zIndex:(0,Ue.Yg)(kt.$$)})),H.xm),Eb=function(t,e){if(e.noHeader)return t();var n=e.normalizeSlot(zt,e.slotScope);if(!n){var i=function(t,e){var n=e.normalizeSlot(Kt,e.slotScope)||e.title;return n?t("strong",{attrs:{id:e.safeId("__title__")}},[n]):t("span")}(t,e),r=function(t,e){if(e.noHeaderClose)return t();var n=e.closeLabel,i=e.textVariant,r=e.hide;return t(nn,{props:{ariaLabel:n,textVariant:i},on:{click:r},ref:"close-button"},[e.normalizeSlot("header-close")||t(Fn.qCC)])}(t,e);n=e.right?[r,i]:[i,r]}return t("header",{staticClass:"".concat(fb,"-header"),class:e.headerClass,key:"header"},n)},Tb=function(t,e){return t("div",{staticClass:"".concat(fb,"-body"),class:e.bodyClass,key:"body"},[e.normalizeSlot(Rt,e.slotScope)])},Ob=function(t,e){var n=e.normalizeSlot(Ft,e.slotScope);return n?t("footer",{staticClass:"".concat(fb,"-footer"),class:e.footerClass,key:"footer"},[n]):t()},kb=function(t,e){var n=Eb(t,e);return e.lazy&&!e.isOpen?n:[n,Tb(t,e),Ob(t,e)]},Ab=function(t,e){if(!e.backdrop)return t();var n=e.backdropVariant;return t("div",{directives:[{name:"show",value:e.localShow}],staticClass:"b-sidebar-backdrop",class:pb({},"bg-".concat(n),n),on:{click:e.onBackdropClick}})},Pb=i.default.extend({name:H.xm,mixins:[si,to,_b,li,qe],inheritAttrs:!1,props:Sb,data:function(){var t=!!this[xb];return{localShow:t,isOpen:t}},computed:{transitionProps:function(){return this.noSlide?{css:!0}:{css:!0,enterClass:"",enterActiveClass:"slide",enterToClass:"show",leaveClass:"show",leaveActiveClass:"slide",leaveToClass:""}},slotScope:function(){return{hide:this.hide,right:this.right,visible:this.localShow}},hasTitle:function(){var t=this.$scopedSlots,e=this.$slots;return!(this.noHeader||this.hasNormalizedSlot(zt)||!this.normalizeSlot(Kt,this.slotScope,t,e)&&!this.title)},titleId:function(){return this.hasTitle?this.safeId("__title__"):null},computedAttrs:function(){return hb(hb({},this.bvAttrs),{},{id:this.safeId(),tabindex:"-1",role:"dialog","aria-modal":this.backdrop?"true":"false","aria-hidden":this.localShow?null:"true","aria-label":this.ariaLabel||null,"aria-labelledby":this.ariaLabelledby||this.titleId||null})}},watch:(sb={},pb(sb,xb,(function(t,e){t!==e&&(this.localShow=t)})),pb(sb,"localShow",(function(t,e){t!==e&&(this.emitState(t),this.$emit(Cb,t))})),pb(sb,"$route",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.noCloseOnRouteChange||t.fullPath===e.fullPath||this.hide()})),sb),created:function(){this.$_returnFocusEl=null},mounted:function(){var t=this;this.listenOnRoot(vb,this.handleToggle),this.listenOnRoot(mb,this.handleSync),this.$nextTick((function(){t.emitState(t.localShow)}))},activated:function(){this.emitSync()},beforeDestroy:function(){this.localShow=!1,this.$_returnFocusEl=null},methods:{hide:function(){this.localShow=!1},emitState:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.localShow;this.emitOnRoot(gb,this.safeId(),t)},emitSync:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.localShow;this.emitOnRoot(bb,this.safeId(),t)},handleToggle:function(t){t&&t===this.safeId()&&(this.localShow=!this.localShow)},handleSync:function(t){var e=this;t&&t===this.safeId()&&this.$nextTick((function(){e.emitSync(e.localShow)}))},onKeydown:function(t){var e=t.keyCode;!this.noCloseOnEsc&&27===e&&this.localShow&&this.hide()},onBackdropClick:function(){this.localShow&&!this.noCloseOnBackdrop&&this.hide()},onTopTrapFocus:function(){var t=ze(this.$refs.content);this.enforceFocus(t.reverse()[0])},onBottomTrapFocus:function(){var t=ze(this.$refs.content);this.enforceFocus(t[0])},onBeforeEnter:function(){this.$_returnFocusEl=pe(h.KJ?[document.body]:[]),this.isOpen=!0},onAfterEnter:function(t){Ce(t,pe())||this.enforceFocus(t),this.$emit(yt)},onAfterLeave:function(){this.enforceFocus(this.$_returnFocusEl),this.$_returnFocusEl=null,this.isOpen=!1,this.$emit(ot)},enforceFocus:function(t){this.noEnforceFocus||Be(t)}},render:function(t){var e,n=this.bgVariant,i=this.width,r=this.textVariant,o=this.localShow,a=""===this.shadow||this.shadow,s=t(this.tag,{staticClass:fb,class:[(e={shadow:!0===a},pb(e,"shadow-".concat(a),a&&!0!==a),pb(e,"".concat(fb,"-right"),this.right),pb(e,"bg-".concat(n),n),pb(e,"text-".concat(r),r),e),this.sidebarClass],style:{width:i},attrs:this.computedAttrs,directives:[{name:"show",value:o}],ref:"content"},[kb(t,this)]);s=t("transition",{props:this.transitionProps,on:{beforeEnter:this.onBeforeEnter,afterEnter:this.onAfterEnter,afterLeave:this.onAfterLeave}},[s]);var l=t(dn,{props:{noFade:this.noSlide}},[Ab(t,this)]),c=t(),u=t();return this.backdrop&&o&&(c=t("div",{attrs:{tabindex:"0"},on:{focus:this.onTopTrapFocus}}),u=t("div",{attrs:{tabindex:"0"},on:{focus:this.onBottomTrapFocus}})),t("div",{staticClass:"b-sidebar-outer",style:{zIndex:this.zIndex},attrs:{tabindex:"-1"},on:{keydown:this.onKeydown}},[c,s,u,l])}}),Mb=I({components:{BSidebar:Pb},plugins:{VBTogglePlugin:Rs}});function Lb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Db=(0,Ue.sC)({animation:(0,Ue.Yg)(kt.vq,"wave"),height:(0,Ue.Yg)(kt.vq),size:(0,Ue.Yg)(kt.vq),type:(0,Ue.Yg)(kt.vq,"text"),variant:(0,Ue.Yg)(kt.vq),width:(0,Ue.Yg)(kt.vq)},H.QZ),Rb=i.default.extend({name:H.QZ,functional:!0,props:Db,render:function(t,e){var n,i=e.data,r=e.props,o=r.size,a=r.animation,s=r.variant;return t("div",(0,$.L)(i,{staticClass:"b-skeleton",style:{width:o||r.width,height:o||r.height},class:(n={},Lb(n,"b-skeleton-".concat(r.type),!0),Lb(n,"b-skeleton-animate-".concat(a),a),Lb(n,"bg-".concat(s),s),n)}))}});function Ib(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function jb(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ib(Object(n),!0).forEach((function(e){Nb(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ib(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Nb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Fb=(0,Ue.sC)({animation:(0,Ue.Yg)(kt.vq,"wave"),icon:(0,Ue.Yg)(kt.vq),iconProps:(0,Ue.Yg)(kt.bD,{})},H.eG),zb=i.default.extend({name:H.eG,functional:!0,props:Fb,render:function(t,e){var n=e.props,i=n.icon,r=n.animation,o=t(qn,{staticClass:"b-skeleton-icon",props:jb(jb({},n.iconProps),{},{icon:i})});return t("div",{staticClass:"b-skeleton-icon-wrapper position-relative d-inline-block overflow-hidden",class:Nb({},"b-skeleton-animate-".concat(r),r)},[o])}});var Bb=(0,Ue.sC)({animation:(0,Ue.Yg)(kt.vq),aspect:(0,Ue.Yg)(kt.vq,"16:9"),cardImg:(0,Ue.Yg)(kt.vq),height:(0,Ue.Yg)(kt.vq),noAspect:(0,Ue.Yg)(kt.Ye,!1),variant:(0,Ue.Yg)(kt.vq),width:(0,Ue.Yg)(kt.vq)},H.qe),$b=i.default.extend({name:H.qe,functional:!0,props:Bb,render:function(t,e){var n,i,r,o=e.props,a=o.aspect,s=o.width,l=o.height,c=o.animation,u=o.variant,d=o.cardImg,h=t(Rb,{props:{type:"img",width:s,height:l,animation:c,variant:u},class:(n={},i="card-img-".concat(d),r=d,i in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,n)});return o.noAspect?h:t(An,{props:{aspect:a}},[h])}}),Ub=i.default.extend({methods:{hasListener:function(t){var e=this.$listeners||{},n=this._events||{};return!(0,g.b0)(e[t])||(0,g.cy)(n[t])&&n[t].length>0}}});var Hb={stacked:(0,Ue.Yg)(kt.iF,!1)},Vb=i.default.extend({props:Hb,computed:{isStacked:function(){var t=this.stacked;return""===t||t},isStackedAlways:function(){return!0===this.isStacked},stackedTableClasses:function(){var t,e,n,i=this.isStackedAlways;return t={"b-table-stacked":i},e="b-table-stacked-".concat(this.stacked),n=!i&&this.isStacked,e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}}});function Yb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function qb(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Yb(Object(n),!0).forEach((function(e){Wb(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yb(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Wb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Gb={bordered:(0,Ue.Yg)(kt.Ye,!1),borderless:(0,Ue.Yg)(kt.Ye,!1),captionTop:(0,Ue.Yg)(kt.Ye,!1),dark:(0,Ue.Yg)(kt.Ye,!1),fixed:(0,Ue.Yg)(kt.Ye,!1),hover:(0,Ue.Yg)(kt.Ye,!1),noBorderCollapse:(0,Ue.Yg)(kt.Ye,!1),outlined:(0,Ue.Yg)(kt.Ye,!1),responsive:(0,Ue.Yg)(kt.iF,!1),small:(0,Ue.Yg)(kt.Ye,!1),stickyHeader:(0,Ue.Yg)(kt.iF,!1),striped:(0,Ue.Yg)(kt.Ye,!1),tableClass:(0,Ue.Yg)(kt.VE),tableVariant:(0,Ue.Yg)(kt.vq)},Xb=i.default.extend({mixins:[si],provide:function(){return{bvTable:this}},inheritAttrs:!1,props:Gb,computed:{isResponsive:function(){var t=this.responsive;return""===t||t},isStickyHeader:function(){var t=this.stickyHeader;return t=""===t||t,!this.isStacked&&t},wrapperClasses:function(){var t=this.isResponsive;return[this.isStickyHeader?"b-table-sticky-header":"",!0===t?"table-responsive":t?"table-responsive-".concat(this.responsive):""].filter(v.D)},wrapperStyles:function(){var t=this.isStickyHeader;return t&&!(0,g.Lm)(t)?{maxHeight:t}:{}},tableClasses:function(){var t=this.hover,e=this.tableVariant;return t=this.isTableSimple?t:t&&this.computedItems.length>0&&!this.computedBusy,[this.tableClass,{"table-striped":this.striped,"table-hover":t,"table-dark":this.dark,"table-bordered":this.bordered,"table-borderless":this.borderless,"table-sm":this.small,border:this.outlined,"b-table-fixed":this.fixed,"b-table-caption-top":this.captionTop,"b-table-no-border-collapse":this.noBorderCollapse},e?"".concat(this.dark?"bg":"table","-").concat(e):"",this.stackedTableClasses,this.selectableTableClasses]},tableAttrs:function(){var t=this.computedItems,e=this.filteredItems,n=this.computedFields,i=this.selectableTableAttrs,r=this.isTableSimple?{}:{"aria-busy":this.computedBusy?"true":"false","aria-colcount":(0,oe.dI)(n.length),"aria-describedby":this.bvAttrs["aria-describedby"]||this.$refs.caption?this.captionId:null};return qb(qb(qb({"aria-rowcount":t&&e&&e.length>t.length?(0,oe.dI)(e.length):null},this.bvAttrs),{},{id:this.safeId(),role:"table"},r),i)}},render:function(t){var e=this.wrapperClasses,n=this.renderCaption,i=this.renderColgroup,r=this.renderThead,o=this.renderTbody,a=this.renderTfoot,s=[];this.isTableSimple?s.push(this.normalizeSlot()):(s.push(n?n():null),s.push(i?i():null),s.push(r?r():null),s.push(o?o():null),s.push(a?a():null));var l=t("table",{staticClass:"table b-table",class:this.tableClasses,attrs:this.tableAttrs,key:"b-table"},s.filter(v.D));return e.length>0?t("div",{class:e,style:this.wrapperStyles,key:"wrap"},[l]):l}});function Kb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Zb(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Kb(Object(n),!0).forEach((function(e){Jb(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kb(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Jb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qb=(0,Ue.sC)((0,_.di)(Zb(Zb(Zb({},Qr),Hb),Gb)),H.gT),ty=i.default.extend({name:H.gT,mixins:[si,Ub,to,qe,Xb,Vb],props:Qb,computed:{isTableSimple:function(){return!0}}});function ey(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ny(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ey(Object(n),!0).forEach((function(e){iy(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ey(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function iy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ry=function(t){return t>0},oy=(0,Ue.sC)({animation:(0,Ue.Yg)(kt.vq),columns:(0,Ue.Yg)(kt.Rn,5,ry),hideHeader:(0,Ue.Yg)(kt.Ye,!1),rows:(0,Ue.Yg)(kt.Rn,3,ry),showFooter:(0,Ue.Yg)(kt.Ye,!1),tableProps:(0,Ue.Yg)(kt.bD,{})},H.To),ay=i.default.extend({name:H.To,functional:!0,props:oy,render:function(t,e){var n=e.props,i=n.animation,r=n.columns,o=t("th",[t(Rb,{props:{animation:i}})]),a=t("tr",ne(r,o)),s=t("td",[t(Rb,{props:{width:"75%",animation:i}})]),l=t("tr",ne(r,s)),c=t("tbody",ne(n.rows,l)),u=n.hideHeader?t():t("thead",[a]),d=n.showFooter?t("tfoot",[a]):t();return t(ty,{props:ny({},n.tableProps)},[u,c,d])}}),sy=(0,Ue.sC)({loading:(0,Ue.Yg)(kt.Ye,!1)},H.A1),ly=i.default.extend({name:H.A1,functional:!0,props:sy,render:function(t,e){var n=e.data,i=e.props,r=e.slots,o=e.scopedSlots,a=r(),s=o||{},l={};return i.loading?t("div",(0,$.L)(n,{attrs:{role:"alert","aria-live":"polite","aria-busy":!0},staticClass:"b-skeleton-wrapper",key:"loading"}),Ye("loading",l,s,a)):Ye(Rt,l,s,a)}}),cy=I({components:{BSkeleton:Rb,BSkeletonIcon:zb,BSkeletonImg:$b,BSkeletonTable:ay,BSkeletonWrapper:ly}}),uy=I({components:{BSpinner:xv}});function dy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function hy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var py="light",fy="dark",my=(0,Ue.sC)({variant:(0,Ue.Yg)(kt.vq)},H.Pf),vy=i.default.extend({name:H.Pf,mixins:[si,ci,qe],provide:function(){return{bvTableTr:this}},inject:{bvTableRowGroup:{default:function(){return{}}}},inheritAttrs:!1,props:my,computed:{inTbody:function(){return this.bvTableRowGroup.isTbody},inThead:function(){return this.bvTableRowGroup.isThead},inTfoot:function(){return this.bvTableRowGroup.isTfoot},isDark:function(){return this.bvTableRowGroup.isDark},isStacked:function(){return this.bvTableRowGroup.isStacked},isResponsive:function(){return this.bvTableRowGroup.isResponsive},isStickyHeader:function(){return this.bvTableRowGroup.isStickyHeader},hasStickyHeader:function(){return!this.isStacked&&this.bvTableRowGroup.hasStickyHeader},tableVariant:function(){return this.bvTableRowGroup.tableVariant},headVariant:function(){return this.inThead?this.bvTableRowGroup.headVariant:null},footVariant:function(){return this.inTfoot?this.bvTableRowGroup.footVariant:null},isRowDark:function(){return this.headVariant!==py&&this.footVariant!==py&&(this.headVariant===fy||this.footVariant===fy||this.isDark)},trClasses:function(){var t=this.variant;return[t?"".concat(this.isRowDark?"bg":"table","-").concat(t):null]},trAttrs:function(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dy(Object(n),!0).forEach((function(e){hy(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dy(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({role:"row"},this.bvAttrs)}},render:function(t){return t("tr",{class:this.trClasses,attrs:this.trAttrs,on:this.bvListeners},this.normalizeSlot())}}),gy={},by=i.default.extend({props:gy,methods:{renderBottomRow:function(){var t=this.computedFields,e=this.stacked,n=this.tbodyTrClass,i=this.tbodyTrAttr,r=this.$createElement;return this.hasNormalizedSlot(Mt)&&!0!==e&&""!==e?r(vy,{staticClass:"b-table-bottom-row",class:[(0,g.Tn)(n)?n(null,"row-bottom"):n],attrs:(0,g.Tn)(i)?i(null,"row-bottom"):i,key:"b-bottom-row"},this.normalizeSlot(Mt,{columns:t.length,fields:t})):r()}}});function yy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function _y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?yy(Object(n),!0).forEach((function(e){wy(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yy(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function wy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xy=function(t){return(t=(0,re.yJ)(t,0))>0?t:null},Cy=function(t){return(0,g.z)(t)||xy(t)>0},Sy=(0,Ue.sC)({colspan:(0,Ue.Yg)(kt.$$,null,Cy),rowspan:(0,Ue.Yg)(kt.$$,null,Cy),stackedHeading:(0,Ue.Yg)(kt.vq),stickyColumn:(0,Ue.Yg)(kt.Ye,!1),variant:(0,Ue.Yg)(kt.vq)},H.aV),Ey=i.default.extend({name:H.aV,mixins:[si,ci,qe],inject:{bvTableTr:{default:function(){return{}}}},inheritAttrs:!1,props:Sy,computed:{tag:function(){return"td"},inTbody:function(){return this.bvTableTr.inTbody},inThead:function(){return this.bvTableTr.inThead},inTfoot:function(){return this.bvTableTr.inTfoot},isDark:function(){return this.bvTableTr.isDark},isStacked:function(){return this.bvTableTr.isStacked},isStackedCell:function(){return this.inTbody&&this.isStacked},isResponsive:function(){return this.bvTableTr.isResponsive},isStickyHeader:function(){return this.bvTableTr.isStickyHeader},hasStickyHeader:function(){return this.bvTableTr.hasStickyHeader},isStickyColumn:function(){return!this.isStacked&&(this.isResponsive||this.hasStickyHeader)&&this.stickyColumn},rowVariant:function(){return this.bvTableTr.variant},headVariant:function(){return this.bvTableTr.headVariant},footVariant:function(){return this.bvTableTr.footVariant},tableVariant:function(){return this.bvTableTr.tableVariant},computedColspan:function(){return xy(this.colspan)},computedRowspan:function(){return xy(this.rowspan)},cellClasses:function(){var t=this.variant,e=this.headVariant,n=this.isStickyColumn;return(!t&&this.isStickyHeader&&!e||!t&&n&&this.inTfoot&&!this.footVariant||!t&&n&&this.inThead&&!e||!t&&n&&this.inTbody)&&(t=this.rowVariant||this.tableVariant||"b-table-default"),[t?"".concat(this.isDark?"bg":"table","-").concat(t):null,n?"b-table-sticky-column":null]},cellAttrs:function(){var t=this.stackedHeading,e=this.inThead||this.inTfoot,n=this.computedColspan,i=this.computedRowspan,r="cell",o=null;return e?(r="columnheader",o=n>0?"colspan":"col"):fe(this.tag,"th")&&(r="rowheader",o=i>0?"rowgroup":"row"),_y(_y({colspan:n,rowspan:i,role:r,scope:o},this.bvAttrs),{},{"data-label":this.isStackedCell&&!(0,g.z)(t)?(0,oe.dI)(t):null})}},render:function(t){var e=[this.normalizeSlot()];return t(this.tag,{class:this.cellClasses,attrs:this.cellAttrs,on:this.bvListeners},[this.isStackedCell?t("div",[e]):e])}});var Ty,Oy,ky,Ay="busy",Py=St+Ay,My=(Ty={},Oy=Ay,ky=(0,Ue.Yg)(kt.Ye,!1),Oy in Ty?Object.defineProperty(Ty,Oy,{value:ky,enumerable:!0,configurable:!0,writable:!0}):Ty[Oy]=ky,Ty),Ly=i.default.extend({props:My,data:function(){return{localBusy:!1}},computed:{computedBusy:function(){return this[Ay]||this.localBusy}},watch:{localBusy:function(t,e){t!==e&&this.$emit(Py,t)}},methods:{stopIfBusy:function(t){return!!this.computedBusy&&(Ze(t),!0)},renderBusy:function(){var t=this.tbodyTrClass,e=this.tbodyTrAttr,n=this.$createElement;return this.computedBusy&&this.hasNormalizedSlot(Wt)?n(vy,{staticClass:"b-table-busy-slot",class:[(0,g.Tn)(t)?t(null,Wt):t],attrs:(0,g.Tn)(e)?e(null,Wt):e,key:"table-busy-slot"},[n(Ey,{props:{colspan:this.computedFields.length||null}},[this.normalizeSlot(Wt)])]):null}}}),Dy={caption:(0,Ue.Yg)(kt.vq),captionHtml:(0,Ue.Yg)(kt.vq)},Ry=i.default.extend({props:Dy,computed:{captionId:function(){return this.isStacked?this.safeId("_caption_"):null}},methods:{renderCaption:function(){var t=this.caption,e=this.captionHtml,n=this.$createElement,i=n(),r=this.hasNormalizedSlot(Gt);return(r||t||e)&&(i=n("caption",{attrs:{id:this.captionId},domProps:r?{}:er(e,t),key:"caption",ref:"caption"},this.normalizeSlot(Gt))),i}}}),Iy={},jy=i.default.extend({methods:{renderColgroup:function(){var t=this.computedFields,e=this.$createElement,n=e();return this.hasNormalizedSlot(Xt)&&(n=e("colgroup",{key:"colgroup"},[this.normalizeSlot(Xt,{columns:t.length,fields:t})])),n}}}),Ny={emptyFilteredHtml:(0,Ue.Yg)(kt.vq),emptyFilteredText:(0,Ue.Yg)(kt.vq,"There are no records matching your request"),emptyHtml:(0,Ue.Yg)(kt.vq),emptyText:(0,Ue.Yg)(kt.vq,"There are no records to show"),showEmpty:(0,Ue.Yg)(kt.Ye,!1)},Fy=i.default.extend({props:Ny,methods:{renderEmpty:function(){var t=this.computedItems,e=this.$createElement,n=e();if(this.showEmpty&&(!t||0===t.length)&&(!this.computedBusy||!this.hasNormalizedSlot(Wt))){var i=this.computedFields,r=this.isFiltered,o=this.emptyText,a=this.emptyHtml,s=this.emptyFilteredText,l=this.emptyFilteredHtml,c=this.tbodyTrClass,u=this.tbodyTrAttr;(n=this.normalizeSlot(r?"emptyfiltered":It,{emptyFilteredHtml:l,emptyFilteredText:s,emptyHtml:a,emptyText:o,fields:i,items:t}))||(n=e("div",{class:["text-center","my-2"],domProps:r?er(l,s):er(a,o)})),n=e(Ey,{props:{colspan:i.length||null}},[e("div",{attrs:{role:"alert","aria-live":"polite"}},[n])]),n=e(vy,{staticClass:"b-table-empty-row",class:[(0,g.Tn)(c)?c(null,"row-empty"):c],attrs:(0,g.Tn)(u)?u(null,"row-empty"):u,key:r?"b-empty-filtered-row":"b-empty-row"},[n])}return n}}}),zy=function t(e){return(0,g.z)(e)?"":(0,g.Gv)(e)&&!(0,g.$P)(e)?(0,_.HP)(e).sort().map((function(n){return t(e[n])})).filter((function(t){return!!t})).join(" "):(0,oe.dI)(e)};function By(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function $y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?By(Object(n),!0).forEach((function(e){Uy(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):By(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Uy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Hy="_cellVariants",Vy="_rowVariant",Yy="_showDetails",qy=[Hy,Vy,Yy].reduce((function(t,e){return $y($y({},t),{},Uy({},e,!0))}),{}),Wy=["a","a *","button","button *","input:not(.disabled):not([disabled])","select:not(.disabled):not([disabled])","textarea:not(.disabled):not([disabled])",'[role="link"]','[role="link"] *','[role="button"]','[role="button"] *',"[tabindex]:not(.disabled):not([disabled])"].join(","),Gy=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=(0,_.HP)(i).reduce((function(e,n){var r=i[n],o=r.filterByFormatted,a=(0,g.Tn)(o)?o:o?r.formatter:null;return(0,g.Tn)(a)&&(e[n]=a(t[n],n,t)),e}),(0,_.o8)(t)),o=(0,_.HP)(r).filter((function(t){return!(qy[t]||(0,g.cy)(e)&&e.length>0&&te(e,t)||(0,g.cy)(n)&&n.length>0&&!te(n,t))}));return(0,_.Up)(r,o)};function Xy(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var Ky={filter:(0,Ue.Yg)([].concat(function(t){return function(t){if(Array.isArray(t))return Xy(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Xy(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xy(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(kt.VE),[kt.sV])),filterDebounce:(0,Ue.Yg)(kt.$$,0,(function(t){return m._$.test(String(t))})),filterFunction:(0,Ue.Yg)(kt.KF),filterIgnoredFields:(0,Ue.Yg)(kt.Rl,[]),filterIncludedFields:(0,Ue.Yg)(kt.Rl,[])},Zy=i.default.extend({props:Ky,data:function(){return{isFiltered:!1,localFilter:this.filterSanitize(this.filter)}},computed:{computedFilterIgnored:function(){return ee(this.filterIgnoredFields||[]).filter(v.D)},computedFilterIncluded:function(){return ee(this.filterIncludedFields||[]).filter(v.D)},computedFilterDebounce:function(){var t=(0,re.yJ)(this.filterDebounce,0);return t>0&&C('Prop "filter-debounce" is deprecated. Use the debounce feature of "<b-form-input>" instead.',H.rz),t},localFiltering:function(){return!this.hasProvider||!!this.noProviderFiltering},filteredCheck:function(){return{filteredItems:this.filteredItems,localItems:this.localItems,localFilter:this.localFilter}},localFilterFn:function(){var t=this.filterFunction;return(0,Ue.mV)(t)?t:null},filteredItems:function(){var t=this.localItems,e=this.localFilter,n=this.localFiltering?this.filterFnFactory(this.localFilterFn,e)||this.defaultFilterFnFactory(e):null;return n&&t.length>0?t.filter(n):t}},watch:{computedFilterDebounce:function(t){!t&&this.$_filterTimer&&(this.clearFilterTimer(),this.localFilter=this.filterSanitize(this.filter))},filter:{deep:!0,handler:function(t){var e=this,n=this.computedFilterDebounce;this.clearFilterTimer(),n&&n>0?this.$_filterTimer=setTimeout((function(){e.localFilter=e.filterSanitize(t)}),n):this.localFilter=this.filterSanitize(t)}},filteredCheck:function(t){var e=t.filteredItems,n=t.localFilter,i=!1;n?ni(n,[])||ni(n,{})?i=!1:n&&(i=!0):i=!1,i&&this.$emit(tt,e,e.length),this.isFiltered=i},isFiltered:function(t,e){if(!1===t&&!0===e){var n=this.localItems;this.$emit(tt,n,n.length)}}},created:function(){var t=this;this.$_filterTimer=null,this.$nextTick((function(){t.isFiltered=Boolean(t.localFilter)}))},beforeDestroy:function(){this.clearFilterTimer()},methods:{clearFilterTimer:function(){clearTimeout(this.$_filterTimer),this.$_filterTimer=null},filterSanitize:function(t){return!this.localFiltering||this.localFilterFn||(0,g.Kg)(t)||(0,g.gd)(t)?(0,f.m)(t):""},filterFnFactory:function(t,e){if(!t||!(0,g.Tn)(t)||!e||ni(e,[])||ni(e,{}))return null;return function(n){return t(n,e)}},defaultFilterFnFactory:function(t){var e=this;if(!t||!(0,g.Kg)(t)&&!(0,g.gd)(t))return null;var n=t;if((0,g.Kg)(n)){var i=(0,oe.Nt)(t).replace(m.DS,"\\s+");n=new RegExp(".*".concat(i,".*"),"i")}return function(t){return n.lastIndex=0,n.test((i=t,r=e.computedFilterIgnored,o=e.computedFilterIncluded,a=e.computedFieldsObj,(0,g.Gv)(i)?zy(Gy(i,r,o,a)):""));var i,r,o,a}}}}),Jy=function(t,e){var n=[];if((0,g.cy)(t)&&t.filter(v.D).forEach((function(t){if((0,g.Kg)(t))n.push({key:t,label:(0,oe.NZ)(t)});else if((0,g.Gv)(t)&&t.key&&(0,g.Kg)(t.key))n.push((0,_.o8)(t));else if((0,g.Gv)(t)&&1===(0,_.HP)(t).length){var e=(0,_.HP)(t)[0],i=function(t,e){var n=null;return(0,g.Kg)(e)?n={key:t,label:e}:(0,g.Tn)(e)?n={key:t,formatter:e}:(0,g.Gv)(e)?(n=(0,_.o8)(e)).key=n.key||t:!1!==e&&(n={key:t}),n}(e,t[e]);i&&n.push(i)}})),0===n.length&&(0,g.cy)(e)&&e.length>0){var i=e[0];(0,_.HP)(i).forEach((function(t){qy[t]||n.push({key:t,label:(0,oe.NZ)(t)})}))}var r={};return n.filter((function(t){return!r[t.key]&&(r[t.key]=!0,t.label=(0,g.Kg)(t.label)?t.label:(0,oe.NZ)(t.key),!0)}))};function Qy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function t_(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qy(Object(n),!0).forEach((function(e){e_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qy(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function e_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var n_=He("value",{type:kt.Rl,defaultValue:[]}),i_=n_.mixin,r_=n_.props,o_=n_.prop,a_=n_.event,s_=(0,_.di)(t_(t_({},r_),{},e_({fields:(0,Ue.Yg)(kt.Rl,null),items:(0,Ue.Yg)(kt.Rl,[]),primaryKey:(0,Ue.Yg)(kt.vq)},o_,(0,Ue.Yg)(kt.Rl,[])))),l_=i.default.extend({mixins:[i_],props:s_,data:function(){var t=this.items;return{localItems:(0,g.cy)(t)?t.slice():[]}},computed:{computedFields:function(){return Jy(this.fields,this.localItems)},computedFieldsObj:function(){var t=this.$parent;return this.computedFields.reduce((function(e,n){if(e[n.key]=(0,_.o8)(n),n.formatter){var i=n.formatter;(0,g.Kg)(i)&&(0,g.Tn)(t[i])?i=t[i]:(0,g.Tn)(i)||(i=void 0),e[n.key].formatter=i}return e}),{})},computedItems:function(){return(this.paginatedItems||this.sortedItems||this.filteredItems||this.localItems||[]).slice()},context:function(){return{filter:this.localFilter,sortBy:this.localSortBy,sortDesc:this.localSortDesc,perPage:(0,Sn.JB)((0,re.yJ)(this.perPage,0),0),currentPage:(0,Sn.JB)((0,re.yJ)(this.currentPage,0),1),apiUrl:this.apiUrl}}},watch:{items:function(t){this.localItems=(0,g.cy)(t)?t.slice():[]},computedItems:function(t,e){ni(t,e)||this.$emit(a_,t)},context:function(t,e){ni(t,e)||this.$emit(G,t)}},mounted:function(){this.$emit(a_,this.computedItems)},methods:{getFieldFormatter:function(t){var e=this.computedFieldsObj[t];return e?e.formatter:void 0}}}),c_={currentPage:(0,Ue.Yg)(kt.$$,1),perPage:(0,Ue.Yg)(kt.$$,0)},u_=i.default.extend({props:c_,computed:{localPaging:function(){return!this.hasProvider||!!this.noProviderPaging},paginatedItems:function(){var t=this.sortedItems||this.filteredItems||this.localItems||[],e=(0,Sn.JB)((0,re.yJ)(this.currentPage,1),1),n=(0,Sn.JB)((0,re.yJ)(this.perPage,0),0);return this.localPaging&&n&&(t=t.slice((e-1)*n,e*n)),t}}}),d_=Qe(H.rz,mt),h_=tn(H.rz,"refresh"),p_={apiUrl:(0,Ue.Yg)(kt.vq),items:(0,Ue.Yg)(kt.y4,[]),noProviderFiltering:(0,Ue.Yg)(kt.Ye,!1),noProviderPaging:(0,Ue.Yg)(kt.Ye,!1),noProviderSorting:(0,Ue.Yg)(kt.Ye,!1)},f_=i.default.extend({mixins:[li],props:p_,computed:{hasProvider:function(){return(0,g.Tn)(this.items)},providerTriggerContext:function(){var t={apiUrl:this.apiUrl,filter:null,sortBy:null,sortDesc:null,perPage:null,currentPage:null};return this.noProviderFiltering||(t.filter=this.localFilter),this.noProviderSorting||(t.sortBy=this.localSortBy,t.sortDesc=this.localSortDesc),this.noProviderPaging||(t.perPage=this.perPage,t.currentPage=this.currentPage),(0,_.o8)(t)}},watch:{items:function(t){(this.hasProvider||(0,g.Tn)(t))&&this.$nextTick(this._providerUpdate)},providerTriggerContext:function(t,e){ni(t,e)||this.$nextTick(this._providerUpdate)}},mounted:function(){var t=this;!this.hasProvider||this.localItems&&0!==this.localItems.length||this._providerUpdate(),this.listenOnRoot(h_,(function(e){e!==t.id&&e!==t||t.refresh()}))},methods:{refresh:function(){var t=this.items,e=this.refresh;this.$off(mt,e),this.computedBusy?this.localBusy&&this.hasProvider&&this.$on(mt,e):(this.clearSelected(),this.hasProvider?this.$nextTick(this._providerUpdate):this.localItems=(0,g.cy)(t)?t.slice():[])},_providerSetLocal:function(t){this.localItems=(0,g.cy)(t)?t.slice():[],this.localBusy=!1,this.$emit(mt),this.id&&this.emitOnRoot(d_,this.id)},_providerUpdate:function(){var t=this;this.hasProvider&&(this.computedBusy?this.$nextTick(this.refresh):(this.localBusy=!0,this.$nextTick((function(){try{var e=t.items(t.context,t._providerSetLocal);(0,g.yL)(e)?e.then((function(e){t._providerSetLocal(e)})):(0,g.cy)(e)?t._providerSetLocal(e):2!==t.items.length&&(C("Provider function didn't request callback and did not return a promise or data.",H.rz),t.localBusy=!1)}catch(e){C("Provider function error [".concat(e.name,"] ").concat(e.message,"."),H.rz),t.localBusy=!1,t.$off(mt,t.refresh)}}))))}}});function m_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var v_,g_,b_=["range","multi","single"],y_={noSelectOnClick:(0,Ue.Yg)(kt.Ye,!1),selectMode:(0,Ue.Yg)(kt.vq,"multi",(function(t){return te(b_,t)})),selectable:(0,Ue.Yg)(kt.Ye,!1),selectedVariant:(0,Ue.Yg)(kt.vq,"active")},__=i.default.extend({props:y_,data:function(){return{selectedRows:[],selectedLastRow:-1}},computed:{isSelectable:function(){return this.selectable&&this.selectMode},hasSelectableRowClick:function(){return this.isSelectable&&!this.noSelectOnClick},supportsSelectableRows:function(){return!0},selectableHasSelection:function(){var t=this.selectedRows;return this.isSelectable&&t&&t.length>0&&t.some(v.D)},selectableIsMultiSelect:function(){return this.isSelectable&&te(["range","multi"],this.selectMode)},selectableTableClasses:function(){var t,e=this.isSelectable;return m_(t={"b-table-selectable":e},"b-table-select-".concat(this.selectMode),e),m_(t,"b-table-selecting",this.selectableHasSelection),m_(t,"b-table-selectable-no-click",e&&!this.hasSelectableRowClick),t},selectableTableAttrs:function(){return{"aria-multiselectable":this.isSelectable?this.selectableIsMultiSelect?"true":"false":null}}},watch:{computedItems:function(t,e){var n=!1;if(this.isSelectable&&this.selectedRows.length>0){n=(0,g.cy)(t)&&(0,g.cy)(e)&&t.length===e.length;for(var i=0;n&&i<t.length;i++)n=ni(Gy(t[i]),Gy(e[i]))}n||this.clearSelected()},selectable:function(t){this.clearSelected(),this.setSelectionHandlers(t)},selectMode:function(){this.clearSelected()},hasSelectableRowClick:function(t){this.clearSelected(),this.setSelectionHandlers(!t)},selectedRows:function(t,e){var n=this;if(this.isSelectable&&!ni(t,e)){var i=[];t.forEach((function(t,e){t&&i.push(n.computedItems[e])})),this.$emit("row-selected",i)}}},beforeMount:function(){this.isSelectable&&this.setSelectionHandlers(!0)},methods:{selectRow:function(t){if(this.isSelectable&&(0,g.Et)(t)&&t>=0&&t<this.computedItems.length&&!this.isRowSelected(t)){var e=this.selectableIsMultiSelect?this.selectedRows.slice():[];e[t]=!0,this.selectedLastClicked=-1,this.selectedRows=e}},unselectRow:function(t){if(this.isSelectable&&(0,g.Et)(t)&&this.isRowSelected(t)){var e=this.selectedRows.slice();e[t]=!1,this.selectedLastClicked=-1,this.selectedRows=e}},selectAllRows:function(){var t=this.computedItems.length;this.isSelectable&&t>0&&(this.selectedLastClicked=-1,this.selectedRows=this.selectableIsMultiSelect?ne(t,!0):[!0])},isRowSelected:function(t){return!(!(0,g.Et)(t)||!this.selectedRows[t])},clearSelected:function(){this.selectedLastClicked=-1,this.selectedRows=[]},selectableRowClasses:function(t){if(this.isSelectable&&this.isRowSelected(t)){var e=this.selectedVariant;return m_({"b-table-row-selected":!0},"".concat(this.dark?"bg":"table","-").concat(e),e)}return{}},selectableRowAttrs:function(t){return{"aria-selected":this.isSelectable?this.isRowSelected(t)?"true":"false":null}},setSelectionHandlers:function(t){var e=t&&!this.noSelectOnClick?"$on":"$off";this[e](vt,this.selectionHandler),this[e](tt,this.clearSelected),this[e](G,this.clearSelected)},selectionHandler:function(t,e,n){if(this.isSelectable&&!this.noSelectOnClick){var i=this.selectMode,r=this.selectedLastRow,o=this.selectedRows.slice(),a=!o[e];if("single"===i)o=[];else if("range"===i)if(r>-1&&n.shiftKey){for(var s=(0,Sn.rp)(r,e);s<=(0,Sn.JB)(r,e);s++)o[s]=!0;a=!0}else n.ctrlKey||n.metaKey||(o=[],a=!0),this.selectedLastRow=a?e:-1;o[e]=a,this.selectedRows=o}else this.clearSelected()}}}),w_=function(t,e){return t.map((function(t,e){return[e,t]})).sort(function(t,e){return this(t[1],e[1])||t[0]-e[0]}.bind(e)).map((function(t){return t[1]}))},x_=function(t){return(0,g.z)(t)?"":(0,g.kf)(t)?(0,re.SP)(t,t):t};function C_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function S_(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?C_(Object(n),!0).forEach((function(e){E_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function E_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var T_="sortBy",O_=St+T_,k_="sortDesc",A_=St+k_,P_="asc",M_="desc",L_=[P_,M_,"last"],D_=(E_(v_={labelSortAsc:(0,Ue.Yg)(kt.vq,"Click to sort Ascending"),labelSortClear:(0,Ue.Yg)(kt.vq,"Click to clear sorting"),labelSortDesc:(0,Ue.Yg)(kt.vq,"Click to sort Descending"),noFooterSorting:(0,Ue.Yg)(kt.Ye,!1),noLocalSorting:(0,Ue.Yg)(kt.Ye,!1),noSortReset:(0,Ue.Yg)(kt.Ye,!1)},T_,(0,Ue.Yg)(kt.vq)),E_(v_,"sortCompare",(0,Ue.Yg)(kt.KF)),E_(v_,"sortCompareLocale",(0,Ue.Yg)(kt.vj)),E_(v_,"sortCompareOptions",(0,Ue.Yg)(kt.bD,{numeric:!0})),E_(v_,k_,(0,Ue.Yg)(kt.Ye,!1)),E_(v_,"sortDirection",(0,Ue.Yg)(kt.vq,P_,(function(t){return te(L_,t)}))),E_(v_,"sortIconLeft",(0,Ue.Yg)(kt.Ye,!1)),E_(v_,"sortNullLast",(0,Ue.Yg)(kt.Ye,!1)),v_),R_=i.default.extend({props:D_,data:function(){return{localSortBy:this[T_]||"",localSortDesc:this[k_]||!1}},computed:{localSorting:function(){return this.hasProvider?!!this.noProviderSorting:!this.noLocalSorting},isSortable:function(){return this.computedFields.some((function(t){return t.sortable}))},sortedItems:function(){var t=this.localSortBy,e=this.localSortDesc,n=this.sortCompareLocale,i=this.sortNullLast,r=this.sortCompare,o=this.localSorting,a=(this.filteredItems||this.localItems||[]).slice(),s=S_(S_({},this.sortCompareOptions),{},{usage:"sort"});if(t&&o){var l=(this.computedFieldsObj[t]||{}).sortByFormatted,c=(0,g.Tn)(l)?l:l?this.getFieldFormatter(t):void 0;return w_(a,(function(o,a){var l=null;return(0,g.Tn)(r)&&(l=r(o,a,t,e,c,s,n)),((0,g.z)(l)||!1===l)&&(l=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.sortBy,r=void 0===i?null:i,o=n.formatter,a=void 0===o?null:o,s=n.locale,l=void 0===s?void 0:s,c=n.localeOptions,u=void 0===c?{}:c,d=n.nullLast,h=void 0!==d&&d,p=y(t,r,null),f=y(e,r,null);return(0,g.Tn)(a)&&(p=a(p,r,t),f=a(f,r,e)),p=x_(p),f=x_(f),(0,g.$P)(p)&&(0,g.$P)(f)||(0,g.Et)(p)&&(0,g.Et)(f)?p<f?-1:p>f?1:0:h&&""===p&&""!==f?1:h&&""!==p&&""===f?-1:zy(p).localeCompare(zy(f),l,u)}(o,a,{sortBy:t,formatter:c,locale:n,localeOptions:s,nullLast:i})),(l||0)*(e?-1:1)}))}return a}},watch:(g_={isSortable:function(t){t?this.isSortable&&this.$on(rt,this.handleSort):this.$off(rt,this.handleSort)}},E_(g_,k_,(function(t){t!==this.localSortDesc&&(this.localSortDesc=t||!1)})),E_(g_,T_,(function(t){t!==this.localSortBy&&(this.localSortBy=t||"")})),E_(g_,"localSortDesc",(function(t,e){t!==e&&this.$emit(A_,t)})),E_(g_,"localSortBy",(function(t,e){t!==e&&this.$emit(O_,t)})),g_),created:function(){this.isSortable&&this.$on(rt,this.handleSort)},methods:{handleSort:function(t,e,n,i){var r=this;if(this.isSortable&&(!i||!this.noFooterSorting)){var o=!1,a=function(){var t=e.sortDirection||r.sortDirection;t===P_?r.localSortDesc=!1:t===M_&&(r.localSortDesc=!0)};if(e.sortable){var s=!this.localSorting&&e.sortKey?e.sortKey:t;this.localSortBy===s?this.localSortDesc=!this.localSortDesc:(this.localSortBy=s,a()),o=!0}else this.localSortBy&&!this.noSortReset&&(this.localSortBy="",a(),o=!0);o&&this.$emit("sort-changed",this.context)}},sortTheadThClasses:function(t,e,n){return{"b-table-sort-icon-left":e.sortable&&this.sortIconLeft&&!(n&&this.noFooterSorting)}},sortTheadThAttrs:function(t,e,n){if(!this.isSortable||n&&this.noFooterSorting)return{};var i=e.sortable;return{"aria-sort":i&&this.localSortBy===t?this.localSortDesc?"descending":"ascending":i?"none":null}},sortTheadThLabel:function(t,e,n){if(!this.isSortable||n&&this.noFooterSorting)return null;var i="";if(e.sortable)if(this.localSortBy===t)i=this.localSortDesc?this.labelSortAsc:this.labelSortDesc;else{i=this.localSortDesc?this.labelSortDesc:this.labelSortAsc;var r=this.sortDirection||e.sortDirection;r===P_?i=this.labelSortAsc:r===M_&&(i=this.labelSortDesc)}else this.noSortReset||(i=this.localSortBy?this.labelSortClear:"");return(0,oe.Bq)(i)||null}}});function I_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function j_(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?I_(Object(n),!0).forEach((function(e){N_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function N_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var F_=(0,Ue.sC)({tbodyTransitionHandlers:(0,Ue.Yg)(kt.bD),tbodyTransitionProps:(0,Ue.Yg)(kt.bD)},H.vl),z_=i.default.extend({name:H.vl,mixins:[si,ci,qe],provide:function(){return{bvTableRowGroup:this}},inject:{bvTable:{default:function(){return{}}}},inheritAttrs:!1,props:F_,computed:{isTbody:function(){return!0},isDark:function(){return this.bvTable.dark},isStacked:function(){return this.bvTable.isStacked},isResponsive:function(){return this.bvTable.isResponsive},isStickyHeader:function(){return!1},hasStickyHeader:function(){return!this.isStacked&&this.bvTable.stickyHeader},tableVariant:function(){return this.bvTable.tableVariant},isTransitionGroup:function(){return this.tbodyTransitionProps||this.tbodyTransitionHandlers},tbodyAttrs:function(){return j_({role:"rowgroup"},this.bvAttrs)},tbodyProps:function(){var t=this.tbodyTransitionProps;return t?j_(j_({},t),{},{tag:"tbody"}):{}}},render:function(t){var e={props:this.tbodyProps,attrs:this.tbodyAttrs};return this.isTransitionGroup?(e.on=this.tbodyTransitionHandlers||{},e.nativeOn=this.bvListeners):e.on=this.bvListeners,t(this.isTransitionGroup?"transition-group":"tbody",e,this.normalizeSlot())}}),B_=["TD","TH","TR"],$_=function(t){if(!t||!t.target)return!1;var e=t.target;if(e.disabled||-1!==B_.indexOf(e.tagName))return!1;if(xe(".dropdown-menu",e))return!0;var n="LABEL"===e.tagName?e:xe("label",e);if(n){var i=Pe(n,"for"),r=i?Se(i):_e("input, select, textarea",n);if(r&&!r.disabled)return!0}return we(e,Wy)},U_=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=h.jf.getSelection?h.jf.getSelection():null;return!!(e&&""!==e.toString().trim()&&e.containsNode&&he(t))&&e.containsNode(t,!0)},H_=(0,Ue.sC)(Sy,H.P2),V_=i.default.extend({name:H.P2,extends:Ey,props:H_,computed:{tag:function(){return"th"}}});function Y_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function q_(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Y_(Object(n),!0).forEach((function(e){W_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function W_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function G_(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var X_={detailsTdClass:(0,Ue.Yg)(kt.VE),tbodyTrAttr:(0,Ue.Yg)(kt.YU),tbodyTrClass:(0,Ue.Yg)([].concat(function(t){return function(t){if(Array.isArray(t))return G_(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return G_(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return G_(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(kt.VE),[kt.KF]))},K_=i.default.extend({props:X_,methods:{getTdValues:function(t,e,n,i){var r=this.$parent;if(n){var o=y(t,e,"");return(0,g.Tn)(n)?n(o,e,t):(0,g.Kg)(n)&&(0,g.Tn)(r[n])?r[n](o,e,t):n}return i},getThValues:function(t,e,n,i,r){var o=this.$parent;if(n){var a=y(t,e,"");return(0,g.Tn)(n)?n(a,e,t,i):(0,g.Kg)(n)&&(0,g.Tn)(o[n])?o[n](a,e,t,i):n}return r},getFormattedValue:function(t,e){var n=e.key,i=this.getFieldFormatter(n),r=y(t,n,null);return(0,g.Tn)(i)&&(r=i(r,n,t)),(0,g.z)(r)?"":r},toggleDetailsFactory:function(t,e){var n=this;return function(){t&&n.$set(e,Yy,!e[Yy])}},rowHovered:function(t){this.tbodyRowEvtStopped(t)||this.emitTbodyRowEvent("row-hovered",t)},rowUnhovered:function(t){this.tbodyRowEvtStopped(t)||this.emitTbodyRowEvent("row-unhovered",t)},renderTbodyRowCell:function(t,e,n,i){var r=this,o=this.isStacked,a=t.key,s=t.label,l=t.isRowHeader,c=this.$createElement,u=this.hasNormalizedSlot(qt),d=this.getFormattedValue(n,t),h=!o&&(this.isResponsive||this.stickyHeader)&&t.stickyColumn,p=h?l?V_:Ey:l?"th":"td",f=n[Hy]&&n[Hy][a]?n[Hy][a]:t.variant||null,m={class:[t.class?t.class:"",this.getTdValues(n,a,t.tdClass,"")],props:{},attrs:q_({"aria-colindex":String(e+1)},l?this.getThValues(n,a,t.thAttr,"row",{}):this.getTdValues(n,a,t.tdAttr,{})),key:"row-".concat(i,"-cell-").concat(e,"-").concat(a)};h?m.props={stackedHeading:o?s:null,stickyColumn:!0,variant:f}:(m.attrs["data-label"]=o&&!(0,g.z)(s)?(0,oe.dI)(s):null,m.attrs.role=l?"rowheader":"cell",m.attrs.scope=l?"row":null,f&&m.class.push("".concat(this.dark?"bg":"table","-").concat(f)));var v={item:n,index:i,field:t,unformatted:y(n,a,""),value:d,toggleDetails:this.toggleDetailsFactory(u,n),detailsShowing:Boolean(n[Yy])};this.supportsSelectableRows&&(v.rowSelected=this.isRowSelected(i),v.selectRow=function(){return r.selectRow(i)},v.unselectRow=function(){return r.unselectRow(i)});var b=this.$_bodyFieldSlotNameCache[a],_=b?this.normalizeSlot(b,v):(0,oe.dI)(d);return this.isStacked&&(_=[c("div",[_])]),c(p,m,[_])},renderTbodyRow:function(t,e){var n=this,i=this.computedFields,r=this.striped,o=this.primaryKey,a=this.currentPage,s=this.perPage,l=this.tbodyTrClass,c=this.tbodyTrAttr,u=this.$createElement,d=this.hasNormalizedSlot(qt),h=t[Yy]&&d,p=this.$listeners[vt]||this.hasSelectableRowClick,f=[],m=h?this.safeId("_details_".concat(e,"_")):null,v=i.map((function(i,r){return n.renderTbodyRowCell(i,r,t,e)})),b=null;a&&s&&s>0&&(b=String((a-1)*s+e+1));var _=(0,oe.dI)(y(t,o))||null,w=_||(0,oe.dI)(e),x=_?this.safeId("_row_".concat(_)):null,C=this.selectableRowClasses?this.selectableRowClasses(e):{},S=this.selectableRowAttrs?this.selectableRowAttrs(e):{},E=(0,g.Tn)(l)?l(t,"row"):l,T=(0,g.Tn)(c)?c(t,"row"):c;if(f.push(u(vy,{class:[E,C,h?"b-table-has-details":""],props:{variant:t[Vy]||null},attrs:q_(q_({id:x},T),{},{tabindex:p?"0":null,"data-pk":_||null,"aria-details":m,"aria-owns":m,"aria-rowindex":b},S),on:{mouseenter:this.rowHovered,mouseleave:this.rowUnhovered},key:"__b-table-row-".concat(w,"__"),ref:"item-rows",refInFor:!0},v)),h){var O={item:t,index:e,fields:i,toggleDetails:this.toggleDetailsFactory(d,t)};this.supportsSelectableRows&&(O.rowSelected=this.isRowSelected(e),O.selectRow=function(){return n.selectRow(e)},O.unselectRow=function(){return n.unselectRow(e)});var k=u(Ey,{props:{colspan:i.length},class:this.detailsTdClass},[this.normalizeSlot(qt,O)]);r&&f.push(u("tr",{staticClass:"d-none",attrs:{"aria-hidden":"true",role:"presentation"},key:"__b-table-details-stripe__".concat(w)}));var A=(0,g.Tn)(this.tbodyTrClass)?this.tbodyTrClass(t,qt):this.tbodyTrClass,P=(0,g.Tn)(this.tbodyTrAttr)?this.tbodyTrAttr(t,qt):this.tbodyTrAttr;f.push(u(vy,{staticClass:"b-table-details",class:[A],props:{variant:t[Vy]||null},attrs:q_(q_({},P),{},{id:m,tabindex:"-1"}),key:"__b-table-details__".concat(w)},[k]))}else d&&(f.push(u()),r&&f.push(u()));return f}}});function Z_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function J_(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Z_(Object(n),!0).forEach((function(e){Q_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Z_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Q_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var tw=function(t){return"cell(".concat(t||"",")")},ew=(0,_.di)(J_(J_(J_({},F_),X_),{},{tbodyClass:(0,Ue.Yg)(kt.VE)})),nw=i.default.extend({mixins:[K_],props:ew,beforeDestroy:function(){this.$_bodyFieldSlotNameCache=null},methods:{getTbodyTrs:function(){var t=this.$refs,e=t.tbody?t.tbody.$el||t.tbody:null,n=(t["item-rows"]||[]).map((function(t){return t.$el||t}));return e&&e.children&&e.children.length>0&&n&&n.length>0?Qt(e.children).filter((function(t){return te(n,t)})):[]},getTbodyTrIndex:function(t){if(!he(t))return-1;var e="TR"===t.tagName?t:xe("tr",t,!0);return e?this.getTbodyTrs().indexOf(e):-1},emitTbodyRowEvent:function(t,e){if(t&&this.hasListener(t)&&e&&e.target){var n=this.getTbodyTrIndex(e.target);if(n>-1){var i=this.computedItems[n];this.$emit(t,i,n,e)}}},tbodyRowEvtStopped:function(t){return this.stopIfBusy&&this.stopIfBusy(t)},onTbodyRowKeydown:function(t){var e=t.target,n=t.keyCode;if(!this.tbodyRowEvtStopped(t)&&"TR"===e.tagName&&me(e)&&0===e.tabIndex)if(te([Xn,Qn],n))Ze(t),this.onTBodyRowClicked(t);else if(te([ti,Wn,Kn,Gn],n)){var i=this.getTbodyTrIndex(e);if(i>-1){Ze(t);var r=this.getTbodyTrs(),o=t.shiftKey;n===Kn||o&&n===ti?Be(r[0]):n===Gn||o&&n===Wn?Be(r[r.length-1]):n===ti&&i>0?Be(r[i-1]):n===Wn&&i<r.length-1&&Be(r[i+1])}}},onTBodyRowClicked:function(t){this.tbodyRowEvtStopped(t)||$_(t)||U_(this.$el)||this.emitTbodyRowEvent(vt,t)},onTbodyRowMiddleMouseRowClicked:function(t){this.tbodyRowEvtStopped(t)||2!==t.which||this.emitTbodyRowEvent("row-middle-clicked",t)},onTbodyRowContextmenu:function(t){this.tbodyRowEvtStopped(t)||this.emitTbodyRowEvent("row-contextmenu",t)},onTbodyRowDblClicked:function(t){this.tbodyRowEvtStopped(t)||$_(t)||this.emitTbodyRowEvent("row-dblclicked",t)},renderTbody:function(){var t=this,e=this.computedItems,n=this.renderBusy,i=this.renderTopRow,r=this.renderEmpty,o=this.renderBottomRow,a=this.$createElement,s=this.hasListener(vt)||this.hasSelectableRowClick,l=[],c=n?n():null;if(c)l.push(c);else{var u={},d=tw();d=this.hasNormalizedSlot(d)?d:null,this.computedFields.forEach((function(e){var n=e.key,i=tw(n),r=tw(n.toLowerCase());u[n]=t.hasNormalizedSlot(i)?i:t.hasNormalizedSlot(r)?r:d})),this.$_bodyFieldSlotNameCache=u,l.push(i?i():a()),e.forEach((function(e,n){l.push(t.renderTbodyRow(e,n))})),l.push(r?r():a()),l.push(o?o():a())}var h={auxclick:this.onTbodyRowMiddleMouseRowClicked,contextmenu:this.onTbodyRowContextmenu,dblclick:this.onTbodyRowDblClicked};return s&&(h.click=this.onTBodyRowClicked,h.keydown=this.onTbodyRowKeydown),a(z_,{class:this.tbodyClass||null,props:(0,Ue.YL)(F_,this.$props),on:h,ref:"tbody"},l)}}});function iw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function rw(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?iw(Object(n),!0).forEach((function(e){ow(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):iw(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ow(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var aw=(0,Ue.sC)({footVariant:(0,Ue.Yg)(kt.vq)},H.rZ),sw=i.default.extend({name:H.rZ,mixins:[si,ci,qe],provide:function(){return{bvTableRowGroup:this}},inject:{bvTable:{default:function(){return{}}}},inheritAttrs:!1,props:aw,computed:{isTfoot:function(){return!0},isDark:function(){return this.bvTable.dark},isStacked:function(){return this.bvTable.isStacked},isResponsive:function(){return this.bvTable.isResponsive},isStickyHeader:function(){return!1},hasStickyHeader:function(){return!this.isStacked&&this.bvTable.stickyHeader},tableVariant:function(){return this.bvTable.tableVariant},tfootClasses:function(){return[this.footVariant?"thead-".concat(this.footVariant):null]},tfootAttrs:function(){return rw(rw({},this.bvAttrs),{},{role:"rowgroup"})}},render:function(t){return t("tfoot",{class:this.tfootClasses,attrs:this.tfootAttrs,on:this.bvListeners},this.normalizeSlot())}}),lw={footClone:(0,Ue.Yg)(kt.Ye,!1),footRowVariant:(0,Ue.Yg)(kt.vq),footVariant:(0,Ue.Yg)(kt.vq),tfootClass:(0,Ue.Yg)(kt.VE),tfootTrClass:(0,Ue.Yg)(kt.VE)},cw=i.default.extend({props:lw,methods:{renderTFootCustom:function(){var t=this.$createElement;return this.hasNormalizedSlot(Dt)?t(sw,{class:this.tfootClass||null,props:{footVariant:this.footVariant||this.headVariant||null},key:"bv-tfoot-custom"},this.normalizeSlot(Dt,{items:this.computedItems.slice(),fields:this.computedFields.slice(),columns:this.computedFields.length})):t()},renderTfoot:function(){return this.footClone?this.renderThead(!0):this.renderTFootCustom()}}});function uw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function dw(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var hw=(0,Ue.sC)({headVariant:(0,Ue.Yg)(kt.vq)},H.dn),pw=i.default.extend({name:H.dn,mixins:[si,ci,qe],provide:function(){return{bvTableRowGroup:this}},inject:{bvTable:{default:function(){return{}}}},inheritAttrs:!1,props:hw,computed:{isThead:function(){return!0},isDark:function(){return this.bvTable.dark},isStacked:function(){return this.bvTable.isStacked},isResponsive:function(){return this.bvTable.isResponsive},isStickyHeader:function(){return!this.isStacked&&this.bvTable.stickyHeader},hasStickyHeader:function(){return!this.isStacked&&this.bvTable.stickyHeader},tableVariant:function(){return this.bvTable.tableVariant},theadClasses:function(){return[this.headVariant?"thead-".concat(this.headVariant):null]},theadAttrs:function(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?uw(Object(n),!0).forEach((function(e){dw(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uw(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({role:"rowgroup"},this.bvAttrs)}},render:function(t){return t("thead",{class:this.theadClasses,attrs:this.theadAttrs,on:this.bvListeners},this.normalizeSlot())}});function fw(t){return function(t){if(Array.isArray(t))return mw(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return mw(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mw(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mw(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function vw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function gw(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vw(Object(n),!0).forEach((function(e){bw(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vw(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function bw(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var yw=function(t){return"head(".concat(t||"",")")},_w=function(t){return"foot(".concat(t||"",")")},ww={headRowVariant:(0,Ue.Yg)(kt.vq),headVariant:(0,Ue.Yg)(kt.vq),theadClass:(0,Ue.Yg)(kt.VE),theadTrClass:(0,Ue.Yg)(kt.VE)},xw=i.default.extend({props:ww,methods:{fieldClasses:function(t){return[t.class?t.class:"",t.thClass?t.thClass:""]},headClicked:function(t,e,n){this.stopIfBusy&&this.stopIfBusy(t)||$_(t)||U_(this.$el)||(Ze(t),this.$emit(rt,e.key,e,t,n))},renderThead:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.computedFields,i=this.isSortable,r=this.isSelectable,o=this.headVariant,a=this.footVariant,s=this.headRowVariant,l=this.footRowVariant,c=this.$createElement;if(this.isStackedAlways||0===n.length)return c();var u=i||this.hasListener(rt),d=r?this.selectAllRows:ya,h=r?this.clearSelected:ya,p=n.map((function(n,r){var o=n.label,a=n.labelHtml,s=n.variant,l=n.stickyColumn,p=n.key,f=null;n.label.trim()||n.headerTitle||(f=(0,oe.NZ)(n.key));var m={};u&&(m.click=function(i){t.headClicked(i,n,e)},m.keydown=function(i){var r=i.keyCode;r!==Xn&&r!==Qn||t.headClicked(i,n,e)});var g=i?t.sortTheadThAttrs(p,n,e):{},b=i?t.sortTheadThClasses(p,n,e):null,y=i?t.sortTheadThLabel(p,n,e):null,_={class:[t.fieldClasses(n),b],props:{variant:s,stickyColumn:l},style:n.thStyle||{},attrs:gw(gw({tabindex:u&&n.sortable?"0":null,abbr:n.headerAbbr||null,title:n.headerTitle||null,"aria-colindex":r+1,"aria-label":f},t.getThValues(null,p,n.thAttr,e?"foot":"head",{})),g),on:m,key:p},w=[yw(p),yw(p.toLowerCase()),yw()];e&&(w=[_w(p),_w(p.toLowerCase()),_w()].concat(fw(w)));var x={label:o,column:p,field:n,isFoot:e,selectAllRows:d,clearSelected:h},C=t.normalizeSlot(w,x)||c("div",{domProps:er(a,o)}),S=y?c("span",{staticClass:"sr-only"}," (".concat(y,")")):null;return c(V_,_,[C,S].filter(v.D))})).filter(v.D),f=[];if(e)f.push(c(vy,{class:this.tfootTrClass,props:{variant:(0,g.z)(l)?s:l}},p));else{var m={columns:n.length,fields:n,selectAllRows:d,clearSelected:h};f.push(this.normalizeSlot("thead-top",m)||c()),f.push(c(vy,{class:this.theadTrClass,props:{variant:s}},p))}return c(e?sw:pw,{class:(e?this.tfootClass:this.theadClass)||null,props:e?{footVariant:a||o||null}:{headVariant:o||null},key:e?"bv-tfoot":"bv-thead"},f)}}}),Cw=i.default.extend({methods:{renderTopRow:function(){var t=this.computedFields,e=this.stacked,n=this.tbodyTrClass,i=this.tbodyTrAttr,r=this.$createElement;return this.hasNormalizedSlot(Zt)&&!0!==e&&""!==e?r(vy,{staticClass:"b-table-top-row",class:[(0,g.Tn)(n)?n(null,"row-top"):n],attrs:(0,g.Tn)(i)?i(null,"row-top"):i,key:"b-top-row"},[this.normalizeSlot(Zt,{columns:t.length,fields:t})]):r()}}});function Sw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ew(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Sw(Object(n),!0).forEach((function(e){Tw(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Sw(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Tw(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ow=(0,Ue.sC)((0,_.di)(Ew(Ew(Ew(Ew(Ew(Ew(Ew(Ew(Ew(Ew(Ew(Ew(Ew(Ew(Ew(Ew(Ew(Ew({},Qr),gy),My),Dy),Iy),Ny),Ky),s_),c_),p_),y_),D_),Hb),Gb),ew),lw),ww),{})),H.rz),kw=i.default.extend({name:H.rz,mixins:[si,Ub,to,qe,l_,Xb,Vb,xw,cw,nw,Vb,Zy,R_,u_,Ry,jy,__,Fy,Cw,by,Ly,f_],props:Ow});function Aw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Pw(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Aw(Object(n),!0).forEach((function(e){Mw(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Aw(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Mw(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Lw,Dw=(0,Ue.sC)((0,_.di)(Pw(Pw(Pw(Pw(Pw(Pw(Pw(Pw(Pw({},Qr),Dy),Iy),s_),Hb),Gb),ew),lw),ww)),H.KR),Rw=I({components:{BTable:kw},plugins:{TableLitePlugin:I({components:{BTableLite:i.default.extend({name:H.KR,mixins:[si,Ub,to,qe,l_,Xb,Vb,xw,cw,nw,Ry,jy],props:Dw})}}),TableSimplePlugin:I({components:{BTableSimple:ty,BTbody:z_,BThead:pw,BTfoot:sw,BTr:vy,BTd:Ey,BTh:V_}})}});function Iw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function jw(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Iw(Object(n),!0).forEach((function(e){Nw(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Iw(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Nw(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Fw,zw,Bw=He("value",{type:kt.Rn}),$w=Bw.mixin,Uw=Bw.props,Hw=Bw.prop,Vw=Bw.event,Yw=function(t){return!t.disabled},qw=i.default.extend({name:H.KM,inject:{bvTabs:{default:function(){return{}}}},props:{controls:(0,Ue.Yg)(kt.vq),id:(0,Ue.Yg)(kt.vq),noKeyNav:(0,Ue.Yg)(kt.Ye,!1),posInSet:(0,Ue.Yg)(kt.Rn),setSize:(0,Ue.Yg)(kt.Rn),tab:(0,Ue.Yg)(),tabIndex:(0,Ue.Yg)(kt.Rn)},methods:{focus:function(){Be(this.$refs.link)},handleEvt:function(t){if(!this.tab.disabled){var e=t.type,n=t.keyCode,i=t.shiftKey;"click"===e||"keydown"===e&&n===Qn?(Ze(t),this.$emit(Y,t)):"keydown"!==e||this.noKeyNav||(-1!==[ti,Zn,Kn].indexOf(n)?(Ze(t),i||n===Kn?this.$emit(et,t):this.$emit(ft,t)):-1!==[Wn,Jn,Gn].indexOf(n)&&(Ze(t),i||n===Gn?this.$emit(lt,t):this.$emit(dt,t)))}}},render:function(t){var e=this.id,n=this.tabIndex,i=this.setSize,r=this.posInSet,o=this.controls,a=this.handleEvt,s=this.tab,l=s.title,c=s.localActive,u=s.disabled,d=s.titleItemClass,h=s.titleLinkClass,p=s.titleLinkAttributes,f=t(yi,{staticClass:"nav-link",class:[{active:c&&!u,disabled:u},h,c?this.bvTabs.activeNavItemClass:null],props:{disabled:u},attrs:jw(jw({},p),{},{id:e,role:"tab",tabindex:n,"aria-selected":c&&!u?"true":"false","aria-setsize":i,"aria-posinset":r,"aria-controls":o}),on:{click:a,keydown:a},ref:"link"},[this.tab.normalizeSlot(Kt)||l]);return t("li",{staticClass:"nav-item",class:[d],attrs:{role:"presentation"}},[f])}}),Ww=(0,_.cJ)(Rm,["tabs","isNavBar","cardHeader"]),Gw=(0,Ue.sC)((0,_.di)(jw(jw(jw(jw({},Qr),Uw),Ww),{},{activeNavItemClass:(0,Ue.Yg)(kt.VE),activeTabClass:(0,Ue.Yg)(kt.VE),card:(0,Ue.Yg)(kt.Ye,!1),contentClass:(0,Ue.Yg)(kt.VE),end:(0,Ue.Yg)(kt.Ye,!1),lazy:(0,Ue.Yg)(kt.Ye,!1),navClass:(0,Ue.Yg)(kt.VE),navWrapperClass:(0,Ue.Yg)(kt.VE),noFade:(0,Ue.Yg)(kt.Ye,!1),noKeyNav:(0,Ue.Yg)(kt.Ye,!1),noNavStyle:(0,Ue.Yg)(kt.Ye,!1),tag:(0,Ue.Yg)(kt.vq,"div")})),H.PW),Xw=i.default.extend({name:H.PW,mixins:[to,$w,qe],provide:function(){return{bvTabs:this}},props:Gw,data:function(){return{currentTab:(0,re.yJ)(this[Hw],-1),tabs:[],registeredTabs:[]}},computed:{fade:function(){return!this.noFade},localNavClass:function(){var t=[];return this.card&&this.vertical&&t.push("card-header","h-100","border-bottom-0","rounded-0"),[].concat(t,[this.navClass])}},watch:(Lw={},Nw(Lw,Hw,(function(t,e){if(t!==e){t=(0,re.yJ)(t,-1),e=(0,re.yJ)(e,0);var n=this.tabs[t];n&&!n.disabled?this.activateTab(n):t<e?this.previousTab():this.nextTab()}})),Nw(Lw,"currentTab",(function(t){var e=-1;this.tabs.forEach((function(n,i){i!==t||n.disabled?n.localActive=!1:(n.localActive=!0,e=i)})),this.$emit(Vw,e)})),Nw(Lw,"tabs",(function(t,e){var n=this;ni(t.map((function(t){return t[U]})),e.map((function(t){return t[U]})))||this.$nextTick((function(){n.$emit("changed",t.slice(),e.slice())}))})),Nw(Lw,"registeredTabs",(function(){this.updateTabs()})),Lw),created:function(){this.$_observer=null},mounted:function(){this.setObserver(!0)},beforeDestroy:function(){this.setObserver(!1),this.tabs=[]},methods:{registerTab:function(t){te(this.registeredTabs,t)||this.registeredTabs.push(t)},unregisterTab:function(t){this.registeredTabs=this.registeredTabs.slice().filter((function(e){return e!==t}))},setObserver:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.$_observer&&this.$_observer.disconnect(),this.$_observer=null,e){this.$_observer=Ca(this.$refs.content,(function(){t.$nextTick((function(){ue((function(){t.updateTabs()}))}))}),{childList:!0,subtree:!1,attributes:!0,attributeFilter:["id"]})}},getTabs:function(){var t=this.registeredTabs.filter((function(t){return 0===t.$children.filter((function(t){return t._isTab})).length})),e=[];if(h.KJ&&t.length>0){var n=t.map((function(t){return"#".concat(t.safeId())})).join(", ");e=ye(n,this.$el).map((function(t){return t.id})).filter(v.D)}return w_(t,(function(t,n){return e.indexOf(t.safeId())-e.indexOf(n.safeId())}))},updateTabs:function(){var t=this.getTabs(),e=t.indexOf(t.slice().reverse().find((function(t){return t.localActive&&!t.disabled})));if(e<0){var n=this.currentTab;n>=t.length?e=t.indexOf(t.slice().reverse().find(Yw)):t[n]&&!t[n].disabled&&(e=n)}e<0&&(e=t.indexOf(t.find(Yw))),t.forEach((function(t,n){t.localActive=n===e})),this.tabs=t,this.currentTab=e},getButtonForTab:function(t){return(this.$refs.buttons||[]).find((function(e){return e.tab===t}))},updateButton:function(t){var e=this.getButtonForTab(t);e&&e.$forceUpdate&&e.$forceUpdate()},activateTab:function(t){var e=this.currentTab,n=this.tabs,i=!1;if(t){var r=n.indexOf(t);if(r!==e&&r>-1&&!t.disabled){var o=new Fs("activate-tab",{cancelable:!0,vueTarget:this,componentId:this.safeId()});this.$emit(o.type,r,e,o),o.defaultPrevented||(this.currentTab=r,i=!0)}}return i||this[Hw]===e||this.$emit(Vw,e),i},deactivateTab:function(t){return!!t&&this.activateTab(this.tabs.filter((function(e){return e!==t})).find(Yw))},focusButton:function(t){var e=this;this.$nextTick((function(){Be(e.getButtonForTab(t))}))},emitTabClick:function(t,e){(0,g.xH)(e)&&t&&t.$emit&&!t.disabled&&t.$emit(Y,e)},clickTab:function(t,e){this.activateTab(t),this.emitTabClick(t,e)},firstTab:function(t){var e=this.tabs.find(Yw);this.activateTab(e)&&t&&(this.focusButton(e),this.emitTabClick(e,t))},previousTab:function(t){var e=(0,Sn.JB)(this.currentTab,0),n=this.tabs.slice(0,e).reverse().find(Yw);this.activateTab(n)&&t&&(this.focusButton(n),this.emitTabClick(n,t))},nextTab:function(t){var e=(0,Sn.JB)(this.currentTab,-1),n=this.tabs.slice(e+1).find(Yw);this.activateTab(n)&&t&&(this.focusButton(n),this.emitTabClick(n,t))},lastTab:function(t){var e=this.tabs.slice().reverse().find(Yw);this.activateTab(e)&&t&&(this.focusButton(e),this.emitTabClick(e,t))}},render:function(t){var e=this,n=this.align,i=this.card,r=this.end,o=this.fill,a=this.firstTab,s=this.justified,l=this.lastTab,c=this.nextTab,u=this.noKeyNav,d=this.noNavStyle,h=this.pills,p=this.previousTab,f=this.small,m=this.tabs,v=this.vertical,g=m.find((function(t){return t.localActive&&!t.disabled})),b=m.find((function(t){return!t.disabled})),y=m.map((function(n,i){var r,o=n.safeId,s=null;return u||(s=-1,(n===g||!g&&n===b)&&(s=null)),t(qw,{props:{controls:o?o():null,id:n.controlledBy||(o?o("_BV_tab_button_"):null),noKeyNav:u,posInSet:i+1,setSize:m.length,tab:n,tabIndex:s},on:(r={},Nw(r,Y,(function(t){e.clickTab(n,t)})),Nw(r,et,a),Nw(r,ft,p),Nw(r,dt,c),Nw(r,lt,l),r),key:n[U]||i,ref:"buttons",refInFor:!0})})),_=t(Im,{class:this.localNavClass,attrs:{role:"tablist",id:this.safeId("_BV_tab_controls_")},props:{fill:o,justified:s,align:n,tabs:!d&&!h,pills:!d&&h,vertical:v,small:f,cardHeader:i&&!v},ref:"nav"},[this.normalizeSlot("tabs-start")||t(),y,this.normalizeSlot("tabs-end")||t()]);_=t("div",{class:[{"card-header":i&&!v&&!r,"card-footer":i&&!v&&r,"col-auto":v},this.navWrapperClass],key:"bv-tabs-nav"},[_]);var w=this.normalizeSlot()||[],x=t();0===w.length&&(x=t("div",{class:["tab-pane","active",{"card-body":i}],key:"bv-empty-tab"},this.normalizeSlot(It)));var C=t("div",{staticClass:"tab-content",class:[{col:v},this.contentClass],attrs:{id:this.safeId("_BV_tab_container_")},key:"bv-content",ref:"content"},[w,x]);return t(this.tag,{staticClass:"tabs",class:{row:v,"no-gutters":v&&i},attrs:{id:this.safeId()}},[r?C:t(),_,r?t():C])}});function Kw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Zw(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Kw(Object(n),!0).forEach((function(e){Jw(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kw(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Jw(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qw,tx="active",ex=St+tx,nx=(0,Ue.sC)((0,_.di)(Zw(Zw({},Qr),{},(Jw(Fw={},tx,(0,Ue.Yg)(kt.Ye,!1)),Jw(Fw,"buttonId",(0,Ue.Yg)(kt.vq)),Jw(Fw,"disabled",(0,Ue.Yg)(kt.Ye,!1)),Jw(Fw,"lazy",(0,Ue.Yg)(kt.Ye,!1)),Jw(Fw,"noBody",(0,Ue.Yg)(kt.Ye,!1)),Jw(Fw,"tag",(0,Ue.Yg)(kt.vq,"div")),Jw(Fw,"title",(0,Ue.Yg)(kt.vq)),Jw(Fw,"titleItemClass",(0,Ue.Yg)(kt.VE)),Jw(Fw,"titleLinkAttributes",(0,Ue.Yg)(kt.bD)),Jw(Fw,"titleLinkClass",(0,Ue.Yg)(kt.VE)),Fw))),H.SF),ix=I({components:{BTabs:Xw,BTab:i.default.extend({name:H.SF,mixins:[to,qe],inject:{bvTabs:{default:function(){return{}}}},props:nx,data:function(){return{localActive:this[tx]&&!this.disabled}},computed:{_isTab:function(){return!0},tabClasses:function(){var t=this.localActive;return[{active:t,disabled:this.disabled,"card-body":this.bvTabs.card&&!this.noBody},t?this.bvTabs.activeTabClass:null]},controlledBy:function(){return this.buttonId||this.safeId("__BV_tab_button__")},computedNoFade:function(){return!this.bvTabs.fade},computedLazy:function(){return this.bvTabs.lazy||this.lazy}},watch:(zw={},Jw(zw,tx,(function(t,e){t!==e&&(t?this.activate():this.deactivate()||this.$emit(ex,this.localActive))})),Jw(zw,"disabled",(function(t,e){if(t!==e){var n=this.bvTabs.firstTab;t&&this.localActive&&n&&(this.localActive=!1,n())}})),Jw(zw,"localActive",(function(t){this.$emit(ex,t)})),zw),mounted:function(){this.registerTab()},updated:function(){var t=this.bvTabs.updateButton;t&&this.hasNormalizedSlot(Kt)&&t(this)},beforeDestroy:function(){this.unregisterTab()},methods:{registerTab:function(){var t=this.bvTabs.registerTab;t&&t(this)},unregisterTab:function(){var t=this.bvTabs.unregisterTab;t&&t(this)},activate:function(){var t=this.bvTabs.activateTab;return!(!t||this.disabled)&&t(this)},deactivate:function(){var t=this.bvTabs.deactivateTab;return!(!t||!this.localActive)&&t(this)}},render:function(t){var e=this.localActive,n=t(this.tag,{staticClass:"tab-pane",class:this.tabClasses,directives:[{name:"show",value:e}],attrs:{role:"tabpanel",id:this.safeId(),"aria-hidden":e?"false":"true","aria-labelledby":this.controlledBy||null},ref:"panel"},[e||!this.computedLazy?this.normalizeSlot():t()]);return t(dn,{props:{mode:"out-in",noFade:this.computedNoFade}},[n])}})}}),rx=I({components:{BTime:gp}}),ox=n(2197),ax=i.default.extend({mixins:[qe],data:function(){return{name:"b-toaster"}},methods:{onAfterEnter:function(t){var e=this;ue((function(){Te(t,"".concat(e.name,"-enter-to"))}))}},render:function(t){return t("transition-group",{props:{tag:"div",name:this.name},on:{afterEnter:this.onAfterEnter}},this.normalizeSlot())}}),sx=(0,Ue.sC)({ariaAtomic:(0,Ue.Yg)(kt.vq),ariaLive:(0,Ue.Yg)(kt.vq),name:(0,Ue.Yg)(kt.vq,void 0,!0),role:(0,Ue.Yg)(kt.vq)},H.rT),lx=i.default.extend({name:H.rT,mixins:[li],props:sx,data:function(){return{doRender:!1,dead:!1,staticName:this.name}},beforeMount:function(){var t=this,e=this.name;this.staticName=e,ox.g7.hasTarget(e)?(C('A "<portal-target>" with name "'.concat(e,'" already exists in the document.'),H.rT),this.dead=!0):(this.doRender=!0,this.$once(xt,(function(){t.emitOnRoot(Qe(H.rT,X),e)})))},destroyed:function(){var t=this.$el;t&&t.parentNode&&t.parentNode.removeChild(t)},render:function(t){var e=t("div",{class:["d-none",{"b-dead-toaster":this.dead}]});if(this.doRender){var n=t(ox.mf,{staticClass:"b-toaster-slot",props:{name:this.staticName,multiple:!0,tag:"div",slim:!1,transition:ax}});e=t("div",{staticClass:"b-toaster",class:[this.staticName],attrs:{id:this.staticName,role:this.role||null,"aria-live":this.ariaLive,"aria-atomic":this.ariaAtomic}},[n])}return e}});function cx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ux(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?cx(Object(n),!0).forEach((function(e){dx(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cx(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function dx(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var hx=He("visible",{type:kt.Ye,defaultValue:!1,event:V}),px=hx.mixin,fx=hx.props,mx=hx.prop,vx=hx.event,gx=(0,_.Up)(bi,["href","to"]),bx=(0,Ue.sC)((0,_.di)(ux(ux(ux(ux({},Qr),fx),gx),{},{appendToast:(0,Ue.Yg)(kt.Ye,!1),autoHideDelay:(0,Ue.Yg)(kt.$$,5e3),bodyClass:(0,Ue.Yg)(kt.VE),headerClass:(0,Ue.Yg)(kt.VE),isStatus:(0,Ue.Yg)(kt.Ye,!1),noAutoHide:(0,Ue.Yg)(kt.Ye,!1),noCloseButton:(0,Ue.Yg)(kt.Ye,!1),noFade:(0,Ue.Yg)(kt.Ye,!1),noHoverPause:(0,Ue.Yg)(kt.Ye,!1),solid:(0,Ue.Yg)(kt.Ye,!1),static:(0,Ue.Yg)(kt.Ye,!1),title:(0,Ue.Yg)(kt.vq),toastClass:(0,Ue.Yg)(kt.VE),toaster:(0,Ue.Yg)(kt.vq,"b-toaster-top-right"),variant:(0,Ue.Yg)(kt.vq)})),H.in),yx=i.default.extend({name:H.in,mixins:[si,to,px,li,qe,Rf],inheritAttrs:!1,props:bx,data:function(){return{isMounted:!1,doRender:!1,localShow:!1,isTransitioning:!1,isHiding:!1,order:0,dismissStarted:0,resumeDismiss:0}},computed:{toastClasses:function(){var t=this.appendToast,e=this.variant;return dx({"b-toast-solid":this.solid,"b-toast-append":t,"b-toast-prepend":!t},"b-toast-".concat(e),e)},slotScope:function(){return{hide:this.hide}},computedDuration:function(){return(0,Sn.JB)((0,re.yJ)(this.autoHideDelay,0),1e3)},computedToaster:function(){return String(this.toaster)},transitionHandlers:function(){return{beforeEnter:this.onBeforeEnter,afterEnter:this.onAfterEnter,beforeLeave:this.onBeforeLeave,afterLeave:this.onAfterLeave}},computedAttrs:function(){return ux(ux({},this.bvAttrs),{},{id:this.safeId(),tabindex:"0"})}},watch:(Qw={},dx(Qw,mx,(function(t){this[t?"show":"hide"]()})),dx(Qw,"localShow",(function(t){t!==this[mx]&&this.$emit(vx,t)})),dx(Qw,"toaster",(function(){this.$nextTick(this.ensureToaster)})),dx(Qw,"static",(function(t){t&&this.localShow&&this.ensureToaster()})),Qw),created:function(){this.$_dismissTimer=null},mounted:function(){var t=this;this.isMounted=!0,this.$nextTick((function(){t[mx]&&ue((function(){t.show()}))})),this.listenOnRoot(tn(H.in,bt),(function(e){e===t.safeId()&&t.show()})),this.listenOnRoot(tn(H.in,at),(function(e){e&&e!==t.safeId()||t.hide()})),this.listenOnRoot(Qe(H.rT,X),(function(e){e===t.computedToaster&&t.hide()}))},beforeDestroy:function(){this.clearDismissTimer()},methods:{show:function(){var t=this;if(!this.localShow){this.ensureToaster();var e=this.buildEvent(bt);this.emitEvent(e),this.dismissStarted=this.resumeDismiss=0,this.order=Date.now()*(this.appendToast?1:-1),this.isHiding=!1,this.doRender=!0,this.$nextTick((function(){ue((function(){t.localShow=!0}))}))}},hide:function(){var t=this;if(this.localShow){var e=this.buildEvent(at);this.emitEvent(e),this.setHoverHandler(!1),this.dismissStarted=this.resumeDismiss=0,this.clearDismissTimer(),this.isHiding=!0,ue((function(){t.localShow=!1}))}},buildEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Fs(t,ux(ux({cancelable:!1,target:this.$el||null,relatedTarget:null},e),{},{vueTarget:this,componentId:this.safeId()}))},emitEvent:function(t){var e=t.type;this.emitOnRoot(Qe(H.in,e),t),this.$emit(e,t)},ensureToaster:function(){if(!this.static){var t=this.computedToaster;if(!ox.g7.hasTarget(t)){var e=document.createElement("div");document.body.appendChild(e),new lx({parent:this.$root,propsData:{name:t}}).$mount(e)}}},startDismissTimer:function(){this.clearDismissTimer(),this.noAutoHide||(this.$_dismissTimer=setTimeout(this.hide,this.resumeDismiss||this.computedDuration),this.dismissStarted=Date.now(),this.resumeDismiss=0)},clearDismissTimer:function(){clearTimeout(this.$_dismissTimer),this.$_dismissTimer=null},setHoverHandler:function(t){var e=this.$refs["b-toast"];Ke(t,e,"mouseenter",this.onPause,Ot),Ke(t,e,"mouseleave",this.onUnPause,Ot)},onPause:function(){if(!this.noAutoHide&&!this.noHoverPause&&this.$_dismissTimer&&!this.resumeDismiss){var t=Date.now()-this.dismissStarted;t>0&&(this.clearDismissTimer(),this.resumeDismiss=(0,Sn.JB)(this.computedDuration-t,1e3))}},onUnPause:function(){this.noAutoHide||this.noHoverPause||!this.resumeDismiss?this.resumeDismiss=this.dismissStarted=0:this.startDismissTimer()},onLinkClick:function(){var t=this;this.$nextTick((function(){ue((function(){t.hide()}))}))},onBeforeEnter:function(){this.isTransitioning=!0},onAfterEnter:function(){this.isTransitioning=!1;var t=this.buildEvent(yt);this.emitEvent(t),this.startDismissTimer(),this.setHoverHandler(!0)},onBeforeLeave:function(){this.isTransitioning=!0},onAfterLeave:function(){this.isTransitioning=!1,this.order=0,this.resumeDismiss=this.dismissStarted=0;var t=this.buildEvent(ot);this.emitEvent(t),this.doRender=!1},makeToast:function(t){var e=this,n=this.title,i=this.slotScope,r=In(this),o=[],a=this.normalizeSlot("toast-title",i);a?o.push(a):n&&o.push(t("strong",{staticClass:"mr-2"},n)),this.noCloseButton||o.push(t(nn,{staticClass:"ml-auto mb-1",on:{click:function(){e.hide()}}}));var s=t();o.length>0&&(s=t("header",{staticClass:"toast-header",class:this.headerClass},o));var l=t(r?yi:"div",{staticClass:"toast-body",class:this.bodyClass,props:r?(0,Ue.YL)(gx,this):{},on:r?{click:this.onLinkClick}:{}},this.normalizeSlot(Rt,i));return t("div",{staticClass:"toast",class:this.toastClass,attrs:this.computedAttrs,key:"toast-".concat(this[U]),ref:"toast"},[s,l])}},render:function(t){if(!this.doRender||!this.isMounted)return t();var e=this.order,n=this.static,i=this.isHiding,r=this.isStatus,o="b-toast-".concat(this[U]),a=t("div",{staticClass:"b-toast",class:this.toastClasses,attrs:ux(ux({},n?{}:this.scopedStyleAttrs),{},{id:this.safeId("_toast_outer"),role:i?null:r?"status":"alert","aria-live":i?null:r?"polite":"assertive","aria-atomic":i?null:"true"}),key:o,ref:"b-toast"},[t(dn,{props:{noFade:this.noFade},on:this.transitionHandlers},[this.localShow?this.makeToast(t):t()])]);return t(ox.ZL,{props:{name:o,to:this.computedToaster,order:e,slim:!0,disabled:n}},[a])}});function _x(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function wx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function xx(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wx(Object(n),!0).forEach((function(e){Cx(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wx(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Cx(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sx(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var Ex="$bvToast",Tx="_bv__toast",Ox=["id"].concat(function(t){return function(t){if(Array.isArray(t))return Sx(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Sx(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sx(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,_.HP)((0,_.cJ)(bx,["static","visible"])))),kx={toastContent:"default",title:"toast-title"},Ax=function(t){return Ox.reduce((function(e,n){return(0,g.b0)(t[n])||(e[n]=t[n]),e}),{})},Px=I({plugins:{plugin:function(t){var e=t.extend({name:H.Uq,extends:yx,destroyed:function(){var t=this.$el;t&&t.parentNode&&t.parentNode.removeChild(t)},mounted:function(){var t=this,e=function(){t.localShow=!1,t.doRender=!1,t.$nextTick((function(){t.$nextTick((function(){ue((function(){t.$destroy()}))}))}))};this.$parent.$once(Ct,e),this.$once(ot,e),this.listenOnRoot(Qe(H.rT,X),(function(n){n===t.toaster&&e()}))}}),n=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(0,_.kp)(this,{_vm:e,_root:e.$root}),(0,_.ny)(this,{_vm:(0,_.Am)(),_root:(0,_.Am)()})}var n,i,r;return n=t,i=[{key:"toast",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t&&!S(Ex)&&function(t,n){if(!S(Ex)){var i=new e({parent:n,propsData:xx(xx(xx({},Ax((0,Uu.AV)(H.in))),(0,_.cJ)(t,(0,_.HP)(kx))),{},{static:!1,visible:!0})});(0,_.HP)(kx).forEach((function(e){var r=t[e];(0,g.b0)(r)||("title"===e&&(0,g.Kg)(r)&&(r=[n.$createElement("strong",{class:"mr-2"},r)]),i.$slots[kx[e]]=ee(r))}));var r=document.createElement("div");document.body.appendChild(r),i.$mount(r)}}(xx(xx({},Ax(n)),{},{toastContent:t}),this._vm)}},{key:"show",value:function(t){t&&this._root.$emit(tn(H.in,bt),t)}},{key:"hide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._root.$emit(tn(H.in,at),t)}}],i&&_x(n.prototype,i),r&&_x(n,r),t}();t.mixin({beforeCreate:function(){this[Tx]=new n(this)}}),(0,_.mQ)(t.prototype,Ex)||(0,_.n8)(t.prototype,Ex,{get:function(){return this&&this[Tx]||C('"'.concat(Ex,'" must be accessed from a Vue instance "this" context.'),H.in),this[Tx]}})}}}),Mx=I({components:{BToast:yx,BToaster:lx},plugins:{BVToastPlugin:Px}});function Lx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Dx(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Lx(Object(n),!0).forEach((function(e){Rx(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lx(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Rx(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ix="__BV_Tooltip__",jx={focus:!0,hover:!0,click:!0,blur:!0,manual:!0},Nx=/^html$/i,Fx=/^noninteractive$/i,zx=/^nofade$/i,Bx=/^(auto|top(left|right)?|bottom(left|right)?|left(top|bottom)?|right(top|bottom)?)$/i,$x=/^(window|viewport|scrollParent)$/i,Ux=/^d\d+$/i,Hx=/^ds\d+$/i,Vx=/^dh\d+$/i,Yx=/^o-?\d+$/i,qx=/^v-.+$/i,Wx=/\s+/,Gx=function(t,e,n){if(h.KJ){var i=function(t,e){var n={title:void 0,trigger:"",placement:"top",fallbackPlacement:"flip",container:!1,animation:!0,offset:0,id:null,html:!1,interactive:!0,disabled:!1,delay:(0,Uu.AV)(H.GT,"delay",50),boundary:String((0,Uu.AV)(H.GT,"boundary","scrollParent")),boundaryPadding:(0,re.yJ)((0,Uu.AV)(H.GT,"boundaryPadding",5),0),variant:(0,Uu.AV)(H.GT,"variant"),customClass:(0,Uu.AV)(H.GT,"customClass")};if((0,g.Kg)(t.value)||(0,g.Et)(t.value)||(0,g.Tn)(t.value)?n.title=t.value:(0,g.Qd)(t.value)&&(n=Dx(Dx({},n),t.value)),(0,g.b0)(n.title)){var i=e.data||{};n.title=i.attrs&&!(0,g.z)(i.attrs.title)?i.attrs.title:void 0}(0,g.Qd)(n.delay)||(n.delay={show:(0,re.yJ)(n.delay,0),hide:(0,re.yJ)(n.delay,0)}),t.arg&&(n.container="#".concat(t.arg)),(0,_.HP)(t.modifiers).forEach((function(t){if(Nx.test(t))n.html=!0;else if(Fx.test(t))n.interactive=!1;else if(zx.test(t))n.animation=!1;else if(Bx.test(t))n.placement=t;else if($x.test(t))t="scrollparent"===t?"scrollParent":t,n.boundary=t;else if(Ux.test(t)){var e=(0,re.yJ)(t.slice(1),0);n.delay.show=e,n.delay.hide=e}else Hx.test(t)?n.delay.show=(0,re.yJ)(t.slice(2),0):Vx.test(t)?n.delay.hide=(0,re.yJ)(t.slice(2),0):Yx.test(t)?n.offset=(0,re.yJ)(t.slice(1),0):qx.test(t)&&(n.variant=t.slice(2)||null)}));var r={};return ee(n.trigger||"").filter(v.D).join(" ").trim().toLowerCase().split(Wx).forEach((function(t){jx[t]&&(r[t]=!0)})),(0,_.HP)(t.modifiers).forEach((function(t){t=t.toLowerCase(),jx[t]&&(r[t]=!0)})),n.trigger=(0,_.HP)(r).join(" "),"blur"===n.trigger&&(n.trigger="focus"),n.trigger||(n.trigger="hover focus"),n}(e,n);if(!t[Ix]){var r=n.context;t[Ix]=new xg({parent:r,_scopeId:Df(r,void 0)}),t[Ix].__bv_prev_data__={},t[Ix].$on(bt,(function(){(0,g.Tn)(i.title)&&t[Ix].updateData({title:i.title(t)})}))}var o={title:i.title,triggers:i.trigger,placement:i.placement,fallbackPlacement:i.fallbackPlacement,variant:i.variant,customClass:i.customClass,container:i.container,boundary:i.boundary,delay:i.delay,offset:i.offset,noFade:!i.animation,id:i.id,interactive:i.interactive,disabled:i.disabled,html:i.html},a=t[Ix].__bv_prev_data__;if(t[Ix].__bv_prev_data__=o,!ni(o,a)){var s={target:t};(0,_.HP)(o).forEach((function(e){o[e]!==a[e]&&(s[e]="title"===e&&(0,g.Tn)(o[e])?o[e](t):o[e])})),t[Ix].updateData(s)}}},Xx=I({directives:{VBTooltip:{bind:function(t,e,n){Gx(t,e,n)},componentUpdated:function(t,e,n){n.context.$nextTick((function(){Gx(t,e,n)}))},unbind:function(t){!function(t){t[Ix]&&(t[Ix].$destroy(),t[Ix]=null),delete t[Ix]}(t)}}}}),Kx=I({plugins:{AlertPlugin:Cn,AspectPlugin:Pn,AvatarPlugin:qi,BadgePlugin:Qi,BreadcrumbPlugin:fr,ButtonPlugin:mr,ButtonGroupPlugin:wr,ButtonToolbarPlugin:Er,CalendarPlugin:ho,CardPlugin:ba,CarouselPlugin:Ha,CollapsePlugin:Is,DropdownPlugin:Il,EmbedPlugin:zl,FormPlugin:ic,FormCheckboxPlugin:eu,FormDatepickerPlugin:Tu,FormFilePlugin:$u,FormGroupPlugin:ad,FormInputPlugin:Td,FormRadioPlugin:Ad,FormRatingPlugin:Hd,FormSelectPlugin:ph,FormSpinbuttonPlugin:Eh,FormTagsPlugin:Gh,FormTextareaPlugin:ep,FormTimepickerPlugin:Pp,ImagePlugin:Mp,InputGroupPlugin:Gp,JumbotronPlugin:tf,LayoutPlugin:uf,LinkPlugin:df,ListGroupPlugin:wf,MediaPlugin:kf,ModalPlugin:Lm,NavPlugin:ev,NavbarPlugin:yv,OverlayPlugin:Av,PaginationPlugin:Xv,PaginationNavPlugin:ng,PopoverPlugin:eb,ProgressPlugin:ub,SidebarPlugin:Mb,SkeletonPlugin:cy,SpinnerPlugin:uy,TablePlugin:Rw,TabsPlugin:ix,TimePlugin:rx,ToastPlugin:Mx,TooltipPlugin:I({components:{BTooltip:Pg},plugins:{VBTooltipPlugin:Xx}})}}),Zx=I({directives:{VBHover:au}}),Jx=I({directives:{VBModal:bm}});function Qx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function tC(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qx(Object(n),!0).forEach((function(e){eC(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qx(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function eC(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nC(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var iC="active",rC=".nav-link",oC=".nav-item",aC=".list-group-item",sC=".dropdown-item",lC=Qe("BVScrollspy","activate"),cC="position",uC={element:"body",offset:10,method:"auto",throttle:75},dC={element:"(string|element|component)",offset:"number",method:"string",throttle:"number"},hC=["webkitTransitionEnd","transitionend","otransitionend","oTransitionEnd"],pC=function(t){return(0,_.dI)(t).match(/\s([a-zA-Z]+)/)[1].toLowerCase()},fC=function(){function t(e,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$el=e,this.$scroller=null,this.$selector=[rC,aC,sC].join(","),this.$offsets=[],this.$targets=[],this.$activeTarget=null,this.$scrollHeight=0,this.$resizeTimeout=null,this.$scrollerObserver=null,this.$targetsObserver=null,this.$root=i||null,this.$config=null,this.updateConfig(n)}var e,n,i;return e=t,n=[{key:"updateConfig",value:function(t,e){this.$scroller&&(this.unlisten(),this.$scroller=null);var n=tC(tC({},this.constructor.Default),t);if(e&&(this.$root=e),function(t,e,n){for(var i in n)if((0,_.mQ)(n,i)){var r=n[i],o=e[i],a=o&&he(o)?"element":pC(o);a=o&&o._isVue?"component":a,new RegExp(r).test(a)||C("".concat(t,': Option "').concat(i,'" provided type "').concat(a,'" but expected type "').concat(r,'"'))}}(this.constructor.Name,n,this.constructor.DefaultType),this.$config=n,this.$root){var i=this;this.$root.$nextTick((function(){i.listen()}))}else this.listen()}},{key:"dispose",value:function(){this.unlisten(),clearTimeout(this.$resizeTimeout),this.$resizeTimeout=null,this.$el=null,this.$config=null,this.$scroller=null,this.$selector=null,this.$offsets=null,this.$targets=null,this.$activeTarget=null,this.$scrollHeight=null}},{key:"listen",value:function(){var t=this,e=this.getScroller();e&&"BODY"!==e.tagName&&Ge(e,"scroll",this,Ot),Ge(window,"scroll",this,Ot),Ge(window,"resize",this,Ot),Ge(window,"orientationchange",this,Ot),hC.forEach((function(e){Ge(window,e,t,Ot)})),this.setObservers(!0),this.handleEvent("refresh")}},{key:"unlisten",value:function(){var t=this,e=this.getScroller();this.setObservers(!1),e&&"BODY"!==e.tagName&&Xe(e,"scroll",this,Ot),Xe(window,"scroll",this,Ot),Xe(window,"resize",this,Ot),Xe(window,"orientationchange",this,Ot),hC.forEach((function(e){Xe(window,e,t,Ot)}))}},{key:"setObservers",value:function(t){var e=this;this.$scrollerObserver&&this.$scrollerObserver.disconnect(),this.$targetsObserver&&this.$targetsObserver.disconnect(),this.$scrollerObserver=null,this.$targetsObserver=null,t&&(this.$targetsObserver=Ca(this.$el,(function(){e.handleEvent("mutation")}),{subtree:!0,childList:!0,attributes:!0,attributeFilter:["href"]}),this.$scrollerObserver=Ca(this.getScroller(),(function(){e.handleEvent("mutation")}),{subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:["id","style","class"]}))}},{key:"handleEvent",value:function(t){var e=(0,g.Kg)(t)?t:t.type,n=this;"scroll"===e?(this.$scrollerObserver||this.listen(),this.process()):/(resize|orientationchange|mutation|refresh)/.test(e)&&(n.$resizeTimeout||(n.$resizeTimeout=setTimeout((function(){n.refresh(),n.process(),n.$resizeTimeout=null}),n.$config.throttle)))}},{key:"refresh",value:function(){var t=this,e=this.getScroller();if(e){var n=e!==e.window?cC:"offset",i="auto"===this.$config.method?n:this.$config.method,r=i===cC?Fe:Ne,o=i===cC?this.getScrollTop():0;return this.$offsets=[],this.$targets=[],this.$scrollHeight=this.getScrollHeight(),ye(this.$selector,this.$el).map((function(t){return Pe(t,"href")})).filter((function(t){return t&&m.ZU.test(t||"")})).map((function(t){var n=t.replace(m.ZU,"$1").trim();if(!n)return null;var i=_e(n,e);return i&&ve(i)?{offset:(0,re.yJ)(r(i).top,0)+o,target:n}:null})).filter(v.D).sort((function(t,e){return t.offset-e.offset})).reduce((function(e,n){return e[n.target]||(t.$offsets.push(n.offset),t.$targets.push(n.target),e[n.target]=!0),e}),{}),this}}},{key:"process",value:function(){var t=this.getScrollTop()+this.$config.offset,e=this.getScrollHeight(),n=this.$config.offset+e-this.getOffsetHeight();if(this.$scrollHeight!==e&&this.refresh(),t>=n){var i=this.$targets[this.$targets.length-1];this.$activeTarget!==i&&this.activate(i)}else{if(this.$activeTarget&&t<this.$offsets[0]&&this.$offsets[0]>0)return this.$activeTarget=null,void this.clear();for(var r=this.$offsets.length;r--;)this.$activeTarget!==this.$targets[r]&&t>=this.$offsets[r]&&((0,g.b0)(this.$offsets[r+1])||t<this.$offsets[r+1])&&this.activate(this.$targets[r])}}},{key:"getScroller",value:function(){if(this.$scroller)return this.$scroller;var t=this.$config.element;return t?(he(t.$el)?t=t.$el:(0,g.Kg)(t)&&(t=_e(t)),t?(this.$scroller="BODY"===t.tagName?window:t,this.$scroller):null):null}},{key:"getScrollTop",value:function(){var t=this.getScroller();return t===window?t.pageYOffset:t.scrollTop}},{key:"getScrollHeight",value:function(){return this.getScroller().scrollHeight||(0,Sn.JB)(document.body.scrollHeight,document.documentElement.scrollHeight)}},{key:"getOffsetHeight",value:function(){var t=this.getScroller();return t===window?window.innerHeight:Ie(t).height}},{key:"activate",value:function(t){var e=this;this.$activeTarget=t,this.clear();var n=ye(this.$selector.split(",").map((function(e){return"".concat(e,'[href$="').concat(t,'"]')})).join(","),this.$el);n.forEach((function(t){if(Oe(t,"dropdown-item")){var n=xe(".dropdown, .dropup",t);n&&e.setActiveState(_e(".dropdown-toggle",n),!0),e.setActiveState(t,!0)}else{e.setActiveState(t,!0),we(t.parentElement,oC)&&e.setActiveState(t.parentElement,!0);for(var i=t;i;){var r=(i=xe(".nav, .list-group",i))?i.previousElementSibling:null;r&&we(r,"".concat(rC,", ").concat(aC))&&e.setActiveState(r,!0),r&&we(r,oC)&&(e.setActiveState(_e(rC,r),!0),e.setActiveState(r,!0))}}})),n&&n.length>0&&this.$root&&this.$root.$emit(lC,t,n)}},{key:"clear",value:function(){var t=this;ye("".concat(this.$selector,", ").concat(oC),this.$el).filter((function(t){return Oe(t,iC)})).forEach((function(e){return t.setActiveState(e,!1)}))}},{key:"setActiveState",value:function(t,e){t&&(e?Ee(t,iC):Te(t,iC))}}],i=[{key:"Name",get:function(){return"v-b-scrollspy"}},{key:"Default",get:function(){return uC}},{key:"DefaultType",get:function(){return dC}}],n&&nC(e.prototype,n),i&&nC(e,i),t}(),mC="__BV_ScrollSpy__",vC=/^\d+$/,gC=/^(auto|position|offset)$/,bC=function(t,e,n){if(h.KJ){var i=function(t){var e={};return t.arg&&(e.element="#".concat(t.arg)),(0,_.HP)(t.modifiers).forEach((function(t){vC.test(t)?e.offset=(0,re.yJ)(t,0):gC.test(t)&&(e.method=t)})),(0,g.Kg)(t.value)?e.element=t.value:(0,g.Et)(t.value)?e.offset=(0,Sn.jn)(t.value):(0,g.Gv)(t.value)&&(0,_.HP)(t.value).filter((function(t){return!!fC.DefaultType[t]})).forEach((function(n){e[n]=t.value[n]})),e}(e);t[mC]?t[mC].updateConfig(i,n.context.$root):t[mC]=new fC(t,i,n.context.$root)}};const yC={install:R({plugins:{componentsPlugin:Kx,directivesPlugin:I({plugins:{VBHoverPlugin:Zx,VBModalPlugin:Jx,VBPopoverPlugin:tb,VBScrollspyPlugin:I({directives:{VBScrollspy:{bind:function(t,e,n){bC(t,e,n)},inserted:function(t,e,n){bC(t,e,n)},update:function(t,e,n){e.value!==e.oldValue&&bC(t,e,n)},componentUpdated:function(t,e,n){e.value!==e.oldValue&&bC(t,e,n)},unbind:function(t){!function(t){t[mC]&&(t[mC].dispose(),t[mC]=null,delete t[mC])}(t)}}}}),VBTogglePlugin:Rs,VBTooltipPlugin:Xx,VBVisiblePlugin:I({directives:{VBVisible:ta}})}})}}),NAME:"BootstrapVue"};var _C=function(t,e,n,i,r,o,a,s,l,c){"boolean"!=typeof a&&(l=s,s=a,a=!1);var u,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=u):e&&(u=a?function(){e.call(this,c(this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),u)if(d.functional){var h=d.render;d.render=function(t,e){return u.call(e),h(t,e)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,u):[u]}return n};var wC=_C({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("textarea",{directives:[{name:"model",rawName:"v-model",value:t.val,expression:"val"}],style:t.computedStyles,domProps:{value:t.val},on:{focus:t.resize,input:function(e){e.target.composing||(t.val=e.target.value)}}})},staticRenderFns:[]},undefined,{name:"TextareaAutosize",props:{value:{type:[String,Number],default:""},autosize:{type:Boolean,default:!0},minHeight:{type:[Number],default:null},maxHeight:{type:[Number],default:null},important:{type:[Boolean,Array],default:!1}},data:function(){return{val:null,maxHeightScroll:!1,height:"auto"}},computed:{computedStyles:function(){return this.autosize?{resize:this.isResizeImportant?"none !important":"none",height:this.height,overflow:this.maxHeightScroll?"auto":this.isOverflowImportant?"hidden !important":"hidden"}:{}},isResizeImportant:function(){var t=this.important;return!0===t||Array.isArray(t)&&t.includes("resize")},isOverflowImportant:function(){var t=this.important;return!0===t||Array.isArray(t)&&t.includes("overflow")},isHeightImportant:function(){var t=this.important;return!0===t||Array.isArray(t)&&t.includes("height")}},watch:{value:function(t){this.val=t},val:function(t){this.$nextTick(this.resize),this.$emit("input",t)},minHeight:function(){this.$nextTick(this.resize)},maxHeight:function(){this.$nextTick(this.resize)},autosize:function(t){t&&this.resize()}},methods:{resize:function(){var t=this,e=this.isHeightImportant?"important":"";return this.height="auto".concat(e?" !important":""),this.$nextTick((function(){var n=t.$el.scrollHeight+1;t.minHeight&&(n=n<t.minHeight?t.minHeight:n),t.maxHeight&&(n>t.maxHeight?(n=t.maxHeight,t.maxHeightScroll=!0):t.maxHeightScroll=!1);var i=n+"px";t.height="".concat(i).concat(e?" !important":"")})),this}},created:function(){this.val=this.value},mounted:function(){this.resize()}},undefined,!1,undefined,void 0,void 0),xC={install:function(t){t.component("TextareaAutosize",wC)},version:"1.1.1"};"undefined"!=typeof window&&window.Vue&&window.Vue.use(xC);const CC=xC;var SC=n(5353);function EC(t){return function(t){if(Array.isArray(t))return TC(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return TC(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TC(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function TC(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}i.default.use(SC.Ay);var OC={setDragging:function(t,e){t.dragging=e},setGrouping:function(t,e){t.grouping=e},setReordering:function(t,e){t.reordering=e},setShowVariations:function(t,e){t.show_variations=e},setCanManage:function(t,e){t.can_manage=e},setFonts:function(t,e){t.fonts=e.map((function(t){return{id:t.id,label:t.name,value:t.class}}))},addFont:function(t,e){t.fonts.push({id:e.id,label:e.name,value:e.class})},removeFont:function(t,e){var n=t.fonts.findIndex((function(t){return t.id===e}));t.fonts.splice(n,1)},setUsers:function(t,e){t.users=e},addUser:function(t,e){t.users.push(e)},updateUser:function(t,e){var n=t.users.findIndex((function(t){return t.id===e.id}));t.users[n]=e,t.users=EC(t.users)},removeUser:function(t,e){var n=t.users.findIndex((function(t){return t.id===e}));t.users.splice(n,1)}};const kC=new SC.Ay.Store({state:function(){return{can_manage:!1,dragging:!1,grouping:!1,reordering:!1,show_variations:!0,fonts:[],users:[]}},getters:{},actions:{},mutations:OC,strict:!1,plugins:[]});n(8749),n(1771),n(5806),window.Vue=i.default,i.default.use(s),i.default.use(yC),i.default.use(CC),i.default.component("scroll",n(204).A),i.default.component("user-settings",n(4690).A),i.default.component("agent-settings",n(4756).A),i.default.component("client-settings",n(8879).A),i.default.component("check-email-verification",n(8833).A),i.default.component("loader",n(4186).A),i.default.component("status-dott",n(4296).A),i.default.component("notice",n(9310).A),i.default.component("re-order",n(2977).A),i.default.component("category-item",n(2655).A),i.default.component("un-publish-items",n(3314).A),i.default.component("queries",n(9722).A),i.default.component("query",n(5490).A),i.default.component("payment-details",n(5811).A),i.default.component("catalogue-store-settings",n(4547).A),i.default.component("catalogue-stock",n(741).A),i.default.component("catalogue-store",n(7658).A),i.default.component("categories",n(6086).A),i.default.component("packages",n(8888).A),i.default.component("filters",n(4671).A),i.default.component("step-builder-store-settings",n(96).A),i.default.component("step-builder",n(7918).A),i.default.component("step-builder-store",n(5981).A),i.default.component("step-builder-query",n(8824).A),i.default.component("drafts",n(5993).A),i.default.component("agent-manager",n(4511).A),i.default.component("accounts",n(5557).A),i.default.component("master-client-settings",n(3620).A),i.default.component("feedbacks",n(7029).A),i.default.component("feedback-form",n(1315).A),i.default.component("panorama",n(4358).A),i.default.component("client-manager",n(2237).A),i.default.component("admin-settings",n(8194).A),i.default.component("emails",n(5860).A),i.default.component("panorama-viewer",n(5091).A),i.default.component("users",n(7771).A),i.default.component("features",n(2114).A),i.default.component("agent-features",n(1190).A),i.default.component("client-management",n(6703).A),i.default.component("add-client",n(9142).A),i.default.component("forwards",n(1855).A);new i.default({store:kC,el:"#app"})},8749:(t,e,n)=>{window._=n(2543);try{window.Popper=n(8851).default,window.$=window.jQuery=n(4692),n(2754)}catch(t){}},9509:(t,e,n)=>{"use strict";n.d(e,{z:()=>i});var i=new(n(2893).default)},5776:(t,e,n)=>{"use strict";function i(t){return i="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},i(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(t,e,n){return e=a(e),function(t,e){if(e&&("object"===i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){return!1}}()?Reflect.construct(e,n||[],a(t).constructor):e.apply(t,n))}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}n.d(e,{A:()=>l});var l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),n=e,i&&r(n.prototype,i),a&&r(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(n(5577).Kx)},5806:(t,e,n)=>{"use strict";n.r(e);var i=n(2893),r=n(5353),o=n(5577);function a(t){return a="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},a(t)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e,n){return e=c(e),function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){return!1}}()?Reflect.construct(e,n||[],c(t).constructor):e.apply(t,n))}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}var d,h,p,f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(e,t),n=e,r=[{key:"fields",value:function(){return{id:this.attr(null),active_package_id:this.attr(null),active_package_items:this.attr(null)}}}],(i=null)&&s(n.prototype,i),r&&s(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,r}(o.Kx);p="store_state",(h="entity")in(d=f)?Object.defineProperty(d,h,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[h]=p;var m=n(5776);function v(t){return v="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},v(t)}function g(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function b(t,e,n){return e=y(e),function(t,e){if(e&&("object"===v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){return!1}}()?Reflect.construct(e,n||[],y(t).constructor):e.apply(t,n))}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function _(t,e){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_(t,e)}var w=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),b(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_(t,e)}(e,t),n=e,r=[{key:"fields",value:function(){return{id:this.attr(null),total:this.number(0)}}}],(i=null)&&g(n.prototype,i),r&&g(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,r}(m.A);!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(w,"entity","carts");var x=n(2502),C=n(6313),S=n(3661);function E(t){return E="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},E(t)}function T(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function O(t,e,n){return e=k(e),function(t,e){if(e&&("object"===E(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){return!1}}()?Reflect.construct(e,n||[],k(t).constructor):e.apply(t,n))}function k(t){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},k(t)}function A(t,e){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},A(t,e)}var P=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),O(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&A(t,e)}(e,t),n=e,r=[{key:"fields",value:function(){return{id:this.attr(null),user_id:this.attr(null),name:this.string(""),status:this.number(0)}}}],(i=null)&&T(n.prototype,i),r&&T(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,r}(m.A);function M(t){return M="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},M(t)}function L(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function D(t,e,n){return e=R(e),function(t,e){if(e&&("object"===M(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){return!1}}()?Reflect.construct(e,n||[],R(t).constructor):e.apply(t,n))}function R(t){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},R(t)}function I(t,e){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},I(t,e)}!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(P,"entity","filters");var j=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),D(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&I(t,e)}(e,t),n=e,r=[{key:"fields",value:function(){return{id:this.attr(null),user_id:this.attr(null),filter_id:this.attr(null),filter:this.belongsTo(P,"filter_id"),name:this.string(""),status:this.number(0)}}}],(i=null)&&L(n.prototype,i),r&&L(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,r}(m.A);!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(j,"entity","filter_conditions");var N=n(8425),F=n(6845),z=n(1084),B=n(7359),$=n(1684),U=n(3211),H=n(3029),V=n(3853),Y=n(3969);function q(t){return q="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},q(t)}function W(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function G(t,e,n){return e=X(e),function(t,e){if(e&&("object"===q(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){return!1}}()?Reflect.construct(e,n||[],X(t).constructor):e.apply(t,n))}function X(t){return X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},X(t)}function K(t,e){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},K(t,e)}var Z=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),G(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&K(t,e)}(e,t),n=e,r=[{key:"fields",value:function(){return{id:this.attr(null),user_id:this.attr(null),token:this.string(""),expires:this.string(""),tenant_id:this.string(""),refresh_token:this.string(""),id_token:this.string(""),account_id:this.string("")}}}],(i=null)&&W(n.prototype,i),r&&W(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,r}(m.A);!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(Z,"entity","xeros");var J=n(2985),Q=n(7342),tt=n(5009),et=n(9570),nt=n(5913),it=n(3212),rt=n(5539),ot=n(3144),at=n(1629);i.default.use(r.Ay);var st=new o.Ay.Database;st.register(f),st.register(w),st.register(x.A),st.register(C.A),st.register(S.A),st.register(P),st.register(j),st.register(N.A),st.register(F.A),st.register(z.A),st.register(B.A),st.register($.A),st.register(U.A),st.register(H.A),st.register(V.A),st.register(Y.A),st.register(Z),st.register(J.A),st.register(Q.A),st.register(tt.A),st.register(et.A),st.register(nt.A),st.register(it.A),st.register(rt.A),st.register(ot.A),st.register(at.A),new r.Ay.Store({plugins:[o.Ay.install(st)]})},9570:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var i=n(5776),r=n(7342),o=n(5913);function a(t){return a="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},a(t)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e,n){return e=c(e),function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){return!1}}()?Reflect.construct(e,n||[],c(t).constructor):e.apply(t,n))}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(e,t),n=e,a=[{key:"fields",value:function(){return{id:this.attr(null),value_id:this.attr(null),draft_id:this.attr(null),is_draft:this.attr(1),price:this.number(0),value:this.belongsTo(r.A,"value_id"),price_values:this.hasMany(o.A,"price_id"),values:this.belongsToMany(r.A,o.A,"price_id","value_id"),originalPriceValues:this.attr(null)}}}],(i=null)&&s(n.prototype,i),a&&s(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(i.A);d(h,"entity","prices"),d(h,"primaryKey","id")},5913:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var i=n(5776),r=n(9570),o=n(7342);function a(t){return a="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},a(t)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e,n){return e=c(e),function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){return!1}}()?Reflect.construct(e,n||[],c(t).constructor):e.apply(t,n))}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(e,t),n=e,a=[{key:"fields",value:function(){return{price_id:this.attr(null),value_id:this.attr(null),is_draft:this.attr(0),price:this.belongsTo(r.A,"price_id"),value:this.belongsTo(o.A,"value_id")}}}],(i=null)&&s(n.prototype,i),a&&s(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(i.A);d(h,"entity","price_value"),d(h,"primaryKey",["price_id","value_id"])},2985:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var i=n(5776),r=n(7342),o=n(5009);function a(t){return a="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},a(t)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e,n){return e=c(e),function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){return!1}}()?Reflect.construct(e,n||[],c(t).constructor):e.apply(t,n))}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(e,t),n=e,a=[{key:"fields",value:function(){return{id:this.attr(null),parent_id:this.attr(null),branch_id:this.attr(null),draft_id:this.attr(null),is_draft:this.boolean(!0),is_favorite:this.boolean(!1),is_branch:this.boolean(!1),autoselect:this.boolean(!0),show_continue:this.boolean(!0),show_in_quote:this.boolean(!0),show_image_in_quote:this.boolean(!0),show_price_in_quote:this.boolean(!0),show_panorama_tooltip:this.boolean(!1),name:this.attr(null),title:this.attr(null),display_type:this.attr("plain"),description_type:this.attr("flip-y"),card_size:this.attr("md"),card_width:this.attr(null),card_height:this.attr(null),card_scale:this.attr(null),order:this.number(0),active:this.boolean(!0),main_image_mobile:this.boolean(!0),main_image_desktop:this.boolean(!0),min_values:this.number(1),max_values:this.number(1),image:this.attr(null),thumb:this.attr(null),full_image:this.attr(null),original:this.attr(null),panorama:this.attr(null),image_zoom:this.attr(null),image_pitch:this.attr(null),image_yaw:this.attr(null),parent:this.belongsTo(e,"parent_id"),children:this.hasMany(e,"parent_id"),values:this.hasMany(r.A,"step_id"),variation_images:this.hasManyThrough(o.A,r.A,"step_id","value_id")}}}],(i=null)&&s(n.prototype,i),a&&s(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(i.A);d(h,"entity","steps"),d(h,"primaryKey","id")},1629:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var i=n(5776),r=n(3853),o=n(3029);function a(t){return a="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},a(t)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e,n){return e=c(e),function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){return!1}}()?Reflect.construct(e,n||[],c(t).constructor):e.apply(t,n))}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(e,t),n=e,a=[{key:"fields",value:function(){return{store_id:this.attr(null),user_id:this.attr(null),added_by:this.attr(null),store:this.belongsTo(o.A,"store_id"),user:this.belongsTo(r.A,"user_id")}}}],(i=null)&&s(n.prototype,i),a&&s(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(i.A);d(h,"entity","store_user"),d(h,"primaryKey",["store_id","user_id"])},3144:(t,e,n)=>{"use strict";function i(t){return i="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},i(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(t,e,n){return e=a(e),function(t,e){if(e&&("object"===i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){return!1}}()?Reflect.construct(e,n||[],a(t).constructor):e.apply(t,n))}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{A:()=>c});var c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),n=e,a=[{key:"fields",value:function(){return{id:this.attr(null),user_id:this.attr(null),feature:this.attr(null),enabled:this.boolean(!1)}}}],(i=null)&&r(n.prototype,i),a&&r(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(n(5776).A);l(c,"entity","user_feature"),l(c,"primaryKey","id")},5539:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var i=n(5776),r=n(3853),o=n(7342);function a(t){return a="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},a(t)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e,n){return e=c(e),function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){return!1}}()?Reflect.construct(e,n||[],c(t).constructor):e.apply(t,n))}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(e,t),n=e,a=[{key:"fields",value:function(){return{user_id:this.attr(null),value_id:this.attr(null),user:this.belongsTo(r.A,"user_id"),value:this.belongsTo(o.A,"value_id")}}}],(i=null)&&s(n.prototype,i),a&&s(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(i.A);d(h,"entity","user_value"),d(h,"primaryKey",["user_id","value_id"])},7342:(t,e,n)=>{"use strict";n.d(e,{A:()=>m});var i=n(5776),r=n(2985),o=n(5009),a=n(9570),s=n(5539),l=n(3853);function c(t){return c="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},c(t)}function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function d(t,e,n){return e=h(e),function(t,e){if(e&&("object"===c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){return!1}}()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var m=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,c=[{key:"fields",value:function(){return{id:this.attr(null),step_id:this.attr(null),draft_id:this.attr(null),is_draft:this.attr(1),name:this.attr(null),sku:this.attr(null),description:this.attr(null),button_color:this.attr(null),button_background:this.attr(null),active:this.attr(1),order:this.attr(0),step:this.belongsTo(r.A,"step_id"),branch_steps:this.hasMany(r.A,"branch_id"),variation_images:this.hasMany(o.A,"value_id"),prices:this.hasMany(a.A,"value_id"),user_values:this.hasMany(s.A,"value_id"),values:this.belongsToMany(l.A,s.A,"user_id","value_id")}}}],(i=null)&&u(n.prototype,i),c&&u(n,c),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,c}(i.A);f(m,"entity","values"),f(m,"primaryKey","id")},5009:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var i=n(5776),r=n(7342),o=n(3212);function a(t){return a="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},a(t)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e,n){return e=c(e),function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){return!1}}()?Reflect.construct(e,n||[],c(t).constructor):e.apply(t,n))}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(e,t),n=e,a=[{key:"fields",value:function(){return{id:this.attr(null),value_id:this.attr(null),is_draft:this.attr(1),original:this.attr(null),thumb:this.attr(null),full_image:this.attr(null),panorama:this.attr(null),value:this.belongsTo(r.A,"value_id"),variation_image_values:this.hasMany(o.A,"variation_image_id"),values:this.belongsToMany(r.A,o.A,"variation_image_id","value_id"),originalValues:this.attr(null)}}}],(i=null)&&s(n.prototype,i),a&&s(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(i.A);d(h,"entity","variation-images"),d(h,"primaryKey","id")},3212:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var i=n(5776),r=n(5009),o=n(7342);function a(t){return a="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},a(t)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e,n){return e=c(e),function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){return!1}}()?Reflect.construct(e,n||[],c(t).constructor):e.apply(t,n))}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(e,t),n=e,a=[{key:"fields",value:function(){return{variation_image_id:this.attr(null),value_id:this.attr(null),is_draft:this.attr(0),variation_image:this.belongsTo(r.A,"variation_image_id"),value:this.belongsTo(o.A,"value_id")}}}],(i=null)&&s(n.prototype,i),a&&s(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(i.A);d(h,"entity","variation_image_value"),d(h,"primaryKey",["variation_image_id","value_id"])},2502:(t,e,n)=>{"use strict";n.d(e,{A:()=>f});var i=n(5776),r=n(6845),o=n(6313);function a(t){return a="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},a(t)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e,n){return e=c(e),function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){return!1}}()?Reflect.construct(e,n||[],c(t).constructor):e.apply(t,n))}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}var d,h,p,f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(e,t),n=e,a=[{key:"fields",value:function(){return{id:this.attr(null),user_id:this.attr(null),name:this.string(""),color:this.string(""),discount:this.number(0),status:this.number(0),order:this.number(0),items:this.belongsToMany(r.A,o.A,"category_id","item_id")}}}],(i=null)&&s(n.prototype,i),a&&s(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(i.A);p="categories",(h="entity")in(d=f)?Object.defineProperty(d,h,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[h]=p},6313:(t,e,n)=>{"use strict";function i(t){return i="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},i(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(t,e,n){return e=a(e),function(t,e){if(e&&("object"===i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){return!1}}()?Reflect.construct(e,n||[],a(t).constructor):e.apply(t,n))}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{A:()=>c});var c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),n=e,a=[{key:"fields",value:function(){return{category_id:this.number(0),item_id:this.number(0),order:this.number(0)}}}],(i=null)&&r(n.prototype,i),a&&r(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(n(5776).A);l(c,"entity","category_item"),l(c,"primaryKey",["category_id","item_id"])},3661:(t,e,n)=>{"use strict";function i(t){return i="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},i(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(t,e,n){return e=a(e),function(t,e){if(e&&("object"===i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){return!1}}()?Reflect.construct(e,n||[],a(t).constructor):e.apply(t,n))}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}n.d(e,{A:()=>d});var l,c,u,d=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),n=e,a=[{key:"fields",value:function(){return{id:this.attr(null),code:this.string(""),name:this.string(""),symbol:this.string("")}}}],(i=null)&&r(n.prototype,i),a&&r(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(n(5776).A);u="currencies",(c="entity")in(l=d)?Object.defineProperty(l,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):l[c]=u},8425:(t,e,n)=>{"use strict";function i(t){return i="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},i(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(t,e,n){return e=a(e),function(t,e){if(e&&("object"===i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){return!1}}()?Reflect.construct(e,n||[],a(t).constructor):e.apply(t,n))}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{A:()=>c});var c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),n=e,a=[{key:"fields",value:function(){return{id:this.attr(null),user_id:this.attr(null),cropping_info:this.attr(null),original_file_path:this.attr(null),cropped_file_path:this.attr(null),order:this.number(0),image_type:this.attr(null),imageable_id:this.attr(null),imageable_type:this.attr(null,(function(t){return"App\\Models\\Stock"===t?"items":"App\\Models\\Package"===t?"packages":t})),created_at:this.string(null),updated_at:this.string(null)}}}],(i=null)&&r(n.prototype,i),a&&r(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(n(5776).A);l(c,"entity","images"),l(c,"primaryKey","id")},6845:(t,e,n)=>{"use strict";n.d(e,{A:()=>m});var i=n(5776),r=n(8425),o=n(2502),a=n(6313),s=n(1084),l=n(7359);function c(t){return c="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},c(t)}function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function d(t,e,n){return e=h(e),function(t,e){if(e&&("object"===c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){return!1}}()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var m=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,i=[{key:"priceWithDiscount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.discount;return(t>0?this.price-this.price*(t/100):this.price).toFixed(2)}}],c=[{key:"fields",value:function(){return{id:this.attr(null),user_id:this.attr(null),name:this.string(""),description:this.attr(null),price:this.number(0),delivery_price:this.number(0),discount:this.number(0),status:this.number(0),max_quantity:this.attr(null),created_at:this.string(""),updated_at:this.string(""),images:this.morphMany(r.A,"imageable_id","imageable_type"),categoryItems:this.hasMany(a.A,"item_id"),categories:this.belongsToMany(o.A,a.A,"item_id","category_id"),packageItems:this.hasMany(l.A,"item_id"),packages:this.belongsToMany(s.A,l.A,"item_id","package_id").as("intermediate"),type:this.string("item"),order:this.number(0)}}}],i&&u(n.prototype,i),c&&u(n,c),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,c}(i.A);f(m,"entity","items"),f(m,"primaryKey","id")},1084:(t,e,n)=>{"use strict";n.d(e,{A:()=>m});var i=n(5776),r=n(6845),o=n(7359),a=n(8425);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 l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t,e,n){return e=u(e),function(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){return!1}}()?Reflect.construct(e,n||[],u(t).constructor):e.apply(t,n))}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var h,p,f,m=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),n=e,s=[{key:"fields",value:function(){return{id:this.attr(null),user_id:this.attr(null),name:this.string(""),description:this.string(""),discount:this.number(0),price:this.number(0),delivery_price:this.number(0),additional_cost:this.number(0),labour_cost:this.number(0),status:this.number(0),created_at:this.string(""),updated_at:this.string(""),order:this.number(0),items:this.belongsToMany(r.A,o.A,"package_id","item_id"),images:this.morphMany(a.A,"imageable_id","imageable_type"),type:this.string("package")}}}],(i=[{key:"priceWithoutDiscount",get:function(){var t=0;return this.items.forEach((function(e){var n=e.price;e.pivot.quantity&&(n=e.pivot.quantity*e.price),t+=n})),(t+=this.additional_cost+this.labour_cost).toFixed(2)}},{key:"priceWithDiscount",get:function(){var t=this,e=0;return this.items.forEach((function(n){var i=n.discount>t.discount?n.discount:t.discount,r=n.priceWithDiscount(i);n.pivot.quantity&&(r=n.pivot.quantity*n.priceWithDiscount(i)),e+=r})),(e+=this.additional_cost+this.labour_cost).toFixed(2)}}])&&l(n.prototype,i),s&&l(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,s}(i.A);f="packages",(p="entity")in(h=m)?Object.defineProperty(h,p,{value:f,enumerable:!0,configurable:!0,writable:!0}):h[p]=f},7359:(t,e,n)=>{"use strict";function i(t){return i="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},i(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(t,e,n){return e=a(e),function(t,e){if(e&&("object"===i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){return!1}}()?Reflect.construct(e,n||[],a(t).constructor):e.apply(t,n))}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{A:()=>c});var c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),n=e,a=[{key:"fields",value:function(){return{package_id:this.number(0),item_id:this.number(0),quantity:this.number(0),removeable:this.number(0),created_at:this.string(""),updated_at:this.string(""),order:this.number(0)}}}],(i=null)&&r(n.prototype,i),a&&r(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(n(5776).A);l(c,"entity","package_item"),l(c,"primaryKey",["package_id","item_id"])},1684:(t,e,n)=>{"use strict";n.d(e,{A:()=>m});var i=n(5776),r=n(3853),o=n(3211),a=n(3029);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 l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t,e,n){return e=u(e),function(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){return!1}}()?Reflect.construct(e,n||[],u(t).constructor):e.apply(t,n))}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var h,p,f,m=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),n=e,s=[{key:"fields",value:function(){return{id:this.attr(null),xero_quote_id:this.attr(null),customer_id:this.attr(null),name:this.attr(null),email:this.attr(null),phone:this.attr(null),address:this.attr(null),query:this.attr(null),status:this.attr(null),enquire_tab_id:this.attr(null),store_id:this.attr(null),save:this.attr(null),view_elections_link:this.attr(null),updated_at:this.attr(null),sent_at:this.attr(null),sent:this.attr(null),created_at:this.attr(null),local_created_at:this.attr(null),deleted_at:this.attr(null),store:this.belongsTo(a.A,"store_id"),users:this.belongsToMany(r.A,o.A,"query_id","user_id"),monday_exports:this.attr(null)}}}],(i=null)&&l(n.prototype,i),s&&l(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,s}(i.A);f="queries",(p="entity")in(h=m)?Object.defineProperty(h,p,{value:f,enumerable:!0,configurable:!0,writable:!0}):h[p]=f},3211:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var i=n(5776),r=n(3853),o=n(1684);function a(t){return a="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},a(t)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e,n){return e=c(e),function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){return!1}}()?Reflect.construct(e,n||[],c(t).constructor):e.apply(t,n))}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(e,t),n=e,a=[{key:"fields",value:function(){return{query_id:this.attr(null),user_id:this.attr(null),query:this.belongsTo(o.A,"query_id"),user:this.belongsTo(r.A,"user_id")}}}],(i=null)&&s(n.prototype,i),a&&s(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(i.A);d(h,"entity","query_user"),d(h,"primaryKey",["query_id","user_id"])},3029:(t,e,n)=>{"use strict";n.d(e,{A:()=>p});var i=n(5776),r=n(3661);function o(t){return o="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},o(t)}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e,n){return e=l(e),function(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){return!1}}()?Reflect.construct(e,n||[],l(t).constructor):e.apply(t,n))}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}var u,d,h,p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),n=e,o=[{key:"fields",value:function(){return{id:this.attr(null),user_id:this.attr(null),name:this.string(""),client_name:this.attr(null),email:this.attr(null),link:this.string(null),store_type:this.string(""),live:this.boolean(!1),xero_enabled:this.boolean(!1),monday_enabled:this.boolean(!1),fb_pixel_enabled:this.boolean(!0),fb_pixel_on:this.boolean(!1),fb_pixel_code:this.attr(null),ga_enabled:this.boolean(!0),ga_on:this.boolean(!1),ga_code:this.attr(null),step_builder_enabled:this.boolean(!1),agent_manager_enabled:this.boolean(!1),customer_view_enabled:this.boolean(!1),drafts_enabled:this.boolean(!1),custom_bg:this.boolean(!1),bg_clr:this.string(null),custom_header_bg:this.boolean(!1),header_bg_grouped:this.boolean(!1),header_bg_clr:this.string(null),custom_footer_bg:this.boolean(!1),footer_bg_grouped:this.boolean(!1),footer_bg_clr:this.string(null),btn_outline_clr:this.string(""),arrow_btns_clr:this.string(""),title_clr:this.string(""),packages_label:this.string(""),highlight_item_clr:this.string(""),is_hidden_price:this.boolean(!1),settings:this.attr(null),agentCount:this.number(0),diskSpace:this.attr(null),currency_id:this.attr(null),currency:this.belongsTo(r.A,"currency_id")}}}],(i=null)&&a(n.prototype,i),o&&a(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(i.A);h="stores",(d="entity")in(u=p)?Object.defineProperty(u,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):u[d]=h},3853:(t,e,n)=>{"use strict";n.d(e,{A:()=>g});var i=n(5776),r=n(5539),o=n(7342),a=n(3029),s=n(3144),l=n(1629);function c(t){return c="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},c(t)}function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function d(t,e,n){return e=h(e),function(t,e){if(e&&("object"===c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){return!1}}()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var f,m,v,g=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,c=[{key:"fields",value:function(){return{id:this.attr(null),order:this.attr(null),name:this.string(""),email:this.string(""),phone:this.attr(null),logged_at:this.attr(null),email_verified_at:this.attr(null),deactivated_at:this.attr(null),isSubscribed:this.boolean(!1),addedByUser:this.attr(null),role:this.attr(null),roleName:this.attr(null),store:this.hasOne(a.A,"user_id"),user_values:this.hasMany(r.A,"user_id"),features:this.hasMany(s.A,"user_id"),values:this.belongsToMany(o.A,r.A,"value_id","user_id"),stores:this.belongsToMany(a.A,l.A,"store_id","user_id")}}}],(i=null)&&u(n.prototype,i),c&&u(n,c),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,c}(i.A);v="users",(m="entity")in(f=g)?Object.defineProperty(f,m,{value:v,enumerable:!0,configurable:!0,writable:!0}):f[m]=v},3969:(t,e,n)=>{"use strict";n.d(e,{A:()=>p});var i=n(5776),r=n(3853);function o(t){return o="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},o(t)}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e,n){return e=l(e),function(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){return!1}}()?Reflect.construct(e,n||[],l(t).constructor):e.apply(t,n))}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}var u,d,h,p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),n=e,o=[{key:"fields",value:function(){return{id:this.attr(null),user_id:this.attr(null),store_id:this.attr(null),timezone:this.attr(null),user:this.belongsTo(r.A,"user_id"),notification_enabled:this.boolean(!1),xero_enabled:this.boolean(!1),monday_enabled:this.boolean(!1)}}}],(i=null)&&a(n.prototype,i),o&&a(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(i.A);h="user_settings",(d="entity")in(u=p)?Object.defineProperty(u,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):u[d]=h},967:(t,e,n)=>{"use strict";function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}n.d(e,{A:()=>s});const s=new(function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)},(e=[{key:"impersonate",value:function(t){return window.axios.post("/client-manager/".concat(t.id,"/impersonate")).then((function(t){t.data.data&&(window.location.href="/dashboard")}))}},{key:"find",value:function(t,e){return window.axios.post("/users/find",r(r({},t),{},{role:e}))}}])&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}())},2899:(t,e,n)=>{var i,r,o;!function(a){"use strict";r=[n(527),n(8409)],void 0===(o="function"==typeof(i=function(t,e){var n=e.prototype;t.extend(n.options,{fullScreen:!1});var i=n.initialize,r=n.close;return t.extend(n,{getFullScreenElement:function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},requestFullScreen:function(t){t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()},exitFullScreen:function(){document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()},initialize:function(){i.call(this),this.options.fullScreen&&!this.getFullScreenElement()&&this.requestFullScreen(this.container[0])},close:function(){this.getFullScreenElement()===this.container[0]&&this.exitFullScreen(),r.call(this)}}),e})?i.apply(e,r):i)||(t.exports=o)}()},9855:(t,e,n)=>{var i,r,o;!function(a){"use strict";r=[n(527),n(8409)],void 0===(o="function"==typeof(i=function(t,e){var n=e.prototype;t.extend(n.options,{videoContentClass:"video-content",videoLoadingClass:"video-loading",videoPlayingClass:"video-playing",videoPosterProperty:"poster",videoSourcesProperty:"sources"});var i=n.handleSlide;return t.extend(n,{handleSlide:function(t){i.call(this,t),this.playingVideo&&this.playingVideo.pause()},videoFactory:function(e,n,i){var r,o,a,s,l,c=this,u=this.options,d=this.elementPrototype.cloneNode(!1),h=t(d),p=[{type:"error",target:d}],f=i||document.createElement("video"),m=this.getItemProperty(e,u.urlProperty),v=this.getItemProperty(e,u.typeProperty),g=this.getItemProperty(e,u.titleProperty),b=this.getItemProperty(e,this.options.altTextProperty)||g,y=this.getItemProperty(e,u.videoPosterProperty),_=this.getItemProperty(e,u.videoSourcesProperty);if(h.addClass(u.videoContentClass),g&&(d.title=g),f.canPlayType)if(m&&v&&f.canPlayType(v))f.src=m;else if(_)for(;_.length;)if(o=_.shift(),m=this.getItemProperty(o,u.urlProperty),v=this.getItemProperty(o,u.typeProperty),m&&v&&f.canPlayType(v)){f.src=m;break}return y&&(f.poster=y,r=this.imagePrototype.cloneNode(!1),t(r).addClass(u.toggleClass),r.src=y,r.draggable=!1,r.alt=b,d.appendChild(r)),(a=document.createElement("a")).setAttribute("target","_blank"),i||a.setAttribute("download",g),a.href=m,f.src&&(f.controls=!0,(i||t(f)).on("error",(function(){c.setTimeout(n,p)})).on("pause",(function(){f.seeking||(s=!1,h.removeClass(c.options.videoLoadingClass).removeClass(c.options.videoPlayingClass),l&&c.container.addClass(c.options.controlsClass),delete c.playingVideo,c.interval&&c.play())})).on("playing",(function(){s=!1,h.removeClass(c.options.videoLoadingClass).addClass(c.options.videoPlayingClass),c.container.hasClass(c.options.controlsClass)?(l=!0,c.container.removeClass(c.options.controlsClass)):l=!1})).on("play",(function(){window.clearTimeout(c.timeout),s=!0,h.addClass(c.options.videoLoadingClass),c.playingVideo=f})),t(a).on("click",(function(t){c.preventDefault(t),s?f.pause():f.play()})),d.appendChild(i&&i.element||f)),d.appendChild(a),this.setTimeout(n,[{type:"load",target:d}]),d}}),e})?i.apply(e,r):i)||(t.exports=o)}()},7221:(t,e,n)=>{var i,r,o;!function(a){"use strict";r=[n(527),n(9855)],void 0===(o="function"==typeof(i=function(t,e){if(!window.postMessage)return e;var n=e.prototype;t.extend(n.options,{youTubeVideoIdProperty:"youtube",youTubePlayerVars:{wmode:"transparent"},youTubeClickToPlay:!0});var i=n.textFactory||n.imageFactory,r=function(t,e,n){this.videoId=t,this.playerVars=e,this.clickToPlay=n,this.element=document.createElement("div"),this.listeners={}};return t.extend(r.prototype,{canPlayType:function(){return!0},on:function(t,e){return this.listeners[t]=e,this},loadAPI:function(){var t,e=this,n=window.onYouTubeIframeAPIReady,i="//www.youtube.com/iframe_api",r=document.getElementsByTagName("script"),o=r.length;for(window.onYouTubeIframeAPIReady=function(){n&&n.apply(this),e.playOnReady&&e.play()};o;)if(r[o-=1].src===i)return;(t=document.createElement("script")).src=i,r[0].parentNode.insertBefore(t,r[0])},onReady:function(){this.ready=!0,this.playOnReady&&this.play()},onPlaying:function(){this.playStatus<2&&(this.listeners.playing(),this.playStatus=2)},onPause:function(){n.setTimeout.call(this,this.checkSeek,null,2e3)},checkSeek:function(){this.stateChange!==YT.PlayerState.PAUSED&&this.stateChange!==YT.PlayerState.ENDED||(this.listeners.pause(),delete this.playStatus)},onStateChange:function(t){switch(t.data){case YT.PlayerState.PLAYING:this.hasPlayed=!0,this.onPlaying();break;case YT.PlayerState.PAUSED:case YT.PlayerState.ENDED:this.onPause()}this.stateChange=t.data},onError:function(t){this.listeners.error(t)},play:function(){var t=this;this.playStatus||(this.listeners.play(),this.playStatus=1),this.ready?!this.hasPlayed&&(this.clickToPlay||window.navigator&&/iP(hone|od|ad)/.test(window.navigator.platform))?this.onPlaying():this.player.playVideo():(this.playOnReady=!0,window.YT&&YT.Player?this.player||(this.player=new YT.Player(this.element,{videoId:this.videoId,playerVars:this.playerVars,events:{onReady:function(){t.onReady()},onStateChange:function(e){t.onStateChange(e)},onError:function(e){t.onError(e)}}})):this.loadAPI())},pause:function(){this.ready?this.player.pauseVideo():this.playStatus&&(delete this.playOnReady,this.listeners.pause(),delete this.playStatus)}}),t.extend(n,{YouTubePlayer:r,textFactory:function(t,e){var n=this.options,o=this.getItemProperty(t,n.youTubeVideoIdProperty);return o?(void 0===this.getItemProperty(t,n.urlProperty)&&(t[n.urlProperty]="//www.youtube.com/watch?v="+o),void 0===this.getItemProperty(t,n.videoPosterProperty)&&(t[n.videoPosterProperty]="//img.youtube.com/vi/"+o+"/maxresdefault.jpg"),this.videoFactory(t,e,new r(o,n.youTubePlayerVars,n.youTubeClickToPlay))):i.call(this,t,e)}}),e})?i.apply(e,r):i)||(t.exports=o)}()},8409:(t,e,n)=>{var i,r,o;!function(a){"use strict";r=[n(527)],i=function(t){function e(t,n){return void 0===document.body.style.maxHeight?null:this&&this.options===e.prototype.options?void(t&&t.length?(this.list=t,this.num=t.length,this.initOptions(n),this.initialize()):this.console.log("blueimp Gallery: No or empty list provided as first argument.",t)):new e(t,n)}return t.extend(e.prototype,{options:{container:"#blueimp-gallery",slidesContainer:"div",titleElement:"h3",displayClass:"blueimp-gallery-display",controlsClass:"blueimp-gallery-controls",singleClass:"blueimp-gallery-single",leftEdgeClass:"blueimp-gallery-left",rightEdgeClass:"blueimp-gallery-right",playingClass:"blueimp-gallery-playing",slideClass:"slide",slideLoadingClass:"slide-loading",slideErrorClass:"slide-error",slideContentClass:"slide-content",toggleClass:"toggle",prevClass:"prev",nextClass:"next",closeClass:"close",playPauseClass:"play-pause",typeProperty:"type",titleProperty:"title",altTextProperty:"alt",urlProperty:"href",srcsetProperty:"urlset",displayTransition:!0,clearSlides:!0,stretchImages:!1,toggleControlsOnReturn:!0,toggleControlsOnSlideClick:!0,toggleSlideshowOnSpace:!0,enableKeyboardNavigation:!0,closeOnEscape:!0,closeOnSlideClick:!0,closeOnSwipeUpOrDown:!0,closeOnHashChange:!0,emulateTouchEvents:!0,stopTouchEventsPropagation:!1,hidePageScrollbars:!0,disableScroll:!0,carousel:!1,continuous:!0,unloadElements:!0,startSlideshow:!1,slideshowInterval:5e3,slideshowDirection:"ltr",index:0,preloadRange:2,transitionDuration:300,slideshowTransitionDuration:500,event:void 0,onopen:void 0,onopened:void 0,onslide:void 0,onslideend:void 0,onslidecomplete:void 0,onclose:void 0,onclosed:void 0},carouselOptions:{hidePageScrollbars:!1,toggleControlsOnReturn:!1,toggleSlideshowOnSpace:!1,enableKeyboardNavigation:!1,closeOnEscape:!1,closeOnSlideClick:!1,closeOnSwipeUpOrDown:!1,disableScroll:!1,startSlideshow:!0},console:window.console&&"function"==typeof window.console.log?window.console:{log:function(){}},support:function(e){var n,i={touch:void 0!==window.ontouchstart||window.DocumentTouch&&document instanceof DocumentTouch},r={webkitTransition:{end:"webkitTransitionEnd",prefix:"-webkit-"},MozTransition:{end:"transitionend",prefix:"-moz-"},OTransition:{end:"otransitionend",prefix:"-o-"},transition:{end:"transitionend",prefix:""}};for(n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&void 0!==e.style[n]){i.transition=r[n],i.transition.name=n;break}function o(){var t,n,r=i.transition;document.body.appendChild(e),r&&(t=r.name.slice(0,-9)+"ransform",void 0!==e.style[t]&&(e.style[t]="translateZ(0)",n=window.getComputedStyle(e).getPropertyValue(r.prefix+"transform"),i.transform={prefix:r.prefix,name:t,translate:!0,translateZ:!!n&&"none"!==n})),void 0!==e.style.backgroundSize&&(i.backgroundSize={},e.style.backgroundSize="contain",i.backgroundSize.contain="contain"===window.getComputedStyle(e).getPropertyValue("background-size"),e.style.backgroundSize="cover",i.backgroundSize.cover="cover"===window.getComputedStyle(e).getPropertyValue("background-size")),document.body.removeChild(e)}return document.body?o():t(document).on("DOMContentLoaded",o),i}(document.createElement("div")),requestAnimationFrame:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,cancelAnimationFrame:window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame,initialize:function(){if(this.initStartIndex(),!1===this.initWidget())return!1;this.initEventListeners(),this.onslide(this.index),this.ontransitionend(),this.options.startSlideshow&&this.play()},slide:function(t,e){window.clearTimeout(this.timeout);var n,i,r,o=this.index;if(o!==t&&1!==this.num){if(e||(e=this.options.transitionDuration),this.support.transform){for(this.options.continuous||(t=this.circle(t)),n=Math.abs(o-t)/(o-t),this.options.continuous&&(i=n,(n=-this.positions[this.circle(t)]/this.slideWidth)!==i&&(t=-n*this.num+t)),r=Math.abs(o-t)-1;r;)r-=1,this.move(this.circle((t>o?t:o)-r-1),this.slideWidth*n,0);t=this.circle(t),this.move(o,this.slideWidth*n,e),this.move(t,0,e),this.options.continuous&&this.move(this.circle(t-n),-this.slideWidth*n,0)}else t=this.circle(t),this.animate(o*-this.slideWidth,t*-this.slideWidth,e);this.onslide(t)}},getIndex:function(){return this.index},getNumber:function(){return this.num},prev:function(){(this.options.continuous||this.index)&&this.slide(this.index-1)},next:function(){(this.options.continuous||this.index<this.num-1)&&this.slide(this.index+1)},play:function(t){var e=this,n=this.index+("rtl"===this.options.slideshowDirection?-1:1);window.clearTimeout(this.timeout),this.interval=t||this.options.slideshowInterval,this.elements[this.index]>1&&(this.timeout=this.setTimeout(!this.requestAnimationFrame&&this.slide||function(t,n){e.animationFrameId=e.requestAnimationFrame.call(window,(function(){e.slide(t,n)}))},[n,this.options.slideshowTransitionDuration],this.interval)),this.container.addClass(this.options.playingClass)},pause:function(){window.clearTimeout(this.timeout),this.interval=null,this.cancelAnimationFrame&&(this.cancelAnimationFrame.call(window,this.animationFrameId),this.animationFrameId=null),this.container.removeClass(this.options.playingClass)},add:function(t){var e;for(t.concat||(t=Array.prototype.slice.call(t)),this.list.concat||(this.list=Array.prototype.slice.call(this.list)),this.list=this.list.concat(t),this.num=this.list.length,this.num>2&&null===this.options.continuous&&(this.options.continuous=!0,this.container.removeClass(this.options.leftEdgeClass)),this.container.removeClass(this.options.rightEdgeClass).removeClass(this.options.singleClass),e=this.num-t.length;e<this.num;e+=1)this.addSlide(e),this.positionSlide(e);this.positions.length=this.num,this.initSlides(!0)},resetSlides:function(){this.slidesContainer.empty(),this.unloadAllSlides(),this.slides=[]},handleClose:function(){var t=this.options;this.destroyEventListeners(),this.pause(),this.container[0].style.display="none",this.container.removeClass(t.displayClass).removeClass(t.singleClass).removeClass(t.leftEdgeClass).removeClass(t.rightEdgeClass),t.hidePageScrollbars&&(document.body.style.overflow=this.bodyOverflowStyle),this.options.clearSlides&&this.resetSlides(),this.options.onclosed&&this.options.onclosed.call(this)},close:function(){var t=this;function e(n){n.target===t.container[0]&&(t.container.off(t.support.transition.end,e),t.handleClose())}this.options.onclose&&this.options.onclose.call(this),this.support.transition&&this.options.displayTransition?(this.container.on(this.support.transition.end,e),this.container.removeClass(this.options.displayClass)):this.handleClose()},circle:function(t){return(this.num+t%this.num)%this.num},move:function(t,e,n){this.translateX(t,e,n),this.positions[t]=e},translate:function(t,e,n,i){if(this.slides[t]){var r=this.slides[t].style,o=this.support.transition,a=this.support.transform;r[o.name+"Duration"]=i+"ms",r[a.name]="translate("+e+"px, "+n+"px)"+(a.translateZ?" translateZ(0)":"")}},translateX:function(t,e,n){this.translate(t,e,0,n)},translateY:function(t,e,n){this.translate(t,0,e,n)},animate:function(t,e,n){if(n)var i=this,r=(new Date).getTime(),o=window.setInterval((function(){var a=(new Date).getTime()-r;if(a>n)return i.slidesContainer[0].style.left=e+"px",i.ontransitionend(),void window.clearInterval(o);i.slidesContainer[0].style.left=(e-t)*(Math.floor(a/n*100)/100)+t+"px"}),4);else this.slidesContainer[0].style.left=e+"px"},preventDefault:function(t){t.preventDefault?t.preventDefault():t.returnValue=!1},stopPropagation:function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},onresize:function(){this.initSlides(!0)},onhashchange:function(){this.options.closeOnHashChange&&this.close()},onmousedown:function(t){t.which&&1===t.which&&"VIDEO"!==t.target.nodeName&&"AUDIO"!==t.target.nodeName&&(t.preventDefault(),(t.originalEvent||t).touches=[{pageX:t.pageX,pageY:t.pageY}],this.ontouchstart(t))},onmousemove:function(t){this.touchStart&&((t.originalEvent||t).touches=[{pageX:t.pageX,pageY:t.pageY}],this.ontouchmove(t))},onmouseup:function(t){this.touchStart&&(this.ontouchend(t),delete this.touchStart)},onmouseout:function(e){if(this.touchStart){var n=e.target,i=e.relatedTarget;i&&(i===n||t.contains(n,i))||this.onmouseup(e)}},ontouchstart:function(t){this.options.stopTouchEventsPropagation&&this.stopPropagation(t);var e=(t.originalEvent||t).touches[0];this.touchStart={x:e.pageX,y:e.pageY,time:Date.now()},this.isScrolling=void 0,this.touchDelta={}},ontouchmove:function(t){this.options.stopTouchEventsPropagation&&this.stopPropagation(t);var e,n,i=(t.originalEvent||t).touches,r=i[0],o=(t.originalEvent||t).scale,a=this.index;if(!(i.length>1||o&&1!==o))if(this.options.disableScroll&&t.preventDefault(),this.touchDelta={x:r.pageX-this.touchStart.x,y:r.pageY-this.touchStart.y},e=this.touchDelta.x,void 0===this.isScrolling&&(this.isScrolling=this.isScrolling||Math.abs(e)<Math.abs(this.touchDelta.y)),this.isScrolling)this.options.carousel||this.translateY(a,this.touchDelta.y+this.positions[a],0);else for(t.preventDefault(),window.clearTimeout(this.timeout),this.options.continuous?n=[this.circle(a+1),a,this.circle(a-1)]:(this.touchDelta.x=e/=!a&&e>0||a===this.num-1&&e<0?Math.abs(e)/this.slideWidth+1:1,n=[a],a&&n.push(a-1),a<this.num-1&&n.unshift(a+1));n.length;)a=n.pop(),this.translateX(a,e+this.positions[a],0)},ontouchend:function(t){this.options.stopTouchEventsPropagation&&this.stopPropagation(t);var e,n,i,r,o,a=this.index,s=Math.abs(this.touchDelta.x),l=this.slideWidth,c=Math.ceil(this.options.transitionDuration*(1-s/l)/2),u=s>20,d=!a&&this.touchDelta.x>0||a===this.num-1&&this.touchDelta.x<0,h=!u&&this.options.closeOnSwipeUpOrDown&&Math.abs(this.touchDelta.y)>20;this.options.continuous&&(d=!1),e=this.touchDelta.x<0?-1:1,this.isScrolling?h?this.close():this.translateY(a,0,c):u&&!d?(n=a+e,i=a-e,r=l*e,o=-l*e,this.options.continuous?(this.move(this.circle(n),r,0),this.move(this.circle(a-2*e),o,0)):n>=0&&n<this.num&&this.move(n,r,0),this.move(a,this.positions[a]+r,c),this.move(this.circle(i),this.positions[this.circle(i)]+r,c),a=this.circle(i),this.onslide(a)):this.options.continuous?(this.move(this.circle(a-1),-l,c),this.move(a,0,c),this.move(this.circle(a+1),l,c)):(a&&this.move(a-1,-l,c),this.move(a,0,c),a<this.num-1&&this.move(a+1,l,c))},ontouchcancel:function(t){this.touchStart&&(this.ontouchend(t),delete this.touchStart)},ontransitionend:function(t){var e=this.slides[this.index];t&&e!==t.target||(this.interval&&this.play(),this.setTimeout(this.options.onslideend,[this.index,e]))},oncomplete:function(e){var n,i=e.target||e.srcElement,r=i&&i.parentNode;i&&r&&(n=this.getNodeIndex(r),t(r).removeClass(this.options.slideLoadingClass),"error"===e.type?(t(r).addClass(this.options.slideErrorClass),this.elements[n]=3):this.elements[n]=2,i.clientHeight>this.container[0].clientHeight&&(i.style.maxHeight=this.container[0].clientHeight),this.interval&&this.slides[this.index]===r&&this.play(),this.setTimeout(this.options.onslidecomplete,[n,r]))},onload:function(t){this.oncomplete(t)},onerror:function(t){this.oncomplete(t)},onkeydown:function(t){switch(t.which||t.keyCode){case 13:this.options.toggleControlsOnReturn&&(this.preventDefault(t),this.toggleControls());break;case 27:this.options.closeOnEscape&&(this.close(),t.stopImmediatePropagation());break;case 32:this.options.toggleSlideshowOnSpace&&(this.preventDefault(t),this.toggleSlideshow());break;case 37:this.options.enableKeyboardNavigation&&(this.preventDefault(t),this.prev());break;case 39:this.options.enableKeyboardNavigation&&(this.preventDefault(t),this.next())}},handleClick:function(e){var n=this.options,i=e.target||e.srcElement,r=i.parentNode;function o(e){return t(i).hasClass(e)||t(r).hasClass(e)}o(n.toggleClass)?(this.preventDefault(e),this.toggleControls()):o(n.prevClass)?(this.preventDefault(e),this.prev()):o(n.nextClass)?(this.preventDefault(e),this.next()):o(n.closeClass)?(this.preventDefault(e),this.close()):o(n.playPauseClass)?(this.preventDefault(e),this.toggleSlideshow()):r===this.slidesContainer[0]?n.closeOnSlideClick?(this.preventDefault(e),this.close()):n.toggleControlsOnSlideClick&&(this.preventDefault(e),this.toggleControls()):r.parentNode&&r.parentNode===this.slidesContainer[0]&&n.toggleControlsOnSlideClick&&(this.preventDefault(e),this.toggleControls())},onclick:function(t){if(!(this.options.emulateTouchEvents&&this.touchDelta&&(Math.abs(this.touchDelta.x)>20||Math.abs(this.touchDelta.y)>20)))return this.handleClick(t);delete this.touchDelta},updateEdgeClasses:function(t){t?this.container.removeClass(this.options.leftEdgeClass):this.container.addClass(this.options.leftEdgeClass),t===this.num-1?this.container.addClass(this.options.rightEdgeClass):this.container.removeClass(this.options.rightEdgeClass)},handleSlide:function(t){this.options.continuous||this.updateEdgeClasses(t),this.loadElements(t),this.options.unloadElements&&this.unloadElements(t),this.setTitle(t)},onslide:function(t){this.index=t,this.handleSlide(t),this.setTimeout(this.options.onslide,[t,this.slides[t]])},setTitle:function(t){var e=this.slides[t].firstChild,n=e.title||e.alt,i=this.titleElement;i.length&&(this.titleElement.empty(),n&&i[0].appendChild(document.createTextNode(n)))},setTimeout:function(t,e,n){var i=this;return t&&window.setTimeout((function(){t.apply(i,e||[])}),n||0)},imageFactory:function(e,n){var i,r,o,a,s=this,l=this.imagePrototype.cloneNode(!1),c=e,u=this.options.stretchImages;function d(e){if(!i){if(e={type:e.type,target:r},!r.parentNode)return s.setTimeout(d,[e]);i=!0,t(l).off("load error",d),u&&"load"===e.type&&(r.style.background='url("'+c+'") center no-repeat',r.style.backgroundSize=u),n(e)}}return"string"!=typeof c&&(c=this.getItemProperty(e,this.options.urlProperty),o=this.getItemProperty(e,this.options.titleProperty),a=this.getItemProperty(e,this.options.altTextProperty)||o),!0===u&&(u="contain"),(u=this.support.backgroundSize&&this.support.backgroundSize[u]&&u)?r=this.elementPrototype.cloneNode(!1):(r=l,l.draggable=!1),o&&(r.title=o),a&&(r.alt=a),t(l).on("load error",d),l.src=c,r},createElement:function(e,n){var i=e&&this.getItemProperty(e,this.options.typeProperty),r=i&&this[i.split("/")[0]+"Factory"]||this.imageFactory,o=e&&r.call(this,e,n),a=this.getItemProperty(e,this.options.srcsetProperty);return o||(o=this.elementPrototype.cloneNode(!1),this.setTimeout(n,[{type:"error",target:o}])),a&&o.setAttribute("srcset",a),t(o).addClass(this.options.slideContentClass),o},loadElement:function(e){this.elements[e]||(this.slides[e].firstChild?this.elements[e]=t(this.slides[e]).hasClass(this.options.slideErrorClass)?3:2:(this.elements[e]=1,t(this.slides[e]).addClass(this.options.slideLoadingClass),this.slides[e].appendChild(this.createElement(this.list[e],this.proxyListener))))},loadElements:function(t){var e,n=Math.min(this.num,2*this.options.preloadRange+1),i=t;for(e=0;e<n;e+=1)i+=e*(e%2==0?-1:1),i=this.circle(i),this.loadElement(i)},unloadElements:function(t){var e,n;for(e in this.elements)Object.prototype.hasOwnProperty.call(this.elements,e)&&(n=Math.abs(t-e))>this.options.preloadRange&&n+this.options.preloadRange<this.num&&(this.unloadSlide(e),delete this.elements[e])},addSlide:function(t){var e=this.slidePrototype.cloneNode(!1);e.setAttribute("data-index",t),this.slidesContainer[0].appendChild(e),this.slides.push(e)},positionSlide:function(t){var e=this.slides[t];e.style.width=this.slideWidth+"px",this.support.transform&&(e.style.left=t*-this.slideWidth+"px",this.move(t,this.index>t?-this.slideWidth:this.index<t?this.slideWidth:0,0))},initSlides:function(e){var n,i;for(e||(this.positions=[],this.positions.length=this.num,this.elements={},this.imagePrototype=document.createElement("img"),this.elementPrototype=document.createElement("div"),this.slidePrototype=document.createElement("div"),t(this.slidePrototype).addClass(this.options.slideClass),this.slides=this.slidesContainer[0].children,n=this.options.clearSlides||this.slides.length!==this.num),this.slideWidth=this.container[0].clientWidth,this.slideHeight=this.container[0].clientHeight,this.slidesContainer[0].style.width=this.num*this.slideWidth+"px",n&&this.resetSlides(),i=0;i<this.num;i+=1)n&&this.addSlide(i),this.positionSlide(i);this.options.continuous&&this.support.transform&&(this.move(this.circle(this.index-1),-this.slideWidth,0),this.move(this.circle(this.index+1),this.slideWidth,0)),this.support.transform||(this.slidesContainer[0].style.left=this.index*-this.slideWidth+"px")},unloadSlide:function(t){var e,n;null!==(n=(e=this.slides[t]).firstChild)&&e.removeChild(n)},unloadAllSlides:function(){var t,e;for(t=0,e=this.slides.length;t<e;t++)this.unloadSlide(t)},toggleControls:function(){var t=this.options.controlsClass;this.container.hasClass(t)?this.container.removeClass(t):this.container.addClass(t)},toggleSlideshow:function(){this.interval?this.pause():this.play()},getNodeIndex:function(t){return parseInt(t.getAttribute("data-index"),10)},getNestedProperty:function(t,e){return e.replace(/\[(?:'([^']+)'|"([^"]+)"|(\d+))\]|(?:(?:^|\.)([^\.\[]+))/g,(function(e,n,i,r,o){var a=o||n||i||r&&parseInt(r,10);e&&t&&(t=t[a])})),t},getDataProperty:function(e,n){var i,r;if(e.dataset?(i=n.replace(/-([a-z])/g,(function(t,e){return e.toUpperCase()})),r=e.dataset[i]):e.getAttribute&&(r=e.getAttribute("data-"+n.replace(/([A-Z])/g,"-$1").toLowerCase())),"string"==typeof r){if(/^(true|false|null|-?\d+(\.\d+)?|\{[\s\S]*\}|\[[\s\S]*\])$/.test(r))try{return t.parseJSON(r)}catch(t){}return r}},getItemProperty:function(t,e){var n=this.getDataProperty(t,e);return void 0===n&&(n=t[e]),void 0===n&&(n=this.getNestedProperty(t,e)),n},initStartIndex:function(){var t,e=this.options.index,n=this.options.urlProperty;if(e&&"number"!=typeof e)for(t=0;t<this.num;t+=1)if(this.list[t]===e||this.getItemProperty(this.list[t],n)===this.getItemProperty(e,n)){e=t;break}this.index=this.circle(parseInt(e,10)||0)},initEventListeners:function(){var e=this,n=this.slidesContainer;function i(t){var n=e.support.transition&&e.support.transition.end===t.type?"transitionend":t.type;e["on"+n](t)}t(window).on("resize",i),t(window).on("hashchange",i),t(document.body).on("keydown",i),this.container.on("click",i),this.support.touch?n.on("touchstart touchmove touchend touchcancel",i):this.options.emulateTouchEvents&&this.support.transition&&n.on("mousedown mousemove mouseup mouseout",i),this.support.transition&&n.on(this.support.transition.end,i),this.proxyListener=i},destroyEventListeners:function(){var e=this.slidesContainer,n=this.proxyListener;t(window).off("resize",n),t(document.body).off("keydown",n),this.container.off("click",n),this.support.touch?e.off("touchstart touchmove touchend touchcancel",n):this.options.emulateTouchEvents&&this.support.transition&&e.off("mousedown mousemove mouseup mouseout",n),this.support.transition&&e.off(this.support.transition.end,n)},handleOpen:function(){this.options.onopened&&this.options.onopened.call(this)},initWidget:function(){var e=this;function n(t){t.target===e.container[0]&&(e.container.off(e.support.transition.end,n),e.handleOpen())}return this.container=t(this.options.container),this.container.length?(this.slidesContainer=this.container.find(this.options.slidesContainer).first(),this.slidesContainer.length?(this.titleElement=this.container.find(this.options.titleElement).first(),1===this.num&&this.container.addClass(this.options.singleClass),this.options.onopen&&this.options.onopen.call(this),this.support.transition&&this.options.displayTransition?this.container.on(this.support.transition.end,n):this.handleOpen(),this.options.hidePageScrollbars&&(this.bodyOverflowStyle=document.body.style.overflow,document.body.style.overflow="hidden"),this.container[0].style.display="block",this.initSlides(),void this.container.addClass(this.options.displayClass)):(this.console.log("blueimp Gallery: Slides container not found.",this.options.slidesContainer),!1)):(this.console.log("blueimp Gallery: Widget container not found.",this.options.container),!1)},initOptions:function(e){this.options=t.extend({},this.options),(e&&e.carousel||this.options.carousel&&(!e||!1!==e.carousel))&&t.extend(this.options,this.carouselOptions),t.extend(this.options,e),this.num<3&&(this.options.continuous=!!this.options.continuous&&null),this.support.transition||(this.options.emulateTouchEvents=!1),this.options.event&&this.preventDefault(this.options.event)}}),e},void 0===(o="function"==typeof i?i.apply(e,r):i)||(t.exports=o)}()},527:(t,e,n)=>{var i;!function(){"use strict";function r(t,e){var n;for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function o(t){if(!this||this.find!==o.prototype.find)return new o(t);if(this.length=0,t)if("string"==typeof t&&(t=this.find(t)),t.nodeType||t===t.window)this.length=1,this[0]=t;else{var e=t.length;for(this.length=e;e;)this[e-=1]=t[e]}}o.extend=r,o.contains=function(t,e){do{if((e=e.parentNode)===t)return!0}while(e);return!1},o.parseJSON=function(t){return window.JSON&&JSON.parse(t)},r(o.prototype,{find:function(t){var e=this[0]||document;return"string"==typeof t&&(t=e.querySelectorAll?e.querySelectorAll(t):"#"===t.charAt(0)?e.getElementById(t.slice(1)):e.getElementsByTagName(t)),new o(t)},hasClass:function(t){return!!this[0]&&new RegExp("(^|\\s+)"+t+"(\\s+|$)").test(this[0].className)},addClass:function(t){for(var e,n=this.length;n;){if(!(e=this[n-=1]).className)return e.className=t,this;if(this.hasClass(t))return this;e.className+=" "+t}return this},removeClass:function(t){for(var e,n=new RegExp("(^|\\s+)"+t+"(\\s+|$)"),i=this.length;i;)(e=this[i-=1]).className=e.className.replace(n," ");return this},on:function(t,e){for(var n,i,r=t.split(/\s+/);r.length;)for(t=r.shift(),n=this.length;n;)(i=this[n-=1]).addEventListener?i.addEventListener(t,e,!1):i.attachEvent&&i.attachEvent("on"+t,e);return this},off:function(t,e){for(var n,i,r=t.split(/\s+/);r.length;)for(t=r.shift(),n=this.length;n;)(i=this[n-=1]).removeEventListener?i.removeEventListener(t,e,!1):i.detachEvent&&i.detachEvent("on"+t,e);return this},empty:function(){for(var t,e=this.length;e;)for(t=this[e-=1];t.hasChildNodes();)t.removeChild(t.lastChild);return this},first:function(){return new o(this[0])}}),void 0===(i=function(){return o}.call(e,n,e,t))||(t.exports=i)}()},9800:(t,e,n)=>{"use strict";n.d(e,{$W:()=>p,$m:()=>$,A1:()=>Gt,CU:()=>A,Dx:()=>ve,EC:()=>dt,EW:()=>St,Fw:()=>b,GT:()=>ce,H3:()=>y,JO:()=>X,KM:()=>ge,KR:()=>Qt,KS:()=>c,KZ:()=>ae,L5:()=>m,Ll:()=>xt,N0:()=>ht,N9:()=>_,O2:()=>Ot,OX:()=>mt,O_:()=>Y,Oi:()=>Xt,Oz:()=>ct,P2:()=>re,PJ:()=>jt,PR:()=>B,PW:()=>ee,Pe:()=>Z,Pf:()=>ue,Pj:()=>Ft,Pn:()=>he,Pp:()=>fe,Px:()=>Ce,QZ:()=>Vt,Qi:()=>lt,R3:()=>f,R_:()=>q,Rs:()=>K,SD:()=>Rt,SF:()=>Kt,St:()=>g,T5:()=>N,To:()=>Wt,Ub:()=>V,Uq:()=>be,VV:()=>Pt,WU:()=>_e,WY:()=>pe,XB:()=>Ut,Xc:()=>yt,Y0:()=>Ct,Y7:()=>Et,YT:()=>at,Z0:()=>G,ZX:()=>U,a8:()=>h,aJ:()=>W,aM:()=>z,aV:()=>Jt,ae:()=>j,af:()=>tt,am:()=>ft,b4:()=>Lt,bW:()=>k,c4:()=>et,cJ:()=>L,cg:()=>nt,d6:()=>de,dN:()=>O,dn:()=>oe,eG:()=>Yt,eN:()=>M,eW:()=>x,es:()=>E,fZ:()=>v,ff:()=>kt,fp:()=>w,fu:()=>i,fy:()=>me,g4:()=>o,gT:()=>te,gU:()=>$t,gc:()=>P,gd:()=>F,go:()=>H,hU:()=>ot,hZ:()=>d,in:()=>se,jA:()=>wt,k2:()=>Dt,k8:()=>I,kY:()=>Mt,l$:()=>_t,lu:()=>st,md:()=>vt,ml:()=>Q,n4:()=>Nt,nJ:()=>D,nR:()=>pt,ne:()=>xe,pW:()=>S,pj:()=>r,py:()=>bt,qI:()=>Bt,qV:()=>a,qc:()=>zt,qe:()=>qt,rT:()=>le,rZ:()=>ie,rz:()=>Zt,s3:()=>we,sO:()=>R,ss:()=>s,t2:()=>C,u7:()=>ut,v1:()=>T,vl:()=>ne,wq:()=>It,xf:()=>u,xm:()=>Ht,xp:()=>rt,y$:()=>Tt,y5:()=>it,yR:()=>l,yd:()=>J,z0:()=>ye,z6:()=>At,z9:()=>gt});var i="BAlert",r="BAspect",o="BAvatar",a="BAvatarGroup",s="BBadge",l="BBreadcrumb",c="BBreadcrumbItem",u="BBreadcrumbLink",d="BButton",h="BButtonClose",p="BButtonGroup",f="BButtonToolbar",m="BCalendar",v="BCard",g="BCardBody",b="BCardFooter",y="BCardGroup",_="BCardHeader",w="BCardImg",x="BCardImgLazy",C="BCardSubTitle",S="BCardText",E="BCardTitle",T="BCarousel",O="BCarouselSlide",k="BCol",A="BCollapse",P="BContainer",M="BDropdown",L="BDropdownDivider",D="BDropdownForm",R="BDropdownGroup",I="BDropdownHeader",j="BDropdownItem",N="BDropdownItemButton",F="BDropdownText",z="BEmbed",B="BForm",$="BFormCheckbox",U="BFormCheckboxGroup",H="BFormDatalist",V="BFormDatepicker",Y="BFormFile",q="BFormGroup",W="BFormInput",G="BFormInvalidFeedback",X="BFormRadio",K="BFormRadioGroup",Z="BFormRating",J="BFormRow",Q="BFormSelect",tt="BFormSelectOption",et="BFormSelectOptionGroup",nt="BFormSpinbutton",it="BFormTag",rt="BFormTags",ot="BFormText",at="BFormTextarea",st="BFormTimepicker",lt="BFormValidFeedback",ct="BIcon",ut="BIconBase",dt="BImg",ht="BImgLazy",pt="BInputGroup",ft="BInputGroupAddon",mt="BInputGroupAppend",vt="BInputGroupPrepend",gt="BInputGroupText",bt="BJumbotron",yt="BLink",_t="BListGroup",wt="BListGroupItem",xt="BMedia",Ct="BMediaAside",St="BMediaBody",Et="BModal",Tt="BMsgBox",Ot="BNav",kt="BNavbar",At="BNavbarBrand",Pt="BNavbarNav",Mt="BNavbarToggle",Lt="BNavForm",Dt="BNavItem",Rt="BNavItemDropdown",It="BNavText",jt="BOverlay",Nt="BPagination",Ft="BPaginationNav",zt="BPopover",Bt="BProgress",$t="BProgressBar",Ut="BRow",Ht="BSidebar",Vt="BSkeleton",Yt="BSkeletonIcon",qt="BSkeletonImg",Wt="BSkeletonTable",Gt="BSkeletonWrapper",Xt="BSpinner",Kt="BTab",Zt="BTable",Jt="BTableCell",Qt="BTableLite",te="BTableSimple",ee="BTabs",ne="BTbody",ie="BTfoot",re="BTh",oe="BThead",ae="BTime",se="BToast",le="BToaster",ce="BTooltip",ue="BTr",de="BVCollapse",he="BVFormBtnLabelControl",pe="BVFormRatingStar",fe="BVPopover",me="BVPopoverTemplate",ve="BVPopper",ge="BVTabButton",be="BVToastPop",ye="BVTooltip",_e="BVTooltipTemplate",we="BVTransition",xe="BVTransporter",Ce="BVTransporterTarget"},254:(t,e,n)=>{"use strict";n.d(e,{k1:()=>o,o_:()=>i,si:()=>r});var i="BvConfig",r="$bvConfig",o=["xs","sm","md","lg","xl"]},5493:(t,e,n)=>{"use strict";n.d(e,{D2:()=>g,Ew:()=>f,KJ:()=>l,Vh:()=>p,aB:()=>s,jf:()=>c,p4:()=>a,px:()=>m,qQ:()=>u,sU:()=>v,uw:()=>i});var i="undefined"!=typeof window,r="undefined"!=typeof document,o="undefined"!=typeof navigator,a="undefined"!=typeof Promise,s="undefined"!=typeof MutationObserver||"undefined"!=typeof WebKitMutationObserver||"undefined"!=typeof MozMutationObserver,l=i&&r&&o,c=i?window:{},u=r?document:{},d=o?navigator:{},h=(d.userAgent||"").toLowerCase(),p=h.indexOf("jsdom")>0,f=(/msie|trident/.test(h),function(){var t=!1;if(l)try{var e={get passive(){t=!0}};c.addEventListener("test",e,e),c.removeEventListener("test",e,e)}catch(e){t=!1}return t}()),m=l&&("ontouchstart"in u.documentElement||d.maxTouchPoints>0),v=l&&Boolean(c.PointerEvent||c.MSPointerEvent),g=l&&"IntersectionObserver"in c&&"IntersectionObserverEntry"in c&&"intersectionRatio"in c.IntersectionObserverEntry.prototype},72:(t,e,n)=>{"use strict";n.d(e,{$$:()=>w,KF:()=>s,Kg:()=>i,O9:()=>y,RJ:()=>S,Rl:()=>r,Rn:()=>l,VE:()=>f,WL:()=>_,Xo:()=>p,YU:()=>C,Ye:()=>o,bD:()=>c,gG:()=>v,gy:()=>g,iF:()=>b,sV:()=>u,vj:()=>m,vq:()=>d,xm:()=>x,y4:()=>h});var i=void 0,r=Array,o=Boolean,a=Date,s=Function,l=Number,c=Object,u=RegExp,d=String,h=[r,s],p=[r,c],f=[r,c,d],m=[r,d],v=[o,l],g=[o,l,d],b=[o,d],y=[a,d],_=[s,d],w=[l,d],x=[l,c,d],C=[c,s],S=[c,d]},1817:(t,e,n)=>{"use strict";n.d(e,{$9:()=>S,CI:()=>A,DS:()=>m,Uz:()=>x,Vp:()=>D,Vs:()=>v,Wi:()=>l,Xx:()=>M,YH:()=>s,Yc:()=>f,ZU:()=>E,_$:()=>o,du:()=>h,g6:()=>L,gL:()=>_,gh:()=>i,hz:()=>c,kF:()=>P,l7:()=>C,lW:()=>r,m:()=>u,nZ:()=>a,qE:()=>y,qe:()=>p,vx:()=>w,wS:()=>d,xZ:()=>O,y:()=>g,yB:()=>b,yF:()=>T,zK:()=>k});var i=/\[(\d+)]/g,r=/^(BV?)/,o=/^\d+$/,a=/^\..+/,s=/^#/,l=/^#[A-Za-z]+[\w\-:.]*$/,c=/(<([^>]+)>)/gi,u=/\B([A-Z])/g,d=/([a-z])([A-Z])/g,h=/^[0-9]*\.?[0-9]+$/,p=/\+/g,f=/[-/\\^$*+?.()|[\]{}]/g,m=/[\s\uFEFF\xA0]+/g,v=/\s+/,g=/\/\*$/,b=/(\s|^)(\w)/g,y=/^\s+/,_=/_/g,w=/-(\w)/g,x=/^\d+-\d\d?-\d\d?(?:\s|T|$)/,C=/-|\s|T/,S=/^([0-1]?[0-9]|2[0-3]):[0-5]?[0-9](:[0-5]?[0-9])?$/,E=/^.*(#[^#]+)$/,T=/%2C/g,O=/[!'()*]/g,k=/^(\?|#|&)/,A=/^\d+(\.\d*)?[/:]\d+(\.\d*)?$/,P=/[/:]/,M=/^col-/,L=/^BIcon/,D=/-u-.+/},8789:(t,e,n)=>{"use strict";n.d(e,{Hg:()=>p,NZ:()=>m,ZH:()=>v,wt:()=>f});var i=n(5493);function r(t){return r="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},r(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}function s(t){var e=u();return function(){var n,i=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){var e="function"==typeof Map?new Map:void 0;return l=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return c(t,arguments,h(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),d(i,t)},l(t)}function c(t,e,n){return c=u()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var r=new(Function.bind.apply(t,i));return n&&d(r,n.prototype),r},c.apply(null,arguments)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function d(t,e){return d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},d(t,e)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}var p=i.uw?i.jf.Element:function(t){a(n,t);var e=s(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(l(Object)),f=i.uw?i.jf.HTMLElement:function(t){a(n,t);var e=s(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(p),m=i.uw?i.jf.SVGElement:function(t){a(n,t);var e=s(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(p),v=i.uw?i.jf.File:function(t){a(n,t);var e=s(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(l(Object))},3058:(t,e,n)=>{"use strict";n.d(e,{T:()=>v,x:()=>m});var i=n(2893),r=n(8722),o=n(9800),a=n(72),s=n(8494),l=n(6710),c=n(8014),u=n(9821),d=n(1340);function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p={viewBox:"0 0 16 16",width:"1em",height:"1em",focusable:"false",role:"img","aria-label":"icon"},f={width:null,height:null,focusable:null,role:null,"aria-label":null},m={animation:(0,d.Yg)(a.vq),content:(0,d.Yg)(a.vq),flipH:(0,d.Yg)(a.Ye,!1),flipV:(0,d.Yg)(a.Ye,!1),fontScale:(0,d.Yg)(a.$$,1),rotate:(0,d.Yg)(a.$$,0),scale:(0,d.Yg)(a.$$,1),shiftH:(0,d.Yg)(a.$$,0),shiftV:(0,d.Yg)(a.$$,0),stacked:(0,d.Yg)(a.Ye,!1),title:(0,d.Yg)(a.vq),variant:(0,d.Yg)(a.vq)},v=i.default.extend({name:o.u7,functional:!0,props:m,render:function(t,e){var n,i=e.data,o=e.props,a=e.children,d=o.animation,m=o.content,v=o.flipH,g=o.flipV,b=o.stacked,y=o.title,_=o.variant,w=(0,c.JB)((0,u.SP)(o.fontScale,1),0)||1,x=(0,c.JB)((0,u.SP)(o.scale,1),0)||1,C=(0,u.SP)(o.rotate,0),S=(0,u.SP)(o.shiftH,0),E=(0,u.SP)(o.shiftV,0),T=v||g||1!==x,O=T||C,k=S||E,A=!(0,l.z)(m),P=t("g",{attrs:{transform:[O?"translate(8 8)":null,T?"scale(".concat((v?-1:1)*x," ").concat((g?-1:1)*x,")"):null,C?"rotate(".concat(C,")"):null,O?"translate(-8 -8)":null].filter(s.D).join(" ")||null},domProps:A?{innerHTML:m||""}:{}},a);k&&(P=t("g",{attrs:{transform:"translate(".concat(16*S/16," ").concat(-16*E/16,")")}},[P])),b&&(P=t("g",[P]));var M=[y?t("title",y):null,P].filter(s.D);return t("svg",(0,r.L)({staticClass:"b-icon bi",class:(n={},h(n,"text-".concat(_),_),h(n,"b-icon-animation-".concat(d),d),n),attrs:p,style:b?{}:{fontSize:1===w?null:"".concat(100*w,"%")}},i,b?{attrs:f}:{},{attrs:{xmlns:b?null:"http://www.w3.org/2000/svg",fill:"currentColor"}}),M)}})},1809:(t,e,n)=>{"use strict";n.d(e,{ufk:()=>h,kew:()=>p,Pu4:()=>f,d_W:()=>m,pJ4:()=>v,rc_:()=>g,Eql:()=>b,KLB:()=>y,zvQ:()=>_,g6V:()=>w,Nxd:()=>x,cJX:()=>C,ix_:()=>S,oF4:()=>E,aaU:()=>T,I9Y:()=>O,bB:()=>k,pAC:()=>A,qCC:()=>P});var i=n(2893),r=n(8722),o=n(1671),a=n(9809),s=n(3058);function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d=function(t,e){var n=(0,a.kW)(t),l="BIcon".concat((0,a.fL)(t)),u="bi-".concat(n),d=n.replace(/-/g," "),h=(0,a.Bq)(e||"");return i.default.extend({name:l,functional:!0,props:(0,o.cJ)(s.x,["content"]),render:function(t,e){var n=e.data,i=e.props;return t(s.T,(0,r.L)({props:{title:d},attrs:{"aria-label":d}},n,{staticClass:u,props:c(c({},i),{},{content:h})}))}})},h=d("Blank",""),p=d("Calendar",'<path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"/>'),f=d("CalendarFill",'<path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V5h16V4H0V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5z"/>'),m=d("ChevronBarLeft",'<path fill-rule="evenodd" d="M11.854 3.646a.5.5 0 0 1 0 .708L8.207 8l3.647 3.646a.5.5 0 0 1-.708.708l-4-4a.5.5 0 0 1 0-.708l4-4a.5.5 0 0 1 .708 0zM4.5 1a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 1 0v-13a.5.5 0 0 0-.5-.5z"/>'),v=d("ChevronDoubleLeft",'<path fill-rule="evenodd" d="M8.354 1.646a.5.5 0 0 1 0 .708L2.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/><path fill-rule="evenodd" d="M12.354 1.646a.5.5 0 0 1 0 .708L6.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/>'),g=d("ChevronDown",'<path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/>'),b=d("ChevronLeft",'<path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/>'),y=d("ChevronUp",'<path fill-rule="evenodd" d="M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z"/>'),_=d("CircleFill",'<circle cx="8" cy="8" r="8"/>'),w=d("Clock",'<path d="M8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71V3.5z"/><path d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm7-8A7 7 0 1 1 1 8a7 7 0 0 1 14 0z"/>'),x=d("ClockFill",'<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71V3.5z"/>'),C=d("Dash",'<path d="M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8z"/>'),S=d("PencilSquare",'<path d="M15.502 1.94a.5.5 0 0 1 0 .706L14.459 3.69l-2-2L13.502.646a.5.5 0 0 1 .707 0l1.293 1.293zm-1.75 2.456l-2-2L4.939 9.21a.5.5 0 0 0-.121.196l-.805 2.414a.25.25 0 0 0 .316.316l2.414-.805a.5.5 0 0 0 .196-.12l6.813-6.814z"/><path fill-rule="evenodd" d="M1 13.5A1.5 1.5 0 0 0 2.5 15h11a1.5 1.5 0 0 0 1.5-1.5v-6a.5.5 0 0 0-1 0v6a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 .5-.5H9a.5.5 0 0 0 0-1H2.5A1.5 1.5 0 0 0 1 2.5v11z"/>'),E=d("PersonFill",'<path d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/>'),T=d("Plus",'<path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"/>'),O=d("Star",'<path d="M2.866 14.85c-.078.444.36.791.746.593l4.39-2.256 4.389 2.256c.386.198.824-.149.746-.592l-.83-4.73 3.523-3.356c.329-.314.158-.888-.283-.95l-4.898-.696L8.465.792a.513.513 0 0 0-.927 0L5.354 5.12l-4.898.696c-.441.062-.612.636-.283.95l3.523 3.356-.83 4.73zm4.905-2.767l-3.686 1.894.694-3.957a.565.565 0 0 0-.163-.505L1.71 6.745l4.052-.576a.525.525 0 0 0 .393-.288l1.847-3.658 1.846 3.658a.525.525 0 0 0 .393.288l4.052.575-2.906 2.77a.564.564 0 0 0-.163.506l.694 3.957-3.686-1.894a.503.503 0 0 0-.461 0z"/>'),k=d("StarFill",'<path d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.283.95l-3.523 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"/>'),A=d("StarHalf",'<path d="M5.354 5.119L7.538.792A.516.516 0 0 1 8 .5c.183 0 .366.097.465.292l2.184 4.327 4.898.696A.537.537 0 0 1 16 6.32a.55.55 0 0 1-.17.445l-3.523 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256a.519.519 0 0 1-.146.05c-.341.06-.668-.254-.6-.642l.83-4.73L.173 6.765a.55.55 0 0 1-.171-.403.59.59 0 0 1 .084-.302.513.513 0 0 1 .37-.245l4.898-.696zM8 12.027c.08 0 .16.018.232.056l3.686 1.894-.694-3.957a.564.564 0 0 1 .163-.505l2.906-2.77-4.052-.576a.525.525 0 0 1-.393-.288L8.002 2.223 8 2.226v9.8z"/>'),P=d("X",'<path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/>')},7938:(t,e,n)=>{"use strict";n.d(e,{m:()=>u});var i=n(6710),r=n(1671);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var u=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return(0,i.cy)(e)?e.reduce((function(e,n){return[].concat(l(e),[t(n,n)])}),[]):(0,i.Qd)(e)?(0,r.HP)(e).reduce((function(n,i){return a(a({},n),{},s({},i,t(e[i],e[i])))}),{}):n}},1586:(t,e,n)=>{"use strict";n.d(e,{AV:()=>c,Ak:()=>p,BQ:()=>u});var i=n(2893),r=n(254),o=n(7938),a=n(3886),s=i.default.prototype,l=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=s[r.si];return n?n.getConfigValue(t,e):(0,o.m)(e)},c=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return e?l("".concat(t,".").concat(e),n):l(t,{})},u=function(){return l("breakpoints",r.k1)},d=(0,a.B)((function(){return u()})),h=function(){return(0,o.m)(d())},p=(0,a.B)((function(){var t=h();return t[0]="",t}))},8494:(t,e,n)=>{"use strict";n.d(e,{D:()=>i});var i=function(t){return t}},6710:(t,e,n)=>{"use strict";n.d(e,{$P:()=>y,Et:()=>f,Gv:()=>g,Kg:()=>p,Lm:()=>h,Qd:()=>b,Tn:()=>d,b0:()=>l,cy:()=>v,fo:()=>w,gd:()=>x,kZ:()=>c,kf:()=>m,xH:()=>_,yL:()=>C,z:()=>u});var i=n(1817),r=n(8789);function o(t){return o="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},o(t)}var a=function(t){return o(t)},s=function(t){return Object.prototype.toString.call(t).slice(8,-1)},l=function(t){return void 0===t},c=function(t){return null===t},u=function(t){return l(t)||c(t)},d=function(t){return"function"===a(t)},h=function(t){return"boolean"===a(t)},p=function(t){return"string"===a(t)},f=function(t){return"number"===a(t)},m=function(t){return i.du.test(String(t))},v=function(t){return Array.isArray(t)},g=function(t){return null!==t&&"object"===o(t)},b=function(t){return"[object Object]"===Object.prototype.toString.call(t)},y=function(t){return t instanceof Date},_=function(t){return t instanceof Event},w=function(t){return t instanceof r.ZH},x=function(t){return"RegExp"===s(t)},C=function(t){return!u(t)&&d(t.then)&&d(t.catch)}},8014:(t,e,n)=>{"use strict";n.d(e,{JB:()=>r,NY:()=>o,Zr:()=>s,ih:()=>a,jn:()=>c,rp:()=>i,z4:()=>l});var i=Math.min,r=Math.max,o=Math.abs,a=Math.ceil,s=Math.floor,l=Math.pow,c=Math.round},3886:(t,e,n)=>{"use strict";n.d(e,{B:()=>r});var i=n(1671),r=function(t){var e=(0,i.vt)(null);return function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var o=JSON.stringify(i);return e[o]=e[o]||t.apply(null,i)}}},9821:(t,e,n)=>{"use strict";n.d(e,{Mg:()=>o,SP:()=>r,yJ:()=>i});var i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN,n=parseInt(t,10);return isNaN(n)?e:n},r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN,n=parseFloat(t);return isNaN(n)?e:n},o=function(t,e){return r(t).toFixed(i(e,0))}},1671:(t,e,n)=>{"use strict";n.d(e,{Am:()=>_,D9:()=>b,Ev:()=>d,HP:()=>h,Up:()=>v,cJ:()=>g,dI:()=>f,di:()=>y,kp:()=>s,mQ:()=>p,n8:()=>u,ny:()=>c,o8:()=>m,vt:()=>l});var i=n(6710);function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=function(){return Object.assign.apply(Object,arguments)},l=function(t,e){return Object.create(t,e)},c=function(t,e){return Object.defineProperties(t,e)},u=function(t,e,n){return Object.defineProperty(t,e,n)},d=function(t){return Object.getOwnPropertyNames(t)},h=function(t){return Object.keys(t)},p=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},f=function(t){return Object.prototype.toString.call(t)},m=function(t){return o({},t)},v=function(t,e){return h(t).filter((function(t){return-1!==e.indexOf(t)})).reduce((function(e,n){return o(o({},e),{},a({},n,t[n]))}),{})},g=function(t,e){return h(t).filter((function(t){return-1===e.indexOf(t)})).reduce((function(e,n){return o(o({},e),{},a({},n,t[n]))}),{})},b=function t(e,n){return(0,i.Gv)(e)&&(0,i.Gv)(n)&&h(n).forEach((function(r){(0,i.Gv)(n[r])?(e[r]&&(0,i.Gv)(e[r])||(e[r]=n[r]),t(e[r],n[r])):s(e,a({},r,n[r]))})),e},y=function(t){return h(t).sort().reduce((function(e,n){return o(o({},e),{},a({},n,t[n]))}),{})},_=function(){return{enumerable:!0,configurable:!1,writable:!1}}},1340:(t,e,n)=>{"use strict";n.d(e,{CH:()=>m,Pw:()=>p,YL:()=>b,Yg:()=>v,ij:()=>g,mV:()=>x,sC:()=>_,sd:()=>f});var i=n(72),r=n(7938),o=n(1586),a=n(8494),s=n(6710),l=n(1671),c=n(9809);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p=function(t,e){return t+(0,c.Zb)(e)},f=function(t,e){return(0,c.oZ)(e.replace(t,""))},m=function(t,e){return e+(t?(0,c.Zb)(t):"")},v=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.Kg,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,o=!0===n;return r=o?r:n,d(d(d({},t?{type:t}:{}),o?{required:o}:(0,s.b0)(e)?{}:{default:(0,s.Gv)(e)?function(){return e}:e}),(0,s.b0)(r)?{}:{validator:r})},g=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.D;if((0,s.cy)(t))return t.map(e);var n={};for(var i in t)(0,l.mQ)(t,i)&&(n[e(i)]=(0,s.Gv)(t[i])?(0,l.o8)(t[i]):t[i]);return n},b=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.D;return((0,s.cy)(t)?t.slice():(0,l.HP)(t)).reduce((function(t,i){return t[n(i)]=e[i],t}),{})},y=function(t,e,n){return d(d({},(0,r.m)(t)),{},{default:function(){var i=(0,o.AV)(n,e,t.default);return(0,s.Tn)(i)?i():i}})},_=function(t,e){return(0,l.HP)(t).reduce((function(n,i){return d(d({},n),{},h({},i,y(t[i],i,e)))}),{})},w=y({},"","").default.name,x=function(t){return(0,s.Tn)(t)&&t.name!==w}},9809:(t,e,n)=>{"use strict";n.d(e,{Bq:()=>p,Mr:()=>h,NZ:()=>s,Nt:()=>u,Zb:()=>c,dI:()=>d,fL:()=>a,gQ:()=>f,kW:()=>o,oZ:()=>l});var i=n(1817),r=n(6710),o=function(t){return t.replace(i.m,"-$1").toLowerCase()},a=function(t){return(t=o(t).replace(i.vx,(function(t,e){return e?e.toUpperCase():""}))).charAt(0).toUpperCase()+t.slice(1)},s=function(t){return t.replace(i.gL," ").replace(i.wS,(function(t,e,n){return e+" "+n})).replace(i.yB,(function(t,e,n){return e+n.toUpperCase()}))},l=function(t){return(t=(0,r.Kg)(t)?t.trim():String(t)).charAt(0).toLowerCase()+t.slice(1)},c=function(t){return(t=(0,r.Kg)(t)?t.trim():String(t)).charAt(0).toUpperCase()+t.slice(1)},u=function(t){return t.replace(i.Yc,"\\$&")},d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return(0,r.z)(t)?"":(0,r.cy)(t)||(0,r.Qd)(t)&&t.toString===Object.prototype.toString?JSON.stringify(t,null,e):String(t)},h=function(t){return d(t).replace(i.qE,"")},p=function(t){return d(t).trim()},f=function(t){return d(t).toLowerCase()}},2754:function(t,e,n){!function(t,e,n){"use strict";function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=i(e),o=i(n);function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function l(){return l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},l.apply(this,arguments)}function c(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var u="transitionend",d=1e6,h=1e3;function p(t){return null==t?""+t:{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase()}function f(){return{bindType:u,delegateType:u,handle:function(t){if(r.default(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}}function m(t){var e=this,n=!1;return r.default(this).one(g.TRANSITION_END,(function(){n=!0})),setTimeout((function(){n||g.triggerTransitionEnd(e)}),t),this}function v(){r.default.fn.emulateTransitionEnd=m,r.default.event.special[g.TRANSITION_END]=f()}var g={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(Math.random()*d)}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=r.default(t).css("transition-duration"),n=r.default(t).css("transition-delay"),i=parseFloat(e),o=parseFloat(n);return i||o?(e=e.split(",")[0],n=n.split(",")[0],(parseFloat(e)+parseFloat(n))*h):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){r.default(t).trigger(u)},supportsTransitionEnd:function(){return Boolean(u)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i],o=e[i],a=o&&g.isElement(o)?"element":p(o);if(!new RegExp(r).test(a))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+a+'" but expected type "'+r+'".')}},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){var e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?g.findShadowRoot(t.parentNode):null},jQueryDetection:function(){if(void 0===r.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=r.default.fn.jquery.split(" ")[0].split("."),e=1,n=2,i=9,o=1,a=4;if(t[0]<n&&t[1]<i||t[0]===e&&t[1]===i&&t[2]<o||t[0]>=a)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};g.jQueryDetection(),v();var b="alert",y="4.6.0",_="bs.alert",w="."+_,x=".data-api",C=r.default.fn[b],S='[data-dismiss="alert"]',E="close"+w,T="closed"+w,O="click"+w+x,k="alert",A="fade",P="show",M=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){r.default.removeData(this._element,_),this._element=null},e._getRootElement=function(t){var e=g.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=r.default(t).closest("."+k)[0]),n},e._triggerCloseEvent=function(t){var e=r.default.Event(E);return r.default(t).trigger(e),e},e._removeElement=function(t){var e=this;if(r.default(t).removeClass(P),r.default(t).hasClass(A)){var n=g.getTransitionDurationFromElement(t);r.default(t).one(g.TRANSITION_END,(function(n){return e._destroyElement(t,n)})).emulateTransitionEnd(n)}else this._destroyElement(t)},e._destroyElement=function(t){r.default(t).detach().trigger(T).remove()},t._jQueryInterface=function(e){return this.each((function(){var n=r.default(this),i=n.data(_);i||(i=new t(this),n.data(_,i)),"close"===e&&i[e](this)}))},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},s(t,null,[{key:"VERSION",get:function(){return y}}]),t}();r.default(document).on(O,S,M._handleDismiss(new M)),r.default.fn[b]=M._jQueryInterface,r.default.fn[b].Constructor=M,r.default.fn[b].noConflict=function(){return r.default.fn[b]=C,M._jQueryInterface};var L="button",D="4.6.0",R="bs.button",I="."+R,j=".data-api",N=r.default.fn[L],F="active",z="btn",B="focus",$='[data-toggle^="button"]',U='[data-toggle="buttons"]',H='[data-toggle="button"]',V='[data-toggle="buttons"] .btn',Y='input:not([type="hidden"])',q=".active",W=".btn",G="click"+I+j,X="focus"+I+j+" blur"+I+j,K="load"+I+j,Z=function(){function t(t){this._element=t,this.shouldAvoidTriggerChange=!1}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=r.default(this._element).closest(U)[0];if(n){var i=this._element.querySelector(Y);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(F))t=!1;else{var o=n.querySelector(q);o&&r.default(o).removeClass(F)}t&&("checkbox"!==i.type&&"radio"!==i.type||(i.checked=!this._element.classList.contains(F)),this.shouldAvoidTriggerChange||r.default(i).trigger("change")),i.focus(),e=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(F)),t&&r.default(this._element).toggleClass(F))},e.dispose=function(){r.default.removeData(this._element,R),this._element=null},t._jQueryInterface=function(e,n){return this.each((function(){var i=r.default(this),o=i.data(R);o||(o=new t(this),i.data(R,o)),o.shouldAvoidTriggerChange=n,"toggle"===e&&o[e]()}))},s(t,null,[{key:"VERSION",get:function(){return D}}]),t}();r.default(document).on(G,$,(function(t){var e=t.target,n=e;if(r.default(e).hasClass(z)||(e=r.default(e).closest(W)[0]),!e||e.hasAttribute("disabled")||e.classList.contains("disabled"))t.preventDefault();else{var i=e.querySelector(Y);if(i&&(i.hasAttribute("disabled")||i.classList.contains("disabled")))return void t.preventDefault();"INPUT"!==n.tagName&&"LABEL"===e.tagName||Z._jQueryInterface.call(r.default(e),"toggle","INPUT"===n.tagName)}})).on(X,$,(function(t){var e=r.default(t.target).closest(W)[0];r.default(e).toggleClass(B,/^focus(in)?$/.test(t.type))})),r.default(window).on(K,(function(){for(var t=[].slice.call(document.querySelectorAll(V)),e=0,n=t.length;e<n;e++){var i=t[e],r=i.querySelector(Y);r.checked||r.hasAttribute("checked")?i.classList.add(F):i.classList.remove(F)}for(var o=0,a=(t=[].slice.call(document.querySelectorAll(H))).length;o<a;o++){var s=t[o];"true"===s.getAttribute("aria-pressed")?s.classList.add(F):s.classList.remove(F)}})),r.default.fn[L]=Z._jQueryInterface,r.default.fn[L].Constructor=Z,r.default.fn[L].noConflict=function(){return r.default.fn[L]=N,Z._jQueryInterface};var J="carousel",Q="4.6.0",tt="bs.carousel",et="."+tt,nt=".data-api",it=r.default.fn[J],rt=37,ot=39,at=500,st=40,lt={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},ct={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},ut="next",dt="prev",ht="left",pt="right",ft="slide"+et,mt="slid"+et,vt="keydown"+et,gt="mouseenter"+et,bt="mouseleave"+et,yt="touchstart"+et,_t="touchmove"+et,wt="touchend"+et,xt="pointerdown"+et,Ct="pointerup"+et,St="dragstart"+et,Et="load"+et+nt,Tt="click"+et+nt,Ot="carousel",kt="active",At="slide",Pt="carousel-item-right",Mt="carousel-item-left",Lt="carousel-item-next",Dt="carousel-item-prev",Rt="pointer-event",It=".active",jt=".active.carousel-item",Nt=".carousel-item",Ft=".carousel-item img",zt=".carousel-item-next, .carousel-item-prev",Bt=".carousel-indicators",$t="[data-slide], [data-slide-to]",Ut='[data-ride="carousel"]',Ht={TOUCH:"touch",PEN:"pen"},Vt=function(){function t(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(Bt),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=t.prototype;return e.next=function(){this._isSliding||this._slide(ut)},e.nextWhenVisible=function(){var t=r.default(this._element);!document.hidden&&t.is(":visible")&&"hidden"!==t.css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(dt)},e.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(zt)&&(g.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(t){var e=this;this._activeElement=this._element.querySelector(jt);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)r.default(this._element).one(mt,(function(){return e.to(t)}));else{if(n===t)return this.pause(),void this.cycle();var i=t>n?ut:dt;this._slide(i,this._items[t])}},e.dispose=function(){r.default(this._element).off(et),r.default.removeData(this._element,tt),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(t){return t=l({},lt,t),g.typeCheckConfig(J,t,ct),t},e._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=st)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},e._addEventListeners=function(){var t=this;this._config.keyboard&&r.default(this._element).on(vt,(function(e){return t._keydown(e)})),"hover"===this._config.pause&&r.default(this._element).on(gt,(function(e){return t.pause(e)})).on(bt,(function(e){return t.cycle(e)})),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var e=function(e){t._pointerEvent&&Ht[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},n=function(e){e.originalEvent.touches&&e.originalEvent.touches.length>1?t.touchDeltaX=0:t.touchDeltaX=e.originalEvent.touches[0].clientX-t.touchStartX},i=function(e){t._pointerEvent&&Ht[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),at+t._config.interval))};r.default(this._element.querySelectorAll(Ft)).on(St,(function(t){return t.preventDefault()})),this._pointerEvent?(r.default(this._element).on(xt,(function(t){return e(t)})),r.default(this._element).on(Ct,(function(t){return i(t)})),this._element.classList.add(Rt)):(r.default(this._element).on(yt,(function(t){return e(t)})),r.default(this._element).on(_t,(function(t){return n(t)})),r.default(this._element).on(wt,(function(t){return i(t)})))}},e._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case rt:t.preventDefault(),this.prev();break;case ot:t.preventDefault(),this.next()}},e._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(Nt)):[],this._items.indexOf(t)},e._getItemByDirection=function(t,e){var n=t===ut,i=t===dt,r=this._getItemIndex(e),o=this._items.length-1;if((i&&0===r||n&&r===o)&&!this._config.wrap)return e;var a=(r+(t===dt?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},e._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(this._element.querySelector(jt)),o=r.default.Event(ft,{relatedTarget:t,direction:e,from:i,to:n});return r.default(this._element).trigger(o),o},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(It));r.default(e).removeClass(kt);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&r.default(n).addClass(kt)}},e._updateInterval=function(){var t=this._activeElement||this._element.querySelector(jt);if(t){var e=parseInt(t.getAttribute("data-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}},e._slide=function(t,e){var n,i,o,a=this,s=this._element.querySelector(jt),l=this._getItemIndex(s),c=e||s&&this._getItemByDirection(t,s),u=this._getItemIndex(c),d=Boolean(this._interval);if(t===ut?(n=Mt,i=Lt,o=ht):(n=Pt,i=Dt,o=pt),c&&r.default(c).hasClass(kt))this._isSliding=!1;else if(!this._triggerSlideEvent(c,o).isDefaultPrevented()&&s&&c){this._isSliding=!0,d&&this.pause(),this._setActiveIndicatorElement(c),this._activeElement=c;var h=r.default.Event(mt,{relatedTarget:c,direction:o,from:l,to:u});if(r.default(this._element).hasClass(At)){r.default(c).addClass(i),g.reflow(c),r.default(s).addClass(n),r.default(c).addClass(n);var p=g.getTransitionDurationFromElement(s);r.default(s).one(g.TRANSITION_END,(function(){r.default(c).removeClass(n+" "+i).addClass(kt),r.default(s).removeClass(kt+" "+i+" "+n),a._isSliding=!1,setTimeout((function(){return r.default(a._element).trigger(h)}),0)})).emulateTransitionEnd(p)}else r.default(s).removeClass(kt),r.default(c).addClass(kt),this._isSliding=!1,r.default(this._element).trigger(h);d&&this.cycle()}},t._jQueryInterface=function(e){return this.each((function(){var n=r.default(this).data(tt),i=l({},lt,r.default(this).data());"object"==typeof e&&(i=l({},i,e));var o="string"==typeof e?e:i.slide;if(n||(n=new t(this,i),r.default(this).data(tt,n)),"number"==typeof e)n.to(e);else if("string"==typeof o){if(void 0===n[o])throw new TypeError('No method named "'+o+'"');n[o]()}else i.interval&&i.ride&&(n.pause(),n.cycle())}))},t._dataApiClickHandler=function(e){var n=g.getSelectorFromElement(this);if(n){var i=r.default(n)[0];if(i&&r.default(i).hasClass(Ot)){var o=l({},r.default(i).data(),r.default(this).data()),a=this.getAttribute("data-slide-to");a&&(o.interval=!1),t._jQueryInterface.call(r.default(i),o),a&&r.default(i).data(tt).to(a),e.preventDefault()}}},s(t,null,[{key:"VERSION",get:function(){return Q}},{key:"Default",get:function(){return lt}}]),t}();r.default(document).on(Tt,$t,Vt._dataApiClickHandler),r.default(window).on(Et,(function(){for(var t=[].slice.call(document.querySelectorAll(Ut)),e=0,n=t.length;e<n;e++){var i=r.default(t[e]);Vt._jQueryInterface.call(i,i.data())}})),r.default.fn[J]=Vt._jQueryInterface,r.default.fn[J].Constructor=Vt,r.default.fn[J].noConflict=function(){return r.default.fn[J]=it,Vt._jQueryInterface};var Yt="collapse",qt="4.6.0",Wt="bs.collapse",Gt="."+Wt,Xt=".data-api",Kt=r.default.fn[Yt],Zt={toggle:!0,parent:""},Jt={toggle:"boolean",parent:"(string|element)"},Qt="show"+Gt,te="shown"+Gt,ee="hide"+Gt,ne="hidden"+Gt,ie="click"+Gt+Xt,re="show",oe="collapse",ae="collapsing",se="collapsed",le="width",ce="height",ue=".show, .collapsing",de='[data-toggle="collapse"]',he=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(de)),i=0,r=n.length;i<r;i++){var o=n[i],a=g.getSelectorFromElement(o),s=[].slice.call(document.querySelectorAll(a)).filter((function(e){return e===t}));null!==a&&s.length>0&&(this._selector=a,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=t.prototype;return e.toggle=function(){r.default(this._element).hasClass(re)?this.hide():this.show()},e.show=function(){var e,n,i=this;if(!(this._isTransitioning||r.default(this._element).hasClass(re)||(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(ue)).filter((function(t){return"string"==typeof i._config.parent?t.getAttribute("data-parent")===i._config.parent:t.classList.contains(oe)}))).length&&(e=null),e&&(n=r.default(e).not(this._selector).data(Wt))&&n._isTransitioning))){var o=r.default.Event(Qt);if(r.default(this._element).trigger(o),!o.isDefaultPrevented()){e&&(t._jQueryInterface.call(r.default(e).not(this._selector),"hide"),n||r.default(e).data(Wt,null));var a=this._getDimension();r.default(this._element).removeClass(oe).addClass(ae),this._element.style[a]=0,this._triggerArray.length&&r.default(this._triggerArray).removeClass(se).attr("aria-expanded",!0),this.setTransitioning(!0);var s=function(){r.default(i._element).removeClass(ae).addClass(oe+" "+re),i._element.style[a]="",i.setTransitioning(!1),r.default(i._element).trigger(te)},l="scroll"+(a[0].toUpperCase()+a.slice(1)),c=g.getTransitionDurationFromElement(this._element);r.default(this._element).one(g.TRANSITION_END,s).emulateTransitionEnd(c),this._element.style[a]=this._element[l]+"px"}}},e.hide=function(){var t=this;if(!this._isTransitioning&&r.default(this._element).hasClass(re)){var e=r.default.Event(ee);if(r.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",g.reflow(this._element),r.default(this._element).addClass(ae).removeClass(oe+" "+re);var i=this._triggerArray.length;if(i>0)for(var o=0;o<i;o++){var a=this._triggerArray[o],s=g.getSelectorFromElement(a);null!==s&&(r.default([].slice.call(document.querySelectorAll(s))).hasClass(re)||r.default(a).addClass(se).attr("aria-expanded",!1))}this.setTransitioning(!0);var l=function(){t.setTransitioning(!1),r.default(t._element).removeClass(ae).addClass(oe).trigger(ne)};this._element.style[n]="";var c=g.getTransitionDurationFromElement(this._element);r.default(this._element).one(g.TRANSITION_END,l).emulateTransitionEnd(c)}}},e.setTransitioning=function(t){this._isTransitioning=t},e.dispose=function(){r.default.removeData(this._element,Wt),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(t){return(t=l({},Zt,t)).toggle=Boolean(t.toggle),g.typeCheckConfig(Yt,t,Jt),t},e._getDimension=function(){return r.default(this._element).hasClass(le)?le:ce},e._getParent=function(){var e,n=this;g.isElement(this._config.parent)?(e=this._config.parent,void 0!==this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',o=[].slice.call(e.querySelectorAll(i));return r.default(o).each((function(e,i){n._addAriaAndCollapsedClass(t._getTargetFromElement(i),[i])})),e},e._addAriaAndCollapsedClass=function(t,e){var n=r.default(t).hasClass(re);e.length&&r.default(e).toggleClass(se,!n).attr("aria-expanded",n)},t._getTargetFromElement=function(t){var e=g.getSelectorFromElement(t);return e?document.querySelector(e):null},t._jQueryInterface=function(e){return this.each((function(){var n=r.default(this),i=n.data(Wt),o=l({},Zt,n.data(),"object"==typeof e&&e?e:{});if(!i&&o.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(o.toggle=!1),i||(i=new t(this,o),n.data(Wt,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},s(t,null,[{key:"VERSION",get:function(){return qt}},{key:"Default",get:function(){return Zt}}]),t}();r.default(document).on(ie,de,(function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=r.default(this),n=g.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(n));r.default(i).each((function(){var t=r.default(this),n=t.data(Wt)?"toggle":e.data();he._jQueryInterface.call(t,n)}))})),r.default.fn[Yt]=he._jQueryInterface,r.default.fn[Yt].Constructor=he,r.default.fn[Yt].noConflict=function(){return r.default.fn[Yt]=Kt,he._jQueryInterface};var pe="dropdown",fe="4.6.0",me="bs.dropdown",ve="."+me,ge=".data-api",be=r.default.fn[pe],ye=27,_e=32,we=9,xe=38,Ce=40,Se=3,Ee=new RegExp(xe+"|"+Ce+"|"+ye),Te="hide"+ve,Oe="hidden"+ve,ke="show"+ve,Ae="shown"+ve,Pe="click"+ve,Me="click"+ve+ge,Le="keydown"+ve+ge,De="keyup"+ve+ge,Re="disabled",Ie="show",je="dropup",Ne="dropright",Fe="dropleft",ze="dropdown-menu-right",Be="position-static",$e='[data-toggle="dropdown"]',Ue=".dropdown form",He=".dropdown-menu",Ve=".navbar-nav",Ye=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",qe="top-start",We="top-end",Ge="bottom-start",Xe="bottom-end",Ke="right-start",Ze="left-start",Je={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},Qe={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},tn=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=t.prototype;return e.toggle=function(){if(!this._element.disabled&&!r.default(this._element).hasClass(Re)){var e=r.default(this._menu).hasClass(Ie);t._clearMenus(),e||this.show(!0)}},e.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||r.default(this._element).hasClass(Re)||r.default(this._menu).hasClass(Ie))){var n={relatedTarget:this._element},i=r.default.Event(ke,n),a=t._getParentFromElement(this._element);if(r.default(a).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar&&e){if(void 0===o.default)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var s=this._element;"parent"===this._config.reference?s=a:g.isElement(this._config.reference)&&(s=this._config.reference,void 0!==this._config.reference.jquery&&(s=this._config.reference[0])),"scrollParent"!==this._config.boundary&&r.default(a).addClass(Be),this._popper=new o.default(s,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===r.default(a).closest(Ve).length&&r.default(document.body).children().on("mouseover",null,r.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),r.default(this._menu).toggleClass(Ie),r.default(a).toggleClass(Ie).trigger(r.default.Event(Ae,n))}}},e.hide=function(){if(!this._element.disabled&&!r.default(this._element).hasClass(Re)&&r.default(this._menu).hasClass(Ie)){var e={relatedTarget:this._element},n=r.default.Event(Te,e),i=t._getParentFromElement(this._element);r.default(i).trigger(n),n.isDefaultPrevented()||(this._popper&&this._popper.destroy(),r.default(this._menu).toggleClass(Ie),r.default(i).toggleClass(Ie).trigger(r.default.Event(Oe,e)))}},e.dispose=function(){r.default.removeData(this._element,me),r.default(this._element).off(ve),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;r.default(this._element).on(Pe,(function(e){e.preventDefault(),e.stopPropagation(),t.toggle()}))},e._getConfig=function(t){return t=l({},this.constructor.Default,r.default(this._element).data(),t),g.typeCheckConfig(pe,t,this.constructor.DefaultType),t},e._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(He))}return this._menu},e._getPlacement=function(){var t=r.default(this._element.parentNode),e=Ge;return t.hasClass(je)?e=r.default(this._menu).hasClass(ze)?We:qe:t.hasClass(Ne)?e=Ke:t.hasClass(Fe)?e=Ze:r.default(this._menu).hasClass(ze)&&(e=Xe),e},e._detectNavbar=function(){return r.default(this._element).closest(".navbar").length>0},e._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},e._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),l({},t,this._config.popperConfig)},t._jQueryInterface=function(e){return this.each((function(){var n=r.default(this).data(me);if(n||(n=new t(this,"object"==typeof e?e:null),r.default(this).data(me,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},t._clearMenus=function(e){if(!e||e.which!==Se&&("keyup"!==e.type||e.which===we))for(var n=[].slice.call(document.querySelectorAll($e)),i=0,o=n.length;i<o;i++){var a=t._getParentFromElement(n[i]),s=r.default(n[i]).data(me),l={relatedTarget:n[i]};if(e&&"click"===e.type&&(l.clickEvent=e),s){var c=s._menu;if(r.default(a).hasClass(Ie)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&e.which===we)&&r.default.contains(a,e.target))){var u=r.default.Event(Te,l);r.default(a).trigger(u),u.isDefaultPrevented()||("ontouchstart"in document.documentElement&&r.default(document.body).children().off("mouseover",null,r.default.noop),n[i].setAttribute("aria-expanded","false"),s._popper&&s._popper.destroy(),r.default(c).removeClass(Ie),r.default(a).removeClass(Ie).trigger(r.default.Event(Oe,l)))}}}},t._getParentFromElement=function(t){var e,n=g.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},t._dataApiKeydownHandler=function(e){if(!(/input|textarea/i.test(e.target.tagName)?e.which===_e||e.which!==ye&&(e.which!==Ce&&e.which!==xe||r.default(e.target).closest(He).length):!Ee.test(e.which))&&!this.disabled&&!r.default(this).hasClass(Re)){var n=t._getParentFromElement(this),i=r.default(n).hasClass(Ie);if(i||e.which!==ye){if(e.preventDefault(),e.stopPropagation(),!i||e.which===ye||e.which===_e)return e.which===ye&&r.default(n.querySelector($e)).trigger("focus"),void r.default(this).trigger("click");var o=[].slice.call(n.querySelectorAll(Ye)).filter((function(t){return r.default(t).is(":visible")}));if(0!==o.length){var a=o.indexOf(e.target);e.which===xe&&a>0&&a--,e.which===Ce&&a<o.length-1&&a++,a<0&&(a=0),o[a].focus()}}}},s(t,null,[{key:"VERSION",get:function(){return fe}},{key:"Default",get:function(){return Je}},{key:"DefaultType",get:function(){return Qe}}]),t}();r.default(document).on(Le,$e,tn._dataApiKeydownHandler).on(Le,He,tn._dataApiKeydownHandler).on(Me+" "+De,tn._clearMenus).on(Me,$e,(function(t){t.preventDefault(),t.stopPropagation(),tn._jQueryInterface.call(r.default(this),"toggle")})).on(Me,Ue,(function(t){t.stopPropagation()})),r.default.fn[pe]=tn._jQueryInterface,r.default.fn[pe].Constructor=tn,r.default.fn[pe].noConflict=function(){return r.default.fn[pe]=be,tn._jQueryInterface};var en="modal",nn="4.6.0",rn="bs.modal",on="."+rn,an=".data-api",sn=r.default.fn[en],ln=27,cn={backdrop:!0,keyboard:!0,focus:!0,show:!0},un={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},dn="hide"+on,hn="hidePrevented"+on,pn="hidden"+on,fn="show"+on,mn="shown"+on,vn="focusin"+on,gn="resize"+on,bn="click.dismiss"+on,yn="keydown.dismiss"+on,_n="mouseup.dismiss"+on,wn="mousedown.dismiss"+on,xn="click"+on+an,Cn="modal-dialog-scrollable",Sn="modal-scrollbar-measure",En="modal-backdrop",Tn="modal-open",On="fade",kn="show",An="modal-static",Pn=".modal-dialog",Mn=".modal-body",Ln='[data-toggle="modal"]',Dn='[data-dismiss="modal"]',Rn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",In=".sticky-top",jn=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(Pn),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e=t.prototype;return e.toggle=function(t){return this._isShown?this.hide():this.show(t)},e.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){r.default(this._element).hasClass(On)&&(this._isTransitioning=!0);var n=r.default.Event(fn,{relatedTarget:t});r.default(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),r.default(this._element).on(bn,Dn,(function(t){return e.hide(t)})),r.default(this._dialog).on(wn,(function(){r.default(e._element).one(_n,(function(t){r.default(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return e._showElement(t)})))}},e.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var n=r.default.Event(dn);if(r.default(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=r.default(this._element).hasClass(On);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),r.default(document).off(vn),r.default(this._element).removeClass(kn),r.default(this._element).off(bn),r.default(this._dialog).off(wn),i){var o=g.getTransitionDurationFromElement(this._element);r.default(this._element).one(g.TRANSITION_END,(function(t){return e._hideModal(t)})).emulateTransitionEnd(o)}else this._hideModal()}}},e.dispose=function(){[window,this._element,this._dialog].forEach((function(t){return r.default(t).off(on)})),r.default(document).off(vn),r.default.removeData(this._element,rn),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(t){return t=l({},cn,t),g.typeCheckConfig(en,t,un),t},e._triggerBackdropTransition=function(){var t=this,e=r.default.Event(hn);if(r.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._element.scrollHeight>document.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add(An);var i=g.getTransitionDurationFromElement(this._dialog);r.default(this._element).off(g.TRANSITION_END),r.default(this._element).one(g.TRANSITION_END,(function(){t._element.classList.remove(An),n||r.default(t._element).one(g.TRANSITION_END,(function(){t._element.style.overflowY=""})).emulateTransitionEnd(t._element,i)})).emulateTransitionEnd(i),this._element.focus()}},e._showElement=function(t){var e=this,n=r.default(this._element).hasClass(On),i=this._dialog?this._dialog.querySelector(Mn):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),r.default(this._dialog).hasClass(Cn)&&i?i.scrollTop=0:this._element.scrollTop=0,n&&g.reflow(this._element),r.default(this._element).addClass(kn),this._config.focus&&this._enforceFocus();var o=r.default.Event(mn,{relatedTarget:t}),a=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,r.default(e._element).trigger(o)};if(n){var s=g.getTransitionDurationFromElement(this._dialog);r.default(this._dialog).one(g.TRANSITION_END,a).emulateTransitionEnd(s)}else a()},e._enforceFocus=function(){var t=this;r.default(document).off(vn).on(vn,(function(e){document!==e.target&&t._element!==e.target&&0===r.default(t._element).has(e.target).length&&t._element.focus()}))},e._setEscapeEvent=function(){var t=this;this._isShown?r.default(this._element).on(yn,(function(e){t._config.keyboard&&e.which===ln?(e.preventDefault(),t.hide()):t._config.keyboard||e.which!==ln||t._triggerBackdropTransition()})):this._isShown||r.default(this._element).off(yn)},e._setResizeEvent=function(){var t=this;this._isShown?r.default(window).on(gn,(function(e){return t.handleUpdate(e)})):r.default(window).off(gn)},e._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){r.default(document.body).removeClass(Tn),t._resetAdjustments(),t._resetScrollbar(),r.default(t._element).trigger(pn)}))},e._removeBackdrop=function(){this._backdrop&&(r.default(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,n=r.default(this._element).hasClass(On)?On:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=En,n&&this._backdrop.classList.add(n),r.default(this._backdrop).appendTo(document.body),r.default(this._element).on(bn,(function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._triggerBackdropTransition():e.hide())})),n&&g.reflow(this._backdrop),r.default(this._backdrop).addClass(kn),!t)return;if(!n)return void t();var i=g.getTransitionDurationFromElement(this._backdrop);r.default(this._backdrop).one(g.TRANSITION_END,t).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){r.default(this._backdrop).removeClass(kn);var o=function(){e._removeBackdrop(),t&&t()};if(r.default(this._element).hasClass(On)){var a=g.getTransitionDurationFromElement(this._backdrop);r.default(this._backdrop).one(g.TRANSITION_END,o).emulateTransitionEnd(a)}else o()}else t&&t()},e._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(Rn)),n=[].slice.call(document.querySelectorAll(In));r.default(e).each((function(e,n){var i=n.style.paddingRight,o=r.default(n).css("padding-right");r.default(n).data("padding-right",i).css("padding-right",parseFloat(o)+t._scrollbarWidth+"px")})),r.default(n).each((function(e,n){var i=n.style.marginRight,o=r.default(n).css("margin-right");r.default(n).data("margin-right",i).css("margin-right",parseFloat(o)-t._scrollbarWidth+"px")}));var i=document.body.style.paddingRight,o=r.default(document.body).css("padding-right");r.default(document.body).data("padding-right",i).css("padding-right",parseFloat(o)+this._scrollbarWidth+"px")}r.default(document.body).addClass(Tn)},e._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(Rn));r.default(t).each((function(t,e){var n=r.default(e).data("padding-right");r.default(e).removeData("padding-right"),e.style.paddingRight=n||""}));var e=[].slice.call(document.querySelectorAll(""+In));r.default(e).each((function(t,e){var n=r.default(e).data("margin-right");void 0!==n&&r.default(e).css("margin-right",n).removeData("margin-right")}));var n=r.default(document.body).data("padding-right");r.default(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},e._getScrollbarWidth=function(){var t=document.createElement("div");t.className=Sn,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},t._jQueryInterface=function(e,n){return this.each((function(){var i=r.default(this).data(rn),o=l({},cn,r.default(this).data(),"object"==typeof e&&e?e:{});if(i||(i=new t(this,o),r.default(this).data(rn,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e](n)}else o.show&&i.show(n)}))},s(t,null,[{key:"VERSION",get:function(){return nn}},{key:"Default",get:function(){return cn}}]),t}();r.default(document).on(xn,Ln,(function(t){var e,n=this,i=g.getSelectorFromElement(this);i&&(e=document.querySelector(i));var o=r.default(e).data(rn)?"toggle":l({},r.default(e).data(),r.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var a=r.default(e).one(fn,(function(t){t.isDefaultPrevented()||a.one(pn,(function(){r.default(n).is(":visible")&&n.focus()}))}));jn._jQueryInterface.call(r.default(e),o,this)})),r.default.fn[en]=jn._jQueryInterface,r.default.fn[en].Constructor=jn,r.default.fn[en].noConflict=function(){return r.default.fn[en]=sn,jn._jQueryInterface};var Nn=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Fn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},zn=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,Bn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function $n(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===Nn.indexOf(n)||Boolean(t.nodeValue.match(zn)||t.nodeValue.match(Bn));for(var i=e.filter((function(t){return t instanceof RegExp})),r=0,o=i.length;r<o;r++)if(n.match(i[r]))return!0;return!1}function Un(t,e,n){if(0===t.length)return t;if(n&&"function"==typeof n)return n(t);for(var i=(new window.DOMParser).parseFromString(t,"text/html"),r=Object.keys(e),o=[].slice.call(i.body.querySelectorAll("*")),a=function(t,n){var i=o[t],a=i.nodeName.toLowerCase();if(-1===r.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";var s=[].slice.call(i.attributes),l=[].concat(e["*"]||[],e[a]||[]);s.forEach((function(t){$n(t,l)||i.removeAttribute(t.nodeName)}))},s=0,l=o.length;s<l;s++)a(s);return i.body.innerHTML}var Hn="tooltip",Vn="4.6.0",Yn="bs.tooltip",qn="."+Yn,Wn=r.default.fn[Hn],Gn="bs-tooltip",Xn=new RegExp("(^|\\s)"+Gn+"\\S+","g"),Kn=["sanitize","whiteList","sanitizeFn"],Zn={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},Jn={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Qn={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:Fn,popperConfig:null},ti="show",ei="out",ni={HIDE:"hide"+qn,HIDDEN:"hidden"+qn,SHOW:"show"+qn,SHOWN:"shown"+qn,INSERTED:"inserted"+qn,CLICK:"click"+qn,FOCUSIN:"focusin"+qn,FOCUSOUT:"focusout"+qn,MOUSEENTER:"mouseenter"+qn,MOUSELEAVE:"mouseleave"+qn},ii="fade",ri="show",oi=".tooltip-inner",ai=".arrow",si="hover",li="focus",ci="click",ui="manual",di=function(){function t(t,e){if(void 0===o.default)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var e=t.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=r.default(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),r.default(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(r.default(this.getTipElement()).hasClass(ri))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),r.default.removeData(this.element,this.constructor.DATA_KEY),r.default(this.element).off(this.constructor.EVENT_KEY),r.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&r.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===r.default(this.element).css("display"))throw new Error("Please use show on visible elements");var e=r.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){r.default(this.element).trigger(e);var n=g.findShadowRoot(this.element),i=r.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!i)return;var a=this.getTipElement(),s=g.getUID(this.constructor.NAME);a.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&r.default(a).addClass(ii);var l="function"==typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,c=this._getAttachment(l);this.addAttachmentClass(c);var u=this._getContainer();r.default(a).data(this.constructor.DATA_KEY,this),r.default.contains(this.element.ownerDocument.documentElement,this.tip)||r.default(a).appendTo(u),r.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new o.default(this.element,a,this._getPopperConfig(c)),r.default(a).addClass(ri),r.default(a).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&r.default(document.body).children().on("mouseover",null,r.default.noop);var d=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,r.default(t.element).trigger(t.constructor.Event.SHOWN),e===ei&&t._leave(null,t)};if(r.default(this.tip).hasClass(ii)){var h=g.getTransitionDurationFromElement(this.tip);r.default(this.tip).one(g.TRANSITION_END,d).emulateTransitionEnd(h)}else d()}},e.hide=function(t){var e=this,n=this.getTipElement(),i=r.default.Event(this.constructor.Event.HIDE),o=function(){e._hoverState!==ti&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),r.default(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(r.default(this.element).trigger(i),!i.isDefaultPrevented()){if(r.default(n).removeClass(ri),"ontouchstart"in document.documentElement&&r.default(document.body).children().off("mouseover",null,r.default.noop),this._activeTrigger[ci]=!1,this._activeTrigger[li]=!1,this._activeTrigger[si]=!1,r.default(this.tip).hasClass(ii)){var a=g.getTransitionDurationFromElement(n);r.default(n).one(g.TRANSITION_END,o).emulateTransitionEnd(a)}else o();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(t){r.default(this.getTipElement()).addClass(Gn+"-"+t)},e.getTipElement=function(){return this.tip=this.tip||r.default(this.config.template)[0],this.tip},e.setContent=function(){var t=this.getTipElement();this.setElementContent(r.default(t.querySelectorAll(oi)),this.getTitle()),r.default(t).removeClass(ii+" "+ri)},e.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=Un(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?r.default(e).parent().is(t)||t.empty().append(e):t.text(r.default(e).text())},e.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},e._getPopperConfig=function(t){var e=this;return l({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:ai},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},this.config.popperConfig)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:g.isElement(this.config.container)?r.default(this.config.container):r.default(document).find(this.config.container)},e._getAttachment=function(t){return Jn[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(e){if("click"===e)r.default(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if(e!==ui){var n=e===si?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,i=e===si?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;r.default(t.element).on(n,t.config.selector,(function(e){return t._enter(e)})).on(i,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},r.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||r.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),r.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?li:si]=!0),r.default(e.getTipElement()).hasClass(ri)||e._hoverState===ti?e._hoverState=ti:(clearTimeout(e._timeout),e._hoverState=ti,e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){e._hoverState===ti&&e.show()}),e.config.delay.show):e.show())},e._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||r.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),r.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?li:si]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=ei,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){e._hoverState===ei&&e.hide()}),e.config.delay.hide):e.hide())},e._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},e._getConfig=function(t){var e=r.default(this.element).data();return Object.keys(e).forEach((function(t){-1!==Kn.indexOf(t)&&delete e[t]})),"number"==typeof(t=l({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),g.typeCheckConfig(Hn,t,this.constructor.DefaultType),t.sanitize&&(t.template=Un(t.template,t.whiteList,t.sanitizeFn)),t},e._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},e._cleanTipClass=function(){var t=r.default(this.getTipElement()),e=t.attr("class").match(Xn);null!==e&&e.length&&t.removeClass(e.join(""))},e._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},e._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(r.default(t).removeClass(ii),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each((function(){var n=r.default(this),i=n.data(Yn),o="object"==typeof e&&e;if((i||!/dispose|hide/.test(e))&&(i||(i=new t(this,o),n.data(Yn,i)),"string"==typeof e)){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},s(t,null,[{key:"VERSION",get:function(){return Vn}},{key:"Default",get:function(){return Qn}},{key:"NAME",get:function(){return Hn}},{key:"DATA_KEY",get:function(){return Yn}},{key:"Event",get:function(){return ni}},{key:"EVENT_KEY",get:function(){return qn}},{key:"DefaultType",get:function(){return Zn}}]),t}();r.default.fn[Hn]=di._jQueryInterface,r.default.fn[Hn].Constructor=di,r.default.fn[Hn].noConflict=function(){return r.default.fn[Hn]=Wn,di._jQueryInterface};var hi="popover",pi="4.6.0",fi="bs.popover",mi="."+fi,vi=r.default.fn[hi],gi="bs-popover",bi=new RegExp("(^|\\s)"+gi+"\\S+","g"),yi=l({},di.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),_i=l({},di.DefaultType,{content:"(string|element|function)"}),wi="fade",xi="show",Ci=".popover-header",Si=".popover-body",Ei={HIDE:"hide"+mi,HIDDEN:"hidden"+mi,SHOW:"show"+mi,SHOWN:"shown"+mi,INSERTED:"inserted"+mi,CLICK:"click"+mi,FOCUSIN:"focusin"+mi,FOCUSOUT:"focusout"+mi,MOUSEENTER:"mouseenter"+mi,MOUSELEAVE:"mouseleave"+mi},Ti=function(t){function e(){return t.apply(this,arguments)||this}c(e,t);var n=e.prototype;return n.isWithContent=function(){return this.getTitle()||this._getContent()},n.addAttachmentClass=function(t){r.default(this.getTipElement()).addClass(gi+"-"+t)},n.getTipElement=function(){return this.tip=this.tip||r.default(this.config.template)[0],this.tip},n.setContent=function(){var t=r.default(this.getTipElement());this.setElementContent(t.find(Ci),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(Si),e),t.removeClass(wi+" "+xi)},n._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},n._cleanTipClass=function(){var t=r.default(this.getTipElement()),e=t.attr("class").match(bi);null!==e&&e.length>0&&t.removeClass(e.join(""))},e._jQueryInterface=function(t){return this.each((function(){var n=r.default(this).data(fi),i="object"==typeof t?t:null;if((n||!/dispose|hide/.test(t))&&(n||(n=new e(this,i),r.default(this).data(fi,n)),"string"==typeof t)){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},s(e,null,[{key:"VERSION",get:function(){return pi}},{key:"Default",get:function(){return yi}},{key:"NAME",get:function(){return hi}},{key:"DATA_KEY",get:function(){return fi}},{key:"Event",get:function(){return Ei}},{key:"EVENT_KEY",get:function(){return mi}},{key:"DefaultType",get:function(){return _i}}]),e}(di);r.default.fn[hi]=Ti._jQueryInterface,r.default.fn[hi].Constructor=Ti,r.default.fn[hi].noConflict=function(){return r.default.fn[hi]=vi,Ti._jQueryInterface};var Oi="scrollspy",ki="4.6.0",Ai="bs.scrollspy",Pi="."+Ai,Mi=".data-api",Li=r.default.fn[Oi],Di={offset:10,method:"auto",target:""},Ri={offset:"number",method:"string",target:"(string|element)"},Ii="activate"+Pi,ji="scroll"+Pi,Ni="load"+Pi+Mi,Fi="dropdown-item",zi="active",Bi='[data-spy="scroll"]',$i=".nav, .list-group",Ui=".nav-link",Hi=".nav-item",Vi=".list-group-item",Yi=".dropdown",qi=".dropdown-item",Wi=".dropdown-toggle",Gi="offset",Xi="position",Ki=function(){function t(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+Ui+","+this._config.target+" "+Vi+","+this._config.target+" "+qi,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,r.default(this._scrollElement).on(ji,(function(t){return n._process(t)})),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?Gi:Xi,n="auto"===this._config.method?e:this._config.method,i=n===Xi?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var e,o=g.getSelectorFromElement(t);if(o&&(e=document.querySelector(o)),e){var a=e.getBoundingClientRect();if(a.width||a.height)return[r.default(e)[n]().top+i,o]}return null})).filter((function(t){return t})).sort((function(t,e){return t[0]-e[0]})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},e.dispose=function(){r.default.removeData(this._element,Ai),r.default(this._scrollElement).off(Pi),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(t){if("string"!=typeof(t=l({},Di,"object"==typeof t&&t?t:{})).target&&g.isElement(t.target)){var e=r.default(t.target).attr("id");e||(e=g.getUID(Oi),r.default(t.target).attr("id",e)),t.target="#"+e}return g.typeCheckConfig(Oi,t,Ri),t},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;)this._activeTarget!==this._targets[r]&&t>=this._offsets[r]&&(void 0===this._offsets[r+1]||t<this._offsets[r+1])&&this._activate(this._targets[r])}},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map((function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'})),n=r.default([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass(Fi)?(n.closest(Yi).find(Wi).addClass(zi),n.addClass(zi)):(n.addClass(zi),n.parents($i).prev(Ui+", "+Vi).addClass(zi),n.parents($i).prev(Hi).children(Ui).addClass(zi)),r.default(this._scrollElement).trigger(Ii,{relatedTarget:t})},e._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(t){return t.classList.contains(zi)})).forEach((function(t){return t.classList.remove(zi)}))},t._jQueryInterface=function(e){return this.each((function(){var n=r.default(this).data(Ai);if(n||(n=new t(this,"object"==typeof e&&e),r.default(this).data(Ai,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},s(t,null,[{key:"VERSION",get:function(){return ki}},{key:"Default",get:function(){return Di}}]),t}();r.default(window).on(Ni,(function(){for(var t=[].slice.call(document.querySelectorAll(Bi)),e=t.length;e--;){var n=r.default(t[e]);Ki._jQueryInterface.call(n,n.data())}})),r.default.fn[Oi]=Ki._jQueryInterface,r.default.fn[Oi].Constructor=Ki,r.default.fn[Oi].noConflict=function(){return r.default.fn[Oi]=Li,Ki._jQueryInterface};var Zi="tab",Ji="4.6.0",Qi="bs.tab",tr="."+Qi,er=".data-api",nr=r.default.fn[Zi],ir="hide"+tr,rr="hidden"+tr,or="show"+tr,ar="shown"+tr,sr="click"+tr+er,lr="dropdown-menu",cr="active",ur="disabled",dr="fade",hr="show",pr=".dropdown",fr=".nav, .list-group",mr=".active",vr="> li > .active",gr='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',br=".dropdown-toggle",yr="> .dropdown-menu .active",_r=function(){function t(t){this._element=t}var e=t.prototype;return e.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&r.default(this._element).hasClass(cr)||r.default(this._element).hasClass(ur))){var e,n,i=r.default(this._element).closest(fr)[0],o=g.getSelectorFromElement(this._element);if(i){var a="UL"===i.nodeName||"OL"===i.nodeName?vr:mr;n=(n=r.default.makeArray(r.default(i).find(a)))[n.length-1]}var s=r.default.Event(ir,{relatedTarget:this._element}),l=r.default.Event(or,{relatedTarget:n});if(n&&r.default(n).trigger(s),r.default(this._element).trigger(l),!l.isDefaultPrevented()&&!s.isDefaultPrevented()){o&&(e=document.querySelector(o)),this._activate(this._element,i);var c=function(){var e=r.default.Event(rr,{relatedTarget:t._element}),i=r.default.Event(ar,{relatedTarget:n});r.default(n).trigger(e),r.default(t._element).trigger(i)};e?this._activate(e,e.parentNode,c):c()}}},e.dispose=function(){r.default.removeData(this._element,Qi),this._element=null},e._activate=function(t,e,n){var i=this,o=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?r.default(e).children(mr):r.default(e).find(vr))[0],a=n&&o&&r.default(o).hasClass(dr),s=function(){return i._transitionComplete(t,o,n)};if(o&&a){var l=g.getTransitionDurationFromElement(o);r.default(o).removeClass(hr).one(g.TRANSITION_END,s).emulateTransitionEnd(l)}else s()},e._transitionComplete=function(t,e,n){if(e){r.default(e).removeClass(cr);var i=r.default(e.parentNode).find(yr)[0];i&&r.default(i).removeClass(cr),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(r.default(t).addClass(cr),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),g.reflow(t),t.classList.contains(dr)&&t.classList.add(hr),t.parentNode&&r.default(t.parentNode).hasClass(lr)){var o=r.default(t).closest(pr)[0];if(o){var a=[].slice.call(o.querySelectorAll(br));r.default(a).addClass(cr)}t.setAttribute("aria-expanded",!0)}n&&n()},t._jQueryInterface=function(e){return this.each((function(){var n=r.default(this),i=n.data(Qi);if(i||(i=new t(this),n.data(Qi,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},s(t,null,[{key:"VERSION",get:function(){return Ji}}]),t}();r.default(document).on(sr,gr,(function(t){t.preventDefault(),_r._jQueryInterface.call(r.default(this),"show")})),r.default.fn[Zi]=_r._jQueryInterface,r.default.fn[Zi].Constructor=_r,r.default.fn[Zi].noConflict=function(){return r.default.fn[Zi]=nr,_r._jQueryInterface};var wr="toast",xr="4.6.0",Cr="bs.toast",Sr="."+Cr,Er=r.default.fn[wr],Tr="click.dismiss"+Sr,Or="hide"+Sr,kr="hidden"+Sr,Ar="show"+Sr,Pr="shown"+Sr,Mr="fade",Lr="hide",Dr="show",Rr="showing",Ir={animation:"boolean",autohide:"boolean",delay:"number"},jr={animation:!0,autohide:!0,delay:500},Nr='[data-dismiss="toast"]',Fr=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var e=t.prototype;return e.show=function(){var t=this,e=r.default.Event(Ar);if(r.default(this._element).trigger(e),!e.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add(Mr);var n=function(){t._element.classList.remove(Rr),t._element.classList.add(Dr),r.default(t._element).trigger(Pr),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove(Lr),g.reflow(this._element),this._element.classList.add(Rr),this._config.animation){var i=g.getTransitionDurationFromElement(this._element);r.default(this._element).one(g.TRANSITION_END,n).emulateTransitionEnd(i)}else n()}},e.hide=function(){if(this._element.classList.contains(Dr)){var t=r.default.Event(Or);r.default(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},e.dispose=function(){this._clearTimeout(),this._element.classList.contains(Dr)&&this._element.classList.remove(Dr),r.default(this._element).off(Tr),r.default.removeData(this._element,Cr),this._element=null,this._config=null},e._getConfig=function(t){return t=l({},jr,r.default(this._element).data(),"object"==typeof t&&t?t:{}),g.typeCheckConfig(wr,t,this.constructor.DefaultType),t},e._setListeners=function(){var t=this;r.default(this._element).on(Tr,Nr,(function(){return t.hide()}))},e._close=function(){var t=this,e=function(){t._element.classList.add(Lr),r.default(t._element).trigger(kr)};if(this._element.classList.remove(Dr),this._config.animation){var n=g.getTransitionDurationFromElement(this._element);r.default(this._element).one(g.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},e._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},t._jQueryInterface=function(e){return this.each((function(){var n=r.default(this),i=n.data(Cr);if(i||(i=new t(this,"object"==typeof e&&e),n.data(Cr,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e](this)}}))},s(t,null,[{key:"VERSION",get:function(){return xr}},{key:"DefaultType",get:function(){return Ir}},{key:"Default",get:function(){return jr}}]),t}();r.default.fn[wr]=Fr._jQueryInterface,r.default.fn[wr].Constructor=Fr,r.default.fn[wr].noConflict=function(){return r.default.fn[wr]=Er,Fr._jQueryInterface},t.Alert=M,t.Button=Z,t.Carousel=Vt,t.Collapse=he,t.Dropdown=tn,t.Modal=jn,t.Popover=Ti,t.Scrollspy=Ki,t.Tab=_r,t.Toast=Fr,t.Tooltip=di,t.Util=g,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(4692),n(8851))},6122:function(t,e,n){var i;i=function(){var t=!0;function e(e){function n(t){var n=e.match(t);return n&&n.length>1&&n[1]||""}function i(t){var n=e.match(t);return n&&n.length>1&&n[2]||""}var r,a=n(/(ipod|iphone|ipad)/i).toLowerCase(),s=!/like android/i.test(e)&&/android/i.test(e),l=/nexus\s*[0-6]\s*/i.test(e),c=!l&&/nexus\s*[0-9]+/i.test(e),u=/CrOS/.test(e),d=/silk/i.test(e),h=/sailfish/i.test(e),p=/tizen/i.test(e),f=/(web|hpw)(o|0)s/i.test(e),m=/windows phone/i.test(e),v=(/SamsungBrowser/i.test(e),!m&&/windows/i.test(e)),g=!a&&!d&&/macintosh/i.test(e),b=!s&&!h&&!p&&!f&&/linux/i.test(e),y=i(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),_=n(/version\/(\d+(\.\d+)?)/i),w=/tablet/i.test(e)&&!/tablet pc/i.test(e),x=!w&&/[^-]mobi/i.test(e),C=/xbox/i.test(e);/opera/i.test(e)?r={name:"Opera",opera:t,version:_||n(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(e)?r={name:"Opera",opera:t,version:n(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||_}:/SamsungBrowser/i.test(e)?r={name:"Samsung Internet for Android",samsungBrowser:t,version:_||n(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(e)?r={name:"NAVER Whale browser",whale:t,version:n(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(e)?r={name:"MZ Browser",mzbrowser:t,version:n(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(e)?r={name:"Opera Coast",coast:t,version:_||n(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(e)?r={name:"Focus",focus:t,version:n(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(e)?r={name:"Yandex Browser",yandexbrowser:t,version:_||n(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(e)?r={name:"UC Browser",ucbrowser:t,version:n(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(e)?r={name:"Maxthon",maxthon:t,version:n(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(e)?r={name:"Epiphany",epiphany:t,version:n(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(e)?r={name:"Puffin",puffin:t,version:n(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(e)?r={name:"Sleipnir",sleipnir:t,version:n(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(e)?r={name:"K-Meleon",kMeleon:t,version:n(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:m?(r={name:"Windows Phone",osname:"Windows Phone",windowsphone:t},y?(r.msedge=t,r.version=y):(r.msie=t,r.version=n(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(e)?r={name:"Internet Explorer",msie:t,version:n(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:u?r={name:"Chrome",osname:"Chrome OS",chromeos:t,chromeBook:t,chrome:t,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(e)?r={name:"Microsoft Edge",msedge:t,version:y}:/vivaldi/i.test(e)?r={name:"Vivaldi",vivaldi:t,version:n(/vivaldi\/(\d+(\.\d+)?)/i)||_}:h?r={name:"Sailfish",osname:"Sailfish OS",sailfish:t,version:n(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(e)?r={name:"SeaMonkey",seamonkey:t,version:n(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(e)?(r={name:"Firefox",firefox:t,version:n(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(e)&&(r.firefoxos=t,r.osname="Firefox OS")):d?r={name:"Amazon Silk",silk:t,version:n(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(e)?r={name:"PhantomJS",phantom:t,version:n(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(e)?r={name:"SlimerJS",slimer:t,version:n(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(e)||/rim\stablet/i.test(e)?r={name:"BlackBerry",osname:"BlackBerry OS",blackberry:t,version:_||n(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:f?(r={name:"WebOS",osname:"WebOS",webos:t,version:_||n(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(e)&&(r.touchpad=t)):/bada/i.test(e)?r={name:"Bada",osname:"Bada",bada:t,version:n(/dolfin\/(\d+(\.\d+)?)/i)}:p?r={name:"Tizen",osname:"Tizen",tizen:t,version:n(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||_}:/qupzilla/i.test(e)?r={name:"QupZilla",qupzilla:t,version:n(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||_}:/chromium/i.test(e)?r={name:"Chromium",chromium:t,version:n(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||_}:/chrome|crios|crmo/i.test(e)?r={name:"Chrome",chrome:t,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:s?r={name:"Android",version:_}:/safari|applewebkit/i.test(e)?(r={name:"Safari",safari:t},_&&(r.version=_)):a?(r={name:"iphone"==a?"iPhone":"ipad"==a?"iPad":"iPod"},_&&(r.version=_)):r=/googlebot/i.test(e)?{name:"Googlebot",googlebot:t,version:n(/googlebot\/(\d+(\.\d+))/i)||_}:{name:n(/^(.*)\/(.*) /),version:i(/^(.*)\/(.*) /)},!r.msedge&&/(apple)?webkit/i.test(e)?(/(apple)?webkit\/537\.36/i.test(e)?(r.name=r.name||"Blink",r.blink=t):(r.name=r.name||"Webkit",r.webkit=t),!r.version&&_&&(r.version=_)):!r.opera&&/gecko\//i.test(e)&&(r.name=r.name||"Gecko",r.gecko=t,r.version=r.version||n(/gecko\/(\d+(\.\d+)?)/i)),r.windowsphone||!s&&!r.silk?!r.windowsphone&&a?(r[a]=t,r.ios=t,r.osname="iOS"):g?(r.mac=t,r.osname="macOS"):C?(r.xbox=t,r.osname="Xbox"):v?(r.windows=t,r.osname="Windows"):b&&(r.linux=t,r.osname="Linux"):(r.android=t,r.osname="Android");var S="";r.windows?S=function(t){switch(t){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(n(/Windows ((NT|XP)( \d\d?.\d)?)/i)):r.windowsphone?S=n(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):r.mac?S=(S=n(/Mac OS X (\d+([_\.\s]\d+)*)/i)).replace(/[_\s]/g,"."):a?S=(S=n(/os (\d+([_\s]\d+)*) like mac os x/i)).replace(/[_\s]/g,"."):s?S=n(/android[ \/-](\d+(\.\d+)*)/i):r.webos?S=n(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):r.blackberry?S=n(/rim\stablet\sos\s(\d+(\.\d+)*)/i):r.bada?S=n(/bada\/(\d+(\.\d+)*)/i):r.tizen&&(S=n(/tizen[\/\s](\d+(\.\d+)*)/i)),S&&(r.osversion=S);var E=!r.windows&&S.split(".")[0];return w||c||"ipad"==a||s&&(3==E||E>=4&&!x)||r.silk?r.tablet=t:(x||"iphone"==a||"ipod"==a||s||l||r.blackberry||r.webos||r.bada)&&(r.mobile=t),r.msedge||r.msie&&r.version>=10||r.yandexbrowser&&r.version>=15||r.vivaldi&&r.version>=1||r.chrome&&r.version>=20||r.samsungBrowser&&r.version>=4||r.whale&&1===o([r.version,"1.0"])||r.mzbrowser&&1===o([r.version,"6.0"])||r.focus&&1===o([r.version,"1.0"])||r.firefox&&r.version>=20||r.safari&&r.version>=6||r.opera&&r.version>=10||r.ios&&r.osversion&&r.osversion.split(".")[0]>=6||r.blackberry&&r.version>=10.1||r.chromium&&r.version>=20?r.a=t:r.msie&&r.version<10||r.chrome&&r.version<20||r.firefox&&r.version<20||r.safari&&r.version<6||r.opera&&r.version<10||r.ios&&r.osversion&&r.osversion.split(".")[0]<6||r.chromium&&r.version<20?r.c=t:r.x=t,r}var n=e("undefined"!=typeof navigator&&navigator.userAgent||"");function i(t){return t.split(".").length}function r(t,e){var n,i=[];if(Array.prototype.map)return Array.prototype.map.call(t,e);for(n=0;n<t.length;n++)i.push(e(t[n]));return i}function o(t){for(var e=Math.max(i(t[0]),i(t[1])),n=r(t,(function(t){var n=e-i(t);return r((t+=new Array(n+1).join(".0")).split("."),(function(t){return new Array(20-t.length).join("0")+t})).reverse()}));--e>=0;){if(n[0][e]>n[1][e])return 1;if(n[0][e]!==n[1][e])return-1;if(0===e)return 0}}function a(t,i,r){var a=n;"string"==typeof i&&(r=i,i=void 0),void 0===i&&(i=!1),r&&(a=e(r));var s=""+a.version;for(var l in t)if(t.hasOwnProperty(l)&&a[l]){if("string"!=typeof t[l])throw new Error("Browser version in the minVersion map should be a string: "+l+": "+String(t));return o([s,t[l]])<0}return i}return n.test=function(t){for(var e=0;e<t.length;++e){var i=t[e];if("string"==typeof i&&i in n)return!0}return!1},n.isUnsupportedBrowser=a,n.compareVersions=o,n.check=function(t,e,n){return!a(t,e,n)},n._detect=e,n.detect=e,n},t.exports?t.exports=i():n.amdD("bowser",i)},9447:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,'/*!\n * PhotoSphereViewer 5.7.4\n * @copyright 2014-2015 Jérémy Heleine\n * @copyright 2024 Damien "Mistic" Sorel\n * @licence MIT (https://opensource.org/licenses/MIT)\n */.psv-container{--psv-core-loaded:true;background:radial-gradient(#fff 0,#fdfdfd 16%,#fbfbfb 33%,#f8f8f8 49%,#efefef 66%,#dfdfdf 82%,#bfbfbf 100%);height:100%;margin:0;overflow:hidden;padding:0;position:relative;width:100%}.psv-container *{box-sizing:content-box}.psv-canvas-container{left:0;position:absolute;top:0;transition:opacity .1s linear;z-index:0}.psv-canvas{display:block}.psv-fullscreen-emulation{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important}.psv-loader-container{height:100%;left:0;position:absolute;top:0;width:100%;z-index:80}.psv-loader,.psv-loader-container{align-items:center;display:flex;justify-content:center}.psv-loader{--psv-loader-border:3px;--psv-loader-tickness:10px;color:hsla(0,0%,100%,.7);height:150px;position:relative;width:150px}.psv-loader-canvas{color:rgba(61,61,61,.5);height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.psv-loader-text{font:600 16px sans-serif}.psv-navbar{background:rgba(61,61,61,.5);bottom:-40px;cursor:default;display:flex;font:16px sans-serif;height:40px;left:0;position:absolute;transition:bottom .1s ease-in-out;width:100%;z-index:90}.psv-navbar--open{bottom:0}.psv-navbar,.psv-navbar *{box-sizing:content-box}.psv-button{background:transparent;color:hsla(0,0%,100%,.7);cursor:pointer;flex:0 0 auto;height:20px;padding:10px;position:relative;width:20px}.psv-button--active{background:hsla(0,0%,100%,.2)}.psv-button--disabled{opacity:.5;pointer-events:none}.psv-button-svg{transform:scale(1);transition:transform .2s ease;vertical-align:initial;width:100%}.psv-button:not(.psv-button--disabled):focus-visible{outline:2px solid #007cff;outline-offset:-2px}.psv-container:not(.psv--is-touch) .psv-button--hover-scale:not(.psv-button--disabled):hover .psv-button-svg{transform:scale(1.2)}.psv-move-button+.psv-move-button{margin-left:-10px}.psv-custom-button{min-width:20px;width:auto}.psv-custom-button--no-padding{height:100%;padding:0}.psv-caption{color:hsla(0,0%,100%,.7);cursor:unset;flex:1 1 100%;height:unset;overflow:hidden;padding:unset;text-align:center;width:unset}.psv-caption-content{display:inline-block;padding:10px;white-space:nowrap}.psv-zoom-range.psv-button{height:1px;margin:10px 0;max-width:600px;padding:9.5px 0;width:80px}.psv-zoom-range-line{background:hsla(0,0%,100%,.7);height:1px;position:relative;transition:all .3s ease;width:80px}.psv-zoom-range-handle{background:hsla(0,0%,100%,.7);border-radius:50%;height:7px;position:absolute;top:-3px;transform:scale(1);transition:transform .3s ease;width:7px}.psv-zoom-range:not(.psv-button--disabled):hover .psv-zoom-range-line{box-shadow:0 0 2px hsla(0,0%,100%,.7)}.psv-zoom-range:not(.psv-button--disabled):hover .psv-zoom-range-handle{transform:scale(1.3)}.psv-notification{bottom:-40px;box-sizing:border-box;display:flex;justify-content:center;opacity:0;padding:0 2em;position:absolute;transition-duration:.2s;transition-property:opacity,bottom;transition-timing-function:ease-in-out;width:100%;z-index:100}.psv-notification-content{background:rgba(61,61,61,.8);border-radius:4px;color:#fff;font:14px sans-serif;max-width:50em;padding:.5em 1em}.psv-notification--visible{bottom:80px;opacity:1}.psv-overlay{align-items:center;background:radial-gradient(#fff 0,#fdfdfd 16%,#fbfbfb 33%,#f8f8f8 49%,#efefef 66%,#dfdfdf 82%,#bfbfbf 100%);cursor:default;display:flex;flex-direction:column;inset:0;justify-content:center;opacity:.8;position:absolute;z-index:110}.psv-overlay-image{text-align:center;width:100%}.psv-overlay-image svg{width:50%}@media (orientation:landscape){.psv-overlay-image svg{width:33%}}.psv-overlay-title{color:#000;font:30px sans-serif;margin-top:1em;text-align:center}.psv-overlay-text{color:rgba(0,0,0,.8);font:20px sans-serif;opacity:.8;text-align:center}.psv-panel{background:hsla(0,0%,4%,.7);cursor:default;height:100%;margin-left:9px;max-width:calc(100% - 9px);opacity:0;position:absolute;right:0;transform:translate3d(100%,0,0);transition-duration:.1s;transition-property:opacity,transform;transition-timing-function:ease-in-out;width:400px;z-index:90}.psv--has-navbar .psv-panel{height:calc(100% - 40px)}.psv-panel-close-button{background:transparent;color:#fff;cursor:pointer;display:none;height:19.2px;padding:6.4px;position:absolute;right:0;top:-1px;transition:background .3s ease-in-out;width:19.2px}.psv-panel-close-button svg{transition:transform .3s ease-in-out}.psv-panel-close-button:hover{background:rgba(0,0,0,.9)}.psv-panel-close-button:hover svg{transform:scale(-1)}.psv-panel-resizer{background-color:rgba(0,0,0,.9);cursor:col-resize;display:none;height:100%;left:-9px;position:absolute;top:0;width:9px}.psv-panel-resizer:before{background:transparent;box-shadow:1px 0 #fff,3px 0 #fff,5px 0 #fff,1px 2px #fff,3px 2px #fff,5px 2px #fff,1px 4px #fff,3px 4px #fff,5px 4px #fff,1px 6px #fff,3px 6px #fff,5px 6px #fff,1px 8px #fff,3px 8px #fff,5px 8px #fff,1px 10px #fff,3px 10px #fff,5px 10px #fff,1px 12px #fff,3px 12px #fff,5px 12px #fff,1px 14px #fff,3px 14px #fff,5px 14px #fff,1px 16px #fff,3px 16px #fff,5px 16px #fff,1px 18px #fff,3px 18px #fff,5px 18px #fff,1px 20px #fff,3px 20px #fff,5px 20px #fff,1px 22px #fff,3px 22px #fff,5px 22px #fff,1px 24px #fff,3px 24px #fff,5px 24px #fff,1px 26px #fff,3px 26px #fff,5px 26px #fff,1px 28px #fff,3px 28px #fff,5px 28px #fff;content:"";height:1px;left:1px;margin-top:-14.5px;position:absolute;top:50%;width:1px}.psv-panel-content{box-sizing:border-box;color:#dcdcdc;font:16px sans-serif;height:100%;overflow:auto;width:100%}.psv-panel-content:not(.psv-panel-content--no-margin){padding:1em}.psv-panel-content--no-interaction{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.psv-panel--open{opacity:1;transform:translateZ(0);transition-duration:.2s}.psv-panel--open .psv-panel-close-button,.psv-panel--open .psv-panel-resizer{display:block}@media screen and (max-width:400px){.psv-panel{max-width:none;width:100%!important}.psv-panel-resizer{display:none!important}}.psv-panel-menu{display:flex;flex-direction:column;height:100%}.psv-panel-menu-title{align-items:center;display:flex;flex:none;font:24px sans-serif;margin:24px 12px}.psv-panel-menu-title svg{height:24px;margin-right:12px;width:24px}.psv-panel-menu-list{flex:1;list-style:none;margin:0;overflow-x:hidden;padding:0}.psv-panel-menu-item{align-items:center;cursor:pointer;display:flex;justify-content:flex-start;min-height:1.5em;padding:.5em 1em;transition:background .1s ease-in-out}.psv-panel-menu-item--active{outline:1px solid currentcolor;outline-offset:-1px}.psv-panel-menu-item-icon{flex:none;height:1.5em;margin-right:.5em;width:1.5em}.psv-panel-menu-item-icon img{max-height:100%;max-width:100%}.psv-panel-menu-item-icon svg{height:100%;width:100%}.psv-panel-menu-item:focus-visible{outline:2px solid #007cff;outline-offset:-2px}.psv-panel-menu--stripped .psv-panel-menu-item:hover{background:hsla(0,0%,100%,.2)}.psv-panel-menu--stripped .psv-panel-menu-item:nth-child(odd),.psv-panel-menu--stripped .psv-panel-menu-item:nth-child(odd):before{background:hsla(0,0%,100%,.1)}.psv-panel-menu--stripped .psv-panel-menu-item:nth-child(2n),.psv-panel-menu--stripped .psv-panel-menu-item:nth-child(2n):before{background:transparent}.psv-container:not(.psv--is-touch) .psv-panel-menu-item:hover{background:hsla(0,0%,100%,.2)}.psv-tooltip{background:rgba(61,61,61,.8);border-radius:4px;box-sizing:border-box;cursor:default;max-width:200px;opacity:0;position:absolute;transition-duration:.1s;transition-property:opacity,transform;transition-timing-function:ease-in-out;z-index:50}.psv-tooltip-content{color:#fff;font:14px sans-serif;padding:.5em 1em;text-shadow:0 1px #000}.psv-tooltip-arrow{border:7px solid transparent;height:0;position:absolute;width:0}.psv-tooltip--top-center,.psv-tooltip--top-left,.psv-tooltip--top-right{transform:translate3d(0,5px,0)}.psv-tooltip--top-center .psv-tooltip-arrow,.psv-tooltip--top-left .psv-tooltip-arrow,.psv-tooltip--top-right .psv-tooltip-arrow{border-top-color:rgba(61,61,61,.8)}.psv-tooltip--bottom-center,.psv-tooltip--bottom-left,.psv-tooltip--bottom-right{transform:translate3d(0,-5px,0)}.psv-tooltip--bottom-center .psv-tooltip-arrow,.psv-tooltip--bottom-left .psv-tooltip-arrow,.psv-tooltip--bottom-right .psv-tooltip-arrow{border-bottom-color:rgba(61,61,61,.8)}.psv-tooltip--center-left,.psv-tooltip--left-bottom,.psv-tooltip--left-top{transform:translate3d(5px,0,0)}.psv-tooltip--center-left .psv-tooltip-arrow,.psv-tooltip--left-bottom .psv-tooltip-arrow,.psv-tooltip--left-top .psv-tooltip-arrow{border-left-color:rgba(61,61,61,.8)}.psv-tooltip--center-right,.psv-tooltip--right-bottom,.psv-tooltip--right-top{transform:translate3d(-5px,0,0)}.psv-tooltip--center-right .psv-tooltip-arrow,.psv-tooltip--right-bottom .psv-tooltip-arrow,.psv-tooltip--right-top .psv-tooltip-arrow{border-right-color:rgba(61,61,61,.8)}.psv-tooltip--left-top,.psv-tooltip--top-left{box-shadow:-3px -3px 0 rgba(90,90,90,.7)}.psv-tooltip--top-center{box-shadow:0 -3px 0 rgba(90,90,90,.7)}.psv-tooltip--right-top,.psv-tooltip--top-right{box-shadow:3px -3px 0 rgba(90,90,90,.7)}.psv-tooltip--bottom-left,.psv-tooltip--left-bottom{box-shadow:-3px 3px 0 rgba(90,90,90,.7)}.psv-tooltip--bottom-center{box-shadow:0 3px 0 rgba(90,90,90,.7)}.psv-tooltip--bottom-right,.psv-tooltip--right-bottom{box-shadow:3px 3px 0 rgba(90,90,90,.7)}.psv-tooltip--center-left{box-shadow:-3px 0 0 rgba(90,90,90,.7)}.psv-tooltip--center-right{box-shadow:3px 0 0 rgba(90,90,90,.7)}.psv-tooltip--visible{opacity:1;transform:translateZ(0)}',""]);const o=r},4182:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,'/*!\n * vue-treeselect v0.4.0 | (c) 2017-2019 Riophae Lee\n * Released under the MIT License.\n * https://vue-treeselect.js.org/\n */.vue-treeselect-helper-hide{display:none}.vue-treeselect-helper-zoom-effect-off{transform:none!important}@keyframes vue-treeselect-animation-fade-in{0%{opacity:0}}@keyframes vue-treeselect-animation-bounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}@keyframes vue-treeselect-animation-rotate{to{transform:rotate(1turn)}}.vue-treeselect__multi-value-item--transition-enter-active,.vue-treeselect__multi-value-item--transition-leave-active{transition-duration:.2s;transition-property:transform,opacity}.vue-treeselect__multi-value-item--transition-enter-active{transition-timing-function:cubic-bezier(.075,.82,.165,1)}.vue-treeselect__multi-value-item--transition-leave-active{position:absolute;transition-timing-function:cubic-bezier(.215,.61,.355,1)}.vue-treeselect__multi-value-item--transition-enter,.vue-treeselect__multi-value-item--transition-leave-to{opacity:0;transform:scale(.7)}.vue-treeselect__multi-value-item--transition-move{transition:transform .2s cubic-bezier(.165,.84,.44,1)}.vue-treeselect{position:relative;text-align:left}[dir=rtl] .vue-treeselect{text-align:right}.vue-treeselect div,.vue-treeselect span{box-sizing:border-box}.vue-treeselect svg{fill:currentColor}.vue-treeselect__control{background:#fff;border:1px solid #ddd;border-radius:5px;display:table;height:36px;padding-left:5px;padding-right:5px;table-layout:fixed;transition-duration:.2s;transition-property:border-color,box-shadow,width,height,background-color,opacity;transition-timing-function:cubic-bezier(.215,.61,.355,1);width:100%}.vue-treeselect:not(.vue-treeselect--disabled):not(.vue-treeselect--focused) .vue-treeselect__control:hover{border-color:#cfcfcf}.vue-treeselect--focused:not(.vue-treeselect--open) .vue-treeselect__control{border-color:#039be5;box-shadow:0 0 0 3px rgba(3,155,229,.1)}.vue-treeselect--disabled .vue-treeselect__control{background-color:#f9f9f9}.vue-treeselect--open .vue-treeselect__control{border-color:#cfcfcf}.vue-treeselect--open.vue-treeselect--open-below .vue-treeselect__control{border-bottom-left-radius:0;border-bottom-right-radius:0}.vue-treeselect--open.vue-treeselect--open-above .vue-treeselect__control{border-top-left-radius:0;border-top-right-radius:0}.vue-treeselect__multi-value,.vue-treeselect__value-container{vertical-align:middle;width:100%}.vue-treeselect__value-container{display:table-cell;position:relative}.vue-treeselect--searchable:not(.vue-treeselect--disabled) .vue-treeselect__value-container{cursor:text}.vue-treeselect__multi-value{display:inline-block}.vue-treeselect--has-value .vue-treeselect__multi-value{margin-bottom:5px}.vue-treeselect__placeholder,.vue-treeselect__single-value{bottom:0;left:0;line-height:34px;overflow:hidden;padding-left:5px;padding-right:5px;pointer-events:none;position:absolute;right:0;text-overflow:ellipsis;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.vue-treeselect__placeholder{color:#bdbdbd}.vue-treeselect__single-value{color:#333}.vue-treeselect--focused.vue-treeselect--searchable .vue-treeselect__single-value{color:#bdbdbd}.vue-treeselect--disabled .vue-treeselect__single-value{position:static}.vue-treeselect__multi-value-item-container{display:inline-block;padding-right:5px;padding-top:5px;vertical-align:top}[dir=rtl] .vue-treeselect__multi-value-item-container{padding-left:5px;padding-right:0}.vue-treeselect__multi-value-item{border:1px solid transparent;border-radius:2px;display:inline-table;font-size:12px;padding:2px 0;vertical-align:top}.vue-treeselect:not(.vue-treeselect--disabled) .vue-treeselect__multi-value-item:not(.vue-treeselect__multi-value-item-disabled):hover .vue-treeselect__multi-value-item:not(.vue-treeselect__multi-value-item-new) .vue-treeselect__multi-value-item:not(.vue-treeselect__multi-value-item-new):hover,.vue-treeselect__multi-value-item{background:#e3f2fd;color:#039be5;cursor:pointer}.vue-treeselect__multi-value-item.vue-treeselect__multi-value-item-disabled{background:#f5f5f5;color:#757575;cursor:default}.vue-treeselect--disabled .vue-treeselect__multi-value-item{background:#fff;border-color:#e5e5e5;color:#555;cursor:default}.vue-treeselect__multi-value-item.vue-treeselect__multi-value-item-new,.vue-treeselect__multi-value-item.vue-treeselect__multi-value-item-new:hover{background:#e8f5e9}.vue-treeselect__multi-value-label,.vue-treeselect__value-remove{display:table-cell;padding:0 5px;vertical-align:middle}.vue-treeselect__value-remove{border-left:1px solid #fff;color:#039be5;line-height:0;padding-left:5px}[dir=rtl] .vue-treeselect__value-remove{border-left:0;border-right:1px solid #fff}.vue-treeselect__multi-value-item:hover .vue-treeselect__value-remove{color:#e53935}.vue-treeselect--disabled .vue-treeselect__value-remove,.vue-treeselect__multi-value-item-disabled .vue-treeselect__value-remove{display:none}.vue-treeselect__value-remove>svg{height:6px;width:6px}.vue-treeselect__multi-value-label{padding-right:5px;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:pre-line}.vue-treeselect__limit-tip{display:inline-block;padding-right:5px;padding-top:5px;vertical-align:top}[dir=rtl] .vue-treeselect__limit-tip{padding-left:5px;padding-right:0}.vue-treeselect__limit-tip-text{color:#bdbdbd;cursor:default;display:block;font-size:12px;font-weight:600;margin:2px 0;padding:1px 0}.vue-treeselect__input-container{display:block;max-width:100%;outline:none}.vue-treeselect--single .vue-treeselect__input-container{font-size:inherit;height:100%}.vue-treeselect--multi .vue-treeselect__input-container{display:inline-block;font-size:12px;vertical-align:top}.vue-treeselect--searchable .vue-treeselect__input-container{padding-left:5px;padding-right:5px}.vue-treeselect--searchable.vue-treeselect--multi.vue-treeselect--has-value .vue-treeselect__input-container{padding-left:0;padding-top:5px}[dir=rtl] .vue-treeselect--searchable.vue-treeselect--multi.vue-treeselect--has-value .vue-treeselect__input-container{padding-left:5px;padding-right:0}.vue-treeselect--disabled .vue-treeselect__input-container{display:none}.vue-treeselect__input,.vue-treeselect__sizer{font-family:inherit;font-size:inherit;line-height:inherit;margin:0}.vue-treeselect__input{background:none transparent;border:0;box-shadow:none;box-sizing:content-box;line-height:1;margin:0;max-width:100%;outline:none;padding:0;vertical-align:middle}.vue-treeselect__input::-ms-clear{display:none}.vue-treeselect--single .vue-treeselect__input{height:100%;width:100%}.vue-treeselect--multi .vue-treeselect__input{padding-bottom:3px;padding-top:3px}.vue-treeselect--has-value .vue-treeselect__input{line-height:inherit;vertical-align:top}.vue-treeselect__sizer{height:0;left:0;overflow:scroll;position:absolute;top:0;visibility:hidden;white-space:pre}.vue-treeselect__x-container{animation:vue-treeselect-animation-fade-in .2s cubic-bezier(.075,.82,.165,1);color:#ccc;cursor:pointer;display:table-cell;line-height:0;text-align:center;vertical-align:middle;width:20px}.vue-treeselect__x-container:hover{color:#e53935}.vue-treeselect__x{height:8px;width:8px}.vue-treeselect__control-arrow-container{cursor:pointer;display:table-cell;line-height:0;text-align:center;vertical-align:middle;width:20px}.vue-treeselect--disabled .vue-treeselect__control-arrow-container{cursor:default}.vue-treeselect__control-arrow{color:#ccc;height:9px;width:9px}.vue-treeselect:not(.vue-treeselect--disabled) .vue-treeselect__control-arrow-container:hover .vue-treeselect__control-arrow{color:#616161}.vue-treeselect--disabled .vue-treeselect__control-arrow{opacity:.35}.vue-treeselect__control-arrow--rotated{transform:rotate(180deg)}.vue-treeselect__menu-container{left:0;overflow:visible;position:absolute;transition:0s;width:100%}.vue-treeselect--open-below:not(.vue-treeselect--append-to-body) .vue-treeselect__menu-container{top:100%}.vue-treeselect--open-above:not(.vue-treeselect--append-to-body) .vue-treeselect__menu-container{bottom:100%}.vue-treeselect__menu{-webkit-overflow-scrolling:touch;background:#fff;border:1px solid #cfcfcf;cursor:default;display:block;line-height:180%;overflow-x:hidden;overflow-y:auto;padding-bottom:5px;padding-top:5px;position:absolute;width:auto}.vue-treeselect--open-below .vue-treeselect__menu{border-bottom-left-radius:5px;border-bottom-right-radius:5px;border-top-color:#f2f2f2;box-shadow:0 1px 0 rgba(0,0,0,.06);margin-top:-1px;top:0}.vue-treeselect--open-above .vue-treeselect__menu{border-bottom-color:#f2f2f2;border-top-left-radius:5px;border-top-right-radius:5px;bottom:0;margin-bottom:-1px}.vue-treeselect__indent-level-0 .vue-treeselect__option{padding-left:5px}[dir=rtl] .vue-treeselect__indent-level-0 .vue-treeselect__option{padding-left:5px;padding-right:5px}.vue-treeselect__indent-level-0 .vue-treeselect__tip{padding-left:25px}[dir=rtl] .vue-treeselect__indent-level-0 .vue-treeselect__tip{padding-left:5px;padding-right:25px}.vue-treeselect__indent-level-1 .vue-treeselect__option{padding-left:25px}[dir=rtl] .vue-treeselect__indent-level-1 .vue-treeselect__option{padding-left:5px;padding-right:25px}.vue-treeselect__indent-level-1 .vue-treeselect__tip{padding-left:45px}[dir=rtl] .vue-treeselect__indent-level-1 .vue-treeselect__tip{padding-left:5px;padding-right:45px}.vue-treeselect__indent-level-2 .vue-treeselect__option{padding-left:45px}[dir=rtl] .vue-treeselect__indent-level-2 .vue-treeselect__option{padding-left:5px;padding-right:45px}.vue-treeselect__indent-level-2 .vue-treeselect__tip{padding-left:65px}[dir=rtl] .vue-treeselect__indent-level-2 .vue-treeselect__tip{padding-left:5px;padding-right:65px}.vue-treeselect__indent-level-3 .vue-treeselect__option{padding-left:65px}[dir=rtl] .vue-treeselect__indent-level-3 .vue-treeselect__option{padding-left:5px;padding-right:65px}.vue-treeselect__indent-level-3 .vue-treeselect__tip{padding-left:85px}[dir=rtl] .vue-treeselect__indent-level-3 .vue-treeselect__tip{padding-left:5px;padding-right:85px}.vue-treeselect__indent-level-4 .vue-treeselect__option{padding-left:85px}[dir=rtl] .vue-treeselect__indent-level-4 .vue-treeselect__option{padding-left:5px;padding-right:85px}.vue-treeselect__indent-level-4 .vue-treeselect__tip{padding-left:105px}[dir=rtl] .vue-treeselect__indent-level-4 .vue-treeselect__tip{padding-left:5px;padding-right:105px}.vue-treeselect__indent-level-5 .vue-treeselect__option{padding-left:105px}[dir=rtl] .vue-treeselect__indent-level-5 .vue-treeselect__option{padding-left:5px;padding-right:105px}.vue-treeselect__indent-level-5 .vue-treeselect__tip{padding-left:125px}[dir=rtl] .vue-treeselect__indent-level-5 .vue-treeselect__tip{padding-left:5px;padding-right:125px}.vue-treeselect__indent-level-6 .vue-treeselect__option{padding-left:125px}[dir=rtl] .vue-treeselect__indent-level-6 .vue-treeselect__option{padding-left:5px;padding-right:125px}.vue-treeselect__indent-level-6 .vue-treeselect__tip{padding-left:145px}[dir=rtl] .vue-treeselect__indent-level-6 .vue-treeselect__tip{padding-left:5px;padding-right:145px}.vue-treeselect__indent-level-7 .vue-treeselect__option{padding-left:145px}[dir=rtl] .vue-treeselect__indent-level-7 .vue-treeselect__option{padding-left:5px;padding-right:145px}.vue-treeselect__indent-level-7 .vue-treeselect__tip{padding-left:165px}[dir=rtl] .vue-treeselect__indent-level-7 .vue-treeselect__tip{padding-left:5px;padding-right:165px}.vue-treeselect__indent-level-8 .vue-treeselect__option{padding-left:165px}[dir=rtl] .vue-treeselect__indent-level-8 .vue-treeselect__option{padding-left:5px;padding-right:165px}.vue-treeselect__indent-level-8 .vue-treeselect__tip{padding-left:185px}[dir=rtl] .vue-treeselect__indent-level-8 .vue-treeselect__tip{padding-left:5px;padding-right:185px}.vue-treeselect__option{display:table;padding-left:5px;padding-right:5px;table-layout:fixed;width:100%}.vue-treeselect__option--highlight{background:#f5f5f5}.vue-treeselect--single .vue-treeselect__option--selected{background:#e3f2fd;font-weight:600}.vue-treeselect--single .vue-treeselect__option--selected:hover{background:#e3f2fd}.vue-treeselect__option--hide{display:none}.vue-treeselect__option-arrow-container,.vue-treeselect__option-arrow-placeholder{display:table-cell;line-height:0;text-align:center;vertical-align:middle;width:20px}.vue-treeselect__option-arrow-container{cursor:pointer}.vue-treeselect__option-arrow{color:#ccc;display:inline-block;height:9px;transform:rotate(-90deg);transition:transform .2s cubic-bezier(.19,1,.22,1);vertical-align:middle;width:9px}[dir=rtl] .vue-treeselect__option-arrow{transform:rotate(90deg)}.vue-treeselect--branch-nodes-disabled .vue-treeselect__option:hover .vue-treeselect__option-arrow,.vue-treeselect__option-arrow-container:hover .vue-treeselect__option-arrow{color:#616161}.vue-treeselect__option-arrow--rotated,[dir=rtl] .vue-treeselect__option-arrow--rotated{transform:rotate(0)}.vue-treeselect__option-arrow--rotated.vue-treeselect__option-arrow--prepare-enter{transform:rotate(-90deg)!important}[dir=rtl] .vue-treeselect__option-arrow--rotated.vue-treeselect__option-arrow--prepare-enter{transform:rotate(90deg)!important}.vue-treeselect__label-container{color:inherit;cursor:pointer;display:table-cell;display:table;table-layout:fixed;vertical-align:middle;width:100%}.vue-treeselect__option--disabled .vue-treeselect__label-container{color:rgba(0,0,0,.25);cursor:not-allowed}.vue-treeselect__checkbox-container{display:table-cell;height:100%;min-width:20px;text-align:center;vertical-align:middle;width:20px}.vue-treeselect__checkbox{border-radius:2px;border-style:solid;border-width:1px;display:block;height:12px;margin:auto;position:relative;transition:all .2s cubic-bezier(.075,.82,.165,1);width:12px}.vue-treeselect__check-mark,.vue-treeselect__minus-mark{background-repeat:no-repeat;display:block;left:1px;opacity:0;position:absolute;top:1px;transition:all .2s ease}.vue-treeselect__minus-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAIAgMAAAC5YVYYAAAACVBMVEUAAAD///////9zeKVjAAAAAnRSTlMAuLMp9oYAAAAPSURBVAjXY4CDrJUgBAMAGaECJ9dz3BAAAAAASUVORK5CYII=);background-size:8px 8px;height:8px;width:8px}@media (-webkit-min-device-pixel-ratio:1.5),(min-resolution:1.5dppx){.vue-treeselect__minus-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAADFBMVEUAAAD///////////84wDuoAAAAA3RSTlMAyTzPIdReAAAAGUlEQVQI12PAD+b///+Nof7//79gAsLFCwAx/w4blADeeQAAAABJRU5ErkJggg==)}}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.vue-treeselect__minus-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAADFBMVEUAAAD///////////84wDuoAAAAA3RSTlMAyTzPIdReAAAAGUlEQVQI12PAD+b///+Nof7//79gAsLFCwAx/w4blADeeQAAAABJRU5ErkJggg==)}}@media (-webkit-min-device-pixel-ratio:3),(min-resolution:288dpi){.vue-treeselect__minus-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYBAMAAAASWSDLAAAAD1BMVEUAAAD///////////////+PQt5oAAAABHRSTlMAy2EFIuWxUgAAACRJREFUGNNjGBBgJOICBY7KDCoucODEAJSAS6FwUJShGjAQAADBPRGrK2/FhgAAAABJRU5ErkJggg==)}}.vue-treeselect__checkbox--indeterminate>.vue-treeselect__minus-mark{opacity:1}.vue-treeselect__checkbox--disabled .vue-treeselect__minus-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAIAgMAAAC5YVYYAAAACVBMVEUAAADi4uLh4eHOxeSRAAAAAnRSTlMAuLMp9oYAAAAPSURBVAjXY4CDrJUgBAMAGaECJ9dz3BAAAAAASUVORK5CYII=)}@media (-webkit-min-device-pixel-ratio:1.5),(min-resolution:1.5dppx){.vue-treeselect__checkbox--disabled .vue-treeselect__minus-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAADFBMVEUAAADi4uLi4uLh4eE5RQaIAAAAA3RSTlMAyTzPIdReAAAAGUlEQVQI12PAD+b///+Nof7//79gAsLFCwAx/w4blADeeQAAAABJRU5ErkJggg==)}}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.vue-treeselect__checkbox--disabled .vue-treeselect__minus-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAADFBMVEUAAADi4uLi4uLh4eE5RQaIAAAAA3RSTlMAyTzPIdReAAAAGUlEQVQI12PAD+b///+Nof7//79gAsLFCwAx/w4blADeeQAAAABJRU5ErkJggg==)}}@media (-webkit-min-device-pixel-ratio:3),(min-resolution:288dpi){.vue-treeselect__checkbox--disabled .vue-treeselect__minus-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYBAMAAAASWSDLAAAAD1BMVEUAAADh4eHg4ODNzc3h4eEYfw2wAAAABHRSTlMAy2EFIuWxUgAAACRJREFUGNNjGBBgJOICBY7KDCoucODEAJSAS6FwUJShGjAQAADBPRGrK2/FhgAAAABJRU5ErkJggg==)}}.vue-treeselect__check-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAQlBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////8IX9KGAAAAFXRSTlMA8u24NxILB+Tawb6jiH1zRz0xIQIIP3GUAAAAMklEQVQI1y3FtQEAMQDDQD+EGbz/qkEVOpyEOP6PudKjZNSXn4Jm2CKRdBKzSLsFWl8fMG0Bl6Jk1rMAAAAASUVORK5CYII=);background-size:8px 8px;height:8px;transform:scaleY(.125);width:8px}@media (-webkit-min-device-pixel-ratio:1.5),(min-resolution:1.5dppx){.vue-treeselect__check-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAYFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////98JRy6AAAAH3RSTlMAzu4sDenl38fBvo1OMyIdEQrj1cSihX5hYFpHNycIcQOASAAAAF9JREFUGNN9zEcOgDAMRFHTS0LvNfe/JRmHKAIJ/mqeLJn+k9uDtaeUeFnFziGsBucUTirrprfe81RqZ3Bb6hPWeuZwDFOHyf+ig9CCzQ7INBn7bG5kF+QSt13BHNJnF7AaCT4Y+CW7AAAAAElFTkSuQmCC)}}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.vue-treeselect__check-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAYFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////98JRy6AAAAH3RSTlMAzu4sDenl38fBvo1OMyIdEQrj1cSihX5hYFpHNycIcQOASAAAAF9JREFUGNN9zEcOgDAMRFHTS0LvNfe/JRmHKAIJ/mqeLJn+k9uDtaeUeFnFziGsBucUTirrprfe81RqZ3Bb6hPWeuZwDFOHyf+ig9CCzQ7INBn7bG5kF+QSt13BHNJnF7AaCT4Y+CW7AAAAAElFTkSuQmCC)}}@media (-webkit-min-device-pixel-ratio:3),(min-resolution:288dpi){.vue-treeselect__check-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAWlBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////9ZMre9AAAAHXRSTlMA/PiJhGNI9XlEHJB/b2ldV08+Oibk49vPp6QhAYgGBuwAAACCSURBVCjPrdHdDoIwDAXgTWAqCigo/+f9X5OwnoUwtis4V92XNWladUl+rzQPeQJAN2EHxoOnsPn7/oYk8fxBv08Rr/deOH/aZ2Nm8ZJ+s573QGfWKnNuZGzWm3+lv2V3pcU1XQ385/yjmBoM3Z+dXvlbYLLD3ujhTaOM3KaIXvNkFkuSEvYy1LqOAAAAAElFTkSuQmCC)}}.vue-treeselect__checkbox--checked>.vue-treeselect__check-mark{opacity:1;transform:scaleY(1)}.vue-treeselect__checkbox--disabled .vue-treeselect__check-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAP1BMVEUAAADj4+Pf39/h4eHh4eHh4eHk5OTh4eHg4ODi4uLh4eHh4eHg4ODh4eHh4eHg4ODh4eHh4eHp6en////h4eFqcyvUAAAAFHRSTlMAOQfy7bgS5NrBvqOIfXNHMSELAgQ/iFsAAAA2SURBVAjXY4AANjYIzcjMAaVFuBkY+RkEWERYmRjYRXjANAOfiIgIFxNIAa8IpxBEi6AwiAQAK2MBd7xY8csAAAAASUVORK5CYII=)}@media (-webkit-min-device-pixel-ratio:1.5),(min-resolution:1.5dppx){.vue-treeselect__checkbox--disabled .vue-treeselect__check-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAXVBMVEUAAADh4eHh4eHh4eHi4uLb29vh4eHh4eHh4eHh4eHh4eHh4eHh4eHi4uLi4uLj4+Pi4uLk5OTo6Ojh4eHh4eHi4uLg4ODg4ODh4eHg4ODh4eHf39/g4OD////h4eEzIk+wAAAAHnRSTlMAzu6/LA3p5eLZx8ONTjYiHRIKooV+YWBaRzEnCANnm5rnAAAAZElEQVQY033P2wqAIAyA4VWaaWrnc/n+j5mbhBjUf7WPoTD47TJb4i5zTr/sRDRHuyFaoWX7uK/RlbctlPEuyI1f4WY9yQINEkf6rzzo8YIzmUFoCs7J1EjeIaa9bXIEmzl8dgOZEAj/+2IvzAAAAABJRU5ErkJggg==)}}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.vue-treeselect__checkbox--disabled .vue-treeselect__check-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAXVBMVEUAAADh4eHh4eHh4eHi4uLb29vh4eHh4eHh4eHh4eHh4eHh4eHh4eHi4uLi4uLj4+Pi4uLk5OTo6Ojh4eHh4eHi4uLg4ODg4ODh4eHg4ODh4eHf39/g4OD////h4eEzIk+wAAAAHnRSTlMAzu6/LA3p5eLZx8ONTjYiHRIKooV+YWBaRzEnCANnm5rnAAAAZElEQVQY033P2wqAIAyA4VWaaWrnc/n+j5mbhBjUf7WPoTD47TJb4i5zTr/sRDRHuyFaoWX7uK/RlbctlPEuyI1f4WY9yQINEkf6rzzo8YIzmUFoCs7J1EjeIaa9bXIEmzl8dgOZEAj/+2IvzAAAAABJRU5ErkJggg==)}}@media (-webkit-min-device-pixel-ratio:3),(min-resolution:288dpi){.vue-treeselect__checkbox--disabled .vue-treeselect__check-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAUVBMVEUAAADh4eHh4eHh4eHh4eHi4uLi4uLh4eHh4eHh4eHf39/j4+Ph4eHh4eHh4eHg4ODi4uLh4eHh4eHi4uLh4eHh4eHh4eHh4eHh4eH////h4eF3FMFTAAAAGnRSTlMA+/eJhGhfSHE9JBzz5KaQf3pXT0Xbz0I5AYDw8F0AAAB+SURBVCjPrdHbDoMgEEVRKAii1dZe9fz/hxplTiKIT7qfYCWTEEZdUvOwbckNAD2WHeh3brHW5f5EzGQ+iN+b1Gt6KPvtv16Dn6JX9M9ya3/A1yfu5dlyduL6Hec7mXY6ddXLPP2lpABGZ8PWXfYLTJxZekVhhl7eTX24zZPNKXoRC7zQLjUAAAAASUVORK5CYII=)}}.vue-treeselect__checkbox--unchecked{background:#fff;border-color:#e0e0e0}.vue-treeselect__label-container:hover .vue-treeselect__checkbox--unchecked{background:#fff;border-color:#039be5}.vue-treeselect__checkbox--checked,.vue-treeselect__checkbox--indeterminate,.vue-treeselect__label-container:hover .vue-treeselect__checkbox--checked,.vue-treeselect__label-container:hover .vue-treeselect__checkbox--indeterminate{background:#039be5;border-color:#039be5}.vue-treeselect__checkbox--disabled,.vue-treeselect__label-container:hover .vue-treeselect__checkbox--disabled{background-color:#f7f7f7;border-color:#e0e0e0}.vue-treeselect__label{cursor:inherit;display:table-cell;max-width:100%;overflow:hidden;padding-left:5px;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}[dir=rtl] .vue-treeselect__label{padding-left:0;padding-right:5px}.vue-treeselect__count{font-weight:400;margin-left:5px;opacity:.6}[dir=rtl] .vue-treeselect__count{margin-left:0;margin-right:5px}.vue-treeselect__tip{color:#757575;display:table;padding-left:5px;padding-right:5px;table-layout:fixed;width:100%}.vue-treeselect__tip-text{display:table-cell;font-size:12px;overflow:hidden;padding-left:5px;padding-right:5px;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap;width:100%}.vue-treeselect__error-tip .vue-treeselect__retry{color:#039be5;cursor:pointer;font-style:normal;font-weight:600;margin-left:5px;text-decoration:none}[dir=rtl] .vue-treeselect__error-tip .vue-treeselect__retry{margin-left:0;margin-right:5px}.vue-treeselect__icon-container{display:table-cell;line-height:0;text-align:center;vertical-align:middle;width:20px}.vue-treeselect--single .vue-treeselect__icon-container{padding-left:5px}[dir=rtl] .vue-treeselect--single .vue-treeselect__icon-container{padding-left:0;padding-right:5px}.vue-treeselect__icon-warning{background:#fb8c00;border-radius:50%;display:block;height:12px;margin:auto;position:relative;width:12px}.vue-treeselect__icon-warning:after{border-color:#fff;border-style:solid;border-width:5px 0 1px;content:"";display:block;height:1px;left:5px;position:absolute;top:2.5px;width:2px}.vue-treeselect__icon-error{background:#e53935;border-radius:50%;display:block;height:12px;margin:auto;position:relative;width:12px}.vue-treeselect__icon-error:after,.vue-treeselect__icon-error:before{background:#fff;content:"";display:block;position:absolute;transform:rotate(45deg)}.vue-treeselect__icon-error:before{height:2px;left:3px;top:5px;width:6px}.vue-treeselect__icon-error:after{height:6px;left:5px;top:3px;width:2px}.vue-treeselect__icon-loader{animation:vue-treeselect-animation-rotate 1.6s linear infinite;display:block;height:12px;margin:auto;position:relative;text-align:center;width:12px}.vue-treeselect__icon-loader:after,.vue-treeselect__icon-loader:before{animation:vue-treeselect-animation-bounce 1.6s ease-in-out infinite;border-radius:50%;content:"";display:block;height:100%;left:0;opacity:.6;position:absolute;top:0;width:100%}.vue-treeselect__icon-loader:before{background:#039be5}.vue-treeselect__icon-loader:after{animation-delay:-.8s;background:#b3e5fc}.vue-treeselect__menu-placeholder{display:none}.vue-treeselect__portal-target{border:0;box-sizing:border-box;display:block;height:0;left:0;margin:0;overflow:visible;padding:0;position:absolute;top:0;width:0}',""]);const o=r},412:(t,e,n)=>{"use strict";n.d(e,{A:()=>A});var i=n(6314),r=n.n(i),o=n(4417),a=n.n(o),s=n(4114),l=n.n(s),c=n(891),u=n.n(c),d=n(8566),h=n.n(d),p=n(540),f=n.n(p),m=n(8593),v=n.n(m),g=n(8501),b=n.n(g),y=n(3402),_=n.n(y),w=r()((function(t){return t[1]})),x=a()(l()),C=a()(u()),S=a()(h()),E=a()(f()),T=a()(v()),O=a()(b()),k=a()(_());w.push([t.id,".blueimp-gallery,.blueimp-gallery>.slides>.slide>.slide-content{backface-visibility:hidden;-moz-backface-visibility:hidden;bottom:0;left:0;position:absolute;right:0;top:0;transition:opacity .2s linear}.blueimp-gallery>.slides>.slide>.slide-content{height:auto;margin:auto;max-height:100%;max-width:100%;opacity:1;width:auto}.blueimp-gallery{background:#000;direction:ltr;display:none;opacity:0;overflow:hidden;position:fixed;touch-action:pinch-zoom;z-index:999999}.blueimp-gallery-carousel{box-shadow:0 0 4px rgba(0,0,0,.1);margin:1em auto;padding-bottom:56.25%;position:relative;touch-action:pan-y pinch-zoom;z-index:auto}.blueimp-gallery-display{display:block;opacity:1}.blueimp-gallery>.slides{height:100%;overflow:hidden;position:relative}.blueimp-gallery-carousel>.slides{position:absolute}.blueimp-gallery>.slides>.slide{float:left;height:100%;position:relative;text-align:center;transition-timing-function:cubic-bezier(.645,.045,.355,1)}.blueimp-gallery>.slides>.slide-loading{background:url("+x+") 50% no-repeat;background-size:64px 64px}.blueimp-gallery>.slides>.slide-loading>.slide-content{opacity:0}.blueimp-gallery>.slides>.slide-error{background:url("+C+") 50% no-repeat}.blueimp-gallery>.slides>.slide-error>.slide-content{display:none}.blueimp-gallery>.next,.blueimp-gallery>.prev{background:#222;background:rgba(0,0,0,.5);border:3px solid #fff;border-radius:23px;box-sizing:content-box;color:#fff;cursor:pointer;display:none;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:60px;font-weight:100;height:40px;left:15px;line-height:30px;margin-top:-23px;opacity:.5;position:absolute;text-align:center;text-decoration:none;text-shadow:0 0 2px #000;top:50%;width:40px}.blueimp-gallery>.next{left:auto;right:15px}.blueimp-gallery>.close,.blueimp-gallery>.title{color:#fff;display:none;font-size:20px;left:15px;line-height:30px;margin:0 40px 0 0;opacity:.8;position:absolute;text-shadow:0 0 2px #000;top:15px}.blueimp-gallery>.close{cursor:pointer;font-size:30px;left:auto;margin:-15px;padding:15px;right:15px;text-decoration:none}.blueimp-gallery>.play-pause{background:url("+S+") 0 0 no-repeat;bottom:15px;cursor:pointer;display:none;height:15px;opacity:.5;position:absolute;right:15px;width:15px}.blueimp-gallery-playing>.play-pause{background-position:-15px 0}.blueimp-gallery-controls>.close,.blueimp-gallery-controls>.next,.blueimp-gallery-controls>.play-pause,.blueimp-gallery-controls>.prev,.blueimp-gallery-controls>.title{display:block;transform:translateZ(0)}.blueimp-gallery-left>.prev,.blueimp-gallery-right>.next,.blueimp-gallery-single>.next,.blueimp-gallery-single>.play-pause,.blueimp-gallery-single>.prev{display:none}.blueimp-gallery>.close,.blueimp-gallery>.next,.blueimp-gallery>.play-pause,.blueimp-gallery>.prev,.blueimp-gallery>.slides>.slide>.slide-content{-webkit-user-select:none;-moz-user-select:none;user-select:none}.blueimp-gallery>.close:hover,.blueimp-gallery>.next:hover,.blueimp-gallery>.play-pause:hover,.blueimp-gallery>.prev:hover,.blueimp-gallery>.title:hover{color:#fff;opacity:1}body:last-child .blueimp-gallery>.slides>.slide-error{background-image:url("+E+")}body:last-child .blueimp-gallery>.play-pause{background-image:url("+T+');background-size:40px 20px;height:20px;width:20px}body:last-child .blueimp-gallery-playing>.play-pause{background-position:-20px 0}*+html .blueimp-gallery>.slides>.slide{min-height:300px}*+html .blueimp-gallery>.slides>.slide>.slide-content{position:relative}@media (prefers-color-scheme:light){.blueimp-gallery-carousel{background:#fff}}.blueimp-gallery>.indicator{bottom:15px;display:none;left:15px;line-height:10px;list-style:none;margin:0 40px;padding:0;position:absolute;right:15px;text-align:center;top:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.blueimp-gallery>.indicator>li{background:#ccc;background:hsla(0,0%,100%,.25) 50% no-repeat;border:1px solid transparent;border-radius:5px;box-shadow:0 0 2px #000;box-sizing:content-box;cursor:pointer;display:inline-block;height:9px;margin:6px 3px 0;opacity:.5;position:relative;width:9px}*+html .blueimp-gallery>.indicator>li{display:inline}.blueimp-gallery>.indicator>.active,.blueimp-gallery>.indicator>li:hover{background-color:#fff;border-color:#fff;opacity:1}.blueimp-gallery>.indicator>li:after{content:"";display:block;height:75px;left:4px;opacity:0;pointer-events:none;position:absolute;top:-5em;transform:translateX(-50%) translateY(0) translateZ(0);transition:transform .6s ease-out,opacity .4s ease-out;width:75px}.blueimp-gallery>.indicator>li:hover:after{background:inherit;border-radius:50%;opacity:1;transform:translateX(-50%) translateY(-5px) translateZ(0)}.blueimp-gallery>.indicator>.active:after{display:none}.blueimp-gallery-controls>.indicator{display:block;transform:translateZ(0)}.blueimp-gallery-single>.indicator{display:none}.blueimp-gallery>.slides>.slide>.video-content>img{backface-visibility:hidden;-moz-backface-visibility:hidden;bottom:0;height:auto;left:0;margin:auto;max-height:100%;max-width:100%;position:absolute;right:0;top:0;width:100%}.blueimp-gallery>.slides>.slide>.video-content>video{display:none;height:100%;left:0;position:absolute;top:0;width:100%}.blueimp-gallery>.slides>.slide>.video-content>iframe{border:none;height:100%;left:0;position:absolute;top:100%;width:100%}.blueimp-gallery>.slides>.slide>.video-playing>iframe{top:0}.blueimp-gallery>.slides>.slide>.video-content>a{background:url('+O+") 50% no-repeat;cursor:pointer;height:128px;left:0;margin:-64px auto 0;opacity:.8;position:absolute;right:0;top:50%;width:128px}.blueimp-gallery>.slides>.slide>.video-playing>a,.blueimp-gallery>.slides>.slide>.video-playing>img{display:none}.blueimp-gallery>.slides>.slide>.video-playing>video{display:block}.blueimp-gallery>.slides>.slide>.video-loading>a{background:url("+x+") 50% no-repeat;background-size:64px 64px}*+html .blueimp-gallery>.slides>.slide>.video-content{height:100%}*+html .blueimp-gallery>.slides>.slide>.video-content>a{left:50%;margin-left:-64px}.blueimp-gallery>.slides>.slide>.video-content>a:hover{opacity:1}body:last-child .blueimp-gallery>.slides>.slide>.video-content:not(.video-loading)>a{background-image:url("+k+")}",""]);const A=w},9635:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,'@charset "UTF-8";.swal2-popup.swal2-toast{align-items:center;box-shadow:0 0 .625em #d9d9d9;flex-direction:row;overflow-y:hidden;padding:.625em;width:auto}.swal2-popup.swal2-toast .swal2-header{flex-direction:row}.swal2-popup.swal2-toast .swal2-title{flex-grow:1;font-size:1em;justify-content:flex-start;margin:0 .6em}.swal2-popup.swal2-toast .swal2-footer{font-size:.8em;margin:.5em 0 0;padding:.5em 0 0}.swal2-popup.swal2-toast .swal2-close{height:.8em;line-height:.8;position:static;width:.8em}.swal2-popup.swal2-toast .swal2-content{font-size:1em;justify-content:flex-start}.swal2-popup.swal2-toast .swal2-icon{height:2em;margin:0;min-width:2em;width:2em}.swal2-popup.swal2-toast .swal2-icon:before{align-items:center;display:flex;font-size:2em;font-weight:700}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.swal2-popup.swal2-toast .swal2-icon:before{font-size:.25em}}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{height:2em;width:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{flex-basis:auto!important;height:auto;margin:0 .3125em;width:auto}.swal2-popup.swal2-toast .swal2-styled{font-size:1em;margin:0 .3125em;padding:.3125em .625em}.swal2-popup.swal2-toast .swal2-styled:focus{box-shadow:0 0 0 .0625em #fff,0 0 0 .125em rgba(50,100,150,.4)}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{border-radius:50%;height:3em;position:absolute;transform:rotate(45deg);width:1.6em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{border-radius:4em 0 0 4em;left:-.5em;top:-.8em;transform:rotate(-45deg);transform-origin:2em 2em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{border-radius:0 4em 4em 0;left:.9375em;top:-.25em;transform-origin:0 1.5em}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{height:2em;width:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{height:2.6875em;left:.4375em;top:0;width:.4375em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{left:.1875em;top:1.125em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{right:.1875em;top:.9375em;width:1.375em}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}.swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-container{-webkit-overflow-scrolling:touch;align-items:center;background-color:transparent;bottom:0;display:flex;flex-direction:row;justify-content:center;left:0;overflow-x:hidden;padding:.625em;position:fixed;right:0;top:0;transition:background-color .1s;z-index:1060}.swal2-container.swal2-top{align-items:flex-start}.swal2-container.swal2-top-left,.swal2-container.swal2-top-start{align-items:flex-start;justify-content:flex-start}.swal2-container.swal2-top-end,.swal2-container.swal2-top-right{align-items:flex-start;justify-content:flex-end}.swal2-container.swal2-center{align-items:center}.swal2-container.swal2-center-left,.swal2-container.swal2-center-start{align-items:center;justify-content:flex-start}.swal2-container.swal2-center-end,.swal2-container.swal2-center-right{align-items:center;justify-content:flex-end}.swal2-container.swal2-bottom{align-items:flex-end}.swal2-container.swal2-bottom-left,.swal2-container.swal2-bottom-start{align-items:flex-end;justify-content:flex-start}.swal2-container.swal2-bottom-end,.swal2-container.swal2-bottom-right{align-items:flex-end;justify-content:flex-end}.swal2-container.swal2-bottom-end>:first-child,.swal2-container.swal2-bottom-left>:first-child,.swal2-container.swal2-bottom-right>:first-child,.swal2-container.swal2-bottom-start>:first-child,.swal2-container.swal2-bottom>:first-child{margin-top:auto}.swal2-container.swal2-grow-fullscreen>.swal2-modal{align-self:stretch;display:flex!important;flex:1;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{align-content:center;display:flex!important;flex:1;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{align-content:center;display:flex!important;flex:1;justify-content:center}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.swal2-container .swal2-modal{margin:0!important}}.swal2-container.swal2-shown{background-color:rgba(0,0,0,.4)}.swal2-popup{background:#fff;border:none;border-radius:.3125em;box-sizing:border-box;display:none;flex-direction:column;font-family:inherit;font-size:1rem;justify-content:center;max-width:100%;padding:1.25em;position:relative;width:32em}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-header{align-items:center;display:flex;flex-direction:column}.swal2-title{word-wrap:break-word;color:#595959;font-size:1.875em;font-weight:600;margin:0 0 .4em;max-width:100%;padding:0;position:relative;text-align:center;text-transform:none}.swal2-actions{align-items:center;display:flex;flex-wrap:wrap;justify-content:center;margin:1.25em auto 0;width:100%;z-index:1}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-actions.swal2-loading .swal2-styled.swal2-confirm{animation:swal2-rotate-loading 1.5s linear 0s infinite normal;background-color:transparent!important;border:.25em solid transparent;border-radius:100%;box-sizing:border-box;color:transparent;cursor:default;height:2.5em;margin:.46875em;padding:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:2.5em}.swal2-actions.swal2-loading .swal2-styled.swal2-cancel{margin-left:30px;margin-right:30px}.swal2-actions.swal2-loading :not(.swal2-styled).swal2-confirm:after{animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border:3px solid #999;border-radius:50%;border-right-color:transparent;box-shadow:1px 1px 1px #fff;content:"";display:inline-block;height:15px;margin-left:5px;width:15px}.swal2-styled{box-shadow:none;font-weight:500;margin:.3125em;padding:.625em 2em}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{background:initial;background-color:#3085d6}.swal2-styled.swal2-cancel,.swal2-styled.swal2-confirm{border:0;border-radius:.25em;color:#fff;font-size:1.0625em}.swal2-styled.swal2-cancel{background:initial;background-color:#aaa}.swal2-styled:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(50,100,150,.4);outline:0}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{border-top:1px solid #eee;color:#545454;font-size:1em;justify-content:center;margin:1.25em 0 0;padding:1em 0 0}.swal2-image{margin:1.25em auto;max-width:100%}.swal2-close{background:0 0;border:none;border-radius:0;color:#ccc;cursor:pointer;font-family:serif;font-size:2.5em;height:1.2em;justify-content:center;line-height:1.2;outline:initial;overflow:hidden;padding:0;position:absolute;right:0;top:0;transition:color .1s ease-out;width:1.2em;z-index:2}.swal2-close:hover{background:0 0;color:#f27474;transform:none}.swal2-content{word-wrap:break-word;color:#545454;font-size:1.125em;font-weight:400;justify-content:center;line-height:normal;margin:0;padding:0;text-align:center;z-index:1}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em auto}.swal2-file,.swal2-input,.swal2-textarea{background:inherit;border:1px solid #d9d9d9;border-radius:.1875em;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);box-sizing:border-box;color:inherit;font-size:1.125em;transition:border-color .3s,box-shadow .3s;width:100%}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;box-shadow:0 0 3px #c4e6f5;outline:0}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{background:inherit;margin:1em auto}.swal2-range input{width:80%}.swal2-range output{color:inherit;font-weight:600;text-align:center;width:20%}.swal2-range input,.swal2-range output{font-size:1.125em;height:2.625em;line-height:2.625em;padding:0}.swal2-input{height:2.625em;padding:0 .75em}.swal2-input[type=number]{max-width:10em}.swal2-file{background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{background:inherit;color:inherit;font-size:1.125em;max-width:100%;min-width:50%;padding:.375em .625em}.swal2-checkbox,.swal2-radio{align-items:center;background:inherit;color:inherit;justify-content:center}.swal2-checkbox label,.swal2-radio label{font-size:1.125em;margin:0 .6em}.swal2-checkbox input,.swal2-radio input{margin:0 .4em}.swal2-validation-message{align-items:center;background:#f0f0f0;color:#666;display:none;font-size:1em;font-weight:300;justify-content:center;overflow:hidden;padding:.625em}.swal2-validation-message:before{background-color:#f27474;border-radius:50%;color:#fff;content:"!";display:inline-block;font-weight:600;height:1.5em;line-height:1.5em;margin:0 .625em;min-width:1.5em;text-align:center;width:1.5em}.swal2-icon{border:.25em solid transparent;border-radius:50%;box-sizing:content-box;cursor:default;font-family:inherit;height:5em;justify-content:center;line-height:5em;margin:1.25em auto 1.875em;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:5em}.swal2-icon:before{align-items:center;display:flex;font-size:3.75em;height:92%}.swal2-icon.swal2-error{border-color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{flex-grow:1;position:relative}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{background-color:#f27474;border-radius:.125em;display:block;height:.3125em;position:absolute;top:2.3125em;width:2.9375em}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning:before{content:"!"}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info:before{content:"i"}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question:before{content:"?"}.swal2-icon.swal2-question.swal2-arabic-question-mark:before{content:"؟"}.swal2-icon.swal2-success{border-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{border-radius:50%;height:7.5em;position:absolute;transform:rotate(45deg);width:3.75em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{border-radius:7.5em 0 0 7.5em;left:-2.0635em;top:-.4375em;transform:rotate(-45deg);transform-origin:3.75em 3.75em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{border-radius:0 7.5em 7.5em 0;left:1.875em;top:-.6875em;transform:rotate(-45deg);transform-origin:0 3.75em}.swal2-icon.swal2-success .swal2-success-ring{border:.25em solid hsla(98,55%,69%,.3);border-radius:50%;box-sizing:content-box;height:100%;left:-.25em;position:absolute;top:-.25em;width:100%;z-index:2}.swal2-icon.swal2-success .swal2-success-fix{height:5.625em;left:1.625em;position:absolute;top:.5em;transform:rotate(-45deg);width:.4375em;z-index:1}.swal2-icon.swal2-success [class^=swal2-success-line]{background-color:#a5dc86;border-radius:.125em;display:block;height:.3125em;position:absolute;z-index:2}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{left:.875em;top:2.875em;transform:rotate(45deg);width:1.5625em}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{right:.5em;top:2.375em;transform:rotate(-45deg);width:2.9375em}.swal2-progress-steps{align-items:center;background:inherit;font-weight:600;margin:0 0 1.25em;padding:0}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{background:#3085d6;border-radius:2em;color:#fff;height:2em;line-height:2em;text-align:center;width:2em;z-index:20}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#3085d6}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{background:#3085d6;height:.4em;margin:0 -1px;width:2.5em;z-index:10}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{animation:swal2-show .3s}.swal2-show.swal2-noanimation{animation:none}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-hide.swal2-noanimation{animation:none}.swal2-rtl .swal2-close{left:0;right:auto}.swal2-animate-success-icon .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}.swal2-animate-success-icon .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}.swal2-animate-success-icon .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-animate-error-icon{animation:swal2-animate-error-icon .5s}.swal2-animate-error-icon .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-moz-document url-prefix(){.swal2-close:focus{outline:2px solid rgba(50,100,150,.4)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotate(2deg)}33%{transform:translateY(0) rotate(-2deg)}66%{transform:translateY(.3125em) rotate(2deg)}to{transform:translateY(0) rotate(0)}}@keyframes swal2-toast-hide{to{opacity:0;transform:rotate(1deg)}}@keyframes swal2-toast-animate-success-line-tip{0%{left:.0625em;top:.5625em;width:0}54%{left:.125em;top:.125em;width:0}70%{left:-.25em;top:.625em;width:1.625em}84%{left:.75em;top:1.0625em;width:.5em}to{left:.1875em;top:1.125em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{right:1.375em;top:1.625em;width:0}65%{right:.9375em;top:1.25em;width:0}84%{right:0;top:.9375em;width:1.125em}to{right:.1875em;top:.9375em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}to{transform:scale(1)}}@keyframes swal2-hide{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.5)}}@keyframes swal2-animate-success-line-tip{0%{left:.0625em;top:1.1875em;width:0}54%{left:.125em;top:1.0625em;width:0}70%{left:-.375em;top:2.1875em;width:3.125em}84%{left:1.3125em;top:3em;width:1.0625em}to{left:.875em;top:2.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{right:2.875em;top:3.375em;width:0}65%{right:2.875em;top:3.375em;width:0}84%{right:0;top:2.1875em;width:3.4375em}to{right:.5em;top:2.375em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}to{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;opacity:0;transform:scale(.4)}50%{margin-top:1.625em;opacity:0;transform:scale(.4)}80%{margin-top:-.375em;transform:scale(1.15)}to{margin-top:0;opacity:1;transform:scale(1)}}@keyframes swal2-animate-error-icon{0%{opacity:0;transform:rotateX(100deg)}to{opacity:1;transform:rotateX(0)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}to{transform:rotate(1turn)}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-shown{background-color:transparent;bottom:auto;left:auto;max-width:calc(100% - 1.25em);right:auto;top:auto}body.swal2-no-backdrop .swal2-shown>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-shown.swal2-top{left:50%;top:0;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-top-left,body.swal2-no-backdrop .swal2-shown.swal2-top-start{left:0;top:0}body.swal2-no-backdrop .swal2-shown.swal2-top-end,body.swal2-no-backdrop .swal2-shown.swal2-top-right{right:0;top:0}body.swal2-no-backdrop .swal2-shown.swal2-center{left:50%;top:50%;transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-shown.swal2-center-left,body.swal2-no-backdrop .swal2-shown.swal2-center-start{left:0;top:50%;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-center-end,body.swal2-no-backdrop .swal2-shown.swal2-center-right{right:0;top:50%;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-bottom{bottom:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-bottom-left,body.swal2-no-backdrop .swal2-shown.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-shown.swal2-bottom-end,body.swal2-no-backdrop .swal2-shown.swal2-bottom-right{bottom:0;right:0}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container,body.swal2-toast-shown .swal2-container.swal2-shown{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{bottom:auto;left:50%;right:auto;top:0;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{bottom:auto;left:auto;right:0;top:0}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{bottom:auto;left:0;right:auto;top:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{bottom:auto;left:0;right:auto;top:50%;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{bottom:auto;left:50%;right:auto;top:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{bottom:auto;left:auto;right:0;top:50%;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{bottom:0;left:0;right:auto;top:auto}body.swal2-toast-shown .swal2-container.swal2-bottom{bottom:0;left:50%;right:auto;top:auto;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{bottom:0;left:auto;right:0;top:auto}body.swal2-toast-column .swal2-toast{align-items:stretch;flex-direction:column}body.swal2-toast-column .swal2-toast .swal2-actions{align-self:stretch;flex:1;height:2.2em;margin-top:.3125em}body.swal2-toast-column .swal2-toast .swal2-loading{justify-content:center}body.swal2-toast-column .swal2-toast .swal2-input{font-size:1em;height:2em;margin:.3125em auto}body.swal2-toast-column .swal2-toast .swal2-validation-message{font-size:1em}',""]);const o=r},6555:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".vue-advanced-cropper{direction:ltr;max-height:100%;max-width:100%;position:relative;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-advanced-cropper__stretcher{max-height:100%;max-width:100%;pointer-events:none;position:relative}.vue-advanced-cropper__image{max-width:none!important;position:absolute;transform-origin:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{background:#000;left:50%;opacity:1;position:absolute;top:50%;transform:translate(-50%,-50%)}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{left:50%;opacity:1;position:absolute;top:50%;transform:translate(-50%,-50%)}.vue-advanced-cropper__cropper-wrapper{height:100%;width:100%}.vue-advanced-cropper__image-wrapper{height:100%;overflow:hidden;position:absolute;width:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-draggable-area{position:relative}.vue-bounding-box{height:100%;position:relative;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-handler-wrapper{height:30px;position:absolute;transform:translate(-50%,-50%);width:30px}.vue-handler-wrapper__draggable{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-preview-result{box-sizing:border-box;height:100%;overflow:hidden;position:absolute;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{max-width:none!important;pointer-events:none;position:relative;transform-origin:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-line-wrapper{align-items:center;background:0 0;display:flex;justify-content:center;position:absolute}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;left:0;transform:translateY(-50%);width:100%}.vue-line-wrapper--north{cursor:n-resize;top:0}.vue-line-wrapper--south{cursor:s-resize;top:100%}.vue-line-wrapper--east,.vue-line-wrapper--west{height:100%;top:0;transform:translateX(-50%);width:12px}.vue-line-wrapper--east{cursor:e-resize;left:100%}.vue-line-wrapper--west{cursor:w-resize;left:0}.vue-line-wrapper--disabled{cursor:auto}.vue-simple-line{background:0 0;border:0 solid hsla(0,0%,100%,.3);transition:border .5s}.vue-simple-line--north,.vue-simple-line--south{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{border-color:#fff;opacity:1}.vue-simple-handler{background:#fff;display:block;height:10px;width:10px}.vue-preview{box-sizing:border-box;overflow:hidden;position:relative}.vue-preview--fill,.vue-preview__wrapper{height:100%;position:absolute;width:100%}.vue-preview__image{max-width:none!important;pointer-events:none;position:absolute;transform-origin:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-rectangle-stencil{box-sizing:border-box}.vue-rectangle-stencil,.vue-rectangle-stencil__preview{height:100%;position:absolute;width:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-circle-stencil{box-sizing:content-box;cursor:move;height:100%;position:absolute;width:100%}.vue-circle-stencil__preview{border-radius:50%;height:100%;position:absolute;width:100%}.vue-circle-stencil--movable{cursor:move}",""]);const o=r},3919:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,"fieldset[disabled] .vue-swatches{pointer-events:none}.vue-swatches{outline:none;position:relative}.vue-swatches__trigger{cursor:pointer;display:inline-block}.vue-swatches__trigger.vue-swatches--is-empty{border:2px solid #ccc}.vue-swatches__trigger.vue-swatches--is-disabled{cursor:not-allowed}.vue-swatches__container{box-sizing:content-box;padding:5px}.vue-swatches__container:not(.vue-swatches--inline){border-radius:5px;box-shadow:0 2px 3px hsla(0,0%,4%,.2),0 0 0 1px hsla(0,0%,4%,.2);display:block;overflow:auto;position:absolute;z-index:50}.vue-swatches__wrapper{background-color:inherit}.vue-swatches__row{font-size:0}.vue-swatches__fallback__wrapper{display:table}.vue-swatches__fallback__input--wrapper{display:table-cell;font-size:14px;padding-right:10px;width:100%}.vue-swatches__fallback__input{background:#fff;border:1px solid #dcdcdc;border-radius:5px;color:#35495e;padding-bottom:6px;padding-top:6px;width:100%}.vue-swatches__fallback__button{background-color:#3571c8;border:0;border-radius:5px;color:#fff;cursor:pointer;display:table-cell;font-weight:700;padding:6px 15px}.vue-swatches-show-hide-enter-active,.vue-swatches-show-hide-leave-active{transition:all .3s ease}.vue-swatches-show-hide-enter,.vue-swatches-show-hide-leave-active{opacity:0}.vue-swatches--has-children-centered{align-items:center;display:flex;justify-content:center}.vue-swatches__diagonal--wrapper{height:100%;width:100%}.vue-swatches__diagonal{background:linear-gradient(to top right,transparent,transparent calc(50% - 2.4px),#de080a 50%,transparent calc(50% + 2.4px),transparent);height:75%;width:75%}.vue-swatches__swatch{font-size:0;position:relative}.vue-swatches__swatch:focus,.vue-swatches__swatch:hover{box-shadow:inset 0 0 2px rgba(0,0,0,.75);opacity:.9;outline:none}.vue-swatches__swatch.vue-swatches__swatch--border,.vue-swatches__swatch.vue-swatches__swatch--selected{box-shadow:inset 0 0 2px rgba(0,0,0,.75)}.vue-swatches__swatch .vue-swatches__diagonal--wrapper{position:absolute}.vue-swatches__check__wrapper{height:100%;position:absolute;width:100%}.vue-swatches__check__circle{background-color:rgba(0,0,0,.15);border-radius:50%;height:21px;width:21px}.vue-swatches__check__path{fill:#fff}",""]);const o=r},2258:(t,e,n)=>{"use strict";n.d(e,{A:()=>f});var i=n(6314),r=n.n(i),o=n(4417),a=n.n(o),s=n(2408),l=n.n(s),c=n(6999),u=n.n(c),d=r()((function(t){return t[1]})),h=a()(l()),p=a()(u());d.push([t.id,".swiper-container{list-style:none;margin:0 auto;overflow:hidden;padding:0;position:static;z-index:1}.swiper-container-no-flexbox .swiper-slide{float:left}.swiper-container-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{box-sizing:content-box;display:flex;height:100%;position:relative;transition-property:transform;width:100%;z-index:1}.swiper-container-android .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-container-multirow>.swiper-wrapper{flex-wrap:wrap}.swiper-container-free-mode>.swiper-wrapper{margin:0 auto;transition-timing-function:ease-out}.swiper-slide{flex-shrink:0;height:100%;margin-bottom:2rem!important;position:relative;transition-property:transform;width:100%}.swiper-slide-invisible-blank{visibility:hidden}.swiper-container-autoheight,.swiper-container-autoheight .swiper-slide{height:auto}.swiper-container-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-container-3d{perspective:1200px}.swiper-container-3d .swiper-cube-shadow,.swiper-container-3d .swiper-slide,.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top,.swiper-container-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:10}.swiper-container-3d .swiper-slide-shadow-left{background-image:linear-gradient(270deg,rgba(0,0,0,.5),transparent)}.swiper-container-3d .swiper-slide-shadow-right{background-image:linear-gradient(90deg,rgba(0,0,0,.5),transparent)}.swiper-container-3d .swiper-slide-shadow-top{background-image:linear-gradient(0deg,rgba(0,0,0,.5),transparent)}.swiper-container-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(180deg,rgba(0,0,0,.5),transparent)}.swiper-container-wp8-horizontal,.swiper-container-wp8-horizontal>.swiper-wrapper{touch-action:pan-y}.swiper-container-wp8-vertical,.swiper-container-wp8-vertical>.swiper-wrapper{touch-action:pan-x}.swiper-button-next,.swiper-button-prev{background-position:50%;background-repeat:no-repeat;background-size:64px 64px;cursor:pointer;height:64px;margin-top:-22px;position:absolute;top:50%;width:64px;z-index:10}@media only screen and (max-width:767px){.swiper-button-next,.swiper-button-prev{display:none}}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{cursor:auto;opacity:.35;pointer-events:none}.swiper-button-prev,.swiper-container-rtl .swiper-button-next{background-image:url("+h+");left:-3rem;right:auto}.swiper-button-next,.swiper-container-rtl .swiper-button-prev{background-image:url("+p+");left:auto;right:-3rem}.swiper-button-prev.swiper-button-white,.swiper-container-rtl .swiper-button-next.swiper-button-white{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M0 22 22 0l2.1 2.1L4.2 22l19.9 19.9L22 44 0 22z' fill='%23fff'/%3E%3C/svg%3E\")}.swiper-button-next.swiper-button-white,.swiper-container-rtl .swiper-button-prev.swiper-button-white{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M27 22 5 44l-2.1-2.1L22.8 22 2.9 2.1 5 0l22 22z' fill='%23fff'/%3E%3C/svg%3E\")}.swiper-button-prev.swiper-button-black,.swiper-container-rtl .swiper-button-next.swiper-button-black{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M0 22 22 0l2.1 2.1L4.2 22l19.9 19.9L22 44 0 22z'/%3E%3C/svg%3E\")}.swiper-button-next.swiper-button-black,.swiper-container-rtl .swiper-button-prev.swiper-button-black{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M27 22 5 44l-2.1-2.1L22.8 22 2.9 2.1 5 0l22 22z'/%3E%3C/svg%3E\")}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transform:translateZ(0);transition:opacity .3s;z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-container-horizontal>.swiper-pagination-bullets,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:10px;left:0;width:100%}.swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{position:relative;transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{background:#000;border-radius:100%;display:inline-block;height:8px;opacity:.2;width:8px}button.swiper-pagination-bullet{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;box-shadow:none;margin:0;padding:0}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet-active{background:#000;opacity:1}.swiper-container-vertical>.swiper-pagination-bullets{right:10px;top:50%;transform:translate3d(0,-50%,0)}.swiper-container-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{display:block;margin:6px 0}.swiper-container-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-container-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:transform .2s,top .2s}.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 4px}.swiper-container-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-container-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,left .2s}.swiper-container-horizontal.swiper-container-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.swiper-pagination-progressbar{background:rgba(0,0,0,.25);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:#007aff;height:100%;left:0;position:absolute;top:0;transform:scale(0);transform-origin:left top;width:100%}.swiper-container-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-container-horizontal>.swiper-pagination-progressbar,.swiper-container-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{height:4px;left:0;top:0;width:100%}.swiper-container-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-container-vertical>.swiper-pagination-progressbar{height:100%;left:0;top:0;width:4px}.swiper-pagination-white .swiper-pagination-bullet-active{background:#fff}.swiper-pagination-progressbar.swiper-pagination-white{background:hsla(0,0%,100%,.25)}.swiper-pagination-progressbar.swiper-pagination-white .swiper-pagination-progressbar-fill{background:#fff}.swiper-pagination-black .swiper-pagination-bullet-active{background:#000}.swiper-pagination-progressbar.swiper-pagination-black{background:rgba(0,0,0,.25)}.swiper-pagination-progressbar.swiper-pagination-black .swiper-pagination-progressbar-fill{background:#000}.swiper-pagination-lock{display:none}.swiper-scrollbar{background:rgba(0,0,0,.1);border-radius:10px;position:relative;-ms-touch-action:none}.swiper-container-horizontal>.swiper-scrollbar{bottom:3px;height:5px;left:1%;position:absolute;width:98%;z-index:50}.swiper-container-vertical>.swiper-scrollbar{height:98%;position:absolute;right:3px;top:1%;width:5px;z-index:50}.swiper-scrollbar-drag{background:rgba(0,0,0,.5);border-radius:10px;height:100%;left:0;position:relative;top:0;width:100%}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{align-items:center;display:flex;height:100%;justify-content:center;text-align:center;width:100%}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.swiper-slide-zoomed{cursor:move}.swiper-lazy-preloader{animation:swiper-preloader-spin 1s steps(12) infinite;height:42px;left:50%;margin-left:-21px;margin-top:-21px;position:absolute;top:50%;transform-origin:50%;width:42px;z-index:10}.swiper-lazy-preloader:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cdefs%3E%3Cpath id='a' stroke='%236c6c6c' stroke-width='11' stroke-linecap='round' d='M60 7v20'/%3E%3C/defs%3E%3Cuse xlink:href='%23a' opacity='.27'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(30 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(60 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(90 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(120 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(150 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.37' transform='rotate(180 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.46' transform='rotate(210 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.56' transform='rotate(240 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.66' transform='rotate(270 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.75' transform='rotate(300 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.85' transform='rotate(330 60 60)'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:100%;content:\"\";display:block;height:100%;width:100%}.swiper-lazy-preloader-white:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cdefs%3E%3Cpath id='a' stroke='%23fff' stroke-width='11' stroke-linecap='round' d='M60 7v20'/%3E%3C/defs%3E%3Cuse xlink:href='%23a' opacity='.27'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(30 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(60 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(90 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(120 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(150 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.37' transform='rotate(180 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.46' transform='rotate(210 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.56' transform='rotate(240 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.66' transform='rotate(270 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.75' transform='rotate(300 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.85' transform='rotate(330 60 60)'/%3E%3C/svg%3E\")}@keyframes swiper-preloader-spin{to{transform:rotate(1turn)}}.swiper-container .swiper-notification{left:0;opacity:0;pointer-events:none;position:absolute;top:0;z-index:-1000}.swiper-container-fade.swiper-container-free-mode .swiper-slide{transition-timing-function:ease-out}.swiper-container-fade .swiper-slide{pointer-events:none;transition-property:opacity}.swiper-container-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-fade .swiper-slide-active,.swiper-container-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-cube{overflow:visible}.swiper-container-cube .swiper-slide{backface-visibility:hidden;height:100%;pointer-events:none;transform-origin:0 0;visibility:hidden;width:100%;z-index:1}.swiper-container-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-cube.swiper-container-rtl .swiper-slide{transform-origin:100% 0}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-next,.swiper-container-cube .swiper-slide-next+.swiper-slide,.swiper-container-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-container-cube .swiper-slide-shadow-bottom,.swiper-container-cube .swiper-slide-shadow-left,.swiper-container-cube .swiper-slide-shadow-right,.swiper-container-cube .swiper-slide-shadow-top{backface-visibility:hidden;z-index:0}.swiper-container-cube .swiper-cube-shadow{background:#000;bottom:0;filter:blur(50px);height:100%;left:0;opacity:.6;position:absolute;width:100%;z-index:0}.swiper-container-flip{overflow:visible}.swiper-container-flip .swiper-slide{backface-visibility:hidden;pointer-events:none;z-index:1}.swiper-container-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-flip .swiper-slide-active,.swiper-container-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-flip .swiper-slide-shadow-bottom,.swiper-container-flip .swiper-slide-shadow-left,.swiper-container-flip .swiper-slide-shadow-right,.swiper-container-flip .swiper-slide-shadow-top{backface-visibility:hidden;z-index:0}.swiper-container-coverflow .swiper-wrapper{-ms-perspective:1200px}",""]);const f=d},4627:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".l-wrapper{clear:both;text-align:center}",""]);const o=r},6235:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".table td[data-v-439b10b4],.table th[data-v-439b10b4]{width:12%}.table td[data-v-439b10b4]:first-child,.table th[data-v-439b10b4]:first-child{width:22%}.table td[data-v-439b10b4]:nth-child(2),.table th[data-v-439b10b4]:nth-child(2){width:30%}.table.table-border-bottom[data-v-439b10b4]{margin-bottom:5px}.table.table-border-bottom>tr[data-v-439b10b4]:last-child{border-bottom:1px solid rgba(86,96,115,.2)}",""]);const o=r},6169:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,"ul.multi_uploads li[data-v-23c774f4]{width:17%}.actions[data-v-23c774f4]{text-align:center;width:165px}.is_compatible[data-v-23c774f4]{text-align:center;width:140px}.btn.un-saved[data-v-23c774f4]{animation:pulse-data-v-23c774f4 1.25s cubic-bezier(.66,0,0,1) infinite;box-shadow:0 0 0 0 rgba(18,130,162,.7)}.btn.un-saved[data-v-23c774f4]:hover{animation:none}@keyframes pulse-data-v-23c774f4{to{box-shadow:0 0 0 10px rgba(232,76,61,0)}}",""]);const o=r},3872:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".item-overlay[data-v-1957692c]{background:#eee;height:100%;left:0;opacity:.75;position:absolute;top:0;width:100%;z-index:1000}",""]);const o=r},637:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,'fieldset[disabled] .multiselect{pointer-events:none}.multiselect__spinner{background:#fff;display:block;height:38px;position:absolute;right:1px;top:1px;width:40px}.multiselect__spinner:after,.multiselect__spinner:before{border:2px solid transparent;border-radius:100%;border-top-color:#41b883;box-shadow:0 0 0 1px transparent;content:"";height:16px;left:50%;margin:-8px 0 0 -8px;position:absolute;top:50%;width:16px}.multiselect__spinner:before{animation:spinning 2.4s cubic-bezier(.41,.26,.2,.62);animation-iteration-count:infinite}.multiselect__spinner:after{animation:spinning 2.4s cubic-bezier(.51,.09,.21,.8);animation-iteration-count:infinite}.multiselect__loading-enter-active,.multiselect__loading-leave-active{opacity:1;transition:opacity .4s ease-in-out}.multiselect__loading-enter,.multiselect__loading-leave-active{opacity:0}.multiselect,.multiselect__input,.multiselect__single{font-family:inherit;font-size:16px;touch-action:manipulation}.multiselect{box-sizing:content-box;color:#35495e;display:block;min-height:40px;position:relative;text-align:left;width:100%}.multiselect *{box-sizing:border-box}.multiselect:focus{outline:none}.multiselect--disabled{background:#ededed;opacity:.6;pointer-events:none}.multiselect--active{z-index:50}.multiselect--active:not(.multiselect--above) .multiselect__current,.multiselect--active:not(.multiselect--above) .multiselect__input,.multiselect--active:not(.multiselect--above) .multiselect__tags{border-bottom-left-radius:0;border-bottom-right-radius:0}.multiselect--active .multiselect__select{transform:rotate(180deg)}.multiselect--above.multiselect--active .multiselect__current,.multiselect--above.multiselect--active .multiselect__input,.multiselect--above.multiselect--active .multiselect__tags{border-top-left-radius:0;border-top-right-radius:0}.multiselect__input,.multiselect__single{background:#fff;border:none;border-radius:5px;box-sizing:border-box;display:inline-block;line-height:20px;margin-bottom:8px;min-height:20px;padding:0 0 0 5px;position:relative;transition:border .1s ease;vertical-align:top;width:100%}.multiselect__input::-moz-placeholder{color:#35495e}.multiselect__input::placeholder{color:#35495e}.multiselect__tag~.multiselect__input,.multiselect__tag~.multiselect__single{width:auto}.multiselect__input:hover,.multiselect__single:hover{border-color:#cfcfcf}.multiselect__input:focus,.multiselect__single:focus{border-color:#a8a8a8;outline:none}.multiselect__single{margin-bottom:8px;padding-left:5px}.multiselect__tags-wrap{display:inline}.multiselect__tags{background:#fff;border:1px solid #e8e8e8;border-radius:5px;display:block;font-size:14px;min-height:40px;padding:8px 40px 0 8px}.multiselect__tag{background:#41b883;border-radius:5px;color:#fff;display:inline-block;line-height:1;margin-bottom:5px;margin-right:10px;max-width:100%;overflow:hidden;padding:4px 26px 4px 10px;position:relative;text-overflow:ellipsis;white-space:nowrap}.multiselect__tag-icon{border-radius:5px;bottom:0;cursor:pointer;font-style:normal;font-weight:700;line-height:22px;margin-left:7px;position:absolute;right:0;text-align:center;top:0;transition:all .2s ease;width:22px}.multiselect__tag-icon:after{color:#266d4d;content:"\\D7";font-size:14px}.multiselect__tag-icon:focus,.multiselect__tag-icon:hover{background:#369a6e}.multiselect__tag-icon:focus:after,.multiselect__tag-icon:hover:after{color:#fff}.multiselect__current{border:1px solid #e8e8e8;border-radius:5px;min-height:40px;overflow:hidden;padding:8px 30px 0 12px;white-space:nowrap}.multiselect__current,.multiselect__select{box-sizing:border-box;cursor:pointer;display:block;line-height:16px;margin:0;text-decoration:none}.multiselect__select{height:38px;padding:4px 8px;position:absolute;right:1px;text-align:center;top:1px;transition:transform .2s ease;width:40px}.multiselect__select:before{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 0;color:#999;content:"";margin-top:4px;position:relative;right:0;top:65%}.multiselect__placeholder{color:#adadad;display:inline-block;margin-bottom:10px;padding-top:2px}.multiselect--active .multiselect__placeholder{display:none}.multiselect__content-wrapper{-webkit-overflow-scrolling:touch;background:#fff;border:1px solid #e8e8e8;border-bottom-left-radius:5px;border-bottom-right-radius:5px;border-top:none;display:block;max-height:240px;overflow:auto;position:absolute;width:100%;z-index:50}.multiselect__content{display:inline-block;list-style:none;margin:0;min-width:100%;padding:0;vertical-align:top}.multiselect--above .multiselect__content-wrapper{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;border-top:1px solid #e8e8e8;border-top-left-radius:5px;border-top-right-radius:5px;bottom:100%}.multiselect__content::webkit-scrollbar{display:none}.multiselect__element{display:block}.multiselect__option{cursor:pointer;display:block;line-height:16px;min-height:40px;padding:12px;position:relative;text-decoration:none;text-transform:none;vertical-align:middle;white-space:nowrap}.multiselect__option:after{font-size:13px;line-height:40px;padding-left:20px;padding-right:12px;position:absolute;right:0;top:0}.multiselect__option--highlight{background:#41b883;color:#fff;outline:none}.multiselect__option--highlight:after{background:#41b883;color:#fff;content:attr(data-select)}.multiselect__option--selected{background:#f3f3f3;color:#35495e;font-weight:700}.multiselect__option--selected:after{background:inherit;color:silver;content:attr(data-selected)}.multiselect__option--selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--selected.multiselect__option--highlight:after{background:#ff6a6a;color:#fff;content:attr(data-deselect)}.multiselect--disabled .multiselect__current,.multiselect--disabled .multiselect__select{background:#ededed;color:#a6a6a6}.multiselect__option--disabled{background:#ededed!important;color:#a6a6a6!important;cursor:text;pointer-events:none}.multiselect__option--group{background:#ededed;color:#35495e}.multiselect__option--group.multiselect__option--highlight{background:#35495e;color:#fff}.multiselect__option--group.multiselect__option--highlight:after{background:#35495e}.multiselect__option--disabled.multiselect__option--highlight{background:#dedede}.multiselect__option--group-selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--group-selected.multiselect__option--highlight:after{background:#ff6a6a;color:#fff;content:attr(data-deselect)}.multiselect-enter-active,.multiselect-leave-active{transition:all .15s ease}.multiselect-enter,.multiselect-leave-active{opacity:0}.multiselect__strong{display:inline-block;line-height:20px;margin-bottom:8px;vertical-align:top}[dir=rtl] .multiselect{text-align:right}[dir=rtl] .multiselect__select{left:1px;right:auto}[dir=rtl] .multiselect__tags{padding:8px 8px 0 40px}[dir=rtl] .multiselect__content{text-align:right}[dir=rtl] .multiselect__option:after{left:0;right:auto}[dir=rtl] .multiselect__clear{left:12px;right:auto}[dir=rtl] .multiselect__spinner{left:1px;right:auto}@keyframes spinning{0%{transform:rotate(0)}to{transform:rotate(2turn)}}',""]);const o=r},2840:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".int-pm[data-v-aecbc5e0]{display:flex;text-align:center}.int-pm .int-pm-value[data-v-aecbc5e0]{border-color:#ccc;border-style:solid;border-width:1px 0;padding:0 10px}.int-pm .int-pm-btn[data-v-aecbc5e0]{background-color:#ddd;border:1px solid #ccc;cursor:pointer;padding:5px 10px}.int-pm .int-pm-btn[data-v-aecbc5e0]:hover{background-color:#ccc}.int-pm .int-pm-btn.disabled[data-v-aecbc5e0]{background-color:#eee;color:#777;cursor:not-allowed}.int-pm .int-pm-btn.disabled[data-v-aecbc5e0]:hover{background-color:#eee}.int-pm.int-pm-vertical[data-v-aecbc5e0]{flex-direction:column}.int-pm.int-pm-vertical .int-pm-value[data-v-aecbc5e0]{border-width:0 1px;padding:5px 10px}",""]);const o=r},1030:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".permission-name[data-v-df1d8604]{width:300px}.permission-roles[data-v-df1d8604]{width:350px}",""]);const o=r},9365:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".avatar-upload[data-v-1a0003cf]{float:inherit;min-height:100px;width:auto}",""]);const o=r},9853:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".__vuescroll .__rail-is-vertical{transition:background .5s ease 0s}.__vuescroll.mouseEnter .__rail-is-vertical{background:rgba(1,70,169,.02)!important}",""]);const o=r},3559:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".agent-actions[data-v-c4a8f0a6]{width:130px}#agent-users td[data-v-c4a8f0a6],#agent-users th[data-v-c4a8f0a6]{padding:.75rem .3rem}",""]);const o=r},408:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".user-actions[data-v-2a0f9f75]{width:130px}#client-users td[data-v-2a0f9f75],#client-users th[data-v-2a0f9f75]{padding:.75rem .3rem}",""]);const o=r},9361:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".user-actions[data-v-115ace90]{width:130px}#managed-users td[data-v-115ace90],#managed-users th[data-v-115ace90]{padding:.75rem .3rem}",""]);const o=r},1690:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,'.invoice-slash[data-v-6d58d31a]{display:inline-block;position:relative}.invoice-slash[data-v-6d58d31a]:after{background:#dd1755;border-radius:3px;content:"";display:inline-block;height:18px;left:9px;position:absolute;top:7px;transform:rotate(45deg);width:2px}.image-slash[data-v-6d58d31a]{position:relative}.image-slash[data-v-6d58d31a]:after{background:#dd1755;border-radius:3px;content:"";display:inline-block;height:18px;left:8px;position:absolute;top:-1px;transform:rotate(45deg);width:2px}',""]);const o=r},4598:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".forward-label[data-v-2e9e4b77]{font-size:16px}.forward-btn[data-v-2e9e4b77]{border-radius:4px;color:#fff;margin-bottom:6px;margin-left:5px;padding:3px 0 3px 5px}",""]);const o=r},3013:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".fullscreen-emulation{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important}#pano-overlay{align-items:center;background:radial-gradient(#fff 0,#fdfdfd 16%,#fbfbfb 33%,#f8f8f8 49%,#efefef 66%,#dfdfdf 82%,#bfbfbf 100%);cursor:default;display:flex;flex-direction:column;inset:0;justify-content:center;opacity:.5;position:absolute;z-index:110}#pano-overlay .overlay-image{text-align:center;width:100%}#pano-overlay .overlay-image svg{width:50%}#pano-overlay .overlay-title{color:#000;font:30px sans-serif;margin-top:1em;text-align:center}#pano-overlay .overlay-text{color:rgba(0,0,0,.8);font:20px sans-serif;opacity:.8;text-align:center}@media (orientation:landscape){.overlay-image svg{width:33%}}#pano-wrapper{border-radius:12px;overflow:hidden;position:relative}#pano{background:radial-gradient(#fff 0,#fdfdfd 16%,#fbfbfb 33%,#f8f8f8 49%,#efefef 66%,#dfdfdf 82%,#bfbfbf 100%);position:relative}#pano canvas{left:0;top:0}#controls{background:rgba(61,61,61,.5);bottom:0;height:40px;left:0;padding:0 10px;position:absolute;width:100%}#controls a{color:hsla(0,0%,100%,.7);font-size:20px;padding:5px 0;transform:scale(1);transition:transform .2s ease}#controls a:hover{transform:scale(1.2)}#scene-list{bottom:40px;left:-220px;margin-left:0;max-height:100%;overflow-x:hidden;overflow-y:auto;padding-top:40px;position:absolute;transition:margin-left .5s ease-in-out;width:220px}#scene-list .scenes{border-bottom:1px solid #d5d5d4;margin-bottom:0;padding-left:0;width:100%}#scene-list .scenes a{background-color:rgba(61,61,61,.5);color:hsla(0,0%,100%,.7)}#scene-list .scenes a.current,#scene-list .scenes a:hover{background-color:hsla(216,7%,56%,.58)}.mobile #scene-list{height:100%;left:-100%;padding-top:50px;width:100%}.mobile #scene-list.enabled{margin-left:100%}.mobile #scene-list .scenes{height:100%}#scene-list.enabled{margin-left:220px}#scene-list .scene{display:block;height:30px;width:100%}.mobile #scene-list .scene{height:40px}#scene-list .scene .text{height:100%;line-height:30px;overflow:hidden;padding:0 15px;text-overflow:ellipsis;text-transform:capitalize;white-space:nowrap;width:100%}.mobile #scene-list .scene .text{line-height:40px}#scene-list .scene.current,.no-touch #scene-list .scene:hover{background-color:#677383;background-color:rgba(103,115,131,.8)}",""]);const o=r},7027:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".slide[data-v-c5ebdd0a]{cursor:pointer;margin-right:20px;opacity:.4}.slide[data-v-c5ebdd0a]:last-child{margin-right:0}.slide.active[data-v-c5ebdd0a]{opacity:1}.mobile-swiper .swiper-slide[data-v-c5ebdd0a]{transition:transform .4s}.mobile-swiper .swiper-slide.swiper-slide-next[data-v-c5ebdd0a],.mobile-swiper .swiper-slide.swiper-slide-prev[data-v-c5ebdd0a]{transform:scale(.85)}.thumbs-swiper .swiper-slide[data-v-c5ebdd0a]{margin-bottom:10px!important;margin-right:10px;opacity:1}.thumbs-swiper .swiper-slide[data-v-c5ebdd0a]:not(.swiper-slide-thumb-active){opacity:.4}",""]);const o=r},4108:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,'.invoice-slash[data-v-11b9714c]{display:inline-block;position:relative}.invoice-slash[data-v-11b9714c]:after{background:#dd1755;border-radius:3px;content:"";display:inline-block;height:18px;left:9px;position:absolute;top:7px;transform:rotate(45deg);width:2px}.image-slash[data-v-11b9714c]{position:relative}.image-slash[data-v-11b9714c]:after{background:#dd1755;border-radius:3px;content:"";display:inline-block;height:18px;left:8px;position:absolute;top:-1px;transform:rotate(45deg);width:2px}',""]);const o=r},7114:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".pick_color[data-v-7271a8fa]{float:none}",""]);const o=r},3654:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,'.flip-card[data-v-79a31ea4]{align-self:stretch;min-height:65px;padding:0!important;perspective:1000px;position:relative;width:100%}.flip-card.card-custom[data-v-79a31ea4]{height:var(--card-height);min-height:var(--card-height);width:var(--card-width)}.flip-card.card-custom .stock[data-v-79a31ea4]{border-radius:calc(8px*var(--card-scale));padding:calc(13px*var(--card-scale))}.flip-card.card-custom .stock.plain[data-v-79a31ea4]{line-height:calc(20px*var(--card-scale));padding:calc(10px*var(--card-scale))}.flip-card.card-custom .stock .stock-description[data-v-79a31ea4]{padding:calc(10px*var(--card-scale)) calc(18px*var(--card-scale))}.flip-card.card-custom .stock .stock-description h4[data-v-79a31ea4]{font-size:calc(var(--item-font-size)*var(--card-scale))!important;line-height:calc(var(--card-scale)*1)}.flip-card.card-custom .stock .img-wrapper[data-v-79a31ea4]{margin-bottom:calc(10px*var(--card-scale))}.flip-card.card-custom .stock .plain-stock .stock-name[data-v-79a31ea4]{font-size:calc(var(--plain-item-font-size)*var(--card-scale))!important}.flip-card.card-custom .stock .price[data-v-79a31ea4]{font-size:calc(var(--price-font-size)*var(--card-scale))!important}.flip-card.card-custom .stock-attribute[data-v-79a31ea4]{border-radius:calc(6px*var(--card-scale));font-size:calc(var(--item-font-size)*var(--card-scale))!important;letter-spacing:var(--item-font-spacing);line-height:calc(24px*var(--card-scale));padding:calc(20px*var(--card-scale)) calc(10px*var(--card-scale))}.flip-card.card-custom .stock-attribute.plain[data-v-79a31ea4]{line-height:1em;padding:calc(10px*var(--card-scale))}.flip-card.card-custom .stock-attribute .stock-description[data-v-79a31ea4]{margin-bottom:calc(-10px*var(--card-scale));padding:calc(10px*var(--card-scale)) calc(5px*var(--card-scale))}.flip-card.card-custom .stock-attribute .img-wrapper[data-v-79a31ea4]{margin-top:calc(-10px*var(--card-scale))}.flip-card .flip-description[data-v-79a31ea4]{background:var(--expand-description-button-color);height:20px;position:absolute;right:30px;text-align:center;top:0;width:20px;z-index:2000}.flip-card .flip-description a[data-v-79a31ea4]{color:var(--expand-description-icon-color)}.flip-card.flip.flip-x .front[data-v-79a31ea4]{transform:rotateX(-180deg)}.flip-card.flip.flip-y .front[data-v-79a31ea4]{transform:rotateY(-180deg)}.flip-card.flip.flip-x .back[data-v-79a31ea4]{transform:rotateX(0deg)}.flip-card.flip.flip-y .back[data-v-79a31ea4]{transform:rotateY(0deg)}.flip-card .back[data-v-79a31ea4],.flip-card .front[data-v-79a31ea4]{backface-visibility:hidden;height:100%;transition:transform .4s ease-out;width:100%}.flip-card.col-12 .back[data-v-79a31ea4],.flip-card.col-12 .front[data-v-79a31ea4]{padding:0 15px}.flip-card .front[data-v-79a31ea4]{display:grid;position:relative}.flip-card.flip-x .back[data-v-79a31ea4]{transform:rotateX(180deg)}.flip-card.flip-y .back[data-v-79a31ea4]{transform:rotateY(180deg)}.flip-card .back[data-v-79a31ea4]{display:flex;position:absolute}.stock[data-v-79a31ea4]{background:var(--card-background-color);border:2px solid var(--card-border-color);border-radius:8px;cursor:pointer;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;padding:14px;position:relative;transition:.25s ease-out;width:100%}.stock.active[data-v-79a31ea4]{background:#fff;border:2px solid}.stock.active .stock-name[data-v-79a31ea4]{color:var(--item-active-name-color)!important}.stock.active .price[data-v-79a31ea4]{color:var(--price-active-color)!important}.stock.active.plain[data-v-79a31ea4]{background:var(--plain-item-active-background-color)!important;border-color:var(--plain-item-active-border-color)!important}.stock.active.plain .plain-stock .stock-name[data-v-79a31ea4]{color:var(--plain-item-name-active-color)!important;font-size:var(--plain-item-active-font-size)!important;letter-spacing:var(--plain-item-active-font-spacing)!important}.stock.active.plain .plain-stock .price[data-v-79a31ea4]{color:var(--plain-item-price-active-color)!important;font-size:var(--plain-item-price-active-font-size)!important;letter-spacing:var(--plain-item-price-active-font-spacing)!important}.stock.description[data-v-79a31ea4]{font-size:14px;font-weight:500;line-height:16px;padding:10px;text-align:left;text-transform:none}.stock .stock-description[data-v-79a31ea4]{padding:10px 22px}.stock .stock-description .stock-name[data-v-79a31ea4]{color:var(--item-name-color);font-size:var(--item-font-size)!important;font-weight:500!important;letter-spacing:var(--item-font-spacing);line-height:1.2!important;margin-bottom:1px;margin-top:0!important;text-align:center}.stock .img-wrapper[data-v-79a31ea4]{margin-bottom:10px}.stock .plain-stock .stock-name[data-v-79a31ea4]{color:var(--plain-item-name-color);font-size:var(--plain-item-font-size);letter-spacing:var(--plain-item-font-spacing)}.stock .plain-stock .price[data-v-79a31ea4]{color:var(--plain-item-price-color);font-size:var(--plain-item-price-font-size);letter-spacing:var(--plain-item-price-font-spacing)}.stock .price[data-v-79a31ea4]{color:var(--price-color);font-size:var(--price-font-size);letter-spacing:var(--price-font-spacing)}.stock-attribute[data-v-79a31ea4]{align-items:center;border:1px solid var(--card-border-color);border-radius:6px;color:#000;cursor:pointer;font-size:var(--item-font-size);font-style:normal;font-weight:500;letter-spacing:var(--item-font-spacing);line-height:24px;padding:20px 10px;position:relative;text-align:center;text-transform:capitalize}.stock-attribute.plain[data-v-79a31ea4]{background:var(--plain-item-background-color);border:1px solid var(--plain-item-border-color);justify-content:space-around;line-height:20px;padding:10px}.stock-attribute.active[data-v-79a31ea4]{background:#fff;border:1px solid}.stock-attribute .stock-description[data-v-79a31ea4]{margin-bottom:-10px;padding:10px 5px}.stock-attribute .img-wrapper[data-v-79a31ea4]{margin-top:-10px}.stock-attribute input[data-v-79a31ea4]{display:none}.img-overlay[data-v-79a31ea4]:after{background:transparent;bottom:0;content:"";left:0;position:absolute;right:0;top:0;transition:.25s ease-out;z-index:1001}.img-overlay .stock-description[data-v-79a31ea4]{background:var(--card-description-background-color);border-radius:4px;width:100%}.img-overlay.active[data-v-79a31ea4]{border-color:var(--card-active-border-color)!important}.img-overlay.active[data-v-79a31ea4]:after{background:var(--card-overlay-color)}.img-overlay.active .stock-description[data-v-79a31ea4]{background:var(--card-active-description-background-color);position:relative;z-index:1002}',""]);const o=r},4264:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".image-wrapper img[data-v-b9387cb4]{width:55px!important}",""]);const o=r},7864:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,'.background-setting-wrapper[data-v-7e6351c0]{height:50px}.custom-background[data-v-7e6351c0]{align-items:center;background-repeat:no-repeat;border:1px solid #ccc;display:flex;height:50px;justify-content:center;text-align:center}.custom-background.has-image[data-v-7e6351c0]{cursor:pointer}.custom-background.has-image[data-v-7e6351c0]:after{color:#fff;content:"\\f040";font-family:FontAwesome;font-size:11px;right:5px;top:2px}',""]);const o=r},6371:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".font-select[data-v-3e2782e3]{border:1px solid #ced4da;border-radius:.25rem;height:calc(1.6em + .75rem + 2px);line-height:1.6;padding:.375rem .75rem;width:100%}.font-select .dropdown-menu[data-v-3e2782e3]{color:#495057;font-size:.8rem;font-weight:400}.font-select .dropdown-toggle[data-v-3e2782e3]{color:#495057;display:block;overflow:hidden;text-decoration:none}.font-select .dropdown-toggle[data-v-3e2782e3]:after{font-size:16px;position:absolute;right:0;top:6px;transform:rotate(90deg)}",""]);const o=r},3132:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".query_info_box[data-v-37caa815],.total_bar[data-v-37caa815]{background-color:var(--info-bg);color:var(--info-color)}.total_bar[data-v-37caa815]{background-image:none}.charge_total_box[data-v-37caa815]{background-color:var(--info-bg);color:var(--info-color)}.table_customer .table_fixed tr td[data-v-37caa815],.table_customer .table_fixed tr th[data-v-37caa815]{width:15%}.table_customer table.table[data-v-37caa815]{border-radius:0}.table_customer table.table tbody tr.table-active td[data-v-37caa815],.table_customer table.table th[data-v-37caa815]{background-color:var(--table-bg);color:var(--table-color)}.table_customer table.table tbody tr.table-whitespace[data-v-37caa815]{height:.5rem}.table_customer table.table tbody tr h4[data-v-37caa815]{color:var(--table-color)}",""]);const o=r},3236:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,"table .user-id[data-v-b3af79fe]{width:3%}table .user-active[data-v-b3af79fe],table .user-agents[data-v-b3af79fe],table .user-store[data-v-b3af79fe],table .user-store-live[data-v-b3af79fe],table .user-store-type[data-v-b3af79fe],table .user-subscription[data-v-b3af79fe]{text-align:center}.toggle-agents[data-v-b3af79fe]{font-size:20px}.agent-admins[data-v-b3af79fe],.store-agents[data-v-b3af79fe]{border:1px solid #dddfe3;border-left:3px solid #1282a2}.agent-admins[data-v-b3af79fe]{margin:0 2px}",""]);const o=r},861:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".email-id[data-v-08842d50]{width:50px}.email-store[data-v-08842d50]{width:200px}.email-enquiry[data-v-08842d50]{width:100px}.email-subject[data-v-08842d50],.email-to[data-v-08842d50]{width:25%}.email-date[data-v-08842d50]{width:200px}",""]);const o=r},825:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,"#viewer[data-v-50754dd2]{background:#ccc;border-radius:12px;display:flex;justify-content:center}#viewer .placeholder[data-v-50754dd2]{align-self:center;color:#fff;font-size:30px}.dropzone[data-v-50754dd2]{border:2px solid transparent;border-radius:12px}.dropzone.hover[data-v-50754dd2]{border:2px dashed #1282a2}",""]);const o=r},8500:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,"table .user-id[data-v-ab8def78]{width:3%}table .user-actions[data-v-ab8def78]{text-align:right;width:200px}",""]);const o=r},2678:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".table td[data-v-777b6438],.table th[data-v-777b6438]{padding:2px 6px}",""]);const o=r},7787:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,'.dropdown .dropdown-menu[data-v-dcd3f26e]{border:1px solid #f1f1f3;border-radius:1px;box-shadow:0 16px 32px rgba(0,0,0,.1);margin-top:20px;padding:0;width:300px!important;width:204px!important}.dropdown .dropdown-menu a[data-v-dcd3f26e]{border-bottom:1px solid #f1f1f3;color:#4d565c;float:left;font-size:13px;padding:13px 19px;width:100%}.dropdown .dropdown-menu[data-v-dcd3f26e]:before{background:#fff;border-left:1px solid #f1f1f3;border-radius:1px;border-top:1px solid #f1f1f3;content:"";height:10px;position:absolute;right:13px;top:-5px;transform:rotate(45deg);width:10px}.outline[data-v-dcd3f26e]{background-color:var(--button-outline-background-color)!important;border:1px solid var(--button-outline-border-color)!important;color:var(--button-outline-color)!important}.outline[data-v-dcd3f26e]:hover{background-color:var(--button-outline-background-color--hover)!important;border-color:var(--button-outline-border-color--hover)!important;color:var(--button-outline-color--hover)!important}.custom-control-input:checked~.custom-control-label[data-v-dcd3f26e]:before{background-color:var(--button-background-color);border-color:var(--button-border-color)}.disabled_content[data-v-dcd3f26e]{opacity:.4;pointer-events:none}.pac-container[data-v-dcd3f26e]{z-index:100000!important}.main_store_sec[data-v-dcd3f26e]{overflow:hidden}.store_home .swiper-button-next[data-v-dcd3f26e]{right:-50px}.store_home .swiper-button-prev[data-v-dcd3f26e]{left:-50px}.store_home .swiper-wrapper[data-v-dcd3f26e]{align-items:center}.store_home .swiper-container[data-v-dcd3f26e]{margin:auto;overflow:visible;padding:0!important;position:relative}.store_home .swiper-container .swiper-slide[data-v-dcd3f26e]{transition:transform .4s,left .4s;width:280px!important}.store_home .swiper-container .swiper-slide.swiper-slide-prev[data-v-dcd3f26e]:not(.swiper-slide-visible),.store_home .swiper-container .swiper-slide.swiper-slide-visible[data-v-dcd3f26e]+:not(.swiper-slide-visible){position:relative}@media (min-width:1900px){.store_home .swiper-container[data-v-dcd3f26e]{width:1680px}}@media (min-width:2299.98px){.store_home .swiper-container[data-v-dcd3f26e]{width:1960px}}@media (max-width:1899.98px){.store_home .swiper-container[data-v-dcd3f26e]{width:1400px}}@media (max-width:1459.98px){.store_home .swiper-container[data-v-dcd3f26e]{width:1120px}}@media (max-width:1199.98px){.store_home .swiper-container[data-v-dcd3f26e]{width:840px}}@media (max-width:899.98px){.store_home .swiper-container[data-v-dcd3f26e]{width:560px}}@media (max-width:575.98px){.store_home .swiper-container[data-v-dcd3f26e]{margin-left:0;width:280px}}.store_home .int-pm-decrement[data-v-dcd3f26e],.store_home .int-pm-increment[data-v-dcd3f26e]{background:transparent!important}.store_home .int-pm-value[data-v-dcd3f26e]{background:#fff!important}.custom_integer[data-v-dcd3f26e]{border-radius:6px!important}.card.product_box[data-v-dcd3f26e]{box-shadow:0 5px 10px 0 rgba(100,148,170,.2),0 5px 15px 0 rgba(0,0,0,.1);transition:box-shadow .5s}.card.product_box .card-body.des .btn[data-v-dcd3f26e]{padding:0 4px;transition:transform .4s}.card.product_box .card-body.des .btn[data-v-dcd3f26e]:not(.collapsed){transform:rotate(180deg)}',""]);const o=r},748:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".store-button[data-v-35e1ad5e]{background:var(--button-color);border:1px solid var(--border-color);border-radius:8px;color:var(--button-text-color);font-size:18px;font-weight:600;line-height:28px;padding:16px 28px;position:relative}.store-button[data-v-35e1ad5e]:disabled{background:var(--button-color-opacity);border:1px solid var(--button-color-opacity)}",""]);const o=r},953:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".query-action[data-v-e9ab7d3a],.query-agent[data-v-e9ab7d3a],.query-customer[data-v-e9ab7d3a],.query-date[data-v-e9ab7d3a]{width:18%}.query-identifier[data-v-e9ab7d3a],.query-store[data-v-e9ab7d3a]{width:11%}.query-sent[data-v-e9ab7d3a]{width:6%}",""]);const o=r},3691:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,"ul.multi_uploads li[data-v-93407478]{width:17%}.query_table table[data-v-93407478]{table-layout:auto}.query_table table td[data-v-93407478],.query_table table th[data-v-93407478]{width:13%}.query_table table td[data-v-93407478]:first-child,.query_table table th[data-v-93407478]:first-child{width:35%}",""]);const o=r},1378:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,"table .user-active[data-v-33db535e],table .user-agents[data-v-33db535e],table .user-store-live[data-v-33db535e],table .user-store-type[data-v-33db535e],table .user-subscription[data-v-33db535e]{text-align:center}",""]);const o=r},852:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,"table .draggable[data-v-e4231096]{cursor:grab}table .user-order[data-v-e4231096]{width:10%}table .user-name[data-v-e4231096]{width:45%}table .user-last-login[data-v-e4231096]{width:20%}table .user-actions[data-v-e4231096]{text-align:right;width:150px}",""]);const o=r},9055:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".table .column-draft[data-v-462cfe78]{width:20%}.table .column-actions[data-v-462cfe78]{width:120px}",""]);const o=r},5914:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".store-title[data-v-1cef1093]{font-size:16px}#body .query_table table[data-v-1cef1093]{table-layout:auto}#body .query_table table tbody>tr>td[data-v-1cef1093]{padding:0}#body .query_table table td[data-v-1cef1093],#body .query_table table th[data-v-1cef1093]{padding:5px 20px;width:15%}#body .query_table table td.name[data-v-1cef1093],#body .query_table table th.name[data-v-1cef1093]{width:30%}#body .query_table table td.product-code[data-v-1cef1093],#body .query_table table th.product-code[data-v-1cef1093]{width:15%}#body .query_table table td h4[data-v-1cef1093],#body .query_table table th h4[data-v-1cef1093]{margin:10px 0}#body .query_table table th[data-v-1cef1093]{padding:15px 10px}",""]);const o=r},2536:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,"#customer-modal .modal-dialog{margin-top:200px}@media (max-width:768px){#customer-modal .modal-dialog{margin:2rem auto;max-width:80%}}#customer-modal .modal-header .modal-title{color:var(--button-text-color);font-size:16px}",""]);const o=r},508:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,"main[data-v-4364fe3d]{flex-grow:1;margin-top:80px;padding-bottom:80px}@media (max-width:768px){main[data-v-4364fe3d]{margin-top:85px;padding-bottom:100px}}.component_container[data-v-4364fe3d]{display:flex;flex-direction:column;min-height:100vh}.store-button[data-v-4364fe3d]{background:var(--button-color);border-color:var(--button-color);letter-spacing:var(--continue-btn-font-spacing)}.store-button[data-v-4364fe3d]:disabled{opacity:.65}.store-button.prev[data-v-4364fe3d]{background:var(--back-button-color);border-color:var(--back-button-color);letter-spacing:var(--back-btn-font-spacing)}.store-button.send[data-v-4364fe3d]{letter-spacing:var(--send-btn-font-spacing)}.step-title[data-v-4364fe3d]{color:var(--title-color);font-size:var(--title-font-size)!important;letter-spacing:var(--title-font-spacing)!important}.filter_store_header[data-v-4364fe3d]{border-bottom:1px solid #eaecf0;box-shadow:none;margin:0;padding:0}.dropdown .dropdown-menu[data-v-4364fe3d]{width:350px!important}.modal-open .attr-price[data-v-4364fe3d]{filter:blur(4px);-webkit-filter:blur(4px)}.modal-open .total-price[data-v-4364fe3d]{filter:blur(5px);-webkit-filter:blur(5px)}.card-wrapper[data-v-4364fe3d]{grid-column-gap:30px;grid-row-gap:15px;display:grid;grid-auto-rows:1fr;grid-template-columns:repeat(1,1fr);margin-bottom:15px}@media (min-width:768px){.card-wrapper[data-v-4364fe3d]{grid-template-columns:repeat(2,1fr)}}@media (min-width:992px){.card-wrapper[data-v-4364fe3d]{grid-template-columns:repeat(3,1fr)}}@media (min-width:1200px){.card-wrapper[data-v-4364fe3d]{grid-template-columns:repeat(4,1fr)}}.card-wrapper.card-wrapper-scroll[data-v-4364fe3d]{grid-template-columns:repeat(1,1fr)}@media (min-width:768px){.card-wrapper.card-wrapper-scroll[data-v-4364fe3d]{grid-template-columns:repeat(2,1fr)}}",""]);const o=r},2726:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".store-button[data-v-2218e6d4]{background:var(--button-color);border-color:var(--button-color);letter-spacing:var(--continue-btn-font-spacing)}.store-button[data-v-2218e6d4]:disabled{opacity:.65}.store-button.prev[data-v-2218e6d4]{background:var(--back-button-color);border-color:var(--back-button-color);letter-spacing:var(--back-btn-font-spacing)}.store-button.send[data-v-2218e6d4]{letter-spacing:var(--send-btn-font-spacing)}.step-title[data-v-2218e6d4]{color:var(--title-color);font-size:var(--title-font-size)!important;letter-spacing:var(--title-font-spacing)!important}.breadcrumbs[data-v-2218e6d4]{color:var(--breadcrumb-color);font-size:var(--breadcrumb-font-size);letter-spacing:var(--breadcrumb-font-spacing)}.breadcrumbs .breadcrumbs-items li[data-v-2218e6d4]:last-of-type:not(:only-child){color:var(--breadcrumb-current-color)}.card-wrapper[data-v-2218e6d4]{grid-column-gap:30px;grid-row-gap:15px;display:grid;grid-auto-rows:1fr;grid-template-columns:repeat(1,1fr);margin-bottom:15px}",""]);const o=r},2040:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".drop.over{background:#31c3f5;border-color:#aaa;border-radius:10px;color:#fff;padding:5px}.t-tab{background-color:#b1d1e3;border-radius:5px;color:#393636;margin:5px 0;padding:5px}.t-tab:hover{background-color:#81c6d9;color:#0b2e13}.t-tab.active{background-color:#477e8d;color:#fff}",""]);const o=r},5585:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".vue-advanced-cropper__background,.vue-advanced-cropper__foreground{background:#d3d3d3}",""]);const o=r},7888:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".cm-error{border:1px solid red!important}",""]);const o=r},8650:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".drop.over{background:#31c3f5;border-color:#aaa;border-radius:10px;color:#fff;padding:5px}.t-tab{background-color:#b1d1e3;border-radius:5px;color:#393636;margin:5px 0;padding:5px}.t-tab:hover{background-color:#81c6d9;color:#0b2e13}.t-tab.active{background-color:#477e8d;color:#fff}",""]);const o=r},6314:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(r[a]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);i&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},4417:t=>{"use strict";t.exports=function(t,e){return e||(e={}),"string"!=typeof(t=t&&t.__esModule?t.default:t)?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},4953:t=>{function e(t,e,n){var i,r,o,a,s;function l(){var c=Date.now()-a;c<e&&c>=0?i=setTimeout(l,e-c):(i=null,n||(s=t.apply(o,r),o=r=null))}null==e&&(e=100);var c=function(){o=this,r=arguments,a=Date.now();var c=n&&!i;return i||(i=setTimeout(l,e)),c&&(s=t.apply(o,r),o=r=null),s};return c.clear=function(){i&&(clearTimeout(i),i=null)},c.flush=function(){i&&(s=t.apply(o,r),o=r=null,clearTimeout(i),i=null)},c}e.debounce=e,t.exports=e},891:t=>{t.exports="/images/vendor/blueimp-gallery/error.png?25502e1d5c53f5cfc8bdc17bb4fba70b"},540:t=>{t.exports="/images/vendor/blueimp-gallery/error.svg?4aa1fd4422f6bf72d650725d73915b60"},4114:t=>{t.exports="/images/vendor/blueimp-gallery/loading.gif?430fc2eb2b9556d6f006db257b282429"},8566:t=>{t.exports="/images/vendor/blueimp-gallery/play-pause.png?20d7213b6d7d72174e131d3643849529"},8593:t=>{t.exports="/images/vendor/blueimp-gallery/play-pause.svg?aa3f7415c9c9eed0ee793ae973c7918f"},8501:t=>{t.exports="/images/vendor/blueimp-gallery/video-play.png?f2127deda35d057e7cce847d87fef830"},3402:t=>{t.exports="/images/vendor/blueimp-gallery/video-play.svg?15116d1813411752ecd73aee05ffe43e"},155:t=>{t.exports="/images/add-image.svg?d41b4adee83757336ec1dba1b80201c1"},4271:t=>{t.exports="/images/loader2.gif?05e834f4609094f62c9f772d14c00395"},1704:t=>{t.exports="/images/logo.png?314a3fee7f72cebdbe2f6a63a0e73dc3"},2408:t=>{t.exports="/images/arrow-left.svg?81bcc9f82627511656ef90fccdf6741e"},6999:t=>{t.exports="/images/arrow-right.svg?59f88f33f680434d7115e1a617eabf52"},7639:t=>{"use strict";t.exports=function(t,e){var n=e.length,i=t.length;if(i>n)return!1;if(i===n)return t===e;t:for(var r=0,o=0;r<i;r++){for(var a=t.charCodeAt(r);o<n;)if(e.charCodeAt(o++)===a)continue t;return!1}return!0}},5382:(t,e,n)=>{"use strict";n.r(e),n.d(e,{glMatrix:()=>i,mat2:()=>r,mat2d:()=>o,mat3:()=>a,mat4:()=>s,quat:()=>u,quat2:()=>d,vec2:()=>h,vec3:()=>l,vec4:()=>c});var i={};n.r(i),n.d(i,{ARRAY_TYPE:()=>f,EPSILON:()=>p,RANDOM:()=>m,equals:()=>y,setMatrixArrayType:()=>v,toRadian:()=>b});var r={};n.r(r),n.d(r,{LDU:()=>N,add:()=>F,adjoint:()=>k,clone:()=>w,copy:()=>x,create:()=>_,determinant:()=>A,equals:()=>$,exactEquals:()=>B,frob:()=>j,fromRotation:()=>D,fromScaling:()=>R,fromValues:()=>S,identity:()=>C,invert:()=>O,mul:()=>V,multiply:()=>P,multiplyScalar:()=>U,multiplyScalarAndAdd:()=>H,rotate:()=>M,scale:()=>L,set:()=>E,str:()=>I,sub:()=>Y,subtract:()=>z,transpose:()=>T});var o={};n.r(o),n.d(o,{add:()=>ct,clone:()=>W,copy:()=>G,create:()=>q,determinant:()=>Q,equals:()=>ft,exactEquals:()=>pt,frob:()=>lt,fromRotation:()=>rt,fromScaling:()=>ot,fromTranslation:()=>at,fromValues:()=>K,identity:()=>X,invert:()=>J,mul:()=>mt,multiply:()=>tt,multiplyScalar:()=>dt,multiplyScalarAndAdd:()=>ht,rotate:()=>et,scale:()=>nt,set:()=>Z,str:()=>st,sub:()=>vt,subtract:()=>ut,translate:()=>it});var a={};n.r(a),n.d(a,{add:()=>$t,adjoint:()=>Tt,clone:()=>yt,copy:()=>_t,create:()=>gt,determinant:()=>Ot,equals:()=>qt,exactEquals:()=>Yt,frob:()=>Bt,fromMat2d:()=>It,fromMat4:()=>bt,fromQuat:()=>jt,fromRotation:()=>Dt,fromScaling:()=>Rt,fromTranslation:()=>Lt,fromValues:()=>wt,identity:()=>Ct,invert:()=>Et,mul:()=>Wt,multiply:()=>kt,multiplyScalar:()=>Ht,multiplyScalarAndAdd:()=>Vt,normalFromMat4:()=>Nt,projection:()=>Ft,rotate:()=>Pt,scale:()=>Mt,set:()=>xt,str:()=>zt,sub:()=>Gt,subtract:()=>Ut,translate:()=>At,transpose:()=>St});var s={};n.r(s),n.d(s,{add:()=>Re,adjoint:()=>ie,clone:()=>Kt,copy:()=>Zt,create:()=>Xt,determinant:()=>re,equals:()=>ze,exactEquals:()=>Fe,frob:()=>De,fromQuat:()=>Ee,fromQuat2:()=>ye,fromRotation:()=>fe,fromRotationTranslation:()=>be,fromRotationTranslationScale:()=>Ce,fromRotationTranslationScaleOrigin:()=>Se,fromScaling:()=>pe,fromTranslation:()=>he,fromValues:()=>Jt,fromXRotation:()=>me,fromYRotation:()=>ve,fromZRotation:()=>ge,frustum:()=>Te,getRotation:()=>xe,getScaling:()=>we,getTranslation:()=>_e,identity:()=>te,invert:()=>ne,lookAt:()=>Pe,mul:()=>Be,multiply:()=>oe,multiplyScalar:()=>je,multiplyScalarAndAdd:()=>Ne,ortho:()=>Ae,perspective:()=>Oe,perspectiveFromFieldOfView:()=>ke,rotate:()=>le,rotateX:()=>ce,rotateY:()=>ue,rotateZ:()=>de,scale:()=>se,set:()=>Qt,str:()=>Le,sub:()=>$e,subtract:()=>Ie,targetTo:()=>Me,translate:()=>ae,transpose:()=>ee});var l={};n.r(l),n.d(l,{add:()=>Ge,angle:()=>Sn,bezier:()=>vn,ceil:()=>Je,clone:()=>He,copy:()=>qe,create:()=>Ue,cross:()=>pn,dist:()=>Dn,distance:()=>an,div:()=>Ln,divide:()=>Ze,dot:()=>hn,equals:()=>kn,exactEquals:()=>On,floor:()=>Qe,forEach:()=>Nn,fromValues:()=>Ye,hermite:()=>mn,inverse:()=>un,len:()=>In,length:()=>Ve,lerp:()=>fn,max:()=>en,min:()=>tn,mul:()=>Mn,multiply:()=>Ke,negate:()=>cn,normalize:()=>dn,random:()=>gn,rotateX:()=>wn,rotateY:()=>xn,rotateZ:()=>Cn,round:()=>nn,scale:()=>rn,scaleAndAdd:()=>on,set:()=>We,sqrDist:()=>Rn,sqrLen:()=>jn,squaredDistance:()=>sn,squaredLength:()=>ln,str:()=>Tn,sub:()=>Pn,subtract:()=>Xe,transformMat3:()=>yn,transformMat4:()=>bn,transformQuat:()=>_n,zero:()=>En});var c={};n.r(c),n.d(c,{add:()=>Hn,ceil:()=>Wn,clone:()=>zn,copy:()=>$n,create:()=>Fn,cross:()=>li,dist:()=>_i,distance:()=>ti,div:()=>yi,divide:()=>qn,dot:()=>si,equals:()=>vi,exactEquals:()=>mi,floor:()=>Gn,forEach:()=>Si,fromValues:()=>Bn,inverse:()=>oi,len:()=>xi,length:()=>ni,lerp:()=>ci,max:()=>Kn,min:()=>Xn,mul:()=>bi,multiply:()=>Yn,negate:()=>ri,normalize:()=>ai,random:()=>ui,round:()=>Zn,scale:()=>Jn,scaleAndAdd:()=>Qn,set:()=>Un,sqrDist:()=>wi,sqrLen:()=>Ci,squaredDistance:()=>ei,squaredLength:()=>ii,str:()=>fi,sub:()=>gi,subtract:()=>Vn,transformMat4:()=>di,transformQuat:()=>hi,zero:()=>pi});var u={};n.r(u),n.d(u,{add:()=>er,calculateW:()=>Ri,clone:()=>Zi,conjugate:()=>$i,copy:()=>Qi,create:()=>Ei,dot:()=>rr,equals:()=>hr,exactEquals:()=>dr,exp:()=>Ii,fromEuler:()=>Hi,fromMat3:()=>Ui,fromValues:()=>Ji,getAngle:()=>Ai,getAxisAngle:()=>ki,identity:()=>Ti,invert:()=>Bi,len:()=>sr,length:()=>ar,lerp:()=>or,ln:()=>ji,mul:()=>nr,multiply:()=>Pi,normalize:()=>ur,pow:()=>Ni,random:()=>zi,rotateX:()=>Mi,rotateY:()=>Li,rotateZ:()=>Di,rotationTo:()=>pr,scale:()=>ir,set:()=>tr,setAxes:()=>mr,setAxisAngle:()=>Oi,slerp:()=>Fi,sqlerp:()=>fr,sqrLen:()=>cr,squaredLength:()=>lr,str:()=>Vi});var d={};n.r(d),n.d(d,{add:()=>zr,clone:()=>gr,conjugate:()=>qr,copy:()=>Sr,create:()=>vr,dot:()=>Hr,equals:()=>to,exactEquals:()=>Qr,fromMat4:()=>Cr,fromRotation:()=>xr,fromRotationTranslation:()=>_r,fromRotationTranslationValues:()=>yr,fromTranslation:()=>wr,fromValues:()=>br,getDual:()=>kr,getReal:()=>Or,getTranslation:()=>Mr,identity:()=>Er,invert:()=>Yr,len:()=>Gr,length:()=>Wr,lerp:()=>Vr,mul:()=>$r,multiply:()=>Br,normalize:()=>Zr,rotateAroundAxis:()=>Fr,rotateByQuatAppend:()=>jr,rotateByQuatPrepend:()=>Nr,rotateX:()=>Dr,rotateY:()=>Rr,rotateZ:()=>Ir,scale:()=>Ur,set:()=>Tr,setDual:()=>Pr,setReal:()=>Ar,sqrLen:()=>Kr,squaredLength:()=>Xr,str:()=>Jr,translate:()=>Lr});var h={};n.r(h),n.d(h,{add:()=>ao,angle:()=>Ro,ceil:()=>uo,clone:()=>no,copy:()=>ro,create:()=>eo,cross:()=>To,dist:()=>Ho,distance:()=>bo,div:()=>Uo,divide:()=>co,dot:()=>Eo,equals:()=>Fo,exactEquals:()=>No,floor:()=>ho,forEach:()=>qo,fromValues:()=>io,inverse:()=>Co,len:()=>zo,length:()=>_o,lerp:()=>Oo,max:()=>fo,min:()=>po,mul:()=>$o,multiply:()=>lo,negate:()=>xo,normalize:()=>So,random:()=>ko,rotate:()=>Do,round:()=>mo,scale:()=>vo,scaleAndAdd:()=>go,set:()=>oo,sqrDist:()=>Vo,sqrLen:()=>Yo,squaredDistance:()=>yo,squaredLength:()=>wo,str:()=>jo,sub:()=>Bo,subtract:()=>so,transformMat2:()=>Ao,transformMat2d:()=>Po,transformMat3:()=>Mo,transformMat4:()=>Lo,zero:()=>Io});var p=1e-6,f="undefined"!=typeof Float32Array?Float32Array:Array,m=Math.random;function v(t){f=t}var g=Math.PI/180;function b(t){return t*g}function y(t,e){return Math.abs(t-e)<=p*Math.max(1,Math.abs(t),Math.abs(e))}function _(){var t=new f(4);return f!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t}function w(t){var e=new f(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function x(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function C(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t}function S(t,e,n,i){var r=new f(4);return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function E(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function T(t,e){if(t===e){var n=e[1];t[1]=e[2],t[2]=n}else t[0]=e[0],t[1]=e[2],t[2]=e[1],t[3]=e[3];return t}function O(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n*o-r*i;return a?(a=1/a,t[0]=o*a,t[1]=-i*a,t[2]=-r*a,t[3]=n*a,t):null}function k(t,e){var n=e[0];return t[0]=e[3],t[1]=-e[1],t[2]=-e[2],t[3]=n,t}function A(t){return t[0]*t[3]-t[2]*t[1]}function P(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=n[0],l=n[1],c=n[2],u=n[3];return t[0]=i*s+o*l,t[1]=r*s+a*l,t[2]=i*c+o*u,t[3]=r*c+a*u,t}function M(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=i*l+o*s,t[1]=r*l+a*s,t[2]=i*-s+o*l,t[3]=r*-s+a*l,t}function L(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=n[0],l=n[1];return t[0]=i*s,t[1]=r*s,t[2]=o*l,t[3]=a*l,t}function D(t,e){var n=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=n,t[2]=-n,t[3]=i,t}function R(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t}function I(t){return"mat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}function j(t){return Math.hypot(t[0],t[1],t[2],t[3])}function N(t,e,n,i){return t[2]=i[2]/i[0],n[0]=i[0],n[1]=i[1],n[3]=i[3]-t[2]*n[1],[t,e,n]}function F(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function z(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function B(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function $(t,e){var n=t[0],i=t[1],r=t[2],o=t[3],a=e[0],s=e[1],l=e[2],c=e[3];return Math.abs(n-a)<=p*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-s)<=p*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(r-l)<=p*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(o-c)<=p*Math.max(1,Math.abs(o),Math.abs(c))}function U(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function H(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});var V=P,Y=z;function q(){var t=new f(6);return f!=Float32Array&&(t[1]=0,t[2]=0,t[4]=0,t[5]=0),t[0]=1,t[3]=1,t}function W(t){var e=new f(6);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function G(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function X(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function K(t,e,n,i,r,o){var a=new f(6);return a[0]=t,a[1]=e,a[2]=n,a[3]=i,a[4]=r,a[5]=o,a}function Z(t,e,n,i,r,o,a){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=o,t[5]=a,t}function J(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=n*o-i*r;return l?(l=1/l,t[0]=o*l,t[1]=-i*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-o*a)*l,t[5]=(i*a-n*s)*l,t):null}function Q(t){return t[0]*t[3]-t[1]*t[2]}function tt(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],c=n[0],u=n[1],d=n[2],h=n[3],p=n[4],f=n[5];return t[0]=i*c+o*u,t[1]=r*c+a*u,t[2]=i*d+o*h,t[3]=r*d+a*h,t[4]=i*p+o*f+s,t[5]=r*p+a*f+l,t}function et(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],c=Math.sin(n),u=Math.cos(n);return t[0]=i*u+o*c,t[1]=r*u+a*c,t[2]=i*-c+o*u,t[3]=r*-c+a*u,t[4]=s,t[5]=l,t}function nt(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],c=n[0],u=n[1];return t[0]=i*c,t[1]=r*c,t[2]=o*u,t[3]=a*u,t[4]=s,t[5]=l,t}function it(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],c=n[0],u=n[1];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=i*c+o*u+s,t[5]=r*c+a*u+l,t}function rt(t,e){var n=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=n,t[2]=-n,t[3]=i,t[4]=0,t[5]=0,t}function ot(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t}function at(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t}function st(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"}function lt(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],1)}function ct(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t}function ut(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t}function dt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t}function ht(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t[4]=e[4]+n[4]*i,t[5]=e[5]+n[5]*i,t}function pt(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]}function ft(t,e){var n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=e[0],c=e[1],u=e[2],d=e[3],h=e[4],f=e[5];return Math.abs(n-l)<=p*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(i-c)<=p*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(r-u)<=p*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(o-d)<=p*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(a-h)<=p*Math.max(1,Math.abs(a),Math.abs(h))&&Math.abs(s-f)<=p*Math.max(1,Math.abs(s),Math.abs(f))}var mt=tt,vt=ut;function gt(){var t=new f(9);return f!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function bt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function yt(t){var e=new f(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function _t(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function wt(t,e,n,i,r,o,a,s,l){var c=new f(9);return c[0]=t,c[1]=e,c[2]=n,c[3]=i,c[4]=r,c[5]=o,c[6]=a,c[7]=s,c[8]=l,c}function xt(t,e,n,i,r,o,a,s,l,c){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=o,t[5]=a,t[6]=s,t[7]=l,t[8]=c,t}function Ct(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function St(t,e){if(t===e){var n=e[1],i=e[2],r=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=i,t[7]=r}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function Et(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8],d=u*a-s*c,h=-u*o+s*l,p=c*o-a*l,f=n*d+i*h+r*p;return f?(f=1/f,t[0]=d*f,t[1]=(-u*i+r*c)*f,t[2]=(s*i-r*a)*f,t[3]=h*f,t[4]=(u*n-r*l)*f,t[5]=(-s*n+r*o)*f,t[6]=p*f,t[7]=(-c*n+i*l)*f,t[8]=(a*n-i*o)*f,t):null}function Tt(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8];return t[0]=a*u-s*c,t[1]=r*c-i*u,t[2]=i*s-r*a,t[3]=s*l-o*u,t[4]=n*u-r*l,t[5]=r*o-n*s,t[6]=o*c-a*l,t[7]=i*l-n*c,t[8]=n*a-i*o,t}function Ot(t){var e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],c=t[8];return e*(c*o-a*l)+n*(-c*r+a*s)+i*(l*r-o*s)}function kt(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],c=e[6],u=e[7],d=e[8],h=n[0],p=n[1],f=n[2],m=n[3],v=n[4],g=n[5],b=n[6],y=n[7],_=n[8];return t[0]=h*i+p*a+f*c,t[1]=h*r+p*s+f*u,t[2]=h*o+p*l+f*d,t[3]=m*i+v*a+g*c,t[4]=m*r+v*s+g*u,t[5]=m*o+v*l+g*d,t[6]=b*i+y*a+_*c,t[7]=b*r+y*s+_*u,t[8]=b*o+y*l+_*d,t}function At(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],c=e[6],u=e[7],d=e[8],h=n[0],p=n[1];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=h*i+p*a+c,t[7]=h*r+p*s+u,t[8]=h*o+p*l+d,t}function Pt(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],c=e[6],u=e[7],d=e[8],h=Math.sin(n),p=Math.cos(n);return t[0]=p*i+h*a,t[1]=p*r+h*s,t[2]=p*o+h*l,t[3]=p*a-h*i,t[4]=p*s-h*r,t[5]=p*l-h*o,t[6]=c,t[7]=u,t[8]=d,t}function Mt(t,e,n){var i=n[0],r=n[1];return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=r*e[3],t[4]=r*e[4],t[5]=r*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function Lt(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function Dt(t,e){var n=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=n,t[2]=0,t[3]=-n,t[4]=i,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function Rt(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function It(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}function jt(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n+n,s=i+i,l=r+r,c=n*a,u=i*a,d=i*s,h=r*a,p=r*s,f=r*l,m=o*a,v=o*s,g=o*l;return t[0]=1-d-f,t[3]=u-g,t[6]=h+v,t[1]=u+g,t[4]=1-c-f,t[7]=p-m,t[2]=h-v,t[5]=p+m,t[8]=1-c-d,t}function Nt(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8],d=e[9],h=e[10],p=e[11],f=e[12],m=e[13],v=e[14],g=e[15],b=n*s-i*a,y=n*l-r*a,_=n*c-o*a,w=i*l-r*s,x=i*c-o*s,C=r*c-o*l,S=u*m-d*f,E=u*v-h*f,T=u*g-p*f,O=d*v-h*m,k=d*g-p*m,A=h*g-p*v,P=b*A-y*k+_*O+w*T-x*E+C*S;return P?(P=1/P,t[0]=(s*A-l*k+c*O)*P,t[1]=(l*T-a*A-c*E)*P,t[2]=(a*k-s*T+c*S)*P,t[3]=(r*k-i*A-o*O)*P,t[4]=(n*A-r*T+o*E)*P,t[5]=(i*T-n*k-o*S)*P,t[6]=(m*C-v*x+g*w)*P,t[7]=(v*_-f*C-g*y)*P,t[8]=(f*x-m*_+g*b)*P,t):null}function Ft(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t}function zt(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function Bt(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}function $t(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t}function Ut(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function Ht(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t}function Vt(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t[4]=e[4]+n[4]*i,t[5]=e[5]+n[5]*i,t[6]=e[6]+n[6]*i,t[7]=e[7]+n[7]*i,t[8]=e[8]+n[8]*i,t}function Yt(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]}function qt(t,e){var n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],d=e[0],h=e[1],f=e[2],m=e[3],v=e[4],g=e[5],b=e[6],y=e[7],_=e[8];return Math.abs(n-d)<=p*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(i-h)<=p*Math.max(1,Math.abs(i),Math.abs(h))&&Math.abs(r-f)<=p*Math.max(1,Math.abs(r),Math.abs(f))&&Math.abs(o-m)<=p*Math.max(1,Math.abs(o),Math.abs(m))&&Math.abs(a-v)<=p*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(s-g)<=p*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(l-b)<=p*Math.max(1,Math.abs(l),Math.abs(b))&&Math.abs(c-y)<=p*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(u-_)<=p*Math.max(1,Math.abs(u),Math.abs(_))}var Wt=kt,Gt=Ut;function Xt(){var t=new f(16);return f!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function Kt(t){var e=new f(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function Zt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function Jt(t,e,n,i,r,o,a,s,l,c,u,d,h,p,m,v){var g=new f(16);return g[0]=t,g[1]=e,g[2]=n,g[3]=i,g[4]=r,g[5]=o,g[6]=a,g[7]=s,g[8]=l,g[9]=c,g[10]=u,g[11]=d,g[12]=h,g[13]=p,g[14]=m,g[15]=v,g}function Qt(t,e,n,i,r,o,a,s,l,c,u,d,h,p,f,m,v){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=o,t[5]=a,t[6]=s,t[7]=l,t[8]=c,t[9]=u,t[10]=d,t[11]=h,t[12]=p,t[13]=f,t[14]=m,t[15]=v,t}function te(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function ee(t,e){if(t===e){var n=e[1],i=e[2],r=e[3],o=e[6],a=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=i,t[9]=o,t[11]=e[14],t[12]=r,t[13]=a,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function ne(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8],d=e[9],h=e[10],p=e[11],f=e[12],m=e[13],v=e[14],g=e[15],b=n*s-i*a,y=n*l-r*a,_=n*c-o*a,w=i*l-r*s,x=i*c-o*s,C=r*c-o*l,S=u*m-d*f,E=u*v-h*f,T=u*g-p*f,O=d*v-h*m,k=d*g-p*m,A=h*g-p*v,P=b*A-y*k+_*O+w*T-x*E+C*S;return P?(P=1/P,t[0]=(s*A-l*k+c*O)*P,t[1]=(r*k-i*A-o*O)*P,t[2]=(m*C-v*x+g*w)*P,t[3]=(h*x-d*C-p*w)*P,t[4]=(l*T-a*A-c*E)*P,t[5]=(n*A-r*T+o*E)*P,t[6]=(v*_-f*C-g*y)*P,t[7]=(u*C-h*_+p*y)*P,t[8]=(a*k-s*T+c*S)*P,t[9]=(i*T-n*k-o*S)*P,t[10]=(f*x-m*_+g*b)*P,t[11]=(d*_-u*x-p*b)*P,t[12]=(s*E-a*O-l*S)*P,t[13]=(n*O-i*E+r*S)*P,t[14]=(m*y-f*w-v*b)*P,t[15]=(u*w-d*y+h*b)*P,t):null}function ie(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8],d=e[9],h=e[10],p=e[11],f=e[12],m=e[13],v=e[14],g=e[15];return t[0]=s*(h*g-p*v)-d*(l*g-c*v)+m*(l*p-c*h),t[1]=-(i*(h*g-p*v)-d*(r*g-o*v)+m*(r*p-o*h)),t[2]=i*(l*g-c*v)-s*(r*g-o*v)+m*(r*c-o*l),t[3]=-(i*(l*p-c*h)-s*(r*p-o*h)+d*(r*c-o*l)),t[4]=-(a*(h*g-p*v)-u*(l*g-c*v)+f*(l*p-c*h)),t[5]=n*(h*g-p*v)-u*(r*g-o*v)+f*(r*p-o*h),t[6]=-(n*(l*g-c*v)-a*(r*g-o*v)+f*(r*c-o*l)),t[7]=n*(l*p-c*h)-a*(r*p-o*h)+u*(r*c-o*l),t[8]=a*(d*g-p*m)-u*(s*g-c*m)+f*(s*p-c*d),t[9]=-(n*(d*g-p*m)-u*(i*g-o*m)+f*(i*p-o*d)),t[10]=n*(s*g-c*m)-a*(i*g-o*m)+f*(i*c-o*s),t[11]=-(n*(s*p-c*d)-a*(i*p-o*d)+u*(i*c-o*s)),t[12]=-(a*(d*v-h*m)-u*(s*v-l*m)+f*(s*h-l*d)),t[13]=n*(d*v-h*m)-u*(i*v-r*m)+f*(i*h-r*d),t[14]=-(n*(s*v-l*m)-a*(i*v-r*m)+f*(i*l-r*s)),t[15]=n*(s*h-l*d)-a*(i*h-r*d)+u*(i*l-r*s),t}function re(t){var e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],c=t[8],u=t[9],d=t[10],h=t[11],p=t[12],f=t[13],m=t[14],v=t[15];return(e*a-n*o)*(d*v-h*m)-(e*s-i*o)*(u*v-h*f)+(e*l-r*o)*(u*m-d*f)+(n*s-i*a)*(c*v-h*p)-(n*l-r*a)*(c*m-d*p)+(i*l-r*s)*(c*f-u*p)}function oe(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],c=e[6],u=e[7],d=e[8],h=e[9],p=e[10],f=e[11],m=e[12],v=e[13],g=e[14],b=e[15],y=n[0],_=n[1],w=n[2],x=n[3];return t[0]=y*i+_*s+w*d+x*m,t[1]=y*r+_*l+w*h+x*v,t[2]=y*o+_*c+w*p+x*g,t[3]=y*a+_*u+w*f+x*b,y=n[4],_=n[5],w=n[6],x=n[7],t[4]=y*i+_*s+w*d+x*m,t[5]=y*r+_*l+w*h+x*v,t[6]=y*o+_*c+w*p+x*g,t[7]=y*a+_*u+w*f+x*b,y=n[8],_=n[9],w=n[10],x=n[11],t[8]=y*i+_*s+w*d+x*m,t[9]=y*r+_*l+w*h+x*v,t[10]=y*o+_*c+w*p+x*g,t[11]=y*a+_*u+w*f+x*b,y=n[12],_=n[13],w=n[14],x=n[15],t[12]=y*i+_*s+w*d+x*m,t[13]=y*r+_*l+w*h+x*v,t[14]=y*o+_*c+w*p+x*g,t[15]=y*a+_*u+w*f+x*b,t}function ae(t,e,n){var i,r,o,a,s,l,c,u,d,h,p,f,m=n[0],v=n[1],g=n[2];return e===t?(t[12]=e[0]*m+e[4]*v+e[8]*g+e[12],t[13]=e[1]*m+e[5]*v+e[9]*g+e[13],t[14]=e[2]*m+e[6]*v+e[10]*g+e[14],t[15]=e[3]*m+e[7]*v+e[11]*g+e[15]):(i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],c=e[6],u=e[7],d=e[8],h=e[9],p=e[10],f=e[11],t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=c,t[7]=u,t[8]=d,t[9]=h,t[10]=p,t[11]=f,t[12]=i*m+s*v+d*g+e[12],t[13]=r*m+l*v+h*g+e[13],t[14]=o*m+c*v+p*g+e[14],t[15]=a*m+u*v+f*g+e[15]),t}function se(t,e,n){var i=n[0],r=n[1],o=n[2];return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function le(t,e,n,i){var r,o,a,s,l,c,u,d,h,f,m,v,g,b,y,_,w,x,C,S,E,T,O,k,A=i[0],P=i[1],M=i[2],L=Math.hypot(A,P,M);return L<p?null:(A*=L=1/L,P*=L,M*=L,r=Math.sin(n),a=1-(o=Math.cos(n)),s=e[0],l=e[1],c=e[2],u=e[3],d=e[4],h=e[5],f=e[6],m=e[7],v=e[8],g=e[9],b=e[10],y=e[11],_=A*A*a+o,w=P*A*a+M*r,x=M*A*a-P*r,C=A*P*a-M*r,S=P*P*a+o,E=M*P*a+A*r,T=A*M*a+P*r,O=P*M*a-A*r,k=M*M*a+o,t[0]=s*_+d*w+v*x,t[1]=l*_+h*w+g*x,t[2]=c*_+f*w+b*x,t[3]=u*_+m*w+y*x,t[4]=s*C+d*S+v*E,t[5]=l*C+h*S+g*E,t[6]=c*C+f*S+b*E,t[7]=u*C+m*S+y*E,t[8]=s*T+d*O+v*k,t[9]=l*T+h*O+g*k,t[10]=c*T+f*O+b*k,t[11]=u*T+m*O+y*k,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function ce(t,e,n){var i=Math.sin(n),r=Math.cos(n),o=e[4],a=e[5],s=e[6],l=e[7],c=e[8],u=e[9],d=e[10],h=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*r+c*i,t[5]=a*r+u*i,t[6]=s*r+d*i,t[7]=l*r+h*i,t[8]=c*r-o*i,t[9]=u*r-a*i,t[10]=d*r-s*i,t[11]=h*r-l*i,t}function ue(t,e,n){var i=Math.sin(n),r=Math.cos(n),o=e[0],a=e[1],s=e[2],l=e[3],c=e[8],u=e[9],d=e[10],h=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*r-c*i,t[1]=a*r-u*i,t[2]=s*r-d*i,t[3]=l*r-h*i,t[8]=o*i+c*r,t[9]=a*i+u*r,t[10]=s*i+d*r,t[11]=l*i+h*r,t}function de(t,e,n){var i=Math.sin(n),r=Math.cos(n),o=e[0],a=e[1],s=e[2],l=e[3],c=e[4],u=e[5],d=e[6],h=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*r+c*i,t[1]=a*r+u*i,t[2]=s*r+d*i,t[3]=l*r+h*i,t[4]=c*r-o*i,t[5]=u*r-a*i,t[6]=d*r-s*i,t[7]=h*r-l*i,t}function he(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function pe(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function fe(t,e,n){var i,r,o,a=n[0],s=n[1],l=n[2],c=Math.hypot(a,s,l);return c<p?null:(a*=c=1/c,s*=c,l*=c,i=Math.sin(e),o=1-(r=Math.cos(e)),t[0]=a*a*o+r,t[1]=s*a*o+l*i,t[2]=l*a*o-s*i,t[3]=0,t[4]=a*s*o-l*i,t[5]=s*s*o+r,t[6]=l*s*o+a*i,t[7]=0,t[8]=a*l*o+s*i,t[9]=s*l*o-a*i,t[10]=l*l*o+r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function me(t,e){var n=Math.sin(e),i=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function ve(t,e){var n=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function ge(t,e){var n=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function be(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=i+i,l=r+r,c=o+o,u=i*s,d=i*l,h=i*c,p=r*l,f=r*c,m=o*c,v=a*s,g=a*l,b=a*c;return t[0]=1-(p+m),t[1]=d+b,t[2]=h-g,t[3]=0,t[4]=d-b,t[5]=1-(u+m),t[6]=f+v,t[7]=0,t[8]=h+g,t[9]=f-v,t[10]=1-(u+p),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function ye(t,e){var n=new f(3),i=-e[0],r=-e[1],o=-e[2],a=e[3],s=e[4],l=e[5],c=e[6],u=e[7],d=i*i+r*r+o*o+a*a;return d>0?(n[0]=2*(s*a+u*i+l*o-c*r)/d,n[1]=2*(l*a+u*r+c*i-s*o)/d,n[2]=2*(c*a+u*o+s*r-l*i)/d):(n[0]=2*(s*a+u*i+l*o-c*r),n[1]=2*(l*a+u*r+c*i-s*o),n[2]=2*(c*a+u*o+s*r-l*i)),be(t,e,n),t}function _e(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function we(t,e){var n=e[0],i=e[1],r=e[2],o=e[4],a=e[5],s=e[6],l=e[8],c=e[9],u=e[10];return t[0]=Math.hypot(n,i,r),t[1]=Math.hypot(o,a,s),t[2]=Math.hypot(l,c,u),t}function xe(t,e){var n=new f(3);we(n,e);var i=1/n[0],r=1/n[1],o=1/n[2],a=e[0]*i,s=e[1]*r,l=e[2]*o,c=e[4]*i,u=e[5]*r,d=e[6]*o,h=e[8]*i,p=e[9]*r,m=e[10]*o,v=a+u+m,g=0;return v>0?(g=2*Math.sqrt(v+1),t[3]=.25*g,t[0]=(d-p)/g,t[1]=(h-l)/g,t[2]=(s-c)/g):a>u&&a>m?(g=2*Math.sqrt(1+a-u-m),t[3]=(d-p)/g,t[0]=.25*g,t[1]=(s+c)/g,t[2]=(h+l)/g):u>m?(g=2*Math.sqrt(1+u-a-m),t[3]=(h-l)/g,t[0]=(s+c)/g,t[1]=.25*g,t[2]=(d+p)/g):(g=2*Math.sqrt(1+m-a-u),t[3]=(s-c)/g,t[0]=(h+l)/g,t[1]=(d+p)/g,t[2]=.25*g),t}function Ce(t,e,n,i){var r=e[0],o=e[1],a=e[2],s=e[3],l=r+r,c=o+o,u=a+a,d=r*l,h=r*c,p=r*u,f=o*c,m=o*u,v=a*u,g=s*l,b=s*c,y=s*u,_=i[0],w=i[1],x=i[2];return t[0]=(1-(f+v))*_,t[1]=(h+y)*_,t[2]=(p-b)*_,t[3]=0,t[4]=(h-y)*w,t[5]=(1-(d+v))*w,t[6]=(m+g)*w,t[7]=0,t[8]=(p+b)*x,t[9]=(m-g)*x,t[10]=(1-(d+f))*x,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function Se(t,e,n,i,r){var o=e[0],a=e[1],s=e[2],l=e[3],c=o+o,u=a+a,d=s+s,h=o*c,p=o*u,f=o*d,m=a*u,v=a*d,g=s*d,b=l*c,y=l*u,_=l*d,w=i[0],x=i[1],C=i[2],S=r[0],E=r[1],T=r[2],O=(1-(m+g))*w,k=(p+_)*w,A=(f-y)*w,P=(p-_)*x,M=(1-(h+g))*x,L=(v+b)*x,D=(f+y)*C,R=(v-b)*C,I=(1-(h+m))*C;return t[0]=O,t[1]=k,t[2]=A,t[3]=0,t[4]=P,t[5]=M,t[6]=L,t[7]=0,t[8]=D,t[9]=R,t[10]=I,t[11]=0,t[12]=n[0]+S-(O*S+P*E+D*T),t[13]=n[1]+E-(k*S+M*E+R*T),t[14]=n[2]+T-(A*S+L*E+I*T),t[15]=1,t}function Ee(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n+n,s=i+i,l=r+r,c=n*a,u=i*a,d=i*s,h=r*a,p=r*s,f=r*l,m=o*a,v=o*s,g=o*l;return t[0]=1-d-f,t[1]=u+g,t[2]=h-v,t[3]=0,t[4]=u-g,t[5]=1-c-f,t[6]=p+m,t[7]=0,t[8]=h+v,t[9]=p-m,t[10]=1-c-d,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function Te(t,e,n,i,r,o,a){var s=1/(n-e),l=1/(r-i),c=1/(o-a);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*l,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(r+i)*l,t[10]=(a+o)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*c,t[15]=0,t}function Oe(t,e,n,i,r){var o,a=1/Math.tan(e/2);return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=r&&r!==1/0?(o=1/(i-r),t[10]=(r+i)*o,t[14]=2*r*i*o):(t[10]=-1,t[14]=-2*i),t}function ke(t,e,n,i){var r=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(a+s),c=2/(r+o);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(a-s)*l*.5,t[9]=(r-o)*c*.5,t[10]=i/(n-i),t[11]=-1,t[12]=0,t[13]=0,t[14]=i*n/(n-i),t[15]=0,t}function Ae(t,e,n,i,r,o,a){var s=1/(e-n),l=1/(i-r),c=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*s,t[13]=(r+i)*l,t[14]=(a+o)*c,t[15]=1,t}function Pe(t,e,n,i){var r,o,a,s,l,c,u,d,h,f,m=e[0],v=e[1],g=e[2],b=i[0],y=i[1],_=i[2],w=n[0],x=n[1],C=n[2];return Math.abs(m-w)<p&&Math.abs(v-x)<p&&Math.abs(g-C)<p?te(t):(u=m-w,d=v-x,h=g-C,r=y*(h*=f=1/Math.hypot(u,d,h))-_*(d*=f),o=_*(u*=f)-b*h,a=b*d-y*u,(f=Math.hypot(r,o,a))?(r*=f=1/f,o*=f,a*=f):(r=0,o=0,a=0),s=d*a-h*o,l=h*r-u*a,c=u*o-d*r,(f=Math.hypot(s,l,c))?(s*=f=1/f,l*=f,c*=f):(s=0,l=0,c=0),t[0]=r,t[1]=s,t[2]=u,t[3]=0,t[4]=o,t[5]=l,t[6]=d,t[7]=0,t[8]=a,t[9]=c,t[10]=h,t[11]=0,t[12]=-(r*m+o*v+a*g),t[13]=-(s*m+l*v+c*g),t[14]=-(u*m+d*v+h*g),t[15]=1,t)}function Me(t,e,n,i){var r=e[0],o=e[1],a=e[2],s=i[0],l=i[1],c=i[2],u=r-n[0],d=o-n[1],h=a-n[2],p=u*u+d*d+h*h;p>0&&(u*=p=1/Math.sqrt(p),d*=p,h*=p);var f=l*h-c*d,m=c*u-s*h,v=s*d-l*u;return(p=f*f+m*m+v*v)>0&&(f*=p=1/Math.sqrt(p),m*=p,v*=p),t[0]=f,t[1]=m,t[2]=v,t[3]=0,t[4]=d*v-h*m,t[5]=h*f-u*v,t[6]=u*m-d*f,t[7]=0,t[8]=u,t[9]=d,t[10]=h,t[11]=0,t[12]=r,t[13]=o,t[14]=a,t[15]=1,t}function Le(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}function De(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function Re(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t}function Ie(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function je(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t}function Ne(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t[4]=e[4]+n[4]*i,t[5]=e[5]+n[5]*i,t[6]=e[6]+n[6]*i,t[7]=e[7]+n[7]*i,t[8]=e[8]+n[8]*i,t[9]=e[9]+n[9]*i,t[10]=e[10]+n[10]*i,t[11]=e[11]+n[11]*i,t[12]=e[12]+n[12]*i,t[13]=e[13]+n[13]*i,t[14]=e[14]+n[14]*i,t[15]=e[15]+n[15]*i,t}function Fe(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function ze(t,e){var n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],d=t[9],h=t[10],f=t[11],m=t[12],v=t[13],g=t[14],b=t[15],y=e[0],_=e[1],w=e[2],x=e[3],C=e[4],S=e[5],E=e[6],T=e[7],O=e[8],k=e[9],A=e[10],P=e[11],M=e[12],L=e[13],D=e[14],R=e[15];return Math.abs(n-y)<=p*Math.max(1,Math.abs(n),Math.abs(y))&&Math.abs(i-_)<=p*Math.max(1,Math.abs(i),Math.abs(_))&&Math.abs(r-w)<=p*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(o-x)<=p*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(a-C)<=p*Math.max(1,Math.abs(a),Math.abs(C))&&Math.abs(s-S)<=p*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(l-E)<=p*Math.max(1,Math.abs(l),Math.abs(E))&&Math.abs(c-T)<=p*Math.max(1,Math.abs(c),Math.abs(T))&&Math.abs(u-O)<=p*Math.max(1,Math.abs(u),Math.abs(O))&&Math.abs(d-k)<=p*Math.max(1,Math.abs(d),Math.abs(k))&&Math.abs(h-A)<=p*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(f-P)<=p*Math.max(1,Math.abs(f),Math.abs(P))&&Math.abs(m-M)<=p*Math.max(1,Math.abs(m),Math.abs(M))&&Math.abs(v-L)<=p*Math.max(1,Math.abs(v),Math.abs(L))&&Math.abs(g-D)<=p*Math.max(1,Math.abs(g),Math.abs(D))&&Math.abs(b-R)<=p*Math.max(1,Math.abs(b),Math.abs(R))}var Be=oe,$e=Ie;function Ue(){var t=new f(3);return f!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function He(t){var e=new f(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function Ve(t){var e=t[0],n=t[1],i=t[2];return Math.hypot(e,n,i)}function Ye(t,e,n){var i=new f(3);return i[0]=t,i[1]=e,i[2]=n,i}function qe(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function We(t,e,n,i){return t[0]=e,t[1]=n,t[2]=i,t}function Ge(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function Xe(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function Ke(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function Ze(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function Je(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function Qe(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function tn(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function en(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function nn(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}function rn(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function on(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t}function an(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return Math.hypot(n,i,r)}function sn(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return n*n+i*i+r*r}function ln(t){var e=t[0],n=t[1],i=t[2];return e*e+n*n+i*i}function cn(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function un(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function dn(t,e){var n=e[0],i=e[1],r=e[2],o=n*n+i*i+r*r;return o>0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t}function hn(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function pn(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[0],s=n[1],l=n[2];return t[0]=r*l-o*s,t[1]=o*a-i*l,t[2]=i*s-r*a,t}function fn(t,e,n,i){var r=e[0],o=e[1],a=e[2];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t[2]=a+i*(n[2]-a),t}function mn(t,e,n,i,r,o){var a=o*o,s=a*(2*o-3)+1,l=a*(o-2)+o,c=a*(o-1),u=a*(3-2*o);return t[0]=e[0]*s+n[0]*l+i[0]*c+r[0]*u,t[1]=e[1]*s+n[1]*l+i[1]*c+r[1]*u,t[2]=e[2]*s+n[2]*l+i[2]*c+r[2]*u,t}function vn(t,e,n,i,r,o){var a=1-o,s=a*a,l=o*o,c=s*a,u=3*o*s,d=3*l*a,h=l*o;return t[0]=e[0]*c+n[0]*u+i[0]*d+r[0]*h,t[1]=e[1]*c+n[1]*u+i[1]*d+r[1]*h,t[2]=e[2]*c+n[2]*u+i[2]*d+r[2]*h,t}function gn(t,e){e=e||1;var n=2*m()*Math.PI,i=2*m()-1,r=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*r,t[1]=Math.sin(n)*r,t[2]=i*e,t}function bn(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[3]*i+n[7]*r+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*i+n[4]*r+n[8]*o+n[12])/a,t[1]=(n[1]*i+n[5]*r+n[9]*o+n[13])/a,t[2]=(n[2]*i+n[6]*r+n[10]*o+n[14])/a,t}function yn(t,e,n){var i=e[0],r=e[1],o=e[2];return t[0]=i*n[0]+r*n[3]+o*n[6],t[1]=i*n[1]+r*n[4]+o*n[7],t[2]=i*n[2]+r*n[5]+o*n[8],t}function _n(t,e,n){var i=n[0],r=n[1],o=n[2],a=n[3],s=e[0],l=e[1],c=e[2],u=r*c-o*l,d=o*s-i*c,h=i*l-r*s,p=r*h-o*d,f=o*u-i*h,m=i*d-r*u,v=2*a;return u*=v,d*=v,h*=v,p*=2,f*=2,m*=2,t[0]=s+u+p,t[1]=l+d+f,t[2]=c+h+m,t}function wn(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0],o[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),o[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function xn(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),o[1]=r[1],o[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function Cn(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),o[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),o[2]=r[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function Sn(t,e){var n=t[0],i=t[1],r=t[2],o=e[0],a=e[1],s=e[2],l=Math.sqrt(n*n+i*i+r*r)*Math.sqrt(o*o+a*a+s*s),c=l&&hn(t,e)/l;return Math.acos(Math.min(Math.max(c,-1),1))}function En(t){return t[0]=0,t[1]=0,t[2]=0,t}function Tn(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function On(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function kn(t,e){var n=t[0],i=t[1],r=t[2],o=e[0],a=e[1],s=e[2];return Math.abs(n-o)<=p*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-a)<=p*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(r-s)<=p*Math.max(1,Math.abs(r),Math.abs(s))}var An,Pn=Xe,Mn=Ke,Ln=Ze,Dn=an,Rn=sn,In=Ve,jn=ln,Nn=(An=Ue(),function(t,e,n,i,r,o){var a,s;for(e||(e=3),n||(n=0),s=i?Math.min(i*e+n,t.length):t.length,a=n;a<s;a+=e)An[0]=t[a],An[1]=t[a+1],An[2]=t[a+2],r(An,An,o),t[a]=An[0],t[a+1]=An[1],t[a+2]=An[2];return t});function Fn(){var t=new f(4);return f!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function zn(t){var e=new f(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function Bn(t,e,n,i){var r=new f(4);return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function $n(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function Un(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function Hn(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function Vn(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function Yn(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function qn(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function Wn(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t}function Gn(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t}function Xn(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t}function Kn(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t}function Zn(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function Jn(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function Qn(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t}function ti(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2],o=e[3]-t[3];return Math.hypot(n,i,r,o)}function ei(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2],o=e[3]-t[3];return n*n+i*i+r*r+o*o}function ni(t){var e=t[0],n=t[1],i=t[2],r=t[3];return Math.hypot(e,n,i,r)}function ii(t){var e=t[0],n=t[1],i=t[2],r=t[3];return e*e+n*n+i*i+r*r}function ri(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}function oi(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t}function ai(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n*n+i*i+r*r+o*o;return a>0&&(a=1/Math.sqrt(a)),t[0]=n*a,t[1]=i*a,t[2]=r*a,t[3]=o*a,t}function si(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function li(t,e,n,i){var r=n[0]*i[1]-n[1]*i[0],o=n[0]*i[2]-n[2]*i[0],a=n[0]*i[3]-n[3]*i[0],s=n[1]*i[2]-n[2]*i[1],l=n[1]*i[3]-n[3]*i[1],c=n[2]*i[3]-n[3]*i[2],u=e[0],d=e[1],h=e[2],p=e[3];return t[0]=d*c-h*l+p*s,t[1]=-u*c+h*a-p*o,t[2]=u*l-d*a+p*r,t[3]=-u*s+d*o-h*r,t}function ci(t,e,n,i){var r=e[0],o=e[1],a=e[2],s=e[3];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t[2]=a+i*(n[2]-a),t[3]=s+i*(n[3]-s),t}function ui(t,e){var n,i,r,o,a,s;e=e||1;do{a=(n=2*m()-1)*n+(i=2*m()-1)*i}while(a>=1);do{s=(r=2*m()-1)*r+(o=2*m()-1)*o}while(s>=1);var l=Math.sqrt((1-a)/s);return t[0]=e*n,t[1]=e*i,t[2]=e*r*l,t[3]=e*o*l,t}function di(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3];return t[0]=n[0]*i+n[4]*r+n[8]*o+n[12]*a,t[1]=n[1]*i+n[5]*r+n[9]*o+n[13]*a,t[2]=n[2]*i+n[6]*r+n[10]*o+n[14]*a,t[3]=n[3]*i+n[7]*r+n[11]*o+n[15]*a,t}function hi(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[0],s=n[1],l=n[2],c=n[3],u=c*i+s*o-l*r,d=c*r+l*i-a*o,h=c*o+a*r-s*i,p=-a*i-s*r-l*o;return t[0]=u*c+p*-a+d*-l-h*-s,t[1]=d*c+p*-s+h*-a-u*-l,t[2]=h*c+p*-l+u*-s-d*-a,t[3]=e[3],t}function pi(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}function fi(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}function mi(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function vi(t,e){var n=t[0],i=t[1],r=t[2],o=t[3],a=e[0],s=e[1],l=e[2],c=e[3];return Math.abs(n-a)<=p*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-s)<=p*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(r-l)<=p*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(o-c)<=p*Math.max(1,Math.abs(o),Math.abs(c))}var gi=Vn,bi=Yn,yi=qn,_i=ti,wi=ei,xi=ni,Ci=ii,Si=function(){var t=Fn();return function(e,n,i,r,o,a){var s,l;for(n||(n=4),i||(i=0),l=r?Math.min(r*n+i,e.length):e.length,s=i;s<l;s+=n)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],t[3]=e[s+3],o(t,t,a),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2],e[s+3]=t[3];return e}}();function Ei(){var t=new f(4);return f!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function Ti(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t}function Oi(t,e,n){n*=.5;var i=Math.sin(n);return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=Math.cos(n),t}function ki(t,e){var n=2*Math.acos(e[3]),i=Math.sin(n/2);return i>p?(t[0]=e[0]/i,t[1]=e[1]/i,t[2]=e[2]/i):(t[0]=1,t[1]=0,t[2]=0),n}function Ai(t,e){var n=rr(t,e);return Math.acos(2*n*n-1)}function Pi(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=n[0],l=n[1],c=n[2],u=n[3];return t[0]=i*u+a*s+r*c-o*l,t[1]=r*u+a*l+o*s-i*c,t[2]=o*u+a*c+i*l-r*s,t[3]=a*u-i*s-r*l-o*c,t}function Mi(t,e,n){n*=.5;var i=e[0],r=e[1],o=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=i*l+a*s,t[1]=r*l+o*s,t[2]=o*l-r*s,t[3]=a*l-i*s,t}function Li(t,e,n){n*=.5;var i=e[0],r=e[1],o=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=i*l-o*s,t[1]=r*l+a*s,t[2]=o*l+i*s,t[3]=a*l-r*s,t}function Di(t,e,n){n*=.5;var i=e[0],r=e[1],o=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=i*l+r*s,t[1]=r*l-i*s,t[2]=o*l+a*s,t[3]=a*l-o*s,t}function Ri(t,e){var n=e[0],i=e[1],r=e[2];return t[0]=n,t[1]=i,t[2]=r,t[3]=Math.sqrt(Math.abs(1-n*n-i*i-r*r)),t}function Ii(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=Math.sqrt(n*n+i*i+r*r),s=Math.exp(o),l=a>0?s*Math.sin(a)/a:0;return t[0]=n*l,t[1]=i*l,t[2]=r*l,t[3]=s*Math.cos(a),t}function ji(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=Math.sqrt(n*n+i*i+r*r),s=a>0?Math.atan2(a,o)/a:0;return t[0]=n*s,t[1]=i*s,t[2]=r*s,t[3]=.5*Math.log(n*n+i*i+r*r+o*o),t}function Ni(t,e,n){return ji(t,e),ir(t,t,n),Ii(t,t),t}function Fi(t,e,n,i){var r,o,a,s,l,c=e[0],u=e[1],d=e[2],h=e[3],f=n[0],m=n[1],v=n[2],g=n[3];return(o=c*f+u*m+d*v+h*g)<0&&(o=-o,f=-f,m=-m,v=-v,g=-g),1-o>p?(r=Math.acos(o),a=Math.sin(r),s=Math.sin((1-i)*r)/a,l=Math.sin(i*r)/a):(s=1-i,l=i),t[0]=s*c+l*f,t[1]=s*u+l*m,t[2]=s*d+l*v,t[3]=s*h+l*g,t}function zi(t){var e=m(),n=m(),i=m(),r=Math.sqrt(1-e),o=Math.sqrt(e);return t[0]=r*Math.sin(2*Math.PI*n),t[1]=r*Math.cos(2*Math.PI*n),t[2]=o*Math.sin(2*Math.PI*i),t[3]=o*Math.cos(2*Math.PI*i),t}function Bi(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n*n+i*i+r*r+o*o,s=a?1/a:0;return t[0]=-n*s,t[1]=-i*s,t[2]=-r*s,t[3]=o*s,t}function $i(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function Ui(t,e){var n,i=e[0]+e[4]+e[8];if(i>0)n=Math.sqrt(i+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{var r=0;e[4]>e[0]&&(r=1),e[8]>e[3*r+r]&&(r=2);var o=(r+1)%3,a=(r+2)%3;n=Math.sqrt(e[3*r+r]-e[3*o+o]-e[3*a+a]+1),t[r]=.5*n,n=.5/n,t[3]=(e[3*o+a]-e[3*a+o])*n,t[o]=(e[3*o+r]+e[3*r+o])*n,t[a]=(e[3*a+r]+e[3*r+a])*n}return t}function Hi(t,e,n,i){var r=.5*Math.PI/180;e*=r,n*=r,i*=r;var o=Math.sin(e),a=Math.cos(e),s=Math.sin(n),l=Math.cos(n),c=Math.sin(i),u=Math.cos(i);return t[0]=o*l*u-a*s*c,t[1]=a*s*u+o*l*c,t[2]=a*l*c-o*s*u,t[3]=a*l*u+o*s*c,t}function Vi(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}var Yi,qi,Wi,Gi,Xi,Ki,Zi=zn,Ji=Bn,Qi=$n,tr=Un,er=Hn,nr=Pi,ir=Jn,rr=si,or=ci,ar=ni,sr=ar,lr=ii,cr=lr,ur=ai,dr=mi,hr=vi,pr=(Yi=Ue(),qi=Ye(1,0,0),Wi=Ye(0,1,0),function(t,e,n){var i=hn(e,n);return i<-.999999?(pn(Yi,qi,e),In(Yi)<1e-6&&pn(Yi,Wi,e),dn(Yi,Yi),Oi(t,Yi,Math.PI),t):i>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(pn(Yi,e,n),t[0]=Yi[0],t[1]=Yi[1],t[2]=Yi[2],t[3]=1+i,ur(t,t))}),fr=(Gi=Ei(),Xi=Ei(),function(t,e,n,i,r,o){return Fi(Gi,e,r,o),Fi(Xi,n,i,o),Fi(t,Gi,Xi,2*o*(1-o)),t}),mr=(Ki=gt(),function(t,e,n,i){return Ki[0]=n[0],Ki[3]=n[1],Ki[6]=n[2],Ki[1]=i[0],Ki[4]=i[1],Ki[7]=i[2],Ki[2]=-e[0],Ki[5]=-e[1],Ki[8]=-e[2],ur(t,Ui(t,Ki))});function vr(){var t=new f(8);return f!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0),t[3]=1,t}function gr(t){var e=new f(8);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e}function br(t,e,n,i,r,o,a,s){var l=new f(8);return l[0]=t,l[1]=e,l[2]=n,l[3]=i,l[4]=r,l[5]=o,l[6]=a,l[7]=s,l}function yr(t,e,n,i,r,o,a){var s=new f(8);s[0]=t,s[1]=e,s[2]=n,s[3]=i;var l=.5*r,c=.5*o,u=.5*a;return s[4]=l*i+c*n-u*e,s[5]=c*i+u*t-l*n,s[6]=u*i+l*e-c*t,s[7]=-l*t-c*e-u*n,s}function _r(t,e,n){var i=.5*n[0],r=.5*n[1],o=.5*n[2],a=e[0],s=e[1],l=e[2],c=e[3];return t[0]=a,t[1]=s,t[2]=l,t[3]=c,t[4]=i*c+r*l-o*s,t[5]=r*c+o*a-i*l,t[6]=o*c+i*s-r*a,t[7]=-i*a-r*s-o*l,t}function wr(t,e){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=.5*e[0],t[5]=.5*e[1],t[6]=.5*e[2],t[7]=0,t}function xr(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=0,t[5]=0,t[6]=0,t[7]=0,t}function Cr(t,e){var n=Ei();xe(n,e);var i=new f(3);return _e(i,e),_r(t,n,i),t}function Sr(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t}function Er(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t}function Tr(t,e,n,i,r,o,a,s,l){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=o,t[5]=a,t[6]=s,t[7]=l,t}var Or=Qi;function kr(t,e){return t[0]=e[4],t[1]=e[5],t[2]=e[6],t[3]=e[7],t}var Ar=Qi;function Pr(t,e){return t[4]=e[0],t[5]=e[1],t[6]=e[2],t[7]=e[3],t}function Mr(t,e){var n=e[4],i=e[5],r=e[6],o=e[7],a=-e[0],s=-e[1],l=-e[2],c=e[3];return t[0]=2*(n*c+o*a+i*l-r*s),t[1]=2*(i*c+o*s+r*a-n*l),t[2]=2*(r*c+o*l+n*s-i*a),t}function Lr(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=.5*n[0],l=.5*n[1],c=.5*n[2],u=e[4],d=e[5],h=e[6],p=e[7];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=a*s+r*c-o*l+u,t[5]=a*l+o*s-i*c+d,t[6]=a*c+i*l-r*s+h,t[7]=-i*s-r*l-o*c+p,t}function Dr(t,e,n){var i=-e[0],r=-e[1],o=-e[2],a=e[3],s=e[4],l=e[5],c=e[6],u=e[7],d=s*a+u*i+l*o-c*r,h=l*a+u*r+c*i-s*o,p=c*a+u*o+s*r-l*i,f=u*a-s*i-l*r-c*o;return Mi(t,e,n),i=t[0],r=t[1],o=t[2],a=t[3],t[4]=d*a+f*i+h*o-p*r,t[5]=h*a+f*r+p*i-d*o,t[6]=p*a+f*o+d*r-h*i,t[7]=f*a-d*i-h*r-p*o,t}function Rr(t,e,n){var i=-e[0],r=-e[1],o=-e[2],a=e[3],s=e[4],l=e[5],c=e[6],u=e[7],d=s*a+u*i+l*o-c*r,h=l*a+u*r+c*i-s*o,p=c*a+u*o+s*r-l*i,f=u*a-s*i-l*r-c*o;return Li(t,e,n),i=t[0],r=t[1],o=t[2],a=t[3],t[4]=d*a+f*i+h*o-p*r,t[5]=h*a+f*r+p*i-d*o,t[6]=p*a+f*o+d*r-h*i,t[7]=f*a-d*i-h*r-p*o,t}function Ir(t,e,n){var i=-e[0],r=-e[1],o=-e[2],a=e[3],s=e[4],l=e[5],c=e[6],u=e[7],d=s*a+u*i+l*o-c*r,h=l*a+u*r+c*i-s*o,p=c*a+u*o+s*r-l*i,f=u*a-s*i-l*r-c*o;return Di(t,e,n),i=t[0],r=t[1],o=t[2],a=t[3],t[4]=d*a+f*i+h*o-p*r,t[5]=h*a+f*r+p*i-d*o,t[6]=p*a+f*o+d*r-h*i,t[7]=f*a-d*i-h*r-p*o,t}function jr(t,e,n){var i=n[0],r=n[1],o=n[2],a=n[3],s=e[0],l=e[1],c=e[2],u=e[3];return t[0]=s*a+u*i+l*o-c*r,t[1]=l*a+u*r+c*i-s*o,t[2]=c*a+u*o+s*r-l*i,t[3]=u*a-s*i-l*r-c*o,s=e[4],l=e[5],c=e[6],u=e[7],t[4]=s*a+u*i+l*o-c*r,t[5]=l*a+u*r+c*i-s*o,t[6]=c*a+u*o+s*r-l*i,t[7]=u*a-s*i-l*r-c*o,t}function Nr(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=n[0],l=n[1],c=n[2],u=n[3];return t[0]=i*u+a*s+r*c-o*l,t[1]=r*u+a*l+o*s-i*c,t[2]=o*u+a*c+i*l-r*s,t[3]=a*u-i*s-r*l-o*c,s=n[4],l=n[5],c=n[6],u=n[7],t[4]=i*u+a*s+r*c-o*l,t[5]=r*u+a*l+o*s-i*c,t[6]=o*u+a*c+i*l-r*s,t[7]=a*u-i*s-r*l-o*c,t}function Fr(t,e,n,i){if(Math.abs(i)<p)return Sr(t,e);var r=Math.hypot(n[0],n[1],n[2]);i*=.5;var o=Math.sin(i),a=o*n[0]/r,s=o*n[1]/r,l=o*n[2]/r,c=Math.cos(i),u=e[0],d=e[1],h=e[2],f=e[3];t[0]=u*c+f*a+d*l-h*s,t[1]=d*c+f*s+h*a-u*l,t[2]=h*c+f*l+u*s-d*a,t[3]=f*c-u*a-d*s-h*l;var m=e[4],v=e[5],g=e[6],b=e[7];return t[4]=m*c+b*a+v*l-g*s,t[5]=v*c+b*s+g*a-m*l,t[6]=g*c+b*l+m*s-v*a,t[7]=b*c-m*a-v*s-g*l,t}function zr(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t}function Br(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=n[4],l=n[5],c=n[6],u=n[7],d=e[4],h=e[5],p=e[6],f=e[7],m=n[0],v=n[1],g=n[2],b=n[3];return t[0]=i*b+a*m+r*g-o*v,t[1]=r*b+a*v+o*m-i*g,t[2]=o*b+a*g+i*v-r*m,t[3]=a*b-i*m-r*v-o*g,t[4]=i*u+a*s+r*c-o*l+d*b+f*m+h*g-p*v,t[5]=r*u+a*l+o*s-i*c+h*b+f*v+p*m-d*g,t[6]=o*u+a*c+i*l-r*s+p*b+f*g+d*v-h*m,t[7]=a*u-i*s-r*l-o*c+f*b-d*m-h*v-p*g,t}var $r=Br;function Ur(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t}var Hr=rr;function Vr(t,e,n,i){var r=1-i;return Hr(e,n)<0&&(i=-i),t[0]=e[0]*r+n[0]*i,t[1]=e[1]*r+n[1]*i,t[2]=e[2]*r+n[2]*i,t[3]=e[3]*r+n[3]*i,t[4]=e[4]*r+n[4]*i,t[5]=e[5]*r+n[5]*i,t[6]=e[6]*r+n[6]*i,t[7]=e[7]*r+n[7]*i,t}function Yr(t,e){var n=Xr(e);return t[0]=-e[0]/n,t[1]=-e[1]/n,t[2]=-e[2]/n,t[3]=e[3]/n,t[4]=-e[4]/n,t[5]=-e[5]/n,t[6]=-e[6]/n,t[7]=e[7]/n,t}function qr(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t[4]=-e[4],t[5]=-e[5],t[6]=-e[6],t[7]=e[7],t}var Wr=ar,Gr=Wr,Xr=lr,Kr=Xr;function Zr(t,e){var n=Xr(e);if(n>0){n=Math.sqrt(n);var i=e[0]/n,r=e[1]/n,o=e[2]/n,a=e[3]/n,s=e[4],l=e[5],c=e[6],u=e[7],d=i*s+r*l+o*c+a*u;t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=(s-i*d)/n,t[5]=(l-r*d)/n,t[6]=(c-o*d)/n,t[7]=(u-a*d)/n}return t}function Jr(t){return"quat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+")"}function Qr(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]}function to(t,e){var n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=e[0],d=e[1],h=e[2],f=e[3],m=e[4],v=e[5],g=e[6],b=e[7];return Math.abs(n-u)<=p*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(i-d)<=p*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(r-h)<=p*Math.max(1,Math.abs(r),Math.abs(h))&&Math.abs(o-f)<=p*Math.max(1,Math.abs(o),Math.abs(f))&&Math.abs(a-m)<=p*Math.max(1,Math.abs(a),Math.abs(m))&&Math.abs(s-v)<=p*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(l-g)<=p*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(c-b)<=p*Math.max(1,Math.abs(c),Math.abs(b))}function eo(){var t=new f(2);return f!=Float32Array&&(t[0]=0,t[1]=0),t}function no(t){var e=new f(2);return e[0]=t[0],e[1]=t[1],e}function io(t,e){var n=new f(2);return n[0]=t,n[1]=e,n}function ro(t,e){return t[0]=e[0],t[1]=e[1],t}function oo(t,e,n){return t[0]=e,t[1]=n,t}function ao(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function so(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function lo(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function co(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function uo(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function ho(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function po(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function fo(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function mo(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function vo(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function go(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function bo(t,e){var n=e[0]-t[0],i=e[1]-t[1];return Math.hypot(n,i)}function yo(t,e){var n=e[0]-t[0],i=e[1]-t[1];return n*n+i*i}function _o(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function wo(t){var e=t[0],n=t[1];return e*e+n*n}function xo(t,e){return t[0]=-e[0],t[1]=-e[1],t}function Co(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function So(t,e){var n=e[0],i=e[1],r=n*n+i*i;return r>0&&(r=1/Math.sqrt(r)),t[0]=e[0]*r,t[1]=e[1]*r,t}function Eo(t,e){return t[0]*e[0]+t[1]*e[1]}function To(t,e,n){var i=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=i,t}function Oo(t,e,n,i){var r=e[0],o=e[1];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t}function ko(t,e){e=e||1;var n=2*m()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function Ao(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r,t[1]=n[1]*i+n[3]*r,t}function Po(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function Mo(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[3]*r+n[6],t[1]=n[1]*i+n[4]*r+n[7],t}function Lo(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[4]*r+n[12],t[1]=n[1]*i+n[5]*r+n[13],t}function Do(t,e,n,i){var r=e[0]-n[0],o=e[1]-n[1],a=Math.sin(i),s=Math.cos(i);return t[0]=r*s-o*a+n[0],t[1]=r*a+o*s+n[1],t}function Ro(t,e){var n=t[0],i=t[1],r=e[0],o=e[1],a=Math.sqrt(n*n+i*i)*Math.sqrt(r*r+o*o),s=a&&(n*r+i*o)/a;return Math.acos(Math.min(Math.max(s,-1),1))}function Io(t){return t[0]=0,t[1]=0,t}function jo(t){return"vec2("+t[0]+", "+t[1]+")"}function No(t,e){return t[0]===e[0]&&t[1]===e[1]}function Fo(t,e){var n=t[0],i=t[1],r=e[0],o=e[1];return Math.abs(n-r)<=p*Math.max(1,Math.abs(n),Math.abs(r))&&Math.abs(i-o)<=p*Math.max(1,Math.abs(i),Math.abs(o))}var zo=_o,Bo=so,$o=lo,Uo=co,Ho=bo,Vo=yo,Yo=wo,qo=function(){var t=eo();return function(e,n,i,r,o,a){var s,l;for(n||(n=2),i||(i=0),l=r?Math.min(r*n+i,e.length):e.length,s=i;s<l;s+=n)t[0]=e[s],t[1]=e[s+1],o(t,t,a),e[s]=t[0],e[s+1]=t[1];return e}}()},7168:(t,e,n)=>{var i;!function(r,o,a,s){"use strict";var l=["","webkit","moz","MS","ms","o"],c=o.createElement("div"),u="function",d=Math.round,h=Math.abs,p=Date.now;function f(t,e,n){return setTimeout(_(t,n),e)}function m(t,e,n){return!!Array.isArray(t)&&(v(t,n[e],n),!0)}function v(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==s)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function g(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&t[i[r]]===s)&&(t[i[r]]=e[i[r]]),r++;return t}function b(t,e){return g(t,e,!0)}function y(t,e,n){var i,r=e.prototype;(i=t.prototype=Object.create(r)).constructor=t,i._super=r,n&&g(i,n)}function _(t,e){return function(){return t.apply(e,arguments)}}function w(t,e){return typeof t==u?t.apply(e&&e[0]||s,e):t}function x(t,e){return t===s?e:t}function C(t,e,n){v(O(e),(function(e){t.addEventListener(e,n,!1)}))}function S(t,e,n){v(O(e),(function(e){t.removeEventListener(e,n,!1)}))}function E(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function T(t,e){return t.indexOf(e)>-1}function O(t){return t.trim().split(/\s+/g)}function k(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function A(t){return Array.prototype.slice.call(t,0)}function P(t,e,n){for(var i=[],r=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];k(r,a)<0&&i.push(t[o]),r[o]=a,o++}return n&&(i=e?i.sort((function(t,n){return t[e]>n[e]})):i.sort()),i}function M(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),o=0;o<l.length;){if((i=(n=l[o])?n+r:e)in t)return i;o++}return s}var L=1;function D(t){var e=t.ownerDocument;return e.defaultView||e.parentWindow}var R="ontouchstart"in r,I=M(r,"PointerEvent")!==s,j=R&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),N="touch",F="mouse",z=25,B=1,$=4,U=8,H=1,V=2,Y=4,q=8,W=16,G=V|Y,X=q|W,K=G|X,Z=["x","y"],J=["clientX","clientY"];function Q(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){w(t.options.enable,[t])&&n.handler(e)},this.init()}function tt(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=e&B&&i-r==0,a=e&($|U)&&i-r==0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=et(e));r>1&&!n.firstMultiple?n.firstMultiple=et(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,l=a?a.center:o.center,c=e.center=nt(i);e.timeStamp=p(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=ot(l,c),e.distance=rt(l,c),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==B&&o.eventType!==$||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y});e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}(n,e),e.offsetDirection=it(e.deltaX,e.deltaY),e.scale=a?(u=a.pointers,d=i,rt(d[0],d[1],J)/rt(u[0],u[1],J)):1,e.rotation=a?function(t,e){return ot(e[1],e[0],J)-ot(t[1],t[0],J)}(a.pointers,i):0,function(t,e){var n,i,r,o,a=t.lastInterval||e,l=e.timeStamp-a.timeStamp;if(e.eventType!=U&&(l>z||a.velocity===s)){var c=a.deltaX-e.deltaX,u=a.deltaY-e.deltaY,d=function(t,e,n){return{x:e/t||0,y:n/t||0}}(l,c,u);i=d.x,r=d.y,n=h(d.x)>h(d.y)?d.x:d.y,o=it(c,u),t.lastInterval=e}else n=a.velocity,i=a.velocityX,r=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}(n,e);var u,d;var f=t.element;E(e.srcEvent.target,f)&&(f=e.srcEvent.target);e.target=f}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function et(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:d(t.pointers[n].clientX),clientY:d(t.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:e,center:nt(e),deltaX:t.deltaX,deltaY:t.deltaY}}function nt(t){var e=t.length;if(1===e)return{x:d(t[0].clientX),y:d(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:d(n/e),y:d(i/e)}}function it(t,e){return t===e?H:h(t)>=h(e)?t>0?V:Y:e>0?q:W}function rt(t,e,n){n||(n=Z);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function ot(t,e,n){n||(n=Z);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}Q.prototype={handler:function(){},init:function(){this.evEl&&C(this.element,this.evEl,this.domHandler),this.evTarget&&C(this.target,this.evTarget,this.domHandler),this.evWin&&C(D(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(D(this.element),this.evWin,this.domHandler)}};var at={mousedown:B,mousemove:2,mouseup:$},st="mousedown",lt="mousemove mouseup";function ct(){this.evEl=st,this.evWin=lt,this.allow=!0,this.pressed=!1,Q.apply(this,arguments)}y(ct,Q,{handler:function(t){var e=at[t.type];e&B&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=$),this.pressed&&this.allow&&(e&$&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:F,srcEvent:t}))}});var ut={pointerdown:B,pointermove:2,pointerup:$,pointercancel:U,pointerout:U},dt={2:N,3:"pen",4:F,5:"kinect"},ht="pointerdown",pt="pointermove pointerup pointercancel";function ft(){this.evEl=ht,this.evWin=pt,Q.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&(ht="MSPointerDown",pt="MSPointerMove MSPointerUp MSPointerCancel"),y(ft,Q,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=ut[i],o=dt[t.pointerType]||t.pointerType,a=o==N,s=k(e,t.pointerId,"pointerId");r&B&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):r&($|U)&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var mt={touchstart:B,touchmove:2,touchend:$,touchcancel:U};function vt(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,Q.apply(this,arguments)}function gt(t,e){var n=A(t.touches),i=A(t.changedTouches);return e&($|U)&&(n=P(n.concat(i),"identifier",!0)),[n,i]}y(vt,Q,{handler:function(t){var e=mt[t.type];if(e===B&&(this.started=!0),this.started){var n=gt.call(this,t,e);e&($|U)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:N,srcEvent:t})}}});var bt={touchstart:B,touchmove:2,touchend:$,touchcancel:U},yt="touchstart touchmove touchend touchcancel";function _t(){this.evTarget=yt,this.targetIds={},Q.apply(this,arguments)}function wt(t,e){var n=A(t.touches),i=this.targetIds;if(e&(2|B)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,a=A(t.changedTouches),s=[],l=this.target;if(o=n.filter((function(t){return E(t.target,l)})),e===B)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;for(r=0;r<a.length;)i[a[r].identifier]&&s.push(a[r]),e&($|U)&&delete i[a[r].identifier],r++;return s.length?[P(o.concat(s),"identifier",!0),s]:void 0}function xt(){Q.apply(this,arguments);var t=_(this.handler,this);this.touch=new _t(this.manager,t),this.mouse=new ct(this.manager,t)}y(_t,Q,{handler:function(t){var e=bt[t.type],n=wt.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:N,srcEvent:t})}}),y(xt,Q,{handler:function(t,e,n){var i=n.pointerType==N,r=n.pointerType==F;if(i)this.mouse.allow=!1;else if(r&&!this.mouse.allow)return;e&($|U)&&(this.mouse.allow=!0),this.callback(t,e,n)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Ct=M(c.style,"touchAction"),St=Ct!==s,Et="compute",Tt="auto",Ot="manipulation",kt="none",At="pan-x",Pt="pan-y";function Mt(t,e){this.manager=t,this.set(e)}Mt.prototype={set:function(t){t==Et&&(t=this.compute()),St&&(this.manager.element.style[Ct]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return v(this.manager.recognizers,(function(e){w(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(T(t,kt))return kt;var e=T(t,At),n=T(t,Pt);if(e&&n)return At+" "+Pt;if(e||n)return e?At:Pt;if(T(t,Ot))return Ot;return Tt}(t.join(" "))},preventDefaults:function(t){if(!St){var e=t.srcEvent,n=t.offsetDirection;if(!this.manager.session.prevented){var i=this.actions,r=T(i,kt),o=T(i,Pt),a=T(i,At);return r||o&&n&G||a&&n&X?this.preventSrc(e):void 0}e.preventDefault()}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Lt=1,Dt=16,Rt=32;function It(t){this.id=L++,this.manager=null,this.options=b(t||{},this.defaults),this.options.enable=x(this.options.enable,!0),this.state=Lt,this.simultaneous={},this.requireFail=[]}function jt(t){return t==W?"down":t==q?"up":t==V?"left":t==Y?"right":""}function Nt(t,e){var n=e.manager;return n?n.get(t):t}function Ft(){It.apply(this,arguments)}function zt(){Ft.apply(this,arguments),this.pX=null,this.pY=null}function Bt(){Ft.apply(this,arguments)}function $t(){It.apply(this,arguments),this._timer=null,this._input=null}function Ut(){Ft.apply(this,arguments)}function Ht(){Ft.apply(this,arguments)}function Vt(){It.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Yt(t,e){return(e=e||{}).recognizers=x(e.recognizers,Yt.defaults.preset),new qt(t,e)}It.prototype={defaults:{},set:function(t){return g(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(m(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Nt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return m(t,"dropRecognizeWith",this)||(t=Nt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(m(t,"requireFailure",this))return this;var e=this.requireFail;return-1===k(e,t=Nt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(m(t,"dropRequireFailure",this))return this;t=Nt(t,this);var e=k(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function i(i){e.manager.emit(e.options.event+(i?function(t){if(t&Dt)return"cancel";if(8&t)return"end";if(4&t)return"move";if(2&t)return"start";return""}(n):""),t)}n<8&&i(!0),i(),n>=8&&i(!0)},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=Rt},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(Rt|Lt)))return!1;t++}return!0},recognize:function(t){var e=g({},t);if(!w(this.options.enable,[this,e]))return this.reset(),void(this.state=Rt);56&this.state&&(this.state=Lt),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},y(Ft,It,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=6&e,r=this.attrTest(t);return i&&(n&U||!r)?e|Dt:i||r?n&$?8|e:2&e?4|e:2:Rt}}),y(zt,Ft,{defaults:{event:"pan",threshold:10,pointers:1,direction:K},getTouchAction:function(){var t=this.options.direction,e=[];return t&G&&e.push(Pt),t&X&&e.push(At),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,o=t.deltaX,a=t.deltaY;return r&e.direction||(e.direction&G?(r=0===o?H:o<0?V:Y,n=o!=this.pX,i=Math.abs(t.deltaX)):(r=0===a?H:a<0?q:W,n=a!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return Ft.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=jt(t.direction);e&&this.manager.emit(this.options.event+e,t),this._super.emit.call(this,t)}}),y(Bt,Ft,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[kt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(this._super.emit.call(this,t),1!==t.scale){var e=t.scale<1?"in":"out";this.manager.emit(this.options.event+e,t)}}}),y($t,It,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return[Tt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||t.eventType&($|U)&&!r)this.reset();else if(t.eventType&B)this.reset(),this._timer=f((function(){this.state=8,this.tryEmit()}),e.time,this);else if(t.eventType&$)return 8;return Rt},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&t.eventType&$?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),y(Ut,Ft,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[kt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),y(Ht,Ft,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:G|X,pointers:1},getTouchAction:function(){return zt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(G|X)?e=t.velocity:n&G?e=t.velocityX:n&X&&(e=t.velocityY),this._super.attrTest.call(this,t)&&n&t.direction&&t.distance>this.options.threshold&&h(e)>this.options.velocity&&t.eventType&$},emit:function(t){var e=jt(t.direction);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),y(Vt,It,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[Ot]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&B&&0===this.count)return this.failTimeout();if(i&&r&&n){if(t.eventType!=$)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||rt(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=f((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return Rt},failTimeout:function(){return this._timer=f((function(){this.state=Rt}),this.options.interval,this),Rt},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Yt.VERSION="2.0.4",Yt.defaults={domEvents:!1,touchAction:Et,enable:!0,inputTarget:null,inputClass:null,preset:[[Ut,{enable:!1}],[Bt,{enable:!1},["rotate"]],[Ht,{direction:G}],[zt,{direction:G},["swipe"]],[Vt],[Vt,{event:"doubletap",taps:2},["tap"]],[$t]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function qt(t,e){var n;e=e||{},this.options=b(e,Yt.defaults),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.element=t,this.input=new((n=this).options.inputClass||(I?ft:j?_t:R?xt:ct))(n,tt),this.touchAction=new Mt(this,this.options.touchAction),Wt(this,!0),v(e.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function Wt(t,e){var n=t.element;v(t.options.cssProps,(function(t,i){n.style[M(n.style,i)]=e?t:""}))}qt.prototype={set:function(t){return g(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,r=e.curRecognizer;(!r||r&&8&r.state)&&(r=e.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&14&n.state&&(r=e.curRecognizer=n),o++}},get:function(t){if(t instanceof It)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(m(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(m(t,"remove",this))return this;var e=this.recognizers;return t=this.get(t),e.splice(k(e,t),1),this.touchAction.update(),this},on:function(t,e){var n=this.handlers;return v(O(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this},off:function(t,e){var n=this.handlers;return v(O(t),(function(t){e?n[t].splice(k(n[t],e),1):delete n[t]})),this},emit:function(t,e){this.options.domEvents&&function(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},destroy:function(){this.element&&Wt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},g(Yt,{INPUT_START:B,INPUT_MOVE:2,INPUT_END:$,INPUT_CANCEL:U,STATE_POSSIBLE:Lt,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:Dt,STATE_FAILED:Rt,DIRECTION_NONE:H,DIRECTION_LEFT:V,DIRECTION_RIGHT:Y,DIRECTION_UP:q,DIRECTION_DOWN:W,DIRECTION_HORIZONTAL:G,DIRECTION_VERTICAL:X,DIRECTION_ALL:K,Manager:qt,Input:Q,TouchAction:Mt,TouchInput:_t,MouseInput:ct,PointerEventInput:ft,TouchMouseInput:xt,SingleTouchInput:vt,Recognizer:It,AttrRecognizer:Ft,Tap:Vt,Pan:zt,Swipe:Ht,Pinch:Bt,Rotate:Ut,Press:$t,on:C,off:S,each:v,merge:b,extend:g,inherit:y,bindFn:_,prefixed:M}),"function"==u&&n.amdO?(i=function(){return Yt}.call(e,n,e,t))===s||(t.exports=i):t.exports?t.exports=Yt:r.Hammer=Yt}(window,document)},7297:t=>{function e(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}t.exports=e,t.exports.default=e},4692:function(t,e){var n;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(i,r){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,l=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},c=o.push,u=o.indexOf,d={},h=d.toString,p=d.hasOwnProperty,f=p.toString,m=f.call(Object),v={},g=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},b=function(t){return null!=t&&t===t.window},y=i.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function w(t,e,n){var i,r,o=(n=n||y).createElement("script");if(o.text=t,e)for(i in _)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function x(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?d[h.call(t)]||"object":typeof t}var C="3.6.0",S=function(t,e){return new S.fn.init(t,e)};function E(t){var e=!!t&&"length"in t&&t.length,n=x(t);return!g(t)&&!b(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}S.fn=S.prototype={jquery:C,constructor:S,length:0,toArray:function(){return s.call(this)},get:function(t){return null==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=S.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return S.each(this,t)},map:function(t){return this.pushStack(S.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(S.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},S.extend=S.fn.extend=function(){var t,e,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||g(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)i=t[e],"__proto__"!==e&&a!==i&&(c&&i&&(S.isPlainObject(i)||(r=Array.isArray(i)))?(n=a[e],o=r&&!Array.isArray(n)?[]:r||S.isPlainObject(n)?n:{},r=!1,a[e]=S.extend(c,o,i)):void 0!==i&&(a[e]=i));return a},S.extend({expando:"jQuery"+(C+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==h.call(t))&&(!(e=a(t))||"function"==typeof(n=p.call(e,"constructor")&&e.constructor)&&f.call(n)===m)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){w(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(E(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},makeArray:function(t,e){var n=e||[];return null!=t&&(E(Object(t))?S.merge(n,"string"==typeof t?[t]:t):c.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:u.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,a=!n;r<o;r++)!e(t[r],r)!==a&&i.push(t[r]);return i},map:function(t,e,n){var i,r,o=0,a=[];if(E(t))for(i=t.length;o<i;o++)null!=(r=e(t[o],o,n))&&a.push(r);else for(o in t)null!=(r=e(t[o],o,n))&&a.push(r);return l(a)},guid:1,support:v}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=o[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){d["[object "+e+"]"]=e.toLowerCase()}));var T=function(t){var e,n,i,r,o,a,s,l,c,u,d,h,p,f,m,v,g,b,y,_="sizzle"+1*new Date,w=t.document,x=0,C=0,S=lt(),E=lt(),T=lt(),O=lt(),k=function(t,e){return t===e&&(d=!0),0},A={}.hasOwnProperty,P=[],M=P.pop,L=P.push,D=P.push,R=P.slice,I=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},j="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",N="[\\x20\\t\\r\\n\\f]",F="(?:\\\\[\\da-fA-F]{1,6}"+N+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",z="\\["+N+"*("+F+")(?:"+N+"*([*^$|!~]?=)"+N+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+N+"*\\]",B=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",$=new RegExp(N+"+","g"),U=new RegExp("^"+N+"+|((?:^|[^\\\\])(?:\\\\.)*)"+N+"+$","g"),H=new RegExp("^"+N+"*,"+N+"*"),V=new RegExp("^"+N+"*([>+~]|"+N+")"+N+"*"),Y=new RegExp(N+"|>"),q=new RegExp(B),W=new RegExp("^"+F+"$"),G={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+N+"*(even|odd|(([+-]|)(\\d*)n|)"+N+"*(?:([+-]|)"+N+"*(\\d+)|))"+N+"*\\)|)","i"),bool:new RegExp("^(?:"+j+")$","i"),needsContext:new RegExp("^"+N+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+N+"*((?:-\\d)?\\d*)"+N+"*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+N+"?|\\\\([^\\r\\n\\f])","g"),nt=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},it=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,rt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){h()},at=_t((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{D.apply(P=R.call(w.childNodes),w.childNodes),P[w.childNodes.length].nodeType}catch(t){D={apply:P.length?function(t,e){L.apply(t,R.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function st(t,e,i,r){var o,s,c,u,d,f,g,b=e&&e.ownerDocument,w=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==w&&9!==w&&11!==w)return i;if(!r&&(h(e),e=e||p,m)){if(11!==w&&(d=Q.exec(t)))if(o=d[1]){if(9===w){if(!(c=e.getElementById(o)))return i;if(c.id===o)return i.push(c),i}else if(b&&(c=b.getElementById(o))&&y(e,c)&&c.id===o)return i.push(c),i}else{if(d[2])return D.apply(i,e.getElementsByTagName(t)),i;if((o=d[3])&&n.getElementsByClassName&&e.getElementsByClassName)return D.apply(i,e.getElementsByClassName(o)),i}if(n.qsa&&!O[t+" "]&&(!v||!v.test(t))&&(1!==w||"object"!==e.nodeName.toLowerCase())){if(g=t,b=e,1===w&&(Y.test(t)||V.test(t))){for((b=tt.test(t)&&gt(e.parentNode)||e)===e&&n.scope||((u=e.getAttribute("id"))?u=u.replace(it,rt):e.setAttribute("id",u=_)),s=(f=a(t)).length;s--;)f[s]=(u?"#"+u:":scope")+" "+yt(f[s]);g=f.join(",")}try{return D.apply(i,b.querySelectorAll(g)),i}catch(e){O(t,!0)}finally{u===_&&e.removeAttribute("id")}}}return l(t.replace(U,"$1"),e,i,r)}function lt(){var t=[];return function e(n,r){return t.push(n+" ")>i.cacheLength&&delete e[t.shift()],e[n+" "]=r}}function ct(t){return t[_]=!0,t}function ut(t){var e=p.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function dt(t,e){for(var n=t.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=e}function ht(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function pt(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ft(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function mt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&at(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function vt(t){return ct((function(e){return e=+e,ct((function(n,i){for(var r,o=t([],n.length,e),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))}))}))}function gt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=st.support={},o=st.isXML=function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!X.test(e||n&&n.nodeName||"HTML")},h=st.setDocument=function(t){var e,r,a=t?t.ownerDocument||t:w;return a!=p&&9===a.nodeType&&a.documentElement?(f=(p=a).documentElement,m=!o(p),w!=p&&(r=p.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ot,!1):r.attachEvent&&r.attachEvent("onunload",ot)),n.scope=ut((function(t){return f.appendChild(t).appendChild(p.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),n.attributes=ut((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=ut((function(t){return t.appendChild(p.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(p.getElementsByClassName),n.getById=ut((function(t){return f.appendChild(t).id=_,!p.getElementsByName||!p.getElementsByName(_).length})),n.getById?(i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var n=e.getElementById(t);return n?[n]:[]}}):(i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),i.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},i.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&m)return e.getElementsByClassName(t)},g=[],v=[],(n.qsa=J.test(p.querySelectorAll))&&(ut((function(t){var e;f.appendChild(t).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+N+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||v.push("\\["+N+"*(?:value|"+j+")"),t.querySelectorAll("[id~="+_+"-]").length||v.push("~="),(e=p.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||v.push("\\["+N+"*name"+N+"*="+N+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||v.push(":checked"),t.querySelectorAll("a#"+_+"+*").length||v.push(".#.+[+~]"),t.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")})),ut((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=p.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&v.push("name"+N+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),f.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),v.push(",.*:")}))),(n.matchesSelector=J.test(b=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ut((function(t){n.disconnectedMatch=b.call(t,"*"),b.call(t,"[s!='']:x"),g.push("!=",B)})),v=v.length&&new RegExp(v.join("|")),g=g.length&&new RegExp(g.join("|")),e=J.test(f.compareDocumentPosition),y=e||J.test(f.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},k=e?function(t,e){if(t===e)return d=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===i?t==p||t.ownerDocument==w&&y(w,t)?-1:e==p||e.ownerDocument==w&&y(w,e)?1:u?I(u,t)-I(u,e):0:4&i?-1:1)}:function(t,e){if(t===e)return d=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!r||!o)return t==p?-1:e==p?1:r?-1:o?1:u?I(u,t)-I(u,e):0;if(r===o)return ht(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?ht(a[i],s[i]):a[i]==w?-1:s[i]==w?1:0},p):p},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if(h(t),n.matchesSelector&&m&&!O[e+" "]&&(!g||!g.test(e))&&(!v||!v.test(e)))try{var i=b.call(t,e);if(i||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){O(e,!0)}return st(e,p,null,[t]).length>0},st.contains=function(t,e){return(t.ownerDocument||t)!=p&&h(t),y(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!=p&&h(t);var r=i.attrHandle[e.toLowerCase()],o=r&&A.call(i.attrHandle,e.toLowerCase())?r(t,e,!m):void 0;return void 0!==o?o:n.attributes||!m?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},st.escape=function(t){return(t+"").replace(it,rt)},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var e,i=[],r=0,o=0;if(d=!n.detectDuplicates,u=!n.sortStable&&t.slice(0),t.sort(k),d){for(;e=t[o++];)e===t[o]&&(r=i.push(o));for(;r--;)t.splice(i[r],1)}return u=null,t},r=st.getText=function(t){var e,n="",i=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=r(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[i++];)n+=r(e);return n},i=st.selectors={cacheLength:50,createPseudo:ct,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||st.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&st.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return G.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&q.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=S[t+" "];return e||(e=new RegExp("(^|"+N+")"+t+"("+N+"|$)"))&&S(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(i){var r=st.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace($," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var c,u,d,h,p,f,m=o!==a?"nextSibling":"previousSibling",v=e.parentNode,g=s&&e.nodeName.toLowerCase(),b=!l&&!s,y=!1;if(v){if(o){for(;m;){for(h=e;h=h[m];)if(s?h.nodeName.toLowerCase()===g:1===h.nodeType)return!1;f=m="only"===t&&!f&&"nextSibling"}return!0}if(f=[a?v.firstChild:v.lastChild],a&&b){for(y=(p=(c=(u=(d=(h=v)[_]||(h[_]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===x&&c[1])&&c[2],h=p&&v.childNodes[p];h=++p&&h&&h[m]||(y=p=0)||f.pop();)if(1===h.nodeType&&++y&&h===e){u[t]=[x,p,y];break}}else if(b&&(y=p=(c=(u=(d=(h=e)[_]||(h[_]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===x&&c[1]),!1===y)for(;(h=++p&&h&&h[m]||(y=p=0)||f.pop())&&((s?h.nodeName.toLowerCase()!==g:1!==h.nodeType)||!++y||(b&&((u=(d=h[_]||(h[_]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]=[x,y]),h!==e)););return(y-=r)===i||y%i==0&&y/i>=0}}},PSEUDO:function(t,e){var n,r=i.pseudos[t]||i.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return r[_]?r(e):r.length>1?(n=[t,t,"",e],i.setFilters.hasOwnProperty(t.toLowerCase())?ct((function(t,n){for(var i,o=r(t,e),a=o.length;a--;)t[i=I(t,o[a])]=!(n[i]=o[a])})):function(t){return r(t,0,n)}):r}},pseudos:{not:ct((function(t){var e=[],n=[],i=s(t.replace(U,"$1"));return i[_]?ct((function(t,e,n,r){for(var o,a=i(t,null,r,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))})):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}})),has:ct((function(t){return function(e){return st(t,e).length>0}})),contains:ct((function(t){return t=t.replace(et,nt),function(e){return(e.textContent||r(e)).indexOf(t)>-1}})),lang:ct((function(t){return W.test(t||"")||st.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=m?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===f},focus:function(t){return t===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:mt(!1),disabled:mt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!i.pseudos.empty(t)},header:function(t){return Z.test(t.nodeName)},input:function(t){return K.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:vt((function(){return[0]})),last:vt((function(t,e){return[e-1]})),eq:vt((function(t,e,n){return[n<0?n+e:n]})),even:vt((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:vt((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:vt((function(t,e,n){for(var i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t})),gt:vt((function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t}))}},i.pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[e]=pt(e);for(e in{submit:!0,reset:!0})i.pseudos[e]=ft(e);function bt(){}function yt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function _t(t,e,n){var i=e.dir,r=e.next,o=r||i,a=n&&"parentNode"===o,s=C++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||a)return t(e,n,r);return!1}:function(e,n,l){var c,u,d,h=[x,s];if(l){for(;e=e[i];)if((1===e.nodeType||a)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||a)if(u=(d=e[_]||(e[_]={}))[e.uniqueID]||(d[e.uniqueID]={}),r&&r===e.nodeName.toLowerCase())e=e[i]||e;else{if((c=u[o])&&c[0]===x&&c[1]===s)return h[2]=c[2];if(u[o]=h,h[2]=t(e,n,l))return!0}return!1}}function wt(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function xt(t,e,n,i,r){for(var o,a=[],s=0,l=t.length,c=null!=e;s<l;s++)(o=t[s])&&(n&&!n(o,i,r)||(a.push(o),c&&e.push(s)));return a}function Ct(t,e,n,i,r,o){return i&&!i[_]&&(i=Ct(i)),r&&!r[_]&&(r=Ct(r,o)),ct((function(o,a,s,l){var c,u,d,h=[],p=[],f=a.length,m=o||function(t,e,n){for(var i=0,r=e.length;i<r;i++)st(t,e[i],n);return n}(e||"*",s.nodeType?[s]:s,[]),v=!t||!o&&e?m:xt(m,h,t,s,l),g=n?r||(o?t:f||i)?[]:a:v;if(n&&n(v,g,s,l),i)for(c=xt(g,p),i(c,[],s,l),u=c.length;u--;)(d=c[u])&&(g[p[u]]=!(v[p[u]]=d));if(o){if(r||t){if(r){for(c=[],u=g.length;u--;)(d=g[u])&&c.push(v[u]=d);r(null,g=[],c,l)}for(u=g.length;u--;)(d=g[u])&&(c=r?I(o,d):h[u])>-1&&(o[c]=!(a[c]=d))}}else g=xt(g===a?g.splice(f,g.length):g),r?r(null,a,g,l):D.apply(a,g)}))}function St(t){for(var e,n,r,o=t.length,a=i.relative[t[0].type],s=a||i.relative[" "],l=a?1:0,u=_t((function(t){return t===e}),s,!0),d=_t((function(t){return I(e,t)>-1}),s,!0),h=[function(t,n,i){var r=!a&&(i||n!==c)||((e=n).nodeType?u(t,n,i):d(t,n,i));return e=null,r}];l<o;l++)if(n=i.relative[t[l].type])h=[_t(wt(h),n)];else{if((n=i.filter[t[l].type].apply(null,t[l].matches))[_]){for(r=++l;r<o&&!i.relative[t[r].type];r++);return Ct(l>1&&wt(h),l>1&&yt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(U,"$1"),n,l<r&&St(t.slice(l,r)),r<o&&St(t=t.slice(r)),r<o&&yt(t))}h.push(n)}return wt(h)}return bt.prototype=i.filters=i.pseudos,i.setFilters=new bt,a=st.tokenize=function(t,e){var n,r,o,a,s,l,c,u=E[t+" "];if(u)return e?0:u.slice(0);for(s=t,l=[],c=i.preFilter;s;){for(a in n&&!(r=H.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),n=!1,(r=V.exec(s))&&(n=r.shift(),o.push({value:n,type:r[0].replace(U," ")}),s=s.slice(n.length)),i.filter)!(r=G[a].exec(s))||c[a]&&!(r=c[a](r))||(n=r.shift(),o.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return e?s.length:s?st.error(t):E(t,l).slice(0)},s=st.compile=function(t,e){var n,r=[],o=[],s=T[t+" "];if(!s){for(e||(e=a(t)),n=e.length;n--;)(s=St(e[n]))[_]?r.push(s):o.push(s);s=T(t,function(t,e){var n=e.length>0,r=t.length>0,o=function(o,a,s,l,u){var d,f,v,g=0,b="0",y=o&&[],_=[],w=c,C=o||r&&i.find.TAG("*",u),S=x+=null==w?1:Math.random()||.1,E=C.length;for(u&&(c=a==p||a||u);b!==E&&null!=(d=C[b]);b++){if(r&&d){for(f=0,a||d.ownerDocument==p||(h(d),s=!m);v=t[f++];)if(v(d,a||p,s)){l.push(d);break}u&&(x=S)}n&&((d=!v&&d)&&g--,o&&y.push(d))}if(g+=b,n&&b!==g){for(f=0;v=e[f++];)v(y,_,a,s);if(o){if(g>0)for(;b--;)y[b]||_[b]||(_[b]=M.call(l));_=xt(_)}D.apply(l,_),u&&!o&&_.length>0&&g+e.length>1&&st.uniqueSort(l)}return u&&(x=S,c=w),y};return n?ct(o):o}(o,r)),s.selector=t}return s},l=st.select=function(t,e,n,r){var o,l,c,u,d,h="function"==typeof t&&t,p=!r&&a(t=h.selector||t);if(n=n||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===e.nodeType&&m&&i.relative[l[1].type]){if(!(e=(i.find.ID(c.matches[0].replace(et,nt),e)||[])[0]))return n;h&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(o=G.needsContext.test(t)?0:l.length;o--&&(c=l[o],!i.relative[u=c.type]);)if((d=i.find[u])&&(r=d(c.matches[0].replace(et,nt),tt.test(l[0].type)&&gt(e.parentNode)||e))){if(l.splice(o,1),!(t=r.length&&yt(l)))return D.apply(n,r),n;break}}return(h||s(t,p))(r,e,!m,n,!e||tt.test(t)&&gt(e.parentNode)||e),n},n.sortStable=_.split("").sort(k).join("")===_,n.detectDuplicates=!!d,h(),n.sortDetached=ut((function(t){return 1&t.compareDocumentPosition(p.createElement("fieldset"))})),ut((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||dt("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),n.attributes&&ut((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||dt("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ut((function(t){return null==t.getAttribute("disabled")}))||dt(j,(function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null})),st}(i);S.find=T,S.expr=T.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=T.uniqueSort,S.text=T.getText,S.isXMLDoc=T.isXML,S.contains=T.contains,S.escapeSelector=T.escape;var O=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&S(t).is(n))break;i.push(t)}return i},k=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},A=S.expr.match.needsContext;function P(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var M=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function L(t,e,n){return g(e)?S.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?S.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?S.grep(t,(function(t){return u.call(e,t)>-1!==n})):S.filter(e,t,n)}S.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?S.find.matchesSelector(i,t)?[i]:[]:S.find.matches(t,S.grep(e,(function(t){return 1===t.nodeType})))},S.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(S(t).filter((function(){for(e=0;e<i;e++)if(S.contains(r[e],this))return!0})));for(n=this.pushStack([]),e=0;e<i;e++)S.find(t,r[e],n);return i>1?S.uniqueSort(n):n},filter:function(t){return this.pushStack(L(this,t||[],!1))},not:function(t){return this.pushStack(L(this,t||[],!0))},is:function(t){return!!L(this,"string"==typeof t&&A.test(t)?S(t):t||[],!1).length}});var D,R=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||D,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:R.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof S?e[0]:e,S.merge(this,S.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:y,!0)),M.test(i[1])&&S.isPlainObject(e))for(i in e)g(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=y.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):g(t)?void 0!==n.ready?n.ready(t):t(S):S.makeArray(t,this)}).prototype=S.fn,D=S(y);var I=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function N(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}S.fn.extend({has:function(t){var e=S(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(S.contains(this,e[t]))return!0}))},closest:function(t,e){var n,i=0,r=this.length,o=[],a="string"!=typeof t&&S(t);if(!A.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&S.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?S.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?u.call(S(t),this[0]):u.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),S.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return O(t,"parentNode")},parentsUntil:function(t,e,n){return O(t,"parentNode",n)},next:function(t){return N(t,"nextSibling")},prev:function(t){return N(t,"previousSibling")},nextAll:function(t){return O(t,"nextSibling")},prevAll:function(t){return O(t,"previousSibling")},nextUntil:function(t,e,n){return O(t,"nextSibling",n)},prevUntil:function(t,e,n){return O(t,"previousSibling",n)},siblings:function(t){return k((t.parentNode||{}).firstChild,t)},children:function(t){return k(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:(P(t,"template")&&(t=t.content||t),S.merge([],t.childNodes))}},(function(t,e){S.fn[t]=function(n,i){var r=S.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=S.filter(i,r)),this.length>1&&(j[t]||S.uniqueSort(r),I.test(t)&&r.reverse()),this.pushStack(r)}}));var F=/[^\x20\t\r\n\f]+/g;function z(t){return t}function B(t){throw t}function $(t,e,n,i){var r;try{t&&g(r=t.promise)?r.call(t).done(e).fail(n):t&&g(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}S.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return S.each(t.match(F)||[],(function(t,n){e[n]=!0})),e}(t):S.extend({},t);var e,n,i,r,o=[],a=[],s=-1,l=function(){for(r=r||t.once,i=e=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&t.stopOnFalse&&(s=o.length,n=!1);t.memory||(n=!1),e=!1,r&&(o=n?[]:"")},c={add:function(){return o&&(n&&!e&&(s=o.length-1,a.push(n)),function e(n){S.each(n,(function(n,i){g(i)?t.unique&&c.has(i)||o.push(i):i&&i.length&&"string"!==x(i)&&e(i)}))}(arguments),n&&!e&&l()),this},remove:function(){return S.each(arguments,(function(t,e){for(var n;(n=S.inArray(e,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(t){return t?S.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=a=[],n||e||(o=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},S.extend({Deferred:function(t){var e=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return S.Deferred((function(n){S.each(e,(function(e,i){var r=g(t[i[4]])&&t[i[4]];o[i[1]]((function(){var t=r&&r.apply(this,arguments);t&&g(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,r){var o=0;function a(t,e,n,r){return function(){var s=this,l=arguments,c=function(){var i,c;if(!(t<o)){if((i=n.apply(s,l))===e.promise())throw new TypeError("Thenable self-resolution");c=i&&("object"==typeof i||"function"==typeof i)&&i.then,g(c)?r?c.call(i,a(o,e,z,r),a(o,e,B,r)):(o++,c.call(i,a(o,e,z,r),a(o,e,B,r),a(o,e,z,e.notifyWith))):(n!==z&&(s=void 0,l=[i]),(r||e.resolveWith)(s,l))}},u=r?c:function(){try{c()}catch(i){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(i,u.stackTrace),t+1>=o&&(n!==B&&(s=void 0,l=[i]),e.rejectWith(s,l))}};t?u():(S.Deferred.getStackHook&&(u.stackTrace=S.Deferred.getStackHook()),i.setTimeout(u))}}return S.Deferred((function(i){e[0][3].add(a(0,i,g(r)?r:z,i.notifyWith)),e[1][3].add(a(0,i,g(t)?t:z)),e[2][3].add(a(0,i,g(n)?n:B))})).promise()},promise:function(t){return null!=t?S.extend(t,r):r}},o={};return S.each(e,(function(t,i){var a=i[2],s=i[5];r[i[1]]=a.add,s&&a.add((function(){n=s}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(i[3].fire),o[i[0]]=function(){return o[i[0]+"With"](this===o?void 0:this,arguments),this},o[i[0]+"With"]=a.fireWith})),r.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,i=Array(n),r=s.call(arguments),o=S.Deferred(),a=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?s.call(arguments):n,--e||o.resolveWith(i,r)}};if(e<=1&&($(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||g(r[n]&&r[n].then)))return o.then();for(;n--;)$(r[n],a(n),o.reject);return o.promise()}});var U=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&U.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},S.readyException=function(t){i.setTimeout((function(){throw t}))};var H=S.Deferred();function V(){y.removeEventListener("DOMContentLoaded",V),i.removeEventListener("load",V),S.ready()}S.fn.ready=function(t){return H.then(t).catch((function(t){S.readyException(t)})),this},S.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--S.readyWait:S.isReady)||(S.isReady=!0,!0!==t&&--S.readyWait>0||H.resolveWith(y,[S]))}}),S.ready.then=H.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?i.setTimeout(S.ready):(y.addEventListener("DOMContentLoaded",V),i.addEventListener("load",V));var Y=function(t,e,n,i,r,o,a){var s=0,l=t.length,c=null==n;if("object"===x(n))for(s in r=!0,n)Y(t,e,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,g(i)||(a=!0),c&&(a?(e.call(t,i),e=null):(c=e,e=function(t,e,n){return c.call(S(t),n)})),e))for(;s<l;s++)e(t[s],n,a?i:i.call(t[s],s,e(t[s],n)));return r?t:c?e.call(t):l?e(t[0],n):o},q=/^-ms-/,W=/-([a-z])/g;function G(t,e){return e.toUpperCase()}function X(t){return t.replace(q,"ms-").replace(W,G)}var K=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function Z(){this.expando=S.expando+Z.uid++}Z.uid=1,Z.prototype={cache:function(t){var e=t[this.expando];return e||(e={},K(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[X(e)]=n;else for(i in e)r[X(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][X(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(X):(e=X(e))in i?[e]:e.match(F)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||S.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!S.isEmptyObject(e)}};var J=new Z,Q=new Z,tt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,et=/[A-Z]/g;function nt(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(et,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:tt.test(t)?JSON.parse(t):t)}(n)}catch(t){}Q.set(t,e,n)}else n=void 0;return n}S.extend({hasData:function(t){return Q.hasData(t)||J.hasData(t)},data:function(t,e,n){return Q.access(t,e,n)},removeData:function(t,e){Q.remove(t,e)},_data:function(t,e,n){return J.access(t,e,n)},_removeData:function(t,e){J.remove(t,e)}}),S.fn.extend({data:function(t,e){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(r=Q.get(o),1===o.nodeType&&!J.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=X(i.slice(5)),nt(o,i,r[i]));J.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each((function(){Q.set(this,t)})):Y(this,(function(e){var n;if(o&&void 0===e)return void 0!==(n=Q.get(o,t))||void 0!==(n=nt(o,t))?n:void 0;this.each((function(){Q.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){Q.remove(this,t)}))}}),S.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=J.get(t,e),n&&(!i||Array.isArray(n)?i=J.access(t,e,S.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=S.queue(t,e),i=n.length,r=n.shift(),o=S._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,(function(){S.dequeue(t,e)}),o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return J.get(t,n)||J.access(t,n,{empty:S.Callbacks("once memory").add((function(){J.remove(t,[e+"queue",n])}))})}}),S.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?S.queue(this[0],t):void 0===e?this:this.each((function(){var n=S.queue(this,t,e);S._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&S.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){S.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=S.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=J.get(o[a],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(e)}});var it=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,rt=new RegExp("^(?:([+-])=|)("+it+")([a-z%]*)$","i"),ot=["Top","Right","Bottom","Left"],at=y.documentElement,st=function(t){return S.contains(t.ownerDocument,t)},lt={composed:!0};at.getRootNode&&(st=function(t){return S.contains(t.ownerDocument,t)||t.getRootNode(lt)===t.ownerDocument});var ct=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&st(t)&&"none"===S.css(t,"display")};function ut(t,e,n,i){var r,o,a=20,s=i?function(){return i.cur()}:function(){return S.css(t,e,"")},l=s(),c=n&&n[3]||(S.cssNumber[e]?"":"px"),u=t.nodeType&&(S.cssNumber[e]||"px"!==c&&+l)&&rt.exec(S.css(t,e));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)S.style(t,e,u+c),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),u/=o;u*=2,S.style(t,e,u+c),n=n||[]}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}var dt={};function ht(t){var e,n=t.ownerDocument,i=t.nodeName,r=dt[i];return r||(e=n.body.appendChild(n.createElement(i)),r=S.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),dt[i]=r,r)}function pt(t,e){for(var n,i,r=[],o=0,a=t.length;o<a;o++)(i=t[o]).style&&(n=i.style.display,e?("none"===n&&(r[o]=J.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&ct(i)&&(r[o]=ht(i))):"none"!==n&&(r[o]="none",J.set(i,"display",n)));for(o=0;o<a;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}S.fn.extend({show:function(){return pt(this,!0)},hide:function(){return pt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){ct(this)?S(this).show():S(this).hide()}))}});var ft,mt,vt=/^(?:checkbox|radio)$/i,gt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,bt=/^$|^module$|\/(?:java|ecma)script/i;ft=y.createDocumentFragment().appendChild(y.createElement("div")),(mt=y.createElement("input")).setAttribute("type","radio"),mt.setAttribute("checked","checked"),mt.setAttribute("name","t"),ft.appendChild(mt),v.checkClone=ft.cloneNode(!0).cloneNode(!0).lastChild.checked,ft.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!ft.cloneNode(!0).lastChild.defaultValue,ft.innerHTML="<option></option>",v.option=!!ft.lastChild;var yt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function _t(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&P(t,e)?S.merge([t],n):n}function wt(t,e){for(var n=0,i=t.length;n<i;n++)J.set(t[n],"globalEval",!e||J.get(e[n],"globalEval"))}yt.tbody=yt.tfoot=yt.colgroup=yt.caption=yt.thead,yt.th=yt.td,v.option||(yt.optgroup=yt.option=[1,"<select multiple='multiple'>","</select>"]);var xt=/<|&#?\w+;/;function Ct(t,e,n,i,r){for(var o,a,s,l,c,u,d=e.createDocumentFragment(),h=[],p=0,f=t.length;p<f;p++)if((o=t[p])||0===o)if("object"===x(o))S.merge(h,o.nodeType?[o]:o);else if(xt.test(o)){for(a=a||d.appendChild(e.createElement("div")),s=(gt.exec(o)||["",""])[1].toLowerCase(),l=yt[s]||yt._default,a.innerHTML=l[1]+S.htmlPrefilter(o)+l[2],u=l[0];u--;)a=a.lastChild;S.merge(h,a.childNodes),(a=d.firstChild).textContent=""}else h.push(e.createTextNode(o));for(d.textContent="",p=0;o=h[p++];)if(i&&S.inArray(o,i)>-1)r&&r.push(o);else if(c=st(o),a=_t(d.appendChild(o),"script"),c&&wt(a),n)for(u=0;o=a[u++];)bt.test(o.type||"")&&n.push(o);return d}var St=/^([^.]*)(?:\.(.+)|)/;function Et(){return!0}function Tt(){return!1}function Ot(t,e){return t===function(){try{return y.activeElement}catch(t){}}()==("focus"===e)}function kt(t,e,n,i,r,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(i=i||n,n=void 0),e)kt(t,s,n,i,e[s],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Tt;else if(!r)return t;return 1===o&&(a=r,r=function(t){return S().off(t),a.apply(this,arguments)},r.guid=a.guid||(a.guid=S.guid++)),t.each((function(){S.event.add(this,e,r,i,n)}))}function At(t,e,n){n?(J.set(t,e,!1),S.event.add(t,e,{namespace:!1,handler:function(t){var i,r,o=J.get(this,e);if(1&t.isTrigger&&this[e]){if(o.length)(S.event.special[e]||{}).delegateType&&t.stopPropagation();else if(o=s.call(arguments),J.set(this,e,o),i=n(this,e),this[e](),o!==(r=J.get(this,e))||i?J.set(this,e,!1):r={},o!==r)return t.stopImmediatePropagation(),t.preventDefault(),r&&r.value}else o.length&&(J.set(this,e,{value:S.event.trigger(S.extend(o[0],S.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===J.get(t,e)&&S.event.add(t,e,Et)}S.event={global:{},add:function(t,e,n,i,r){var o,a,s,l,c,u,d,h,p,f,m,v=J.get(t);if(K(t))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&S.find.matchesSelector(at,r),n.guid||(n.guid=S.guid++),(l=v.events)||(l=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return void 0!==S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(F)||[""]).length;c--;)p=m=(s=St.exec(e[c])||[])[1],f=(s[2]||"").split(".").sort(),p&&(d=S.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,d=S.event.special[p]||{},u=S.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&S.expr.match.needsContext.test(r),namespace:f.join(".")},o),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,f,a)||t.addEventListener&&t.addEventListener(p,a)),d.add&&(d.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),S.event.global[p]=!0)},remove:function(t,e,n,i,r){var o,a,s,l,c,u,d,h,p,f,m,v=J.hasData(t)&&J.get(t);if(v&&(l=v.events)){for(c=(e=(e||"").match(F)||[""]).length;c--;)if(p=m=(s=St.exec(e[c])||[])[1],f=(s[2]||"").split(".").sort(),p){for(d=S.event.special[p]||{},h=l[p=(i?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)u=h[o],!r&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(t,u));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,f,v.handle)||S.removeEvent(t,p,v.handle),delete l[p])}else for(p in l)S.event.remove(t,p+e[c],n,i,!0);S.isEmptyObject(l)&&J.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,a,s=new Array(arguments.length),l=S.event.fix(t),c=(J.get(this,"events")||Object.create(null))[l.type]||[],u=S.event.special[l.type]||{};for(s[0]=l,e=1;e<arguments.length;e++)s[e]=arguments[e];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(a=S.event.handlers.call(this,l,c),e=0;(r=a[e++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(i=((S.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(t,e){var n,i,r,o,a,s=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[r=(i=e[n]).selector+" "]&&(a[r]=i.needsContext?S(r,this).index(c)>-1:S.find(r,this,null,[c]).length),a[r]&&o.push(i);o.length&&s.push({elem:c,handlers:o})}return c=this,l<e.length&&s.push({elem:c,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:g(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[S.expando]?t:new S.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return vt.test(e.type)&&e.click&&P(e,"input")&&At(e,"click",Et),!1},trigger:function(t){var e=this||t;return vt.test(e.type)&&e.click&&P(e,"input")&&At(e,"click"),!0},_default:function(t){var e=t.target;return vt.test(e.type)&&e.click&&P(e,"input")&&J.get(e,"click")||P(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},S.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},S.Event=function(t,e){if(!(this instanceof S.Event))return new S.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Et:Tt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&S.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Tt,isPropagationStopped:Tt,isImmediatePropagationStopped:Tt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Et,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Et,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Et,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},(function(t,e){S.event.special[t]={setup:function(){return At(this,t,Ot),!1},trigger:function(){return At(this,t),!0},_default:function(){return!0},delegateType:e}})),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){S.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,r=t.handleObj;return i&&(i===this||S.contains(this,i))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}})),S.fn.extend({on:function(t,e,n,i){return kt(this,t,e,n,i)},one:function(t,e,n,i){return kt(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,S(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Tt),this.each((function(){S.event.remove(this,t,n,e)}))}});var Pt=/<script|<style|<link/i,Mt=/checked\s*(?:[^=]|=\s*.checked.)/i,Lt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Dt(t,e){return P(t,"table")&&P(11!==e.nodeType?e:e.firstChild,"tr")&&S(t).children("tbody")[0]||t}function Rt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function It(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function jt(t,e){var n,i,r,o,a,s;if(1===e.nodeType){if(J.hasData(t)&&(s=J.get(t).events))for(r in J.remove(e,"handle events"),s)for(n=0,i=s[r].length;n<i;n++)S.event.add(e,r,s[r][n]);Q.hasData(t)&&(o=Q.access(t),a=S.extend({},o),Q.set(e,a))}}function Nt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&vt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Ft(t,e,n,i){e=l(e);var r,o,a,s,c,u,d=0,h=t.length,p=h-1,f=e[0],m=g(f);if(m||h>1&&"string"==typeof f&&!v.checkClone&&Mt.test(f))return t.each((function(r){var o=t.eq(r);m&&(e[0]=f.call(this,r,o.html())),Ft(o,e,n,i)}));if(h&&(o=(r=Ct(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(s=(a=S.map(_t(r,"script"),Rt)).length;d<h;d++)c=r,d!==p&&(c=S.clone(c,!0,!0),s&&S.merge(a,_t(c,"script"))),n.call(t[d],c,d);if(s)for(u=a[a.length-1].ownerDocument,S.map(a,It),d=0;d<s;d++)c=a[d],bt.test(c.type||"")&&!J.access(c,"globalEval")&&S.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?S._evalUrl&&!c.noModule&&S._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):w(c.textContent.replace(Lt,""),c,u))}return t}function zt(t,e,n){for(var i,r=e?S.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||S.cleanData(_t(i)),i.parentNode&&(n&&st(i)&&wt(_t(i,"script")),i.parentNode.removeChild(i));return t}S.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,r,o,a,s=t.cloneNode(!0),l=st(t);if(!(v.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||S.isXMLDoc(t)))for(a=_t(s),i=0,r=(o=_t(t)).length;i<r;i++)Nt(o[i],a[i]);if(e)if(n)for(o=o||_t(t),a=a||_t(s),i=0,r=o.length;i<r;i++)jt(o[i],a[i]);else jt(t,s);return(a=_t(s,"script")).length>0&&wt(a,!l&&_t(t,"script")),s},cleanData:function(t){for(var e,n,i,r=S.event.special,o=0;void 0!==(n=t[o]);o++)if(K(n)){if(e=n[J.expando]){if(e.events)for(i in e.events)r[i]?S.event.remove(n,i):S.removeEvent(n,i,e.handle);n[J.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),S.fn.extend({detach:function(t){return zt(this,t,!0)},remove:function(t){return zt(this,t)},text:function(t){return Y(this,(function(t){return void 0===t?S.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Ft(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Dt(this,t).appendChild(t)}))},prepend:function(){return Ft(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Dt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Ft(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Ft(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(S.cleanData(_t(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return S.clone(this,t,e)}))},html:function(t){return Y(this,(function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Pt.test(t)&&!yt[(gt.exec(t)||["",""])[1].toLowerCase()]){t=S.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(S.cleanData(_t(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Ft(this,arguments,(function(e){var n=this.parentNode;S.inArray(this,t)<0&&(S.cleanData(_t(this)),n&&n.replaceChild(e,this))}),t)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){S.fn[t]=function(t){for(var n,i=[],r=S(t),o=r.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),S(r[a])[e](n),c.apply(i,n.get());return this.pushStack(i)}}));var Bt=new RegExp("^("+it+")(?!px)[a-z%]+$","i"),$t=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},Ut=function(t,e,n){var i,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in i=n.call(t),e)t.style[r]=o[r];return i},Ht=new RegExp(ot.join("|"),"i");function Vt(t,e,n){var i,r,o,a,s=t.style;return(n=n||$t(t))&&(""!==(a=n.getPropertyValue(e)||n[e])||st(t)||(a=S.style(t,e)),!v.pixelBoxStyles()&&Bt.test(a)&&Ht.test(e)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o)),void 0!==a?a+"":a}function Yt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",at.appendChild(c).appendChild(u);var t=i.getComputedStyle(u);n="1%"!==t.top,l=12===e(t.marginLeft),u.style.right="60%",a=36===e(t.right),r=36===e(t.width),u.style.position="absolute",o=12===e(u.offsetWidth/3),at.removeChild(c),u=null}}function e(t){return Math.round(parseFloat(t))}var n,r,o,a,s,l,c=y.createElement("div"),u=y.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===u.style.backgroundClip,S.extend(v,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,n,r;return null==s&&(t=y.createElement("table"),e=y.createElement("tr"),n=y.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",at.appendChild(t).appendChild(e).appendChild(n),r=i.getComputedStyle(e),s=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===e.offsetHeight,at.removeChild(t)),s}}))}();var qt=["Webkit","Moz","ms"],Wt=y.createElement("div").style,Gt={};function Xt(t){var e=S.cssProps[t]||Gt[t];return e||(t in Wt?t:Gt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=qt.length;n--;)if((t=qt[n]+e)in Wt)return t}(t)||t)}var Kt=/^(none|table(?!-c[ea]).+)/,Zt=/^--/,Jt={position:"absolute",visibility:"hidden",display:"block"},Qt={letterSpacing:"0",fontWeight:"400"};function te(t,e,n){var i=rt.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function ee(t,e,n,i,r,o){var a="width"===e?1:0,s=0,l=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=S.css(t,n+ot[a],!0,r)),i?("content"===n&&(l-=S.css(t,"padding"+ot[a],!0,r)),"margin"!==n&&(l-=S.css(t,"border"+ot[a]+"Width",!0,r))):(l+=S.css(t,"padding"+ot[a],!0,r),"padding"!==n?l+=S.css(t,"border"+ot[a]+"Width",!0,r):s+=S.css(t,"border"+ot[a]+"Width",!0,r));return!i&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-s-.5))||0),l}function ne(t,e,n){var i=$t(t),r=(!v.boxSizingReliable()||n)&&"border-box"===S.css(t,"boxSizing",!1,i),o=r,a=Vt(t,e,i),s="offset"+e[0].toUpperCase()+e.slice(1);if(Bt.test(a)){if(!n)return a;a="auto"}return(!v.boxSizingReliable()&&r||!v.reliableTrDimensions()&&P(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===S.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===S.css(t,"boxSizing",!1,i),(o=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+ee(t,e,n||(r?"border":"content"),o,i,a)+"px"}function ie(t,e,n,i,r){return new ie.prototype.init(t,e,n,i,r)}S.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Vt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,s=X(e),l=Zt.test(e),c=t.style;if(l||(e=Xt(s)),a=S.cssHooks[e]||S.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(t,!1,i))?r:c[e];"string"===(o=typeof n)&&(r=rt.exec(n))&&r[1]&&(n=ut(t,e,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(S.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,i))||(l?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,i){var r,o,a,s=X(e);return Zt.test(e)||(e=Xt(s)),(a=S.cssHooks[e]||S.cssHooks[s])&&"get"in a&&(r=a.get(t,!0,n)),void 0===r&&(r=Vt(t,e,i)),"normal"===r&&e in Qt&&(r=Qt[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),S.each(["height","width"],(function(t,e){S.cssHooks[e]={get:function(t,n,i){if(n)return!Kt.test(S.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ne(t,e,i):Ut(t,Jt,(function(){return ne(t,e,i)}))},set:function(t,n,i){var r,o=$t(t),a=!v.scrollboxSize()&&"absolute"===o.position,s=(a||i)&&"border-box"===S.css(t,"boxSizing",!1,o),l=i?ee(t,e,i,s,o):0;return s&&a&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-ee(t,e,"border",!1,o)-.5)),l&&(r=rt.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=S.css(t,e)),te(0,n,l)}}})),S.cssHooks.marginLeft=Yt(v.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Vt(t,"marginLeft"))||t.getBoundingClientRect().left-Ut(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),S.each({margin:"",padding:"",border:"Width"},(function(t,e){S.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+ot[i]+e]=o[i]||o[i-2]||o[0];return r}},"margin"!==t&&(S.cssHooks[t+e].set=te)})),S.fn.extend({css:function(t,e){return Y(this,(function(t,e,n){var i,r,o={},a=0;if(Array.isArray(e)){for(i=$t(t),r=e.length;a<r;a++)o[e[a]]=S.css(t,e[a],!1,i);return o}return void 0!==n?S.style(t,e,n):S.css(t,e)}),t,e,arguments.length>1)}}),S.Tween=ie,ie.prototype={constructor:ie,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||S.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(S.cssNumber[n]?"":"px")},cur:function(){var t=ie.propHooks[this.prop];return t&&t.get?t.get(this):ie.propHooks._default.get(this)},run:function(t){var e,n=ie.propHooks[this.prop];return this.options.duration?this.pos=e=S.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ie.propHooks._default.set(this),this}},ie.prototype.init.prototype=ie.prototype,ie.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=S.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){S.fx.step[t.prop]?S.fx.step[t.prop](t):1!==t.elem.nodeType||!S.cssHooks[t.prop]&&null==t.elem.style[Xt(t.prop)]?t.elem[t.prop]=t.now:S.style(t.elem,t.prop,t.now+t.unit)}}},ie.propHooks.scrollTop=ie.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},S.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},S.fx=ie.prototype.init,S.fx.step={};var re,oe,ae=/^(?:toggle|show|hide)$/,se=/queueHooks$/;function le(){oe&&(!1===y.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(le):i.setTimeout(le,S.fx.interval),S.fx.tick())}function ce(){return i.setTimeout((function(){re=void 0})),re=Date.now()}function ue(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=ot[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function de(t,e,n){for(var i,r=(he.tweeners[e]||[]).concat(he.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,e,t))return i}function he(t,e,n){var i,r,o=0,a=he.prefilters.length,s=S.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var e=re||ce(),n=Math.max(0,c.startTime+c.duration-e),i=1-(n/c.duration||0),o=0,a=c.tweens.length;o<a;o++)c.tweens[o].run(i);return s.notifyWith(t,[c,i,n]),i<1&&a?n:(a||s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c]),!1)},c=s.promise({elem:t,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},n),originalProperties:e,originalOptions:n,startTime:re||ce(),duration:n.duration,tweens:[],createTween:function(e,n){var i=S.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return e?(s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c,e])):s.rejectWith(t,[c,e]),this}}),u=c.props;for(!function(t,e){var n,i,r,o,a;for(n in t)if(r=e[i=X(n)],o=t[n],Array.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(a=S.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=r);else e[i]=r}(u,c.opts.specialEasing);o<a;o++)if(i=he.prefilters[o].call(c,t,u,c.opts))return g(i.stop)&&(S._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return S.map(u,de,c),g(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),S.fx.timer(S.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}S.Animation=S.extend(he,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return ut(n.elem,t,rt.exec(e),n),n}]},tweener:function(t,e){g(t)?(e=t,t=["*"]):t=t.match(F);for(var n,i=0,r=t.length;i<r;i++)n=t[i],he.tweeners[n]=he.tweeners[n]||[],he.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,r,o,a,s,l,c,u,d="width"in e||"height"in e,h=this,p={},f=t.style,m=t.nodeType&&ct(t),v=J.get(t,"fxshow");for(i in n.queue||(null==(a=S._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always((function(){h.always((function(){a.unqueued--,S.queue(t,"fx").length||a.empty.fire()}))}))),e)if(r=e[i],ae.test(r)){if(delete e[i],o=o||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!v||void 0===v[i])continue;m=!0}p[i]=v&&v[i]||S.style(t,i)}if((l=!S.isEmptyObject(e))||!S.isEmptyObject(p))for(i in d&&1===t.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=v&&v.display)&&(c=J.get(t,"display")),"none"===(u=S.css(t,"display"))&&(c?u=c:(pt([t],!0),c=t.style.display||c,u=S.css(t,"display"),pt([t]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===S.css(t,"float")&&(l||(h.done((function(){f.display=c})),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",h.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),l=!1,p)l||(v?"hidden"in v&&(m=v.hidden):v=J.access(t,"fxshow",{display:c}),o&&(v.hidden=!m),m&&pt([t],!0),h.done((function(){for(i in m||pt([t]),J.remove(t,"fxshow"),p)S.style(t,i,p[i])}))),l=de(m?v[i]:0,i,h),i in v||(v[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?he.prefilters.unshift(t):he.prefilters.push(t)}}),S.speed=function(t,e,n){var i=t&&"object"==typeof t?S.extend({},t):{complete:n||!n&&e||g(t)&&t,duration:t,easing:n&&e||e&&!g(e)&&e};return S.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in S.fx.speeds?i.duration=S.fx.speeds[i.duration]:i.duration=S.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){g(i.old)&&i.old.call(this),i.queue&&S.dequeue(this,i.queue)},i},S.fn.extend({fadeTo:function(t,e,n,i){return this.filter(ct).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=S.isEmptyObject(t),o=S.speed(e,n,i),a=function(){var e=he(this,S.extend({},t),o);(r||J.get(this,"finish"))&&e.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,r=null!=t&&t+"queueHooks",o=S.timers,a=J.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&se.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||S.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=J.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=S.timers,a=i?i.length:0;for(n.finish=!0,S.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish}))}}),S.each(["toggle","show","hide"],(function(t,e){var n=S.fn[e];S.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ue(e,!0),t,i,r)}})),S.each({slideDown:ue("show"),slideUp:ue("hide"),slideToggle:ue("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){S.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),S.timers=[],S.fx.tick=function(){var t,e=0,n=S.timers;for(re=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||S.fx.stop(),re=void 0},S.fx.timer=function(t){S.timers.push(t),S.fx.start()},S.fx.interval=13,S.fx.start=function(){oe||(oe=!0,le())},S.fx.stop=function(){oe=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(t,e){return t=S.fx&&S.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,n){var r=i.setTimeout(e,t);n.stop=function(){i.clearTimeout(r)}}))},function(){var t=y.createElement("input"),e=y.createElement("select").appendChild(y.createElement("option"));t.type="checkbox",v.checkOn=""!==t.value,v.optSelected=e.selected,(t=y.createElement("input")).value="t",t.type="radio",v.radioValue="t"===t.value}();var pe,fe=S.expr.attrHandle;S.fn.extend({attr:function(t,e){return Y(this,S.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){S.removeAttr(this,t)}))}}),S.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?S.prop(t,e,n):(1===o&&S.isXMLDoc(t)||(r=S.attrHooks[e.toLowerCase()]||(S.expr.match.bool.test(e)?pe:void 0)),void 0!==n?null===n?void S.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=S.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!v.radioValue&&"radio"===e&&P(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(F);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),pe={set:function(t,e,n){return!1===e?S.removeAttr(t,n):t.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=fe[e]||S.find.attr;fe[e]=function(t,e,i){var r,o,a=e.toLowerCase();return i||(o=fe[a],fe[a]=r,r=null!=n(t,e,i)?a:null,fe[a]=o),r}}));var me=/^(?:input|select|textarea|button)$/i,ve=/^(?:a|area)$/i;function ge(t){return(t.match(F)||[]).join(" ")}function be(t){return t.getAttribute&&t.getAttribute("class")||""}function ye(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(F)||[]}S.fn.extend({prop:function(t,e){return Y(this,S.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[S.propFix[t]||t]}))}}),S.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(t)||(e=S.propFix[e]||e,r=S.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=S.find.attr(t,"tabindex");return e?parseInt(e,10):me.test(t.nodeName)||ve.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(S.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){S.propFix[this.toLowerCase()]=this})),S.fn.extend({addClass:function(t){var e,n,i,r,o,a,s,l=0;if(g(t))return this.each((function(e){S(this).addClass(t.call(this,e,be(this)))}));if((e=ye(t)).length)for(;n=this[l++];)if(r=be(n),i=1===n.nodeType&&" "+ge(r)+" "){for(a=0;o=e[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(s=ge(i))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,i,r,o,a,s,l=0;if(g(t))return this.each((function(e){S(this).removeClass(t.call(this,e,be(this)))}));if(!arguments.length)return this.attr("class","");if((e=ye(t)).length)for(;n=this[l++];)if(r=be(n),i=1===n.nodeType&&" "+ge(r)+" "){for(a=0;o=e[a++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");r!==(s=ge(i))&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t,i="string"===n||Array.isArray(t);return"boolean"==typeof e&&i?e?this.addClass(t):this.removeClass(t):g(t)?this.each((function(n){S(this).toggleClass(t.call(this,n,be(this),e),e)})):this.each((function(){var e,r,o,a;if(i)for(r=0,o=S(this),a=ye(t);e=a[r++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||((e=be(this))&&J.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":J.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+ge(be(n))+" ").indexOf(e)>-1)return!0;return!1}});var _e=/\r/g;S.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=g(t),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,S(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=S.map(r,(function(t){return null==t?"":t+""}))),(e=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=S.valHooks[r.type]||S.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(_e,""):null==n?"":n:void 0}}),S.extend({valHooks:{option:{get:function(t){var e=S.find.attr(t,"value");return null!=e?e:ge(S.text(t))}},select:{get:function(t){var e,n,i,r=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],l=a?o+1:r.length;for(i=o<0?l:a?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!P(n.parentNode,"optgroup"))){if(e=S(n).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var n,i,r=t.options,o=S.makeArray(e),a=r.length;a--;)((i=r[a]).selected=S.inArray(S.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),S.each(["radio","checkbox"],(function(){S.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=S.inArray(S(t).val(),e)>-1}},v.checkOn||(S.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),v.focusin="onfocusin"in i;var we=/^(?:focusinfocus|focusoutblur)$/,xe=function(t){t.stopPropagation()};S.extend(S.event,{trigger:function(t,e,n,r){var o,a,s,l,c,u,d,h,f=[n||y],m=p.call(t,"type")?t.type:t,v=p.call(t,"namespace")?t.namespace.split("."):[];if(a=h=s=n=n||y,3!==n.nodeType&&8!==n.nodeType&&!we.test(m+S.event.triggered)&&(m.indexOf(".")>-1&&(v=m.split("."),m=v.shift(),v.sort()),c=m.indexOf(":")<0&&"on"+m,(t=t[S.expando]?t:new S.Event(m,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:S.makeArray(e,[t]),d=S.event.special[m]||{},r||!d.trigger||!1!==d.trigger.apply(n,e))){if(!r&&!d.noBubble&&!b(n)){for(l=d.delegateType||m,we.test(l+m)||(a=a.parentNode);a;a=a.parentNode)f.push(a),s=a;s===(n.ownerDocument||y)&&f.push(s.defaultView||s.parentWindow||i)}for(o=0;(a=f[o++])&&!t.isPropagationStopped();)h=a,t.type=o>1?l:d.bindType||m,(u=(J.get(a,"events")||Object.create(null))[t.type]&&J.get(a,"handle"))&&u.apply(a,e),(u=c&&a[c])&&u.apply&&K(a)&&(t.result=u.apply(a,e),!1===t.result&&t.preventDefault());return t.type=m,r||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(f.pop(),e)||!K(n)||c&&g(n[m])&&!b(n)&&((s=n[c])&&(n[c]=null),S.event.triggered=m,t.isPropagationStopped()&&h.addEventListener(m,xe),n[m](),t.isPropagationStopped()&&h.removeEventListener(m,xe),S.event.triggered=void 0,s&&(n[c]=s)),t.result}},simulate:function(t,e,n){var i=S.extend(new S.Event,n,{type:t,isSimulated:!0});S.event.trigger(i,null,e)}}),S.fn.extend({trigger:function(t,e){return this.each((function(){S.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return S.event.trigger(t,e,n,!0)}}),v.focusin||S.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){S.event.simulate(e,t.target,S.event.fix(t))};S.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,r=J.access(i,e);r||i.addEventListener(t,n,!0),J.access(i,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=J.access(i,e)-1;r?J.access(i,e,r):(i.removeEventListener(t,n,!0),J.remove(i,e))}}}));var Ce=i.location,Se={guid:Date.now()},Ee=/\?/;S.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||S.error("Invalid XML: "+(n?S.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Te=/\[\]$/,Oe=/\r?\n/g,ke=/^(?:submit|button|image|reset|file)$/i,Ae=/^(?:input|select|textarea|keygen)/i;function Pe(t,e,n,i){var r;if(Array.isArray(e))S.each(e,(function(e,r){n||Te.test(t)?i(t,r):Pe(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)}));else if(n||"object"!==x(e))i(t,e);else for(r in e)Pe(t+"["+r+"]",e[r],n,i)}S.param=function(t,e){var n,i=[],r=function(t,e){var n=g(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!S.isPlainObject(t))S.each(t,(function(){r(this.name,this.value)}));else for(n in t)Pe(n,t[n],e,r);return i.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=S.prop(this,"elements");return t?S.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!S(this).is(":disabled")&&Ae.test(this.nodeName)&&!ke.test(t)&&(this.checked||!vt.test(t))})).map((function(t,e){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,(function(t){return{name:e.name,value:t.replace(Oe,"\r\n")}})):{name:e.name,value:n.replace(Oe,"\r\n")}})).get()}});var Me=/%20/g,Le=/#.*$/,De=/([?&])_=[^&]*/,Re=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ie=/^(?:GET|HEAD)$/,je=/^\/\//,Ne={},Fe={},ze="*/".concat("*"),Be=y.createElement("a");function $e(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(F)||[];if(g(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Ue(t,e,n,i){var r={},o=t===Fe;function a(s){var l;return r[s]=!0,S.each(t[s]||[],(function(t,s){var c=s(e,n,i);return"string"!=typeof c||o||r[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),a(c),!1)})),l}return a(e.dataTypes[0])||!r["*"]&&a("*")}function He(t,e){var n,i,r=S.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&S.extend(!0,t,i),t}Be.href=Ce.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ce.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ce.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ze,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?He(He(t,S.ajaxSettings),e):He(S.ajaxSettings,t)},ajaxPrefilter:$e(Ne),ajaxTransport:$e(Fe),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r,o,a,s,l,c,u,d,h,p=S.ajaxSetup({},e),f=p.context||p,m=p.context&&(f.nodeType||f.jquery)?S(f):S.event,v=S.Deferred(),g=S.Callbacks("once memory"),b=p.statusCode||{},_={},w={},x="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(c){if(!a)for(a={};e=Re.exec(o);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(t,e){return null==c&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,_[t]=e),this},overrideMimeType:function(t){return null==c&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)C.always(t[C.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||x;return n&&n.abort(e),E(0,e),this}};if(v.promise(C),p.url=((t||p.url||Ce.href)+"").replace(je,Ce.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(F)||[""],null==p.crossDomain){l=y.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Be.protocol+"//"+Be.host!=l.protocol+"//"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=S.param(p.data,p.traditional)),Ue(Ne,p,e,C),c)return C;for(d in(u=S.event&&p.global)&&0==S.active++&&S.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Ie.test(p.type),r=p.url.replace(Le,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Me,"+")):(h=p.url.slice(r.length),p.data&&(p.processData||"string"==typeof p.data)&&(r+=(Ee.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(De,"$1"),h=(Ee.test(r)?"&":"?")+"_="+Se.guid+++h),p.url=r+h),p.ifModified&&(S.lastModified[r]&&C.setRequestHeader("If-Modified-Since",S.lastModified[r]),S.etag[r]&&C.setRequestHeader("If-None-Match",S.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+ze+"; q=0.01":""):p.accepts["*"]),p.headers)C.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(f,C,p)||c))return C.abort();if(x="abort",g.add(p.complete),C.done(p.success),C.fail(p.error),n=Ue(Fe,p,e,C)){if(C.readyState=1,u&&m.trigger("ajaxSend",[C,p]),c)return C;p.async&&p.timeout>0&&(s=i.setTimeout((function(){C.abort("timeout")}),p.timeout));try{c=!1,n.send(_,E)}catch(t){if(c)throw t;E(-1,t)}}else E(-1,"No Transport");function E(t,e,a,l){var d,h,y,_,w,x=e;c||(c=!0,s&&i.clearTimeout(s),n=void 0,o=l||"",C.readyState=t>0?4:0,d=t>=200&&t<300||304===t,a&&(_=function(t,e,n){for(var i,r,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(p,C,a)),!d&&S.inArray("script",p.dataTypes)>-1&&S.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),_=function(t,e,n,i){var r,o,a,s,l,c={},u=t.dataTypes.slice();if(u[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=u.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(r in c)if((s=r.split(" "))[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[r]:!0!==c[r]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(p,_,C,d),d?(p.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(S.lastModified[r]=w),(w=C.getResponseHeader("etag"))&&(S.etag[r]=w)),204===t||"HEAD"===p.type?x="nocontent":304===t?x="notmodified":(x=_.state,h=_.data,d=!(y=_.error))):(y=x,!t&&x||(x="error",t<0&&(t=0))),C.status=t,C.statusText=(e||x)+"",d?v.resolveWith(f,[h,x,C]):v.rejectWith(f,[C,x,y]),C.statusCode(b),b=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[C,p,d?h:y]),g.fireWith(f,[C,x]),u&&(m.trigger("ajaxComplete",[C,p]),--S.active||S.event.trigger("ajaxStop")))}return C},getJSON:function(t,e,n){return S.get(t,e,n,"json")},getScript:function(t,e){return S.get(t,void 0,e,"script")}}),S.each(["get","post"],(function(t,e){S[e]=function(t,n,i,r){return g(n)&&(r=r||i,i=n,n=void 0),S.ajax(S.extend({url:t,type:e,dataType:r,data:n,success:i},S.isPlainObject(t)&&t))}})),S.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),S._evalUrl=function(t,e,n){return S.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){S.globalEval(t,e,n)}})},S.fn.extend({wrapAll:function(t){var e;return this[0]&&(g(t)&&(t=t.call(this[0])),e=S(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return g(t)?this.each((function(e){S(this).wrapInner(t.call(this,e))})):this.each((function(){var e=S(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=g(t);return this.each((function(n){S(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){S(this).replaceWith(this.childNodes)})),this}}),S.expr.pseudos.hidden=function(t){return!S.expr.pseudos.visible(t)},S.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var Ve={0:200,1223:204},Ye=S.ajaxSettings.xhr();v.cors=!!Ye&&"withCredentials"in Ye,v.ajax=Ye=!!Ye,S.ajaxTransport((function(t){var e,n;if(v.cors||Ye&&!t.crossDomain)return{send:function(r,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);e=function(t){return function(){e&&(e=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Ve[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),n=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&i.setTimeout((function(){e&&n()}))},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),S.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return S.globalEval(t),t}}}),S.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),S.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,r){e=S("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),y.head.appendChild(e[0])},abort:function(){n&&n()}}}));var qe,We=[],Ge=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=We.pop()||S.expando+"_"+Se.guid++;return this[t]=!0,t}}),S.ajaxPrefilter("json jsonp",(function(t,e,n){var r,o,a,s=!1!==t.jsonp&&(Ge.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ge.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=g(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Ge,"$1"+r):!1!==t.jsonp&&(t.url+=(Ee.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||S.error(r+" was not called"),a[0]},t.dataTypes[0]="json",o=i[r],i[r]=function(){a=arguments},n.always((function(){void 0===o?S(i).removeProp(r):i[r]=o,t[r]&&(t.jsonpCallback=e.jsonpCallback,We.push(r)),a&&g(o)&&o(a[0]),a=o=void 0})),"script"})),v.createHTMLDocument=((qe=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===qe.childNodes.length),S.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(v.createHTMLDocument?((i=(e=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,e.head.appendChild(i)):e=y),o=!n&&[],(r=M.exec(t))?[e.createElement(r[1])]:(r=Ct([t],e,o),o&&o.length&&S(o).remove(),S.merge([],r.childNodes)));var i,r,o},S.fn.load=function(t,e,n){var i,r,o,a=this,s=t.indexOf(" ");return s>-1&&(i=ge(t.slice(s)),t=t.slice(0,s)),g(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),a.length>0&&S.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){o=arguments,a.html(i?S("<div>").append(S.parseHTML(t)).find(i):t)})).always(n&&function(t,e){a.each((function(){n.apply(this,o||[t.responseText,e,t])}))}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,(function(e){return t===e.elem})).length},S.offset={setOffset:function(t,e,n){var i,r,o,a,s,l,c=S.css(t,"position"),u=S(t),d={};"static"===c&&(t.style.position="relative"),s=u.offset(),o=S.css(t,"top"),l=S.css(t,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(a=(i=u.position()).top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),g(e)&&(e=e.call(t,n,S.extend({},s))),null!=e.top&&(d.top=e.top-s.top+a),null!=e.left&&(d.left=e.left-s.left+r),"using"in e?e.using.call(t,d):u.css(d)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){S.offset.setOffset(this,t,e)}));var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===S.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===S.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=S(t).offset()).top+=S.css(t,"borderTopWidth",!0),r.left+=S.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-S.css(i,"marginTop",!0),left:e.left-r.left-S.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===S.css(t,"position");)t=t.offsetParent;return t||at}))}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;S.fn[t]=function(i){return Y(this,(function(t,i,r){var o;if(b(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):t[i]=r}),t,i,arguments.length)}})),S.each(["top","left"],(function(t,e){S.cssHooks[e]=Yt(v.pixelPosition,(function(t,n){if(n)return n=Vt(t,e),Bt.test(n)?S(t).position()[e]+"px":n}))})),S.each({Height:"height",Width:"width"},(function(t,e){S.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){S.fn[i]=function(r,o){var a=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===o?"margin":"border");return Y(this,(function(e,n,r){var o;return b(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?S.css(e,n,s):S.style(e,n,r,s)}),e,a?r:void 0,a)}}))})),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){S.fn[e]=function(t){return this.on(e,t)}})),S.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){S.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var Xe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;S.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),g(t))return i=s.call(arguments,2),r=function(){return t.apply(e||this,i.concat(s.call(arguments)))},r.guid=t.guid=t.guid||S.guid++,r},S.holdReady=function(t){t?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=P,S.isFunction=g,S.isWindow=b,S.camelCase=X,S.type=x,S.now=Date.now,S.isNumeric=function(t){var e=S.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},S.trim=function(t){return null==t?"":(t+"").replace(Xe,"")},void 0===(n=function(){return S}.apply(e,[]))||(t.exports=n);var Ke=i.jQuery,Ze=i.$;return S.noConflict=function(t){return i.$===S&&(i.$=Ze),t&&i.jQuery===S&&(i.jQuery=Ke),S},void 0===r&&(i.jQuery=i.$=S),S}))},8027:(t,e,n)=>{"use strict";n.d(e,{A:()=>_t});class i{constructor(t,e=(()=>{})){this.element=t,this.listener=e}bindScrollListener(){this.scrollableParents=r.getScrollableParents(this.element);for(let t=0;t<this.scrollableParents.length;t++)this.scrollableParents[t].addEventListener("scroll",this.listener)}unbindScrollListener(){if(this.scrollableParents)for(let t=0;t<this.scrollableParents.length;t++)this.scrollableParents[t].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}class r{static innerWidth(t){let e=t.offsetWidth,n=getComputedStyle(t);return e+=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),e}static width(t){let e=t.offsetWidth,n=getComputedStyle(t);return e-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),e}static getWindowScrollTop(){let t=document.documentElement;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}static getWindowScrollLeft(){let t=document.documentElement;return(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}static getOuterWidth(t,e){if(t){let n=t.offsetWidth;if(e){let e=getComputedStyle(t);n+=parseFloat(e.marginLeft)+parseFloat(e.marginRight)}return n}return 0}static getOuterHeight(t,e){if(t){let n=t.offsetHeight;if(e){let e=getComputedStyle(t);n+=parseFloat(e.marginTop)+parseFloat(e.marginBottom)}return n}return 0}static getClientHeight(t,e){if(t){let n=t.clientHeight;if(e){let e=getComputedStyle(t);n+=parseFloat(e.marginTop)+parseFloat(e.marginBottom)}return n}return 0}static getViewport(){let t=window,e=document,n=e.documentElement,i=e.getElementsByTagName("body")[0];return{width:t.innerWidth||n.clientWidth||i.clientWidth,height:t.innerHeight||n.clientHeight||i.clientHeight}}static getOffset(t){var e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getCurrentZIndex(){return this.zindex}static index(t){let e=t.parentNode.childNodes,n=0;for(var i=0;i<e.length;i++){if(e[i]===t)return n;1===e[i].nodeType&&n++}return-1}static addMultipleClasses(t,e){if(t.classList){let n=e.split(" ");for(let e=0;e<n.length;e++)t.classList.add(n[e])}else{let n=e.split(" ");for(let e=0;e<n.length;e++)t.className+=" "+n[e]}}static addClass(t,e){t.classList?t.classList.add(e):t.className+=" "+e}static removeClass(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}static hasClass(t,e){return!!t&&(t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className))}static find(t,e){return t.querySelectorAll(e)}static findSingle(t,e){return t.querySelector(e)}static getHeight(t){let e=t.offsetHeight,n=getComputedStyle(t);return e-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),e}static getWidth(t){let e=t.offsetWidth,n=getComputedStyle(t);return e-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),e}static absolutePosition(t,e){let n,i,r=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:this.getHiddenElementDimensions(t),o=r.height,a=r.width,s=e.offsetHeight,l=e.offsetWidth,c=e.getBoundingClientRect(),u=this.getWindowScrollTop(),d=this.getWindowScrollLeft(),h=this.getViewport();c.top+s+o>h.height?(n=c.top+u-o,t.style.transformOrigin="bottom",n<0&&(n=u)):(n=s+c.top+u,t.style.transformOrigin="top"),i=c.left+a>h.width?Math.max(0,c.left+d+l-a):c.left+d,t.style.top=n+"px",t.style.left=i+"px"}static relativePosition(t,e,n){let i=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:this.getHiddenElementDimensions(t);const r=e.offsetHeight,o=e.getBoundingClientRect(),a=this.getViewport();let s,l;o.top+r+i.height>a.height?n?(t.style.bottom=n.offsetHeight+"px",t.style.transformOrigin="bottom"):(s=-1*i.height,t.style.transformOrigin="bottom",o.top+s<0&&(s=-1*o.top)):(t.style.top=r+"px",t.style.transformOrigin="top"),l=i.width>a.width?-1*o.left:o.left+i.width>a.width?-1*(o.left+i.width-a.width):0,t.style.left=l+"px"}static getParents(t,e=[]){return null===t.parentNode?e:this.getParents(t.parentNode,e.concat([t.parentNode]))}static getScrollableParents(t){let e=[];if(t){let n=this.getParents(t);const i=/(auto|scroll)/,r=t=>{let e=window.getComputedStyle(t,null);return i.test(e.getPropertyValue("overflow"))||i.test(e.getPropertyValue("overflowX"))||i.test(e.getPropertyValue("overflowY"))};for(let t of n){let n=1===t.nodeType&&t.dataset.scrollselectors;if(n){let i=n.split(",");for(let n of i){let i=this.findSingle(t,n);i&&r(i)&&e.push(i)}}}}return e}static getHiddenElementOuterHeight(t){t.style.visibility="hidden",t.style.display="block";let e=t.offsetHeight;return t.style.display="none",t.style.visibility="visible",e}static getHiddenElementOuterWidth(t){t.style.visibility="hidden",t.style.display="block";let e=t.offsetWidth;return t.style.display="none",t.style.visibility="visible",e}static getHiddenElementDimensions(t){var e={};return t.style.visibility="hidden",t.style.display="block",e.width=t.offsetWidth,e.height=t.offsetHeight,t.style.display="none",t.style.visibility="visible",e}static fadeIn(t,e){t.style.opacity=0;var n=+new Date,i=0,r=function(){i=+t.style.opacity+((new Date).getTime()-n)/e,t.style.opacity=i,n=+new Date,+i<1&&(window.requestAnimationFrame&&requestAnimationFrame(r)||setTimeout(r,16))};r()}static fadeOut(t,e){var n=1,i=50/e;let r=setInterval((()=>{(n-=i)<=0&&(n=0,clearInterval(r)),t.style.opacity=n}),50)}static getUserAgent(){return navigator.userAgent}static appendChild(t,e){if(this.isElement(e))e.appendChild(t);else if(e.el&&e.elElement)e.elElement.appendChild(t);else{if(!e.el||!e.el.nativeElement)throw new Error("Cannot append "+e+" to "+t);e.el.nativeElement.appendChild(t)}}static scrollInView(t,e){let n=getComputedStyle(t).getPropertyValue("borderTopWidth"),i=n?parseFloat(n):0,r=getComputedStyle(t).getPropertyValue("paddingTop"),o=r?parseFloat(r):0,a=t.getBoundingClientRect(),s=e.getBoundingClientRect().top+document.body.scrollTop-(a.top+document.body.scrollTop)-i-o,l=t.scrollTop,c=t.clientHeight,u=this.getOuterHeight(e);s<0?t.scrollTop=l+s:s+u>c&&(t.scrollTop=l+s-c+u)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(t){}}static calculateScrollbarWidth(){if(null!=this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let t=document.createElement("div");t.className="lv-scrollbar-measure",document.body.appendChild(t);let e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),this.calculatedScrollbarWidth=e,e}static getBrowser(){if(!this.browser){let t=this.resolveUserAgent();this.browser={},t.browser&&(this.browser[t.browser]=!0,this.browser.version=t.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let t=navigator.userAgent.toLowerCase(),e=/(chrome)[ ]([\w.]+)/.exec(t)||/(webkit)[ ]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:e[1]||"",version:e[2]||"0"}}static isVisible(t){return null!=t.offsetParent}static invokeElementMethod(t,e,n){t[e].apply(t,n)}static getFocusableElements(t){let e=r.find(t,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n                [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n                input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n                textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n                [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'),n=[];for(let t of e)"none"!=getComputedStyle(t).display&&"hidden"!=getComputedStyle(t).visibility&&n.push(t);return n}static isClickable(t){const e=t.nodeName,n=t.parentElement&&t.parentElement.nodeName;return"INPUT"==e||"BUTTON"==e||"A"==e||"INPUT"==n||"BUTTON"==n||"A"==n||this.hasClass(t,"lv-button")||this.hasClass(t.parentElement,"lv-button")||this.hasClass(t.parentElement,"lv-checkbox")||this.hasClass(t.parentElement,"lv-radiobutton")}}var o={props:["value"],emits:["input","update:modelValue"],computed:{modelValue(){return this.$attrs.modelValue?this.$attrs.modelValue:this.value}},methods:{updateValue(t){this.$emit("input",t),this.$emit("update:modelValue",t)}}},a={name:"LvOverlaypanel",mixins:[{data:()=>({popstateEvent:null}),methods:{preventPopstate(){window.history.pushState({id:2},null,null),window.addEventListener("popstate",this.handleOnPopstate),this.popstateEvent=!0},handleOnPopstate(){window.removeEventListener("popstate",null),this.popstateEvent=null,this.handleOnBrowserBack&&this.handleOnBrowserBack()},manuallyClosePopstate(){this.popstateEvent&&(this.$router&&this.$router.go(-1),window.removeEventListener("popstate",null),this.popstateEvent=null)}}}],props:{dismissable:{type:Boolean,default:!0},showCloseIcon:{type:Boolean,default:!1},appendTo:{type:String,default:null},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},ariaCloseLabel:{type:String,default:"close"},alignRight:{type:Boolean,default:!1},closeOnResize:{type:Boolean,default:!1}},data:()=>({visible:!1}),selfClick:!1,target:null,outsideClickListener:null,scrollHandler:null,resizeListener:null,beforeDestroy(){this.onBeforeUnmount()},beforeUnmount(){this.onBeforeUnmount()},methods:{handleOnBrowserBack(){!0===this.visible&&this.hide()},toggle(t,e){let n=t?t.currentTarget:e;this.visible?this.hide():this.show(n)},show(t){this.visible=!0,this.target=t,this.preventPopstate()},hide(){this.visible=!1,this.manuallyClosePopstate()},onContentClick(){this.selfClick=!0},onEnter(){this.appendContainer(),this.alignOverlay(),this.dismissable&&this.bindOutsideClickListener(),this.closeOnResize&&(this.bindScrollListener(),this.bindResizeListener()),this.autoZIndex&&(this.$refs.overlayRef.style.zIndex=String(this.baseZIndex+r.generateZIndex()))},onLeave(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener()},alignOverlay(){r.absolutePosition(this.$refs.overlayRef,this.target);const t=r.getOffset(this.$refs.overlayRef),e=r.getOffset(this.target);let n=0;if(t.left<e.left&&(n=e.left-t.left),this.$refs.overlayRef.style.setProperty("--overlay-arrow-left",`${n}px`),this.$refs.overlayRef.style.setProperty("--overlay-arrow-pos","calc(var(--overlay-arrow-left, 0) + 1.25rem)"),t.top<e.top&&r.addClass(this.$refs.overlayRef,"--flipped"),this.alignRight){let t=this.target.getBoundingClientRect().right-this.target.getBoundingClientRect().left,n=this.$refs.overlayRef.getBoundingClientRect().right-this.$refs.overlayRef.getBoundingClientRect().left;this.$refs.overlayRef.style.left=e.left-(n-t)+"px",this.$refs.overlayRef.style.setProperty("--overlay-arrow-pos","calc(100% - 40px)")}},bindOutsideClickListener(){this.outsideClickListener||(this.outsideClickListener=t=>{!this.visible||this.selfClick||this.isTargetClicked(t)||this.hide(),this.selfClick=!1},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null,this.selfClick=!1)},bindScrollListener(){this.scrollHandler||(this.scrollHandler=new i(this.target,(()=>{this.visible&&this.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener(){this.resizeListener||(this.resizeListener=()=>{this.visible&&this.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isTargetClicked(){return this.target&&(this.target===event.target||this.target.contains(event.target))},appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.$refs.overlayRef):document.getElementById(this.appendTo).appendChild(this.$refs.overlayRef))},restoreAppend(){this.$refs.overlayRef&&this.appendTo&&("body"===this.appendTo?document.body.removeChild(this.$refs.overlayRef):document.getElementById(this.appendTo).removeChild(this.$refs.overlayRef))},onBeforeUnmount(){this.restoreAppend(),this.dismissable&&this.unbindOutsideClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindResizeListener(),this.target=null}}};const s="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());let l;const c={},u=function(t,e,n,i,r,o,a,s,l,c){"boolean"!=typeof a&&(l=s,s=a,a=!1);const u="function"==typeof n?n.options:n;let d;if(t&&t.render&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),i&&(u._scopeId=i),o?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=d):e&&(d=a?function(t){e.call(this,c(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),d)if(u.functional){const t=u.render;u.render=function(e,n){return d.call(n),t(e,n)}}else{const t=u.beforeCreate;u.beforeCreate=t?[].concat(t,d):[d]}return n}({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"lv-overlaypanel__transition"},on:{enter:t.onEnter,leave:t.onLeave}},[t.visible?n("div",{ref:"overlayRef",staticClass:"lv-overlaypanel lv-component"},[n("div",{staticClass:"lv-overlaypanel__content",on:{click:t.onContentClick}},[t._t("default")],2),t._v(" "),t.showCloseIcon?n("LvButton",{class:{"lv-overlaypanel__close-btn":!0,"--right-align":t.alignRight},attrs:{icon:"light-icon-x",rounded:"","aria-label":t.ariaCloseLabel,type:"button"},on:{click:t.hide}}):t._e()],1):t._e()])},staticRenderFns:[]},(function(t){t&&t("data-v-55882eb6_0",{source:'.lv-overlaypanel{position:absolute;margin-top:10px}.lv-overlaypanel:after,.lv-overlaypanel:before{position:absolute;left:var(--overlay-arrow-pos);bottom:100%;content:" ";height:0;width:0;pointer-events:none}.lv-overlaypanel.--flipped{margin-top:0;margin-bottom:10px}.lv-overlaypanel.--flipped:after,.lv-overlaypanel.--flipped:before{bottom:auto;top:100%;border-bottom-color:transparent}.lv-overlaypanel .lv-overlaypanel__close-btn{position:absolute;top:0;right:0;transform:translate(50%,-50%)}.lv-overlaypanel .lv-overlaypanel__close-btn.--right-align{transform:translate(-50%,-50%);left:0}.lv-overlaypanel__transition-enter-from{opacity:0;transform:scaleY(.8)}.lv-overlaypanel__transition-leave-to{opacity:0}.lv-overlaypanel__transition-enter-active{transition:transform .12s cubic-bezier(0,0,.2,1),opacity .12s cubic-bezier(0,0,.2,1)}.lv-overlaypanel__transition-leave-active{transition:opacity .1s linear}.lv-overlaypanel{background:#fff;border:0 none;border-radius:4px;box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.lv-overlaypanel:after,.lv-overlaypanel:before{border:10px solid transparent;border-color:rgba(255,255,255,0);border-bottom-color:#fff}.lv-overlaypanel.--flipped:after,.lv-overlaypanel.--flipped:before{border-top-color:#fff}.lv-overlaypanel .lv-overlaypanel__content{padding:1rem}',map:void 0,media:void 0})}),a,void 0,!1,void 0,!1,(function(t){return(t,e)=>function(t,e){const n=s?e.media||"default":t,i=c[n]||(c[n]={ids:new Set,styles:[]});if(!i.ids.has(t)){i.ids.add(t);let n=e.source;if(e.map&&(n+="\n/*# sourceURL="+e.map.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),i.element||(i.element=document.createElement("style"),i.element.type="text/css",e.media&&i.element.setAttribute("media",e.media),void 0===l&&(l=document.head||document.getElementsByTagName("head")[0]),l.appendChild(i.element)),"styleSheet"in i.element)i.styles.push(n),i.element.styleSheet.cssText=i.styles.filter(Boolean).join("\n");else{const t=i.ids.size-1,e=document.createTextNode(n),r=i.element.childNodes;r[t]&&i.element.removeChild(r[t]),r.length?i.element.insertBefore(e,r[t]):i.element.appendChild(e)}}}(t,e)}),void 0,void 0),d=u;var h={name:"Input",inheritAttrs:!1,props:{value:{type:[String,Number],default:null},label:{type:String,default:null},name:{type:String},helpText:{type:String,default:""},editable:{type:Boolean,default:!0},placeholderColor:{type:String,default:"rgba(0, 0, 0, 0.3)"},floatingLabel:{type:Boolean,default:!1},bottomBar:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},iconLeft:{type:String,default:""},iconRight:{type:String,default:""},clearable:{type:Boolean,default:!1},showInputSpinner:{type:Boolean,default:!1}},computed:{modelValue(){return this.value?this.value:this.$attrs.modelValue?this.$attrs.modelValue:null},listeners(){return this.$listeners?{...this.$listeners,input:t=>this.inputEventHandler(t)}:{}},filled(){return null!=this.modelValue&&this.modelValue.toString().length>0}},methods:{inputEventHandler(t){this.$emit("input-native",t),this.updateValue(t.target.value)},updateValue(t){this.$emit("input",t),this.$emit("update:modelValue",t)},handleClear(){this.updateValue(""),this.$emit("clear")}}};const p="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());let f;const m={},v=function(t,e,n,i,r,o,a,s,l,c){"boolean"!=typeof a&&(l=s,s=a,a=!1);const u="function"==typeof n?n.options:n;let d;if(t&&t.render&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),i&&(u._scopeId=i),o?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=d):e&&(d=a?function(t){e.call(this,c(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),d)if(u.functional){const t=u.render;u.render=function(e,n){return d.call(n),t(e,n)}}else{const t=u.beforeCreate;u.beforeCreate=t?[].concat(t,d):[d]}return n}({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["lv-input__group",{"--with-floating-label":t.floatingLabel},{"--not-empty":t.filled},{"--with-bottom-bar":t.floatingLabel||t.bottomBar}]},[n("label",{attrs:{for:t.name}},[t.label?n("div",{staticClass:"lv-input__label",attrs:{for:t.name}},[t._v(t._s(t.label))]):t._e()]),t._v(" "),n("div",{class:["lv-input__field",{"--rounded":t.rounded},{"--show-input-spinner":t.showInputSpinner}],style:"--placeholder-color: "+t.placeholderColor},[t.$slots.prepend||t.iconLeft?n("div",{staticClass:"lv-input__prepend"},[t._t("prepend",[t.iconLeft?n("div",{staticClass:"lv-input__icon"},[n("i",{class:t.iconLeft})]):t._e()])],2):t._e(),t._v(" "),t.editable?n("input",t._g(t._b({staticClass:"lv-input__element",attrs:{name:t.name,id:t.name},domProps:{value:t.modelValue},on:{input:this.inputEventHandler}},"input",t.$attrs,!1),t.listeners)):n("div",{staticClass:"lv-input__default"},[t._t("default",[t._v(t._s(t.modelValue||t.$attrs.placeholder))]),t._v(" "),n("div",{staticClass:"lv-hidden-accessible"},[n("input",t._g(t._b({attrs:{type:"text",readonly:"",name:t.name},domProps:{value:t.modelValue}},"input",t.$attrs,!1),t.listeners))])],2),t._v(" "),t.$slots.append||t.iconRight||t.clearable?n("div",{staticClass:"lv-input__append"},[t.clearable&&t.filled?n("div",{staticClass:"lv-input__icon",staticStyle:{cursor:"pointer"},on:{click:function(e){return e.stopPropagation(),t.handleClear(e)}}},[n("i",{staticClass:"light-icon-x"})]):t._e(),t._v(" "),t._t("append",[t.iconRight?n("div",{staticClass:"lv-input__icon"},[n("i",{class:t.iconRight})]):t._e()])],2):t._e()]),t._v(" "),t.helpText?n("div",{staticClass:"lv-input__help"},[t._v("\n    "+t._s(t.helpText)+"\n  ")]):t._e()])},staticRenderFns:[]},(function(t){t&&t("data-v-2d48dec8_0",{source:'.lv-input__field{width:100%;display:flex;align-items:stretch;position:relative}.lv-input__field .lv-input__element{flex-grow:1;background-color:transparent;border:none;outline:0;font-size:inherit}.lv-input__field .lv-input__default{flex-grow:1}.lv-input__field .lv-input__icon{display:flex;align-items:center;justify-content:center;height:100%;color:#495057}.lv-input__field .lv-input__append{padding-left:12px;margin-right:-12px;display:flex}.lv-input__field .lv-input__append .lv-input__icon{padding-right:12px}.lv-input__field .lv-input__prepend{padding-right:12px;margin-left:-12px;display:flex}.lv-input__field .lv-input__prepend .lv-input__icon{padding-left:12px}.lv-input__label{margin-bottom:8px;font-weight:500}.lv-input__help{margin-top:4px;font-size:12px;opacity:.8}.lv-input__group{position:relative}.lv-input__group.--with-floating-label .lv-input__label{position:absolute;top:8px;font-weight:300;z-index:1;left:12px;transition:all .2s ease;will-change:font-size,top,color}.lv-input__group.--with-floating-label .lv-input__element::-webkit-input-placeholder{color:transparent!important}.lv-input__group.--with-floating-label .lv-input__element:-moz-placeholder{color:transparent!important}.lv-input__group.--with-floating-label .lv-input__element::-moz-placeholder{color:transparent!important}.lv-input__group.--with-floating-label .lv-input__element:-ms-input-placeholder{color:transparent!important}.lv-input__group.--with-floating-label.--not-empty .lv-input__label,.lv-input__group.--with-floating-label:focus-within .lv-input__label{top:-18px;font-size:10px;color:#38b2ab;font-weight:600}.lv-input__group.--with-floating-label .lv-input__field{margin-top:20px}.lv-input__group.--with-bottom-bar .lv-input__field{overflow:hidden}.lv-input__group.--with-bottom-bar .lv-input__field::after{bottom:0;content:"";height:2px;left:50%;background-color:#38b2ab;position:absolute;transition:all .2s ease;width:0;will-change:width,left}.lv-input__group.--with-bottom-bar .lv-input__field:focus-within{box-shadow:none}.lv-input__group.--with-bottom-bar .lv-input__field:focus-within::after{left:0;width:100%}.lv-input__group .lv-input__field{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:1rem;color:#495057;background:#edf2f7;padding:0 12px;border:none;transition:background-color .2s,color .2s,box-shadow .2s,border-radius .3s;appearance:none;border-radius:5px}.lv-input__group .lv-input__field:focus-within{outline:0 none;outline-offset:0;box-shadow:0 0 0 3px rgba(218,225,231,.8)}.lv-input__group .lv-input__field .lv-input__element{padding:10px 0}.lv-input__group .lv-input__field .lv-input__element::placeholder{color:var(--placeholder-color)}.lv-input__group .lv-input__field .lv-input__element:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #edf2f7 inset}.lv-input__group .lv-input__field .lv-input__default{padding:10px 0}.lv-input__group .lv-input__field .lv-input__prepend>*{border-radius:5px 0 0 5px}.lv-input__group .lv-input__field .lv-input__append>*{border-radius:0 5px 5px 0}.lv-input__group .lv-input__field.--rounded{border-radius:30px}.lv-input__group .lv-input__field.--rounded .lv-input__prepend>*{border-radius:30px 0 0 30px}.lv-input__group .lv-input__field.--rounded .lv-input__append>*{border-radius:0 30px 30px 0}.lv-input__group .lv-input__field:not(.--show-input-spinner) input[type=number]{-moz-appearance:textfield}.lv-input__group .lv-input__field:not(.--show-input-spinner) input[type=number]::-webkit-inner-spin-button,.lv-input__group .lv-input__field:not(.--show-input-spinner) input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.lv-input__group .lv-input__field .lv-input__help{padding-left:12px}.lv-input__group .lv-input__field .lv-input-field.lv-error,.lv-input__group .lv-input__field .lv-input-field.lv-invalid{border-color:#f44336}.lv-input__group .lv-input__field .lv-input-field.lv-input-field-sm{font-size:.875rem;padding:.4375rem .4375rem}.lv-input__group .lv-input__field .lv-input-field.lv-input-field-lg{font-size:1.25rem;padding:.625rem .625rem}.lv-input__group .lv-input__field .lv-input-field-sm .lv-input-field{font-size:.875rem;padding:.4375rem .4375rem}.lv-input__group .lv-input__field .lv-input-field-lg .lv-input-field{font-size:1.25rem;padding:.625rem .625rem}.lv-hidden{display:none}.lv-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.lv-hidden-accessible input,.lv-hidden-accessible select{transform:scale(0)}',map:void 0,media:void 0})}),h,void 0,!1,void 0,!1,(function(t){return(t,e)=>function(t,e){const n=p?e.media||"default":t,i=m[n]||(m[n]={ids:new Set,styles:[]});if(!i.ids.has(t)){i.ids.add(t);let n=e.source;if(e.map&&(n+="\n/*# sourceURL="+e.map.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),i.element||(i.element=document.createElement("style"),i.element.type="text/css",e.media&&i.element.setAttribute("media",e.media),void 0===f&&(f=document.head||document.getElementsByTagName("head")[0]),f.appendChild(i.element)),"styleSheet"in i.element)i.styles.push(n),i.element.styleSheet.cssText=i.styles.filter(Boolean).join("\n");else{const t=i.ids.size-1,e=document.createTextNode(n),r=i.element.childNodes;r[t]&&i.element.removeChild(r[t]),r.length?i.element.insertBefore(e,r[t]):i.element.appendChild(e)}}}(t,e)}),void 0,void 0),g=v;var b=/^\s+/,y=/\s+$/,_=0,w=Math.round,x=Math.min,C=Math.max,S=Math.random;function E(t,e){if(e=e||{},(t=t||"")instanceof E)return t;if(!(this instanceof E))return new E(t,e);var n=function(t){var e,n,i,r={r:0,g:0,b:0},o=1,a=null,s=null,l=null,c=!1,u=!1;return"string"==typeof t&&(t=function(t){t=t.replace(b,"").replace(y,"").toLowerCase();var e,n=!1;if(H[t])t=H[t],n=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=nt.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=nt.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=nt.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=nt.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=nt.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=nt.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=nt.hex8.exec(t))?{r:G(e[1]),g:G(e[2]),b:G(e[3]),a:J(e[4]),format:n?"name":"hex8"}:(e=nt.hex6.exec(t))?{r:G(e[1]),g:G(e[2]),b:G(e[3]),format:n?"name":"hex"}:(e=nt.hex4.exec(t))?{r:G(e[1]+""+e[1]),g:G(e[2]+""+e[2]),b:G(e[3]+""+e[3]),a:J(e[4]+""+e[4]),format:n?"name":"hex8"}:!!(e=nt.hex3.exec(t))&&{r:G(e[1]+""+e[1]),g:G(e[2]+""+e[2]),b:G(e[3]+""+e[3]),format:n?"name":"hex"}}(t)),"object"==typeof t&&(it(t.r)&&it(t.g)&&it(t.b)?(e=t.r,n=t.g,i=t.b,r={r:255*q(e,255),g:255*q(n,255),b:255*q(i,255)},c=!0,u="%"===String(t.r).substr(-1)?"prgb":"rgb"):it(t.h)&&it(t.s)&&it(t.v)?(a=K(t.s),s=K(t.v),r=function(t,e,n){t=6*q(t,360),e=q(e,100),n=q(n,100);var i=Math.floor(t),r=t-i,o=n*(1-e),a=n*(1-r*e),s=n*(1-(1-r)*e),l=i%6;return{r:255*[n,a,o,o,s,n][l],g:255*[s,n,n,a,o,o][l],b:255*[o,o,s,n,n,a][l]}}(t.h,a,s),c=!0,u="hsv"):it(t.h)&&it(t.s)&&it(t.l)&&(a=K(t.s),l=K(t.l),r=function(t,e,n){var i,r,o;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=q(t,360),e=q(e,100),n=q(n,100),0===e)i=r=o=n;else{var s=n<.5?n*(1+e):n+e-n*e,l=2*n-s;i=a(l,s,t+1/3),r=a(l,s,t),o=a(l,s,t-1/3)}return{r:255*i,g:255*r,b:255*o}}(t.h,a,l),c=!0,u="hsl"),t.hasOwnProperty("a")&&(o=t.a)),o=Y(o),{ok:c,format:t.format||u,r:x(255,C(r.r,0)),g:x(255,C(r.g,0)),b:x(255,C(r.b,0)),a:o}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=w(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=w(this._r)),this._g<1&&(this._g=w(this._g)),this._b<1&&(this._b=w(this._b)),this._ok=n.ok,this._tc_id=_++}function T(t,e,n){t=q(t,255),e=q(e,255),n=q(n,255);var i,r,o=C(t,e,n),a=x(t,e,n),s=(o+a)/2;if(o==a)i=r=0;else{var l=o-a;switch(r=s>.5?l/(2-o-a):l/(o+a),o){case t:i=(e-n)/l+(e<n?6:0);break;case e:i=(n-t)/l+2;break;case n:i=(t-e)/l+4}i/=6}return{h:i,s:r,l:s}}function O(t,e,n){t=q(t,255),e=q(e,255),n=q(n,255);var i,r,o=C(t,e,n),a=x(t,e,n),s=o,l=o-a;if(r=0===o?0:l/o,o==a)i=0;else{switch(o){case t:i=(e-n)/l+(e<n?6:0);break;case e:i=(n-t)/l+2;break;case n:i=(t-e)/l+4}i/=6}return{h:i,s:r,v:s}}function k(t,e,n,i){var r=[X(w(t).toString(16)),X(w(e).toString(16)),X(w(n).toString(16))];return i&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function A(t,e,n,i){return[X(Z(i)),X(w(t).toString(16)),X(w(e).toString(16)),X(w(n).toString(16))].join("")}function P(t,e){e=0===e?0:e||10;var n=E(t).toHsl();return n.s-=e/100,n.s=W(n.s),E(n)}function M(t,e){e=0===e?0:e||10;var n=E(t).toHsl();return n.s+=e/100,n.s=W(n.s),E(n)}function L(t){return E(t).desaturate(100)}function D(t,e){e=0===e?0:e||10;var n=E(t).toHsl();return n.l+=e/100,n.l=W(n.l),E(n)}function R(t,e){e=0===e?0:e||10;var n=E(t).toRgb();return n.r=C(0,x(255,n.r-w(-e/100*255))),n.g=C(0,x(255,n.g-w(-e/100*255))),n.b=C(0,x(255,n.b-w(-e/100*255))),E(n)}function I(t,e){e=0===e?0:e||10;var n=E(t).toHsl();return n.l-=e/100,n.l=W(n.l),E(n)}function j(t,e){var n=E(t).toHsl(),i=(n.h+e)%360;return n.h=i<0?360+i:i,E(n)}function N(t){var e=E(t).toHsl();return e.h=(e.h+180)%360,E(e)}function F(t){var e=E(t).toHsl(),n=e.h;return[E(t),E({h:(n+120)%360,s:e.s,l:e.l}),E({h:(n+240)%360,s:e.s,l:e.l})]}function z(t){var e=E(t).toHsl(),n=e.h;return[E(t),E({h:(n+90)%360,s:e.s,l:e.l}),E({h:(n+180)%360,s:e.s,l:e.l}),E({h:(n+270)%360,s:e.s,l:e.l})]}function B(t){var e=E(t).toHsl(),n=e.h;return[E(t),E({h:(n+72)%360,s:e.s,l:e.l}),E({h:(n+216)%360,s:e.s,l:e.l})]}function $(t,e,n){e=e||6,n=n||30;var i=E(t).toHsl(),r=360/n,o=[E(t)];for(i.h=(i.h-(r*e>>1)+720)%360;--e;)i.h=(i.h+r)%360,o.push(E(i));return o}function U(t,e){e=e||6;for(var n=E(t).toHsv(),i=n.h,r=n.s,o=n.v,a=[],s=1/e;e--;)a.push(E({h:i,s:r,v:o})),o=(o+s)%1;return a}E.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,i=this.toRgb();return t=i.r/255,e=i.g/255,n=i.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=Y(t),this._roundA=w(100*this._a)/100,this},toHsv:function(){var t=O(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=O(this._r,this._g,this._b),e=w(360*t.h),n=w(100*t.s),i=w(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+i+"%)":"hsva("+e+", "+n+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=T(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=T(this._r,this._g,this._b),e=w(360*t.h),n=w(100*t.s),i=w(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+i+"%)":"hsla("+e+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return k(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,i,r){var o=[X(w(t).toString(16)),X(w(e).toString(16)),X(w(n).toString(16)),X(Z(i))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:w(this._r),g:w(this._g),b:w(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+w(this._r)+", "+w(this._g)+", "+w(this._b)+")":"rgba("+w(this._r)+", "+w(this._g)+", "+w(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:w(100*q(this._r,255))+"%",g:w(100*q(this._g,255))+"%",b:w(100*q(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+w(100*q(this._r,255))+"%, "+w(100*q(this._g,255))+"%, "+w(100*q(this._b,255))+"%)":"rgba("+w(100*q(this._r,255))+"%, "+w(100*q(this._g,255))+"%, "+w(100*q(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(V[k(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+A(this._r,this._g,this._b,this._a),n=e,i=this._gradientType?"GradientType = 1, ":"";if(t){var r=E(t);n="#"+A(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,i=this._a<1&&this._a>=0;return e||!i||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return E(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(D,arguments)},brighten:function(){return this._applyModification(R,arguments)},darken:function(){return this._applyModification(I,arguments)},desaturate:function(){return this._applyModification(P,arguments)},saturate:function(){return this._applyModification(M,arguments)},greyscale:function(){return this._applyModification(L,arguments)},spin:function(){return this._applyModification(j,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination($,arguments)},complement:function(){return this._applyCombination(N,arguments)},monochromatic:function(){return this._applyCombination(U,arguments)},splitcomplement:function(){return this._applyCombination(B,arguments)},triad:function(){return this._applyCombination(F,arguments)},tetrad:function(){return this._applyCombination(z,arguments)}},E.fromRatio=function(t,e){if("object"==typeof t){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]="a"===i?t[i]:K(t[i]));t=n}return E(t,e)},E.equals=function(t,e){return!(!t||!e)&&E(t).toRgbString()==E(e).toRgbString()},E.random=function(){return E.fromRatio({r:S(),g:S(),b:S()})},E.mix=function(t,e,n){n=0===n?0:n||50;var i=E(t).toRgb(),r=E(e).toRgb(),o=n/100;return E({r:(r.r-i.r)*o+i.r,g:(r.g-i.g)*o+i.g,b:(r.b-i.b)*o+i.b,a:(r.a-i.a)*o+i.a})},E.readability=function(t,e){var n=E(t),i=E(e);return(Math.max(n.getLuminance(),i.getLuminance())+.05)/(Math.min(n.getLuminance(),i.getLuminance())+.05)},E.isReadable=function(t,e,n){var i,r,o=E.readability(t,e);switch(r=!1,(i=function(t){var e,n;return"AA"!==(e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==e&&(e="AA"),"small"!==(n=(t.size||"small").toLowerCase())&&"large"!==n&&(n="small"),{level:e,size:n}}(n)).level+i.size){case"AAsmall":case"AAAlarge":r=o>=4.5;break;case"AAlarge":r=o>=3;break;case"AAAsmall":r=o>=7}return r},E.mostReadable=function(t,e,n){var i,r,o,a,s=null,l=0;r=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var c=0;c<e.length;c++)(i=E.readability(t,e[c]))>l&&(l=i,s=E(e[c]));return E.isReadable(t,s,{level:o,size:a})||!r?s:(n.includeFallbackColors=!1,E.mostReadable(t,["#fff","#000"],n))};var H=E.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},V=E.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(H);function Y(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function q(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=x(e,C(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function W(t){return x(1,C(0,t))}function G(t){return parseInt(t,16)}function X(t){return 1==t.length?"0"+t:""+t}function K(t){return t<=1&&(t=100*t+"%"),t}function Z(t){return Math.round(255*parseFloat(t)).toString(16)}function J(t){return G(t)/255}var Q,tt,et,nt=(tt="[\\s|\\(]+("+(Q="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+Q+")[,|\\s]+("+Q+")\\s*\\)?",et="[\\s|\\(]+("+Q+")[,|\\s]+("+Q+")[,|\\s]+("+Q+")[,|\\s]+("+Q+")\\s*\\)?",{CSS_UNIT:new RegExp(Q),rgb:new RegExp("rgb"+tt),rgba:new RegExp("rgba"+et),hsl:new RegExp("hsl"+tt),hsla:new RegExp("hsla"+et),hsv:new RegExp("hsv"+tt),hsva:new RegExp("hsva"+et),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function it(t){return!!nt.CSS_UNIT.exec(t)}function rt(t,e){var n,i=t&&t.a;!(n=t&&t.hsl?E(t.hsl):t&&t.hex&&t.hex.length>0?E(t.hex):t&&t.hsv?E(t.hsv):t&&t.rgba?E(t.rgba):t&&t.rgb?E(t.rgb):E(t))||void 0!==n._a&&null!==n._a||n.setAlpha(i||1);var r=n.toHsl(),o=n.toHsv();return 0===r.s&&(o.h=r.h=t.h||t.hsl&&t.hsl.h||e||0),{hsl:r,hex:n.toHexString().toUpperCase(),hex8:n.toHex8String().toUpperCase(),rgba:n.toRgb(),hsv:o,oldHue:t.h||e||r.h,source:t.source,a:t.a||n.getAlpha()}}var ot={props:{value:{default:"#607c8a"}},data(){return{val:rt(this.value)}},computed:{colors:{get(){return this.val},set(t){this.val=t,this.$emit("input",t)}}},watch:{value(t){this.val=rt(t)}},methods:{colorChange(t,e){this.colors=rt(t,e||this.oldHue)},isValidHex:t=>E(t).isValid(),simpleCheckForValidColor(t){for(var e=["r","g","b","a","h","s","l","v"],n=0,i=0,r=0;r<e.length;r++){var o=e[r];t[o]&&(n++,isNaN(t[o])||i++)}if(n===i)return t},paletteUpperCase:t=>t.map((t=>t.toUpperCase())),isTransparent:t=>0===E(t).getAlpha()}};function at(t,e,n){return e<n?t<e?e:t>n?n:t:t<n?n:t>e?e:t}var st={name:"Saturation",props:{value:Object},computed:{modelValue(){return this.$attrs.modelValue?this.$attrs.modelValue:this.value},colors(){return this.modelValue},bgColor(){return`hsl(${this.colors.hsv.h}, 100%, 50%)`},pointerTop(){return-100*this.colors.hsv.v+1+100+"%"},pointerLeft(){return 100*this.colors.hsv.s+"%"}},methods:{handleChange(t,e){!e&&t.preventDefault();var n=this.$refs.container;if(n){var i=n.clientWidth,r=n.clientHeight,o=n.getBoundingClientRect().left+window.pageXOffset,a=n.getBoundingClientRect().top+window.pageYOffset,s=t.pageX||(t.touches?t.touches[0].pageX:0),l=t.pageY||(t.touches?t.touches[0].pageY:0),c=at(s-o,0,i),u=at(l-a,0,r),d=c/i,h=at(-u/r+1,0,1),p=()=>{this.onChange({h:this.colors.hsv.h,s:d,v:h,a:this.colors.hsv.a,source:"hsva"})};window?window.requestAnimationFrame(p):p()}},onChange(t){this.$emit("change",t)},handleMouseDown(){window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}};function lt(t,e,n,i,r,o,a,s,l,c){"boolean"!=typeof a&&(l=s,s=a,a=!1);const u="function"==typeof n?n.options:n;let d;if(t&&t.render&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),i&&(u._scopeId=i),o?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=d):e&&(d=a?function(t){e.call(this,c(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),d)if(u.functional){const t=u.render;u.render=function(e,n){return d.call(n),t(e,n)}}else{const t=u.beforeCreate;u.beforeCreate=t?[].concat(t,d):[d]}return n}const ct="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function ut(t){return(t,e)=>function(t,e){const n=ct?e.media||"default":t,i=ht[n]||(ht[n]={ids:new Set,styles:[]});if(!i.ids.has(t)){i.ids.add(t);let n=e.source;if(e.map&&(n+="\n/*# sourceURL="+e.map.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),i.element||(i.element=document.createElement("style"),i.element.type="text/css",e.media&&i.element.setAttribute("media",e.media),void 0===dt&&(dt=document.head||document.getElementsByTagName("head")[0]),dt.appendChild(i.element)),"styleSheet"in i.element)i.styles.push(n),i.element.styleSheet.cssText=i.styles.filter(Boolean).join("\n");else{const t=i.ids.size-1,e=document.createTextNode(n),r=i.element.childNodes;r[t]&&i.element.removeChild(r[t]),r.length?i.element.insertBefore(e,r[t]):i.element.appendChild(e)}}}(t,e)}let dt;const ht={},pt=lt({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"container",staticClass:"vc-saturation",style:{background:t.bgColor},on:{mousedown:t.handleMouseDown,touchmove:t.handleChange,touchstart:t.handleChange}},[n("div",{staticClass:"vc-saturation--white"}),t._v(" "),n("div",{staticClass:"vc-saturation--black"}),t._v(" "),n("div",{staticClass:"vc-saturation-pointer",style:{top:t.pointerTop,left:t.pointerLeft}},[n("div",{staticClass:"vc-saturation-circle"})])])},staticRenderFns:[]},(function(t){t&&t("data-v-757456d1_0",{source:".vc-saturation,.vc-saturation--black,.vc-saturation--white{cursor:pointer;position:absolute;top:0;left:0;right:0;bottom:0}.vc-saturation--white{background:linear-gradient(to right,#fff,rgba(255,255,255,0))}.vc-saturation--black{background:linear-gradient(to top,#000,rgba(0,0,0,0))}.vc-saturation-pointer{cursor:pointer;position:absolute}.vc-saturation-circle{cursor:head;width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);border-radius:50%;transition:all .3s;opacity:1;transform:scale(1) translate(-2px,-2px)}.vc-saturation-circle:hover{background-color:rgba(255,255,255,0);opacity:.8;transform:scale(1.3) translate(-2px,-2px)}",map:void 0,media:void 0})}),st,void 0,!1,void 0,!1,ut,void 0,void 0),ft=lt({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["vc-hue",t.directionClass]},[n("div",{ref:"container",staticClass:"vc-hue-container",attrs:{role:"slider","aria-valuenow":t.colors.hsl.h,"aria-valuemin":"0","aria-valuemax":"360"},on:{mousedown:t.handleMouseDown,touchmove:t.handleChange,touchstart:t.handleChange}},[n("div",{staticClass:"vc-hue-pointer",style:{top:t.pointerTop,left:t.pointerLeft},attrs:{role:"presentation"}},[n("div",{staticClass:"vc-hue-picker"})])])])},staticRenderFns:[]},(function(t){t&&t("data-v-41e01831_0",{source:".vc-hue{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:2px}.vc-hue--horizontal{background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.vc-hue--vertical{background:linear-gradient(to top,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.vc-hue-container{cursor:pointer;margin:0 2px;position:relative;height:100%}.vc-hue-pointer{z-index:2;position:absolute}.vc-hue-picker{cursor:pointer;margin-top:1px;width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px rgba(0,0,0,.6);background:#fff;transform:translateX(-2px)}",map:void 0,media:void 0})}),{name:"Hue",props:{value:Object,direction:{type:String,default:"horizontal"}},data:()=>({oldHue:0,pullDirection:""}),computed:{modelValue(){return this.$attrs.modelValue?this.$attrs.modelValue:this.value},colors(){return this.updatePullDirection(),this.modelValue},directionClass(){return{"vc-hue--horizontal":"horizontal"===this.direction,"vc-hue--vertical":"vertical"===this.direction}},pointerTop(){return"vertical"===this.direction?0===this.colors.hsl.h&&"right"===this.pullDirection?0:-100*this.colors.hsl.h/360+100+"%":0},pointerLeft(){return"vertical"===this.direction?0:0===this.colors.hsl.h&&"right"===this.pullDirection?"100%":100*this.colors.hsl.h/360+"%"}},methods:{updatePullDirection(){const t=this.modelValue.hsl.h;0!==t&&t-this.oldHue>0&&(this.pullDirection="right"),0!==t&&t-this.oldHue<0&&(this.pullDirection="left"),this.oldHue=t},handleChange(t,e){!e&&t.preventDefault();var n=this.$refs.container;if(n){var i,r=n.clientWidth,o=n.clientHeight,a=n.getBoundingClientRect().left+window.pageXOffset,s=n.getBoundingClientRect().top+window.pageYOffset,l=(t.pageX||(t.touches?t.touches[0].pageX:0))-a,c=(t.pageY||(t.touches?t.touches[0].pageY:0))-s;"vertical"===this.direction?(i=c<0?360:c>o?0:360*(-100*c/o+100)/100,this.colors.hsl.h!==i&&this.$emit("change",{h:i,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"})):(i=l<0?0:l>r?360:100*l/r*360/100,this.colors.hsl.h!==i&&this.$emit("change",{h:i,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"}))}},handleMouseDown(t){this.handleChange(t,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}},void 0,!1,void 0,!1,ut,void 0,void 0);let mt={};function vt(t,e,n){var i=t+","+e+","+n;if(mt[i])return mt[i];var r=function(t,e,n){if("undefined"==typeof document)return null;var i=document.createElement("canvas");i.width=i.height=2*n;var r=i.getContext("2d");return r?(r.fillStyle=t,r.fillRect(0,0,i.width,i.height),r.fillStyle=e,r.fillRect(0,0,n,n),r.translate(n,n),r.fillRect(0,0,n,n),i.toDataURL()):null}(t,e,n);return mt[i]=r,r}const gt=lt({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"vc-checkerboard",style:t.bgStyle})},staticRenderFns:[]},(function(t){t&&t("data-v-0b2b00c8_0",{source:".vc-checkerboard{position:absolute;top:0;right:0;bottom:0;left:0;background-size:contain}",map:void 0,media:void 0})}),{name:"Checkboard",props:{size:{type:[Number,String],default:8},white:{type:String,default:"#fff"},grey:{type:String,default:"#e6e6e6"}},computed:{bgStyle(){return{"background-image":"url("+vt(this.white,this.grey,this.size)+")"}}}},void 0,!1,void 0,!1,ut,void 0,void 0);var bt={name:"Chrome",mixins:[o,ot],props:{disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1}},components:{saturation:pt,hue:ft,alpha:lt({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vc-alpha"},[n("div",{staticClass:"vc-alpha-checkboard-wrap"},[n("checkboard")],1),t._v(" "),n("div",{staticClass:"vc-alpha-gradient",style:{background:t.gradientColor}}),t._v(" "),n("div",{ref:"container",staticClass:"vc-alpha-container",on:{mousedown:t.handleMouseDown,touchmove:t.handleChange,touchstart:t.handleChange}},[n("div",{staticClass:"vc-alpha-pointer",style:{left:100*t.colors.a+"%"}},[n("div",{staticClass:"vc-alpha-picker"})])])])},staticRenderFns:[]},(function(t){t&&t("data-v-49c3c108_0",{source:".vc-alpha{position:absolute;top:0;right:0;bottom:0;left:0}.vc-alpha-checkboard-wrap{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden}.vc-alpha-gradient{position:absolute;top:0;right:0;bottom:0;left:0}.vc-alpha-container{cursor:pointer;position:relative;z-index:2;height:100%;margin:0 3px}.vc-alpha-pointer{z-index:2;position:absolute}.vc-alpha-picker{cursor:pointer;width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px rgba(0,0,0,.6);background:#fff;margin-top:1px;transform:translateX(-2px)}",map:void 0,media:void 0})}),{name:"Alpha",props:{value:Object,onChange:Function},components:{checkboard:gt},computed:{modelValue(){return this.$attrs.modelValue?this.$attrs.modelValue:this.value},colors(){return this.modelValue},gradientColor(){var t=this.colors.rgba,e=[t.r,t.g,t.b].join(",");return"linear-gradient(to right, rgba("+e+", 0) 0%, rgba("+e+", 1) 100%)"}},methods:{handleChange(t,e){!e&&t.preventDefault();var n=this.$refs.container;if(n){var i,r=n.clientWidth,o=n.getBoundingClientRect().left+window.pageXOffset,a=(t.pageX||(t.touches?t.touches[0].pageX:0))-o;i=a<0?0:a>r?1:Math.round(100*a/r)/100,this.colors.a!==i&&this.$emit("change",{h:this.colors.hsl.h,s:this.colors.hsl.s,l:this.colors.hsl.l,a:i,source:"rgba"})}},handleMouseDown(t){this.handleChange(t,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}},void 0,!1,void 0,!1,ut,void 0,void 0),"ed-in":lt({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vc-editable-input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.val,expression:"val"}],ref:"input",staticClass:"vc-input__input",attrs:{"aria-labelledby":t.labelId},domProps:{value:t.val},on:{keydown:t.handleKeyDown,input:[function(e){e.target.composing||(t.val=e.target.value)},t.update]}}),t._v(" "),n("span",{staticClass:"vc-input__label",attrs:{for:t.label,id:t.labelId}},[t._v(t._s(t.labelSpanText))]),t._v(" "),n("span",{staticClass:"vc-input__desc"},[t._v(t._s(t.desc))])])},staticRenderFns:[]},(function(t){t&&t("data-v-7091eaff_0",{source:".vc-editable-input{position:relative}.vc-input__input{padding:0;border:0;outline:0}.vc-input__label{text-transform:capitalize}",map:void 0,media:void 0})}),{name:"editableInput",props:{label:String,labelText:String,desc:String,value:[String,Number],max:Number,min:Number,arrowOffset:{type:Number,default:1}},computed:{val:{get(){return this.value},set(t){if(!(void 0!==this.max&&+t>this.max))return t;this.$refs.input.value=this.max}},labelId(){return`input__label__${this.label}__${Math.random().toString().slice(2,5)}`},labelSpanText(){return this.labelText||this.label}},methods:{update(t){this.handleChange(t.target.value)},handleChange(t){let e={};e[this.label]=t,(void 0===e.hex&&void 0===e["#"]||t.length>5)&&this.$emit("change",e)},handleKeyDown(t){let e=this.val,n=Number(e);if(n){let i=this.arrowOffset||1;38===t.keyCode&&(e=n+i,this.handleChange(e),t.preventDefault()),40===t.keyCode&&(e=n-i,this.handleChange(e),t.preventDefault())}}}},void 0,!1,void 0,!1,ut,void 0,void 0),checkboard:gt},data:()=>({fieldsIndex:0,highlight:!1}),computed:{hsl(){const{h:t,s:e,l:n}=this.colors.hsl;return{h:t.toFixed(),s:`${(100*e).toFixed()}%`,l:`${(100*n).toFixed()}%`}},activeColor(){const t=this.colors.rgba;return"rgba("+[t.r,t.g,t.b,t.a].join(",")+")"},hasAlpha(){return this.colors.a<1}},methods:{handleClick(t){this.updateValue(t),this.$emit("close")},childChange(t){this.colorChange(t),this.updateOverlayValue(this.colors,this.fieldsIndex)},inputChange(t){if(t){if(t.hex)this.isValidHex(t.hex)&&this.colorChange({hex:t.hex,source:"hex"});else if(t.r||t.g||t.b||t.a)this.colorChange({r:t.r||this.colors.rgba.r,g:t.g||this.colors.rgba.g,b:t.b||this.colors.rgba.b,a:t.a||this.colors.rgba.a,source:"rgba"});else if(t.h||t.s||t.l){const e=t.s?t.s.replace("%","")/100:this.colors.hsl.s,n=t.l?t.l.replace("%","")/100:this.colors.hsl.l;this.colorChange({h:t.h||this.colors.hsl.h,s:e,l:n,source:"hsl"})}this.updateOverlayValue(this.colors,this.fieldsIndex)}},toggleViews(){if(this.fieldsIndex>=2)return this.fieldsIndex=0,void this.updateOverlayValue(this.colors,this.fieldsIndex);this.fieldsIndex++,this.updateOverlayValue(this.colors,this.fieldsIndex)},showHighlight(){this.highlight=!0},hideHighlight(){this.highlight=!1},updateOverlayValue(t,e){let n=`${this.getColorString(t,e)}`;this.updateValue(n)},getColorString:(t,e)=>0==e?"FF"===t.hex8.slice(7,9)?`${t.hex8.slice(0,7)}`:`${t.hex8}`:1==e?1==t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:`rgba(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b}, ${t.rgba.a})`:2==e?`hsla(${Math.floor(t.hsl.h)}, ${Math.floor(100*t.hsl.s)}%, ${Math.floor(100*t.hsl.l)}%, ${t.hsl.a})`:void 0}};const yt=lt({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"lv-colorpicker-wrapper"},[t.withoutInput?n("div",{staticClass:"lv-colorpicker__colorblock-wrap",on:{click:t.toggleColorBlockOverlay}},[n("div",{staticClass:"lv-colorpicker__colorblock",style:{backgroundColor:t.localValue}}),t._v(" "),n("checkboard",{attrs:{grey:"#607c8a"}})],1):n("LvInput",t._b({ref:"colorPickerInput",attrs:{label:t.label,"aria:haspopup":"true","aria-controls":"colorpicker_overlay_panel"},on:{focus:t.toggleColorpickerOverlay},scopedSlots:t._u([{key:"append",fn:function(){return[n("div",{staticClass:"lv-colorpicker__colorblock-wrap",on:{click:t.toggleColorpickerOverlay}},[n("div",{staticClass:"lv-colorpicker__colorblock",style:{backgroundColor:t.localValue}}),t._v(" "),n("checkboard",{attrs:{grey:"#607c8a"}})],1)]},proxy:!0}]),model:{value:t.localValue,callback:function(e){t.localValue=e},expression:"localValue"}},"LvInput",t.$attrs,!1)),t._v(" "),n("LvOverlayPanel",{ref:"ColorpickerOverlay",staticStyle:{width:"max-content"},attrs:{"append-to":"body","show-close-icon":!1,id:"image_overlay_panel",alignRight:""}},[n("ColorpickerCore",t._b({staticStyle:{width:"200px",transform:"scale(1.05)"},on:{close:t.close},model:{value:t.localValue,callback:function(e){t.localValue=e},expression:"localValue"}},"ColorpickerCore",t.$props,!1))],1)],1)},staticRenderFns:[]},(function(t){t&&t("data-v-2c10973c_0",{source:".lv-colorpicker-wrapper{display:inline-block;vertical-align:middle}.lv-colorpicker__colorblock-wrap{position:relative;width:30px;height:30px;top:calc(50% - 16px);right:2px;border-radius:5px!important;transform:scale(.9);cursor:pointer;overflow:hidden;display:inline-block}.lv-colorpicker__colorblock{position:relative;height:100%;width:100%;z-index:1}",map:void 0,media:void 0})}),{name:"LvColorpicker",props:{label:{type:String,default:""},hidePalette:{type:Boolean,default:!1},withoutInput:{type:Boolean,default:!1},colors:{type:Array,default:()=>["#F44336","#E91E63","#9C27B0","#673AB7","#3F51B5","#2196F3","#03A9F4","#00BCD4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#795548"]}},mixins:[o],data:()=>({localValue:"#607C8A"}),watch:{localValue(){this.localValue!==this.modelValue&&this.updateValue(this.localValue)}},mounted(){this.localValue=this.modelValue},components:{LvOverlayPanel:d,ColorpickerCore:lt({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["vc-chrome",t.disableAlpha?"vc-chrome__disable-alpha":""],staticStyle:{"box-shadow":"none"},attrs:{role:"application","aria-label":"Chrome color picker"}},[n("div",{staticClass:"vc-chrome-saturation-wrap",staticStyle:{"border-radius":"2px"}},[n("saturation",{on:{change:t.childChange},model:{value:t.colors,callback:function(e){t.colors=e},expression:"colors"}})],1),t._v(" "),n("div",{staticClass:"vc-chrome-body"},[n("div",{staticClass:"vc-chrome-controls"},[n("div",{staticClass:"vc-chrome-color-wrap"},[n("div",{staticClass:"vc-chrome-active-color",style:{background:t.activeColor},attrs:{"aria-label":"current color is "+t.colors.hex}}),t._v(" "),t.disableAlpha?t._e():n("checkboard")],1),t._v(" "),n("div",{staticClass:"vc-chrome-sliders"},[n("div",{staticClass:"vc-chrome-hue-wrap"},[n("hue",{on:{change:t.childChange},model:{value:t.colors,callback:function(e){t.colors=e},expression:"colors"}})],1),t._v(" "),t.disableAlpha?t._e():n("div",{staticClass:"vc-chrome-alpha-wrap"},[n("alpha",{on:{change:t.childChange},model:{value:t.colors,callback:function(e){t.colors=e},expression:"colors"}})],1)])]),t._v(" "),t.disableFields?t._e():n("div",{staticClass:"vc-chrome-fields-wrap"},[n("div",{directives:[{name:"show",rawName:"v-show",value:0===t.fieldsIndex,expression:"fieldsIndex === 0"}],staticClass:"vc-chrome-fields"},[n("div",{staticClass:"vc-chrome-field"},[t.hasAlpha?t._e():n("ed-in",{attrs:{label:"hex",value:t.colors.hex},on:{change:t.inputChange}}),t._v(" "),t.hasAlpha?n("ed-in",{attrs:{label:"hex",value:t.colors.hex8},on:{change:t.inputChange}}):t._e()],1)]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:1===t.fieldsIndex,expression:"fieldsIndex === 1"}],staticClass:"vc-chrome-fields"},[n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"r",value:t.colors.rgba.r},on:{change:t.inputChange}})],1),t._v(" "),n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"g",value:t.colors.rgba.g},on:{change:t.inputChange}})],1),t._v(" "),n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"b",value:t.colors.rgba.b},on:{change:t.inputChange}})],1),t._v(" "),t.disableAlpha?t._e():n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"a",value:t.colors.a,"arrow-offset":.01,max:1},on:{change:t.inputChange}})],1)]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:2===t.fieldsIndex,expression:"fieldsIndex === 2"}],staticClass:"vc-chrome-fields"},[n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"h",value:t.hsl.h},on:{change:t.inputChange}})],1),t._v(" "),n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"s",value:t.hsl.s},on:{change:t.inputChange}})],1),t._v(" "),n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"l",value:t.hsl.l},on:{change:t.inputChange}})],1),t._v(" "),t.disableAlpha?t._e():n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"a",value:t.colors.a,"arrow-offset":.01,max:1},on:{change:t.inputChange}})],1)]),t._v(" "),n("div",{staticClass:"vc-chrome-toggle-btn",attrs:{role:"button","aria-label":"Change another color definition"},on:{click:t.toggleViews}},[n("div",{staticClass:"vc-chrome-toggle-icon"},[n("svg",{staticStyle:{width:"24px",height:"24px"},attrs:{viewBox:"0 0 24 24"},on:{mouseover:t.showHighlight,mouseenter:t.showHighlight,mouseout:t.hideHighlight}},[n("path",{attrs:{fill:"#333",d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}})])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.highlight,expression:"highlight"}],staticClass:"vc-chrome-toggle-icon-highlight"})])])]),t._v(" "),t.$attrs.hidePalette?t._e():n("div",{staticClass:"palette-container"},t._l(t.$attrs.colors,(function(e,i){return n("div",{key:i,staticClass:"lv-colorpicker__colorblock-wrap",staticStyle:{transform:"scale(0.55)",height:"25px","flex-basis":"12.5%"},on:{click:function(n){return t.handleClick(e)}}},[n("div",{staticClass:"lv-colorpicker__colorblock",style:{backgroundColor:e}}),t._v(" "),n("checkboard",{attrs:{grey:"#607c8a"}})],1)})),0)])},staticRenderFns:[]},(function(t){t&&t("data-v-ba0b69b6_0",{source:".vc-chrome{background:#fff;border-radius:2px;box-shadow:0 0 2px rgba(0,0,0,.3),0 4px 8px rgba(0,0,0,.3);box-sizing:initial;width:225px;font-family:Menlo;background-color:#fff}.vc-chrome-controls{display:flex}.vc-chrome-color-wrap{position:relative;width:36px}.vc-chrome-active-color{position:relative;width:30px;height:30px;border-radius:15px;overflow:hidden;z-index:1}.vc-chrome-color-wrap .vc-checkerboard{width:30px;height:30px;border-radius:15px;background-size:auto}.vc-chrome-sliders{flex:1}.vc-chrome-fields-wrap{display:flex;padding-top:16px}.vc-chrome-fields{display:flex;margin-left:-6px;flex:1}.vc-chrome-field{padding-left:6px;width:100%}.vc-chrome-toggle-btn{width:32px;text-align:right;position:relative}.vc-chrome-toggle-icon{margin-right:-4px;margin-top:12px;cursor:pointer;position:relative;z-index:2}.vc-chrome-toggle-icon-highlight{position:absolute;width:24px;height:28px;background:#eee;border-radius:4px;top:10px;left:12px}.vc-chrome-hue-wrap{position:relative;height:10px;margin-bottom:8px}.vc-chrome-alpha-wrap{position:relative;height:10px}.vc-chrome-hue-wrap .vc-hue{border-radius:2px}.vc-chrome-alpha-wrap .vc-alpha-gradient{border-radius:2px}.vc-chrome-alpha-wrap .vc-alpha-picker,.vc-chrome-hue-wrap .vc-hue-picker{width:12px;height:12px;border-radius:50%;border:solid 2px rgba(255,255,255,0);background-color:#f8f8f8;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);transition:all .3s;transform:translate(-6px,-2px) scale(1)}.vc-chrome-alpha-wrap .vc-alpha-picker:hover,.vc-chrome-hue-wrap .vc-hue-picker:hover{transform:translate(-6px,-2px) scale(1.5);border:solid 2px #fff;background-color:rgba(255,255,255,.5)}.vc-chrome-body{padding:16px 16px 12px;background-color:#fff}.vc-chrome-saturation-wrap{width:100%;padding-bottom:55%;position:relative;border-radius:2px 2px 0 0;overflow:hidden}.vc-chrome-saturation-wrap .vc-saturation-circle{width:12px;height:12px}.vc-chrome-fields .vc-input__input{font-size:11px;color:#333;width:100%;border-radius:2px;border:none;box-shadow:inset 0 0 0 1px #dadada;height:21px;text-align:center}.vc-chrome-fields .vc-input__label{text-transform:uppercase;font-size:11px;line-height:11px;color:#969696;text-align:center;display:block;margin-top:12px}.vc-chrome__disable-alpha .vc-chrome-active-color{width:18px;height:18px}.vc-chrome__disable-alpha .vc-chrome-color-wrap{width:30px}.vc-chrome__disable-alpha .vc-chrome-hue-wrap{margin-top:4px;margin-bottom:4px}.palette-container{border-top:1px solid rgba(100,100,100,.4);padding:8px 4px;display:flex;flex-wrap:wrap;justify-content:flex-start}",map:void 0,media:void 0})}),bt,void 0,!1,void 0,!1,ut,void 0,void 0),LvInput:g,Checkboard:gt},computed:{},methods:{toggleColorpickerOverlay(t){this.$refs.ColorpickerOverlay.toggle(null,this.$refs.colorPickerInput.$el)},toggleColorBlockOverlay(t){this.$refs.ColorpickerOverlay.toggle(t)},close(){this.$refs.ColorpickerOverlay.hide()}}},void 0,!1,void 0,!1,ut,void 0,void 0),_t=yt},1873:(t,e,n)=>{var i=n(9325).Symbol;t.exports=i},2552:(t,e,n)=>{var i=n(1873),r=n(659),o=n(9350),a=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?r(t):o(t)}},4128:(t,e,n)=>{var i=n(1800),r=/^\s+/;t.exports=function(t){return t?t.slice(0,i(t)+1).replace(r,""):t}},4840:(t,e,n)=>{var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=i},659:(t,e,n)=>{var i=n(1873),r=Object.prototype,o=r.hasOwnProperty,a=r.toString,s=i?i.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var i=!0}catch(t){}var r=a.call(t);return i&&(e?t[s]=n:delete t[s]),r}},9350:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},9325:(t,e,n)=>{var i=n(4840),r="object"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function("return this")();t.exports=o},1800:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},2177:(t,e,n)=>{var i=n(1489);t.exports=function(t,e){var n;if("function"!=typeof e)throw new TypeError("Expected a function");return t=i(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}},7334:t=>{t.exports=function(t){return function(){return t}}},8221:(t,e,n)=>{var i=n(3805),r=n(124),o=n(9374),a=Math.max,s=Math.min;t.exports=function(t,e,n){var l,c,u,d,h,p,f=0,m=!1,v=!1,g=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function b(e){var n=l,i=c;return l=c=void 0,f=e,d=t.apply(i,n)}function y(t){var n=t-p;return void 0===p||n>=e||n<0||v&&t-f>=u}function _(){var t=r();if(y(t))return w(t);h=setTimeout(_,function(t){var n=e-(t-p);return v?s(n,u-(t-f)):n}(t))}function w(t){return h=void 0,g&&l?b(t):(l=c=void 0,d)}function x(){var t=r(),n=y(t);if(l=arguments,c=this,p=t,n){if(void 0===h)return function(t){return f=t,h=setTimeout(_,e),m?b(t):d}(p);if(v)return clearTimeout(h),h=setTimeout(_,e),b(p)}return void 0===h&&(h=setTimeout(_,e)),d}return e=o(e)||0,i(n)&&(m=!!n.leading,u=(v="maxWait"in n)?a(o(n.maxWait)||0,e):u,g="trailing"in n?!!n.trailing:g),x.cancel=function(){void 0!==h&&clearTimeout(h),f=0,l=p=c=h=void 0},x.flush=function(){return void 0===h?d:w(r())},x}},3488:t=>{t.exports=function(t){return t}},3805:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},346:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},4394:(t,e,n)=>{var i=n(2552),r=n(346);t.exports=function(t){return"symbol"==typeof t||r(t)&&"[object Symbol]"==i(t)}},8090:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},2543:function(t,e,n){var i;t=n.nmd(t),function(){var r,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=16,c=32,u=64,d=128,h=256,p=1/0,f=9007199254740991,m=NaN,v=4294967295,g=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",u],["rearg",h]],b="[object Arguments]",y="[object Array]",_="[object Boolean]",w="[object Date]",x="[object Error]",C="[object Function]",S="[object GeneratorFunction]",E="[object Map]",T="[object Number]",O="[object Object]",k="[object Promise]",A="[object RegExp]",P="[object Set]",M="[object String]",L="[object Symbol]",D="[object WeakMap]",R="[object ArrayBuffer]",I="[object DataView]",j="[object Float32Array]",N="[object Float64Array]",F="[object Int8Array]",z="[object Int16Array]",B="[object Int32Array]",$="[object Uint8Array]",U="[object Uint8ClampedArray]",H="[object Uint16Array]",V="[object Uint32Array]",Y=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,X=/[&<>"']/g,K=RegExp(G.source),Z=RegExp(X.source),J=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,tt=/<%=([\s\S]+?)%>/g,et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nt=/^\w*$/,it=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rt=/[\\^$.*+?()[\]{}|]/g,ot=RegExp(rt.source),at=/^\s+/,st=/\s/,lt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ct=/\{\n\/\* \[wrapped with (.+)\] \*/,ut=/,? & /,dt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ht=/[()=,{}\[\]\/\s]/,pt=/\\(\\)?/g,ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,mt=/\w*$/,vt=/^[-+]0x[0-9a-f]+$/i,gt=/^0b[01]+$/i,bt=/^\[object .+?Constructor\]$/,yt=/^0o[0-7]+$/i,_t=/^(?:0|[1-9]\d*)$/,wt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xt=/($^)/,Ct=/['\n\r\u2028\u2029\\]/g,St="\\ud800-\\udfff",Et="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Tt="\\u2700-\\u27bf",Ot="a-z\\xdf-\\xf6\\xf8-\\xff",kt="A-Z\\xc0-\\xd6\\xd8-\\xde",At="\\ufe0e\\ufe0f",Pt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Mt="['’]",Lt="["+St+"]",Dt="["+Pt+"]",Rt="["+Et+"]",It="\\d+",jt="["+Tt+"]",Nt="["+Ot+"]",Ft="[^"+St+Pt+It+Tt+Ot+kt+"]",zt="\\ud83c[\\udffb-\\udfff]",Bt="[^"+St+"]",$t="(?:\\ud83c[\\udde6-\\uddff]){2}",Ut="[\\ud800-\\udbff][\\udc00-\\udfff]",Ht="["+kt+"]",Vt="\\u200d",Yt="(?:"+Nt+"|"+Ft+")",qt="(?:"+Ht+"|"+Ft+")",Wt="(?:['’](?:d|ll|m|re|s|t|ve))?",Gt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Xt="(?:"+Rt+"|"+zt+")"+"?",Kt="["+At+"]?",Zt=Kt+Xt+("(?:"+Vt+"(?:"+[Bt,$t,Ut].join("|")+")"+Kt+Xt+")*"),Jt="(?:"+[jt,$t,Ut].join("|")+")"+Zt,Qt="(?:"+[Bt+Rt+"?",Rt,$t,Ut,Lt].join("|")+")",te=RegExp(Mt,"g"),ee=RegExp(Rt,"g"),ne=RegExp(zt+"(?="+zt+")|"+Qt+Zt,"g"),ie=RegExp([Ht+"?"+Nt+"+"+Wt+"(?="+[Dt,Ht,"$"].join("|")+")",qt+"+"+Gt+"(?="+[Dt,Ht+Yt,"$"].join("|")+")",Ht+"?"+Yt+"+"+Wt,Ht+"+"+Gt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",It,Jt].join("|"),"g"),re=RegExp("["+Vt+St+Et+At+"]"),oe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ae=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],se=-1,le={};le[j]=le[N]=le[F]=le[z]=le[B]=le[$]=le[U]=le[H]=le[V]=!0,le[b]=le[y]=le[R]=le[_]=le[I]=le[w]=le[x]=le[C]=le[E]=le[T]=le[O]=le[A]=le[P]=le[M]=le[D]=!1;var ce={};ce[b]=ce[y]=ce[R]=ce[I]=ce[_]=ce[w]=ce[j]=ce[N]=ce[F]=ce[z]=ce[B]=ce[E]=ce[T]=ce[O]=ce[A]=ce[P]=ce[M]=ce[L]=ce[$]=ce[U]=ce[H]=ce[V]=!0,ce[x]=ce[C]=ce[D]=!1;var ue={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},de=parseFloat,he=parseInt,pe="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,fe="object"==typeof self&&self&&self.Object===Object&&self,me=pe||fe||Function("return this")(),ve=e&&!e.nodeType&&e,ge=ve&&t&&!t.nodeType&&t,be=ge&&ge.exports===ve,ye=be&&pe.process,_e=function(){try{var t=ge&&ge.require&&ge.require("util").types;return t||ye&&ye.binding&&ye.binding("util")}catch(t){}}(),we=_e&&_e.isArrayBuffer,xe=_e&&_e.isDate,Ce=_e&&_e.isMap,Se=_e&&_e.isRegExp,Ee=_e&&_e.isSet,Te=_e&&_e.isTypedArray;function Oe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function ke(t,e,n,i){for(var r=-1,o=null==t?0:t.length;++r<o;){var a=t[r];e(i,a,n(a),t)}return i}function Ae(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}function Pe(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Me(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(!e(t[n],n,t))return!1;return!0}function Le(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var a=t[n];e(a,n,t)&&(o[r++]=a)}return o}function De(t,e){return!!(null==t?0:t.length)&&He(t,e,0)>-1}function Re(t,e,n){for(var i=-1,r=null==t?0:t.length;++i<r;)if(n(e,t[i]))return!0;return!1}function Ie(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}function je(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}function Ne(t,e,n,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(n=t[++r]);++r<o;)n=e(n,t[r],r,t);return n}function Fe(t,e,n,i){var r=null==t?0:t.length;for(i&&r&&(n=t[--r]);r--;)n=e(n,t[r],r,t);return n}function ze(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}var Be=We("length");function $e(t,e,n){var i;return n(t,(function(t,n,r){if(e(t,n,r))return i=n,!1})),i}function Ue(t,e,n,i){for(var r=t.length,o=n+(i?1:-1);i?o--:++o<r;)if(e(t[o],o,t))return o;return-1}function He(t,e,n){return e==e?function(t,e,n){var i=n-1,r=t.length;for(;++i<r;)if(t[i]===e)return i;return-1}(t,e,n):Ue(t,Ye,n)}function Ve(t,e,n,i){for(var r=n-1,o=t.length;++r<o;)if(i(t[r],e))return r;return-1}function Ye(t){return t!=t}function qe(t,e){var n=null==t?0:t.length;return n?Ke(t,e)/n:m}function We(t){return function(e){return null==e?r:e[t]}}function Ge(t){return function(e){return null==t?r:t[e]}}function Xe(t,e,n,i,r){return r(t,(function(t,r,o){n=i?(i=!1,t):e(n,t,r,o)})),n}function Ke(t,e){for(var n,i=-1,o=t.length;++i<o;){var a=e(t[i]);a!==r&&(n=n===r?a:n+a)}return n}function Ze(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}function Je(t){return t?t.slice(0,vn(t)+1).replace(at,""):t}function Qe(t){return function(e){return t(e)}}function tn(t,e){return Ie(e,(function(e){return t[e]}))}function en(t,e){return t.has(e)}function nn(t,e){for(var n=-1,i=t.length;++n<i&&He(e,t[n],0)>-1;);return n}function rn(t,e){for(var n=t.length;n--&&He(e,t[n],0)>-1;);return n}var on=Ge({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"}),an=Ge({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function sn(t){return"\\"+ue[t]}function ln(t){return re.test(t)}function cn(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}function un(t,e){return function(n){return t(e(n))}}function dn(t,e){for(var n=-1,i=t.length,r=0,o=[];++n<i;){var a=t[n];a!==e&&a!==s||(t[n]=s,o[r++]=n)}return o}function hn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function pn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function fn(t){return ln(t)?function(t){var e=ne.lastIndex=0;for(;ne.test(t);)++e;return e}(t):Be(t)}function mn(t){return ln(t)?function(t){return t.match(ne)||[]}(t):function(t){return t.split("")}(t)}function vn(t){for(var e=t.length;e--&&st.test(t.charAt(e)););return e}var gn=Ge({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var bn=function t(e){var n,i=(e=null==e?me:bn.defaults(me.Object(),e,bn.pick(me,ae))).Array,st=e.Date,St=e.Error,Et=e.Function,Tt=e.Math,Ot=e.Object,kt=e.RegExp,At=e.String,Pt=e.TypeError,Mt=i.prototype,Lt=Et.prototype,Dt=Ot.prototype,Rt=e["__core-js_shared__"],It=Lt.toString,jt=Dt.hasOwnProperty,Nt=0,Ft=(n=/[^.]+$/.exec(Rt&&Rt.keys&&Rt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",zt=Dt.toString,Bt=It.call(Ot),$t=me._,Ut=kt("^"+It.call(jt).replace(rt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ht=be?e.Buffer:r,Vt=e.Symbol,Yt=e.Uint8Array,qt=Ht?Ht.allocUnsafe:r,Wt=un(Ot.getPrototypeOf,Ot),Gt=Ot.create,Xt=Dt.propertyIsEnumerable,Kt=Mt.splice,Zt=Vt?Vt.isConcatSpreadable:r,Jt=Vt?Vt.iterator:r,Qt=Vt?Vt.toStringTag:r,ne=function(){try{var t=po(Ot,"defineProperty");return t({},"",{}),t}catch(t){}}(),re=e.clearTimeout!==me.clearTimeout&&e.clearTimeout,ue=st&&st.now!==me.Date.now&&st.now,pe=e.setTimeout!==me.setTimeout&&e.setTimeout,fe=Tt.ceil,ve=Tt.floor,ge=Ot.getOwnPropertySymbols,ye=Ht?Ht.isBuffer:r,_e=e.isFinite,Be=Mt.join,Ge=un(Ot.keys,Ot),yn=Tt.max,_n=Tt.min,wn=st.now,xn=e.parseInt,Cn=Tt.random,Sn=Mt.reverse,En=po(e,"DataView"),Tn=po(e,"Map"),On=po(e,"Promise"),kn=po(e,"Set"),An=po(e,"WeakMap"),Pn=po(Ot,"create"),Mn=An&&new An,Ln={},Dn=zo(En),Rn=zo(Tn),In=zo(On),jn=zo(kn),Nn=zo(An),Fn=Vt?Vt.prototype:r,zn=Fn?Fn.valueOf:r,Bn=Fn?Fn.toString:r;function $n(t){if(ns(t)&&!Ya(t)&&!(t instanceof Yn)){if(t instanceof Vn)return t;if(jt.call(t,"__wrapped__"))return Bo(t)}return new Vn(t)}var Un=function(){function t(){}return function(e){if(!es(e))return{};if(Gt)return Gt(e);t.prototype=e;var n=new t;return t.prototype=r,n}}();function Hn(){}function Vn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=r}function Yn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function qn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Wn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Gn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Xn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Gn;++e<n;)this.add(t[e])}function Kn(t){var e=this.__data__=new Wn(t);this.size=e.size}function Zn(t,e){var n=Ya(t),i=!n&&Va(t),r=!n&&!i&&Xa(t),o=!n&&!i&&!r&&us(t),a=n||i||r||o,s=a?Ze(t.length,At):[],l=s.length;for(var c in t)!e&&!jt.call(t,c)||a&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_o(c,l))||s.push(c);return s}function Jn(t){var e=t.length;return e?t[Xi(0,e-1)]:r}function Qn(t,e){return jo(Pr(t),li(e,0,t.length))}function ti(t){return jo(Pr(t))}function ei(t,e,n){(n!==r&&!$a(t[e],n)||n===r&&!(e in t))&&ai(t,e,n)}function ni(t,e,n){var i=t[e];jt.call(t,e)&&$a(i,n)&&(n!==r||e in t)||ai(t,e,n)}function ii(t,e){for(var n=t.length;n--;)if($a(t[n][0],e))return n;return-1}function ri(t,e,n,i){return pi(t,(function(t,r,o){e(i,t,n(t),o)})),i}function oi(t,e){return t&&Mr(e,Ls(e),t)}function ai(t,e,n){"__proto__"==e&&ne?ne(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function si(t,e){for(var n=-1,o=e.length,a=i(o),s=null==t;++n<o;)a[n]=s?r:Os(t,e[n]);return a}function li(t,e,n){return t==t&&(n!==r&&(t=t<=n?t:n),e!==r&&(t=t>=e?t:e)),t}function ci(t,e,n,i,o,a){var s,l=1&e,c=2&e,u=4&e;if(n&&(s=o?n(t,i,o,a):n(t)),s!==r)return s;if(!es(t))return t;var d=Ya(t);if(d){if(s=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&jt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!l)return Pr(t,s)}else{var h=vo(t),p=h==C||h==S;if(Xa(t))return Sr(t,l);if(h==O||h==b||p&&!o){if(s=c||p?{}:bo(t),!l)return c?function(t,e){return Mr(t,mo(t),e)}(t,function(t,e){return t&&Mr(e,Ds(e),t)}(s,t)):function(t,e){return Mr(t,fo(t),e)}(t,oi(s,t))}else{if(!ce[h])return o?t:{};s=function(t,e,n){var i=t.constructor;switch(e){case R:return Er(t);case _:case w:return new i(+t);case I:return function(t,e){var n=e?Er(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case j:case N:case F:case z:case B:case $:case U:case H:case V:return Tr(t,n);case E:return new i;case T:case M:return new i(t);case A:return function(t){var e=new t.constructor(t.source,mt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case P:return new i;case L:return r=t,zn?Ot(zn.call(r)):{}}var r}(t,h,l)}}a||(a=new Kn);var f=a.get(t);if(f)return f;a.set(t,s),ss(t)?t.forEach((function(i){s.add(ci(i,e,n,i,t,a))})):is(t)&&t.forEach((function(i,r){s.set(r,ci(i,e,n,r,t,a))}));var m=d?r:(u?c?oo:ro:c?Ds:Ls)(t);return Ae(m||t,(function(i,r){m&&(i=t[r=i]),ni(s,r,ci(i,e,n,r,t,a))})),s}function ui(t,e,n){var i=n.length;if(null==t)return!i;for(t=Ot(t);i--;){var o=n[i],a=e[o],s=t[o];if(s===r&&!(o in t)||!a(s))return!1}return!0}function di(t,e,n){if("function"!=typeof t)throw new Pt(o);return Lo((function(){t.apply(r,n)}),e)}function hi(t,e,n,i){var r=-1,o=De,a=!0,s=t.length,l=[],c=e.length;if(!s)return l;n&&(e=Ie(e,Qe(n))),i?(o=Re,a=!1):e.length>=200&&(o=en,a=!1,e=new Xn(e));t:for(;++r<s;){var u=t[r],d=null==n?u:n(u);if(u=i||0!==u?u:0,a&&d==d){for(var h=c;h--;)if(e[h]===d)continue t;l.push(u)}else o(e,d,i)||l.push(u)}return l}$n.templateSettings={escape:J,evaluate:Q,interpolate:tt,variable:"",imports:{_:$n}},$n.prototype=Hn.prototype,$n.prototype.constructor=$n,Vn.prototype=Un(Hn.prototype),Vn.prototype.constructor=Vn,Yn.prototype=Un(Hn.prototype),Yn.prototype.constructor=Yn,qn.prototype.clear=function(){this.__data__=Pn?Pn(null):{},this.size=0},qn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},qn.prototype.get=function(t){var e=this.__data__;if(Pn){var n=e[t];return n===a?r:n}return jt.call(e,t)?e[t]:r},qn.prototype.has=function(t){var e=this.__data__;return Pn?e[t]!==r:jt.call(e,t)},qn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Pn&&e===r?a:e,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(t){var e=this.__data__,n=ii(e,t);return!(n<0)&&(n==e.length-1?e.pop():Kt.call(e,n,1),--this.size,!0)},Wn.prototype.get=function(t){var e=this.__data__,n=ii(e,t);return n<0?r:e[n][1]},Wn.prototype.has=function(t){return ii(this.__data__,t)>-1},Wn.prototype.set=function(t,e){var n=this.__data__,i=ii(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(Tn||Wn),string:new qn}},Gn.prototype.delete=function(t){var e=uo(this,t).delete(t);return this.size-=e?1:0,e},Gn.prototype.get=function(t){return uo(this,t).get(t)},Gn.prototype.has=function(t){return uo(this,t).has(t)},Gn.prototype.set=function(t,e){var n=uo(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this},Xn.prototype.add=Xn.prototype.push=function(t){return this.__data__.set(t,a),this},Xn.prototype.has=function(t){return this.__data__.has(t)},Kn.prototype.clear=function(){this.__data__=new Wn,this.size=0},Kn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Kn.prototype.get=function(t){return this.__data__.get(t)},Kn.prototype.has=function(t){return this.__data__.has(t)},Kn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Wn){var i=n.__data__;if(!Tn||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new Gn(i)}return n.set(t,e),this.size=n.size,this};var pi=Rr(wi),fi=Rr(xi,!0);function mi(t,e){var n=!0;return pi(t,(function(t,i,r){return n=!!e(t,i,r)})),n}function vi(t,e,n){for(var i=-1,o=t.length;++i<o;){var a=t[i],s=e(a);if(null!=s&&(l===r?s==s&&!cs(s):n(s,l)))var l=s,c=a}return c}function gi(t,e){var n=[];return pi(t,(function(t,i,r){e(t,i,r)&&n.push(t)})),n}function bi(t,e,n,i,r){var o=-1,a=t.length;for(n||(n=yo),r||(r=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?bi(s,e-1,n,i,r):je(r,s):i||(r[r.length]=s)}return r}var yi=Ir(),_i=Ir(!0);function wi(t,e){return t&&yi(t,e,Ls)}function xi(t,e){return t&&_i(t,e,Ls)}function Ci(t,e){return Le(e,(function(e){return Ja(t[e])}))}function Si(t,e){for(var n=0,i=(e=_r(e,t)).length;null!=t&&n<i;)t=t[Fo(e[n++])];return n&&n==i?t:r}function Ei(t,e,n){var i=e(t);return Ya(t)?i:je(i,n(t))}function Ti(t){return null==t?t===r?"[object Undefined]":"[object Null]":Qt&&Qt in Ot(t)?function(t){var e=jt.call(t,Qt),n=t[Qt];try{t[Qt]=r;var i=!0}catch(t){}var o=zt.call(t);i&&(e?t[Qt]=n:delete t[Qt]);return o}(t):function(t){return zt.call(t)}(t)}function Oi(t,e){return t>e}function ki(t,e){return null!=t&&jt.call(t,e)}function Ai(t,e){return null!=t&&e in Ot(t)}function Pi(t,e,n){for(var o=n?Re:De,a=t[0].length,s=t.length,l=s,c=i(s),u=1/0,d=[];l--;){var h=t[l];l&&e&&(h=Ie(h,Qe(e))),u=_n(h.length,u),c[l]=!n&&(e||a>=120&&h.length>=120)?new Xn(l&&h):r}h=t[0];var p=-1,f=c[0];t:for(;++p<a&&d.length<u;){var m=h[p],v=e?e(m):m;if(m=n||0!==m?m:0,!(f?en(f,v):o(d,v,n))){for(l=s;--l;){var g=c[l];if(!(g?en(g,v):o(t[l],v,n)))continue t}f&&f.push(v),d.push(m)}}return d}function Mi(t,e,n){var i=null==(t=Ao(t,e=_r(e,t)))?t:t[Fo(Zo(e))];return null==i?r:Oe(i,t,n)}function Li(t){return ns(t)&&Ti(t)==b}function Di(t,e,n,i,o){return t===e||(null==t||null==e||!ns(t)&&!ns(e)?t!=t&&e!=e:function(t,e,n,i,o,a){var s=Ya(t),l=Ya(e),c=s?y:vo(t),u=l?y:vo(e),d=(c=c==b?O:c)==O,h=(u=u==b?O:u)==O,p=c==u;if(p&&Xa(t)){if(!Xa(e))return!1;s=!0,d=!1}if(p&&!d)return a||(a=new Kn),s||us(t)?no(t,e,n,i,o,a):function(t,e,n,i,r,o,a){switch(n){case I:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case R:return!(t.byteLength!=e.byteLength||!o(new Yt(t),new Yt(e)));case _:case w:case T:return $a(+t,+e);case x:return t.name==e.name&&t.message==e.message;case A:case M:return t==e+"";case E:var s=cn;case P:var l=1&i;if(s||(s=hn),t.size!=e.size&&!l)return!1;var c=a.get(t);if(c)return c==e;i|=2,a.set(t,e);var u=no(s(t),s(e),i,r,o,a);return a.delete(t),u;case L:if(zn)return zn.call(t)==zn.call(e)}return!1}(t,e,c,n,i,o,a);if(!(1&n)){var f=d&&jt.call(t,"__wrapped__"),m=h&&jt.call(e,"__wrapped__");if(f||m){var v=f?t.value():t,g=m?e.value():e;return a||(a=new Kn),o(v,g,n,i,a)}}if(!p)return!1;return a||(a=new Kn),function(t,e,n,i,o,a){var s=1&n,l=ro(t),c=l.length,u=ro(e),d=u.length;if(c!=d&&!s)return!1;var h=c;for(;h--;){var p=l[h];if(!(s?p in e:jt.call(e,p)))return!1}var f=a.get(t),m=a.get(e);if(f&&m)return f==e&&m==t;var v=!0;a.set(t,e),a.set(e,t);var g=s;for(;++h<c;){var b=t[p=l[h]],y=e[p];if(i)var _=s?i(y,b,p,e,t,a):i(b,y,p,t,e,a);if(!(_===r?b===y||o(b,y,n,i,a):_)){v=!1;break}g||(g="constructor"==p)}if(v&&!g){var w=t.constructor,x=e.constructor;w==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(v=!1)}return a.delete(t),a.delete(e),v}(t,e,n,i,o,a)}(t,e,n,i,Di,o))}function Ri(t,e,n,i){var o=n.length,a=o,s=!i;if(null==t)return!a;for(t=Ot(t);o--;){var l=n[o];if(s&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++o<a;){var c=(l=n[o])[0],u=t[c],d=l[1];if(s&&l[2]){if(u===r&&!(c in t))return!1}else{var h=new Kn;if(i)var p=i(u,d,c,t,e,h);if(!(p===r?Di(d,u,3,i,h):p))return!1}}return!0}function Ii(t){return!(!es(t)||(e=t,Ft&&Ft in e))&&(Ja(t)?Ut:bt).test(zo(t));var e}function ji(t){return"function"==typeof t?t:null==t?rl:"object"==typeof t?Ya(t)?Ui(t[0],t[1]):$i(t):pl(t)}function Ni(t){if(!Eo(t))return Ge(t);var e=[];for(var n in Ot(t))jt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Fi(t){if(!es(t))return function(t){var e=[];if(null!=t)for(var n in Ot(t))e.push(n);return e}(t);var e=Eo(t),n=[];for(var i in t)("constructor"!=i||!e&&jt.call(t,i))&&n.push(i);return n}function zi(t,e){return t<e}function Bi(t,e){var n=-1,r=Wa(t)?i(t.length):[];return pi(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}function $i(t){var e=ho(t);return 1==e.length&&e[0][2]?Oo(e[0][0],e[0][1]):function(n){return n===t||Ri(n,t,e)}}function Ui(t,e){return xo(t)&&To(e)?Oo(Fo(t),e):function(n){var i=Os(n,t);return i===r&&i===e?ks(n,t):Di(e,i,3)}}function Hi(t,e,n,i,o){t!==e&&yi(e,(function(a,s){if(o||(o=new Kn),es(a))!function(t,e,n,i,o,a,s){var l=Po(t,n),c=Po(e,n),u=s.get(c);if(u)return void ei(t,n,u);var d=a?a(l,c,n+"",t,e,s):r,h=d===r;if(h){var p=Ya(c),f=!p&&Xa(c),m=!p&&!f&&us(c);d=c,p||f||m?Ya(l)?d=l:Ga(l)?d=Pr(l):f?(h=!1,d=Sr(c,!0)):m?(h=!1,d=Tr(c,!0)):d=[]:os(c)||Va(c)?(d=l,Va(l)?d=bs(l):es(l)&&!Ja(l)||(d=bo(c))):h=!1}h&&(s.set(c,d),o(d,c,i,a,s),s.delete(c));ei(t,n,d)}(t,e,s,n,Hi,i,o);else{var l=i?i(Po(t,s),a,s+"",t,e,o):r;l===r&&(l=a),ei(t,s,l)}}),Ds)}function Vi(t,e){var n=t.length;if(n)return _o(e+=e<0?n:0,n)?t[e]:r}function Yi(t,e,n){e=e.length?Ie(e,(function(t){return Ya(t)?function(e){return Si(e,1===t.length?t[0]:t)}:t})):[rl];var i=-1;e=Ie(e,Qe(co()));var r=Bi(t,(function(t,n,r){var o=Ie(e,(function(e){return e(t)}));return{criteria:o,index:++i,value:t}}));return function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(r,(function(t,e){return function(t,e,n){var i=-1,r=t.criteria,o=e.criteria,a=r.length,s=n.length;for(;++i<a;){var l=Or(r[i],o[i]);if(l)return i>=s?l:l*("desc"==n[i]?-1:1)}return t.index-e.index}(t,e,n)}))}function qi(t,e,n){for(var i=-1,r=e.length,o={};++i<r;){var a=e[i],s=Si(t,a);n(s,a)&&tr(o,_r(a,t),s)}return o}function Wi(t,e,n,i){var r=i?Ve:He,o=-1,a=e.length,s=t;for(t===e&&(e=Pr(e)),n&&(s=Ie(t,Qe(n)));++o<a;)for(var l=0,c=e[o],u=n?n(c):c;(l=r(s,u,l,i))>-1;)s!==t&&Kt.call(s,l,1),Kt.call(t,l,1);return t}function Gi(t,e){for(var n=t?e.length:0,i=n-1;n--;){var r=e[n];if(n==i||r!==o){var o=r;_o(r)?Kt.call(t,r,1):hr(t,r)}}return t}function Xi(t,e){return t+ve(Cn()*(e-t+1))}function Ki(t,e){var n="";if(!t||e<1||e>f)return n;do{e%2&&(n+=t),(e=ve(e/2))&&(t+=t)}while(e);return n}function Zi(t,e){return Do(ko(t,e,rl),t+"")}function Ji(t){return Jn($s(t))}function Qi(t,e){var n=$s(t);return jo(n,li(e,0,n.length))}function tr(t,e,n,i){if(!es(t))return t;for(var o=-1,a=(e=_r(e,t)).length,s=a-1,l=t;null!=l&&++o<a;){var c=Fo(e[o]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(o!=s){var d=l[c];(u=i?i(d,c,l):r)===r&&(u=es(d)?d:_o(e[o+1])?[]:{})}ni(l,c,u),l=l[c]}return t}var er=Mn?function(t,e){return Mn.set(t,e),t}:rl,nr=ne?function(t,e){return ne(t,"toString",{configurable:!0,enumerable:!1,value:el(e),writable:!0})}:rl;function ir(t){return jo($s(t))}function rr(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var a=i(o);++r<o;)a[r]=t[r+e];return a}function or(t,e){var n;return pi(t,(function(t,i,r){return!(n=e(t,i,r))})),!!n}function ar(t,e,n){var i=0,r=null==t?i:t.length;if("number"==typeof e&&e==e&&r<=2147483647){for(;i<r;){var o=i+r>>>1,a=t[o];null!==a&&!cs(a)&&(n?a<=e:a<e)?i=o+1:r=o}return r}return sr(t,e,rl,n)}function sr(t,e,n,i){var o=0,a=null==t?0:t.length;if(0===a)return 0;for(var s=(e=n(e))!=e,l=null===e,c=cs(e),u=e===r;o<a;){var d=ve((o+a)/2),h=n(t[d]),p=h!==r,f=null===h,m=h==h,v=cs(h);if(s)var g=i||m;else g=u?m&&(i||p):l?m&&p&&(i||!f):c?m&&p&&!f&&(i||!v):!f&&!v&&(i?h<=e:h<e);g?o=d+1:a=d}return _n(a,4294967294)}function lr(t,e){for(var n=-1,i=t.length,r=0,o=[];++n<i;){var a=t[n],s=e?e(a):a;if(!n||!$a(s,l)){var l=s;o[r++]=0===a?0:a}}return o}function cr(t){return"number"==typeof t?t:cs(t)?m:+t}function ur(t){if("string"==typeof t)return t;if(Ya(t))return Ie(t,ur)+"";if(cs(t))return Bn?Bn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function dr(t,e,n){var i=-1,r=De,o=t.length,a=!0,s=[],l=s;if(n)a=!1,r=Re;else if(o>=200){var c=e?null:Kr(t);if(c)return hn(c);a=!1,r=en,l=new Xn}else l=e?[]:s;t:for(;++i<o;){var u=t[i],d=e?e(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue t;e&&l.push(d),s.push(u)}else r(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function hr(t,e){return null==(t=Ao(t,e=_r(e,t)))||delete t[Fo(Zo(e))]}function pr(t,e,n,i){return tr(t,e,n(Si(t,e)),i)}function fr(t,e,n,i){for(var r=t.length,o=i?r:-1;(i?o--:++o<r)&&e(t[o],o,t););return n?rr(t,i?0:o,i?o+1:r):rr(t,i?o+1:0,i?r:o)}function mr(t,e){var n=t;return n instanceof Yn&&(n=n.value()),Ne(e,(function(t,e){return e.func.apply(e.thisArg,je([t],e.args))}),n)}function vr(t,e,n){var r=t.length;if(r<2)return r?dr(t[0]):[];for(var o=-1,a=i(r);++o<r;)for(var s=t[o],l=-1;++l<r;)l!=o&&(a[o]=hi(a[o]||s,t[l],e,n));return dr(bi(a,1),e,n)}function gr(t,e,n){for(var i=-1,o=t.length,a=e.length,s={};++i<o;){var l=i<a?e[i]:r;n(s,t[i],l)}return s}function br(t){return Ga(t)?t:[]}function yr(t){return"function"==typeof t?t:rl}function _r(t,e){return Ya(t)?t:xo(t,e)?[t]:No(ys(t))}var wr=Zi;function xr(t,e,n){var i=t.length;return n=n===r?i:n,!e&&n>=i?t:rr(t,e,n)}var Cr=re||function(t){return me.clearTimeout(t)};function Sr(t,e){if(e)return t.slice();var n=t.length,i=qt?qt(n):new t.constructor(n);return t.copy(i),i}function Er(t){var e=new t.constructor(t.byteLength);return new Yt(e).set(new Yt(t)),e}function Tr(t,e){var n=e?Er(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Or(t,e){if(t!==e){var n=t!==r,i=null===t,o=t==t,a=cs(t),s=e!==r,l=null===e,c=e==e,u=cs(e);if(!l&&!u&&!a&&t>e||a&&s&&c&&!l&&!u||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!u&&t<e||u&&n&&o&&!i&&!a||l&&n&&o||!s&&o||!c)return-1}return 0}function kr(t,e,n,r){for(var o=-1,a=t.length,s=n.length,l=-1,c=e.length,u=yn(a-s,0),d=i(c+u),h=!r;++l<c;)d[l]=e[l];for(;++o<s;)(h||o<a)&&(d[n[o]]=t[o]);for(;u--;)d[l++]=t[o++];return d}function Ar(t,e,n,r){for(var o=-1,a=t.length,s=-1,l=n.length,c=-1,u=e.length,d=yn(a-l,0),h=i(d+u),p=!r;++o<d;)h[o]=t[o];for(var f=o;++c<u;)h[f+c]=e[c];for(;++s<l;)(p||o<a)&&(h[f+n[s]]=t[o++]);return h}function Pr(t,e){var n=-1,r=t.length;for(e||(e=i(r));++n<r;)e[n]=t[n];return e}function Mr(t,e,n,i){var o=!n;n||(n={});for(var a=-1,s=e.length;++a<s;){var l=e[a],c=i?i(n[l],t[l],l,n,t):r;c===r&&(c=t[l]),o?ai(n,l,c):ni(n,l,c)}return n}function Lr(t,e){return function(n,i){var r=Ya(n)?ke:ri,o=e?e():{};return r(n,t,co(i,2),o)}}function Dr(t){return Zi((function(e,n){var i=-1,o=n.length,a=o>1?n[o-1]:r,s=o>2?n[2]:r;for(a=t.length>3&&"function"==typeof a?(o--,a):r,s&&wo(n[0],n[1],s)&&(a=o<3?r:a,o=1),e=Ot(e);++i<o;){var l=n[i];l&&t(e,l,i,a)}return e}))}function Rr(t,e){return function(n,i){if(null==n)return n;if(!Wa(n))return t(n,i);for(var r=n.length,o=e?r:-1,a=Ot(n);(e?o--:++o<r)&&!1!==i(a[o],o,a););return n}}function Ir(t){return function(e,n,i){for(var r=-1,o=Ot(e),a=i(e),s=a.length;s--;){var l=a[t?s:++r];if(!1===n(o[l],l,o))break}return e}}function jr(t){return function(e){var n=ln(e=ys(e))?mn(e):r,i=n?n[0]:e.charAt(0),o=n?xr(n,1).join(""):e.slice(1);return i[t]()+o}}function Nr(t){return function(e){return Ne(Js(Vs(e).replace(te,"")),t,"")}}function Fr(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Un(t.prototype),i=t.apply(n,e);return es(i)?i:n}}function zr(t){return function(e,n,i){var o=Ot(e);if(!Wa(e)){var a=co(n,3);e=Ls(e),n=function(t){return a(o[t],t,o)}}var s=t(e,n,i);return s>-1?o[a?e[s]:s]:r}}function Br(t){return io((function(e){var n=e.length,i=n,a=Vn.prototype.thru;for(t&&e.reverse();i--;){var s=e[i];if("function"!=typeof s)throw new Pt(o);if(a&&!l&&"wrapper"==so(s))var l=new Vn([],!0)}for(i=l?i:n;++i<n;){var c=so(s=e[i]),u="wrapper"==c?ao(s):r;l=u&&Co(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[so(u[0])].apply(l,u[3]):1==s.length&&Co(s)?l[c]():l.thru(s)}return function(){var t=arguments,i=t[0];if(l&&1==t.length&&Ya(i))return l.plant(i).value();for(var r=0,o=n?e[r].apply(this,t):i;++r<n;)o=e[r].call(this,o);return o}}))}function $r(t,e,n,o,a,s,l,c,u,h){var p=e&d,f=1&e,m=2&e,v=24&e,g=512&e,b=m?r:Fr(t);return function d(){for(var y=arguments.length,_=i(y),w=y;w--;)_[w]=arguments[w];if(v)var x=lo(d),C=function(t,e){for(var n=t.length,i=0;n--;)t[n]===e&&++i;return i}(_,x);if(o&&(_=kr(_,o,a,v)),s&&(_=Ar(_,s,l,v)),y-=C,v&&y<h){var S=dn(_,x);return Gr(t,e,$r,d.placeholder,n,_,S,c,u,h-y)}var E=f?n:this,T=m?E[t]:t;return y=_.length,c?_=function(t,e){var n=t.length,i=_n(e.length,n),o=Pr(t);for(;i--;){var a=e[i];t[i]=_o(a,n)?o[a]:r}return t}(_,c):g&&y>1&&_.reverse(),p&&u<y&&(_.length=u),this&&this!==me&&this instanceof d&&(T=b||Fr(T)),T.apply(E,_)}}function Ur(t,e){return function(n,i){return function(t,e,n,i){return wi(t,(function(t,r,o){e(i,n(t),r,o)})),i}(n,t,e(i),{})}}function Hr(t,e){return function(n,i){var o;if(n===r&&i===r)return e;if(n!==r&&(o=n),i!==r){if(o===r)return i;"string"==typeof n||"string"==typeof i?(n=ur(n),i=ur(i)):(n=cr(n),i=cr(i)),o=t(n,i)}return o}}function Vr(t){return io((function(e){return e=Ie(e,Qe(co())),Zi((function(n){var i=this;return t(e,(function(t){return Oe(t,i,n)}))}))}))}function Yr(t,e){var n=(e=e===r?" ":ur(e)).length;if(n<2)return n?Ki(e,t):e;var i=Ki(e,fe(t/fn(e)));return ln(e)?xr(mn(i),0,t).join(""):i.slice(0,t)}function qr(t){return function(e,n,o){return o&&"number"!=typeof o&&wo(e,n,o)&&(n=o=r),e=fs(e),n===r?(n=e,e=0):n=fs(n),function(t,e,n,r){for(var o=-1,a=yn(fe((e-t)/(n||1)),0),s=i(a);a--;)s[r?a:++o]=t,t+=n;return s}(e,n,o=o===r?e<n?1:-1:fs(o),t)}}function Wr(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=gs(e),n=gs(n)),t(e,n)}}function Gr(t,e,n,i,o,a,s,l,d,h){var p=8&e;e|=p?c:u,4&(e&=~(p?u:c))||(e&=-4);var f=[t,e,o,p?a:r,p?s:r,p?r:a,p?r:s,l,d,h],m=n.apply(r,f);return Co(t)&&Mo(m,f),m.placeholder=i,Ro(m,t,e)}function Xr(t){var e=Tt[t];return function(t,n){if(t=gs(t),(n=null==n?0:_n(ms(n),292))&&_e(t)){var i=(ys(t)+"e").split("e");return+((i=(ys(e(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return e(t)}}var Kr=kn&&1/hn(new kn([,-0]))[1]==p?function(t){return new kn(t)}:cl;function Zr(t){return function(e){var n=vo(e);return n==E?cn(e):n==P?pn(e):function(t,e){return Ie(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Jr(t,e,n,a,p,f,m,v){var g=2&e;if(!g&&"function"!=typeof t)throw new Pt(o);var b=a?a.length:0;if(b||(e&=-97,a=p=r),m=m===r?m:yn(ms(m),0),v=v===r?v:ms(v),b-=p?p.length:0,e&u){var y=a,_=p;a=p=r}var w=g?r:ao(t),x=[t,e,n,a,p,y,_,f,m,v];if(w&&function(t,e){var n=t[1],i=e[1],r=n|i,o=r<131,a=i==d&&8==n||i==d&&n==h&&t[7].length<=e[8]||384==i&&e[7].length<=e[8]&&8==n;if(!o&&!a)return t;1&i&&(t[2]=e[2],r|=1&n?0:4);var l=e[3];if(l){var c=t[3];t[3]=c?kr(c,l,e[4]):l,t[4]=c?dn(t[3],s):e[4]}(l=e[5])&&(c=t[5],t[5]=c?Ar(c,l,e[6]):l,t[6]=c?dn(t[5],s):e[6]);(l=e[7])&&(t[7]=l);i&d&&(t[8]=null==t[8]?e[8]:_n(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=r}(x,w),t=x[0],e=x[1],n=x[2],a=x[3],p=x[4],!(v=x[9]=x[9]===r?g?0:t.length:yn(x[9]-b,0))&&24&e&&(e&=-25),e&&1!=e)C=8==e||e==l?function(t,e,n){var o=Fr(t);return function a(){for(var s=arguments.length,l=i(s),c=s,u=lo(a);c--;)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:dn(l,u);return(s-=d.length)<n?Gr(t,e,$r,a.placeholder,r,l,d,r,r,n-s):Oe(this&&this!==me&&this instanceof a?o:t,this,l)}}(t,e,v):e!=c&&33!=e||p.length?$r.apply(r,x):function(t,e,n,r){var o=1&e,a=Fr(t);return function e(){for(var s=-1,l=arguments.length,c=-1,u=r.length,d=i(u+l),h=this&&this!==me&&this instanceof e?a:t;++c<u;)d[c]=r[c];for(;l--;)d[c++]=arguments[++s];return Oe(h,o?n:this,d)}}(t,e,n,a);else var C=function(t,e,n){var i=1&e,r=Fr(t);return function e(){return(this&&this!==me&&this instanceof e?r:t).apply(i?n:this,arguments)}}(t,e,n);return Ro((w?er:Mo)(C,x),t,e)}function Qr(t,e,n,i){return t===r||$a(t,Dt[n])&&!jt.call(i,n)?e:t}function to(t,e,n,i,o,a){return es(t)&&es(e)&&(a.set(e,t),Hi(t,e,r,to,a),a.delete(e)),t}function eo(t){return os(t)?r:t}function no(t,e,n,i,o,a){var s=1&n,l=t.length,c=e.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(t),d=a.get(e);if(u&&d)return u==e&&d==t;var h=-1,p=!0,f=2&n?new Xn:r;for(a.set(t,e),a.set(e,t);++h<l;){var m=t[h],v=e[h];if(i)var g=s?i(v,m,h,e,t,a):i(m,v,h,t,e,a);if(g!==r){if(g)continue;p=!1;break}if(f){if(!ze(e,(function(t,e){if(!en(f,e)&&(m===t||o(m,t,n,i,a)))return f.push(e)}))){p=!1;break}}else if(m!==v&&!o(m,v,n,i,a)){p=!1;break}}return a.delete(t),a.delete(e),p}function io(t){return Do(ko(t,r,qo),t+"")}function ro(t){return Ei(t,Ls,fo)}function oo(t){return Ei(t,Ds,mo)}var ao=Mn?function(t){return Mn.get(t)}:cl;function so(t){for(var e=t.name+"",n=Ln[e],i=jt.call(Ln,e)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==t)return r.name}return e}function lo(t){return(jt.call($n,"placeholder")?$n:t).placeholder}function co(){var t=$n.iteratee||ol;return t=t===ol?ji:t,arguments.length?t(arguments[0],arguments[1]):t}function uo(t,e){var n,i,r=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof e?"string":"hash"]:r.map}function ho(t){for(var e=Ls(t),n=e.length;n--;){var i=e[n],r=t[i];e[n]=[i,r,To(r)]}return e}function po(t,e){var n=function(t,e){return null==t?r:t[e]}(t,e);return Ii(n)?n:r}var fo=ge?function(t){return null==t?[]:(t=Ot(t),Le(ge(t),(function(e){return Xt.call(t,e)})))}:vl,mo=ge?function(t){for(var e=[];t;)je(e,fo(t)),t=Wt(t);return e}:vl,vo=Ti;function go(t,e,n){for(var i=-1,r=(e=_r(e,t)).length,o=!1;++i<r;){var a=Fo(e[i]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++i!=r?o:!!(r=null==t?0:t.length)&&ts(r)&&_o(a,r)&&(Ya(t)||Va(t))}function bo(t){return"function"!=typeof t.constructor||Eo(t)?{}:Un(Wt(t))}function yo(t){return Ya(t)||Va(t)||!!(Zt&&t&&t[Zt])}function _o(t,e){var n=typeof t;return!!(e=null==e?f:e)&&("number"==n||"symbol"!=n&&_t.test(t))&&t>-1&&t%1==0&&t<e}function wo(t,e,n){if(!es(n))return!1;var i=typeof e;return!!("number"==i?Wa(n)&&_o(e,n.length):"string"==i&&e in n)&&$a(n[e],t)}function xo(t,e){if(Ya(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!cs(t))||(nt.test(t)||!et.test(t)||null!=e&&t in Ot(e))}function Co(t){var e=so(t),n=$n[e];if("function"!=typeof n||!(e in Yn.prototype))return!1;if(t===n)return!0;var i=ao(n);return!!i&&t===i[0]}(En&&vo(new En(new ArrayBuffer(1)))!=I||Tn&&vo(new Tn)!=E||On&&vo(On.resolve())!=k||kn&&vo(new kn)!=P||An&&vo(new An)!=D)&&(vo=function(t){var e=Ti(t),n=e==O?t.constructor:r,i=n?zo(n):"";if(i)switch(i){case Dn:return I;case Rn:return E;case In:return k;case jn:return P;case Nn:return D}return e});var So=Rt?Ja:gl;function Eo(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Dt)}function To(t){return t==t&&!es(t)}function Oo(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==r||t in Ot(n)))}}function ko(t,e,n){return e=yn(e===r?t.length-1:e,0),function(){for(var r=arguments,o=-1,a=yn(r.length-e,0),s=i(a);++o<a;)s[o]=r[e+o];o=-1;for(var l=i(e+1);++o<e;)l[o]=r[o];return l[e]=n(s),Oe(t,this,l)}}function Ao(t,e){return e.length<2?t:Si(t,rr(e,0,-1))}function Po(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Mo=Io(er),Lo=pe||function(t,e){return me.setTimeout(t,e)},Do=Io(nr);function Ro(t,e,n){var i=e+"";return Do(t,function(t,e){var n=e.length;if(!n)return t;var i=n-1;return e[i]=(n>1?"& ":"")+e[i],e=e.join(n>2?", ":" "),t.replace(lt,"{\n/* [wrapped with "+e+"] */\n")}(i,function(t,e){return Ae(g,(function(n){var i="_."+n[0];e&n[1]&&!De(t,i)&&t.push(i)})),t.sort()}(function(t){var e=t.match(ct);return e?e[1].split(ut):[]}(i),n)))}function Io(t){var e=0,n=0;return function(){var i=wn(),o=16-(i-n);if(n=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(r,arguments)}}function jo(t,e){var n=-1,i=t.length,o=i-1;for(e=e===r?i:e;++n<e;){var a=Xi(n,o),s=t[a];t[a]=t[n],t[n]=s}return t.length=e,t}var No=function(t){var e=Ia(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(it,(function(t,n,i,r){e.push(i?r.replace(pt,"$1"):n||t)})),e}));function Fo(t){if("string"==typeof t||cs(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function zo(t){if(null!=t){try{return It.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Bo(t){if(t instanceof Yn)return t.clone();var e=new Vn(t.__wrapped__,t.__chain__);return e.__actions__=Pr(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var $o=Zi((function(t,e){return Ga(t)?hi(t,bi(e,1,Ga,!0)):[]})),Uo=Zi((function(t,e){var n=Zo(e);return Ga(n)&&(n=r),Ga(t)?hi(t,bi(e,1,Ga,!0),co(n,2)):[]})),Ho=Zi((function(t,e){var n=Zo(e);return Ga(n)&&(n=r),Ga(t)?hi(t,bi(e,1,Ga,!0),r,n):[]}));function Vo(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:ms(n);return r<0&&(r=yn(i+r,0)),Ue(t,co(e,3),r)}function Yo(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var o=i-1;return n!==r&&(o=ms(n),o=n<0?yn(i+o,0):_n(o,i-1)),Ue(t,co(e,3),o,!0)}function qo(t){return(null==t?0:t.length)?bi(t,1):[]}function Wo(t){return t&&t.length?t[0]:r}var Go=Zi((function(t){var e=Ie(t,br);return e.length&&e[0]===t[0]?Pi(e):[]})),Xo=Zi((function(t){var e=Zo(t),n=Ie(t,br);return e===Zo(n)?e=r:n.pop(),n.length&&n[0]===t[0]?Pi(n,co(e,2)):[]})),Ko=Zi((function(t){var e=Zo(t),n=Ie(t,br);return(e="function"==typeof e?e:r)&&n.pop(),n.length&&n[0]===t[0]?Pi(n,r,e):[]}));function Zo(t){var e=null==t?0:t.length;return e?t[e-1]:r}var Jo=Zi(Qo);function Qo(t,e){return t&&t.length&&e&&e.length?Wi(t,e):t}var ta=io((function(t,e){var n=null==t?0:t.length,i=si(t,e);return Gi(t,Ie(e,(function(t){return _o(t,n)?+t:t})).sort(Or)),i}));function ea(t){return null==t?t:Sn.call(t)}var na=Zi((function(t){return dr(bi(t,1,Ga,!0))})),ia=Zi((function(t){var e=Zo(t);return Ga(e)&&(e=r),dr(bi(t,1,Ga,!0),co(e,2))})),ra=Zi((function(t){var e=Zo(t);return e="function"==typeof e?e:r,dr(bi(t,1,Ga,!0),r,e)}));function oa(t){if(!t||!t.length)return[];var e=0;return t=Le(t,(function(t){if(Ga(t))return e=yn(t.length,e),!0})),Ze(e,(function(e){return Ie(t,We(e))}))}function aa(t,e){if(!t||!t.length)return[];var n=oa(t);return null==e?n:Ie(n,(function(t){return Oe(e,r,t)}))}var sa=Zi((function(t,e){return Ga(t)?hi(t,e):[]})),la=Zi((function(t){return vr(Le(t,Ga))})),ca=Zi((function(t){var e=Zo(t);return Ga(e)&&(e=r),vr(Le(t,Ga),co(e,2))})),ua=Zi((function(t){var e=Zo(t);return e="function"==typeof e?e:r,vr(Le(t,Ga),r,e)})),da=Zi(oa);var ha=Zi((function(t){var e=t.length,n=e>1?t[e-1]:r;return n="function"==typeof n?(t.pop(),n):r,aa(t,n)}));function pa(t){var e=$n(t);return e.__chain__=!0,e}function fa(t,e){return e(t)}var ma=io((function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,o=function(e){return si(e,t)};return!(e>1||this.__actions__.length)&&i instanceof Yn&&_o(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:fa,args:[o],thisArg:r}),new Vn(i,this.__chain__).thru((function(t){return e&&!t.length&&t.push(r),t}))):this.thru(o)}));var va=Lr((function(t,e,n){jt.call(t,n)?++t[n]:ai(t,n,1)}));var ga=zr(Vo),ba=zr(Yo);function ya(t,e){return(Ya(t)?Ae:pi)(t,co(e,3))}function _a(t,e){return(Ya(t)?Pe:fi)(t,co(e,3))}var wa=Lr((function(t,e,n){jt.call(t,n)?t[n].push(e):ai(t,n,[e])}));var xa=Zi((function(t,e,n){var r=-1,o="function"==typeof e,a=Wa(t)?i(t.length):[];return pi(t,(function(t){a[++r]=o?Oe(e,t,n):Mi(t,e,n)})),a})),Ca=Lr((function(t,e,n){ai(t,n,e)}));function Sa(t,e){return(Ya(t)?Ie:Bi)(t,co(e,3))}var Ea=Lr((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var Ta=Zi((function(t,e){if(null==t)return[];var n=e.length;return n>1&&wo(t,e[0],e[1])?e=[]:n>2&&wo(e[0],e[1],e[2])&&(e=[e[0]]),Yi(t,bi(e,1),[])})),Oa=ue||function(){return me.Date.now()};function ka(t,e,n){return e=n?r:e,e=t&&null==e?t.length:e,Jr(t,d,r,r,r,r,e)}function Aa(t,e){var n;if("function"!=typeof e)throw new Pt(o);return t=ms(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=r),n}}var Pa=Zi((function(t,e,n){var i=1;if(n.length){var r=dn(n,lo(Pa));i|=c}return Jr(t,i,e,n,r)})),Ma=Zi((function(t,e,n){var i=3;if(n.length){var r=dn(n,lo(Ma));i|=c}return Jr(e,i,t,n,r)}));function La(t,e,n){var i,a,s,l,c,u,d=0,h=!1,p=!1,f=!0;if("function"!=typeof t)throw new Pt(o);function m(e){var n=i,o=a;return i=a=r,d=e,l=t.apply(o,n)}function v(t){var n=t-u;return u===r||n>=e||n<0||p&&t-d>=s}function g(){var t=Oa();if(v(t))return b(t);c=Lo(g,function(t){var n=e-(t-u);return p?_n(n,s-(t-d)):n}(t))}function b(t){return c=r,f&&i?m(t):(i=a=r,l)}function y(){var t=Oa(),n=v(t);if(i=arguments,a=this,u=t,n){if(c===r)return function(t){return d=t,c=Lo(g,e),h?m(t):l}(u);if(p)return Cr(c),c=Lo(g,e),m(u)}return c===r&&(c=Lo(g,e)),l}return e=gs(e)||0,es(n)&&(h=!!n.leading,s=(p="maxWait"in n)?yn(gs(n.maxWait)||0,e):s,f="trailing"in n?!!n.trailing:f),y.cancel=function(){c!==r&&Cr(c),d=0,i=u=a=c=r},y.flush=function(){return c===r?l:b(Oa())},y}var Da=Zi((function(t,e){return di(t,1,e)})),Ra=Zi((function(t,e,n){return di(t,gs(e)||0,n)}));function Ia(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Pt(o);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=t.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(Ia.Cache||Gn),n}function ja(t){if("function"!=typeof t)throw new Pt(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ia.Cache=Gn;var Na=wr((function(t,e){var n=(e=1==e.length&&Ya(e[0])?Ie(e[0],Qe(co())):Ie(bi(e,1),Qe(co()))).length;return Zi((function(i){for(var r=-1,o=_n(i.length,n);++r<o;)i[r]=e[r].call(this,i[r]);return Oe(t,this,i)}))})),Fa=Zi((function(t,e){var n=dn(e,lo(Fa));return Jr(t,c,r,e,n)})),za=Zi((function(t,e){var n=dn(e,lo(za));return Jr(t,u,r,e,n)})),Ba=io((function(t,e){return Jr(t,h,r,r,r,e)}));function $a(t,e){return t===e||t!=t&&e!=e}var Ua=Wr(Oi),Ha=Wr((function(t,e){return t>=e})),Va=Li(function(){return arguments}())?Li:function(t){return ns(t)&&jt.call(t,"callee")&&!Xt.call(t,"callee")},Ya=i.isArray,qa=we?Qe(we):function(t){return ns(t)&&Ti(t)==R};function Wa(t){return null!=t&&ts(t.length)&&!Ja(t)}function Ga(t){return ns(t)&&Wa(t)}var Xa=ye||gl,Ka=xe?Qe(xe):function(t){return ns(t)&&Ti(t)==w};function Za(t){if(!ns(t))return!1;var e=Ti(t);return e==x||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!os(t)}function Ja(t){if(!es(t))return!1;var e=Ti(t);return e==C||e==S||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Qa(t){return"number"==typeof t&&t==ms(t)}function ts(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=f}function es(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ns(t){return null!=t&&"object"==typeof t}var is=Ce?Qe(Ce):function(t){return ns(t)&&vo(t)==E};function rs(t){return"number"==typeof t||ns(t)&&Ti(t)==T}function os(t){if(!ns(t)||Ti(t)!=O)return!1;var e=Wt(t);if(null===e)return!0;var n=jt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&It.call(n)==Bt}var as=Se?Qe(Se):function(t){return ns(t)&&Ti(t)==A};var ss=Ee?Qe(Ee):function(t){return ns(t)&&vo(t)==P};function ls(t){return"string"==typeof t||!Ya(t)&&ns(t)&&Ti(t)==M}function cs(t){return"symbol"==typeof t||ns(t)&&Ti(t)==L}var us=Te?Qe(Te):function(t){return ns(t)&&ts(t.length)&&!!le[Ti(t)]};var ds=Wr(zi),hs=Wr((function(t,e){return t<=e}));function ps(t){if(!t)return[];if(Wa(t))return ls(t)?mn(t):Pr(t);if(Jt&&t[Jt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Jt]());var e=vo(t);return(e==E?cn:e==P?hn:$s)(t)}function fs(t){return t?(t=gs(t))===p||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ms(t){var e=fs(t),n=e%1;return e==e?n?e-n:e:0}function vs(t){return t?li(ms(t),0,v):0}function gs(t){if("number"==typeof t)return t;if(cs(t))return m;if(es(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=es(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Je(t);var n=gt.test(t);return n||yt.test(t)?he(t.slice(2),n?2:8):vt.test(t)?m:+t}function bs(t){return Mr(t,Ds(t))}function ys(t){return null==t?"":ur(t)}var _s=Dr((function(t,e){if(Eo(e)||Wa(e))Mr(e,Ls(e),t);else for(var n in e)jt.call(e,n)&&ni(t,n,e[n])})),ws=Dr((function(t,e){Mr(e,Ds(e),t)})),xs=Dr((function(t,e,n,i){Mr(e,Ds(e),t,i)})),Cs=Dr((function(t,e,n,i){Mr(e,Ls(e),t,i)})),Ss=io(si);var Es=Zi((function(t,e){t=Ot(t);var n=-1,i=e.length,o=i>2?e[2]:r;for(o&&wo(e[0],e[1],o)&&(i=1);++n<i;)for(var a=e[n],s=Ds(a),l=-1,c=s.length;++l<c;){var u=s[l],d=t[u];(d===r||$a(d,Dt[u])&&!jt.call(t,u))&&(t[u]=a[u])}return t})),Ts=Zi((function(t){return t.push(r,to),Oe(Is,r,t)}));function Os(t,e,n){var i=null==t?r:Si(t,e);return i===r?n:i}function ks(t,e){return null!=t&&go(t,e,Ai)}var As=Ur((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=zt.call(e)),t[e]=n}),el(rl)),Ps=Ur((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=zt.call(e)),jt.call(t,e)?t[e].push(n):t[e]=[n]}),co),Ms=Zi(Mi);function Ls(t){return Wa(t)?Zn(t):Ni(t)}function Ds(t){return Wa(t)?Zn(t,!0):Fi(t)}var Rs=Dr((function(t,e,n){Hi(t,e,n)})),Is=Dr((function(t,e,n,i){Hi(t,e,n,i)})),js=io((function(t,e){var n={};if(null==t)return n;var i=!1;e=Ie(e,(function(e){return e=_r(e,t),i||(i=e.length>1),e})),Mr(t,oo(t),n),i&&(n=ci(n,7,eo));for(var r=e.length;r--;)hr(n,e[r]);return n}));var Ns=io((function(t,e){return null==t?{}:function(t,e){return qi(t,e,(function(e,n){return ks(t,n)}))}(t,e)}));function Fs(t,e){if(null==t)return{};var n=Ie(oo(t),(function(t){return[t]}));return e=co(e),qi(t,n,(function(t,n){return e(t,n[0])}))}var zs=Zr(Ls),Bs=Zr(Ds);function $s(t){return null==t?[]:tn(t,Ls(t))}var Us=Nr((function(t,e,n){return e=e.toLowerCase(),t+(n?Hs(e):e)}));function Hs(t){return Zs(ys(t).toLowerCase())}function Vs(t){return(t=ys(t))&&t.replace(wt,on).replace(ee,"")}var Ys=Nr((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),qs=Nr((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ws=jr("toLowerCase");var Gs=Nr((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Xs=Nr((function(t,e,n){return t+(n?" ":"")+Zs(e)}));var Ks=Nr((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Zs=jr("toUpperCase");function Js(t,e,n){return t=ys(t),(e=n?r:e)===r?function(t){return oe.test(t)}(t)?function(t){return t.match(ie)||[]}(t):function(t){return t.match(dt)||[]}(t):t.match(e)||[]}var Qs=Zi((function(t,e){try{return Oe(t,r,e)}catch(t){return Za(t)?t:new St(t)}})),tl=io((function(t,e){return Ae(e,(function(e){e=Fo(e),ai(t,e,Pa(t[e],t))})),t}));function el(t){return function(){return t}}var nl=Br(),il=Br(!0);function rl(t){return t}function ol(t){return ji("function"==typeof t?t:ci(t,1))}var al=Zi((function(t,e){return function(n){return Mi(n,t,e)}})),sl=Zi((function(t,e){return function(n){return Mi(t,n,e)}}));function ll(t,e,n){var i=Ls(e),r=Ci(e,i);null!=n||es(e)&&(r.length||!i.length)||(n=e,e=t,t=this,r=Ci(e,Ls(e)));var o=!(es(n)&&"chain"in n&&!n.chain),a=Ja(t);return Ae(r,(function(n){var i=e[n];t[n]=i,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=Pr(this.__actions__)).push({func:i,args:arguments,thisArg:t}),n.__chain__=e,n}return i.apply(t,je([this.value()],arguments))})})),t}function cl(){}var ul=Vr(Ie),dl=Vr(Me),hl=Vr(ze);function pl(t){return xo(t)?We(Fo(t)):function(t){return function(e){return Si(e,t)}}(t)}var fl=qr(),ml=qr(!0);function vl(){return[]}function gl(){return!1}var bl=Hr((function(t,e){return t+e}),0),yl=Xr("ceil"),_l=Hr((function(t,e){return t/e}),1),wl=Xr("floor");var xl,Cl=Hr((function(t,e){return t*e}),1),Sl=Xr("round"),El=Hr((function(t,e){return t-e}),0);return $n.after=function(t,e){if("function"!=typeof e)throw new Pt(o);return t=ms(t),function(){if(--t<1)return e.apply(this,arguments)}},$n.ary=ka,$n.assign=_s,$n.assignIn=ws,$n.assignInWith=xs,$n.assignWith=Cs,$n.at=Ss,$n.before=Aa,$n.bind=Pa,$n.bindAll=tl,$n.bindKey=Ma,$n.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ya(t)?t:[t]},$n.chain=pa,$n.chunk=function(t,e,n){e=(n?wo(t,e,n):e===r)?1:yn(ms(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var a=0,s=0,l=i(fe(o/e));a<o;)l[s++]=rr(t,a,a+=e);return l},$n.compact=function(t){for(var e=-1,n=null==t?0:t.length,i=0,r=[];++e<n;){var o=t[e];o&&(r[i++]=o)}return r},$n.concat=function(){var t=arguments.length;if(!t)return[];for(var e=i(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return je(Ya(n)?Pr(n):[n],bi(e,1))},$n.cond=function(t){var e=null==t?0:t.length,n=co();return t=e?Ie(t,(function(t){if("function"!=typeof t[1])throw new Pt(o);return[n(t[0]),t[1]]})):[],Zi((function(n){for(var i=-1;++i<e;){var r=t[i];if(Oe(r[0],this,n))return Oe(r[1],this,n)}}))},$n.conforms=function(t){return function(t){var e=Ls(t);return function(n){return ui(n,t,e)}}(ci(t,1))},$n.constant=el,$n.countBy=va,$n.create=function(t,e){var n=Un(t);return null==e?n:oi(n,e)},$n.curry=function t(e,n,i){var o=Jr(e,8,r,r,r,r,r,n=i?r:n);return o.placeholder=t.placeholder,o},$n.curryRight=function t(e,n,i){var o=Jr(e,l,r,r,r,r,r,n=i?r:n);return o.placeholder=t.placeholder,o},$n.debounce=La,$n.defaults=Es,$n.defaultsDeep=Ts,$n.defer=Da,$n.delay=Ra,$n.difference=$o,$n.differenceBy=Uo,$n.differenceWith=Ho,$n.drop=function(t,e,n){var i=null==t?0:t.length;return i?rr(t,(e=n||e===r?1:ms(e))<0?0:e,i):[]},$n.dropRight=function(t,e,n){var i=null==t?0:t.length;return i?rr(t,0,(e=i-(e=n||e===r?1:ms(e)))<0?0:e):[]},$n.dropRightWhile=function(t,e){return t&&t.length?fr(t,co(e,3),!0,!0):[]},$n.dropWhile=function(t,e){return t&&t.length?fr(t,co(e,3),!0):[]},$n.fill=function(t,e,n,i){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&wo(t,e,n)&&(n=0,i=o),function(t,e,n,i){var o=t.length;for((n=ms(n))<0&&(n=-n>o?0:o+n),(i=i===r||i>o?o:ms(i))<0&&(i+=o),i=n>i?0:vs(i);n<i;)t[n++]=e;return t}(t,e,n,i)):[]},$n.filter=function(t,e){return(Ya(t)?Le:gi)(t,co(e,3))},$n.flatMap=function(t,e){return bi(Sa(t,e),1)},$n.flatMapDeep=function(t,e){return bi(Sa(t,e),p)},$n.flatMapDepth=function(t,e,n){return n=n===r?1:ms(n),bi(Sa(t,e),n)},$n.flatten=qo,$n.flattenDeep=function(t){return(null==t?0:t.length)?bi(t,p):[]},$n.flattenDepth=function(t,e){return(null==t?0:t.length)?bi(t,e=e===r?1:ms(e)):[]},$n.flip=function(t){return Jr(t,512)},$n.flow=nl,$n.flowRight=il,$n.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,i={};++e<n;){var r=t[e];i[r[0]]=r[1]}return i},$n.functions=function(t){return null==t?[]:Ci(t,Ls(t))},$n.functionsIn=function(t){return null==t?[]:Ci(t,Ds(t))},$n.groupBy=wa,$n.initial=function(t){return(null==t?0:t.length)?rr(t,0,-1):[]},$n.intersection=Go,$n.intersectionBy=Xo,$n.intersectionWith=Ko,$n.invert=As,$n.invertBy=Ps,$n.invokeMap=xa,$n.iteratee=ol,$n.keyBy=Ca,$n.keys=Ls,$n.keysIn=Ds,$n.map=Sa,$n.mapKeys=function(t,e){var n={};return e=co(e,3),wi(t,(function(t,i,r){ai(n,e(t,i,r),t)})),n},$n.mapValues=function(t,e){var n={};return e=co(e,3),wi(t,(function(t,i,r){ai(n,i,e(t,i,r))})),n},$n.matches=function(t){return $i(ci(t,1))},$n.matchesProperty=function(t,e){return Ui(t,ci(e,1))},$n.memoize=Ia,$n.merge=Rs,$n.mergeWith=Is,$n.method=al,$n.methodOf=sl,$n.mixin=ll,$n.negate=ja,$n.nthArg=function(t){return t=ms(t),Zi((function(e){return Vi(e,t)}))},$n.omit=js,$n.omitBy=function(t,e){return Fs(t,ja(co(e)))},$n.once=function(t){return Aa(2,t)},$n.orderBy=function(t,e,n,i){return null==t?[]:(Ya(e)||(e=null==e?[]:[e]),Ya(n=i?r:n)||(n=null==n?[]:[n]),Yi(t,e,n))},$n.over=ul,$n.overArgs=Na,$n.overEvery=dl,$n.overSome=hl,$n.partial=Fa,$n.partialRight=za,$n.partition=Ea,$n.pick=Ns,$n.pickBy=Fs,$n.property=pl,$n.propertyOf=function(t){return function(e){return null==t?r:Si(t,e)}},$n.pull=Jo,$n.pullAll=Qo,$n.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Wi(t,e,co(n,2)):t},$n.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Wi(t,e,r,n):t},$n.pullAt=ta,$n.range=fl,$n.rangeRight=ml,$n.rearg=Ba,$n.reject=function(t,e){return(Ya(t)?Le:gi)(t,ja(co(e,3)))},$n.remove=function(t,e){var n=[];if(!t||!t.length)return n;var i=-1,r=[],o=t.length;for(e=co(e,3);++i<o;){var a=t[i];e(a,i,t)&&(n.push(a),r.push(i))}return Gi(t,r),n},$n.rest=function(t,e){if("function"!=typeof t)throw new Pt(o);return Zi(t,e=e===r?e:ms(e))},$n.reverse=ea,$n.sampleSize=function(t,e,n){return e=(n?wo(t,e,n):e===r)?1:ms(e),(Ya(t)?Qn:Qi)(t,e)},$n.set=function(t,e,n){return null==t?t:tr(t,e,n)},$n.setWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:tr(t,e,n,i)},$n.shuffle=function(t){return(Ya(t)?ti:ir)(t)},$n.slice=function(t,e,n){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&wo(t,e,n)?(e=0,n=i):(e=null==e?0:ms(e),n=n===r?i:ms(n)),rr(t,e,n)):[]},$n.sortBy=Ta,$n.sortedUniq=function(t){return t&&t.length?lr(t):[]},$n.sortedUniqBy=function(t,e){return t&&t.length?lr(t,co(e,2)):[]},$n.split=function(t,e,n){return n&&"number"!=typeof n&&wo(t,e,n)&&(e=n=r),(n=n===r?v:n>>>0)?(t=ys(t))&&("string"==typeof e||null!=e&&!as(e))&&!(e=ur(e))&&ln(t)?xr(mn(t),0,n):t.split(e,n):[]},$n.spread=function(t,e){if("function"!=typeof t)throw new Pt(o);return e=null==e?0:yn(ms(e),0),Zi((function(n){var i=n[e],r=xr(n,0,e);return i&&je(r,i),Oe(t,this,r)}))},$n.tail=function(t){var e=null==t?0:t.length;return e?rr(t,1,e):[]},$n.take=function(t,e,n){return t&&t.length?rr(t,0,(e=n||e===r?1:ms(e))<0?0:e):[]},$n.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?rr(t,(e=i-(e=n||e===r?1:ms(e)))<0?0:e,i):[]},$n.takeRightWhile=function(t,e){return t&&t.length?fr(t,co(e,3),!1,!0):[]},$n.takeWhile=function(t,e){return t&&t.length?fr(t,co(e,3)):[]},$n.tap=function(t,e){return e(t),t},$n.throttle=function(t,e,n){var i=!0,r=!0;if("function"!=typeof t)throw new Pt(o);return es(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),La(t,e,{leading:i,maxWait:e,trailing:r})},$n.thru=fa,$n.toArray=ps,$n.toPairs=zs,$n.toPairsIn=Bs,$n.toPath=function(t){return Ya(t)?Ie(t,Fo):cs(t)?[t]:Pr(No(ys(t)))},$n.toPlainObject=bs,$n.transform=function(t,e,n){var i=Ya(t),r=i||Xa(t)||us(t);if(e=co(e,4),null==n){var o=t&&t.constructor;n=r?i?new o:[]:es(t)&&Ja(o)?Un(Wt(t)):{}}return(r?Ae:wi)(t,(function(t,i,r){return e(n,t,i,r)})),n},$n.unary=function(t){return ka(t,1)},$n.union=na,$n.unionBy=ia,$n.unionWith=ra,$n.uniq=function(t){return t&&t.length?dr(t):[]},$n.uniqBy=function(t,e){return t&&t.length?dr(t,co(e,2)):[]},$n.uniqWith=function(t,e){return e="function"==typeof e?e:r,t&&t.length?dr(t,r,e):[]},$n.unset=function(t,e){return null==t||hr(t,e)},$n.unzip=oa,$n.unzipWith=aa,$n.update=function(t,e,n){return null==t?t:pr(t,e,yr(n))},$n.updateWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:pr(t,e,yr(n),i)},$n.values=$s,$n.valuesIn=function(t){return null==t?[]:tn(t,Ds(t))},$n.without=sa,$n.words=Js,$n.wrap=function(t,e){return Fa(yr(e),t)},$n.xor=la,$n.xorBy=ca,$n.xorWith=ua,$n.zip=da,$n.zipObject=function(t,e){return gr(t||[],e||[],ni)},$n.zipObjectDeep=function(t,e){return gr(t||[],e||[],tr)},$n.zipWith=ha,$n.entries=zs,$n.entriesIn=Bs,$n.extend=ws,$n.extendWith=xs,ll($n,$n),$n.add=bl,$n.attempt=Qs,$n.camelCase=Us,$n.capitalize=Hs,$n.ceil=yl,$n.clamp=function(t,e,n){return n===r&&(n=e,e=r),n!==r&&(n=(n=gs(n))==n?n:0),e!==r&&(e=(e=gs(e))==e?e:0),li(gs(t),e,n)},$n.clone=function(t){return ci(t,4)},$n.cloneDeep=function(t){return ci(t,5)},$n.cloneDeepWith=function(t,e){return ci(t,5,e="function"==typeof e?e:r)},$n.cloneWith=function(t,e){return ci(t,4,e="function"==typeof e?e:r)},$n.conformsTo=function(t,e){return null==e||ui(t,e,Ls(e))},$n.deburr=Vs,$n.defaultTo=function(t,e){return null==t||t!=t?e:t},$n.divide=_l,$n.endsWith=function(t,e,n){t=ys(t),e=ur(e);var i=t.length,o=n=n===r?i:li(ms(n),0,i);return(n-=e.length)>=0&&t.slice(n,o)==e},$n.eq=$a,$n.escape=function(t){return(t=ys(t))&&Z.test(t)?t.replace(X,an):t},$n.escapeRegExp=function(t){return(t=ys(t))&&ot.test(t)?t.replace(rt,"\\$&"):t},$n.every=function(t,e,n){var i=Ya(t)?Me:mi;return n&&wo(t,e,n)&&(e=r),i(t,co(e,3))},$n.find=ga,$n.findIndex=Vo,$n.findKey=function(t,e){return $e(t,co(e,3),wi)},$n.findLast=ba,$n.findLastIndex=Yo,$n.findLastKey=function(t,e){return $e(t,co(e,3),xi)},$n.floor=wl,$n.forEach=ya,$n.forEachRight=_a,$n.forIn=function(t,e){return null==t?t:yi(t,co(e,3),Ds)},$n.forInRight=function(t,e){return null==t?t:_i(t,co(e,3),Ds)},$n.forOwn=function(t,e){return t&&wi(t,co(e,3))},$n.forOwnRight=function(t,e){return t&&xi(t,co(e,3))},$n.get=Os,$n.gt=Ua,$n.gte=Ha,$n.has=function(t,e){return null!=t&&go(t,e,ki)},$n.hasIn=ks,$n.head=Wo,$n.identity=rl,$n.includes=function(t,e,n,i){t=Wa(t)?t:$s(t),n=n&&!i?ms(n):0;var r=t.length;return n<0&&(n=yn(r+n,0)),ls(t)?n<=r&&t.indexOf(e,n)>-1:!!r&&He(t,e,n)>-1},$n.indexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:ms(n);return r<0&&(r=yn(i+r,0)),He(t,e,r)},$n.inRange=function(t,e,n){return e=fs(e),n===r?(n=e,e=0):n=fs(n),function(t,e,n){return t>=_n(e,n)&&t<yn(e,n)}(t=gs(t),e,n)},$n.invoke=Ms,$n.isArguments=Va,$n.isArray=Ya,$n.isArrayBuffer=qa,$n.isArrayLike=Wa,$n.isArrayLikeObject=Ga,$n.isBoolean=function(t){return!0===t||!1===t||ns(t)&&Ti(t)==_},$n.isBuffer=Xa,$n.isDate=Ka,$n.isElement=function(t){return ns(t)&&1===t.nodeType&&!os(t)},$n.isEmpty=function(t){if(null==t)return!0;if(Wa(t)&&(Ya(t)||"string"==typeof t||"function"==typeof t.splice||Xa(t)||us(t)||Va(t)))return!t.length;var e=vo(t);if(e==E||e==P)return!t.size;if(Eo(t))return!Ni(t).length;for(var n in t)if(jt.call(t,n))return!1;return!0},$n.isEqual=function(t,e){return Di(t,e)},$n.isEqualWith=function(t,e,n){var i=(n="function"==typeof n?n:r)?n(t,e):r;return i===r?Di(t,e,r,n):!!i},$n.isError=Za,$n.isFinite=function(t){return"number"==typeof t&&_e(t)},$n.isFunction=Ja,$n.isInteger=Qa,$n.isLength=ts,$n.isMap=is,$n.isMatch=function(t,e){return t===e||Ri(t,e,ho(e))},$n.isMatchWith=function(t,e,n){return n="function"==typeof n?n:r,Ri(t,e,ho(e),n)},$n.isNaN=function(t){return rs(t)&&t!=+t},$n.isNative=function(t){if(So(t))throw new St("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ii(t)},$n.isNil=function(t){return null==t},$n.isNull=function(t){return null===t},$n.isNumber=rs,$n.isObject=es,$n.isObjectLike=ns,$n.isPlainObject=os,$n.isRegExp=as,$n.isSafeInteger=function(t){return Qa(t)&&t>=-9007199254740991&&t<=f},$n.isSet=ss,$n.isString=ls,$n.isSymbol=cs,$n.isTypedArray=us,$n.isUndefined=function(t){return t===r},$n.isWeakMap=function(t){return ns(t)&&vo(t)==D},$n.isWeakSet=function(t){return ns(t)&&"[object WeakSet]"==Ti(t)},$n.join=function(t,e){return null==t?"":Be.call(t,e)},$n.kebabCase=Ys,$n.last=Zo,$n.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var o=i;return n!==r&&(o=(o=ms(n))<0?yn(i+o,0):_n(o,i-1)),e==e?function(t,e,n){for(var i=n+1;i--;)if(t[i]===e)return i;return i}(t,e,o):Ue(t,Ye,o,!0)},$n.lowerCase=qs,$n.lowerFirst=Ws,$n.lt=ds,$n.lte=hs,$n.max=function(t){return t&&t.length?vi(t,rl,Oi):r},$n.maxBy=function(t,e){return t&&t.length?vi(t,co(e,2),Oi):r},$n.mean=function(t){return qe(t,rl)},$n.meanBy=function(t,e){return qe(t,co(e,2))},$n.min=function(t){return t&&t.length?vi(t,rl,zi):r},$n.minBy=function(t,e){return t&&t.length?vi(t,co(e,2),zi):r},$n.stubArray=vl,$n.stubFalse=gl,$n.stubObject=function(){return{}},$n.stubString=function(){return""},$n.stubTrue=function(){return!0},$n.multiply=Cl,$n.nth=function(t,e){return t&&t.length?Vi(t,ms(e)):r},$n.noConflict=function(){return me._===this&&(me._=$t),this},$n.noop=cl,$n.now=Oa,$n.pad=function(t,e,n){t=ys(t);var i=(e=ms(e))?fn(t):0;if(!e||i>=e)return t;var r=(e-i)/2;return Yr(ve(r),n)+t+Yr(fe(r),n)},$n.padEnd=function(t,e,n){t=ys(t);var i=(e=ms(e))?fn(t):0;return e&&i<e?t+Yr(e-i,n):t},$n.padStart=function(t,e,n){t=ys(t);var i=(e=ms(e))?fn(t):0;return e&&i<e?Yr(e-i,n)+t:t},$n.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),xn(ys(t).replace(at,""),e||0)},$n.random=function(t,e,n){if(n&&"boolean"!=typeof n&&wo(t,e,n)&&(e=n=r),n===r&&("boolean"==typeof e?(n=e,e=r):"boolean"==typeof t&&(n=t,t=r)),t===r&&e===r?(t=0,e=1):(t=fs(t),e===r?(e=t,t=0):e=fs(e)),t>e){var i=t;t=e,e=i}if(n||t%1||e%1){var o=Cn();return _n(t+o*(e-t+de("1e-"+((o+"").length-1))),e)}return Xi(t,e)},$n.reduce=function(t,e,n){var i=Ya(t)?Ne:Xe,r=arguments.length<3;return i(t,co(e,4),n,r,pi)},$n.reduceRight=function(t,e,n){var i=Ya(t)?Fe:Xe,r=arguments.length<3;return i(t,co(e,4),n,r,fi)},$n.repeat=function(t,e,n){return e=(n?wo(t,e,n):e===r)?1:ms(e),Ki(ys(t),e)},$n.replace=function(){var t=arguments,e=ys(t[0]);return t.length<3?e:e.replace(t[1],t[2])},$n.result=function(t,e,n){var i=-1,o=(e=_r(e,t)).length;for(o||(o=1,t=r);++i<o;){var a=null==t?r:t[Fo(e[i])];a===r&&(i=o,a=n),t=Ja(a)?a.call(t):a}return t},$n.round=Sl,$n.runInContext=t,$n.sample=function(t){return(Ya(t)?Jn:Ji)(t)},$n.size=function(t){if(null==t)return 0;if(Wa(t))return ls(t)?fn(t):t.length;var e=vo(t);return e==E||e==P?t.size:Ni(t).length},$n.snakeCase=Gs,$n.some=function(t,e,n){var i=Ya(t)?ze:or;return n&&wo(t,e,n)&&(e=r),i(t,co(e,3))},$n.sortedIndex=function(t,e){return ar(t,e)},$n.sortedIndexBy=function(t,e,n){return sr(t,e,co(n,2))},$n.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var i=ar(t,e);if(i<n&&$a(t[i],e))return i}return-1},$n.sortedLastIndex=function(t,e){return ar(t,e,!0)},$n.sortedLastIndexBy=function(t,e,n){return sr(t,e,co(n,2),!0)},$n.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=ar(t,e,!0)-1;if($a(t[n],e))return n}return-1},$n.startCase=Xs,$n.startsWith=function(t,e,n){return t=ys(t),n=null==n?0:li(ms(n),0,t.length),e=ur(e),t.slice(n,n+e.length)==e},$n.subtract=El,$n.sum=function(t){return t&&t.length?Ke(t,rl):0},$n.sumBy=function(t,e){return t&&t.length?Ke(t,co(e,2)):0},$n.template=function(t,e,n){var i=$n.templateSettings;n&&wo(t,e,n)&&(e=r),t=ys(t),e=xs({},e,i,Qr);var o,a,s=xs({},e.imports,i.imports,Qr),l=Ls(s),c=tn(s,l),u=0,d=e.interpolate||xt,h="__p += '",p=kt((e.escape||xt).source+"|"+d.source+"|"+(d===tt?ft:xt).source+"|"+(e.evaluate||xt).source+"|$","g"),f="//# sourceURL="+(jt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++se+"]")+"\n";t.replace(p,(function(e,n,i,r,s,l){return i||(i=r),h+=t.slice(u,l).replace(Ct,sn),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),s&&(a=!0,h+="';\n"+s+";\n__p += '"),i&&(h+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),u=l+e.length,e})),h+="';\n";var m=jt.call(e,"variable")&&e.variable;if(m){if(ht.test(m))throw new St("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(a?h.replace(Y,""):h).replace(q,"$1").replace(W,"$1;"),h="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var v=Qs((function(){return Et(l,f+"return "+h).apply(r,c)}));if(v.source=h,Za(v))throw v;return v},$n.times=function(t,e){if((t=ms(t))<1||t>f)return[];var n=v,i=_n(t,v);e=co(e),t-=v;for(var r=Ze(i,e);++n<t;)e(n);return r},$n.toFinite=fs,$n.toInteger=ms,$n.toLength=vs,$n.toLower=function(t){return ys(t).toLowerCase()},$n.toNumber=gs,$n.toSafeInteger=function(t){return t?li(ms(t),-9007199254740991,f):0===t?t:0},$n.toString=ys,$n.toUpper=function(t){return ys(t).toUpperCase()},$n.trim=function(t,e,n){if((t=ys(t))&&(n||e===r))return Je(t);if(!t||!(e=ur(e)))return t;var i=mn(t),o=mn(e);return xr(i,nn(i,o),rn(i,o)+1).join("")},$n.trimEnd=function(t,e,n){if((t=ys(t))&&(n||e===r))return t.slice(0,vn(t)+1);if(!t||!(e=ur(e)))return t;var i=mn(t);return xr(i,0,rn(i,mn(e))+1).join("")},$n.trimStart=function(t,e,n){if((t=ys(t))&&(n||e===r))return t.replace(at,"");if(!t||!(e=ur(e)))return t;var i=mn(t);return xr(i,nn(i,mn(e))).join("")},$n.truncate=function(t,e){var n=30,i="...";if(es(e)){var o="separator"in e?e.separator:o;n="length"in e?ms(e.length):n,i="omission"in e?ur(e.omission):i}var a=(t=ys(t)).length;if(ln(t)){var s=mn(t);a=s.length}if(n>=a)return t;var l=n-fn(i);if(l<1)return i;var c=s?xr(s,0,l).join(""):t.slice(0,l);if(o===r)return c+i;if(s&&(l+=c.length-l),as(o)){if(t.slice(l).search(o)){var u,d=c;for(o.global||(o=kt(o.source,ys(mt.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var h=u.index;c=c.slice(0,h===r?l:h)}}else if(t.indexOf(ur(o),l)!=l){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+i},$n.unescape=function(t){return(t=ys(t))&&K.test(t)?t.replace(G,gn):t},$n.uniqueId=function(t){var e=++Nt;return ys(t)+e},$n.upperCase=Ks,$n.upperFirst=Zs,$n.each=ya,$n.eachRight=_a,$n.first=Wo,ll($n,(xl={},wi($n,(function(t,e){jt.call($n.prototype,e)||(xl[e]=t)})),xl),{chain:!1}),$n.VERSION="4.17.21",Ae(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){$n[t].placeholder=$n})),Ae(["drop","take"],(function(t,e){Yn.prototype[t]=function(n){n=n===r?1:yn(ms(n),0);var i=this.__filtered__&&!e?new Yn(this):this.clone();return i.__filtered__?i.__takeCount__=_n(n,i.__takeCount__):i.__views__.push({size:_n(n,v),type:t+(i.__dir__<0?"Right":"")}),i},Yn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Ae(["filter","map","takeWhile"],(function(t,e){var n=e+1,i=1==n||3==n;Yn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:co(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}})),Ae(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Yn.prototype[t]=function(){return this[n](1).value()[0]}})),Ae(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Yn.prototype[t]=function(){return this.__filtered__?new Yn(this):this[n](1)}})),Yn.prototype.compact=function(){return this.filter(rl)},Yn.prototype.find=function(t){return this.filter(t).head()},Yn.prototype.findLast=function(t){return this.reverse().find(t)},Yn.prototype.invokeMap=Zi((function(t,e){return"function"==typeof t?new Yn(this):this.map((function(n){return Mi(n,t,e)}))})),Yn.prototype.reject=function(t){return this.filter(ja(co(t)))},Yn.prototype.slice=function(t,e){t=ms(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Yn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==r&&(n=(e=ms(e))<0?n.dropRight(-e):n.take(e-t)),n)},Yn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Yn.prototype.toArray=function(){return this.take(v)},wi(Yn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),o=$n[i?"take"+("last"==e?"Right":""):e],a=i||/^find/.test(e);o&&($n.prototype[e]=function(){var e=this.__wrapped__,s=i?[1]:arguments,l=e instanceof Yn,c=s[0],u=l||Ya(e),d=function(t){var e=o.apply($n,je([t],s));return i&&h?e[0]:e};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,p=!!this.__actions__.length,f=a&&!h,m=l&&!p;if(!a&&u){e=m?e:new Yn(this);var v=t.apply(e,s);return v.__actions__.push({func:fa,args:[d],thisArg:r}),new Vn(v,h)}return f&&m?t.apply(this,s):(v=this.thru(d),f?i?v.value()[0]:v.value():v)})})),Ae(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Mt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);$n.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var r=this.value();return e.apply(Ya(r)?r:[],t)}return this[n]((function(n){return e.apply(Ya(n)?n:[],t)}))}})),wi(Yn.prototype,(function(t,e){var n=$n[e];if(n){var i=n.name+"";jt.call(Ln,i)||(Ln[i]=[]),Ln[i].push({name:e,func:n})}})),Ln[$r(r,2).name]=[{name:"wrapper",func:r}],Yn.prototype.clone=function(){var t=new Yn(this.__wrapped__);return t.__actions__=Pr(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Pr(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Pr(this.__views__),t},Yn.prototype.reverse=function(){if(this.__filtered__){var t=new Yn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Yn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ya(t),i=e<0,r=n?t.length:0,o=function(t,e,n){var i=-1,r=n.length;for(;++i<r;){var o=n[i],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=_n(e,t+a);break;case"takeRight":t=yn(t,e-a)}}return{start:t,end:e}}(0,r,this.__views__),a=o.start,s=o.end,l=s-a,c=i?s:a-1,u=this.__iteratees__,d=u.length,h=0,p=_n(l,this.__takeCount__);if(!n||!i&&r==l&&p==l)return mr(t,this.__actions__);var f=[];t:for(;l--&&h<p;){for(var m=-1,v=t[c+=e];++m<d;){var g=u[m],b=g.iteratee,y=g.type,_=b(v);if(2==y)v=_;else if(!_){if(1==y)continue t;break t}}f[h++]=v}return f},$n.prototype.at=ma,$n.prototype.chain=function(){return pa(this)},$n.prototype.commit=function(){return new Vn(this.value(),this.__chain__)},$n.prototype.next=function(){this.__values__===r&&(this.__values__=ps(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?r:this.__values__[this.__index__++]}},$n.prototype.plant=function(t){for(var e,n=this;n instanceof Hn;){var i=Bo(n);i.__index__=0,i.__values__=r,e?o.__wrapped__=i:e=i;var o=i;n=n.__wrapped__}return o.__wrapped__=t,e},$n.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Yn){var e=t;return this.__actions__.length&&(e=new Yn(this)),(e=e.reverse()).__actions__.push({func:fa,args:[ea],thisArg:r}),new Vn(e,this.__chain__)}return this.thru(ea)},$n.prototype.toJSON=$n.prototype.valueOf=$n.prototype.value=function(){return mr(this.__wrapped__,this.__actions__)},$n.prototype.first=$n.prototype.head,Jt&&($n.prototype[Jt]=function(){return this}),$n}();me._=bn,(i=function(){return bn}.call(e,n,e,t))===r||(t.exports=i)}.call(this)},3950:t=>{t.exports=function(){}},124:(t,e,n)=>{var i=n(9325);t.exports=function(){return i.Date.now()}},8059:(t,e,n)=>{var i=n(2177);t.exports=function(t){return i(2,t)}},7400:(t,e,n)=>{var i=n(9374),r=1/0;t.exports=function(t){return t?(t=i(t))===r||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},1489:(t,e,n)=>{var i=n(7400);t.exports=function(t){var e=i(t),n=e%1;return e==e?n?e-n:e:0}},9374:(t,e,n)=>{var i=n(4128),r=n(3805),o=n(4394),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=i(t);var n=s.test(t);return n||l.test(t)?c(t.slice(2),n?2:8):a.test(t)?NaN:+t}},7056:(t,e,n)=>{"use strict";var i=n(8442),r=n(6303),o=n(4332).setTransform,a=n(6720);function s(t,e,n,i,r){(r=r||{}).perspective=r.perspective||{},r.perspective.extraTransforms=null!=r.perspective.extraTransforms?r.perspective.extraTransforms:"",this._domElement=t,this._parentDomElement=e,this._view=n,this._coords={},this._perspective={},this.setPosition(i),this._parentDomElement.appendChild(this._domElement),this.setPerspective(r.perspective),this._visible=!0,this._position={x:0,y:0}}i(s),s.prototype.destroy=function(){this._parentDomElement.removeChild(this._domElement),a(this)},s.prototype.domElement=function(){return this._domElement},s.prototype.position=function(){return this._coords},s.prototype.setPosition=function(t){for(var e in t)this._coords[e]=t[e];this._update()},s.prototype.perspective=function(){return this._perspective},s.prototype.setPerspective=function(t){for(var e in t)this._perspective[e]=t[e];this._update()},s.prototype.show=function(){this._visible||(this._visible=!0,this._update())},s.prototype.hide=function(){this._visible&&(this._visible=!1,this._update())},s.prototype._update=function(){var t,e,n=this._domElement,i=this._coords,r=this._position,o=!1;if(this._visible){var a=this._view;this._perspective.radius?(o=!0,this._setEmbeddedPosition(a,i)):(a.coordinatesToScreen(i,r),t=r.x,e=r.y,null!=t&&null!=e&&(o=!0,this._setPosition(t,e)))}o?(n.style.display="block",n.style.position="absolute"):(n.style.display="none",n.style.position="")},s.prototype._setEmbeddedPosition=function(t,e){var n=t.coordinatesToPerspectiveTransform(e,this._perspective.radius,this._perspective.extraTransforms);o(this._domElement,n)},s.prototype._setPosition=function(t,e){r(this._domElement,t,e,this._perspective.extraTransforms)},t.exports=s},8289:(t,e,n)=>{"use strict";var i=n(8442),r=n(7056),o=n(3889),a=n(6303),s=n(4332).setAbsolute,l=n(4332).setOverflowHidden,c=n(4332).setOverflowVisible,u=n(4332).setNullSize,d=n(4332).setPixelSize,h=n(4332).setWithVendorPrefix("pointer-events"),p=n(6720);function f(t,e,n,i,r){r=r||{},this._parentDomElement=t,this._stage=e,this._view=n,this._renderLoop=i,this._hotspots=[],this._visible=!0,this._rect=r.rect,this._visibilityOrRectChanged=!0,this._stageWidth=null,this._stageHeight=null,this._tmpRect={},this._hotspotContainerWrapper=document.createElement("div"),s(this._hotspotContainerWrapper),h(this._hotspotContainerWrapper,"none"),this._parentDomElement.appendChild(this._hotspotContainerWrapper),this._hotspotContainer=document.createElement("div"),s(this._hotspotContainer),h(this._hotspotContainer,"all"),this._hotspotContainerWrapper.appendChild(this._hotspotContainer),this._updateHandler=this._update.bind(this),this._renderLoop.addEventListener("afterRender",this._updateHandler)}i(f),f.prototype.destroy=function(){for(;this._hotspots.length;)this.destroyHotspot(this._hotspots[0]);this._parentDomElement.removeChild(this._hotspotContainerWrapper),this._renderLoop.removeEventListener("afterRender",this._updateHandler),p(this)},f.prototype.domElement=function(){return this._hotspotContainer},f.prototype.setRect=function(t){this._rect=t,this._visibilityOrRectChanged=!0},f.prototype.rect=function(){return this._rect},f.prototype.createHotspot=function(t,e,n){e=e||{};var i=new r(t,this._hotspotContainer,this._view,e,n);return this._hotspots.push(i),i._update(),this.emit("hotspotsChange"),i},f.prototype.hasHotspot=function(t){return this._hotspots.indexOf(t)>=0},f.prototype.listHotspots=function(){return[].concat(this._hotspots)},f.prototype.destroyHotspot=function(t){var e=this._hotspots.indexOf(t);if(e<0)throw new Error("No such hotspot");this._hotspots.splice(e,1),t.destroy(),this.emit("hotspotsChange")},f.prototype.hide=function(){this._visible&&(this._visible=!1,this._visibilityOrRectChanged=!0,this._update())},f.prototype.show=function(){this._visible||(this._visible=!0,this._visibilityOrRectChanged=!0,this._update())},f.prototype._update=function(){var t=this._hotspotContainerWrapper,e=this._stage.width(),n=this._stage.height(),i=this._tmpRect;if(this._visibilityOrRectChanged||this._rect&&(e!==this._stageWidth||n!==this._stageHeight)){var r=this._visible;t.style.display=r?"block":"none",r&&(this._rect?(o(e,n,this._rect,i),a(t,e*i.x,n*i.y),d(t,e*i.width,n*i.height),l(t)):(a(t,0,0),u(t),c(t))),this._stageWidth=e,this._stageHeight=n,this._visibilityOrRectChanged=!1}for(var s=0;s<this._hotspots.length;s++)this._hotspots[s]._update()},t.exports=f},7190:(t,e,n)=>{"use strict";var i=n(8442),r=n(558),o=n(6720);function a(t,e,n,i,r){r=r||{};var o=this;this._source=t,this._geometry=e,this._view=n,this._textureStore=i,this._effects=r.effects||{},this._fixedLevelIndex=null,this._viewChangeHandler=function(){o.emit("viewChange",o.view())},this._view.addEventListener("change",this._viewChangeHandler),this._textureStoreChangeHandler=function(){o.emit("textureStoreChange",o.textureStore())},this._textureStore.addEventListener("textureLoad",this._textureStoreChangeHandler),this._textureStore.addEventListener("textureError",this._textureStoreChangeHandler),this._textureStore.addEventListener("textureInvalid",this._textureStoreChangeHandler)}i(a),a.prototype.destroy=function(){this._view.removeEventListener("change",this._viewChangeHandler),this._textureStore.removeEventListener("textureLoad",this._textureStoreChangeHandler),this._textureStore.removeEventListener("textureError",this._textureStoreChangeHandler),this._textureStore.removeEventListener("textureInvalid",this._textureStoreChangeHandler),o(this)},a.prototype.source=function(){return this._source},a.prototype.geometry=function(){return this._geometry},a.prototype.view=function(){return this._view},a.prototype.textureStore=function(){return this._textureStore},a.prototype.effects=function(){return this._effects},a.prototype.setEffects=function(t){this._effects=t,this.emit("effectsChange",this._effects)},a.prototype.mergeEffects=function(t){r(this._effects,t),this.emit("effectsChange",this._effects)},a.prototype.fixedLevel=function(){return this._fixedLevelIndex},a.prototype.setFixedLevel=function(t){if(t!==this._fixedLevelIndex){if(null!=t&&(t>=this._geometry.levelList.length||t<0))throw new Error("Level index out of range: "+t);this._fixedLevelIndex=t,this.emit("fixedLevelChange",this._fixedLevelIndex)}},a.prototype._selectLevel=function(){return null!=this._fixedLevelIndex?this._geometry.levelList[this._fixedLevelIndex]:this._view.selectLevel(this._geometry.selectableLevelList)},a.prototype.visibleTiles=function(t){var e=this._selectLevel();return this._geometry.visibleTiles(this._view,e,t)},a.prototype.pinLevel=function(t){for(var e=this._geometry.levelList[t],n=this._geometry.levelTiles(e),i=0;i<n.length;i++)this._textureStore.pin(n[i])},a.prototype.unpinLevel=function(t){for(var e=this._geometry.levelList[t],n=this._geometry.levelTiles(e),i=0;i<n.length;i++)this._textureStore.unpin(n[i])},a.prototype.pinFirstLevel=function(){return this.pinLevel(0)},a.prototype.unpinFirstLevel=function(){return this.unpinLevel(0)},t.exports=a},5103:(t,e,n)=>{"use strict";function i(t){this.constructor.super_.apply(this,arguments),this.message=t}n(1086)(i,Error),t.exports=i},8294:(t,e,n)=>{"use strict";var i=n(8442),r=n(6720);function o(t){var e=this;this._stage=t,this._running=!1,this._rendering=!1,this._requestHandle=null,this._boundLoop=this._loop.bind(this),this._renderInvalidHandler=function(){e._rendering||e.renderOnNextFrame()},this._stage.addEventListener("renderInvalid",this._renderInvalidHandler)}i(o),o.prototype.destroy=function(){this.stop(),this._stage.removeEventListener("renderInvalid",this._renderInvalidHandler),r(this)},o.prototype.stage=function(){return this._stage},o.prototype.start=function(){this._running=!0,this.renderOnNextFrame()},o.prototype.stop=function(){this._requestHandle&&(window.cancelAnimationFrame(this._requestHandle),this._requestHandle=null),this._running=!1},o.prototype.renderOnNextFrame=function(){this._running&&!this._requestHandle&&(this._requestHandle=window.requestAnimationFrame(this._boundLoop))},o.prototype._loop=function(){if(!this._running)throw new Error("Render loop running while in stopped state");this._requestHandle=null,this._rendering=!0,this.emit("beforeRender"),this._rendering=!1,this._stage.render(),this.emit("afterRender")},t.exports=o},5759:(t,e,n)=>{"use strict";var i=n(7190),r=n(3427),o=n(8289),a=n(8442),s=n(2288),l=n(2058),c=n(7738),u=n(5904),d=n(6720);function h(t,e){this._viewer=t,this._view=e,this._layers=[],this._hotspotContainer=new o(t._controlContainer,t.stage(),this._view,t.renderLoop()),this._movement=null,this._movementStartTime=null,this._movementStep=null,this._movementParams=null,this._movementCallback=null,this._updateMovementHandler=this._updateMovement.bind(this),this._updateHotspotContainerHandler=this._updateHotspotContainer.bind(this),this._viewer.addEventListener("sceneChange",this._updateHotspotContainerHandler),this._viewChangeHandler=this.emit.bind(this,"viewChange"),this._view.addEventListener("change",this._viewChangeHandler),this._updateHotspotContainer()}a(h),h.prototype.destroy=function(){this._view.removeEventListener("change",this._viewChangeHandler),this._viewer.removeEventListener("sceneChange",this._updateHotspotContainerHandler),this._movement&&this.stopMovement(),this._hotspotContainer.destroy(),this.destroyAllLayers(),d(this)},h.prototype.hotspotContainer=function(){return this._hotspotContainer},h.prototype.layer=function(){return this._layers[0]},h.prototype.listLayers=function(){return[].concat(this._layers)},h.prototype.view=function(){return this._view},h.prototype.viewer=function(){return this._viewer},h.prototype.visible=function(){return this._viewer.scene()===this},h.prototype.createLayer=function(t){var e=(t=t||{}).textureStoreOpts||{},n=t.layerOpts||{},o=t.source,a=t.geometry,s=this._view,l=this._viewer.stage(),c=new r(o,l,e),u=new i(o,a,s,c,n);return this._layers.push(u),t.pinFirstLevel&&u.pinFirstLevel(),this.emit("layerChange"),u},h.prototype.destroyLayer=function(t){var e=this._layers.indexOf(t);if(e<0)throw new Error("No such layer in scene");this._layers.splice(e,1),this.emit("layerChange"),t.textureStore().destroy(),t.destroy()},h.prototype.destroyAllLayers=function(){for(;this._layers.length>0;)this.destroyLayer(this._layers[0])},h.prototype.switchTo=function(t,e){return this._viewer.switchScene(this,t,e)},h.prototype.lookTo=function(t,e,n){var i=this;if(e=e||{},n=n||l,"object"!==c(t))throw new Error("Target view parameters must be an object");var r=null!=e.ease?e.ease:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},o=null!=e.controlsInterrupt&&e.controlsInterrupt,a=null!=e.transitionDuration?e.transitionDuration:1e3,s=null==e.shortest||e.shortest,d=this._view,h=d.parameters(),p={};u(p,t),u(p,h),s&&d.normalizeToClosest&&d.normalizeToClosest(p,p);var f=this._viewer.controls().enabled();o||this._viewer.controls().disable(),this.startMovement((function(){var t=!1;return function(e,n){if(n>=a&&t)return null;var i=Math.min(n/a,1);for(var o in e){var s=h[o],l=p[o];e[o]=s+r(i)*(l-s)}return t=n>=a,e}}),(function(){f&&i._viewer.controls().enable(),n()}))},h.prototype.startMovement=function(t,e){var n=this._viewer.renderLoop();this._movement&&this.stopMovement();var i=t();if("function"!=typeof i)throw new Error("Bad movement");this._movement=t,this._movementStep=i,this._movementStartTime=s(),this._movementParams={},this._movementCallback=e,n.addEventListener("beforeRender",this._updateMovementHandler),n.renderOnNextFrame()},h.prototype.stopMovement=function(){var t=this._movementCallback,e=this._viewer.renderLoop();this._movement&&(this._movement=null,this._movementStep=null,this._movementStartTime=null,this._movementParams=null,this._movementCallback=null,e.removeEventListener("beforeRender",this._updateMovementHandler),t&&t())},h.prototype.movement=function(){return this._movement},h.prototype._updateMovement=function(){if(!this._movement)throw new Error("Should not call update");var t=this._viewer.renderLoop(),e=this._view,n=s()-this._movementStartTime,i=this._movementStep,r=this._movementParams;null==(r=i(r=e.parameters(r),n))?this.stopMovement():(e.setParameters(r),t.renderOnNextFrame())},h.prototype._updateHotspotContainer=function(){this.visible()?this._hotspotContainer.show():this._hotspotContainer.hide()},t.exports=h},3427:(t,e,n)=>{"use strict";var i=n(3031),r=n(4585),o=n(4306),a=n(8442),s=n(5904),l=n(7758),c=n(7869),u=n(1086),d=n(6720),h="undefined"!=typeof MARZIPANODEBUG&&MARZIPANODEBUG.textureStore,p=0,f=1,m=2,v=3,g={previouslyVisibleCacheSize:512},b=0;function y(){}function _(t,e){var n=this,i=b++;n._id=i,n._store=t,n._tile=e,n._asset=null,n._texture=null,n._changeHandler=function(){t.emit("textureInvalid",e)};var r=t.source(),o=t.stage(),a=r.loadAsset.bind(r),s=o.createTexture.bind(o),u=c(l(a),s);t.emit("textureStartLoad",e),h&&console.log("loading",i,e),n._cancel=u(o,e,(function(r,o,a,s){if(n._cancel=null,r)return a&&a.destroy(),s&&s.destroy(),void(r instanceof y?(t.emit("textureCancel",e),h&&console.log("cancel",i,e)):(t.emit("textureError",e,r),h&&console.log("error",i,e)));n._texture=s,a.isDynamic()?(n._asset=a,a.addEventListener("change",n._changeHandler)):a.destroy(),t.emit("textureLoad",e),h&&console.log("load",i,e)}))}function w(t,e,n){n=s(n||{},g),this._source=t,this._stage=e,this._state=p,this._delimCount=0,this._itemMap=new i,this._visible=new r,this._previouslyVisible=new o(n.previouslyVisibleCacheSize),this._pinMap=new i,this._newVisible=new r,this._noLongerVisible=[],this._visibleAgain=[],this._evicted=[]}u(y,Error),_.prototype.asset=function(){return this._asset},_.prototype.texture=function(){return this._texture},_.prototype.destroy=function(){var t=this._id,e=this._store,n=this._tile,i=this._asset,r=this._texture,o=this._cancel;o?o(new y("Texture load cancelled")):(i&&(i.removeEventListener("change",this._changeHandler),i.destroy()),r&&r.destroy(),e.emit("textureUnload",n),h&&console.log("unload",t,n),d(this))},a(_),a(w),w.prototype.destroy=function(){this.clear(),d(this)},w.prototype.stage=function(){return this._stage},w.prototype.source=function(){return this._source},w.prototype.clear=function(){var t=this;t._evicted.length=0,t._itemMap.forEach((function(e){t._evicted.push(e)})),t._evicted.forEach((function(e){t._unloadTile(e)})),t._itemMap.clear(),t._visible.clear(),t._previouslyVisible.clear(),t._pinMap.clear(),t._newVisible.clear(),t._noLongerVisible.length=0,t._visibleAgain.length=0,t._evicted.length=0},w.prototype.clearNotPinned=function(){var t=this;t._evicted.length=0,t._itemMap.forEach((function(e){t._pinMap.has(e)||t._evicted.push(e)})),t._evicted.forEach((function(e){t._unloadTile(e)})),t._visible.clear(),t._previouslyVisible.clear(),t._evicted.length=0},w.prototype.startFrame=function(){if(this._state!==p&&this._state!==f)throw new Error("TextureStore: startFrame called out of sequence");this._state=f,this._delimCount++},w.prototype.markTile=function(t){if(this._state!==f&&this._state!==m)throw new Error("TextureStore: markTile called out of sequence");this._state=m;var e=this._itemMap.get(t),n=e&&e.texture(),i=e&&e.asset();n&&i&&n.refresh(t,i),this._newVisible.add(t)},w.prototype.endFrame=function(){if(this._state!==f&&this._state!==m&&this._state!==v)throw new Error("TextureStore: endFrame called out of sequence");this._state=v,this._delimCount--,this._delimCount||(this._update(),this._state=p)},w.prototype._update=function(){var t=this;t._noLongerVisible.length=0,t._visible.forEach((function(e){t._newVisible.has(e)||t._noLongerVisible.push(e)})),t._visibleAgain.length=0,t._newVisible.forEach((function(e){t._previouslyVisible.has(e)&&t._visibleAgain.push(e)})),t._visibleAgain.forEach((function(e){t._previouslyVisible.remove(e)})),t._evicted.length=0,t._noLongerVisible.forEach((function(e){var n=t._itemMap.get(e);if(n&&n.texture()){var i=t._previouslyVisible.add(e);null!=i&&t._evicted.push(i)}else n&&t._unloadTile(e)})),t._evicted.forEach((function(e){t._pinMap.has(e)||t._unloadTile(e)})),t._newVisible.forEach((function(e){t._itemMap.get(e)||t._loadTile(e)}));var e=t._visible;t._visible=t._newVisible,t._newVisible=e,t._newVisible.clear(),t._noLongerVisible.length=0,t._visibleAgain.length=0,t._evicted.length=0},w.prototype._loadTile=function(t){if(this._itemMap.has(t))throw new Error("TextureStore: loading texture already in cache");var e=new _(this,t);this._itemMap.set(t,e)},w.prototype._unloadTile=function(t){var e=this._itemMap.del(t);if(!e)throw new Error("TextureStore: unloading texture not in cache");e.destroy()},w.prototype.asset=function(t){var e=this._itemMap.get(t);return e?e.asset():null},w.prototype.texture=function(t){var e=this._itemMap.get(t);return e?e.texture():null},w.prototype.pin=function(t){var e=(this._pinMap.get(t)||0)+1;return this._pinMap.set(t,e),this._itemMap.has(t)||this._loadTile(t),e},w.prototype.unpin=function(t){var e=this._pinMap.get(t);if(!e)throw new Error("TextureStore: unpin when not pinned");return--e>0?this._pinMap.set(t,e):(this._pinMap.del(t),this._visible.has(t)||this._previouslyVisible.has(t)||this._unloadTile(t)),e},w.prototype.query=function(t){var e=this._itemMap.get(t),n=this._pinMap.get(t)||0;return{visible:this._visible.has(t),previouslyVisible:this._previouslyVisible.has(t),hasAsset:null!=e&&null!=e.asset(),hasTexture:null!=e&&null!=e.texture(),pinned:0!==n,pinCount:n}},t.exports=w},5660:(t,e,n)=>{"use strict";var i=n(4585);function r(){this._stack=[],this._visited=new i,this._vertices=null}r.prototype.search=function(t,e,n){var i=this._stack,r=this._visited,o=this._vertices,a=0;for(this._clear(),i.push(e);i.length>0;){var s=i.pop();if(!r.has(s)&&t.intersects(s.vertices(o))){r.add(s);for(var l=s.neighbors(),c=0;c<l.length;c++)i.push(l[c]);n.push(s),a++}}return this._vertices=o,this._clear(),a},r.prototype._clear=function(){this._stack.length=0,this._visited.clear()},t.exports=r},5570:(t,e,n)=>{"use strict";var i=n(8442),r=n(5904),o=n(2288),a={duration:1/0};function s(t){t=r(t||{},a),this._duration=t.duration,this._startTime=null,this._handle=null,this._check=this._check.bind(this)}i(s),s.prototype.start=function(){this._startTime=o(),null==this._handle&&this._duration<1/0&&this._setup(this._duration)},s.prototype.started=function(){return null!=this._startTime},s.prototype.stop=function(){this._startTime=null,null!=this._handle&&(clearTimeout(this._handle),this._handle=null)},s.prototype._setup=function(t){this._handle=setTimeout(this._check,t)},s.prototype._teardown=function(){clearTimeout(this._handle),this._handle=null},s.prototype._check=function(){var t=o()-this._startTime,e=this._duration-t;this._teardown(),e<=0?(this.emit("timeout"),this._startTime=null):e<1/0&&this._setup(e)},s.prototype.duration=function(){return this._duration},s.prototype.setDuration=function(t){this._duration=t,null!=this._startTime&&this._check()},t.exports=s},8101:(t,e,n)=>{"use strict";var i=n(8442),r=n(8294),o=n(9842),a=n(5759),s=n(5570),l=n(798),c=n(2141),u=n(7510),d=n(2890),h=n(6512),p=n(4332).setOverflowHidden,f=n(4332).setAbsolute,m=n(4332).setFullSize,v=n(2399),g=n(2058),b=n(6720);function y(t,e){e=e||{},this._domElement=t,p(t),this._stage=new l(e.stage),h(this._stage),this._domElement.appendChild(this._stage.domElement()),this._controlContainer=document.createElement("div"),f(this._controlContainer),m(this._controlContainer),t.appendChild(this._controlContainer),this._size={},this.updateSize(),this._updateSizeListener=this.updateSize.bind(this),window.addEventListener("resize",this._updateSizeListener),this._renderLoop=new r(this._stage),this._controls=new o,this._controlMethods=d(this._controls,this._controlContainer,e.controls),this._controls.attach(this._renderLoop),this._hammerManagerTouch=u.get(this._controlContainer,"touch"),this._hammerManagerMouse=u.get(this._controlContainer,"mouse"),this._dragCursor=new c(this._controls,"mouseViewDrag",t,e.cursors&&e.cursors.drag||{}),this._renderLoop.start(),this._scenes=[],this._currentScene=null,this._replacedScene=null,this._cancelCurrentTween=null,this._layerChangeHandler=this._updateSceneLayers.bind(this),this._viewChangeHandler=this.emit.bind(this,"viewChange"),this._idleTimer=new s,this._idleTimer.start(),this._resetIdleTimerHandler=this._resetIdleTimer.bind(this),this.addEventListener("viewChange",this._resetIdleTimerHandler),this._triggerIdleTimerHandler=this._triggerIdleTimer.bind(this),this._idleTimer.addEventListener("timeout",this._triggerIdleTimerHandler),this._stopMovementHandler=this.stopMovement.bind(this),this._controls.addEventListener("active",this._stopMovementHandler),this.addEventListener("sceneChange",this._stopMovementHandler),this._idleMovement=null}i(y),y.prototype.destroy=function(){for(var t in window.removeEventListener("resize",this._updateSizeListener),this._currentScene&&this._removeSceneEventListeners(this._currentScene),this._replacedScene&&this._removeSceneEventListeners(this._replacedScene),this._dragCursor.destroy(),this._controlMethods)this._controlMethods[t].destroy();for(;this._scenes.length;)this.destroyScene(this._scenes[0]);this._domElement.removeChild(this._stage.domElement()),this._stage.destroy(),this._renderLoop.destroy(),this._controls.destroy(),this._controls=null,this._cancelCurrentTween&&this._cancelCurrentTween(),b(this)},y.prototype.updateSize=function(){var t=this._size;t.width=this._domElement.clientWidth,t.height=this._domElement.clientHeight,this._stage.setSize(t)},y.prototype.stage=function(){return this._stage},y.prototype.renderLoop=function(){return this._renderLoop},y.prototype.controls=function(){return this._controls},y.prototype.domElement=function(){return this._domElement},y.prototype.createScene=function(t){t=t||{};var e=this.createEmptyScene({view:t.view});return e.createLayer({source:t.source,geometry:t.geometry,pinFirstLevel:t.pinFirstLevel,textureStoreOpts:t.textureStoreOpts,layerOpts:t.layerOpts}),e},y.prototype.createEmptyScene=function(t){var e=new a(this,(t=t||{}).view);return this._scenes.push(e),e},y.prototype._updateSceneLayers=function(){var t,e,n=this._stage,i=this._currentScene,r=this._replacedScene,o=n.listLayers(),a=[];if(r&&(a=a.concat(r.listLayers())),i&&(a=a.concat(i.listLayers())),1!==Math.abs(o.length-a.length))throw new Error("Stage and scene out of sync");if(a.length<o.length)for(t=0;t<o.length;t++)if(e=o[t],a.indexOf(e)<0){this._removeLayerFromStage(e);break}if(a.length>o.length)for(t=0;t<a.length;t++)e=a[t],o.indexOf(e)<0&&this._addLayerToStage(e,t)},y.prototype._addLayerToStage=function(t,e){t.pinFirstLevel(),this._stage.addLayer(t,e)},y.prototype._removeLayerFromStage=function(t){this._stage.removeLayer(t),t.unpinFirstLevel(),t.textureStore().clearNotPinned()},y.prototype._addSceneEventListeners=function(t){t.addEventListener("layerChange",this._layerChangeHandler),t.addEventListener("viewChange",this._viewChangeHandler)},y.prototype._removeSceneEventListeners=function(t){t.removeEventListener("layerChange",this._layerChangeHandler),t.removeEventListener("viewChange",this._viewChangeHandler)},y.prototype.destroyScene=function(t){var e,n,i=this._scenes.indexOf(t);if(i<0)throw new Error("No such scene in viewer");if(this._currentScene===t){for(this._removeSceneEventListeners(t),n=t.listLayers(),e=0;e<n.length;e++)this._removeLayerFromStage(n[e]);this._cancelCurrentTween&&(this._cancelCurrentTween(),this._cancelCurrentTween=null),this._currentScene=null,this.emit("sceneChange")}if(this._replacedScene===t){for(this._removeSceneEventListeners(t),n=t.listLayers(),e=0;e<n.length;e++)this._removeLayerFromStage(n[e]);this._replacedScene=null}this._scenes.splice(i,1),t.destroy()},y.prototype.destroyAllScenes=function(){for(;this._scenes.length>0;)this.destroyScene(this._scenes[0])},y.prototype.hasScene=function(t){return this._scenes.indexOf(t)>=0},y.prototype.listScenes=function(){return[].concat(this._scenes)},y.prototype.scene=function(){return this._currentScene},y.prototype.view=function(){var t=this._currentScene;return t?t.view():null},y.prototype.lookTo=function(t,e,n){var i=this._currentScene;i&&i.lookTo(t,e,n)},y.prototype.startMovement=function(t,e){var n=this._currentScene;n&&n.startMovement(t,e)},y.prototype.stopMovement=function(){var t=this._currentScene;t&&t.stopMovement()},y.prototype.movement=function(){var t=this._currentScene;if(t)return t.movement()},y.prototype.setIdleMovement=function(t,e){this._idleTimer.setDuration(t),this._idleMovement=e},y.prototype.breakIdleMovement=function(){this.stopMovement(),this._resetIdleTimer()},y.prototype._resetIdleTimer=function(){this._idleTimer.start()},y.prototype._triggerIdleTimer=function(){var t=this._idleMovement;t&&this.startMovement(t)};function _(t,e,n){e.listLayers().forEach((function(e){e.mergeEffects({opacity:t})})),e._hotspotContainer.domElement().style.opacity=t}y.prototype.switchScene=function(t,e,n){var i=this;e=e||{},n=n||g;var r=this._stage,o=this._currentScene;if(o!==t){if(this._scenes.indexOf(t)<0)throw new Error("No such scene in viewer");this._cancelCurrentTween&&(this._cancelCurrentTween(),this._cancelCurrentTween=null);var a=o?o.listLayers():[],s=t.listLayers(),l=r.listLayers();if(o&&(l.length!==a.length||l.length>1&&l[0]!=a[0]))throw new Error("Stage not in sync with viewer");for(var c=null!=e.transitionDuration?e.transitionDuration:1e3,u=null!=e.transitionUpdate?e.transitionUpdate:_,d=0;d<s.length;d++)this._addLayerToStage(s[d]);this._cancelCurrentTween=v(c,(function(e){u(e,t,o)}),(function(){if(i._replacedScene){i._removeSceneEventListeners(i._replacedScene),a=i._replacedScene.listLayers();for(var t=0;t<a.length;t++)i._removeLayerFromStage(a[t]);i._replacedScene=null}i._cancelCurrentTween=null,n()})),this._currentScene=t,this._replacedScene=o,this.emit("sceneChange"),this.emit("viewChange"),this._addSceneEventListeners(t)}else n()},t.exports=y},3700:(t,e,n)=>{"use strict";var i=n(5799),r=n(1086),o=n(8442),a=n(6720);function s(t){this.constructor.super_.call(this,t),this._timestamp=0}r(s,i),o(s),s.prototype.destroy=function(){a(this)},s.prototype.timestamp=function(){return this._timestamp},s.prototype.isDynamic=function(){return!0},s.prototype.markDirty=function(){this._timestamp++,this.emit("change")},t.exports=s},5799:(t,e,n)=>{"use strict";var i=n(4597),r=n(8442),o=n(6720),a={HTMLImageElement:["naturalWidth","naturalHeight"],HTMLCanvasElement:["width","height"],ImageBitmap:["width","height"]};function s(t){var e=!1;for(var n in a)if(i[n]&&t instanceof i[n]){e=!0,this._widthProp=a[n][0],this._heightProp=a[n][1];break}if(!e)throw new Error("Unsupported pixel source");this._element=t}r(s),s.prototype.destroy=function(){o(this)},s.prototype.element=function(){return this._element},s.prototype.width=function(){return this._element[this._widthProp]},s.prototype.height=function(){return this._element[this._heightProp]},s.prototype.timestamp=function(){return 0},s.prototype.isDynamic=function(){return!1},t.exports=s},6347:(t,e,n)=>{"use strict";var i=n(5904),r=.01,o={yawSpeed:.1,pitchSpeed:.1,fovSpeed:.1,yawAccel:r,pitchAccel:r,fovAccel:r,targetPitch:0,targetFov:null};t.exports=function(t){var e=(t=i(t||{},o)).yawSpeed,n=t.pitchSpeed,r=t.fovSpeed,a=t.yawAccel,s=t.pitchAccel,l=t.fovAccel,c=t.targetPitch,u=t.targetFov;return function(){var t,i,o,d,h=0,p=0,f=0,m=0,v=0,g=0,b=0;return function(y,_){if(t=(_-h)/1e3,v=Math.min(p+t*a,e),i=v*t,y.yaw=y.yaw+i,null!=c&&y.pitch!==c){var w=.5*f*f/s;g=Math.abs(c-y.pitch)>w?Math.min(f+t*s,n):Math.max(f-t*s,0),o=g*t,c<y.pitch&&(y.pitch=Math.max(c,y.pitch-o)),c>y.pitch&&(y.pitch=Math.min(c,y.pitch+o))}if(null!=u&&y.fov!==c){var x=.5*m*m/l;b=Math.abs(u-y.fov)>x?Math.min(m+t*l,r):Math.max(m-t*l,0),d=b*t,u<y.fov&&(y.fov=Math.max(u,y.fov-d)),u>y.fov&&(y.fov=Math.min(u,y.fov+d))}return h=_,p=v,f=g,m=b,y}}}},88:(t,e,n)=>{"use strict";var i=n(3572);function r(t){if(!isFinite(t)||Math.floor(t)!==t||t<0)throw new Error("LruMap: invalid capacity");this._capacity=t,this._keys=new Array(this._capacity),this._values=new Array(this._capacity),this._start=0,this._size=0}r.prototype._index=function(t){return i(this._start+t,this._capacity)},r.prototype.get=function(t){for(var e=0;e<this._size;e++){var n=this._keys[this._index(e)];if(t.equals(n))return this._values[this._index(e)]}return null},r.prototype.set=function(t,e){if(0===this._capacity)return t;this.del(t);var n=this._size===this._capacity?this._keys[this._index(0)]:null;return this._keys[this._index(this._size)]=t,this._values[this._index(this._size)]=e,this._size<this._capacity?this._size++:this._start=this._index(1),n},r.prototype.del=function(t){for(var e=0;e<this._size;e++)if(t.equals(this._keys[this._index(e)])){for(var n=this._values[this._index(e)],i=e;i<this._size-1;i++)this._keys[this._index(i)]=this._keys[this._index(i+1)],this._values[this._index(i)]=this._values[this._index(i+1)];return this._size--,n}return null},r.prototype.has=function(t){for(var e=0;e<this._size;e++)if(t.equals(this._keys[this._index(e)]))return!0;return!1},r.prototype.size=function(){return this._size},r.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._start=0,this._size=0},r.prototype.forEach=function(t){for(var e=0,n=0;n<this._size;n++)t(this._keys[this._index(n)],this._values[this._index(n)]),e+=1;return e},t.exports=r},4306:(t,e,n)=>{"use strict";var i=n(3572);function r(t){if(!isFinite(t)||Math.floor(t)!==t||t<0)throw new Error("LruSet: invalid capacity");this._capacity=t,this._elements=new Array(this._capacity),this._start=0,this._size=0}r.prototype._index=function(t){return i(this._start+t,this._capacity)},r.prototype.add=function(t){if(0===this._capacity)return t;this.remove(t);var e=this._size===this._capacity?this._elements[this._index(0)]:null;return this._elements[this._index(this._size)]=t,this._size<this._capacity?this._size++:this._start=this._index(1),e},r.prototype.remove=function(t){for(var e=0;e<this._size;e++){var n=this._elements[this._index(e)];if(t.equals(n)){for(var i=e;i<this._size-1;i++)this._elements[this._index(i)]=this._elements[this._index(i+1)];return this._size--,n}}return null},r.prototype.has=function(t){for(var e=0;e<this._size;e++)if(t.equals(this._elements[this._index(e)]))return!0;return!1},r.prototype.size=function(){return this._size},r.prototype.clear=function(){this._elements.length=0,this._start=0,this._size=0},r.prototype.forEach=function(t){for(var e=0,n=0;n<this._size;n++)t(this._elements[this._index(n)]),e+=1;return e},t.exports=r},3031:(t,e,n)=>{"use strict";var i=n(3572);function r(t){if(null!=t&&(!isFinite(t)||Math.floor(t)!==t||t<1))throw new Error("Map: invalid capacity");this._capacity=t||64,this._keyBuckets=[],this._valBuckets=[];for(var e=0;e<this._capacity;e++)this._keyBuckets.push([]),this._valBuckets.push([]);this._size=0}r.prototype.get=function(t){for(var e=i(t.hash(),this._capacity),n=this._keyBuckets[e],r=0;r<n.length;r++){var o=n[r];if(t.equals(o))return this._valBuckets[e][r]}return null},r.prototype.set=function(t,e){for(var n=i(t.hash(),this._capacity),r=this._keyBuckets[n],o=this._valBuckets[n],a=0;a<r.length;a++){var s=r[a];if(t.equals(s)){var l=o[a];return r[a]=t,o[a]=e,l}}return r.push(t),o.push(e),this._size++,null},r.prototype.del=function(t){for(var e=i(t.hash(),this._capacity),n=this._keyBuckets[e],r=this._valBuckets[e],o=0;o<n.length;o++){var a=n[o];if(t.equals(a)){for(var s=r[o],l=o;l<n.length-1;l++)n[l]=n[l+1],r[l]=r[l+1];return n.length=n.length-1,r.length=r.length-1,this._size--,s}}return null},r.prototype.has=function(t){for(var e=i(t.hash(),this._capacity),n=this._keyBuckets[e],r=0;r<n.length;r++){var o=n[r];if(t.equals(o))return!0}return!1},r.prototype.size=function(){return this._size},r.prototype.clear=function(){for(var t=0;t<this._capacity;t++)this._keyBuckets[t].length=0,this._valBuckets[t].length=0;this._size=0},r.prototype.forEach=function(t){for(var e=0,n=0;n<this._capacity;n++)for(var i=this._keyBuckets[n],r=this._valBuckets[n],o=0;o<i.length;o++)t(i[o],r[o]),e+=1;return e},t.exports=r},4585:(t,e,n)=>{"use strict";var i=n(3572);function r(t){if(null!=t&&(!isFinite(t)||Math.floor(t)!==t||t<1))throw new Error("Set: invalid capacity");this._capacity=this._capacity||64,this._buckets=[];for(var e=0;e<this._capacity;e++)this._buckets.push([]);this._size=0}r.prototype.add=function(t){for(var e=i(t.hash(),this._capacity),n=this._buckets[e],r=0;r<n.length;r++){var o=n[r];if(t.equals(o))return n[r]=t,o}return n.push(t),this._size++,null},r.prototype.remove=function(t){for(var e=i(t.hash(),this._capacity),n=this._buckets[e],r=0;r<n.length;r++){var o=n[r];if(t.equals(o)){for(var a=r;a<n.length-1;a++)n[a]=n[a+1];return n.length=n.length-1,this._size--,o}}return null},r.prototype.has=function(t){for(var e=i(t.hash(),this._capacity),n=this._buckets[e],r=0;r<n.length;r++){var o=n[r];if(t.equals(o))return!0}return!1},r.prototype.size=function(){return this._size},r.prototype.clear=function(){for(var t=0;t<this._capacity;t++)this._buckets[t].length=0;this._size=0},r.prototype.forEach=function(t){for(var e=0,n=0;n<this._capacity;n++)for(var i=this._buckets[n],r=0;r<i.length;r++)t(i[r]),e+=1;return e},t.exports=r},194:(t,e,n)=>{"use strict";var i=n(5821),r=n(3572);function o(t){this._concurrency=t&&t.concurrency||1,this._paused=t&&!!t.paused||!1,this._pool=[];for(var e=0;e<this._concurrency;e++)this._pool.push(new i(t));this._next=0}o.prototype.length=function(){for(var t=0,e=0;e<this._pool.length;e++)t+=this._pool[e].length();return t},o.prototype.push=function(t,e){var n=this._next,i=this._pool[n].push(t,e);return this._next=r(this._next+1,this._concurrency),i},o.prototype.pause=function(){if(!this._paused){this._paused=!0;for(var t=0;t<this._concurrency;t++)this._pool[t].pause()}},o.prototype.resume=function(){if(this._paused){this._paused=!1;for(var t=0;t<this._concurrency;t++)this._pool[t].resume()}},t.exports=o},5821:(t,e,n)=>{"use strict";var i=n(2288);function r(t,e){this.fn=t,this.cb=e,this.cfn=null}function o(t){this._queue=[],this._delay=t&&t.delay||0,this._paused=t&&!!t.paused||!1,this._currentTask=null,this._lastFinished=null}o.prototype.length=function(){return this._queue.length},o.prototype.push=function(t,e){var n=new r(t,e),i=this._cancel.bind(this,n);return this._queue.push(n),this._next(),i},o.prototype.pause=function(){this._paused||(this._paused=!0)},o.prototype.resume=function(){this._paused&&(this._paused=!1,this._next())},o.prototype._start=function(t){if(this._currentTask)throw new Error("WorkQueue: called start while running task");this._currentTask=t;var e=this._finish.bind(this,t);if(t.cfn=t.fn(e),"function"!=typeof t.cfn)throw new Error("WorkQueue: function is not cancellable")},o.prototype._finish=function(t){var e=Array.prototype.slice.call(arguments,1);if(this._currentTask!==t)throw new Error("WorkQueue: called finish on wrong task");t.cb.apply(null,e),this._currentTask=null,this._lastFinished=i(),this._next()},o.prototype._cancel=function(t){var e=Array.prototype.slice.call(arguments,1);if(this._currentTask===t)t.cfn.apply(null,e);else{var n=this._queue.indexOf(t);n>=0&&(this._queue.splice(n,1),t.cb.apply(null,e))}},o.prototype._next=function(){if(!this._paused&&this._queue.length&&!this._currentTask){if(null!=this._lastFinished){var t=i()-this._lastFinished,e=this._delay-t;if(e>0)return void setTimeout(this._next.bind(this),e)}var n=this._queue.shift();this._start(n)}},t.exports=o},2400:(t,e,n)=>{"use strict";var i=n(5382).vec4,r=n(5382).mat4;function o(t,e,n){var r,o,a,s,l,c,u;r=n,o=t,a=e.colorMatrix,s=o[0],l=o[1],c=o[2],u=o[3],r[0]=a[0]*s+a[1]*l+a[2]*c+a[3]*u,r[1]=a[4]*s+a[5]*l+a[6]*c+a[7]*u,r[2]=a[8]*s+a[9]*l+a[10]*c+a[11]*u,r[3]=a[12]*s+a[13]*l+a[14]*c+a[15]*u,i.add(n,n,e.colorOffset)}var a=i.create();t.exports={identity:function(t){var e=t||{};return e.colorOffset=e.colorOffset||i.create(),e.colorMatrix=e.colorMatrix||r.create(),e},applyToPixel:o,applyToImageData:function(t,e){for(var n=t.width,r=t.height,s=t.data,l=0;l<n*r;l++)i.set(a,s[4*l+0]/255,s[4*l+1]/255,s[4*l+2]/255,s[4*l+3]/255),o(a,e,a),s[4*l+0]=255*a[0],s[4*l+1]=255*a[1],s[4*l+2]=255*a[2],s[4*l+3]=255*a[3]}}},7354:(t,e,n)=>{"use strict";var i=n(8442),r=n(966),o=n(2288),a=n(6720);function s(t){t=t||{},this._methods=[],this._parameters=["x","y","axisScaledX","axisScaledY","zoom","yaw","pitch","roll"],this._now=t.nowForTesting||o,this._composedOffsets={},this._composeReturn={offsets:this._composedOffsets,changing:null}}i(s),s.prototype.add=function(t){if(!this.has(t)){var e={};this._parameters.forEach((function(t){e[t]={dynamics:new r,time:null}}));var n=this._updateDynamics.bind(this,e),i={instance:t,dynamics:e,parameterDynamicsHandler:n};t.addEventListener("parameterDynamics",n),this._methods.push(i)}},s.prototype.remove=function(t){var e=this._indexOfInstance(t);if(e>=0){var n=this._methods.splice(e,1)[0];n.instance.removeEventListener("parameterDynamics",n.parameterDynamicsHandler)}},s.prototype.has=function(t){return this._indexOfInstance(t)>=0},s.prototype._indexOfInstance=function(t){for(var e=0;e<this._methods.length;e++)if(this._methods[e].instance===t)return e;return-1},s.prototype.list=function(){for(var t=[],e=0;e<this._methods.length;e++)t.push(this._methods[e].instance);return t},s.prototype._updateDynamics=function(t,e,n){var i=t[e];if(!i)throw new Error("Unknown control parameter "+e);var r=this._now();i.dynamics.update(n,(r-i.time)/1e3),i.time=r,this.emit("change")},s.prototype._resetComposedOffsets=function(){for(var t=0;t<this._parameters.length;t++)this._composedOffsets[this._parameters[t]]=0},s.prototype.offsets=function(){var t,e=!1,n=this._now();this._resetComposedOffsets();for(var i=0;i<this._methods.length;i++)for(var r=this._methods[i].dynamics,o=0;o<this._parameters.length;o++){var a=r[t=this._parameters[o]],s=a.dynamics;null!=s.offset&&(this._composedOffsets[t]+=s.offset,s.offset=null);var l=(n-a.time)/1e3,c=s.offsetFromVelocity(l);c&&(this._composedOffsets[t]+=c);var u=s.velocityAfter(l);s.velocity=u,u&&(e=!0),a.time=n}return this._composeReturn.changing=e,this._composeReturn},s.prototype.destroy=function(){for(var t=this.list(),e=0;e<t.length;e++)this.remove(t[e]);a(this)},t.exports=s},2141:(t,e,n)=>{"use strict";var i=n(5904),r=n(6720),o={active:"move",inactive:"default",disabled:"default"};function a(t,e,n,r){r=i(r||{},o),this._element=n,this._controls=t,this._id=e,this._attached=!1,this._setActiveCursor=this._setCursor.bind(this,r.active),this._setInactiveCursor=this._setCursor.bind(this,r.inactive),this._setDisabledCursor=this._setCursor.bind(this,r.disabled),this._setOriginalCursor=this._setCursor.bind(this,this._element.style.cursor),this._updateAttachmentHandler=this._updateAttachment.bind(this),t.addEventListener("methodEnabled",this._updateAttachmentHandler),t.addEventListener("methodDisabled",this._updateAttachmentHandler),t.addEventListener("enabled",this._updateAttachmentHandler),t.addEventListener("disabled",this._updateAttachmentHandler),this._updateAttachment()}a.prototype.destroy=function(){this._detachFromControlMethod(this._controls.method(this._id)),this._setOriginalCursor(),this._controls.removeEventListener("methodEnabled",this._updateAttachmentHandler),this._controls.removeEventListener("methodDisabled",this._updateAttachmentHandler),this._controls.removeEventListener("enabled",this._updateAttachmentHandler),this._controls.removeEventListener("disabled",this._updateAttachmentHandler),r(this)},a.prototype._updateAttachment=function(){var t=this._controls,e=this._id;t.enabled()&&t.method(e).enabled?this._attachToControlMethod(t.method(e)):this._detachFromControlMethod(t.method(e))},a.prototype._attachToControlMethod=function(t){this._attached||(t.instance.addEventListener("active",this._setActiveCursor),t.instance.addEventListener("inactive",this._setInactiveCursor),t.active?this._setActiveCursor():this._setInactiveCursor(),this._attached=!0)},a.prototype._detachFromControlMethod=function(t){this._attached&&(t.instance.removeEventListener("active",this._setActiveCursor),t.instance.removeEventListener("inactive",this._setInactiveCursor),this._setDisabledCursor(),this._attached=!1)},a.prototype._setCursor=function(t){this._element.style.cursor=t},t.exports=a},9842:(t,e,n)=>{"use strict";var i=n(8442),r=n(7354),o=n(6720),a="undefined"!=typeof MARZIPANODEBUG&&MARZIPANODEBUG.controls;function s(t){t=t||{},this._methods={},this._methodGroups={},this._composer=new r,this._enabled=!t||!t.enabled||!!t.enabled,this._activeCount=0,this.updatedViews_=[],this._attachedRenderLoop=null}i(s),s.prototype.destroy=function(){this.detach(),this._composer.destroy(),o(this)},s.prototype.methods=function(){var t={};for(var e in this._methods)t[e]=this._methods[e];return t},s.prototype.method=function(t){return this._methods[t]},s.prototype.registerMethod=function(t,e,n){if(this._methods[t])throw new Error("Control method already registered with id "+t);this._methods[t]={instance:e,enabled:!1,active:!1,activeHandler:this._handleActive.bind(this,t),inactiveHandler:this._handleInactive.bind(this,t)},n&&this.enableMethod(t,e)},s.prototype.unregisterMethod=function(t){var e=this._methods[t];if(!e)throw new Error("No control method registered with id "+t);e.enabled&&this.disableMethod(t),delete this._methods[t]},s.prototype.enableMethod=function(t){var e=this._methods[t];if(!e)throw new Error("No control method registered with id "+t);e.enabled||(e.enabled=!0,e.active&&this._incrementActiveCount(),this._listen(t),this._updateComposer(),this.emit("methodEnabled",t))},s.prototype.disableMethod=function(t){var e=this._methods[t];if(!e)throw new Error("No control method registered with id "+t);e.enabled&&(e.enabled=!1,e.active&&this._decrementActiveCount(),this._unlisten(t),this._updateComposer(),this.emit("methodDisabled",t))},s.prototype.addMethodGroup=function(t,e){this._methodGroups[t]=e},s.prototype.removeMethodGroup=function(t){delete this._methodGroups[t]},s.prototype.methodGroups=function(){var t={};for(var e in this._methodGroups)t[e]=this._methodGroups[e];return t},s.prototype.enableMethodGroup=function(t){var e=this;e._methodGroups[t].forEach((function(t){e.enableMethod(t)}))},s.prototype.disableMethodGroup=function(t){var e=this;e._methodGroups[t].forEach((function(t){e.disableMethod(t)}))},s.prototype.enabled=function(){return this._enabled},s.prototype.enable=function(){this._enabled||(this._enabled=!0,this._activeCount>0&&this.emit("active"),this.emit("enabled"),this._updateComposer())},s.prototype.disable=function(){this._enabled&&(this._enabled=!1,this._activeCount>0&&this.emit("inactive"),this.emit("disabled"),this._updateComposer())},s.prototype.attach=function(t){this._attachedRenderLoop&&this.detach(),this._attachedRenderLoop=t,this._beforeRenderHandler=this._updateViewsWithControls.bind(this),this._changeHandler=t.renderOnNextFrame.bind(t),this._attachedRenderLoop.addEventListener("beforeRender",this._beforeRenderHandler),this._composer.addEventListener("change",this._changeHandler)},s.prototype.detach=function(){this._attachedRenderLoop&&(this._attachedRenderLoop.removeEventListener("beforeRender",this._beforeRenderHandler),this._composer.removeEventListener("change",this._changeHandler),this._beforeRenderHandler=null,this._changeHandler=null,this._attachedRenderLoop=null)},s.prototype.attached=function(){return null!=this._attachedRenderLoop},s.prototype._listen=function(t){var e=this._methods[t];if(!e)throw new Error("Bad method id");e.instance.addEventListener("active",e.activeHandler),e.instance.addEventListener("inactive",e.inactiveHandler)},s.prototype._unlisten=function(t){var e=this._methods[t];if(!e)throw new Error("Bad method id");e.instance.removeEventListener("active",e.activeHandler),e.instance.removeEventListener("inactive",e.inactiveHandler)},s.prototype._handleActive=function(t){var e=this._methods[t];if(!e)throw new Error("Bad method id");if(!e.enabled)throw new Error("Should not receive event from disabled control method");e.active||(e.active=!0,this._incrementActiveCount())},s.prototype._handleInactive=function(t){var e=this._methods[t];if(!e)throw new Error("Bad method id");if(!e.enabled)throw new Error("Should not receive event from disabled control method");e.active&&(e.active=!1,this._decrementActiveCount())},s.prototype._incrementActiveCount=function(){this._activeCount++,a&&this._checkActiveCount(),this._enabled&&1===this._activeCount&&this.emit("active")},s.prototype._decrementActiveCount=function(){this._activeCount--,a&&this._checkActiveCount(),this._enabled&&0===this._activeCount&&this.emit("inactive")},s.prototype._checkActiveCount=function(){var t=0;for(var e in this._methods){var n=this._methods[e];n.enabled&&n.active&&t++}if(t!=this._activeCount)throw new Error("Bad control state")},s.prototype._updateComposer=function(){var t=this._composer;for(var e in this._methods){var n=this._methods[e],i=this._enabled&&n.enabled;i&&!t.has(n.instance)&&t.add(n.instance),!i&&t.has(n.instance)&&t.remove(n.instance)}},s.prototype._updateViewsWithControls=function(){var t=this._composer.offsets();t.changing&&this._attachedRenderLoop.renderOnNextFrame(),this.updatedViews_.length=0;for(var e=this._attachedRenderLoop.stage().listLayers(),n=0;n<e.length;n++){var i=e[n].view();this.updatedViews_.indexOf(i)<0&&(e[n].view().updateWithControlParameters(t.offsets),this.updatedViews_.push(i))}},t.exports=s},8585:(t,e,n)=>{"use strict";var i=n(8442),r=n(966),o=n(7510),a=n(5904),s=n(8176).maxFriction,l=n(6720),c={friction:6,maxFrictionTime:.3,hammerEvent:"pan"},u="undefined"!=typeof MARZIPANODEBUG&&MARZIPANODEBUG.controls;function d(t,e,n){if(this._element=t,this._opts=a(n||{},c),this._startEvent=null,this._lastEvent=null,this._active=!1,this._dynamics={x:new r,y:new r},this._hammer=o.get(t,e),this._hammer.on("hammer.input",this._handleHammerEvent.bind(this)),"pan"!=this._opts.hammerEvent&&"pinch"!=this._opts.hammerEvent)throw new Error(this._opts.hammerEvent+" is not a hammerEvent managed in DragControlMethod");this._hammer.on(this._opts.hammerEvent+"start",this._handleStart.bind(this)),this._hammer.on(this._opts.hammerEvent+"move",this._handleMove.bind(this)),this._hammer.on(this._opts.hammerEvent+"end",this._handleEnd.bind(this)),this._hammer.on(this._opts.hammerEvent+"cancel",this._handleEnd.bind(this))}i(d),d.prototype.destroy=function(){this._hammer.release(),l(this)},d.prototype._handleHammerEvent=function(t){if(t.isFirst){if(u&&this._active)throw new Error("DragControlMethod active detected when already active");this._active=!0,this.emit("active")}if(t.isFinal){if(u&&!this._active)throw new Error("DragControlMethod inactive detected when already inactive");this._active=!1,this.emit("inactive")}},d.prototype._handleStart=function(t){t.preventDefault(),this._startEvent=t},d.prototype._handleMove=function(t){t.preventDefault(),this._startEvent&&(this._updateDynamicsMove(t),this.emit("parameterDynamics","axisScaledX",this._dynamics.x),this.emit("parameterDynamics","axisScaledY",this._dynamics.y))},d.prototype._handleEnd=function(t){t.preventDefault(),this._startEvent&&(this._updateDynamicsRelease(t),this.emit("parameterDynamics","axisScaledX",this._dynamics.x),this.emit("parameterDynamics","axisScaledY",this._dynamics.y)),this._startEvent=!1,this._lastEvent=!1},d.prototype._updateDynamicsMove=function(t){var e=t.deltaX,n=t.deltaY,i=this._lastEvent||this._startEvent;i&&(e-=i.deltaX,n-=i.deltaY);var r=this._element.getBoundingClientRect();e/=r.right-r.left,n/=r.bottom-r.top,this._dynamics.x.reset(),this._dynamics.y.reset(),this._dynamics.x.offset=-e,this._dynamics.y.offset=-n,this._lastEvent=t};var h=[null,null];d.prototype._updateDynamicsRelease=function(t){var e=this._element.getBoundingClientRect(),n=e.right-e.left,i=e.bottom-e.top,r=1e3*t.velocityX/n,o=1e3*t.velocityY/i;this._dynamics.x.reset(),this._dynamics.y.reset(),this._dynamics.x.velocity=r,this._dynamics.y.velocity=o,s(this._opts.friction,this._dynamics.x.velocity,this._dynamics.y.velocity,this._opts.maxFrictionTime,h),this._dynamics.x.friction=h[0],this._dynamics.y.friction=h[1]},t.exports=d},966:t=>{"use strict";function e(){this.velocity=null,this.friction=null,this.offset=null}e.equals=function(t,e){return t.velocity===e.velocity&&t.friction===e.friction&&t.offset===e.offset},e.prototype.equals=function(t){return e.equals(this,t)},e.prototype.update=function(t,e){t.offset&&(this.offset=this.offset||0,this.offset+=t.offset);var n=this.offsetFromVelocity(e);n&&(this.offset=this.offset||0,this.offset+=n),this.velocity=t.velocity,this.friction=t.friction},e.prototype.reset=function(){this.velocity=null,this.friction=null,this.offset=null},e.prototype.velocityAfter=function(t){return this.velocity?this.friction?function(t,e){if(t<0)return Math.min(0,t+e);if(t>0)return Math.max(0,t-e);return 0}(this.velocity,this.friction*t):this.velocity:null},e.prototype.offsetFromVelocity=function(t){t=Math.min(t,this.nullVelocityTime());var e=this.velocityAfter(t);return(this.velocity+e)/2*t},e.prototype.nullVelocityTime=function(){return null==this.velocity?0:this.velocity&&!this.friction?1/0:Math.abs(this.velocity/this.friction)},t.exports=e},3303:(t,e,n)=>{"use strict";var i=n(8442),r=n(966),o=n(6720);function a(t,e,n,i){if(!t)throw new Error("ElementPressControlMethod: element must be defined");if(!e)throw new Error("ElementPressControlMethod: parameter must be defined");if(!n)throw new Error("ElementPressControlMethod: velocity must be defined");if(!i)throw new Error("ElementPressControlMethod: friction must be defined");this._element=t,this._pressHandler=this._handlePress.bind(this),this._releaseHandler=this._handleRelease.bind(this),t.addEventListener("mousedown",this._pressHandler),t.addEventListener("mouseup",this._releaseHandler),t.addEventListener("mouseleave",this._releaseHandler),t.addEventListener("touchstart",this._pressHandler),t.addEventListener("touchmove",this._releaseHandler),t.addEventListener("touchend",this._releaseHandler),this._parameter=e,this._velocity=n,this._friction=i,this._dynamics=new r,this._pressing=!1}i(a),a.prototype.destroy=function(){this._element.removeEventListener("mousedown",this._pressHandler),this._element.removeEventListener("mouseup",this._releaseHandler),this._element.removeEventListener("mouseleave",this._releaseHandler),this._element.removeEventListener("touchstart",this._pressHandler),this._element.removeEventListener("touchmove",this._releaseHandler),this._element.removeEventListener("touchend",this._releaseHandler),o(this)},a.prototype._handlePress=function(){this._pressing=!0,this._dynamics.velocity=this._velocity,this._dynamics.friction=0,this.emit("parameterDynamics",this._parameter,this._dynamics),this.emit("active")},a.prototype._handleRelease=function(){this._pressing&&(this._dynamics.friction=this._friction,this.emit("parameterDynamics",this._parameter,this._dynamics),this.emit("inactive")),this._pressing=!1},t.exports=a},7510:(t,e,n)=>{"use strict";var i=n(7168),r=1,o="MarzipanoHammerElementId";function a(t,e){return t[o]||(t[o]=r++),e+t[o]}function s(){this._managers={},this._refCount={}}function l(t,e,n,i){this._manager=e,this._element=n,this._type=i,this._hammerGestures=t,this._eventHandlers=[]}s.prototype.get=function(t,e){var n=a(t,e);return this._managers[n]||(this._managers[n]=this._createManager(t,e),this._refCount[n]=0),this._refCount[n]++,new l(this,this._managers[n],t,e)},s.prototype._createManager=function(t,e){var n=new i.Manager(t);return"mouse"===e?n.add(new i.Pan({direction:i.DIRECTION_ALL,threshold:0})):"touch"!==e&&"pen"!==e&&"kinect"!==e||(n.add(new i.Pan({direction:i.DIRECTION_ALL,threshold:20,pointers:1})),n.add(new i.Pinch)),n},s.prototype._releaseHandle=function(t,e){var n=a(t,e);this._refCount[n]&&(this._refCount[n]--,this._refCount[n]||(this._managers[n].destroy(),delete this._managers[n],delete this._refCount[n]))},l.prototype.on=function(t,e){var n=this._type,i=function(t){n===t.pointerType&&e(t)};this._eventHandlers.push({events:t,handler:i}),this._manager.on(t,i)},l.prototype.release=function(){for(var t=0;t<this._eventHandlers.length;t++){var e=this._eventHandlers[t];this._manager.off(e.events,e.handler)}this._hammerGestures._releaseHandle(this._element,this._type),this._manager=null,this._element=null,this._type=null,this._hammerGestures=null},l.prototype.manager=function(){return this._manager},t.exports=new s},2633:(t,e,n)=>{"use strict";var i=n(8442),r=n(966),o=n(6720);function a(t,e,n,i,o){if(!t)throw new Error("KeyControlMethod: keyCode must be defined");if(!e)throw new Error("KeyControlMethod: parameter must be defined");if(!n)throw new Error("KeyControlMethod: velocity must be defined");if(!i)throw new Error("KeyControlMethod: friction must be defined");o=o||document,this._keyCode=t,this._parameter=e,this._velocity=n,this._friction=i,this._element=o,this._keydownHandler=this._handlePress.bind(this),this._keyupHandler=this._handleRelease.bind(this),this._blurHandler=this._handleBlur.bind(this),this._element.addEventListener("keydown",this._keydownHandler),this._element.addEventListener("keyup",this._keyupHandler),window.addEventListener("blur",this._blurHandler),this._dynamics=new r,this._pressing=!1}i(a),a.prototype.destroy=function(){this._element.removeEventListener("keydown",this._keydownHandler),this._element.removeEventListener("keyup",this._keyupHandler),window.removeEventListener("blur",this._blurHandler),o(this)},a.prototype._handlePress=function(t){t.keyCode===this._keyCode&&(this._pressing=!0,this._dynamics.velocity=this._velocity,this._dynamics.friction=0,this.emit("parameterDynamics",this._parameter,this._dynamics),this.emit("active"))},a.prototype._handleRelease=function(t){t.keyCode===this._keyCode&&(this._pressing&&(this._dynamics.friction=this._friction,this.emit("parameterDynamics",this._parameter,this._dynamics),this.emit("inactive")),this._pressing=!1)},a.prototype._handleBlur=function(){this._dynamics.velocity=0,this.emit("parameterDynamics",this._parameter,this._dynamics),this.emit("inactive"),this._pressing=!1},t.exports=a},2789:(t,e,n)=>{"use strict";var i=n(8442),r=n(966),o=n(7510),a=n(6720);function s(t,e,n){this._hammer=o.get(t,e),this._lastEvent=null,this._active=!1,this._dynamics=new r,this._hammer.on("pinchstart",this._handleStart.bind(this)),this._hammer.on("pinch",this._handleEvent.bind(this)),this._hammer.on("pinchend",this._handleEnd.bind(this)),this._hammer.on("pinchcancel",this._handleEnd.bind(this))}i(s),s.prototype.destroy=function(){this._hammer.release(),a(this)},s.prototype._handleStart=function(){this._active||(this._active=!0,this.emit("active"))},s.prototype._handleEnd=function(){this._lastEvent=null,this._active&&(this._active=!1,this.emit("inactive"))},s.prototype._handleEvent=function(t){var e=t.scale;this._lastEvent&&(e/=this._lastEvent.scale),this._dynamics.offset=-1*(e-1),this.emit("parameterDynamics","zoom",this._dynamics),this._lastEvent=t},t.exports=s},8765:(t,e,n)=>{"use strict";var i=n(8442),r=n(966),o=n(7510),a=n(5904),s=n(8176).maxFriction,l=n(6720),c={speed:8,friction:6,maxFrictionTime:.3};function u(t,e,n){this._element=t,this._opts=a(n||{},c),this._active=!1,this._hammer=o.get(t,e),this._dynamics={x:new r,y:new r},this._hammer.on("panstart",this._handleStart.bind(this)),this._hammer.on("panmove",this._handleMove.bind(this)),this._hammer.on("panend",this._handleRelease.bind(this)),this._hammer.on("pancancel",this._handleRelease.bind(this))}i(u),u.prototype.destroy=function(){this._hammer.release(),l(this)},u.prototype._handleStart=function(t){t.preventDefault(),this._active||(this._active=!0,this.emit("active"))},u.prototype._handleMove=function(t){t.preventDefault(),this._updateDynamics(t,!1)},u.prototype._handleRelease=function(t){t.preventDefault(),this._updateDynamics(t,!0),this._active&&(this._active=!1,this.emit("inactive"))};var d=[null,null];u.prototype._updateDynamics=function(t,e){var n=this._element.getBoundingClientRect(),i=n.right-n.left,r=n.bottom-n.top,o=Math.max(i,r),a=t.deltaX/o*this._opts.speed,l=t.deltaY/o*this._opts.speed;this._dynamics.x.reset(),this._dynamics.y.reset(),this._dynamics.x.velocity=a,this._dynamics.y.velocity=l,e&&(s(this._opts.friction,this._dynamics.x.velocity,this._dynamics.y.velocity,this._opts.maxFrictionTime,d),this._dynamics.x.friction=d[0],this._dynamics.y.friction=d[1]),this.emit("parameterDynamics","x",this._dynamics.x),this.emit("parameterDynamics","y",this._dynamics.y)},t.exports=u},374:(t,e,n)=>{"use strict";var i=n(8442),r=n(966),o=n(5904),a=n(6720),s={frictionTime:.2,zoomDelta:.001};function l(t,e){this._element=t,this._opts=o(e||{},s),this._dynamics=new r,this._eventList=[];var n=this._opts.frictionTime?this.withSmoothing:this.withoutSmoothing;this._wheelListener=n.bind(this),t.addEventListener("wheel",this._wheelListener)}function c(t){var e=1==t.deltaMode?20:1;return t.deltaY*e}i(l),l.prototype.destroy=function(){this._element.removeEventListener("wheel",this._wheelListener),a(this)},l.prototype.withoutSmoothing=function(t){this._dynamics.offset=c(t)*this._opts.zoomDelta,this.emit("parameterDynamics","zoom",this._dynamics),t.preventDefault(),this.emit("active"),this.emit("inactive")},l.prototype.withSmoothing=function(t){var e=t.timeStamp;for(this._eventList.push(t);this._eventList[0].timeStamp<e-1e3*this._opts.frictionTime;)this._eventList.shift(0);for(var n=0,i=0;i<this._eventList.length;i++){n+=c(this._eventList[i])*this._opts.zoomDelta/this._opts.frictionTime}this._dynamics.velocity=n,this._dynamics.friction=Math.abs(n)/this._opts.frictionTime,this.emit("parameterDynamics","zoom",this._dynamics),t.preventDefault(),this.emit("active"),this.emit("inactive")},t.exports=l},3751:(t,e,n)=>{"use strict";var i=n(8442),r=n(966),o=n(6720);function a(t){if(!t)throw new Error("VelocityControlMethod: parameter must be defined");this._parameter=t,this._dynamics=new r}i(a),a.prototype.destroy=function(){o(this)},a.prototype.setVelocity=function(t){this._dynamics.velocity=t,this.emit("parameterDynamics",this._parameter,this._dynamics)},a.prototype.setFriction=function(t){this._dynamics.friction=t,this.emit("parameterDynamics",this._parameter,this._dynamics)},t.exports=a},2890:(t,e,n)=>{"use strict";var i=n(5904),r=n(8585),o=n(8765),a=n(374),s=n(2789),l=n(2633),c={mouseViewMode:"drag",dragMode:"pan"};t.exports=function(t,e,n){n=i(n||{},c);var u={mouseViewDrag:new r(e,"mouse"),mouseViewQtvr:new o(e,"mouse"),leftArrowKey:new l(37,"x",-.7,3),rightArrowKey:new l(39,"x",.7,3),upArrowKey:new l(38,"y",-.7,3),downArrowKey:new l(40,"y",.7,3),plusKey:new l(107,"zoom",-.7,3),minusKey:new l(109,"zoom",.7,3),wKey:new l(87,"y",-.7,3),aKey:new l(65,"x",-.7,3),sKey:new l(83,"y",.7,3),dKey:new l(68,"x",.7,3),qKey:new l(81,"roll",.7,3),eKey:new l(69,"roll",-.7,3)},d=["scrollZoom","touchView","pinch"];!1!==n.scrollZoom&&(u.scrollZoom=new a(e));var h={arrowKeys:["leftArrowKey","rightArrowKey","upArrowKey","downArrowKey"],plusMinusKeys:["plusKey","minusKey"],wasdKeys:["wKey","aKey","sKey","dKey"],qeKeys:["qKey","eKey"]};switch(n.dragMode){case"pinch":u.pinch=new r(e,"touch",{hammerEvent:"pinch"});break;case"pan":u.touchView=new r(e,"touch"),u.pinch=new s(e,"touch");break;default:throw new Error("Unknown drag mode: "+n.dragMode)}switch(n.mouseViewMode){case"drag":d.push("mouseViewDrag");break;case"qtvr":d.push("mouseViewQtvr");break;default:throw new Error("Unknown mouse view mode: "+n.mouseViewMode)}for(var p in u){var f=u[p];t.registerMethod(p,f),d.indexOf(p)>=0&&t.enableMethod(p)}for(var m in h){var v=h[m];t.addMethodGroup(m,v)}return u}},8176:t=>{"use strict";function e(t,e,n,i){var r=Math.atan(e/t);i[0]=n*Math.cos(r),i[1]=n*Math.sin(r)}t.exports={maxFriction:function(t,n,i,r,o){var a=Math.sqrt(Math.pow(n,2)+Math.pow(i,2));e(n,i,t=Math.max(t,a/r),o),o[0]=Math.abs(o[0]),o[1]=Math.abs(o[1])},changeVectorNorm:e}},3139:(t,e,n)=>{"use strict";var i=n(1086),r=n(9942),o=n(5660),a=n(88),s=n(7442),l=n(8063).makeLevelList,c=n(8063).makeSelectableLevelList,u=n(1663),d=n(9008),h=n(7738),p=n(5382).vec3,f=n(5382).vec4,m="fudlrb",v={f:{x:0,y:0},b:{x:0,y:Math.PI},l:{x:0,y:Math.PI/2},r:{x:0,y:-Math.PI/2},u:{x:Math.PI/2,y:0},d:{x:-Math.PI/2,y:0}},g=p.create();function b(t,e,n,i){e&&p.rotateZ(t,t,g,e),n&&p.rotateX(t,t,g,n),i&&p.rotateY(t,t,g,i)}for(var y={},_=0;_<6;_++){var w=m[_],x=v[w],C=p.fromValues(0,0,-1);b(C,0,x.x,x.y),y[w]=C}var S={f:["l","r","u","d"],b:["r","l","u","d"],l:["b","f","u","d"],r:["f","b","u","d"],u:["l","r","b","f"],d:["l","r","f","b"]},E=[[0,1],[1,0],[0,-1],[-1,0]];function T(t,e,n,i,r){this.face=t,this.x=e,this.y=n,this.z=i,this._geometry=r,this._level=r.levelList[i]}function O(t){if(this.constructor.super_.call(this,t),this._size=t.size,this._tileSize=t.tileSize,this._size%this._tileSize!=0)throw new Error("Level size is not multiple of tile size: "+this._size+" "+this._tileSize)}function k(t){if("array"!==h(t))throw new Error("Level list must be an array");this.levelList=l(t,O),this.selectableLevelList=c(this.levelList);for(var e=1;e<this.levelList.length;e++)this.levelList[e]._validateWithParentLevel(this.levelList[e-1]);this._tileSearcher=new o(this),this._neighborsCache=new a(64),this._vec=f.create(),this._viewSize={}}T.prototype.rotX=function(){return v[this.face].x},T.prototype.rotY=function(){return v[this.face].y},T.prototype.centerX=function(){return(this.x+.5)/this._level.numHorizontalTiles()-.5},T.prototype.centerY=function(){return.5-(this.y+.5)/this._level.numVerticalTiles()},T.prototype.scaleX=function(){return 1/this._level.numHorizontalTiles()},T.prototype.scaleY=function(){return 1/this._level.numVerticalTiles()},T.prototype.vertices=function(t){t||(t=[p.create(),p.create(),p.create(),p.create()]);var e=v[this.face];function n(t,n,i){p.set(t,n,i,-.5),b(t,0,e.x,e.y)}var i=this.centerX()-this.scaleX()/2,r=this.centerX()+this.scaleX()/2,o=this.centerY()-this.scaleY()/2,a=this.centerY()+this.scaleY()/2;return n(t[0],i,a),n(t[1],r,a),n(t[2],r,o),n(t[3],i,o),t},T.prototype.parent=function(){if(0===this.z)return null;var t=this.face,e=this.z,n=this.x,i=this.y,r=this._geometry,o=r.levelList[e],a=r.levelList[e-1];return new T(t,Math.floor(n/o.numHorizontalTiles()*a.numHorizontalTiles()),Math.floor(i/o.numVerticalTiles()*a.numVerticalTiles()),e-1,r)},T.prototype.children=function(t){if(this.z===this._geometry.levelList.length-1)return null;var e=this.face,n=this.z,i=this.x,r=this.y,o=this._geometry,a=o.levelList[n],s=o.levelList[n+1],l=s.numHorizontalTiles()/a.numHorizontalTiles(),c=s.numVerticalTiles()/a.numVerticalTiles();t=t||[];for(var u=0;u<l;u++)for(var d=0;d<c;d++){var h=l*i+u,p=c*r+d,f=n+1;t.push(new T(e,h,p,f,o))}return t},T.prototype.neighbors=function(){var t=this._geometry,e=t._neighborsCache,n=e.get(this);if(n)return n;for(var i=t._vec,r=this.face,o=this.x,a=this.y,s=this.z,l=this._level,c=l.numHorizontalTiles(),d=l.numVerticalTiles(),h=[],f=0;f<E.length;f++){var m=o+E[f][0],g=a+E[f][1],y=s,_=r;if(m<0||m>=c||g<0||g>=d){var w,x=this.centerX(),C=this.centerY();m<0?(p.set(i,-.5,C,-.5),_=S[r][0]):m>=c?(p.set(i,.5,C,-.5),_=S[r][1]):g<0?(p.set(i,x,.5,-.5),_=S[r][2]):g>=d&&(p.set(i,x,-.5,-.5),_=S[r][3]),b(i,0,(w=v[r]).x,w.y),b(i,0,-(w=v[_]).x,-w.y),m=u(Math.floor((.5+i[0])*c),0,c-1),g=u(Math.floor((.5-i[1])*d),0,d-1)}h.push(new T(_,m,g,y,t))}return e.set(this,h),h},T.prototype.hash=function(){return r(m.indexOf(this.face),this.z,this.y,this.x)},T.prototype.equals=function(t){return this._geometry===t._geometry&&this.face===t.face&&this.z===t.z&&this.y===t.y&&this.x===t.x},T.prototype.cmp=function(t){return d(this.z,t.z)||d(m.indexOf(this.face),m.indexOf(t.face))||d(this.y,t.y)||d(this.x,t.x)},T.prototype.str=function(){return"CubeTile("+tile.face+", "+tile.x+", "+tile.y+", "+tile.z+")"},i(O,s),O.prototype.width=function(){return this._size},O.prototype.height=function(){return this._size},O.prototype.tileWidth=function(){return this._tileSize},O.prototype.tileHeight=function(){return this._tileSize},O.prototype._validateWithParentLevel=function(t){var e=this.width(),n=this.height(),i=this.tileWidth(),r=this.tileHeight(),o=this.numHorizontalTiles(),a=this.numVerticalTiles(),s=t.width(),l=t.height(),c=t.tileWidth(),u=t.tileHeight(),d=t.numHorizontalTiles(),h=t.numVerticalTiles();if(e%s!=0)throw new Error("Level width must be multiple of parent level: "+e+" vs. "+s);if(n%l!=0)throw new Error("Level height must be multiple of parent level: "+n+" vs. "+l);if(o%d!=0)throw new Error("Number of horizontal tiles must be multiple of parent level: "+o+" ("+e+"/"+i+") vs. "+d+" ("+s+"/"+c+")");if(a%h!=0)throw new Error("Number of vertical tiles must be multiple of parent level: "+a+" ("+n+"/"+r+") vs. "+h+" ("+l+"/"+u+")")},k.prototype.maxTileSize=function(){for(var t=0,e=0;e<this.levelList.length;e++){var n=this.levelList[e];t=Math.max(t,n.tileWidth,n.tileHeight)}return t},k.prototype.levelTiles=function(t,e){var n=this.levelList.indexOf(t),i=t.numHorizontalTiles()-1,r=t.numVerticalTiles()-1;e=e||[];for(var o=0;o<6;o++)for(var a=m[o],s=0;s<=i;s++)for(var l=0;l<=r;l++)e.push(new T(a,s,l,n,this));return e},k.prototype._closestTile=function(t,e){var n=this._vec;f.set(n,0,0,1,1),f.transformMat4(n,n,t.inverseProjection());var i=1/0,r=null;for(var o in y){var a=y[o],s=1-p.dot(a,n);s<i&&(i=s,r=o)}for(var l=Math.max(Math.abs(n[0]),Math.abs(n[1]),Math.abs(n[2]))/.5,c=0;c<3;c++)n[c]=n[c]/l;var d=v[r];b(n,0,-d.x,-d.y);var h=this.levelList.indexOf(e),m=e.numHorizontalTiles(),g=e.numVerticalTiles();return new T(r,u(Math.floor((.5+n[0])*m),0,m-1),u(Math.floor((.5-n[1])*g),0,g-1),h,this)},k.prototype.visibleTiles=function(t,e,n){var i=this._viewSize,r=this._tileSearcher;if(n=n||[],t.size(i),0===i.width||0===i.height)return n;var o=this._closestTile(t,e);if(!r.search(t,o,n))throw new Error("Starting tile is not visible");return n},k.Tile=k.prototype.Tile=T,k.type=k.prototype.type="cube",T.type=T.prototype.type="cube",t.exports=k},751:(t,e,n)=>{"use strict";var i=n(1086),r=n(9942),o=n(9008),a=n(8063),s=n(7442),l=n(7738);function c(t,e){this.z=t,this._geometry=e,this._level=e.levelList[t]}function u(t){this.constructor.super_.call(this,t),this._width=t.width}function d(t){if("array"!==l(t))throw new Error("Level list must be an array");this.levelList=a.makeLevelList(t,u),this.selectableLevelList=a.makeSelectableLevelList(this.levelList)}c.prototype.rotX=function(){return 0},c.prototype.rotY=function(){return 0},c.prototype.centerX=function(){return.5},c.prototype.centerY=function(){return.5},c.prototype.scaleX=function(){return 1},c.prototype.scaleY=function(){return 1},c.prototype.parent=function(){return 0===this.z?null:new c(this.z-1,this._geometry)},c.prototype.children=function(t){return this.z===this._geometry.levelList.length-1?null:((t=t||[]).push(new c(this.z+1,this._geometry)),t)},c.prototype.neighbors=function(){return[]},c.prototype.hash=function(){return r(this.z)},c.prototype.equals=function(t){return this._geometry===t._geometry&&this.z===t.z},c.prototype.cmp=function(t){return o(this.z,t.z)},c.prototype.str=function(){return"EquirectTile("+tile.z+")"},i(u,s),u.prototype.width=function(){return this._width},u.prototype.height=function(){return this._width/2},u.prototype.tileWidth=function(){return this._width},u.prototype.tileHeight=function(){return this._width/2},d.prototype.maxTileSize=function(){for(var t=0,e=0;e<this.levelList.length;e++){var n=this.levelList[e];t=Math.max(t,n.tileWidth,n.tileHeight)}return t},d.prototype.levelTiles=function(t,e){var n=this.levelList.indexOf(t);return(e=e||[]).push(new c(n,this)),e},d.prototype.visibleTiles=function(t,e,n){var i=new c(this.levelList.indexOf(e),this);(n=n||[]).length=0,n.push(i)},d.Tile=d.prototype.Tile=c,d.type=d.prototype.type="equirect",c.type=c.prototype.type="equirect",t.exports=d},6433:(t,e,n)=>{"use strict";var i=n(1086),r=n(9942),o=n(5660),a=n(88),s=n(7442),l=n(8063).makeLevelList,c=n(8063).makeSelectableLevelList,u=n(1663),d=n(3572),h=n(9008),p=n(7738),f=n(5382).vec2,m=n(5382).vec4,v=[[0,1],[1,0],[0,-1],[-1,0]];function g(t,e,n,i){this.x=t,this.y=e,this.z=n,this._geometry=i,this._level=i.levelList[n]}function b(t){this.constructor.super_.call(this,t),this._width=t.width,this._height=t.height,this._tileWidth=t.tileWidth,this._tileHeight=t.tileHeight}function y(t){if("array"!==p(t))throw new Error("Level list must be an array");this.levelList=l(t,b),this.selectableLevelList=c(this.levelList);for(var e=1;e<this.levelList.length;e++)this.levelList[e]._validateWithParentLevel(this.levelList[e-1]);this._tileSearcher=new o(this),this._neighborsCache=new a(64),this._vec=m.create(),this._viewSize={}}g.prototype.rotX=function(){return 0},g.prototype.rotY=function(){return 0},g.prototype.centerX=function(){var t=this._level.width(),e=this._level.tileWidth();return(this.x*e+.5*this.width())/t-.5},g.prototype.centerY=function(){var t=this._level.height(),e=this._level.tileHeight();return.5-(this.y*e+.5*this.height())/t},g.prototype.scaleX=function(){var t=this._level.width();return this.width()/t},g.prototype.scaleY=function(){var t=this._level.height();return this.height()/t},g.prototype.width=function(){var t=this._level.width(),e=this._level.tileWidth();return this.x===this._level.numHorizontalTiles()-1&&d(t,e)||e},g.prototype.height=function(){var t=this._level.height(),e=this._level.tileHeight();return this.y===this._level.numVerticalTiles()-1&&d(t,e)||e},g.prototype.levelWidth=function(){return this._level.width()},g.prototype.levelHeight=function(){return this._level.height()},g.prototype.vertices=function(t){t||(t=[f.create(),f.create(),f.create(),f.create()]);var e=this.centerX()-this.scaleX()/2,n=this.centerX()+this.scaleX()/2,i=this.centerY()-this.scaleY()/2,r=this.centerY()+this.scaleY()/2;return f.set(t[0],e,r),f.set(t[1],n,r),f.set(t[2],n,i),f.set(t[3],e,i),t},g.prototype.parent=function(){if(0===this.z)return null;var t=this._geometry,e=this.z-1;return new g(Math.floor(this.x/2),Math.floor(this.y/2),e,t)},g.prototype.children=function(t){if(this.z===this._geometry.levelList.length-1)return null;var e=this._geometry,n=this.z+1;return(t=t||[]).push(new g(2*this.x,2*this.y,n,e)),t.push(new g(2*this.x,2*this.y+1,n,e)),t.push(new g(2*this.x+1,2*this.y,n,e)),t.push(new g(2*this.x+1,2*this.y+1,n,e)),t},g.prototype.neighbors=function(){var t=this._geometry,e=t._neighborsCache,n=e.get(this);if(n)return n;for(var i=this.x,r=this.y,o=this.z,a=this._level,s=a.numHorizontalTiles()-1,l=a.numVerticalTiles()-1,c=[],u=0;u<v.length;u++){var d=i+v[u][0],h=r+v[u][1],p=o;0<=d&&d<=s&&0<=h&&h<=l&&c.push(new g(d,h,p,t))}return e.set(this,c),c},g.prototype.hash=function(){return r(this.z,this.y,this.x)},g.prototype.equals=function(t){return this._geometry===t._geometry&&this.z===t.z&&this.y===t.y&&this.x===t.x},g.prototype.cmp=function(t){return h(this.z,t.z)||h(this.y,t.y)||h(this.x,t.x)},g.prototype.str=function(){return"FlatTile("+tile.x+", "+tile.y+", "+tile.z+")"},i(b,s),b.prototype.width=function(){return this._width},b.prototype.height=function(){return this._height},b.prototype.tileWidth=function(){return this._tileWidth},b.prototype.tileHeight=function(){return this._tileHeight},b.prototype._validateWithParentLevel=function(t){var e=this.width(),n=this.height(),i=this.tileWidth(),r=this.tileHeight(),o=t.width(),a=t.height(),s=t.tileWidth(),l=t.tileHeight();return e%o!=0?new Error("Level width must be multiple of parent level: "+e+" vs. "+o):n%a!=0?new Error("Level height must be multiple of parent level: "+n+" vs. "+a):i%s!=0?new Error("Level tile width must be multiple of parent level: "+i+" vs. "+s):r%l!=0?new Error("Level tile height must be multiple of parent level: "+r+" vs. "+l):void 0},y.prototype.maxTileSize=function(){for(var t=0,e=0;e<this.levelList.length;e++){var n=this.levelList[e];t=Math.max(t,n.tileWidth,n.tileHeight)}return t},y.prototype.levelTiles=function(t,e){var n=this.levelList.indexOf(t),i=t.numHorizontalTiles()-1,r=t.numVerticalTiles()-1;e||(e=[]);for(var o=0;o<=i;o++)for(var a=0;a<=r;a++)e.push(new g(o,a,n,this));return e},y.prototype._closestTile=function(t,e){var n=this._vec;m.set(n,0,0,1,1),m.transformMat4(n,n,t.inverseProjection());var i=.5+n[0],r=.5-n[1],o=this.levelList.indexOf(e),a=e.width(),s=e.height(),l=e.tileWidth(),c=e.tileHeight(),d=e.numHorizontalTiles(),h=e.numVerticalTiles();return new g(u(Math.floor(i*a/l),0,d-1),u(Math.floor(r*s/c),0,h-1),o,this)},y.prototype.visibleTiles=function(t,e,n){var i=this._viewSize,r=this._tileSearcher;if(n=n||[],t.size(i),0===i.width||0===i.height)return n;var o=this._closestTile(t,e);if(!r.search(t,o,n))throw new Error("Starting tile is not visible");return n},y.Tile=y.prototype.Tile=g,y.type=y.prototype.type="flat",g.type=g.prototype.type="flat",t.exports=y},7442:t=>{"use strict";function e(t){this._fallbackOnly=!!t.fallbackOnly}e.prototype.numHorizontalTiles=function(){return Math.ceil(this.width()/this.tileWidth())},e.prototype.numVerticalTiles=function(){return Math.ceil(this.height()/this.tileHeight())},e.prototype.fallbackOnly=function(){return this._fallbackOnly},t.exports=e},8063:(t,e,n)=>{"use strict";var i=n(9008);t.exports={makeLevelList:function(t,e){for(var n=[],r=0;r<t.length;r++)n.push(new e(t[r]));return n.sort((function(t,e){return i(t.width(),e.width())})),n},makeSelectableLevelList:function(t){for(var e=[],n=0;n<t.length;n++)t[n]._fallbackOnly||e.push(t[n]);if(!e.length)throw new Error("No selectable levels in list");return e}}},3419:(t,e,n)=>{"use strict";t.exports={WebGlStage:n(798),WebGlCubeRenderer:n(9064),WebGlFlatRenderer:n(498),WebGlEquirectRenderer:n(6167),registerDefaultRenderers:n(6512),CubeGeometry:n(3139),FlatGeometry:n(6433),EquirectGeometry:n(751),RectilinearView:n(3158),FlatView:n(2755),ImageUrlSource:n(1366),SingleAssetSource:n(6770),StaticAsset:n(5799),DynamicAsset:n(3700),TextureStore:n(3427),Layer:n(7190),RenderLoop:n(8294),KeyControlMethod:n(2633),DragControlMethod:n(8585),QtvrControlMethod:n(8765),ScrollZoomControlMethod:n(374),PinchZoomControlMethod:n(2789),VelocityControlMethod:n(3751),ElementPressControlMethod:n(3303),Controls:n(9842),Dynamics:n(966),Viewer:n(8101),Scene:n(5759),Hotspot:n(7056),HotspotContainer:n(8289),colorEffects:n(2400),registerDefaultControls:n(2890),autorotate:n(6347),util:{async:n(9400),cancelize:n(4020),chain:n(7869),clamp:n(1663),clearOwnProperties:n(6720),cmp:n(9008),compose:n(8052),convertFov:n(7436),decimal:n(7215),defaults:n(5904),defer:n(7164),degToRad:n(9770),delay:n(7715),dom:n(4332),extend:n(558),hash:n(9942),inherits:n(1086),mod:n(3572),noop:n(2058),now:n(2288),once:n(7783),pixelRatio:n(7601),radToDeg:n(6156),real:n(7082),retry:n(7758),tween:n(2399),type:n(7738)},dependencies:{bowser:n(6122),glMatrix:n(5382),eventEmitter:n(8442),hammerjs:n(7168)}}},9878:(t,e,n)=>{"use strict";var i=n(5799),r=n(5103),o=n(6122),a=n(4597),s=n(7783),l=!!a.createImageBitmap&&!o.firefox,c={imageOrientation:"flipY",premultiplyAlpha:"premultiply"};function u(t){this._stage=t}u.prototype.loadImage=function(t,e,n){var i=this,r=new Image;r.crossOrigin="anonymous";var o=e&&e.x||0,a=e&&e.y||0,l=e&&e.width||1,c=e&&e.height||1;return n=s(n),r.onload=function(){i._handleLoad(r,o,a,l,c,n)},r.onerror=function(){i._handleError(t,n)},r.src=t,function(){r.onload=r.onerror=null,r.src="",n.apply(null,arguments)}},u.prototype._handleLoad=function(t,e,n,r,o,s){if(0!==e||0!==n||1!==r||1!==o)if(e*=t.naturalWidth,n*=t.naturalHeight,r*=t.naturalWidth,o*=t.naturalHeight,l)a.createImageBitmap(t,e,n,r,o,c).then((function(t){s(null,new i(t))}));else{var u=document.createElement("canvas");u.width=r,u.height=o,u.getContext("2d").drawImage(t,e,n,r,o,0,0,r,o),s(null,new i(u))}else s(null,new i(t))},u.prototype._handleError=function(t,e){e(new r("Network error: "+t))},t.exports=u},6904:(t,e,n)=>{"use strict";var i=n(5382).mat4,r=n(5382).vec3,o=n(6720),a=n(3836),s=a.createConstantBuffers,l=a.destroyConstantBuffers,c=a.createShaderProgram,u=a.destroyShaderProgram,d=a.enableAttributes,h=a.disableAttributes,p=a.setViewport,f=a.setupPixelEffectUniforms,m=a.setDepth,v=a.setTexture,g=n(8477),b=n(9483),y=[0,1,2,0,2,3],_=[-.5,-.5,0,.5,-.5,0,.5,.5,0,-.5,.5,0],w=[0,0,1,0,1,1,0,1],x=["aVertexPosition","aTextureCoord"],C=["uDepth","uOpacity","uSampler","uProjMatrix","uViewportMatrix","uColorOffset","uColorMatrix"];function S(t){this.gl=t,this.projMatrix=i.create(),this.viewportMatrix=i.create(),this.translateVector=r.create(),this.scaleVector=r.create(),this.constantBuffers=s(t,y,_,w),this.shaderProgram=c(t,g,b,x,C)}S.prototype.destroy=function(){l(this.gl,this.constantBuffers),u(this.gl,this.shaderProgram),o(this)},S.prototype.startLayer=function(t,e){var n=this.gl,i=this.shaderProgram,r=this.constantBuffers,o=this.viewportMatrix;n.useProgram(i),d(n,i),p(n,t,e,o),n.uniformMatrix4fv(i.uViewportMatrix,!1,o),n.bindBuffer(n.ARRAY_BUFFER,r.vertexPositions),n.vertexAttribPointer(i.aVertexPosition,3,n.FLOAT,n.FALSE,0,0),n.bindBuffer(n.ARRAY_BUFFER,r.textureCoords),n.vertexAttribPointer(i.aTextureCoord,2,n.FLOAT,n.FALSE,0,0),f(n,t.effects(),{opacity:i.uOpacity,colorOffset:i.uColorOffset,colorMatrix:i.uColorMatrix})},S.prototype.endLayer=function(t,e){var n=this.gl,i=this.shaderProgram;h(n,i)},S.prototype.renderTile=function(t,e,n,r){var o=this.gl,a=this.shaderProgram,s=this.constantBuffers,l=this.projMatrix,c=this.translateVector,u=this.scaleVector;c[0]=t.centerX(),c[1]=t.centerY(),c[2]=-.5,u[0]=t.scaleX(),u[1]=t.scaleY(),u[2]=1,i.copy(l,n.view().projection()),i.rotateX(l,l,t.rotX()),i.rotateY(l,l,t.rotY()),i.translate(l,l,c),i.scale(l,l,u),o.uniformMatrix4fv(a.uProjMatrix,!1,l),m(o,a,r,t.z),v(o,a,e),o.bindBuffer(o.ELEMENT_ARRAY_BUFFER,s.vertexIndices),o.drawElements(o.TRIANGLES,y.length,o.UNSIGNED_SHORT,0)},t.exports=S},3836:(t,e,n)=>{"use strict";var i=n(1663),r=n(5382).vec4,o=n(5382).vec3,a=n(5382).mat4;function s(t,e,n){var i=t.createShader(e);if(t.shaderSource(i,n),t.compileShader(i),!t.getShaderParameter(i,t.COMPILE_STATUS))throw t.getShaderInfoLog(i);return i}function l(t,e,n,i){var r=t.createBuffer();return t.bindBuffer(e,r),t.bufferData(e,i,n),r}var c=r.create(),u=a.create();a.identity(u);var d=o.create(),h=o.create();t.exports={createShaderProgram:function(t,e,n,i,r){var o=s(t,t.VERTEX_SHADER,e),a=s(t,t.FRAGMENT_SHADER,n),l=t.createProgram();if(t.attachShader(l,o),t.attachShader(l,a),t.linkProgram(l),!t.getProgramParameter(l,t.LINK_STATUS))throw t.getProgramInfoLog(l);for(var c=0;c<i.length;c++){var u=i[c];if(l[u]=t.getAttribLocation(l,u),-1===l[u])throw new Error("Shader program has no "+u+" attribute")}for(var d=0;d<r.length;d++){var h=r[d];if(l[h]=t.getUniformLocation(l,h),-1===l[h])throw new Error("Shader program has no "+h+" uniform")}return l},destroyShaderProgram:function(t,e){for(var n=t.getAttachedShaders(e),i=0;i<n.length;i++){var r=n[i];t.detachShader(e,r),t.deleteShader(r)}t.deleteProgram(e)},createConstantBuffers:function(t,e,n,i){return{vertexIndices:l(t,t.ELEMENT_ARRAY_BUFFER,t.STATIC_DRAW,new Uint16Array(e)),vertexPositions:l(t,t.ARRAY_BUFFER,t.STATIC_DRAW,new Float32Array(n)),textureCoords:l(t,t.ARRAY_BUFFER,t.STATIC_DRAW,new Float32Array(i))}},destroyConstantBuffers:function(t,e){t.deleteBuffer(e.vertexIndices),t.deleteBuffer(e.vertexPositions),t.deleteBuffer(e.textureCoords)},enableAttributes:function(t,e){for(var n=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),i=0;i<n;i++)t.enableVertexAttribArray(i)},disableAttributes:function(t,e){for(var n=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),i=0;i<n;i++)t.disableVertexAttribArray(i)},setTexture:function(t,e,n){t.activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,n._texture),t.uniform1i(e.uSampler,0)},setDepth:function(t,e,n,i){var r=(256*(n+1)-i)/65536;t.uniform1f(e.uDepth,r)},setViewport:function(t,e,n,r){if(0===n.x&&1===n.width&&0===n.y&&1===n.height)return t.viewport(0,0,t.drawingBufferWidth,t.drawingBufferHeight),void a.identity(r);var s=n.x,l=i(s,0,1),c=l-s,u=1-l,p=i(n.width-c,0,u),f=n.width-p,m=1-n.height-n.y,v=i(m,0,1),g=v-m,b=1-v,y=i(n.height-g,0,b),_=n.height-y;o.set(h,n.width/p,n.height/y,1),o.set(d,(f-c)/p,(_-g)/y,0),a.identity(r),a.translate(r,r,d),a.scale(r,r,h),t.viewport(t.drawingBufferWidth*l,t.drawingBufferHeight*v,t.drawingBufferWidth*p,t.drawingBufferHeight*y)},setupPixelEffectUniforms:function(t,e,n){var i=1;e&&null!=e.opacity&&(i=e.opacity),t.uniform1f(n.opacity,i);var r=c;e&&e.colorOffset&&(r=e.colorOffset),t.uniform4fv(n.colorOffset,r);var o=u;e&&e.colorMatrix&&(o=e.colorMatrix),t.uniformMatrix4fv(n.colorMatrix,!1,o)}}},9064:(t,e,n)=>{"use strict";var i=n(6904);function r(){this.constructor.super_.apply(this,arguments)}n(1086)(r,i),t.exports=r},6167:(t,e,n)=>{"use strict";var i=n(5382).mat4,r=n(6720),o=n(3836),a=o.createConstantBuffers,s=o.destroyConstantBuffers,l=o.createShaderProgram,c=o.destroyShaderProgram,u=o.enableAttributes,d=o.disableAttributes,h=o.setViewport,p=o.setupPixelEffectUniforms,f=o.setDepth,m=o.setTexture,v=n(8016),g=n(1594),b=[0,1,2,0,2,3],y=[-1,-1,0,1,-1,0,1,1,0,-1,1,0],_=[0,0,1,0,1,1,0,1],w=["aVertexPosition"],x=["uDepth","uOpacity","uSampler","uInvProjMatrix","uViewportMatrix","uColorOffset","uColorMatrix","uTextureX","uTextureY","uTextureWidth","uTextureHeight"];function C(t){this.gl=t,this.invProjMatrix=i.create(),this.viewportMatrix=i.create(),this.constantBuffers=a(t,b,y,_),this.shaderProgram=l(t,v,g,w,x)}C.prototype.destroy=function(){s(this.gl,this.constantBuffers),c(this.gl,this.shaderProgram),r(this)},C.prototype.startLayer=function(t,e){var n=this.gl,r=this.shaderProgram,o=this.constantBuffers,a=this.invProjMatrix,s=this.viewportMatrix;n.useProgram(r),u(n,r),h(n,t,e,s),n.uniformMatrix4fv(r.uViewportMatrix,!1,s),n.bindBuffer(n.ARRAY_BUFFER,o.vertexPositions),n.vertexAttribPointer(r.aVertexPosition,3,n.FLOAT,n.FALSE,0,0),n.bindBuffer(n.ARRAY_BUFFER,o.textureCoords),i.copy(a,t.view().projection()),i.invert(a,a),n.uniformMatrix4fv(r.uInvProjMatrix,!1,a);var l=t.effects().textureCrop||{},c=null!=l.x?l.x:0,d=null!=l.y?l.y:0,f=null!=l.width?l.width:1,m=null!=l.height?l.height:1;n.uniform1f(r.uTextureX,c),n.uniform1f(r.uTextureY,d),n.uniform1f(r.uTextureWidth,f),n.uniform1f(r.uTextureHeight,m),p(n,t.effects(),{opacity:r.uOpacity,colorOffset:r.uColorOffset,colorMatrix:r.uColorMatrix})},C.prototype.endLayer=function(t,e){var n=this.gl,i=this.shaderProgram;d(n,i)},C.prototype.renderTile=function(t,e,n,i){var r=this.gl,o=this.shaderProgram,a=this.constantBuffers;f(r,o,i,t.z),m(r,o,e),r.bindBuffer(r.ELEMENT_ARRAY_BUFFER,a.vertexIndices),r.drawElements(r.TRIANGLES,b.length,r.UNSIGNED_SHORT,0)},t.exports=C},498:(t,e,n)=>{"use strict";var i=n(6904);function r(){this.constructor.super_.apply(this,arguments)}n(1086)(r,i),t.exports=r},6512:(t,e,n)=>{"use strict";var i=n(9064),r=n(498),o=n(6167);t.exports=function(t){if("webgl"!==t.type)throw new Error("Unknown stage type: "+t.type);t.registerRenderer("flat","flat",r),t.registerRenderer("cube","rectilinear",i),t.registerRenderer("equirect","rectilinear",o)}},1594:t=>{"use strict";t.exports=["#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float","#endif","uniform sampler2D uSampler;","uniform float uOpacity;","uniform float uTextureX;","uniform float uTextureY;","uniform float uTextureWidth;","uniform float uTextureHeight;","uniform vec4 uColorOffset;","uniform mat4 uColorMatrix;","varying vec4 vRay;","const float PI = 3.14159265358979323846264;","void main(void) {","  float r = inversesqrt(vRay.x * vRay.x + vRay.y * vRay.y + vRay.z * vRay.z);","  float phi  = acos(vRay.y * r);","  float theta = atan(vRay.x, -1.0*vRay.z);","  float s = 0.5 + 0.5 * theta / PI;","  float t = 1.0 - phi / PI;","  s = s * uTextureWidth + uTextureX;","  t = t * uTextureHeight + uTextureY;","  vec4 color = texture2D(uSampler, vec2(s, t)) * uColorMatrix + uColorOffset;","  gl_FragColor = vec4(color.rgba * uOpacity);","}"].join("\n")},9483:t=>{"use strict";t.exports=["#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform sampler2D uSampler;","uniform float uOpacity;","uniform vec4 uColorOffset;","uniform mat4 uColorMatrix;","varying vec2 vTextureCoord;","void main(void) {","  vec4 color = texture2D(uSampler, vTextureCoord) * uColorMatrix + uColorOffset;","  gl_FragColor = vec4(color.rgba * uOpacity);","}"].join("\n")},8016:t=>{"use strict";t.exports=["attribute vec3 aVertexPosition;","uniform float uDepth;","uniform mat4 uViewportMatrix;","uniform mat4 uInvProjMatrix;","varying vec4 vRay;","void main(void) {","  vRay = uInvProjMatrix * vec4(aVertexPosition.xy, 1.0, 1.0);","  gl_Position = uViewportMatrix * vec4(aVertexPosition.xy, uDepth, 1.0);","}"].join("\n")},8477:t=>{"use strict";t.exports=["attribute vec3 aVertexPosition;","attribute vec2 aTextureCoord;","uniform float uDepth;","uniform mat4 uViewportMatrix;","uniform mat4 uProjMatrix;","varying vec2 vTextureCoord;","void main(void) {","  gl_Position = uViewportMatrix * uProjMatrix * vec4(aVertexPosition.xy, 0.0, 1.0);","  gl_Position.z = uDepth * gl_Position.w;","  vTextureCoord = aTextureCoord;","}"].join("\n")},1366:(t,e,n)=>{"use strict";var i=n(8442),r=n(5103),o=n(194),a=n(7869),s=n(7715),l=n(2288),c={x:"x",y:"y",z:"z",f:"face"};function u(t,e){e=e||{},this._loadPool=new o({concurrency:e.concurrency||4}),this._retryDelay=e.retryDelay||1e4,this._retryMap={},this._sourceFromTile=t}function d(t){return new RegExp("\\{("+t+")\\}","g")}i(u),u.prototype.loadAsset=function(t,e,n){var i,o=this,c=this._retryDelay,u=this._retryMap,d=this._sourceFromTile(e),h=d.url,p=d.rect,f=t.loadImage.bind(t,h,p),m=u[h];if(null!=m){var v=l()-m;v<c?i=c-v:(i=0,delete u[h])}var g=s.bind(null,i);return a(g,(function(t){return o._loadPool.push(f,(function(n,i){n?(n instanceof r&&(u[h]=l(),o.emit("networkError",n,e)),t(n,e)):(delete u[h],t(null,e,i))}))}))(n)},u.fromString=function(t,e){var n=(e=e||{})&&e.cubeMapPreviewFaceOrder||"bdflru";return new u(e.cubeMapPreviewUrl?function(t){return 0===t.z?function(t){var i=n.indexOf(t.face)/6;return{url:e.cubeMapPreviewUrl,rect:{x:0,y:i,width:1,height:1/6}}}(t):i(t)}:i,e);function i(e){var n=t;for(var i in c){var r=c[i],o=d(i),a=e.hasOwnProperty(r)?e[r]:"";n=n.replace(o,a)}return{url:n}}},t.exports=u},6770:t=>{"use strict";function e(t){this._asset=t}e.prototype.asset=function(){return this._asset},e.prototype.loadAsset=function(t,e,n){var i=this,r=setTimeout((function(){n(null,e,i._asset)}),0);return function(){clearTimeout(r),n.apply(null,arguments)}},t.exports=e},4279:t=>{"use strict";function e(){this._renderers={}}e.prototype.set=function(t,e,n){this._renderers[t]||(this._renderers[t]={}),this._renderers[t][e]=n},e.prototype.get=function(t,e){return this._renderers[t]&&this._renderers[t][e]||null},t.exports=e},8065:(t,e,n)=>{"use strict";var i=n(8442),r=n(5821),o=n(3889),a=n(9400),s=n(4020),l=n(6720),c=n(4279);function u(t,e){return t.cmp(e)}function d(t,e){return-t.cmp(e)}function h(t){this._progressive=!(!t||!t.progressive),this._layers=[],this._renderers=[],this._tilesToLoad=[],this._tilesToRender=[],this._tmpVisible=[],this._tmpChildren=[],this._width=0,this._height=0,this._tmpRect={},this._tmpSize={},this._createTextureWorkQueue=new r,this._emitRenderInvalid=this._emitRenderInvalid.bind(this),this._rendererRegistry=new c}i(h),h.prototype.destroy=function(){this.removeAllLayers(),l(this)},h.prototype.registerRenderer=function(t,e,n){return this._rendererRegistry.set(t,e,n)},h.prototype.domElement=function(){throw new Error("Stage implementation must override domElement")},h.prototype.width=function(){return this._width},h.prototype.height=function(){return this._height},h.prototype.size=function(t){return(t=t||{}).width=this._width,t.height=this._height,t},h.prototype.setSize=function(t){this._width=t.width,this._height=t.height,this.setSizeForType(),this.emit("resize"),this._emitRenderInvalid()},h.prototype.setSizeForType=function(t){throw new Error("Stage implementation must override setSizeForType")},h.prototype.loadImage=function(){throw new Error("Stage implementation must override loadImage")},h.prototype._emitRenderInvalid=function(){this.emit("renderInvalid")},h.prototype.validateLayer=function(t){throw new Error("Stage implementation must override validateLayer")},h.prototype.listLayers=function(){return[].concat(this._layers)},h.prototype.hasLayer=function(t){return this._layers.indexOf(t)>=0},h.prototype.addLayer=function(t,e){if(this._layers.indexOf(t)>=0)throw new Error("Layer already in stage");if(null==e&&(e=this._layers.length),e<0||e>this._layers.length)throw new Error("Invalid layer position");this.validateLayer(t);var n=t.geometry().type,i=t.view().type,r=this._rendererRegistry.get(n,i);if(!r)throw new Error("No "+this.type+" renderer avaiable for "+n+" geometry and "+i+" view");var o=this.createRenderer(r);this._layers.splice(e,0,t),this._renderers.splice(e,0,o),t.addEventListener("viewChange",this._emitRenderInvalid),t.addEventListener("effectsChange",this._emitRenderInvalid),t.addEventListener("fixedLevelChange",this._emitRenderInvalid),t.addEventListener("textureStoreChange",this._emitRenderInvalid),this._emitRenderInvalid()},h.prototype.moveLayer=function(t,e){var n=this._layers.indexOf(t);if(n<0)throw new Error("No such layer in stage");if(e<0||e>=this._layers.length)throw new Error("Invalid layer position");t=this._layers.splice(n,1)[0];var i=this._renderers.splice(n,1)[0];this._layers.splice(e,0,t),this._renderers.splice(e,0,i),this._emitRenderInvalid()},h.prototype.removeLayer=function(t){var e=this._layers.indexOf(t);if(e<0)throw new Error("No such layer in stage");var n=this._layers.splice(e,1)[0],i=this._renderers.splice(e,1)[0];this.destroyRenderer(i),n.removeEventListener("viewChange",this._emitRenderInvalid),n.removeEventListener("effectsChange",this._emitRenderInvalid),n.removeEventListener("fixedLevelChange",this._emitRenderInvalid),n.removeEventListener("textureStoreChange",this._emitRenderInvalid),this._emitRenderInvalid()},h.prototype.removeAllLayers=function(){for(;this._layers.length>0;)this.removeLayer(this._layers[0])},h.prototype.startFrame=function(){throw new Error("Stage implementation must override startFrame")},h.prototype.endFrame=function(){throw new Error("Stage implementation must override endFrame")},h.prototype.render=function(){var t,e,n,i=this._tilesToLoad,r=this._tilesToRender,a=!0,s=this._width,l=this._height,c=this._tmpRect,u=this._tmpSize;if(!(s<=0||l<=0)){for(this.startFrame(),t=0;t<this._layers.length;t++)this._layers[t].textureStore().startFrame();for(t=0;t<this._layers.length;t++){var d,h,p=this._layers[t],f=p.effects(),m=p.view(),v=p.textureStore(),g=this._renderers[t],b=this._layers.length-t;if(o(s,l,f&&f.rect,c),!(c.width<=0||c.height<=0)){for(u.width=c.width*this._width,u.height=c.height*this._height,m.setSize(u),g.startLayer(p,c),n=this._collectTiles(p,v),e=0;e<i.length;e++)d=i[e],v.markTile(d);for(e=0;e<r.length;e++)d=r[e],h=v.texture(d),g.renderTile(d,h,p,b);p.emit("renderComplete",n),n||(a=!1),g.endLayer(p,c)}}for(t=0;t<this._layers.length;t++)this._layers[t].textureStore().endFrame();this.endFrame(),this.emit("renderComplete",a)}},h.prototype._collectTiles=function(t,e){var n=this._tilesToLoad,i=this._tilesToRender,r=this._tmpVisible;n.length=0,i.length=0,r.length=0,t.visibleTiles(r);for(var o=!0,a=0;a<r.length;a++){var s,l=r[a];this._collectTileToLoad(l),e.texture(l)?(s=!1,this._collectTileToRender(l)):(s=this._collectChildren(l,e),o=!1),this._collectParents(l,e,s)}return n.sort(u),i.sort(d),o},h.prototype._collectChildren=function(t,e){var n=this._tmpChildren,i=!0;do{if(n.length=0,!t.children(n))break;i=!1;for(var r=0;r<n.length;r++)t=n[r],e.texture(t)?(this._collectTileToLoad(t),this._collectTileToRender(t)):i=!0}while(i&&1===n.length);return i},h.prototype._collectParents=function(t,e,n){for(var i=this._progressive;(i||n)&&null!=(t=t.parent());){if(n)if(e.texture(t))this._collectTileToRender(t),n=!1;else if(!this._progressive)continue;this._collectTileToLoad(t)||(i=!1)}return n},h.prototype._collectTileToLoad=function(t){return this._collectTileIntoList(t,this._tilesToLoad)},h.prototype._collectTileToRender=function(t){return this._collectTileIntoList(t,this._tilesToRender)},h.prototype._collectTileIntoList=function(t,e){for(var n=!1,i=0;i<e.length;i++)if(t.equals(e[i])){n=!0;break}return n||e.push(t),!n},h.prototype.createTexture=function(t,e,n){var i=this;var r=s(a((function(){return new i.TextureClass(i,t,e)})));return this._createTextureWorkQueue.push(r,(function(i,r){n(i,t,e,r)}))},t.exports=h},798:(t,e,n)=>{"use strict";var i=n(8065),r=n(9878),o=n(6122),a=n(1086),s=n(7601),l=n(4015),c=n(4332).setAbsolute,u=n(4332).setFullSize,d=n(6720),h=o.chrome;function p(t){t=t||{};var e=this;this.constructor.super_.call(this,t),this._generateMipmaps=null!=t.generateMipmaps&&t.generateMipmaps,this._loader=new r(this),this._domElement=document.createElement("canvas"),c(this._domElement),u(this._domElement),this._gl=function(t,e){var n={alpha:!0,premultipliedAlpha:!0,antialias:!(!e||!e.antialias),preserveDrawingBuffer:!(!e||!e.preserveDrawingBuffer)},i=t.getContext&&(t.getContext("webgl",n)||t.getContext("experimental-webgl",n));if(!i)throw new Error("Could not get WebGL context");return e.wrapContext&&(i=e.wrapContext(i)),i}(this._domElement,t),this._handleContextLoss=function(){e.emit("webglcontextlost"),e._gl=null},this._domElement.addEventListener("webglcontextlost",this._handleContextLoss),this._rendererInstances=[]}function f(t,e,n){this._stage=t,this._gl=t._gl,this._texture=null,this._timestamp=null,this._width=this._height=null,this.refresh(e,n)}a(p,i),p.prototype.destroy=function(){this._domElement.removeEventListener("webglcontextlost",this._handleContextLoss),this.constructor.super_.prototype.destroy.call(this)},p.prototype.domElement=function(){return this._domElement},p.prototype.webGlContext=function(){return this._gl},p.prototype.setSizeForType=function(){var t=s();this._domElement.width=t*this._width,this._domElement.height=t*this._height},p.prototype.loadImage=function(t,e,n){return this._loader.loadImage(t,e,n)},p.prototype.maxTextureSize=function(){return this._gl.getParameter(this._gl.MAX_TEXTURE_SIZE)},p.prototype.validateLayer=function(t){var e=t.geometry().maxTileSize(),n=this.maxTextureSize();if(e>n)throw new Error("Layer has level with tile size larger than maximum texture size ("+e+" vs. "+n+")")},p.prototype.createRenderer=function(t){for(var e=this._rendererInstances,n=0;n<e.length;n++)if(e[n]instanceof t)return e[n];var i=new t(this._gl);return e.push(i),i},p.prototype.destroyRenderer=function(t){var e=this._rendererInstances;if(this._renderers.indexOf(t)<0){t.destroy();var n=e.indexOf(t);n>=0&&e.splice(n,1)}},p.prototype.startFrame=function(){var t=this._gl;if(!t)throw new Error("Bad WebGL context - maybe context was lost?");t.viewport(0,0,t.drawingBufferWidth,t.drawingBufferHeight),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),t.enable(t.DEPTH_TEST),t.enable(t.BLEND),t.blendFunc(t.ONE,t.ONE_MINUS_SRC_ALPHA)},p.prototype.endFrame=function(){},p.prototype.takeSnapshot=function(t){"object"==typeof t&&null!=t||(t={});var e=t.quality;if(void 0===e&&(e=75),"number"!=typeof e||e<0||e>100)throw new Error("WebGLStage: Snapshot quality needs to be a number between 0 and 100");return this.render(),this._domElement.toDataURL("image/jpeg",e/100)},p.type=p.prototype.type="webgl",f.prototype.refresh=function(t,e){var n,i=this._gl,r=this._stage,o=e.timestamp();if(o!==this._timestamp){var a=e.element(),s=e.width(),c=e.height();if(s!==this._width||c!==this._height){var u=r.maxTextureSize();if(s>u)throw new Error("Texture width larger than max size ("+s+" vs. "+u+")");if(c>u)throw new Error("Texture height larger than max size ("+c+" vs. "+u+")");this._texture&&i.deleteTexture(n),n=this._texture=i.createTexture(),i.bindTexture(i.TEXTURE_2D,n),i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!0),i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,a)}else n=this._texture,i.bindTexture(i.TEXTURE_2D,n),i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!0),i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),a instanceof HTMLVideoElement&&h?i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,a):i.texSubImage2D(i.TEXTURE_2D,0,0,0,i.RGBA,i.UNSIGNED_BYTE,a);r._generateMipmaps&&l(s)&&l(c)?(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR_MIPMAP_LINEAR),i.generateMipmap(i.TEXTURE_2D)):(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR)),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.bindTexture(i.TEXTURE_2D,null),this._timestamp=o,this._width=s,this._height=c}},f.prototype.destroy=function(){this._texture&&this._gl.deleteTexture(this._texture),d(this)},p.TextureClass=p.prototype.TextureClass=f,t.exports=p},9400:t=>{"use strict";t.exports=function(t){return function(e){var n,i;try{i=t()}catch(t){n=t}finally{n?e(n):e(null,i)}}}},3889:t=>{"use strict";t.exports=function(t,e,n,i){var r,o,a,s;return i=i||{},r=null!=n&&null!=n.absoluteWidth?n.absoluteWidth/t:null!=n&&null!=n.relativeWidth?n.relativeWidth:1,o=n&&null!=n.absoluteHeight?n.absoluteHeight/e:null!=n&&null!=n.relativeHeight?n.relativeHeight:1,a=null!=n&&null!=n.absoluteX?n.absoluteX/t:null!=n&&null!=n.relativeX?n.relativeX:0,s=null!=n&&null!=n.absoluteY?n.absoluteY/e:null!=n&&null!=n.relativeY?n.relativeY:0,i.x=a,i.y=s,i.width=r,i.height=o,i}},4020:(t,e,n)=>{"use strict";var i=n(7783);t.exports=function(t){return function(){if(!arguments.length)throw new Error("cancelized: expected at least one argument");var e=Array.prototype.slice.call(arguments,0),n=e[e.length-1]=i(e[e.length-1]);return t.apply(null,e),function(){n.apply(null,arguments)}}}},7869:(t,e,n)=>{"use strict";var i=n(2058);t.exports=function(){var t=Array.prototype.slice.call(arguments,0);return function(){var e=t.slice(0),n=null,r=null,o=arguments.length?Array.prototype.slice.call(arguments,0,arguments.length-1):[],a=arguments.length?arguments[arguments.length-1]:i;return o.unshift(null),function t(){if(arguments[0])return n=r=null,void a.apply(null,arguments);if(!e.length)return n=r=null,void a.apply(null,arguments);var i=n=e.shift(),o=Array.prototype.slice.call(arguments,1);o.push(t);var s=n.apply(null,o);if(i===n){if("function"!=typeof s)throw new Error("chain: chaining on non-cancellable function");r=s}}.apply(null,o),function(){r&&r.apply(null,arguments)}}}},1663:t=>{"use strict";t.exports=function(t,e,n){return Math.min(Math.max(t,e),n)}},6720:t=>{"use strict";t.exports=function(t){for(var e in t)t.hasOwnProperty(e)&&(t[e]=void 0)}},9008:t=>{"use strict";t.exports=function(t,e){return t<e?-1:t>e?1:0}},8052:t=>{"use strict";t.exports=function(){var t=arguments;return function(e){for(var n=e,i=0;i<t.length;i++){n=t[i].call(null,n)}return n}}},7436:t=>{"use strict";function e(t,e,n){return 2*Math.atan(n*Math.tan(t/2)/e)}t.exports={convert:e,htov:function(t,n,i){return e(t,n,i)},htod:function(t,n,i){return e(t,n,Math.sqrt(n*n+i*i))},vtoh:function(t,n,i){return e(t,i,n)},vtod:function(t,n,i){return e(t,i,Math.sqrt(n*n+i*i))},dtoh:function(t,n,i){return e(t,Math.sqrt(n*n+i*i),n)},dtov:function(t,n,i){return e(t,Math.sqrt(n*n+i*i),i)}}},7215:t=>{"use strict";t.exports=function(t){return t.toPrecision(15)}},5904:t=>{"use strict";t.exports=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t}},7164:t=>{"use strict";t.exports=function(t,e){setTimeout((function(){e&&e.length>0?t.apply(null,e):t()}),0)}},9770:t=>{"use strict";t.exports=function(t){return t*Math.PI/180}},7715:t=>{"use strict";t.exports=function(t,e){var n=null;return n=setTimeout((function(){null!=n&&(n=null,e(null))}),t),function(){null!=n&&(clearTimeout(n),n=null,e.apply(null,arguments))}}},4332:t=>{"use strict";function e(t){for(var e=document.documentElement.style,n=["Moz","Webkit","Khtml","O","ms"],i=0;i<n.length;i++){var r=n[i]+(t[0].toUpperCase()+t.slice(1));if(r in e)return r}return t}function n(t){var n=e(t);return function(t,e){return t.style[n]=e}}var i=n("transform"),r=n("transformOrigin");t.exports={prefixProperty:e,getWithVendorPrefix:function(t){var n=e(t);return function(t){return t.style[n]}},setWithVendorPrefix:n,setTransform:i,setTransformOrigin:r,setNullTransform:function(t){i(t,"translateZ(0)")},setNullTransformOrigin:function(t){r(t,"0 0 0")},setAbsolute:function(t){t.style.position="absolute"},setPixelPosition:function(t,e,n){t.style.left=e+"px",t.style.top=n+"px"},setPixelSize:function(t,e,n){t.style.width=e+"px",t.style.height=n+"px"},setNullSize:function(t){t.style.width=t.style.height=0},setFullSize:function(t){t.style.width=t.style.height="100%"},setOverflowHidden:function(t){t.style.overflow="hidden"},setOverflowVisible:function(t){t.style.overflow="visible"},setNoPointerEvents:function(t){t.style.pointerEvents="none"}}},558:t=>{"use strict";t.exports=function(t,e){for(var n in e)t[n]=e[n];return t}},4597:(t,e,n)=>{"use strict";var i="undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==n.g?n.g:null;t.exports=i},9942:t=>{"use strict";t.exports=function(){for(var t=0,e=0;e<arguments.length;e++){var n=arguments[e];t+=n,t+=n<<10,t^=n>>6}return t+=t<<3,t^=t>>11,(t+=t<<15)>=0?t:-t}},1086:t=>{"use strict";t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},4015:t=>{"use strict";t.exports=function(t){return!(t&t-1)}},3572:t=>{"use strict";t.exports=function(t,e){return(+t%(e=+e)+e)%e}},2058:t=>{"use strict";t.exports=function(){}},2288:t=>{"use strict";t.exports="undefined"!=typeof performance&&performance.now?function(){return performance.now()}:function(){return Date.now()}},7783:t=>{"use strict";t.exports=function(t){var e,n=!1;return function(){return n||(n=!0,e=t.apply(null,arguments)),e}}},7601:t=>{"use strict";t.exports=function(){if("undefined"!=typeof window){if(window.devicePixelRatio)return window.devicePixelRatio;var t=window.screen;if(t&&t.deviceXDPI&&t.logicalXDPI)return t.deviceXDPI/t.logicalXDPI;if(t&&t.systemXDPI&&t.logicalXDPI)return t.systemXDPI/t.logicalXDPI}return 1}},6303:(t,e,n)=>{"use strict";var i=n(4332).setTransform,r=n(7215);t.exports=function(t,e,n,o){o=o||"";var a="translateX("+r(e)+"px) translateY("+r(n)+"px) translateZ(0) "+o;i(t,a)}},6156:t=>{"use strict";t.exports=function(t){return 180*t/Math.PI}},7082:t=>{"use strict";t.exports=function(t){return"number"==typeof t&&isFinite(t)}},7758:(t,e,n)=>{"use strict";var i=n(2058);t.exports=function(t){return function(){var e=arguments.length?Array.prototype.slice.call(arguments,0,arguments.length-1):[],n=arguments.length?arguments[arguments.length-1]:i,r=null,o=!1;function a(){!arguments[0]||o?n.apply(null,arguments):r=t.apply(null,e)}return e.push(a),a(!0),function(){o=!0,r.apply(null,arguments)}}}},2399:(t,e,n)=>{"use strict";var i=n(2288);t.exports=function(t,e,n){var r=!1,o=i();return e(0),requestAnimationFrame((function a(){if(!r){var s=(i()-o)/t;s<1?(e(s),requestAnimationFrame(a)):(e(1),n())}})),function(){r=!0,n.apply(null,arguments)}}},7738:t=>{"use strict";t.exports=function(t){var e=typeof t;if("object"===e){if(null===t)return"null";if("[object Array]"===Object.prototype.toString.call(t))return"array";if("[object RegExp]"===Object.prototype.toString.call(t))return"regexp"}return e}},2755:(t,e,n)=>{"use strict";var i=n(8442),r=n(5382).mat4,o=n(5382).vec4,a=n(7601),s=n(7082),l=n(1663),c=n(6720),u=[1,0,1,0],d=[-1,-1,1,1];function h(t,e){if(!t||null==t.mediaAspectRatio)throw new Error("mediaAspectRatio must be defined");this._x=t&&null!=t.x?t.x:.5,this._y=t&&null!=t.y?t.y:.5,this._zoom=t&&null!=t.zoom?t.zoom:1,this._mediaAspectRatio=t.mediaAspectRatio,this._width=t&&null!=t.width?t.width:0,this._height=t&&null!=t.height?t.height:0,this._limiter=e||null,this._projMatrix=r.create(),this._invProjMatrix=r.create(),this._frustum=[0,0,0,0],this._projectionChanged=!0,this._params={},this._vec=o.create(),this._update()}i(h),h.prototype.destroy=function(){c(this)},h.prototype.x=function(){return this._x},h.prototype.y=function(){return this._y},h.prototype.zoom=function(){return this._zoom},h.prototype.mediaAspectRatio=function(){return this._mediaAspectRatio},h.prototype.width=function(){return this._width},h.prototype.height=function(){return this._height},h.prototype.size=function(t){return(t=t||{}).width=this._width,t.height=this._height,t},h.prototype.parameters=function(t){return(t=t||{}).x=this._x,t.y=this._y,t.zoom=this._zoom,t.mediaAspectRatio=this._mediaAspectRatio,t},h.prototype.limiter=function(){return this._limiter},h.prototype.setX=function(t){this._resetParams(),this._params.x=t,this._update(this._params)},h.prototype.setY=function(t){this._resetParams(),this._params.y=t,this._update(this._params)},h.prototype.setZoom=function(t){this._resetParams(),this._params.zoom=t,this._update(this._params)},h.prototype.offsetX=function(t){this.setX(this._x+t)},h.prototype.offsetY=function(t){this.setY(this._y+t)},h.prototype.offsetZoom=function(t){this.setZoom(this._zoom+t)},h.prototype.setMediaAspectRatio=function(t){this._resetParams(),this._params.mediaAspectRatio=t,this._update(this._params)},h.prototype.setSize=function(t){this._resetParams(),this._params.width=t.width,this._params.height=t.height,this._update(this._params)},h.prototype.setParameters=function(t){this._resetParams(),this._params.x=t.x,this._params.y=t.y,this._params.zoom=t.zoom,this._params.mediaAspectRatio=t.mediaAspectRatio,this._update(this._params)},h.prototype.setLimiter=function(t){this._limiter=t||null,this._update()},h.prototype._resetParams=function(){var t=this._params;t.x=null,t.y=null,t.zoom=null,t.mediaAspectRatio=null,t.width=null,t.height=null},h.prototype._update=function(t){null==t&&(this._resetParams(),t=this._params);var e=this._x,n=this._y,i=this._zoom,r=this._mediaAspectRatio,o=this._width,a=this._height;if(t.x=null!=t.x?t.x:e,t.y=null!=t.y?t.y:n,t.zoom=null!=t.zoom?t.zoom:i,t.mediaAspectRatio=null!=t.mediaAspectRatio?t.mediaAspectRatio:r,t.width=null!=t.width?t.width:o,t.height=null!=t.height?t.height:a,this._limiter&&!(t=this._limiter(t)))throw new Error("Bad view limiter");var c=t.x,u=t.y,d=t.zoom,h=t.mediaAspectRatio,p=t.width,f=t.height;if(!(s(c)&&s(u)&&s(d)&&s(h)&&s(p)&&s(f)))throw new Error("Bad view - suspect a broken limiter");d=l(d,1e-6,1/0),this._x=c,this._y=u,this._zoom=d,this._mediaAspectRatio=h,this._width=p,this._height=f,c===e&&u===n&&d===i&&h===r&&p===o&&f===a||(this._projectionChanged=!0,this.emit("change")),p===o&&f===a||this.emit("resize")},h.prototype._zoomX=function(){return this._zoom},h.prototype._zoomY=function(){var t=this._mediaAspectRatio,e=this._width/this._height,n=this._zoom,i=n*t/e;return isNaN(i)&&(i=n),i},h.prototype.updateWithControlParameters=function(t){var e=this.zoom(),n=this._zoomX(),i=this._zoomY();this.offsetX(t.axisScaledX*n+t.x*e),this.offsetY(t.axisScaledY*i+t.y*e),this.offsetZoom(t.zoom*e)},h.prototype._updateProjection=function(){var t=this._projMatrix,e=this._invProjMatrix,n=this._frustum;if(this._projectionChanged){var i=this._x,o=this._y,a=this._zoomX(),s=this._zoomY(),l=n[0]=.5-o+.5*s,c=n[1]=i-.5+.5*a,u=n[2]=.5-o-.5*s,d=n[3]=i-.5-.5*a;r.ortho(t,d,c,u,l,-1,1),r.invert(e,t),this._projectionChanged=!1}},h.prototype.projection=function(){return this._updateProjection(),this._projMatrix},h.prototype.inverseProjection=function(){return this._updateProjection(),this._invProjMatrix},h.prototype.intersects=function(t){this._updateProjection();for(var e=this._frustum,n=0;n<e.length;n++){for(var i=e[n],r=u[n],o=d[n],a=!1,s=0;s<t.length;s++){var l=t[s];if(o<0&&l[r]<i||o>0&&l[r]>i){a=!0;break}}if(!a)return!1}return!0},h.prototype.selectLevel=function(t){for(var e=a()*this.width(),n=this._zoom,i=0;i<t.length;i++){var r=t[i];if(n*r.width()>=e)return r}return t[t.length-1]},h.prototype.coordinatesToScreen=function(t,e){var n=this._vec;e||(e={});var i=this._width,r=this._height;if(i<=0||r<=0)return e.x=null,e.y=null,null;var a=t&&null!=t.x?t.x:.5,s=t&&null!=t.y?t.y:.5;o.set(n,a-.5,.5-s,-1,1),o.transformMat4(n,n,this.projection());for(var l=0;l<3;l++)n[l]/=n[3];return e.x=i*(n[0]+1)/2,e.y=r*(1-n[1])/2,e},h.prototype.screenToCoordinates=function(t,e){var n=this._vec;e||(e={});var i=this._width,r=this._height,a=2*t.x/i-1,s=1-2*t.y/r;return o.set(n,a,s,1,1),o.transformMat4(n,n,this.inverseProjection()),e.x=.5+n[0],e.y=.5-n[1],e},h.limit={x:function(t,e){return function(n){return n.x=l(n.x,t,e),n}},y:function(t,e){return function(n){return n.y=l(n.y,t,e),n}},zoom:function(t,e){return function(n){return n.zoom=l(n.zoom,t,e),n}},resolution:function(t){return function(e){if(e.width<=0||e.height<=0)return e;var n=e.width,i=a()*n/t;return e.zoom=l(e.zoom,i,1/0),e}},visibleX:function(t,e){return function(n){var i=e-t;n.zoom>i&&(n.zoom=i);var r=t+.5*n.zoom,o=e-.5*n.zoom;return n.x=l(n.x,r,o),n}},visibleY:function(t,e){return function(n){if(n.width<=0||n.height<=0)return n;var i=n.width/n.height/n.mediaAspectRatio,r=(e-t)*i;n.zoom>r&&(n.zoom=r);var o=t+.5*n.zoom/i,a=e-.5*n.zoom/i;return n.y=l(n.y,o,a),n}},letterbox:function(){return function(t){if(t.width<=0||t.height<=0)return t;var e,n,i,r,o=t.width/t.height,a=o/t.mediaAspectRatio;return t.mediaAspectRatio>=o&&(t.zoom=Math.min(t.zoom,1)),t.mediaAspectRatio<=o&&(t.zoom=Math.min(t.zoom,a)),t.zoom>1?e=n=.5:(e=0+.5*t.zoom/1,n=1-.5*t.zoom/1),t.zoom>a?i=r=.5:(i=0+.5*t.zoom/a,r=1-.5*t.zoom/a),t.x=l(t.x,e,n),t.y=l(t.y,i,r),t}}},h.type=h.prototype.type="flat",t.exports=h},3158:(t,e,n)=>{"use strict";var i=n(8442),r=n(5382).mat4,o=n(5382).vec4,a=n(7601),s=n(7436),l=n(3572),c=n(7082),u=n(1663),d=n(7215),h=n(8052),p=n(6720),f=Math.PI/4,m=1e-6;function v(t,e){this._yaw=t&&null!=t.yaw?t.yaw:0,this._pitch=t&&null!=t.pitch?t.pitch:0,this._roll=t&&null!=t.roll?t.roll:0,this._fov=t&&null!=t.fov?t.fov:f,this._width=t&&null!=t.width?t.width:0,this._height=t&&null!=t.height?t.height:0,this._projectionCenterX=t&&null!=t.projectionCenterX?t.projectionCenterX:0,this._projectionCenterY=t&&null!=t.projectionCenterY?t.projectionCenterY:0,this._limiter=e||null,this._projMatrix=r.create(),this._invProjMatrix=r.create(),this._frustum=[o.create(),o.create(),o.create(),o.create(),o.create()],this._projectionChanged=!0,this._params={},this._fovs={},this._tmpVec=o.create(),this._update()}i(v),v.prototype.destroy=function(){p(this)},v.prototype.yaw=function(){return this._yaw},v.prototype.pitch=function(){return this._pitch},v.prototype.roll=function(){return this._roll},v.prototype.projectionCenterX=function(){return this._projectionCenterX},v.prototype.projectionCenterY=function(){return this._projectionCenterY},v.prototype.fov=function(){return this._fov},v.prototype.width=function(){return this._width},v.prototype.height=function(){return this._height},v.prototype.size=function(t){return(t=t||{}).width=this._width,t.height=this._height,t},v.prototype.parameters=function(t){return(t=t||{}).yaw=this._yaw,t.pitch=this._pitch,t.roll=this._roll,t.fov=this._fov,t},v.prototype.limiter=function(){return this._limiter},v.prototype.setYaw=function(t){this._resetParams(),this._params.yaw=t,this._update(this._params)},v.prototype.setPitch=function(t){this._resetParams(),this._params.pitch=t,this._update(this._params)},v.prototype.setRoll=function(t){this._resetParams(),this._params.roll=t,this._update(this._params)},v.prototype.setFov=function(t){this._resetParams(),this._params.fov=t,this._update(this._params)},v.prototype.setProjectionCenterX=function(t){this._resetParams(),this._params.projectionCenterX=t,this._update(this._params)},v.prototype.setProjectionCenterY=function(t){this._resetParams(),this._params.projectionCenterY=t,this._update(this._params)},v.prototype.offsetYaw=function(t){this.setYaw(this._yaw+t)},v.prototype.offsetPitch=function(t){this.setPitch(this._pitch+t)},v.prototype.offsetRoll=function(t){this.setRoll(this._roll+t)},v.prototype.offsetFov=function(t){this.setFov(this._fov+t)},v.prototype.setSize=function(t){this._resetParams(),this._params.width=t.width,this._params.height=t.height,this._update(this._params)},v.prototype.setParameters=function(t){this._resetParams(),this._params.yaw=t.yaw,this._params.pitch=t.pitch,this._params.roll=t.roll,this._params.fov=t.fov,this._params.projectionCenterX=t.projectionCenterX,this._params.projectionCenterY=t.projectionCenterY,this._update(this._params)},v.prototype.setLimiter=function(t){this._limiter=t||null,this._update()},v.prototype._resetParams=function(){var t=this._params;t.yaw=null,t.pitch=null,t.roll=null,t.fov=null,t.width=null,t.height=null},v.prototype._update=function(t){null==t&&(this._resetParams(),t=this._params);var e=this._yaw,n=this._pitch,i=this._roll,r=this._fov,o=this._projectionCenterX,a=this._projectionCenterY,s=this._width,l=this._height;if(t.yaw=null!=t.yaw?t.yaw:e,t.pitch=null!=t.pitch?t.pitch:n,t.roll=null!=t.roll?t.roll:i,t.fov=null!=t.fov?t.fov:r,t.width=null!=t.width?t.width:s,t.height=null!=t.height?t.height:l,t.projectionCenterX=null!=t.projectionCenterX?t.projectionCenterX:o,t.projectionCenterY=null!=t.projectionCenterY?t.projectionCenterY:a,this._limiter&&!(t=this._limiter(t)))throw new Error("Bad view limiter");var u=(t=this._normalize(t)).yaw,d=t.pitch,h=t.roll,p=t.fov,f=t.width,m=t.height,v=t.projectionCenterX,g=t.projectionCenterY;if(!(c(u)&&c(d)&&c(h)&&c(p)&&c(f)&&c(m)&&c(v)&&c(g)))throw new Error("Bad view - suspect a broken limiter");this._yaw=u,this._pitch=d,this._roll=h,this._fov=p,this._width=f,this._height=m,this._projectionCenterX=v,this._projectionCenterY=g,u===e&&d===n&&h===i&&p===r&&f===s&&m===l&&v===o&&g===a||(this._projectionChanged=!0,this.emit("change")),f===s&&m===l||this.emit("resize")},v.prototype._normalize=function(t){this._normalizeCoordinates(t);var e=s.htov(Math.PI,t.width,t.height),n=isNaN(e)?Math.PI:Math.min(Math.PI,e);return t.fov=u(t.fov,m,n-m),t},v.prototype._normalizeCoordinates=function(t){return"yaw"in t&&(t.yaw=l(t.yaw-Math.PI,-2*Math.PI)+Math.PI),"pitch"in t&&(t.pitch=l(t.pitch-Math.PI,-2*Math.PI)+Math.PI),"roll"in t&&(t.roll=l(t.roll-Math.PI,-2*Math.PI)+Math.PI),t},v.prototype.normalizeToClosest=function(t,e){var n=this._yaw,i=this._pitch,r=t.yaw,o=t.pitch,a=r-2*Math.PI,s=r+2*Math.PI;Math.abs(a-n)<Math.abs(r-n)?r=a:Math.abs(s-n)<Math.abs(r-n)&&(r=s);var l=o-2*Math.PI,c=o+2*Math.PI;return Math.abs(l-i)<Math.abs(o-i)?o=l:Math.abs(l-i)<Math.abs(o-i)&&(o=c),(e=e||{}).yaw=r,e.pitch=o,e},v.prototype.updateWithControlParameters=function(t){var e=this._fov,n=s.vtoh(e,this._width,this._height);isNaN(n)&&(n=e),this.offsetYaw(t.axisScaledX*n+2*t.x*n+t.yaw),this.offsetPitch(t.axisScaledY*e+2*t.y*n+t.pitch),this.offsetRoll(-t.roll),this.offsetFov(t.zoom*e)},v.prototype._updateProjection=function(){var t=this._projMatrix,e=this._invProjMatrix,n=this._frustum;if(this._projectionChanged){var i=this._width,o=this._height,a=this._fov,l=s.vtoh(a,i,o),c=i/o,u=this._projectionCenterX,d=this._projectionCenterY;if(0!==u||0!==d){var h=Math.atan(2*u*Math.tan(l/2)),p=Math.atan(2*d*Math.tan(a/2)),f=this._fovs;f.leftDegrees=180*(l/2+h)/Math.PI,f.rightDegrees=180*(l/2-h)/Math.PI,f.upDegrees=180*(a/2+p)/Math.PI,f.downDegrees=180*(a/2-p)/Math.PI,r.perspectiveFromFieldOfView(t,f,-1,1)}else r.perspective(t,a,c,-1,1);r.rotateZ(t,t,this._roll),r.rotateX(t,t,this._pitch),r.rotateY(t,t,this._yaw),r.invert(e,t),this._matrixToFrustum(t,n),this._projectionChanged=!1}},v.prototype._matrixToFrustum=function(t,e){o.set(e[0],t[3]+t[0],t[7]+t[4],t[11]+t[8],0),o.set(e[1],t[3]-t[0],t[7]-t[4],t[11]-t[8],0),o.set(e[2],t[3]+t[1],t[7]+t[5],t[11]+t[9],0),o.set(e[3],t[3]-t[1],t[7]-t[5],t[11]-t[9],0),o.set(e[4],t[3]+t[2],t[7]+t[6],t[11]+t[10],0)},v.prototype.projection=function(){return this._updateProjection(),this._projMatrix},v.prototype.inverseProjection=function(){return this._updateProjection(),this._invProjMatrix},v.prototype.intersects=function(t){this._updateProjection();for(var e=this._frustum,n=this._tmpVec,i=0;i<e.length;i++){for(var r=e[i],a=!1,s=0;s<t.length;s++){var l=t[s];o.set(n,l[0],l[1],l[2],0),o.dot(r,n)>=0&&(a=!0)}if(!a)return!1}return!0},v.prototype.selectLevel=function(t){for(var e=a()*this._height,n=Math.tan(.5*this._fov),i=0;i<t.length;i++){var r=t[i];if(n*r.height()>=e)return r}return t[t.length-1]},v.prototype.coordinatesToScreen=function(t,e){var n=this._tmpVec;e||(e={});var i=this._width,r=this._height;if(i<=0||r<=0)return e.x=null,e.y=null,null;var a=t.yaw,s=t.pitch,l=Math.sin(a)*Math.cos(s),c=-Math.sin(s),u=-Math.cos(a)*Math.cos(s);return o.set(n,l,c,u,1),o.transformMat4(n,n,this.projection()),n[3]>=0?(e.x=i*(n[0]/n[3]+1)/2,e.y=r*(1-n[1]/n[3])/2,e):(e.x=null,e.y=null,null)},v.prototype.screenToCoordinates=function(t,e){var n=this._tmpVec;e||(e={});var i=this._width,r=this._height,a=2*t.x/i-1,s=1-2*t.y/r;o.set(n,a,s,1,1),o.transformMat4(n,n,this.inverseProjection());var l=Math.sqrt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);return e.yaw=Math.atan2(n[0],-n[2]),e.pitch=Math.acos(n[1]/l)-Math.PI/2,this._normalizeCoordinates(e),e},v.prototype.coordinatesToPerspectiveTransform=function(t,e,n){n=n||"";var i=this._height,r=this._width,o=this._fov,a=.5*i/Math.tan(o/2),s="";return s+="translateX("+d(r/2)+"px) ",s+="translateY("+d(i/2)+"px) ",s+="translateX(-50%) translateY(-50%) ",s+="perspective("+d(a)+"px) ",s+="translateZ("+d(a)+"px) ",s+="rotateZ("+d(-this._roll)+"rad) ",s+="rotateX("+d(-this._pitch)+"rad) ",s+="rotateY("+d(this._yaw)+"rad) ",s+="rotateY("+d(-t.yaw)+"rad) ",s+="rotateX("+d(t.pitch)+"rad) ",s+="translateZ("+d(-e)+"px) ",s+=n+" "},v.limit={yaw:function(t,e){return function(n){return n.yaw=u(n.yaw,t,e),n}},pitch:function(t,e){return function(n){return n.pitch=u(n.pitch,t,e),n}},roll:function(t,e){return function(n){return n.roll=u(n.roll,t,e),n}},hfov:function(t,e){return function(n){var i=n.width,r=n.height;if(i>0&&r>0){var o=s.htov(t,i,r),a=s.htov(e,i,r);n.fov=u(n.fov,o,a)}return n}},vfov:function(t,e){return function(n){return n.fov=u(n.fov,t,e),n}},resolution:function(t){return function(e){var n=e.height;if(n){var i=a()*n,r=2*Math.atan(i/t);e.fov=u(e.fov,r,1/0)}return e}},traditional:function(t,e,n){return n=null!=n?n:e,h(v.limit.resolution(t),v.limit.vfov(0,e),v.limit.hfov(0,n),v.limit.pitch(-Math.PI/2,Math.PI/2))}},v.type=v.prototype.type="rectilinear",t.exports=v},7457:()=>{},8647:()=>{},8442:t=>{"use strict";function e(){}e.prototype.addEventListener=function(t,e){var n=this.__events=this.__events||{},i=n[t]=n[t]||[];i.indexOf(e)<0&&i.push(e)},e.prototype.removeEventListener=function(t,e){var n=(this.__events=this.__events||{})[t];if(n){var i=n.indexOf(e);i>=0&&n.splice(i,1)}},e.prototype.emit=function(t,e){var n=(this.__events=this.__events||{})[t],i=Array.prototype.slice.call(arguments,1);if(n)for(var r=0;r<n.length;r++){n[r].apply(this,i)}},t.exports=function(t){for(var n in e.prototype)e.prototype.hasOwnProperty(n)&&(t.prototype[n]=e.prototype[n])}},1476:t=>{t.exports=function(t,e){for(var n=t[0],i=t[1],r=!1,o=0,a=e.length-1;o<e.length;a=o++){var s=e[o][0],l=e[o][1],c=e[a][0],u=e[a][1];l>i!=u>i&&n<(c-s)*(i-l)/(u-l)+s&&(r=!r)}return r}},8851:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>at});var i="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(i&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();var o=i&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),r))}};function a(t){return t&&"[object Function]"==={}.toString.call(t)}function s(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function l(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function c(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=s(t),n=e.overflow,i=e.overflowX,r=e.overflowY;return/(auto|scroll|overlay)/.test(n+r+i)?t:c(l(t))}function u(t){return t&&t.referenceNode?t.referenceNode:t}var d=i&&!(!window.MSInputMethodContext||!document.documentMode),h=i&&/MSIE 10/.test(navigator.userAgent);function p(t){return 11===t?d:10===t?h:d||h}function f(t){if(!t)return document.documentElement;for(var e=p(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===s(n,"position")?f(n):n:t?t.ownerDocument.documentElement:document.documentElement}function m(t){return null!==t.parentNode?m(t.parentNode):t}function v(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,r=n?e:t,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var a,s,l=o.commonAncestorContainer;if(t!==l&&e!==l||i.contains(r))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&f(a.firstElementChild)!==a?f(l):l;var c=m(t);return c.host?v(c.host,e):v(t,m(e).host)}function g(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var i=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||i)[e]}return t[e]}function b(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+i+"Width"])}function y(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],p(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function _(t){var e=t.body,n=t.documentElement,i=p(10)&&getComputedStyle(n);return{height:y("Height",e,n,i),width:y("Width",e,n,i)}}var w=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),x=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},C=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function S(t){return C({},t,{right:t.left+t.width,bottom:t.top+t.height})}function E(t){var e={};try{if(p(10)){e=t.getBoundingClientRect();var n=g(t,"top"),i=g(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}else e=t.getBoundingClientRect()}catch(t){}var r={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?_(t.ownerDocument):{},a=o.width||t.clientWidth||r.width,l=o.height||t.clientHeight||r.height,c=t.offsetWidth-a,u=t.offsetHeight-l;if(c||u){var d=s(t);c-=b(d,"x"),u-=b(d,"y"),r.width-=c,r.height-=u}return S(r)}function T(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=p(10),r="HTML"===e.nodeName,o=E(t),a=E(e),l=c(t),u=s(e),d=parseFloat(u.borderTopWidth),h=parseFloat(u.borderLeftWidth);n&&r&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var f=S({top:o.top-a.top-d,left:o.left-a.left-h,width:o.width,height:o.height});if(f.marginTop=0,f.marginLeft=0,!i&&r){var m=parseFloat(u.marginTop),v=parseFloat(u.marginLeft);f.top-=d-m,f.bottom-=d-m,f.left-=h-v,f.right-=h-v,f.marginTop=m,f.marginLeft=v}return(i&&!n?e.contains(l):e===l&&"BODY"!==l.nodeName)&&(f=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=g(e,"top"),r=g(e,"left"),o=n?-1:1;return t.top+=i*o,t.bottom+=i*o,t.left+=r*o,t.right+=r*o,t}(f,e)),f}function O(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===s(t,"position"))return!0;var n=l(t);return!!n&&O(n)}function k(t){if(!t||!t.parentElement||p())return document.documentElement;for(var e=t.parentElement;e&&"none"===s(e,"transform");)e=e.parentElement;return e||document.documentElement}function A(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=r?k(t):v(t,u(e));if("viewport"===i)o=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=T(t,n),r=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:g(n),s=e?0:g(n,"left");return S({top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:r,height:o})}(a,r);else{var s=void 0;"scrollParent"===i?"BODY"===(s=c(l(e))).nodeName&&(s=t.ownerDocument.documentElement):s="window"===i?t.ownerDocument.documentElement:i;var d=T(s,a,r);if("HTML"!==s.nodeName||O(a))o=d;else{var h=_(t.ownerDocument),p=h.height,f=h.width;o.top+=d.top-d.marginTop,o.bottom=p+d.top,o.left+=d.left-d.marginLeft,o.right=f+d.left}}var m="number"==typeof(n=n||0);return o.left+=m?n:n.left||0,o.top+=m?n:n.top||0,o.right-=m?n:n.right||0,o.bottom-=m?n:n.bottom||0,o}function P(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=A(n,i,o,r),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},l=Object.keys(s).map((function(t){return C({key:t},s[t],{area:(e=s[t],e.width*e.height)});var e})).sort((function(t,e){return e.area-t.area})),c=l.filter((function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=t.split("-")[1];return u+(d?"-"+d:"")}function M(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return T(n,i?k(e):v(e,u(n)),i)}function L(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function D(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function R(t,e,n){n=n.split("-")[0];var i=L(t),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return r[a]=e[a]+e[l]/2-i[l]/2,r[s]=n===s?e[s]-i[c]:e[D(s)],r}function I(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function j(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var i=I(t,(function(t){return t[e]===n}));return t.indexOf(i)}(t,"name",n))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&a(n)&&(e.offsets.popper=S(e.offsets.popper),e.offsets.reference=S(e.offsets.reference),e=n(e,t))})),e}function N(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=M(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=P(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=R(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=j(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function F(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function z(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var r=e[i],o=r?""+r+n:t;if(void 0!==document.body.style[o])return o}return null}function B(){return this.state.isDestroyed=!0,F(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[z("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function $(t){var e=t.ownerDocument;return e?e.defaultView:window}function U(t,e,n,i){var r="BODY"===t.nodeName,o=r?t.ownerDocument.defaultView:t;o.addEventListener(e,n,{passive:!0}),r||U(c(o.parentNode),e,n,i),i.push(o)}function H(t,e,n,i){n.updateBound=i,$(t).addEventListener("resize",n.updateBound,{passive:!0});var r=c(t);return U(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function V(){this.state.eventsEnabled||(this.state=H(this.reference,this.options,this.state,this.scheduleUpdate))}function Y(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,$(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function q(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function W(t,e){Object.keys(e).forEach((function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&q(e[n])&&(i="px"),t.style[n]=e[n]+i}))}var G=i&&/Firefox/i.test(navigator.userAgent);function X(t,e,n){var i=I(t,(function(t){return t.name===e})),r=!!i&&t.some((function(t){return t.name===n&&t.enabled&&t.order<i.order}));if(!r){var o="`"+e+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}var K=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Z=K.slice(3);function J(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Z.indexOf(t),i=Z.slice(n+1).concat(Z.slice(0,n));return e?i.reverse():i}var Q="flip",tt="clockwise",et="counterclockwise";function nt(t,e,n,i){var r=[0,0],o=-1!==["right","left"].indexOf(i),a=t.split(/(\+|\-)/).map((function(t){return t.trim()})),s=a.indexOf(I(a,(function(t){return-1!==t.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return c=c.map((function(t,i){var r=(1===i?!o:o)?"height":"width",a=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,i){var r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],a=r[2];if(!o)return t;if(0===a.indexOf("%")){return S("%p"===a?n:i)[e]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(t,r,e,n)}))})),c.forEach((function(t,e){t.forEach((function(n,i){q(n)&&(r[e]+=n*("-"===t[i-1]?-1:1))}))})),r}var it={shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var r=t.offsets,o=r.reference,a=r.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:x({},l,o[l]),end:x({},l,o[l]+o[c]-a[c])};t.offsets.popper=C({},a,u[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,r=t.offsets,o=r.popper,a=r.reference,s=i.split("-")[0],l=void 0;return l=q(+n)?[+n,0]:nt(n,o,a,s),"left"===s?(o.top+=l[0],o.left-=l[1]):"right"===s?(o.top+=l[0],o.left+=l[1]):"top"===s?(o.left+=l[0],o.top-=l[1]):"bottom"===s&&(o.left+=l[0],o.top+=l[1]),t.popper=o,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||f(t.instance.popper);t.instance.reference===n&&(n=f(n));var i=z("transform"),r=t.instance.popper.style,o=r.top,a=r.left,s=r[i];r.top="",r.left="",r[i]="";var l=A(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);r.top=o,r.left=a,r[i]=s,e.boundaries=l;var c=e.priority,u=t.offsets.popper,d={primary:function(t){var n=u[t];return u[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(u[t],l[t])),x({},t,n)},secondary:function(t){var n="right"===t?"left":"top",i=u[n];return u[t]>l[t]&&!e.escapeWithReference&&(i=Math.min(u[n],l[t]-("right"===t?u.width:u.height))),x({},n,i)}};return c.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";u=C({},u,d[e](t))})),t.offsets.popper=u,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,i=e.reference,r=t.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(r),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<o(i[l])&&(t.offsets.popper[l]=o(i[l])-n[c]),n[l]>o(i[s])&&(t.offsets.popper[l]=o(i[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!X(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var r=t.placement.split("-")[0],o=t.offsets,a=o.popper,l=o.reference,c=-1!==["left","right"].indexOf(r),u=c?"height":"width",d=c?"Top":"Left",h=d.toLowerCase(),p=c?"left":"top",f=c?"bottom":"right",m=L(i)[u];l[f]-m<a[h]&&(t.offsets.popper[h]-=a[h]-(l[f]-m)),l[h]+m>a[f]&&(t.offsets.popper[h]+=l[h]+m-a[f]),t.offsets.popper=S(t.offsets.popper);var v=l[h]+l[u]/2-m/2,g=s(t.instance.popper),b=parseFloat(g["margin"+d]),y=parseFloat(g["border"+d+"Width"]),_=v-t.offsets.popper[h]-b-y;return _=Math.max(Math.min(a[u]-m,_),0),t.arrowElement=i,t.offsets.arrow=(x(n={},h,Math.round(_)),x(n,p,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(F(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=A(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],r=D(i),o=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case Q:a=[i,r];break;case tt:a=J(i);break;case et:a=J(i,!0);break;default:a=e.behavior}return a.forEach((function(s,l){if(i!==s||a.length===l+1)return t;i=t.placement.split("-")[0],r=D(i);var c=t.offsets.popper,u=t.offsets.reference,d=Math.floor,h="left"===i&&d(c.right)>d(u.left)||"right"===i&&d(c.left)<d(u.right)||"top"===i&&d(c.bottom)>d(u.top)||"bottom"===i&&d(c.top)<d(u.bottom),p=d(c.left)<d(n.left),f=d(c.right)>d(n.right),m=d(c.top)<d(n.top),v=d(c.bottom)>d(n.bottom),g="left"===i&&p||"right"===i&&f||"top"===i&&m||"bottom"===i&&v,b=-1!==["top","bottom"].indexOf(i),y=!!e.flipVariations&&(b&&"start"===o&&p||b&&"end"===o&&f||!b&&"start"===o&&m||!b&&"end"===o&&v),_=!!e.flipVariationsByContent&&(b&&"start"===o&&f||b&&"end"===o&&p||!b&&"start"===o&&v||!b&&"end"===o&&m),w=y||_;(h||g||w)&&(t.flipped=!0,(h||g)&&(i=a[l+1]),w&&(o=function(t){return"end"===t?"start":"start"===t?"end":t}(o)),t.placement=i+(o?"-"+o:""),t.offsets.popper=C({},t.offsets.popper,R(t.instance.popper,t.offsets.reference,t.placement)),t=j(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,r=i.popper,o=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[a?"left":"top"]=o[n]-(s?r[a?"width":"height"]:0),t.placement=D(e),t.offsets.popper=S(r),t}},hide:{order:800,enabled:!0,fn:function(t){if(!X(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=I(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,i=e.y,r=t.offsets.popper,o=I(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:e.gpuAcceleration,s=f(t.instance.popper),l=E(s),c={position:r.position},u=function(t,e){var n=t.offsets,i=n.popper,r=n.reference,o=Math.round,a=Math.floor,s=function(t){return t},l=o(r.width),c=o(i.width),u=-1!==["left","right"].indexOf(t.placement),d=-1!==t.placement.indexOf("-"),h=e?u||d||l%2==c%2?o:a:s,p=e?o:s;return{left:h(l%2==1&&c%2==1&&!d&&e?i.left-1:i.left),top:p(i.top),bottom:p(i.bottom),right:h(i.right)}}(t,window.devicePixelRatio<2||!G),d="bottom"===n?"top":"bottom",h="right"===i?"left":"right",p=z("transform"),m=void 0,v=void 0;if(v="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,m="right"===h?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,a&&p)c[p]="translate3d("+m+"px, "+v+"px, 0)",c[d]=0,c[h]=0,c.willChange="transform";else{var g="bottom"===d?-1:1,b="right"===h?-1:1;c[d]=v*g,c[h]=m*b,c.willChange=d+", "+h}var y={"x-placement":t.placement};return t.attributes=C({},y,t.attributes),t.styles=C({},c,t.styles),t.arrowStyles=C({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return W(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&W(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,i,r){var o=M(r,e,t,n.positionFixed),a=P(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),W(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},rt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:it},ot=function(){function t(e,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=o(this.update.bind(this)),this.options=C({},t.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(C({},t.Defaults.modifiers,r.modifiers)).forEach((function(e){i.options.modifiers[e]=C({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return C({name:t},i.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&a(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return w(t,[{key:"update",value:function(){return N.call(this)}},{key:"destroy",value:function(){return B.call(this)}},{key:"enableEventListeners",value:function(){return V.call(this)}},{key:"disableEventListeners",value:function(){return Y.call(this)}}]),t}();ot.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,ot.placements=K,ot.Defaults=rt;const at=ot},2197:(t,e,n)=>{"use strict";var i,r=(i=n(2893))&&"object"==typeof i&&"default"in i?i.default:i;function o(t){return o="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},o(t)}function a(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var s="undefined"!=typeof window;function l(t,e){return e.reduce((function(e,n){return t.hasOwnProperty(n)&&(e[n]=t[n]),e}),{})}var c={},u={},d={},h=r.extend({data:function(){return{transports:c,targets:u,sources:d,trackInstances:s}},methods:{open:function(t){if(s){var e=t.to,n=t.from,i=t.passengers,a=t.order,l=void 0===a?1/0:a;if(e&&n&&i){var c,u={to:e,from:n,passengers:(c=i,Array.isArray(c)||"object"===o(c)?Object.freeze(c):c),order:l};-1===Object.keys(this.transports).indexOf(e)&&r.set(this.transports,e,[]);var d,h=this.$_getTransportIndex(u),p=this.transports[e].slice(0);-1===h?p.push(u):p[h]=u,this.transports[e]=(d=function(t,e){return t.order-e.order},p.map((function(t,e){return[e,t]})).sort((function(t,e){return d(t[1],e[1])||t[0]-e[0]})).map((function(t){return t[1]})))}}},close:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.to,i=t.from;if(n&&(i||!1!==e)&&this.transports[n])if(e)this.transports[n]=[];else{var r=this.$_getTransportIndex(t);if(r>=0){var o=this.transports[n].slice(0);o.splice(r,1),this.transports[n]=o}}},registerTarget:function(t,e,n){s&&(this.trackInstances&&!n&&this.targets[t]&&console.warn("[portal-vue]: Target ".concat(t," already exists")),this.$set(this.targets,t,Object.freeze([e])))},unregisterTarget:function(t){this.$delete(this.targets,t)},registerSource:function(t,e,n){s&&(this.trackInstances&&!n&&this.sources[t]&&console.warn("[portal-vue]: source ".concat(t," already exists")),this.$set(this.sources,t,Object.freeze([e])))},unregisterSource:function(t){this.$delete(this.sources,t)},hasTarget:function(t){return!(!this.targets[t]||!this.targets[t][0])},hasSource:function(t){return!(!this.sources[t]||!this.sources[t][0])},hasContentFor:function(t){return!!this.transports[t]&&!!this.transports[t].length},$_getTransportIndex:function(t){var e=t.to,n=t.from;for(var i in this.transports[e])if(this.transports[e][i].from===n)return+i;return-1}}}),p=new h(c),f=1,m=r.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(f++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}}},created:function(){var t=this;this.$nextTick((function(){p.registerSource(t.name,t)}))},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){p.unregisterSource(this.name),this.clear()},watch:{to:function(t,e){e&&e!==t&&this.clear(e),this.sendUpdate()}},methods:{clear:function(t){var e={from:this.name,to:t||this.to};p.close(e)},normalizeSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},normalizeOwnChildren:function(t){return"function"==typeof t?t(this.slotProps):t},sendUpdate:function(){var t=this.normalizeSlots();if(t){var e={from:this.name,to:this.to,passengers:a(t),order:this.order};p.open(e)}else this.clear()}},render:function(t){var e=this.$slots.default||this.$scopedSlots.default||[],n=this.tag;return e&&this.disabled?e.length<=1&&this.slim?this.normalizeOwnChildren(e)[0]:t(n,[this.normalizeOwnChildren(e)]):this.slim?t():t(n,{class:{"v-portal":!0},style:{display:"none"},key:"v-portal-placeholder"})}}),v=r.extend({name:"portalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},data:function(){return{transports:p.transports,firstRender:!0}},created:function(){var t=this;this.$nextTick((function(){p.registerTarget(t.name,t)}))},watch:{ownTransports:function(){this.$emit("change",this.children().length>0)},name:function(t,e){p.unregisterTarget(e),p.registerTarget(t,this)}},mounted:function(){var t=this;this.transition&&this.$nextTick((function(){t.firstRender=!1}))},beforeDestroy:function(){p.unregisterTarget(this.name)},computed:{ownTransports:function(){var t=this.transports[this.name]||[];return this.multiple?t:0===t.length?[]:[t[t.length-1]]},passengers:function(){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.reduce((function(t,n){var i=n.passengers[0],r="function"==typeof i?i(e):n.passengers;return t.concat(r)}),[])}(this.ownTransports,this.slotProps)}},methods:{children:function(){return 0!==this.passengers.length?this.passengers:this.$scopedSlots.default?this.$scopedSlots.default(this.slotProps):this.$slots.default||[]},noWrapper:function(){var t=this.slim&&!this.transition;return t&&this.children().length>1&&console.warn("[portal-vue]: PortalTarget with `slim` option received more than one child element."),t}},render:function(t){var e=this.noWrapper(),n=this.children(),i=this.transition||this.tag;return e?n[0]:this.slim&&!i?t():t(i,{props:{tag:this.transition&&this.tag?this.tag:void 0},class:{"vue-portal-target":!0}},n)}}),g=0,b=["disabled","name","order","slim","slotProps","tag","to"],y=["multiple","transition"],_=r.extend({name:"MountingPortal",inheritAttrs:!1,props:{append:{type:[Boolean,String]},bail:{type:Boolean},mountTo:{type:String,required:!0},disabled:{type:Boolean},name:{type:String,default:function(){return"mounted_"+String(g++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}},multiple:{type:Boolean,default:!1},targetSlim:{type:Boolean},targetSlotProps:{type:Object,default:function(){return{}}},targetTag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},created:function(){if("undefined"!=typeof document){var t=document.querySelector(this.mountTo);if(t){var e=this.$props;if(p.targets[e.name])e.bail?console.warn("[portal-vue]: Target ".concat(e.name," is already mounted.\n        Aborting because 'bail: true' is set")):this.portalTarget=p.targets[e.name];else{var n=e.append;if(n){var i="string"==typeof n?n:"DIV",r=document.createElement(i);t.appendChild(r),t=r}var o=l(this.$props,y);o.slim=this.targetSlim,o.tag=this.targetTag,o.slotProps=this.targetSlotProps,o.name=this.to,this.portalTarget=new v({el:t,parent:this.$parent||this,propsData:o})}}else console.error("[portal-vue]: Mount Point '".concat(this.mountTo,"' not found in document"))}},beforeDestroy:function(){var t=this.portalTarget;if(this.append){var e=t.$el;e.parentNode.removeChild(e)}t.$destroy()},render:function(t){if(!this.portalTarget)return console.warn("[portal-vue] Target wasn't mounted"),t();if(!this.$scopedSlots.manual){var e=l(this.$props,b);return t(m,{props:e,attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}var n=this.$scopedSlots.manual({to:this.to});return Array.isArray(n)&&(n=n[0]),n||t()}});e.ZL=m,e.mf=v,e.g7=p},5606:t=>{var e,n,i=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===r||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:r}catch(t){e=r}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(t){n=o}}();var s,l=[],c=!1,u=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&h())}function h(){if(!c){var t=a(d);c=!0;for(var e=l.length;e;){for(s=l,l=[];++u<e;)s&&s[u].run();u=-1,e=l.length}s=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{return n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function f(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new p(t,e)),1!==l.length||c||a(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=f,i.addListener=f,i.once=f,i.off=f,i.removeListener=f,i.removeAllListeners=f,i.emit=f,i.prependListener=f,i.prependOnceListener=f,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},2051:(t,e,n)=>{var i;!function(){"use strict";function r(t,e){if(!(this instanceof r))return new r(t,e);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&this._initFormat(e),this.clear()}function o(t,e){t.bbox=a(t,0,t.children.length,e)}function a(t,e,n,i){for(var r,o=s(),a=e;a<n;a++)r=t.children[a],l(o,t.leaf?i(r):r.bbox);return o}function s(){return[1/0,1/0,-1/0,-1/0]}function l(t,e){return t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t}function c(t,e){return t.bbox[0]-e.bbox[0]}function u(t,e){return t.bbox[1]-e.bbox[1]}function d(t){return(t[2]-t[0])*(t[3]-t[1])}function h(t){return t[2]-t[0]+(t[3]-t[1])}function p(t,e){return t[0]<=e[0]&&t[1]<=e[1]&&e[2]<=t[2]&&e[3]<=t[3]}function f(t,e){return e[0]<=t[2]&&e[1]<=t[3]&&e[2]>=t[0]&&e[3]>=t[1]}function m(t,e,n,i,r){for(var o,a=[e,n];a.length;)(n=a.pop())-(e=a.pop())<=i||(v(t,e,n,o=e+Math.ceil((n-e)/i/2)*i,r),a.push(e,o,o,n))}function v(t,e,n,i,r){for(var o,a,s,l,c,u,d;n>e;){for(n-e>600&&(o=n-e+1,a=i-e+1,s=Math.log(o),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(o-l)/o)*(a-o/2<0?-1:1),v(t,Math.max(e,Math.floor(i-a*l/o+c)),Math.min(n,Math.floor(i+(o-a)*l/o+c)),i,r)),u=t[i],a=e,d=n,g(t,e,i),r(t[n],u)>0&&g(t,e,n);a<d;){for(g(t,a,d),a++,d--;r(t[a],u)<0;)a++;for(;r(t[d],u)>0;)d--}0===r(t[e],u)?g(t,e,d):g(t,++d,n),d<=i&&(e=d+1),i<=d&&(n=d-1)}}function g(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}r.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,n=[],i=this.toBBox;if(!f(t,e.bbox))return n;for(var r,o,a,s,l=[];e;){for(r=0,o=e.children.length;r<o;r++)a=e.children[r],f(t,s=e.leaf?i(a):a.bbox)&&(e.leaf?n.push(a):p(t,s)?this._all(a,n):l.push(a));e=l.pop()}return n},collides:function(t){var e=this.data,n=this.toBBox;if(!f(t,e.bbox))return!1;for(var i,r,o,a,s=[];e;){for(i=0,r=e.children.length;i<r;i++)if(o=e.children[i],f(t,a=e.leaf?n(o):o.bbox)){if(e.leaf||p(t,a))return!0;s.push(o)}e=s.pop()}return!1},load:function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}var i=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===i.height)this._splitRoot(this.data,i);else{if(this.data.height<i.height){var r=this.data;this.data=i,i=r}this._insert(i,this.data.height-i.height-1,!0)}else this.data=i;return this},insert:function(t){return t&&this._insert(t,this.data.height-1),this},clear:function(){return this.data={children:[],height:1,bbox:s(),leaf:!0},this},remove:function(t){if(!t)return this;for(var e,n,i,r,o=this.data,a=this.toBBox(t),s=[],l=[];o||s.length;){if(o||(o=s.pop(),n=s[s.length-1],e=l.pop(),r=!0),o.leaf&&-1!==(i=o.children.indexOf(t)))return o.children.splice(i,1),s.push(o),this._condense(s),this;r||o.leaf||!p(o.bbox,a)?n?(e++,o=n.children[e],r=!1):o=null:(s.push(o),l.push(e),e=0,n=o,o=o.children[0])}return this},toBBox:function(t){return t},compareMinX:function(t,e){return t[0]-e[0]},compareMinY:function(t,e){return t[1]-e[1]},toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},_all:function(t,e){for(var n=[];t;)t.leaf?e.push.apply(e,t.children):n.push.apply(n,t.children),t=n.pop();return e},_build:function(t,e,n,i){var r,a=n-e+1,s=this._maxEntries;if(a<=s)return o(r={children:t.slice(e,n+1),height:1,bbox:null,leaf:!0},this.toBBox),r;i||(i=Math.ceil(Math.log(a)/Math.log(s)),s=Math.ceil(a/Math.pow(s,i-1))),r={children:[],height:i,bbox:null,leaf:!1};var l,c,u,d,h=Math.ceil(a/s),p=h*Math.ceil(Math.sqrt(s));for(m(t,e,n,p,this.compareMinX),l=e;l<=n;l+=p)for(m(t,l,u=Math.min(l+p-1,n),h,this.compareMinY),c=l;c<=u;c+=h)d=Math.min(c+h-1,u),r.children.push(this._build(t,c,d,i-1));return o(r,this.toBBox),r},_chooseSubtree:function(t,e,n,i){for(var r,o,a,s,l,c,u,h,p,f;i.push(e),!e.leaf&&i.length-1!==n;){for(u=h=1/0,r=0,o=e.children.length;r<o;r++)l=d((a=e.children[r]).bbox),p=t,f=a.bbox,(c=(Math.max(f[2],p[2])-Math.min(f[0],p[0]))*(Math.max(f[3],p[3])-Math.min(f[1],p[1]))-l)<h?(h=c,u=l<u?l:u,s=a):c===h&&l<u&&(u=l,s=a);e=s||e.children[0]}return e},_insert:function(t,e,n){var i=this.toBBox,r=n?t.bbox:i(t),o=[],a=this._chooseSubtree(r,this.data,e,o);for(a.children.push(t),l(a.bbox,r);e>=0&&o[e].children.length>this._maxEntries;)this._split(o,e),e--;this._adjustParentBBoxes(r,o,e)},_split:function(t,e){var n=t[e],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);var a=this._chooseSplitIndex(n,r,i),s={children:n.children.splice(a,n.children.length-a),height:n.height,bbox:null,leaf:!1};n.leaf&&(s.leaf=!0),o(n,this.toBBox),o(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(n,s)},_splitRoot:function(t,e){this.data={children:[t,e],height:t.height+1,bbox:null,leaf:!1},o(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,n){var i,r,o,s,l,c,u,h,p,f,m,v,g,b;for(c=u=1/0,i=e;i<=n-e;i++)r=a(t,0,i,this.toBBox),o=a(t,i,n,this.toBBox),p=r,f=o,m=void 0,v=void 0,g=void 0,b=void 0,m=Math.max(p[0],f[0]),v=Math.max(p[1],f[1]),g=Math.min(p[2],f[2]),b=Math.min(p[3],f[3]),s=Math.max(0,g-m)*Math.max(0,b-v),l=d(r)+d(o),s<c?(c=s,h=i,u=l<u?l:u):s===c&&l<u&&(u=l,h=i);return h},_chooseSplitAxis:function(t,e,n){var i=t.leaf?this.compareMinX:c,r=t.leaf?this.compareMinY:u;this._allDistMargin(t,e,n,i)<this._allDistMargin(t,e,n,r)&&t.children.sort(i)},_allDistMargin:function(t,e,n,i){t.children.sort(i);var r,o,s=this.toBBox,c=a(t,0,e,s),u=a(t,n-e,n,s),d=h(c)+h(u);for(r=e;r<n-e;r++)o=t.children[r],l(c,t.leaf?s(o):o.bbox),d+=h(c);for(r=n-e-1;r>=e;r--)o=t.children[r],l(u,t.leaf?s(o):o.bbox),d+=h(u);return d},_adjustParentBBoxes:function(t,e,n){for(var i=n;i>=0;i--)l(e[i].bbox,t)},_condense:function(t){for(var e,n=t.length-1;n>=0;n--)0===t[n].children.length?n>0?(e=t[n-1].children).splice(e.indexOf(t[n]),1):this.clear():o(t[n],this.toBBox)},_initFormat:function(t){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(t[0])),this.compareMinY=new Function("a","b",e.join(t[1])),this.toBBox=new Function("a","return [a"+t.join(", a")+"];")}},void 0===(i=function(){return r}.call(e,n,e,t))||(t.exports=i)}()},246:(t,e,n)=>{"use strict";function i(t){return i="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},i(t)}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o.apply(this,arguments)}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){r(t,e,n[e])}))}return t}function s(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function l(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.r(e),n.d(e,{MultiDrag:()=>ye,Sortable:()=>Bt,Swap:()=>le,default:()=>xe});function c(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var u=c(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),d=c(/Edge/i),h=c(/firefox/i),p=c(/safari/i)&&!c(/chrome/i)&&!c(/android/i),f=c(/iP(ad|od|hone)/i),m=c(/chrome/i)&&c(/android/i),v={capture:!1,passive:!1};function g(t,e,n){t.addEventListener(e,n,!u&&v)}function b(t,e,n){t.removeEventListener(e,n,!u&&v)}function y(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function _(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function w(t,e,n,i){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&y(t,e):y(t,e))||i&&t===n)return t;if(t===n)break}while(t=_(t))}return null}var x,C=/\s+/g;function S(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var i=(" "+t.className+" ").replace(C," ").replace(" "+e+" "," ");t.className=(i+(n?" "+e:"")).replace(C," ")}}function E(t,e,n){var i=t&&t.style;if(i){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in i||-1!==e.indexOf("webkit")||(e="-webkit-"+e),i[e]=n+("string"==typeof n?"":"px")}}function T(t,e){var n="";if("string"==typeof t)n=t;else do{var i=E(t,"transform");i&&"none"!==i&&(n=i+" "+n)}while(!e&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function O(t,e,n){if(t){var i=t.getElementsByTagName(e),r=0,o=i.length;if(n)for(;r<o;r++)n(i[r],r);return i}return[]}function k(){var t=document.scrollingElement;return t||document.documentElement}function A(t,e,n,i,r){if(t.getBoundingClientRect||t===window){var o,a,s,l,c,d,h;if(t!==window&&t!==k()?(a=(o=t.getBoundingClientRect()).top,s=o.left,l=o.bottom,c=o.right,d=o.height,h=o.width):(a=0,s=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,h=window.innerWidth),(e||n)&&t!==window&&(r=r||t.parentNode,!u))do{if(r&&r.getBoundingClientRect&&("none"!==E(r,"transform")||n&&"static"!==E(r,"position"))){var p=r.getBoundingClientRect();a-=p.top+parseInt(E(r,"border-top-width")),s-=p.left+parseInt(E(r,"border-left-width")),l=a+o.height,c=s+o.width;break}}while(r=r.parentNode);if(i&&t!==window){var f=T(r||t),m=f&&f.a,v=f&&f.d;f&&(l=(a/=v)+(d/=v),c=(s/=m)+(h/=m))}return{top:a,left:s,bottom:l,right:c,width:h,height:d}}}function P(t,e,n){for(var i=I(t,!0),r=A(t)[e];i;){var o=A(i)[n];if(!("top"===n||"left"===n?r>=o:r<=o))return i;if(i===k())break;i=I(i,!1)}return!1}function M(t,e,n){for(var i=0,r=0,o=t.children;r<o.length;){if("none"!==o[r].style.display&&o[r]!==Bt.ghost&&o[r]!==Bt.dragged&&w(o[r],n.draggable,t,!1)){if(i===e)return o[r];i++}r++}return null}function L(t,e){for(var n=t.lastElementChild;n&&(n===Bt.ghost||"none"===E(n,"display")||e&&!y(n,e));)n=n.previousElementSibling;return n||null}function D(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Bt.clone||e&&!y(t,e)||n++;return n}function R(t){var e=0,n=0,i=k();if(t)do{var r=T(t),o=r.a,a=r.d;e+=t.scrollLeft*o,n+=t.scrollTop*a}while(t!==i&&(t=t.parentNode));return[e,n]}function I(t,e){if(!t||!t.getBoundingClientRect)return k();var n=t,i=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=E(n);if(n.clientWidth<n.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!n.getBoundingClientRect||n===document.body)return k();if(i||e)return n;i=!0}}}while(n=n.parentNode);return k()}function j(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function N(t,e){return function(){if(!x){var n=arguments;1===n.length?t.call(this,n[0]):t.apply(this,n),x=setTimeout((function(){x=void 0}),e)}}}function F(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function z(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function B(t,e){E(t,"position","absolute"),E(t,"top",e.top),E(t,"left",e.left),E(t,"width",e.width),E(t,"height",e.height)}function $(t){E(t,"position",""),E(t,"top",""),E(t,"left",""),E(t,"width",""),E(t,"height","")}var U="Sortable"+(new Date).getTime();function H(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(t){if("none"!==E(t,"display")&&t!==Bt.ghost){e.push({target:t,rect:A(t)});var n=a({},e[e.length-1].rect);if(t.thisAnimationDuration){var i=T(t,!0);i&&(n.top-=i.f,n.left-=i.e)}t.fromRect=n}}))},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var i in e)if(e.hasOwnProperty(i)&&e[i]===t[n][i])return Number(n);return-1}(e,{target:t}),1)},animateAll:function(n){var i=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof n&&n());var r=!1,o=0;e.forEach((function(t){var e=0,n=t.target,a=n.fromRect,s=A(n),l=n.prevFromRect,c=n.prevToRect,u=t.rect,d=T(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&j(l,s)&&!j(a,s)&&(u.top-s.top)/(u.left-s.left)==(a.top-s.top)/(a.left-s.left)&&(e=function(t,e,n,i){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*i.animation}(u,l,c,i.options)),j(s,a)||(n.prevFromRect=a,n.prevToRect=s,e||(e=i.options.animation),i.animate(n,u,s,e)),e&&(r=!0,o=Math.max(o,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),e),n.thisAnimationDuration=e)})),clearTimeout(t),r?t=setTimeout((function(){"function"==typeof n&&n()}),o):"function"==typeof n&&n(),e=[]},animate:function(t,e,n,i){if(i){E(t,"transition",""),E(t,"transform","");var r=T(this.el),o=r&&r.a,a=r&&r.d,s=(e.left-n.left)/(o||1),l=(e.top-n.top)/(a||1);t.animatingX=!!s,t.animatingY=!!l,E(t,"transform","translate3d("+s+"px,"+l+"px,0)"),function(t){t.offsetWidth}(t),E(t,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),E(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){E(t,"transition",""),E(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),i)}}}}var V=[],Y={initializeByDefault:!0},q={mount:function(t){for(var e in Y)Y.hasOwnProperty(e)&&!(e in t)&&(t[e]=Y[e]);V.push(t)},pluginEvent:function(t,e,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var r=t+"Global";V.forEach((function(i){e[i.pluginName]&&(e[i.pluginName][r]&&e[i.pluginName][r](a({sortable:e},n)),e.options[i.pluginName]&&e[i.pluginName][t]&&e[i.pluginName][t](a({sortable:e},n)))}))},initializePlugins:function(t,e,n,i){for(var r in V.forEach((function(i){var r=i.pluginName;if(t.options[r]||i.initializeByDefault){var a=new i(t,e,t.options);a.sortable=t,a.options=t.options,t[r]=a,o(n,a.defaults)}})),t.options)if(t.options.hasOwnProperty(r)){var a=this.modifyOption(t,r,t.options[r]);void 0!==a&&(t.options[r]=a)}},getEventProperties:function(t,e){var n={};return V.forEach((function(i){"function"==typeof i.eventProperties&&o(n,i.eventProperties.call(e[i.pluginName],t))})),n},modifyOption:function(t,e,n){var i;return V.forEach((function(r){t[r.pluginName]&&r.optionListeners&&"function"==typeof r.optionListeners[e]&&(i=r.optionListeners[e].call(t[r.pluginName],n))})),i}};function W(t){var e=t.sortable,n=t.rootEl,i=t.name,r=t.targetEl,o=t.cloneEl,s=t.toEl,l=t.fromEl,c=t.oldIndex,h=t.newIndex,p=t.oldDraggableIndex,f=t.newDraggableIndex,m=t.originalEvent,v=t.putSortable,g=t.extraEventProperties;if(e=e||n&&n[U]){var b,y=e.options,_="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||u||d?(b=document.createEvent("Event")).initEvent(i,!0,!0):b=new CustomEvent(i,{bubbles:!0,cancelable:!0}),b.to=s||n,b.from=l||n,b.item=r||n,b.clone=o,b.oldIndex=c,b.newIndex=h,b.oldDraggableIndex=p,b.newDraggableIndex=f,b.originalEvent=m,b.pullMode=v?v.lastPutMode:void 0;var w=a({},g,q.getEventProperties(i,e));for(var x in w)b[x]=w[x];n&&n.dispatchEvent(b),y[_]&&y[_].call(e,b)}}var G=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.evt,r=s(n,["evt"]);q.pluginEvent.bind(Bt)(t,e,a({dragEl:K,parentEl:Z,ghostEl:J,rootEl:Q,nextEl:tt,lastDownEl:et,cloneEl:nt,cloneHidden:it,dragStarted:vt,putSortable:ct,activeSortable:Bt.active,originalEvent:i,oldIndex:rt,oldDraggableIndex:at,newIndex:ot,newDraggableIndex:st,hideGhostForTarget:jt,unhideGhostForTarget:Nt,cloneNowHidden:function(){it=!0},cloneNowShown:function(){it=!1},dispatchSortableEvent:function(t){X({sortable:e,name:t,originalEvent:i})}},r))};function X(t){W(a({putSortable:ct,cloneEl:nt,targetEl:K,rootEl:Q,oldIndex:rt,oldDraggableIndex:at,newIndex:ot,newDraggableIndex:st},t))}var K,Z,J,Q,tt,et,nt,it,rt,ot,at,st,lt,ct,ut,dt,ht,pt,ft,mt,vt,gt,bt,yt,_t,wt=!1,xt=!1,Ct=[],St=!1,Et=!1,Tt=[],Ot=!1,kt=[],At="undefined"!=typeof document,Pt=f,Mt=d||u?"cssFloat":"float",Lt=At&&!m&&!f&&"draggable"in document.createElement("div"),Dt=function(){if(At){if(u)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Rt=function(t,e){var n=E(t),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=M(t,0,e),o=M(t,1,e),a=r&&E(r),s=o&&E(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+A(r).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+A(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!o||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=i&&"none"===n[Mt]||o&&"none"===n[Mt]&&l+c>i)?"vertical":"horizontal"},It=function(t){function e(t,n){return function(i,r,o,a){var s=i.options.group.name&&r.options.group.name&&i.options.group.name===r.options.group.name;if(null==t&&(n||s))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(i,r,o,a),n)(i,r,o,a);var l=(n?i:r).options.group.name;return!0===t||"string"==typeof t&&t===l||t.join&&t.indexOf(l)>-1}}var n={},r=t.group;r&&"object"==i(r)||(r={name:r}),n.name=r.name,n.checkPull=e(r.pull,!0),n.checkPut=e(r.put),n.revertClone=r.revertClone,t.group=n},jt=function(){!Dt&&J&&E(J,"display","none")},Nt=function(){!Dt&&J&&E(J,"display","")};At&&document.addEventListener("click",(function(t){if(xt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),xt=!1,!1}),!0);var Ft=function(t){if(K){t=t.touches?t.touches[0]:t;var e=(r=t.clientX,o=t.clientY,Ct.some((function(t){if(!L(t)){var e=A(t),n=t[U].options.emptyInsertThreshold,i=r>=e.left-n&&r<=e.right+n,s=o>=e.top-n&&o<=e.bottom+n;return n&&i&&s?a=t:void 0}})),a);if(e){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[U]._onDragOver(n)}}var r,o,a},zt=function(t){K&&K.parentNode[U]._isOutsideThisEl(t.target)};function Bt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=o({},e),t[U]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Rt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Bt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var i in q.initializePlugins(this,t,n),n)!(i in e)&&(e[i]=n[i]);for(var r in It(e),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!e.forceFallback&&Lt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?g(t,"pointerdown",this._onTapStart):(g(t,"mousedown",this._onTapStart),g(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(g(t,"dragover",this),g(t,"dragenter",this)),Ct.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),o(this,H())}function $t(t,e,n,i,r,o,a,s){var l,c,h=t[U],p=h.options.onMove;return!window.CustomEvent||u||d?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=e,l.from=t,l.dragged=n,l.draggedRect=i,l.related=r||e,l.relatedRect=o||A(e),l.willInsertAfter=s,l.originalEvent=a,t.dispatchEvent(l),p&&(c=p.call(h,l,a)),c}function Ut(t){t.draggable=!1}function Ht(){Ot=!1}function Vt(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,i=0;n--;)i+=e.charCodeAt(n);return i.toString(36)}function Yt(t){return setTimeout(t,0)}function qt(t){return clearTimeout(t)}Bt.prototype={constructor:Bt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(gt=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,K):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,i=this.options,r=i.preventOnFilter,o=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(a||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=i.filter;if(function(t){kt.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var i=e[n];i.checked&&kt.push(i)}}(n),!K&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||i.disabled||l.isContentEditable||(s=w(s,i.draggable,n,!1))&&s.animated||et===s)){if(rt=D(s),at=D(s,i.draggable),"function"==typeof c){if(c.call(this,t,s,this))return X({sortable:e,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),G("filter",e,{evt:t}),void(r&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(i){if(i=w(l,i.trim(),n,!1))return X({sortable:e,rootEl:i,name:"filter",targetEl:s,fromEl:n,toEl:n}),G("filter",e,{evt:t}),!0}))))return void(r&&t.cancelable&&t.preventDefault());i.handle&&!w(l,i.handle,n,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,e,n){var i,r=this,o=r.el,a=r.options,s=o.ownerDocument;if(n&&!K&&n.parentNode===o){var l=A(n);if(Q=o,Z=(K=n).parentNode,tt=K.nextSibling,et=n,lt=a.group,Bt.dragged=K,ut={target:K,clientX:(e||t).clientX,clientY:(e||t).clientY},ft=ut.clientX-l.left,mt=ut.clientY-l.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,K.style["will-change"]="all",i=function(){G("delayEnded",r,{evt:t}),Bt.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!h&&r.nativeDraggable&&(K.draggable=!0),r._triggerDragStart(t,e),X({sortable:r,name:"choose",originalEvent:t}),S(K,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){O(K,t.trim(),Ut)})),g(s,"dragover",Ft),g(s,"mousemove",Ft),g(s,"touchmove",Ft),g(s,"mouseup",r._onDrop),g(s,"touchend",r._onDrop),g(s,"touchcancel",r._onDrop),h&&this.nativeDraggable&&(this.options.touchStartThreshold=4,K.draggable=!0),G("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(d||u))i();else{if(Bt.eventCanceled)return void this._onDrop();g(s,"mouseup",r._disableDelayedDrag),g(s,"touchend",r._disableDelayedDrag),g(s,"touchcancel",r._disableDelayedDrag),g(s,"mousemove",r._delayedDragTouchMoveHandler),g(s,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&g(s,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(i,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){K&&Ut(K),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;b(t,"mouseup",this._disableDelayedDrag),b(t,"touchend",this._disableDelayedDrag),b(t,"touchcancel",this._disableDelayedDrag),b(t,"mousemove",this._delayedDragTouchMoveHandler),b(t,"touchmove",this._delayedDragTouchMoveHandler),b(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?g(document,"pointermove",this._onTouchMove):g(document,e?"touchmove":"mousemove",this._onTouchMove):(g(K,"dragend",this),g(Q,"dragstart",this._onDragStart));try{document.selection?Yt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(wt=!1,Q&&K){G("dragStarted",this,{evt:e}),this.nativeDraggable&&g(document,"dragover",zt);var n=this.options;!t&&S(K,n.dragClass,!1),S(K,n.ghostClass,!0),Bt.active=this,t&&this._appendGhost(),X({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(dt){this._lastX=dt.clientX,this._lastY=dt.clientY,jt();for(var t=document.elementFromPoint(dt.clientX,dt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(dt.clientX,dt.clientY))!==e;)e=t;if(K.parentNode[U]._isOutsideThisEl(t),e)do{if(e[U]){if(e[U]._onDragOver({clientX:dt.clientX,clientY:dt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Nt()}},_onTouchMove:function(t){if(ut){var e=this.options,n=e.fallbackTolerance,i=e.fallbackOffset,r=t.touches?t.touches[0]:t,o=J&&T(J,!0),a=J&&o&&o.a,s=J&&o&&o.d,l=Pt&&_t&&R(_t),c=(r.clientX-ut.clientX+i.x)/(a||1)+(l?l[0]-Tt[0]:0)/(a||1),u=(r.clientY-ut.clientY+i.y)/(s||1)+(l?l[1]-Tt[1]:0)/(s||1);if(!Bt.active&&!wt){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(J){o?(o.e+=c-(ht||0),o.f+=u-(pt||0)):o={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");E(J,"webkitTransform",d),E(J,"mozTransform",d),E(J,"msTransform",d),E(J,"transform",d),ht=c,pt=u,dt=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!J){var t=this.options.fallbackOnBody?document.body:Q,e=A(K,!0,Pt,!0,t),n=this.options;if(Pt){for(_t=t;"static"===E(_t,"position")&&"none"===E(_t,"transform")&&_t!==document;)_t=_t.parentNode;_t!==document.body&&_t!==document.documentElement?(_t===document&&(_t=k()),e.top+=_t.scrollTop,e.left+=_t.scrollLeft):_t=k(),Tt=R(_t)}S(J=K.cloneNode(!0),n.ghostClass,!1),S(J,n.fallbackClass,!0),S(J,n.dragClass,!0),E(J,"transition",""),E(J,"transform",""),E(J,"box-sizing","border-box"),E(J,"margin",0),E(J,"top",e.top),E(J,"left",e.left),E(J,"width",e.width),E(J,"height",e.height),E(J,"opacity","0.8"),E(J,"position",Pt?"absolute":"fixed"),E(J,"zIndex","100000"),E(J,"pointerEvents","none"),Bt.ghost=J,t.appendChild(J),E(J,"transform-origin",ft/parseInt(J.style.width)*100+"% "+mt/parseInt(J.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,i=t.dataTransfer,r=n.options;G("dragStart",this,{evt:t}),Bt.eventCanceled?this._onDrop():(G("setupClone",this),Bt.eventCanceled||((nt=z(K)).draggable=!1,nt.style["will-change"]="",this._hideClone(),S(nt,this.options.chosenClass,!1),Bt.clone=nt),n.cloneId=Yt((function(){G("clone",n),Bt.eventCanceled||(n.options.removeCloneOnHide||Q.insertBefore(nt,K),n._hideClone(),X({sortable:n,name:"clone"}))})),!e&&S(K,r.dragClass,!0),e?(xt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(b(document,"mouseup",n._onDrop),b(document,"touchend",n._onDrop),b(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(n,i,K)),g(document,"drop",n),E(K,"transform","translateZ(0)")),wt=!0,n._dragStartId=Yt(n._dragStarted.bind(n,e,t)),g(document,"selectstart",n),vt=!0,p&&E(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,i,r,o=this.el,s=t.target,l=this.options,c=l.group,u=Bt.active,d=lt===c,h=l.sort,p=ct||u,f=this,m=!1;if(!Ot){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),s=w(s,l.draggable,o,!0),j("dragOver"),Bt.eventCanceled)return m;if(K.contains(t.target)||s.animated&&s.animatingX&&s.animatingY||f._ignoreWhileAnimating===s)return z(!1);if(xt=!1,u&&!l.disabled&&(d?h||(i=!Q.contains(K)):ct===this||(this.lastPutMode=lt.checkPull(this,u,K,t))&&c.checkPut(this,u,K,t))){if(r="vertical"===this._getDirection(t,s),e=A(K),j("dragOverValid"),Bt.eventCanceled)return m;if(i)return Z=Q,N(),this._hideClone(),j("revert"),Bt.eventCanceled||(tt?Q.insertBefore(K,tt):Q.appendChild(K)),z(!0);var v=L(o,l.draggable);if(!v||function(t,e,n){var i=A(L(n.el,n.options.draggable)),r=10;return e?t.clientX>i.right+r||t.clientX<=i.right&&t.clientY>i.bottom&&t.clientX>=i.left:t.clientX>i.right&&t.clientY>i.top||t.clientX<=i.right&&t.clientY>i.bottom+r}(t,r,this)&&!v.animated){if(v===K)return z(!1);if(v&&o===t.target&&(s=v),s&&(n=A(s)),!1!==$t(Q,o,K,e,s,n,t,!!s))return N(),o.appendChild(K),Z=o,B(),z(!0)}else if(s.parentNode===o){n=A(s);var g,b,y,_=K.parentNode!==o,x=!function(t,e,n){var i=n?t.left:t.top,r=n?t.right:t.bottom,o=n?t.width:t.height,a=n?e.left:e.top,s=n?e.right:e.bottom,l=n?e.width:e.height;return i===a||r===s||i+o/2===a+l/2}(K.animated&&K.toRect||e,s.animated&&s.toRect||n,r),C=r?"top":"left",T=P(s,"top","top")||P(K,"top","top"),O=T?T.scrollTop:void 0;if(gt!==s&&(b=n[C],St=!1,Et=!x&&l.invertSwap||_),g=function(t,e,n,i,r,o,a,s){var l=i?t.clientY:t.clientX,c=i?n.height:n.width,u=i?n.top:n.left,d=i?n.bottom:n.right,h=!1;if(!a)if(s&&yt<c*r){if(!St&&(1===bt?l>u+c*o/2:l<d-c*o/2)&&(St=!0),St)h=!0;else if(1===bt?l<u+yt:l>d-yt)return-bt}else if(l>u+c*(1-r)/2&&l<d-c*(1-r)/2)return function(t){return D(K)<D(t)?1:-1}(e);if((h=h||a)&&(l<u+c*o/2||l>d-c*o/2))return l>u+c/2?1:-1;return 0}(t,s,n,r,x?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Et,gt===s),0!==g){var k=D(K);do{k-=g,y=Z.children[k]}while(y&&("none"===E(y,"display")||y===J))}if(0===g||y===s)return z(!1);gt=s,bt=g;var M=s.nextElementSibling,R=!1,I=$t(Q,o,K,e,s,n,t,R=1===g);if(!1!==I)return 1!==I&&-1!==I||(R=1===I),Ot=!0,setTimeout(Ht,30),N(),R&&!M?o.appendChild(K):s.parentNode.insertBefore(K,R?M:s),T&&F(T,0,O-T.scrollTop),Z=K.parentNode,void 0===b||Et||(yt=Math.abs(b-A(s)[C])),B(),z(!0)}if(o.contains(K))return z(!1)}return!1}function j(l,c){G(l,f,a({evt:t,isOwner:d,axis:r?"vertical":"horizontal",revert:i,dragRect:e,targetRect:n,canSort:h,fromSortable:p,target:s,completed:z,onMove:function(n,i){return $t(Q,o,K,e,n,A(n),t,i)},changed:B},c))}function N(){j("dragOverAnimationCapture"),f.captureAnimationState(),f!==p&&p.captureAnimationState()}function z(e){return j("dragOverCompleted",{insertion:e}),e&&(d?u._hideClone():u._showClone(f),f!==p&&(S(K,ct?ct.options.ghostClass:u.options.ghostClass,!1),S(K,l.ghostClass,!0)),ct!==f&&f!==Bt.active?ct=f:f===Bt.active&&ct&&(ct=null),p===f&&(f._ignoreWhileAnimating=s),f.animateAll((function(){j("dragOverAnimationComplete"),f._ignoreWhileAnimating=null})),f!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(s===K&&!K.animated||s===o&&!s.animated)&&(gt=null),l.dragoverBubble||t.rootEl||s===document||(K.parentNode[U]._isOutsideThisEl(t.target),!e&&Ft(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function B(){ot=D(K),st=D(K,l.draggable),X({sortable:f,name:"change",toEl:o,newIndex:ot,newDraggableIndex:st,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){b(document,"mousemove",this._onTouchMove),b(document,"touchmove",this._onTouchMove),b(document,"pointermove",this._onTouchMove),b(document,"dragover",Ft),b(document,"mousemove",Ft),b(document,"touchmove",Ft)},_offUpEvents:function(){var t=this.el.ownerDocument;b(t,"mouseup",this._onDrop),b(t,"touchend",this._onDrop),b(t,"pointerup",this._onDrop),b(t,"touchcancel",this._onDrop),b(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;ot=D(K),st=D(K,n.draggable),G("drop",this,{evt:t}),Z=K&&K.parentNode,ot=D(K),st=D(K,n.draggable),Bt.eventCanceled||(wt=!1,Et=!1,St=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),qt(this.cloneId),qt(this._dragStartId),this.nativeDraggable&&(b(document,"drop",this),b(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),p&&E(document.body,"user-select",""),E(K,"transform",""),t&&(vt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),J&&J.parentNode&&J.parentNode.removeChild(J),(Q===Z||ct&&"clone"!==ct.lastPutMode)&&nt&&nt.parentNode&&nt.parentNode.removeChild(nt),K&&(this.nativeDraggable&&b(K,"dragend",this),Ut(K),K.style["will-change"]="",vt&&!wt&&S(K,ct?ct.options.ghostClass:this.options.ghostClass,!1),S(K,this.options.chosenClass,!1),X({sortable:this,name:"unchoose",toEl:Z,newIndex:null,newDraggableIndex:null,originalEvent:t}),Q!==Z?(ot>=0&&(X({rootEl:Z,name:"add",toEl:Z,fromEl:Q,originalEvent:t}),X({sortable:this,name:"remove",toEl:Z,originalEvent:t}),X({rootEl:Z,name:"sort",toEl:Z,fromEl:Q,originalEvent:t}),X({sortable:this,name:"sort",toEl:Z,originalEvent:t})),ct&&ct.save()):ot!==rt&&ot>=0&&(X({sortable:this,name:"update",toEl:Z,originalEvent:t}),X({sortable:this,name:"sort",toEl:Z,originalEvent:t})),Bt.active&&(null!=ot&&-1!==ot||(ot=rt,st=at),X({sortable:this,name:"end",toEl:Z,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){G("nulling",this),Q=K=Z=J=tt=nt=et=it=ut=dt=vt=ot=st=rt=at=gt=bt=ct=lt=Bt.dragged=Bt.ghost=Bt.clone=Bt.active=null,kt.forEach((function(t){t.checked=!0})),kt.length=ht=pt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":K&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,i=0,r=n.length,o=this.options;i<r;i++)w(t=n[i],o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||Vt(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach((function(t,i){var r=n.children[i];w(r,this.options.draggable,n,!1)&&(e[t]=r)}),this),t.forEach((function(t){e[t]&&(n.removeChild(e[t]),n.appendChild(e[t]))}))},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return w(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var i=q.modifyOption(this,t,e);n[t]=void 0!==i?i:e,"group"===t&&It(n)},destroy:function(){G("destroy",this);var t=this.el;t[U]=null,b(t,"mousedown",this._onTapStart),b(t,"touchstart",this._onTapStart),b(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(b(t,"dragover",this),b(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Ct.splice(Ct.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!it){if(G("hideClone",this),Bt.eventCanceled)return;E(nt,"display","none"),this.options.removeCloneOnHide&&nt.parentNode&&nt.parentNode.removeChild(nt),it=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(it){if(G("showClone",this),Bt.eventCanceled)return;Q.contains(K)&&!this.options.group.revertClone?Q.insertBefore(nt,K):tt?Q.insertBefore(nt,tt):Q.appendChild(nt),this.options.group.revertClone&&this.animate(K,nt),E(nt,"display",""),it=!1}}else this._hideClone()}},At&&g(document,"touchmove",(function(t){(Bt.active||wt)&&t.cancelable&&t.preventDefault()})),Bt.utils={on:g,off:b,css:E,find:O,is:function(t,e){return!!w(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},throttle:N,closest:w,toggleClass:S,clone:z,index:D,nextTick:Yt,cancelNextTick:qt,detectDirection:Rt,getChild:M},Bt.get=function(t){return t[U]},Bt.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Bt.utils=a({},Bt.utils,t.utils)),q.mount(t)}))},Bt.create=function(t,e){return new Bt(t,e)},Bt.version="1.10.2";var Wt,Gt,Xt,Kt,Zt,Jt,Qt=[],te=!1;function ee(){Qt.forEach((function(t){clearInterval(t.pid)})),Qt=[]}function ne(){clearInterval(Jt)}var ie,re=N((function(t,e,n,i){if(e.scroll){var r,o=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,s=e.scrollSensitivity,l=e.scrollSpeed,c=k(),u=!1;Gt!==n&&(Gt=n,ee(),Wt=e.scroll,r=e.scrollFn,!0===Wt&&(Wt=I(n,!0)));var d=0,h=Wt;do{var p=h,f=A(p),m=f.top,v=f.bottom,g=f.left,b=f.right,y=f.width,_=f.height,w=void 0,x=void 0,C=p.scrollWidth,S=p.scrollHeight,T=E(p),O=p.scrollLeft,P=p.scrollTop;p===c?(w=y<C&&("auto"===T.overflowX||"scroll"===T.overflowX||"visible"===T.overflowX),x=_<S&&("auto"===T.overflowY||"scroll"===T.overflowY||"visible"===T.overflowY)):(w=y<C&&("auto"===T.overflowX||"scroll"===T.overflowX),x=_<S&&("auto"===T.overflowY||"scroll"===T.overflowY));var M=w&&(Math.abs(b-o)<=s&&O+y<C)-(Math.abs(g-o)<=s&&!!O),L=x&&(Math.abs(v-a)<=s&&P+_<S)-(Math.abs(m-a)<=s&&!!P);if(!Qt[d])for(var D=0;D<=d;D++)Qt[D]||(Qt[D]={});Qt[d].vx==M&&Qt[d].vy==L&&Qt[d].el===p||(Qt[d].el=p,Qt[d].vx=M,Qt[d].vy=L,clearInterval(Qt[d].pid),0==M&&0==L||(u=!0,Qt[d].pid=setInterval(function(){i&&0===this.layer&&Bt.active._onTouchMove(Zt);var e=Qt[this.layer].vy?Qt[this.layer].vy*l:0,n=Qt[this.layer].vx?Qt[this.layer].vx*l:0;"function"==typeof r&&"continue"!==r.call(Bt.dragged.parentNode[U],n,e,t,Zt,Qt[this.layer].el)||F(Qt[this.layer].el,n,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&h!==c&&(h=I(h,!1)));te=u}}),30),oe=function(t){var e=t.originalEvent,n=t.putSortable,i=t.dragEl,r=t.activeSortable,o=t.dispatchSortableEvent,a=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(e){var l=n||r;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(u)&&(o("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function ae(){}function se(){}function le(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){var e=t.dragEl;ie=e},dragOverValid:function(t){var e=t.completed,n=t.target,i=t.onMove,r=t.activeSortable,o=t.changed,a=t.cancel;if(r.options.swap){var s=this.sortable.el,l=this.options;if(n&&n!==s){var c=ie;!1!==i(n)?(S(n,l.swapClass,!0),ie=n):ie=null,c&&c!==ie&&S(c,l.swapClass,!1)}o(),e(!0),a()}},drop:function(t){var e=t.activeSortable,n=t.putSortable,i=t.dragEl,r=n||this.sortable,o=this.options;ie&&S(ie,o.swapClass,!1),ie&&(o.swap||n&&n.options.swap)&&i!==ie&&(r.captureAnimationState(),r!==e&&e.captureAnimationState(),function(t,e){var n,i,r=t.parentNode,o=e.parentNode;if(!r||!o||r.isEqualNode(e)||o.isEqualNode(t))return;n=D(t),i=D(e),r.isEqualNode(o)&&n<i&&i++;r.insertBefore(e,r.children[n]),o.insertBefore(t,o.children[i])}(i,ie),r.animateAll(),r!==e&&e.animateAll())},nulling:function(){ie=null}},o(t,{pluginName:"swap",eventProperties:function(){return{swapItem:ie}}})}ae.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var i=M(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(e,i):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:oe},o(ae,{pluginName:"revertOnSpill"}),se.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:oe},o(se,{pluginName:"removeOnSpill"});var ce,ue,de,he,pe,fe=[],me=[],ve=!1,ge=!1,be=!1;function ye(){function t(t){for(var e in this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this));t.options.supportPointer?g(document,"pointerup",this._deselectMultiDrag):(g(document,"mouseup",this._deselectMultiDrag),g(document,"touchend",this._deselectMultiDrag)),g(document,"keydown",this._checkKeyDown),g(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,n){var i="";fe.length&&ue===t?fe.forEach((function(t,e){i+=(e?", ":"")+t.textContent})):i=n.textContent,e.setData("Text",i)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){var e=t.dragEl;de=e},delayEnded:function(){this.isMultiDrag=~fe.indexOf(de)},setupClone:function(t){var e=t.sortable,n=t.cancel;if(this.isMultiDrag){for(var i=0;i<fe.length;i++)me.push(z(fe[i])),me[i].sortableIndex=fe[i].sortableIndex,me[i].draggable=!1,me[i].style["will-change"]="",S(me[i],this.options.selectedClass,!1),fe[i]===de&&S(me[i],this.options.chosenClass,!1);e._hideClone(),n()}},clone:function(t){var e=t.sortable,n=t.rootEl,i=t.dispatchSortableEvent,r=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||fe.length&&ue===e&&(_e(!0,n),i("clone"),r()))},showClone:function(t){var e=t.cloneNowShown,n=t.rootEl,i=t.cancel;this.isMultiDrag&&(_e(!1,n),me.forEach((function(t){E(t,"display","")})),e(),pe=!1,i())},hideClone:function(t){var e=this,n=(t.sortable,t.cloneNowHidden),i=t.cancel;this.isMultiDrag&&(me.forEach((function(t){E(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)})),n(),pe=!0,i())},dragStartGlobal:function(t){t.sortable;!this.isMultiDrag&&ue&&ue.multiDrag._deselectMultiDrag(),fe.forEach((function(t){t.sortableIndex=D(t)})),fe=fe.sort((function(t,e){return t.sortableIndex-e.sortableIndex})),be=!0},dragStarted:function(t){var e=this,n=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){fe.forEach((function(t){t!==de&&E(t,"position","absolute")}));var i=A(de,!1,!0,!0);fe.forEach((function(t){t!==de&&B(t,i)})),ge=!0,ve=!0}n.animateAll((function(){ge=!1,ve=!1,e.options.animation&&fe.forEach((function(t){$(t)})),e.options.sort&&we()}))}},dragOver:function(t){var e=t.target,n=t.completed,i=t.cancel;ge&&~fe.indexOf(e)&&(n(!1),i())},revert:function(t){var e=t.fromSortable,n=t.rootEl,i=t.sortable,r=t.dragRect;fe.length>1&&(fe.forEach((function(t){i.addAnimationState({target:t,rect:ge?A(t):r}),$(t),t.fromRect=r,e.removeAnimationState(t)})),ge=!1,function(t,e){fe.forEach((function(n,i){var r=e.children[n.sortableIndex+(t?Number(i):0)];r?e.insertBefore(n,r):e.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(t){var e=t.sortable,n=t.isOwner,i=t.insertion,r=t.activeSortable,o=t.parentEl,a=t.putSortable,s=this.options;if(i){if(n&&r._hideClone(),ve=!1,s.animation&&fe.length>1&&(ge||!n&&!r.options.sort&&!a)){var l=A(de,!1,!0,!0);fe.forEach((function(t){t!==de&&(B(t,l),o.appendChild(t))})),ge=!0}if(!n)if(ge||we(),fe.length>1){var c=pe;r._showClone(e),r.options.animation&&!pe&&c&&me.forEach((function(t){r.addAnimationState({target:t,rect:he}),t.fromRect=he,t.thisAnimationDuration=null}))}else r._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,i=t.activeSortable;if(fe.forEach((function(t){t.thisAnimationDuration=null})),i.options.animation&&!n&&i.multiDrag.isMultiDrag){he=o({},e);var r=T(de,!0);he.top-=r.f,he.left-=r.e}},dragOverAnimationComplete:function(){ge&&(ge=!1,we())},drop:function(t){var e=t.originalEvent,n=t.rootEl,i=t.parentEl,r=t.sortable,o=t.dispatchSortableEvent,a=t.oldIndex,s=t.putSortable,l=s||this.sortable;if(e){var c=this.options,u=i.children;if(!be)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),S(de,c.selectedClass,!~fe.indexOf(de)),~fe.indexOf(de))fe.splice(fe.indexOf(de),1),ce=null,W({sortable:r,rootEl:n,name:"deselect",targetEl:de,originalEvt:e});else{if(fe.push(de),W({sortable:r,rootEl:n,name:"select",targetEl:de,originalEvt:e}),e.shiftKey&&ce&&r.el.contains(ce)){var d,h,p=D(ce),f=D(de);if(~p&&~f&&p!==f)for(f>p?(h=p,d=f):(h=f,d=p+1);h<d;h++)~fe.indexOf(u[h])||(S(u[h],c.selectedClass,!0),fe.push(u[h]),W({sortable:r,rootEl:n,name:"select",targetEl:u[h],originalEvt:e}))}else ce=de;ue=l}if(be&&this.isMultiDrag){if((i[U].options.sort||i!==n)&&fe.length>1){var m=A(de),v=D(de,":not(."+this.options.selectedClass+")");if(!ve&&c.animation&&(de.thisAnimationDuration=null),l.captureAnimationState(),!ve&&(c.animation&&(de.fromRect=m,fe.forEach((function(t){if(t.thisAnimationDuration=null,t!==de){var e=ge?A(t):m;t.fromRect=e,l.addAnimationState({target:t,rect:e})}}))),we(),fe.forEach((function(t){u[v]?i.insertBefore(t,u[v]):i.appendChild(t),v++})),a===D(de))){var g=!1;fe.forEach((function(t){t.sortableIndex===D(t)||(g=!0)})),g&&o("update")}fe.forEach((function(t){$(t)})),l.animateAll()}ue=l}(n===i||s&&"clone"!==s.lastPutMode)&&me.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=be=!1,me.length=0},destroyGlobal:function(){this._deselectMultiDrag(),b(document,"pointerup",this._deselectMultiDrag),b(document,"mouseup",this._deselectMultiDrag),b(document,"touchend",this._deselectMultiDrag),b(document,"keydown",this._checkKeyDown),b(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(void 0!==be&&be||ue!==this.sortable||t&&w(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;fe.length;){var e=fe[0];S(e,this.options.selectedClass,!1),fe.shift(),W({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},o(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[U];e&&e.options.multiDrag&&!~fe.indexOf(t)&&(ue&&ue!==e&&(ue.multiDrag._deselectMultiDrag(),ue=e),S(t,e.options.selectedClass,!0),fe.push(t))},deselect:function(t){var e=t.parentNode[U],n=fe.indexOf(t);e&&e.options.multiDrag&&~n&&(S(t,e.options.selectedClass,!1),fe.splice(n,1))}},eventProperties:function(){var t=this,e=[],n=[];return fe.forEach((function(i){var r;e.push({multiDragElement:i,index:i.sortableIndex}),r=ge&&i!==de?-1:ge?D(i,":not(."+t.options.selectedClass+")"):D(i),n.push({multiDragElement:i,index:r})})),{items:l(fe),clones:[].concat(me),oldIndicies:e,newIndicies:n}},optionListeners:{multiDragKey:function(t){return"ctrl"===(t=t.toLowerCase())?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function _e(t,e){me.forEach((function(n,i){var r=e.children[n.sortableIndex+(t?Number(i):0)];r?e.insertBefore(n,r):e.appendChild(n)}))}function we(){fe.forEach((function(t){t!==de&&t.parentNode&&t.parentNode.removeChild(t)}))}Bt.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?g(document,"dragover",this._handleAutoScroll):this.options.supportPointer?g(document,"pointermove",this._handleFallbackAutoScroll):e.touches?g(document,"touchmove",this._handleFallbackAutoScroll):g(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):(b(document,"pointermove",this._handleFallbackAutoScroll),b(document,"touchmove",this._handleFallbackAutoScroll),b(document,"mousemove",this._handleFallbackAutoScroll)),ne(),ee(),clearTimeout(x),x=void 0},nulling:function(){Zt=Gt=Wt=te=Jt=Xt=Kt=null,Qt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,i=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,o=document.elementFromPoint(i,r);if(Zt=t,e||d||u||p){re(t,this.options,o,e);var a=I(o,!0);!te||Jt&&i===Xt&&r===Kt||(Jt&&ne(),Jt=setInterval((function(){var o=I(document.elementFromPoint(i,r),!0);o!==a&&(a=o,ee()),re(t,n.options,o,e)}),10),Xt=i,Kt=r)}else{if(!this.options.bubbleScroll||I(o,!0)===k())return void ee();re(t,this.options,I(o,!1),!1)}}},o(t,{pluginName:"scroll",initializeByDefault:!0})}),Bt.mount(se,ae);const xe=Bt},1876:(t,e,n)=>{"use strict";var i=n(5072),r=n.n(i),o=n(9447),a={insert:"head",singleton:!1};r()(o.A,a),o.A.locals},7327:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var i=n(5072),r=n.n(i),o=n(412),a={insert:"head",singleton:!1};r()(o.A,a);const s=o.A.locals||{}},430:(t,e,n)=>{"use strict";var i=n(5072),r=n.n(i),o=n(3919),a={insert:"head",singleton:!1};r()(o.A,a),o.A.locals},5072:(t,e,n)=>{"use strict";var i,r=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function s(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function l(t,e){for(var n={},i=[],r=0;r<t.length;r++){var o=t[r],l=e.base?o[0]+e.base:o[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var d=s(u),h={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(a[d].references++,a[d].updater(h)):a.push({identifier:u,updater:v(h,e),references:1}),i.push(u)}return i}function c(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var r=n.nc;r&&(i.nonce=r)}if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var a=o(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var u,d=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function h(t,e,n,i){var r=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=d(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function p(t,e,n){var i=n.css,r=n.media,o=n.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var f=null,m=0;function v(t,e){var n,i,r;if(e.singleton){var o=m++;n=f||(f=c(e)),i=h.bind(null,n,o,!1),r=h.bind(null,n,o,!0)}else n=c(e),i=p.bind(null,n,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=r());var n=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<n.length;i++){var r=s(n[i]);a[r].references--}for(var o=l(t,e),c=0;c<n.length;c++){var u=s(n[c]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=o}}}},4948:function(t){t.exports=function(){"use strict";function t(e){return t="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},t(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function i(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},r.apply(this,arguments)}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function c(t,e,n){return c=l()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var r=new(Function.bind.apply(t,i));return n&&s(r,n.prototype),r},c.apply(null,arguments)}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?u(t):e}function h(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=a(t)););return t}function p(t,e,n){return p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=h(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}},p(t,e,n||t)}var f="SweetAlert2:",m=function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e},v=function(t){return Object.keys(t).map((function(e){return t[e]}))},g=function(t){return Array.prototype.slice.call(t)},b=function(t){console.warn("".concat(f," ").concat(t))},y=function(t){console.error("".concat(f," ").concat(t))},_=[],w=function(t){-1===_.indexOf(t)&&(_.push(t),b(t))},x=function(t,e){w('"'.concat(t,'" is deprecated and will be removed in the next major release. Please use "').concat(e,'" instead.'))},C=function(t){return"function"==typeof t?t():t},S=function(t){return t&&Promise.resolve(t)===t},E=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),T=function(e){var n={};return"object"===t(e[0])?r(n,e[0]):["title","html","type"].forEach((function(i,r){switch(t(e[r])){case"string":n[i]=e[r];break;case"undefined":break;default:y("Unexpected type of ".concat(i,'! Expected "string", got ').concat(t(e[r])))}})),n},O="swal2-",k=function(t){var e={};for(var n in t)e[t[n]]=O+t[n];return e},A=k(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","toast","toast-shown","toast-column","show","hide","noanimation","close","title","header","content","actions","confirm","cancel","footer","icon","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl"]),P=k(["success","warning","info","question","error"]),M={previousBodyPadding:null},L=function(t,e){return t.classList.contains(e)},D=function(t){g(t.classList).forEach((function(e){-1===v(A).indexOf(e)&&-1===v(P).indexOf(e)&&t.classList.remove(e)}))},R=function(e,n,i){if(D(e),n&&n[i]){if("string"!=typeof n[i]&&!n[i].forEach)return b("Invalid type of customClass.".concat(i,'! Expected string or iterable object, got "').concat(t(n[i]),'"'));z(e,n[i])}};function I(t,e){if(!e)return null;switch(e){case"select":case"textarea":case"file":return $(t,A[e]);case"checkbox":return t.querySelector(".".concat(A.checkbox," input"));case"radio":return t.querySelector(".".concat(A.radio," input:checked"))||t.querySelector(".".concat(A.radio," input:first-child"));case"range":return t.querySelector(".".concat(A.range," input"));default:return $(t,A.input)}}var j,N=function(t){if(t.focus(),"file"!==t.type){var e=t.value;t.value="",t.value=e}},F=function(t,e,n){t&&e&&("string"==typeof e&&(e=e.split(/\s+/).filter(Boolean)),e.forEach((function(e){t.forEach?t.forEach((function(t){n?t.classList.add(e):t.classList.remove(e)})):n?t.classList.add(e):t.classList.remove(e)})))},z=function(t,e){F(t,e,!0)},B=function(t,e){F(t,e,!1)},$=function(t,e){for(var n=0;n<t.childNodes.length;n++)if(L(t.childNodes[n],e))return t.childNodes[n]},U=function(t,e,n){n||0===parseInt(n)?t.style[e]="number"==typeof n?n+"px":n:t.style.removeProperty(e)},H=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";t.style.opacity="",t.style.display=e},V=function(t){t.style.opacity="",t.style.display="none"},Y=function(t,e,n){e?H(t,n):V(t)},q=function(t){return!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))},W=function(t){return!!(t.scrollHeight>t.clientHeight)},G=function(t){var e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),i=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||i>0},X=function(t,e){if("function"==typeof t.contains)return t.contains(e)},K=function(){return document.body.querySelector("."+A.container)},Z=function(t){var e=K();return e?e.querySelector(t):null},J=function(t){return Z("."+t)},Q=function(){return J(A.popup)},tt=function(){var t=Q();return g(t.querySelectorAll("."+A.icon))},et=function(){var t=tt().filter((function(t){return q(t)}));return t.length?t[0]:null},nt=function(){return J(A.title)},it=function(){return J(A.content)},rt=function(){return J(A.image)},ot=function(){return J(A["progress-steps"])},at=function(){return J(A["validation-message"])},st=function(){return Z("."+A.actions+" ."+A.confirm)},lt=function(){return Z("."+A.actions+" ."+A.cancel)},ct=function(){return J(A.actions)},ut=function(){return J(A.header)},dt=function(){return J(A.footer)},ht=function(){return J(A.close)},pt='\n  a[href],\n  area[href],\n  input:not([disabled]),\n  select:not([disabled]),\n  textarea:not([disabled]),\n  button:not([disabled]),\n  iframe,\n  object,\n  embed,\n  [tabindex="0"],\n  [contenteditable],\n  audio[controls],\n  video[controls],\n  summary\n',ft=function(){var t=g(Q().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((function(t,e){return(t=parseInt(t.getAttribute("tabindex")))>(e=parseInt(e.getAttribute("tabindex")))?1:t<e?-1:0})),e=g(Q().querySelectorAll(pt)).filter((function(t){return"-1"!==t.getAttribute("tabindex")}));return m(t.concat(e)).filter((function(t){return q(t)}))},mt=function(){return!vt()&&!document.body.classList.contains(A["no-backdrop"])},vt=function(){return document.body.classList.contains(A["toast-shown"])},gt=function(){return Q().hasAttribute("data-loading")},bt=function(){return"undefined"==typeof window||"undefined"==typeof document},yt='\n <div aria-labelledby="'.concat(A.title,'" aria-describedby="').concat(A.content,'" class="').concat(A.popup,'" tabindex="-1">\n   <div class="').concat(A.header,'">\n     <ul class="').concat(A["progress-steps"],'"></ul>\n     <div class="').concat(A.icon," ").concat(P.error,'">\n       <span class="swal2-x-mark"><span class="swal2-x-mark-line-left"></span><span class="swal2-x-mark-line-right"></span></span>\n     </div>\n     <div class="').concat(A.icon," ").concat(P.question,'"></div>\n     <div class="').concat(A.icon," ").concat(P.warning,'"></div>\n     <div class="').concat(A.icon," ").concat(P.info,'"></div>\n     <div class="').concat(A.icon," ").concat(P.success,'">\n       <div class="swal2-success-circular-line-left"></div>\n       <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n       <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n       <div class="swal2-success-circular-line-right"></div>\n     </div>\n     <img class="').concat(A.image,'" />\n     <h2 class="').concat(A.title,'" id="').concat(A.title,'"></h2>\n     <button type="button" class="').concat(A.close,'"></button>\n   </div>\n   <div class="').concat(A.content,'">\n     <div id="').concat(A.content,'"></div>\n     <input class="').concat(A.input,'" />\n     <input type="file" class="').concat(A.file,'" />\n     <div class="').concat(A.range,'">\n       <input type="range" />\n       <output></output>\n     </div>\n     <select class="').concat(A.select,'"></select>\n     <div class="').concat(A.radio,'"></div>\n     <label for="').concat(A.checkbox,'" class="').concat(A.checkbox,'">\n       <input type="checkbox" />\n       <span class="').concat(A.label,'"></span>\n     </label>\n     <textarea class="').concat(A.textarea,'"></textarea>\n     <div class="').concat(A["validation-message"],'" id="').concat(A["validation-message"],'"></div>\n   </div>\n   <div class="').concat(A.actions,'">\n     <button type="button" class="').concat(A.confirm,'">OK</button>\n     <button type="button" class="').concat(A.cancel,'">Cancel</button>\n   </div>\n   <div class="').concat(A.footer,'">\n   </div>\n </div>\n').replace(/(^|\n)\s*/g,""),_t=function(){var t=K();t&&(t.parentNode.removeChild(t),B([document.documentElement,document.body],[A["no-backdrop"],A["toast-shown"],A["has-column"]]))},wt=function(t){yi.isVisible()&&j!==t.target.value&&yi.resetValidationMessage(),j=t.target.value},xt=function(){var t=it(),e=$(t,A.input),n=$(t,A.file),i=t.querySelector(".".concat(A.range," input")),r=t.querySelector(".".concat(A.range," output")),o=$(t,A.select),a=t.querySelector(".".concat(A.checkbox," input")),s=$(t,A.textarea);e.oninput=wt,n.onchange=wt,o.onchange=wt,a.onchange=wt,s.oninput=wt,i.oninput=function(t){wt(t),r.value=i.value},i.onchange=function(t){wt(t),i.nextSibling.value=i.value}},Ct=function(t){return"string"==typeof t?document.querySelector(t):t},St=function(t){var e=Q();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},Et=function(t){"rtl"===window.getComputedStyle(t).direction&&z(K(),A.rtl)},Tt=function(t){if(_t(),bt())y("SweetAlert2 requires document to initialize");else{var e=document.createElement("div");e.className=A.container,e.innerHTML=yt;var n=Ct(t.target);n.appendChild(e),St(t),Et(n),xt()}},Ot=function(e,n){e instanceof HTMLElement?n.appendChild(e):"object"===t(e)?kt(n,e):e&&(n.innerHTML=e)},kt=function(t,e){if(t.innerHTML="",0 in e)for(var n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},At=function(){if(bt())return!1;var t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&void 0!==t.style[n])return e[n];return!1}(),Pt=function(){if("ontouchstart"in window||navigator.msMaxTouchPoints)return 0;var t=document.createElement("div");t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e},Mt=function(t,e){var n=ct(),i=st(),r=lt();e.showConfirmButton||e.showCancelButton||V(n),R(n,e.customClass,"actions"),Dt(i,"confirm",e),Dt(r,"cancel",e),e.buttonsStyling?Lt(i,r,e):(B([i,r],A.styled),i.style.backgroundColor=i.style.borderLeftColor=i.style.borderRightColor="",r.style.backgroundColor=r.style.borderLeftColor=r.style.borderRightColor=""),e.reverseButtons&&i.parentNode.insertBefore(r,i)};function Lt(t,e,n){z([t,e],A.styled),n.confirmButtonColor&&(t.style.backgroundColor=n.confirmButtonColor),n.cancelButtonColor&&(e.style.backgroundColor=n.cancelButtonColor);var i=window.getComputedStyle(t).getPropertyValue("background-color");t.style.borderLeftColor=i,t.style.borderRightColor=i}function Dt(t,e,n){Y(t,n["showC"+e.substring(1)+"Button"],"inline-block"),t.innerHTML=n[e+"ButtonText"],t.setAttribute("aria-label",n[e+"ButtonAriaLabel"]),t.className=A[e],R(t,n.customClass,e+"Button"),z(t,n[e+"ButtonClass"])}function Rt(t,e){"string"==typeof e?t.style.background=e:e||z([document.documentElement,document.body],A["no-backdrop"])}function It(t,e){e in A?z(t,A[e]):(b('The "position" parameter is not valid, defaulting to "center"'),z(t,A.center))}function jt(t,e){if(e&&"string"==typeof e){var n="grow-"+e;n in A&&z(t,A[n])}}var Nt=function(t,e){var n=K();n&&(Rt(n,e.backdrop),!e.backdrop&&e.allowOutsideClick&&b('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),It(n,e.position),jt(n,e.grow),R(n,e.customClass,"container"),e.customContainerClass&&z(n,e.customContainerClass))},Ft={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},zt=["input","file","range","select","radio","checkbox","textarea"],Bt=function(t,e){var n=it(),i=Ft.innerParams.get(t),r=!i||e.input!==i.input;zt.forEach((function(t){var i=A[t],o=$(n,i);Ht(t,e.inputAttributes),o.className=i,r&&V(o)})),e.input&&(r&&$t(e),Vt(e))},$t=function(t){if(!Wt[t.input])return y('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(t.input,'"'));var e=qt(t.input),n=Wt[t.input](e,t);H(n),setTimeout((function(){N(n)}))},Ut=function(t){for(var e=0;e<t.attributes.length;e++){var n=t.attributes[e].name;-1===["type","value","style"].indexOf(n)&&t.removeAttribute(n)}},Ht=function(t,e){var n=I(it(),t);if(n)for(var i in Ut(n),e)"range"===t&&"placeholder"===i||n.setAttribute(i,e[i])},Vt=function(t){var e=qt(t.input);t.inputClass&&z(e,t.inputClass),t.customClass&&z(e,t.customClass.input)},Yt=function(t,e){t.placeholder&&!e.inputPlaceholder||(t.placeholder=e.inputPlaceholder)},qt=function(t){var e=A[t]?A[t]:A.input;return $(it(),e)},Wt={};Wt.text=Wt.email=Wt.password=Wt.number=Wt.tel=Wt.url=function(e,n){return"string"==typeof n.inputValue||"number"==typeof n.inputValue?e.value=n.inputValue:S(n.inputValue)||b('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(t(n.inputValue),'"')),Yt(e,n),e.type=n.input,e},Wt.file=function(t,e){return Yt(t,e),t},Wt.range=function(t,e){var n=t.querySelector("input"),i=t.querySelector("output");return n.value=e.inputValue,n.type=e.input,i.value=e.inputValue,t},Wt.select=function(t,e){if(t.innerHTML="",e.inputPlaceholder){var n=document.createElement("option");n.innerHTML=e.inputPlaceholder,n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return t},Wt.radio=function(t){return t.innerHTML="",t},Wt.checkbox=function(t,e){var n=I(it(),"checkbox");return n.value=1,n.id=A.checkbox,n.checked=Boolean(e.inputValue),t.querySelector("span").innerHTML=e.inputPlaceholder,t},Wt.textarea=function(t,e){if(t.value=e.inputValue,Yt(t,e),"MutationObserver"in window){var n=parseInt(window.getComputedStyle(Q()).width),i=parseInt(window.getComputedStyle(Q()).paddingLeft)+parseInt(window.getComputedStyle(Q()).paddingRight);new MutationObserver((function(){var e=t.offsetWidth+i;Q().style.width=e>n?e+"px":null})).observe(t,{attributes:!0,attributeFilter:["style"]})}return t};var Gt=function(t,e){var n=it().querySelector("#"+A.content);e.html?(Ot(e.html,n),H(n,"block")):e.text?(n.textContent=e.text,H(n,"block")):V(n),Bt(t,e),R(it(),e.customClass,"content")},Xt=function(t,e){var n=dt();Y(n,e.footer),e.footer&&Ot(e.footer,n),R(n,e.customClass,"footer")},Kt=function(t,e){var n=ht();n.innerHTML=e.closeButtonHtml,R(n,e.customClass,"closeButton"),Y(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},Zt=function(t,e){var n=Ft.innerParams.get(t);if(n&&e.type===n.type&&et())R(et(),e.customClass,"icon");else if(Jt(),e.type)if(Qt(),-1!==Object.keys(P).indexOf(e.type)){var i=Z(".".concat(A.icon,".").concat(P[e.type]));H(i),R(i,e.customClass,"icon"),F(i,"swal2-animate-".concat(e.type,"-icon"),e.animation)}else y('Unknown type! Expected "success", "error", "warning", "info" or "question", got "'.concat(e.type,'"'))},Jt=function(){for(var t=tt(),e=0;e<t.length;e++)V(t[e])},Qt=function(){for(var t=Q(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),i=0;i<n.length;i++)n[i].style.backgroundColor=e},te=function(t,e){var n=rt();if(!e.imageUrl)return V(n);H(n),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),U(n,"width",e.imageWidth),U(n,"height",e.imageHeight),n.className=A.image,R(n,e.customClass,"image"),e.imageClass&&z(n,e.imageClass)},ee=function(t){var e=document.createElement("li");return z(e,A["progress-step"]),e.innerHTML=t,e},ne=function(t){var e=document.createElement("li");return z(e,A["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},ie=function(t,e){var n=ot();if(!e.progressSteps||0===e.progressSteps.length)return V(n);H(n),n.innerHTML="";var i=parseInt(null===e.currentProgressStep?yi.getQueueStep():e.currentProgressStep);i>=e.progressSteps.length&&b("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((function(t,r){var o=ee(t);if(n.appendChild(o),r===i&&z(o,A["active-progress-step"]),r!==e.progressSteps.length-1){var a=ne(t);n.appendChild(a)}}))},re=function(t,e){var n=nt();Y(n,e.title||e.titleText),e.title&&Ot(e.title,n),e.titleText&&(n.innerText=e.titleText),R(n,e.customClass,"title")},oe=function(t,e){var n=ut();R(n,e.customClass,"header"),ie(t,e),Zt(t,e),te(t,e),re(t,e),Kt(t,e)},ae=function(t,e){var n=Q();U(n,"width",e.width),U(n,"padding",e.padding),e.background&&(n.style.background=e.background),n.className=A.popup,e.toast?(z([document.documentElement,document.body],A["toast-shown"]),z(n,A.toast)):z(n,A.modal),R(n,e.customClass,"popup"),"string"==typeof e.customClass&&z(n,e.customClass),F(n,A.noanimation,!e.animation)},se=function(t,e){ae(t,e),Nt(t,e),oe(t,e),Gt(t,e),Mt(t,e),Xt(t,e),"function"==typeof e.onRender&&e.onRender(Q())},le=function(){return q(Q())},ce=function(){return st()&&st().click()},ue=function(){return lt()&&lt().click()};function de(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return c(t,n)}function he(t){var n=function(n){function s(){return e(this,s),d(this,a(s).apply(this,arguments))}return o(s,n),i(s,[{key:"_main",value:function(e){return p(a(s.prototype),"_main",this).call(this,r({},t,e))}}]),s}(this);return n}var pe=[],fe=function(t){var e=this;pe=t;var n=function(t,e){pe=[],document.body.removeAttribute("data-swal2-queue-step"),t(e)},i=[];return new Promise((function(t){!function r(o,a){o<pe.length?(document.body.setAttribute("data-swal2-queue-step",o),e.fire(pe[o]).then((function(e){void 0!==e.value?(i.push(e.value),r(o+1,a)):n(t,{dismiss:e.dismiss})}))):n(t,{value:i})}(0)}))},me=function(){return document.body.getAttribute("data-swal2-queue-step")},ve=function(t,e){return e&&e<pe.length?pe.splice(e,0,t):pe.push(t)},ge=function(t){void 0!==pe[t]&&pe.splice(t,1)},be=function(){var t=Q();t||yi.fire(""),t=Q();var e=ct(),n=st(),i=lt();H(e),H(n),z([t,e],A.loading),n.disabled=!0,i.disabled=!0,t.setAttribute("data-loading",!0),t.setAttribute("aria-busy",!0),t.focus()},ye=100,_e={},we=function(){_e.previousActiveElement&&_e.previousActiveElement.focus?(_e.previousActiveElement.focus(),_e.previousActiveElement=null):document.body&&document.body.focus()},xe=function(){return new Promise((function(t){var e=window.scrollX,n=window.scrollY;_e.restoreFocusTimeout=setTimeout((function(){we(),t()}),ye),void 0!==e&&void 0!==n&&window.scrollTo(e,n)}))},Ce=function(){return _e.timeout&&_e.timeout.getTimerLeft()},Se=function(){return _e.timeout&&_e.timeout.stop()},Ee=function(){return _e.timeout&&_e.timeout.start()},Te=function(){var t=_e.timeout;return t&&(t.running?t.stop():t.start())},Oe=function(t){return _e.timeout&&_e.timeout.increase(t)},ke=function(){return _e.timeout&&_e.timeout.isRunning()},Ae={title:"",titleText:"",text:"",html:"",footer:"",type:null,toast:!1,customClass:"",customContainerClass:"",target:"body",backdrop:!0,animation:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showCancelButton:!1,preConfirm:null,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:null,confirmButtonClass:"",cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:null,cancelButtonClass:"",buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusCancel:!1,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",showLoaderOnConfirm:!1,imageUrl:null,imageWidth:null,imageHeight:null,imageAlt:"",imageClass:"",timer:null,width:null,padding:null,background:null,input:null,inputPlaceholder:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputClass:"",inputAttributes:{},inputValidator:null,validationMessage:null,grow:!1,position:"center",progressSteps:[],currentProgressStep:null,progressStepsDistance:null,onBeforeOpen:null,onOpen:null,onRender:null,onClose:null,onAfterClose:null,scrollbarPadding:!0},Pe=["title","titleText","text","html","type","customClass","showConfirmButton","showCancelButton","confirmButtonText","confirmButtonAriaLabel","confirmButtonColor","confirmButtonClass","cancelButtonText","cancelButtonAriaLabel","cancelButtonColor","cancelButtonClass","buttonsStyling","reverseButtons","imageUrl","imageWidth","imageHeigth","imageAlt","imageClass","progressSteps","currentProgressStep"],Me={customContainerClass:"customClass",confirmButtonClass:"customClass",cancelButtonClass:"customClass",imageClass:"customClass",inputClass:"customClass"},Le=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusCancel","heightAuto","keydownListenerCapture"],De=function(t){return Object.prototype.hasOwnProperty.call(Ae,t)},Re=function(t){return-1!==Pe.indexOf(t)},Ie=function(t){return Me[t]},je=function(t){De(t)||b('Unknown parameter "'.concat(t,'"'))},Ne=function(t){-1!==Le.indexOf(t)&&b('The parameter "'.concat(t,'" is incompatible with toasts'))},Fe=function(t){Ie(t)&&x(t,Ie(t))},ze=function(t){for(var e in t)je(e),t.toast&&Ne(e),Fe()},Be=Object.freeze({isValidParameter:De,isUpdatableParameter:Re,isDeprecatedParameter:Ie,argsToParams:T,isVisible:le,clickConfirm:ce,clickCancel:ue,getContainer:K,getPopup:Q,getTitle:nt,getContent:it,getImage:rt,getIcon:et,getIcons:tt,getCloseButton:ht,getActions:ct,getConfirmButton:st,getCancelButton:lt,getHeader:ut,getFooter:dt,getFocusableElements:ft,getValidationMessage:at,isLoading:gt,fire:de,mixin:he,queue:fe,getQueueStep:me,insertQueueStep:ve,deleteQueueStep:ge,showLoading:be,enableLoading:be,getTimerLeft:Ce,stopTimer:Se,resumeTimer:Ee,toggleTimer:Te,increaseTimer:Oe,isTimerRunning:ke});function $e(){var t=Ft.innerParams.get(this),e=Ft.domCache.get(this);t.showConfirmButton||(V(e.confirmButton),t.showCancelButton||V(e.actions)),B([e.popup,e.actions],A.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.cancelButton.disabled=!1}function Ue(t){var e=Ft.innerParams.get(t||this),n=Ft.domCache.get(t||this);return n?I(n.content,e.input):null}var He=function(){null===M.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(M.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=M.previousBodyPadding+Pt()+"px")},Ve=function(){null!==M.previousBodyPadding&&(document.body.style.paddingRight=M.previousBodyPadding+"px",M.previousBodyPadding=null)},Ye=function(){if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!L(document.body,A.iosfix)){var t=document.body.scrollTop;document.body.style.top=-1*t+"px",z(document.body,A.iosfix),qe()}},qe=function(){var t,e=K();e.ontouchstart=function(n){t=n.target===e||!W(e)&&"INPUT"!==n.target.tagName},e.ontouchmove=function(e){t&&(e.preventDefault(),e.stopPropagation())}},We=function(){if(L(document.body,A.iosfix)){var t=parseInt(document.body.style.top,10);B(document.body,A.iosfix),document.body.style.top="",document.body.scrollTop=-1*t}},Ge=function(){return!!window.MSInputMethodContext&&!!document.documentMode},Xe=function(){var t=K(),e=Q();t.style.removeProperty("align-items"),e.offsetTop<0&&(t.style.alignItems="flex-start")},Ke=function(){"undefined"!=typeof window&&Ge()&&(Xe(),window.addEventListener("resize",Xe))},Ze=function(){"undefined"!=typeof window&&Ge()&&window.removeEventListener("resize",Xe)},Je=function(){g(document.body.children).forEach((function(t){t===K()||X(t,K())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))}))},Qe=function(){g(document.body.children).forEach((function(t){t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")}))},tn={swalPromiseResolve:new WeakMap};function en(t,e,n,i){n?cn(t,i):(xe().then((function(){return cn(t,i)})),_e.keydownTarget.removeEventListener("keydown",_e.keydownHandler,{capture:_e.keydownListenerCapture}),_e.keydownHandlerAdded=!1),e.parentNode&&e.parentNode.removeChild(e),mt()&&(Ve(),We(),Ze(),Qe()),nn()}function nn(){B([document.documentElement,document.body],[A.shown,A["height-auto"],A["no-backdrop"],A["toast-shown"],A["toast-column"]])}function rn(t){delete t.params,delete _e.keydownHandler,delete _e.keydownTarget,ln(Ft),ln(tn)}function on(t){var e=Q();if(e&&!L(e,A.hide)){var n=Ft.innerParams.get(this);if(n){var i=tn.swalPromiseResolve.get(this);B(e,A.show),z(e,A.hide),an(this,e,n),i(t||{})}}}var an=function(t,e,n){var i=K(),r=At&&G(e),o=n.onClose,a=n.onAfterClose;null!==o&&"function"==typeof o&&o(e),r?sn(t,e,i,a):en(t,i,vt(),a)},sn=function(t,e,n,i){_e.swalCloseEventFinishedCallback=en.bind(null,t,n,vt(),i),e.addEventListener(At,(function(t){t.target===e&&(_e.swalCloseEventFinishedCallback(),delete _e.swalCloseEventFinishedCallback)}))},ln=function(t){for(var e in t)t[e]=new WeakMap},cn=function(t,e){setTimeout((function(){null!==e&&"function"==typeof e&&e(),Q()||rn(t)}))};function un(t,e,n){var i=Ft.domCache.get(t);e.forEach((function(t){i[t].disabled=n}))}function dn(t,e){if(!t)return!1;if("radio"===t.type)for(var n=t.parentNode.parentNode.querySelectorAll("input"),i=0;i<n.length;i++)n[i].disabled=e;else t.disabled=e}function hn(){un(this,["confirmButton","cancelButton"],!1)}function pn(){un(this,["confirmButton","cancelButton"],!0)}function fn(){x("Swal.enableConfirmButton()","Swal.getConfirmButton().removeAttribute('disabled')"),un(this,["confirmButton"],!1)}function mn(){x("Swal.disableConfirmButton()","Swal.getConfirmButton().setAttribute('disabled', '')"),un(this,["confirmButton"],!0)}function vn(){return dn(this.getInput(),!1)}function gn(){return dn(this.getInput(),!0)}function bn(t){var e=Ft.domCache.get(this);e.validationMessage.innerHTML=t;var n=window.getComputedStyle(e.popup);e.validationMessage.style.marginLeft="-".concat(n.getPropertyValue("padding-left")),e.validationMessage.style.marginRight="-".concat(n.getPropertyValue("padding-right")),H(e.validationMessage);var i=this.getInput();i&&(i.setAttribute("aria-invalid",!0),i.setAttribute("aria-describedBy",A["validation-message"]),N(i),z(i,A.inputerror))}function yn(){var t=Ft.domCache.get(this);t.validationMessage&&V(t.validationMessage);var e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedBy"),B(e,A.inputerror))}function _n(){return x("Swal.getProgressSteps()","const swalInstance = Swal.fire({progressSteps: ['1', '2', '3']}); const progressSteps = swalInstance.params.progressSteps"),Ft.innerParams.get(this).progressSteps}function wn(t){x("Swal.setProgressSteps()","Swal.update()");var e=r({},Ft.innerParams.get(this),{progressSteps:t});ie(this,e),Ft.innerParams.set(this,e)}function xn(){var t=Ft.domCache.get(this);H(t.progressSteps)}function Cn(){var t=Ft.domCache.get(this);V(t.progressSteps)}var Sn=function(){function t(n,i){e(this,t),this.callback=n,this.remaining=i,this.running=!1,this.start()}return i(t,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date-this.started),this.remaining}},{key:"increase",value:function(t){var e=this.running;return e&&this.stop(),this.remaining+=t,e&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}]),t}(),En={email:function(t,e){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address")},url:function(t,e){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")}};function Tn(t){t.inputValidator||Object.keys(En).forEach((function(e){t.input===e&&(t.inputValidator=En[e])}))}function On(t){(!t.target||"string"==typeof t.target&&!document.querySelector(t.target)||"string"!=typeof t.target&&!t.target.appendChild)&&(b('Target parameter is not valid, defaulting to "body"'),t.target="body")}function kn(t){Tn(t),t.showLoaderOnConfirm&&!t.preConfirm&&b("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),t.animation=C(t.animation),On(t),"string"==typeof t.title&&(t.title=t.title.split("\n").join("<br />")),Tt(t)}function An(t,e){t.removeEventListener(At,An),e.style.overflowY="auto"}var Pn=function(t){var e=K(),n=Q();"function"==typeof t.onBeforeOpen&&t.onBeforeOpen(n),Dn(e,n,t),Mn(e,n),mt()&&Ln(e,t.scrollbarPadding),vt()||_e.previousActiveElement||(_e.previousActiveElement=document.activeElement),"function"==typeof t.onOpen&&setTimeout((function(){return t.onOpen(n)}))},Mn=function(t,e){At&&G(e)?(t.style.overflowY="hidden",e.addEventListener(At,An.bind(null,e,t))):t.style.overflowY="auto"},Ln=function(t,e){Ye(),Ke(),Je(),e&&He(),setTimeout((function(){t.scrollTop=0}))},Dn=function(t,e,n){n.animation&&z(e,A.show),H(e),z([document.documentElement,document.body,t],A.shown),n.heightAuto&&n.backdrop&&!n.toast&&z([document.documentElement,document.body],A["height-auto"])},Rn=function(t,e){"select"===e.input||"radio"===e.input?zn(t,e):-1!==["text","email","number","tel","textarea"].indexOf(e.input)&&S(e.inputValue)&&Bn(t,e)},In=function(t,e){var n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return jn(n);case"radio":return Nn(n);case"file":return Fn(n);default:return e.inputAutoTrim?n.value.trim():n.value}},jn=function(t){return t.checked?1:0},Nn=function(t){return t.checked?t.value:null},Fn=function(t){return t.files.length?null!==t.getAttribute("multiple")?t.files:t.files[0]:null},zn=function(e,n){var i=it(),r=function(t){return $n[n.input](i,Un(t),n)};S(n.inputOptions)?(be(),n.inputOptions.then((function(t){e.hideLoading(),r(t)}))):"object"===t(n.inputOptions)?r(n.inputOptions):y("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(t(n.inputOptions)))},Bn=function(t,e){var n=t.getInput();V(n),e.inputValue.then((function(i){n.value="number"===e.input?parseFloat(i)||0:i+"",H(n),n.focus(),t.hideLoading()})).catch((function(e){y("Error in inputValue promise: "+e),n.value="",H(n),n.focus(),t.hideLoading()}))},$n={select:function(t,e,n){var i=$(t,A.select);e.forEach((function(t){var e=t[0],r=t[1],o=document.createElement("option");o.value=e,o.innerHTML=r,n.inputValue.toString()===e.toString()&&(o.selected=!0),i.appendChild(o)})),i.focus()},radio:function(t,e,n){var i=$(t,A.radio);e.forEach((function(t){var e=t[0],r=t[1],o=document.createElement("input"),a=document.createElement("label");o.type="radio",o.name=A.radio,o.value=e,n.inputValue.toString()===e.toString()&&(o.checked=!0);var s=document.createElement("span");s.innerHTML=r,s.className=A.label,a.appendChild(o),a.appendChild(s),i.appendChild(a)}));var r=i.querySelectorAll("input");r.length&&r[0].focus()}},Un=function(t){var e=[];return"undefined"!=typeof Map&&t instanceof Map?t.forEach((function(t,n){e.push([n,t])})):Object.keys(t).forEach((function(n){e.push([n,t[n]])})),e},Hn=function(t,e){t.disableButtons(),e.input?Yn(t,e):Wn(t,e,!0)},Vn=function(t,e){t.disableButtons(),e(E.cancel)},Yn=function(t,e){var n=In(t,e);e.inputValidator?(t.disableInput(),Promise.resolve().then((function(){return e.inputValidator(n,e.validationMessage)})).then((function(i){t.enableButtons(),t.enableInput(),i?t.showValidationMessage(i):Wn(t,e,n)}))):t.getInput().checkValidity()?Wn(t,e,n):(t.enableButtons(),t.showValidationMessage(e.validationMessage))},qn=function(t,e){t.closePopup({value:e})},Wn=function(t,e,n){e.showLoaderOnConfirm&&be(),e.preConfirm?(t.resetValidationMessage(),Promise.resolve().then((function(){return e.preConfirm(n,e.validationMessage)})).then((function(e){q(at())||!1===e?t.hideLoading():qn(t,void 0===e?n:e)}))):qn(t,n)},Gn=function(t,e,n,i){e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1),n.toast||(e.keydownHandler=function(e){return Jn(t,e,n,i)},e.keydownTarget=n.keydownListenerCapture?window:Q(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Xn=function(t,e,n){for(var i=ft(),r=0;r<i.length;r++)return(e+=n)===i.length?e=0:-1===e&&(e=i.length-1),i[e].focus();Q().focus()},Kn=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Left","Right","Up","Down"],Zn=["Escape","Esc"],Jn=function(t,e,n,i){n.stopKeydownPropagation&&e.stopPropagation(),"Enter"===e.key?Qn(t,e,n):"Tab"===e.key?ti(e,n):-1!==Kn.indexOf(e.key)?ei():-1!==Zn.indexOf(e.key)&&ni(e,n,i)},Qn=function(t,e,n){if(!e.isComposing&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(-1!==["textarea","file"].indexOf(n.input))return;ce(),e.preventDefault()}},ti=function(t,e){for(var n=t.target,i=ft(),r=-1,o=0;o<i.length;o++)if(n===i[o]){r=o;break}t.shiftKey?Xn(e,r,-1):Xn(e,r,1),t.stopPropagation(),t.preventDefault()},ei=function(){var t=st(),e=lt();document.activeElement===t&&q(e)?e.focus():document.activeElement===e&&q(t)&&t.focus()},ni=function(t,e,n){C(e.allowEscapeKey)&&(t.preventDefault(),n(E.esc))},ii=function(t,e,n){e.toast?ri(t,e,n):(ai(t),si(t),li(t,e,n))},ri=function(t,e,n){t.popup.onclick=function(){e.showConfirmButton||e.showCancelButton||e.showCloseButton||e.input||n(E.close)}},oi=!1,ai=function(t){t.popup.onmousedown=function(){t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(oi=!0)}}},si=function(t){t.container.onmousedown=function(){t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(oi=!0)}}},li=function(t,e,n){t.container.onclick=function(i){oi?oi=!1:i.target===t.container&&C(e.allowOutsideClick)&&n(E.backdrop)}};function ci(t){ze(t),Q()&&_e.swalCloseEventFinishedCallback&&(_e.swalCloseEventFinishedCallback(),delete _e.swalCloseEventFinishedCallback),_e.deferDisposalTimer&&(clearTimeout(_e.deferDisposalTimer),delete _e.deferDisposalTimer);var e=r({},Ae,t);kn(e),Object.freeze(e),_e.timeout&&(_e.timeout.stop(),delete _e.timeout),clearTimeout(_e.restoreFocusTimeout);var n=di(this);return se(this,e),Ft.innerParams.set(this,e),ui(this,n,e)}var ui=function(t,e,n){return new Promise((function(i){var r=function(e){t.closePopup({dismiss:e})};tn.swalPromiseResolve.set(t,i),hi(_e,n,r),e.confirmButton.onclick=function(){return Hn(t,n)},e.cancelButton.onclick=function(){return Vn(t,r)},e.closeButton.onclick=function(){return r(E.close)},ii(e,n,r),Gn(t,_e,n,r),n.toast&&(n.input||n.footer||n.showCloseButton)?z(document.body,A["toast-column"]):B(document.body,A["toast-column"]),Rn(t,n),Pn(n),pi(e,n),e.container.scrollTop=0}))},di=function(t){var e={popup:Q(),container:K(),content:it(),actions:ct(),confirmButton:st(),cancelButton:lt(),closeButton:ht(),validationMessage:at(),progressSteps:ot()};return Ft.domCache.set(t,e),e},hi=function(t,e,n){e.timer&&(t.timeout=new Sn((function(){n("timer"),delete t.timeout}),e.timer))},pi=function(t,e){if(!e.toast)return C(e.allowEnterKey)?e.focusCancel&&q(t.cancelButton)?t.cancelButton.focus():e.focusConfirm&&q(t.confirmButton)?t.confirmButton.focus():void Xn(e,-1,1):fi()},fi=function(){document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};function mi(t){var e=Q();if(!e||L(e,A.hide))return b("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");var n={};Object.keys(t).forEach((function(e){yi.isUpdatableParameter(e)?n[e]=t[e]:b('Invalid parameter to update: "'.concat(e,'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js'))}));var i=r({},Ft.innerParams.get(this),n);se(this,i),Ft.innerParams.set(this,i),Object.defineProperties(this,{params:{value:r({},this.params,t),writable:!1,enumerable:!0}})}var vi,gi=Object.freeze({hideLoading:$e,disableLoading:$e,getInput:Ue,close:on,closePopup:on,closeModal:on,closeToast:on,enableButtons:hn,disableButtons:pn,enableConfirmButton:fn,disableConfirmButton:mn,enableInput:vn,disableInput:gn,showValidationMessage:bn,resetValidationMessage:yn,getProgressSteps:_n,setProgressSteps:wn,showProgressSteps:xn,hideProgressSteps:Cn,_main:ci,update:mi});function bi(){if("undefined"!=typeof window){"undefined"==typeof Promise&&y("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)"),vi=this;for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:i,writable:!1,enumerable:!0,configurable:!0}});var r=this._main(this.params);Ft.promise.set(this,r)}}bi.prototype.then=function(t){return Ft.promise.get(this).then(t)},bi.prototype.finally=function(t){return Ft.promise.get(this).finally(t)},r(bi.prototype,gi),r(bi,Be),Object.keys(gi).forEach((function(t){bi[t]=function(){var e;if(vi)return(e=vi)[t].apply(e,arguments)}})),bi.DismissReason=E,bi.version="8.19.0";var yi=bi;return yi.default=yi,yi}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2)},6018:function(t){t.exports=function(){"use strict";var t="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,e="undefined"==typeof window?{document:t,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window,n=function(t){for(var e=this,n=0;n<t.length;n+=1)e[n]=t[n];return e.length=t.length,this};function i(i,r){var o=[],a=0;if(i&&!r&&i instanceof n)return i;if(i)if("string"==typeof i){var s,l,c=i.trim();if(c.indexOf("<")>=0&&c.indexOf(">")>=0){var u="div";for(0===c.indexOf("<li")&&(u="ul"),0===c.indexOf("<tr")&&(u="tbody"),0!==c.indexOf("<td")&&0!==c.indexOf("<th")||(u="tr"),0===c.indexOf("<tbody")&&(u="table"),0===c.indexOf("<option")&&(u="select"),(l=t.createElement(u)).innerHTML=c,a=0;a<l.childNodes.length;a+=1)o.push(l.childNodes[a])}else for(s=r||"#"!==i[0]||i.match(/[ .<>:~]/)?(r||t).querySelectorAll(i.trim()):[t.getElementById(i.trim().split("#")[1])],a=0;a<s.length;a+=1)s[a]&&o.push(s[a])}else if(i.nodeType||i===e||i===t)o.push(i);else if(i.length>0&&i[0].nodeType)for(a=0;a<i.length;a+=1)o.push(i[a]);return new n(o)}function r(t){for(var e=[],n=0;n<t.length;n+=1)-1===e.indexOf(t[n])&&e.push(t[n]);return e}function o(t){if(void 0===t)return this;for(var e=t.split(" "),n=0;n<e.length;n+=1)for(var i=0;i<this.length;i+=1)void 0!==this[i]&&void 0!==this[i].classList&&this[i].classList.add(e[n]);return this}function a(t){for(var e=t.split(" "),n=0;n<e.length;n+=1)for(var i=0;i<this.length;i+=1)void 0!==this[i]&&void 0!==this[i].classList&&this[i].classList.remove(e[n]);return this}function s(t){return!!this[0]&&this[0].classList.contains(t)}function l(t){for(var e=t.split(" "),n=0;n<e.length;n+=1)for(var i=0;i<this.length;i+=1)void 0!==this[i]&&void 0!==this[i].classList&&this[i].classList.toggle(e[n]);return this}function c(t,e){var n=arguments;if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(var i=0;i<this.length;i+=1)if(2===n.length)this[i].setAttribute(t,e);else for(var r in t)this[i][r]=t[r],this[i].setAttribute(r,t[r]);return this}function u(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function d(t,e){var n;if(void 0!==e){for(var i=0;i<this.length;i+=1)(n=this[i]).dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[t]=e;return this}if(n=this[0]){if(n.dom7ElementDataStorage&&t in n.dom7ElementDataStorage)return n.dom7ElementDataStorage[t];var r=n.getAttribute("data-"+t);return r||void 0}}function h(t){for(var e=0;e<this.length;e+=1){var n=this[e].style;n.webkitTransform=t,n.transform=t}return this}function p(t){"string"!=typeof t&&(t+="ms");for(var e=0;e<this.length;e+=1){var n=this[e].style;n.webkitTransitionDuration=t,n.transitionDuration=t}return this}function f(){for(var t,e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=e[0],o=e[1],a=e[2],s=e[3];function l(t){var e=t.target;if(e){var n=t.target.dom7EventData||[];if(n.indexOf(t)<0&&n.unshift(t),i(e).is(o))a.apply(e,n);else for(var r=i(e).parents(),s=0;s<r.length;s+=1)i(r[s]).is(o)&&a.apply(r[s],n)}}function c(t){var e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),a.apply(this,e)}"function"==typeof e[1]&&(r=(t=e)[0],a=t[1],s=t[2],o=void 0),s||(s=!1);for(var u,d=r.split(" "),h=0;h<this.length;h+=1){var p=this[h];if(o)for(u=0;u<d.length;u+=1){var f=d[u];p.dom7LiveListeners||(p.dom7LiveListeners={}),p.dom7LiveListeners[f]||(p.dom7LiveListeners[f]=[]),p.dom7LiveListeners[f].push({listener:a,proxyListener:l}),p.addEventListener(f,l,s)}else for(u=0;u<d.length;u+=1){var m=d[u];p.dom7Listeners||(p.dom7Listeners={}),p.dom7Listeners[m]||(p.dom7Listeners[m]=[]),p.dom7Listeners[m].push({listener:a,proxyListener:c}),p.addEventListener(m,c,s)}}return this}function m(){for(var t,e=[],n=arguments.length;n--;)e[n]=arguments[n];var i=e[0],r=e[1],o=e[2],a=e[3];"function"==typeof e[1]&&(i=(t=e)[0],o=t[1],a=t[2],r=void 0),a||(a=!1);for(var s=i.split(" "),l=0;l<s.length;l+=1)for(var c=s[l],u=0;u<this.length;u+=1){var d=this[u],h=void 0;if(!r&&d.dom7Listeners?h=d.dom7Listeners[c]:r&&d.dom7LiveListeners&&(h=d.dom7LiveListeners[c]),h&&h.length)for(var p=h.length-1;p>=0;p-=1){var f=h[p];o&&f.listener===o||o&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===o?(d.removeEventListener(c,f.proxyListener,a),h.splice(p,1)):o||(d.removeEventListener(c,f.proxyListener,a),h.splice(p,1))}}return this}function v(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];for(var r=n[0].split(" "),o=n[1],a=0;a<r.length;a+=1)for(var s=r[a],l=0;l<this.length;l+=1){var c=this[l],u=void 0;try{u=new e.CustomEvent(s,{detail:o,bubbles:!0,cancelable:!0})}catch(e){(u=t.createEvent("Event")).initEvent(s,!0,!0),u.detail=o}c.dom7EventData=n.filter((function(t,e){return e>0})),c.dispatchEvent(u),c.dom7EventData=[],delete c.dom7EventData}return this}function g(t){var e,n=["webkitTransitionEnd","transitionend"],i=this;function r(o){if(o.target===this)for(t.call(this,o),e=0;e<n.length;e+=1)i.off(n[e],r)}if(t)for(e=0;e<n.length;e+=1)i.on(n[e],r);return this}function b(t){if(this.length>0){if(t){var e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function y(t){if(this.length>0){if(t){var e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function _(){if(this.length>0){var n=this[0],i=n.getBoundingClientRect(),r=t.body,o=n.clientTop||r.clientTop||0,a=n.clientLeft||r.clientLeft||0,s=n===e?e.scrollY:n.scrollTop,l=n===e?e.scrollX:n.scrollLeft;return{top:i.top+s-o,left:i.left+l-a}}return null}function w(){return this[0]?e.getComputedStyle(this[0],null):{}}function x(t,n){var i;if(1===arguments.length){if("string"!=typeof t){for(i=0;i<this.length;i+=1)for(var r in t)this[i].style[r]=t[r];return this}if(this[0])return e.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"==typeof t){for(i=0;i<this.length;i+=1)this[i].style[t]=n;return this}return this}function C(t){if(!t)return this;for(var e=0;e<this.length;e+=1)if(!1===t.call(this[e],e,this[e]))return this;return this}function S(t){if(void 0===t)return this[0]?this[0].innerHTML:void 0;for(var e=0;e<this.length;e+=1)this[e].innerHTML=t;return this}function E(t){if(void 0===t)return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=t;return this}function T(r){var o,a,s=this[0];if(!s||void 0===r)return!1;if("string"==typeof r){if(s.matches)return s.matches(r);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(r);if(s.msMatchesSelector)return s.msMatchesSelector(r);for(o=i(r),a=0;a<o.length;a+=1)if(o[a]===s)return!0;return!1}if(r===t)return s===t;if(r===e)return s===e;if(r.nodeType||r instanceof n){for(o=r.nodeType?[r]:r,a=0;a<o.length;a+=1)if(o[a]===s)return!0;return!1}return!1}function O(){var t,e=this[0];if(e){for(t=0;null!==(e=e.previousSibling);)1===e.nodeType&&(t+=1);return t}}function k(t){if(void 0===t)return this;var e,i=this.length;return new n(t>i-1?[]:t<0?(e=i+t)<0?[]:[this[e]]:[this[t]])}function A(){for(var e,i=[],r=arguments.length;r--;)i[r]=arguments[r];for(var o=0;o<i.length;o+=1){e=i[o];for(var a=0;a<this.length;a+=1)if("string"==typeof e){var s=t.createElement("div");for(s.innerHTML=e;s.firstChild;)this[a].appendChild(s.firstChild)}else if(e instanceof n)for(var l=0;l<e.length;l+=1)this[a].appendChild(e[l]);else this[a].appendChild(e)}return this}function P(e){var i,r;for(i=0;i<this.length;i+=1)if("string"==typeof e){var o=t.createElement("div");for(o.innerHTML=e,r=o.childNodes.length-1;r>=0;r-=1)this[i].insertBefore(o.childNodes[r],this[i].childNodes[0])}else if(e instanceof n)for(r=0;r<e.length;r+=1)this[i].insertBefore(e[r],this[i].childNodes[0]);else this[i].insertBefore(e,this[i].childNodes[0]);return this}function M(t){return this.length>0?t?this[0].nextElementSibling&&i(this[0].nextElementSibling).is(t)?new n([this[0].nextElementSibling]):new n([]):this[0].nextElementSibling?new n([this[0].nextElementSibling]):new n([]):new n([])}function L(t){var e=[],r=this[0];if(!r)return new n([]);for(;r.nextElementSibling;){var o=r.nextElementSibling;t?i(o).is(t)&&e.push(o):e.push(o),r=o}return new n(e)}function D(t){if(this.length>0){var e=this[0];return t?e.previousElementSibling&&i(e.previousElementSibling).is(t)?new n([e.previousElementSibling]):new n([]):e.previousElementSibling?new n([e.previousElementSibling]):new n([])}return new n([])}function R(t){var e=[],r=this[0];if(!r)return new n([]);for(;r.previousElementSibling;){var o=r.previousElementSibling;t?i(o).is(t)&&e.push(o):e.push(o),r=o}return new n(e)}function I(t){for(var e=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(t?i(this[n].parentNode).is(t)&&e.push(this[n].parentNode):e.push(this[n].parentNode));return i(r(e))}function j(t){for(var e=[],n=0;n<this.length;n+=1)for(var o=this[n].parentNode;o;)t?i(o).is(t)&&e.push(o):e.push(o),o=o.parentNode;return i(r(e))}function N(t){var e=this;return void 0===t?new n([]):(e.is(t)||(e=e.parents(t).eq(0)),e)}function F(t){for(var e=[],i=0;i<this.length;i+=1)for(var r=this[i].querySelectorAll(t),o=0;o<r.length;o+=1)e.push(r[o]);return new n(e)}function z(t){for(var e=[],o=0;o<this.length;o+=1)for(var a=this[o].childNodes,s=0;s<a.length;s+=1)t?1===a[s].nodeType&&i(a[s]).is(t)&&e.push(a[s]):1===a[s].nodeType&&e.push(a[s]);return new n(r(e))}function B(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}function $(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n,r,o=this;for(n=0;n<t.length;n+=1){var a=i(t[n]);for(r=0;r<a.length;r+=1)o[o.length]=a[r],o.length+=1}return o}i.fn=n.prototype,i.Class=n,i.Dom7=n;var U={addClass:o,removeClass:a,hasClass:s,toggleClass:l,attr:c,removeAttr:u,data:d,transform:h,transition:p,on:f,off:m,trigger:v,transitionEnd:g,outerWidth:b,outerHeight:y,offset:_,css:x,each:C,html:S,text:E,is:T,index:O,eq:k,append:A,prepend:P,next:M,nextAll:L,prev:D,prevAll:R,parent:I,parents:j,closest:N,find:F,children:z,remove:B,add:$,styles:w};Object.keys(U).forEach((function(t){i.fn[t]=i.fn[t]||U[t]}));var H,V,Y={deleteProps:function(t){var e=t;Object.keys(e).forEach((function(t){try{e[t]=null}catch(t){}try{delete e[t]}catch(t){}}))},nextTick:function(t,e){return void 0===e&&(e=0),setTimeout(t,e)},now:function(){return Date.now()},getTranslate:function(t,n){var i,r,o;void 0===n&&(n="x");var a=e.getComputedStyle(t,null);return e.WebKitCSSMatrix?((r=a.transform||a.webkitTransform).split(",").length>6&&(r=r.split(", ").map((function(t){return t.replace(",",".")})).join(", ")),o=new e.WebKitCSSMatrix("none"===r?"":r)):i=(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===n&&(r=e.WebKitCSSMatrix?o.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===n&&(r=e.WebKitCSSMatrix?o.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),r||0},parseUrlQuery:function(t){var n,i,r,o,a={},s=t||e.location.href;if("string"==typeof s&&s.length)for(o=(i=(s=s.indexOf("?")>-1?s.replace(/\S*\?/,""):"").split("&").filter((function(t){return""!==t}))).length,n=0;n<o;n+=1)r=i[n].replace(/#\S+/g,"").split("="),a[decodeURIComponent(r[0])]=void 0===r[1]?void 0:decodeURIComponent(r[1])||"";return a},isObject:function(t){return"object"==typeof t&&null!==t&&t.constructor&&t.constructor===Object},extend:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var n=Object(t[0]),i=1;i<t.length;i+=1){var r=t[i];if(null!=r)for(var o=Object.keys(Object(r)),a=0,s=o.length;a<s;a+=1){var l=o[a],c=Object.getOwnPropertyDescriptor(r,l);void 0!==c&&c.enumerable&&(Y.isObject(n[l])&&Y.isObject(r[l])?Y.extend(n[l],r[l]):!Y.isObject(n[l])&&Y.isObject(r[l])?(n[l]={},Y.extend(n[l],r[l])):n[l]=r[l])}}return n}},q=(V=t.createElement("div"),{touch:e.Modernizr&&!0===e.Modernizr.touch||!!(e.navigator.maxTouchPoints>0||"ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),pointerEvents:!!(e.navigator.pointerEnabled||e.PointerEvent||"maxTouchPoints"in e.navigator&&e.navigator.maxTouchPoints>0),prefixedPointerEvents:!!e.navigator.msPointerEnabled,transition:(H=V.style,"transition"in H||"webkitTransition"in H||"MozTransition"in H),transforms3d:e.Modernizr&&!0===e.Modernizr.csstransforms3d||function(){var t=V.style;return"webkitPerspective"in t||"MozPerspective"in t||"OPerspective"in t||"MsPerspective"in t||"perspective"in t}(),flexbox:function(){for(var t=V.style,e="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),n=0;n<e.length;n+=1)if(e[n]in t)return!0;return!1}(),observer:"MutationObserver"in e||"WebkitMutationObserver"in e,passiveListener:function(){var t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t=!0}});e.addEventListener("testPassiveListener",null,n)}catch(t){}return t}(),gestures:"ongesturestart"in e}),W=function(){function t(){var t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}return{isIE:!!e.navigator.userAgent.match(/Trident/g)||!!e.navigator.userAgent.match(/MSIE/g),isEdge:!!e.navigator.userAgent.match(/Edge/g),isSafari:t(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}(),G=function(t){void 0===t&&(t={});var e=this;e.params=t,e.eventsListeners={},e.params&&e.params.on&&Object.keys(e.params.on).forEach((function(t){e.on(t,e.params.on[t])}))},X={components:{configurable:!0}};function K(){var t,e,n=this,i=n.$el;t=void 0!==n.params.width?n.params.width:i[0].clientWidth,e=void 0!==n.params.height?n.params.height:i[0].clientHeight,0===t&&n.isHorizontal()||0===e&&n.isVertical()||(t=t-parseInt(i.css("padding-left"),10)-parseInt(i.css("padding-right"),10),e=e-parseInt(i.css("padding-top"),10)-parseInt(i.css("padding-bottom"),10),Y.extend(n,{width:t,height:e,size:n.isHorizontal()?t:e}))}function Z(){var t=this,n=t.params,i=t.$wrapperEl,r=t.size,o=t.rtlTranslate,a=t.wrongRTL,s=t.virtual&&n.virtual.enabled,l=s?t.virtual.slides.length:t.slides.length,c=i.children("."+t.params.slideClass),u=s?t.virtual.slides.length:c.length,d=[],h=[],p=[],f=n.slidesOffsetBefore;"function"==typeof f&&(f=n.slidesOffsetBefore.call(t));var m=n.slidesOffsetAfter;"function"==typeof m&&(m=n.slidesOffsetAfter.call(t));var v=t.snapGrid.length,g=t.snapGrid.length,b=n.spaceBetween,y=-f,_=0,w=0;if(void 0!==r){var x,C;"string"==typeof b&&b.indexOf("%")>=0&&(b=parseFloat(b.replace("%",""))/100*r),t.virtualSize=-b,o?c.css({marginLeft:"",marginTop:""}):c.css({marginRight:"",marginBottom:""}),n.slidesPerColumn>1&&(x=Math.floor(u/n.slidesPerColumn)===u/t.params.slidesPerColumn?u:Math.ceil(u/n.slidesPerColumn)*n.slidesPerColumn,"auto"!==n.slidesPerView&&"row"===n.slidesPerColumnFill&&(x=Math.max(x,n.slidesPerView*n.slidesPerColumn)));for(var S,E=n.slidesPerColumn,T=x/E,O=Math.floor(u/n.slidesPerColumn),k=0;k<u;k+=1){C=0;var A=c.eq(k);if(n.slidesPerColumn>1){var P=void 0,M=void 0,L=void 0;if("column"===n.slidesPerColumnFill||"row"===n.slidesPerColumnFill&&n.slidesPerGroup>1){if("column"===n.slidesPerColumnFill)L=k-(M=Math.floor(k/E))*E,(M>O||M===O&&L===E-1)&&(L+=1)>=E&&(L=0,M+=1);else{var D=Math.floor(k/n.slidesPerGroup);M=k-(L=Math.floor(k/n.slidesPerView)-D*n.slidesPerColumn)*n.slidesPerView-D*n.slidesPerView}P=M+L*x/E,A.css({"-webkit-box-ordinal-group":P,"-moz-box-ordinal-group":P,"-ms-flex-order":P,"-webkit-order":P,order:P})}else M=k-(L=Math.floor(k/T))*T;A.css("margin-"+(t.isHorizontal()?"top":"left"),0!==L&&n.spaceBetween&&n.spaceBetween+"px").attr("data-swiper-column",M).attr("data-swiper-row",L)}if("none"!==A.css("display")){if("auto"===n.slidesPerView){var R=e.getComputedStyle(A[0],null),I=A[0].style.transform,j=A[0].style.webkitTransform;if(I&&(A[0].style.transform="none"),j&&(A[0].style.webkitTransform="none"),n.roundLengths)C=t.isHorizontal()?A.outerWidth(!0):A.outerHeight(!0);else if(t.isHorizontal()){var N=parseFloat(R.getPropertyValue("width")),F=parseFloat(R.getPropertyValue("padding-left")),z=parseFloat(R.getPropertyValue("padding-right")),B=parseFloat(R.getPropertyValue("margin-left")),$=parseFloat(R.getPropertyValue("margin-right")),U=R.getPropertyValue("box-sizing");C=U&&"border-box"===U&&!W.isIE?N+B+$:N+F+z+B+$}else{var H=parseFloat(R.getPropertyValue("height")),V=parseFloat(R.getPropertyValue("padding-top")),G=parseFloat(R.getPropertyValue("padding-bottom")),X=parseFloat(R.getPropertyValue("margin-top")),K=parseFloat(R.getPropertyValue("margin-bottom")),Z=R.getPropertyValue("box-sizing");C=Z&&"border-box"===Z&&!W.isIE?H+X+K:H+V+G+X+K}I&&(A[0].style.transform=I),j&&(A[0].style.webkitTransform=j),n.roundLengths&&(C=Math.floor(C))}else C=(r-(n.slidesPerView-1)*b)/n.slidesPerView,n.roundLengths&&(C=Math.floor(C)),c[k]&&(t.isHorizontal()?c[k].style.width=C+"px":c[k].style.height=C+"px");c[k]&&(c[k].swiperSlideSize=C),p.push(C),n.centeredSlides?(y=y+C/2+_/2+b,0===_&&0!==k&&(y=y-r/2-b),0===k&&(y=y-r/2-b),Math.abs(y)<.001&&(y=0),n.roundLengths&&(y=Math.floor(y)),w%n.slidesPerGroup==0&&d.push(y),h.push(y)):(n.roundLengths&&(y=Math.floor(y)),w%n.slidesPerGroup==0&&d.push(y),h.push(y),y=y+C+b),t.virtualSize+=C+b,_=C,w+=1}}if(t.virtualSize=Math.max(t.virtualSize,r)+m,o&&a&&("slide"===n.effect||"coverflow"===n.effect)&&i.css({width:t.virtualSize+n.spaceBetween+"px"}),q.flexbox&&!n.setWrapperSize||(t.isHorizontal()?i.css({width:t.virtualSize+n.spaceBetween+"px"}):i.css({height:t.virtualSize+n.spaceBetween+"px"})),n.slidesPerColumn>1&&(t.virtualSize=(C+n.spaceBetween)*x,t.virtualSize=Math.ceil(t.virtualSize/n.slidesPerColumn)-n.spaceBetween,t.isHorizontal()?i.css({width:t.virtualSize+n.spaceBetween+"px"}):i.css({height:t.virtualSize+n.spaceBetween+"px"}),n.centeredSlides)){S=[];for(var J=0;J<d.length;J+=1){var Q=d[J];n.roundLengths&&(Q=Math.floor(Q)),d[J]<t.virtualSize+d[0]&&S.push(Q)}d=S}if(!n.centeredSlides){S=[];for(var tt=0;tt<d.length;tt+=1){var et=d[tt];n.roundLengths&&(et=Math.floor(et)),d[tt]<=t.virtualSize-r&&S.push(et)}d=S,Math.floor(t.virtualSize-r)-Math.floor(d[d.length-1])>1&&d.push(t.virtualSize-r)}if(0===d.length&&(d=[0]),0!==n.spaceBetween&&(t.isHorizontal()?o?c.css({marginLeft:b+"px"}):c.css({marginRight:b+"px"}):c.css({marginBottom:b+"px"})),n.centerInsufficientSlides){var nt=0;if(p.forEach((function(t){nt+=t+(n.spaceBetween?n.spaceBetween:0)})),(nt-=n.spaceBetween)<r){var it=(r-nt)/2;d.forEach((function(t,e){d[e]=t-it})),h.forEach((function(t,e){h[e]=t+it}))}}Y.extend(t,{slides:c,snapGrid:d,slidesGrid:h,slidesSizesGrid:p}),u!==l&&t.emit("slidesLengthChange"),d.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),h.length!==g&&t.emit("slidesGridLengthChange"),(n.watchSlidesProgress||n.watchSlidesVisibility)&&t.updateSlidesOffset()}}function J(t){var e,n=this,i=[],r=0;if("number"==typeof t?n.setTransition(t):!0===t&&n.setTransition(n.params.speed),"auto"!==n.params.slidesPerView&&n.params.slidesPerView>1)for(e=0;e<Math.ceil(n.params.slidesPerView);e+=1){var o=n.activeIndex+e;if(o>n.slides.length)break;i.push(n.slides.eq(o)[0])}else i.push(n.slides.eq(n.activeIndex)[0]);for(e=0;e<i.length;e+=1)if(void 0!==i[e]){var a=i[e].offsetHeight;r=a>r?a:r}r&&n.$wrapperEl.css("height",r+"px")}function Q(){for(var t=this,e=t.slides,n=0;n<e.length;n+=1)e[n].swiperSlideOffset=t.isHorizontal()?e[n].offsetLeft:e[n].offsetTop}function tt(t){void 0===t&&(t=this&&this.translate||0);var e=this,n=e.params,r=e.slides,o=e.rtlTranslate;if(0!==r.length){void 0===r[0].swiperSlideOffset&&e.updateSlidesOffset();var a=-t;o&&(a=t),r.removeClass(n.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(var s=0;s<r.length;s+=1){var l=r[s],c=(a+(n.centeredSlides?e.minTranslate():0)-l.swiperSlideOffset)/(l.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility){var u=-(a-l.swiperSlideOffset),d=u+e.slidesSizesGrid[s];(u>=0&&u<e.size-1||d>1&&d<=e.size||u<=0&&d>=e.size)&&(e.visibleSlides.push(l),e.visibleSlidesIndexes.push(s),r.eq(s).addClass(n.slideVisibleClass))}l.progress=o?-c:c}e.visibleSlides=i(e.visibleSlides)}}function et(t){void 0===t&&(t=this&&this.translate||0);var e=this,n=e.params,i=e.maxTranslate()-e.minTranslate(),r=e.progress,o=e.isBeginning,a=e.isEnd,s=o,l=a;0===i?(r=0,o=!0,a=!0):(o=(r=(t-e.minTranslate())/i)<=0,a=r>=1),Y.extend(e,{progress:r,isBeginning:o,isEnd:a}),(n.watchSlidesProgress||n.watchSlidesVisibility)&&e.updateSlidesProgress(t),o&&!s&&e.emit("reachBeginning toEdge"),a&&!l&&e.emit("reachEnd toEdge"),(s&&!o||l&&!a)&&e.emit("fromEdge"),e.emit("progress",r)}function nt(){var t,e=this,n=e.slides,i=e.params,r=e.$wrapperEl,o=e.activeIndex,a=e.realIndex,s=e.virtual&&i.virtual.enabled;n.removeClass(i.slideActiveClass+" "+i.slideNextClass+" "+i.slidePrevClass+" "+i.slideDuplicateActiveClass+" "+i.slideDuplicateNextClass+" "+i.slideDuplicatePrevClass),(t=s?e.$wrapperEl.find("."+i.slideClass+'[data-swiper-slide-index="'+o+'"]'):n.eq(o)).addClass(i.slideActiveClass),i.loop&&(t.hasClass(i.slideDuplicateClass)?r.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+a+'"]').addClass(i.slideDuplicateActiveClass):r.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+a+'"]').addClass(i.slideDuplicateActiveClass));var l=t.nextAll("."+i.slideClass).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=n.eq(0)).addClass(i.slideNextClass);var c=t.prevAll("."+i.slideClass).eq(0).addClass(i.slidePrevClass);i.loop&&0===c.length&&(c=n.eq(-1)).addClass(i.slidePrevClass),i.loop&&(l.hasClass(i.slideDuplicateClass)?r.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass):r.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass),c.hasClass(i.slideDuplicateClass)?r.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass):r.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass))}function it(t){var e,n=this,i=n.rtlTranslate?n.translate:-n.translate,r=n.slidesGrid,o=n.snapGrid,a=n.params,s=n.activeIndex,l=n.realIndex,c=n.snapIndex,u=t;if(void 0===u){for(var d=0;d<r.length;d+=1)void 0!==r[d+1]?i>=r[d]&&i<r[d+1]-(r[d+1]-r[d])/2?u=d:i>=r[d]&&i<r[d+1]&&(u=d+1):i>=r[d]&&(u=d);a.normalizeSlideIndex&&(u<0||void 0===u)&&(u=0)}if((e=o.indexOf(i)>=0?o.indexOf(i):Math.floor(u/a.slidesPerGroup))>=o.length&&(e=o.length-1),u!==s){var h=parseInt(n.slides.eq(u).attr("data-swiper-slide-index")||u,10);Y.extend(n,{snapIndex:e,realIndex:h,previousIndex:s,activeIndex:u}),n.emit("activeIndexChange"),n.emit("snapIndexChange"),l!==h&&n.emit("realIndexChange"),(n.initialized||n.runCallbacksOnInit)&&n.emit("slideChange")}else e!==c&&(n.snapIndex=e,n.emit("snapIndexChange"))}function rt(t){var e=this,n=e.params,r=i(t.target).closest("."+n.slideClass)[0],o=!1;if(r)for(var a=0;a<e.slides.length;a+=1)e.slides[a]===r&&(o=!0);if(!r||!o)return e.clickedSlide=void 0,void(e.clickedIndex=void 0);e.clickedSlide=r,e.virtual&&e.params.virtual.enabled?e.clickedIndex=parseInt(i(r).attr("data-swiper-slide-index"),10):e.clickedIndex=i(r).index(),n.slideToClickedSlide&&void 0!==e.clickedIndex&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}G.prototype.on=function(t,e,n){var i=this;if("function"!=typeof e)return i;var r=n?"unshift":"push";return t.split(" ").forEach((function(t){i.eventsListeners[t]||(i.eventsListeners[t]=[]),i.eventsListeners[t][r](e)})),i},G.prototype.once=function(t,e,n){var i=this;if("function"!=typeof e)return i;function r(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];e.apply(i,n),i.off(t,r),r.f7proxy&&delete r.f7proxy}return r.f7proxy=e,i.on(t,r,n)},G.prototype.off=function(t,e){var n=this;return n.eventsListeners?(t.split(" ").forEach((function(t){void 0===e?n.eventsListeners[t]=[]:n.eventsListeners[t]&&n.eventsListeners[t].length&&n.eventsListeners[t].forEach((function(i,r){(i===e||i.f7proxy&&i.f7proxy===e)&&n.eventsListeners[t].splice(r,1)}))})),n):n},G.prototype.emit=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n,i,r,o=this;return o.eventsListeners?("string"==typeof t[0]||Array.isArray(t[0])?(n=t[0],i=t.slice(1,t.length),r=o):(n=t[0].events,i=t[0].data,r=t[0].context||o),(Array.isArray(n)?n:n.split(" ")).forEach((function(t){if(o.eventsListeners&&o.eventsListeners[t]){var e=[];o.eventsListeners[t].forEach((function(t){e.push(t)})),e.forEach((function(t){t.apply(r,i)}))}})),o):o},G.prototype.useModulesParams=function(t){var e=this;e.modules&&Object.keys(e.modules).forEach((function(n){var i=e.modules[n];i.params&&Y.extend(t,i.params)}))},G.prototype.useModules=function(t){void 0===t&&(t={});var e=this;e.modules&&Object.keys(e.modules).forEach((function(n){var i=e.modules[n],r=t[n]||{};i.instance&&Object.keys(i.instance).forEach((function(t){var n=i.instance[t];e[t]="function"==typeof n?n.bind(e):n})),i.on&&e.on&&Object.keys(i.on).forEach((function(t){e.on(t,i.on[t])})),i.create&&i.create.bind(e)(r)}))},X.components.set=function(t){var e=this;e.use&&e.use(t)},G.installModule=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];var i=this;i.prototype.modules||(i.prototype.modules={});var r=t.name||Object.keys(i.prototype.modules).length+"_"+Y.now();return i.prototype.modules[r]=t,t.proto&&Object.keys(t.proto).forEach((function(e){i.prototype[e]=t.proto[e]})),t.static&&Object.keys(t.static).forEach((function(e){i[e]=t.static[e]})),t.install&&t.install.apply(i,e),i},G.use=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];var i=this;return Array.isArray(t)?(t.forEach((function(t){return i.installModule(t)})),i):i.installModule.apply(i,[t].concat(e))},Object.defineProperties(G,X);var ot={updateSize:K,updateSlides:Z,updateAutoHeight:J,updateSlidesOffset:Q,updateSlidesProgress:tt,updateProgress:et,updateSlidesClasses:nt,updateActiveIndex:it,updateClickedSlide:rt};function at(t){void 0===t&&(t=this.isHorizontal()?"x":"y");var e=this,n=e.params,i=e.rtlTranslate,r=e.translate,o=e.$wrapperEl;if(n.virtualTranslate)return i?-r:r;var a=Y.getTranslate(o[0],t);return i&&(a=-a),a||0}function st(t,e){var n=this,i=n.rtlTranslate,r=n.params,o=n.$wrapperEl,a=n.progress,s=0,l=0,c=0;n.isHorizontal()?s=i?-t:t:l=t,r.roundLengths&&(s=Math.floor(s),l=Math.floor(l)),r.virtualTranslate||(q.transforms3d?o.transform("translate3d("+s+"px, "+l+"px, "+c+"px)"):o.transform("translate("+s+"px, "+l+"px)")),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?s:l;var u=n.maxTranslate()-n.minTranslate();(0===u?0:(t-n.minTranslate())/u)!==a&&n.updateProgress(t),n.emit("setTranslate",n.translate,e)}function lt(){return-this.snapGrid[0]}function ct(){return-this.snapGrid[this.snapGrid.length-1]}var ut={getTranslate:at,setTranslate:st,minTranslate:lt,maxTranslate:ct};function dt(t,e){var n=this;n.$wrapperEl.transition(t),n.emit("setTransition",t,e)}function ht(t,e){void 0===t&&(t=!0);var n=this,i=n.activeIndex,r=n.params,o=n.previousIndex;r.autoHeight&&n.updateAutoHeight();var a=e;if(a||(a=i>o?"next":i<o?"prev":"reset"),n.emit("transitionStart"),t&&i!==o){if("reset"===a)return void n.emit("slideResetTransitionStart");n.emit("slideChangeTransitionStart"),"next"===a?n.emit("slideNextTransitionStart"):n.emit("slidePrevTransitionStart")}}function pt(t,e){void 0===t&&(t=!0);var n=this,i=n.activeIndex,r=n.previousIndex;n.animating=!1,n.setTransition(0);var o=e;if(o||(o=i>r?"next":i<r?"prev":"reset"),n.emit("transitionEnd"),t&&i!==r){if("reset"===o)return void n.emit("slideResetTransitionEnd");n.emit("slideChangeTransitionEnd"),"next"===o?n.emit("slideNextTransitionEnd"):n.emit("slidePrevTransitionEnd")}}var ft={setTransition:dt,transitionStart:ht,transitionEnd:pt};function mt(t,e,n,i){void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===n&&(n=!0);var r=this,o=t;o<0&&(o=0);var a=r.params,s=r.snapGrid,l=r.slidesGrid,c=r.previousIndex,u=r.activeIndex,d=r.rtlTranslate;if(r.animating&&a.preventInteractionOnTransition)return!1;var h=Math.floor(o/a.slidesPerGroup);h>=s.length&&(h=s.length-1),(u||a.initialSlide||0)===(c||0)&&n&&r.emit("beforeSlideChangeStart");var p,f=-s[h];if(r.updateProgress(f),a.normalizeSlideIndex)for(var m=0;m<l.length;m+=1)-Math.floor(100*f)>=Math.floor(100*l[m])&&(o=m);if(r.initialized&&o!==u){if(!r.allowSlideNext&&f<r.translate&&f<r.minTranslate())return!1;if(!r.allowSlidePrev&&f>r.translate&&f>r.maxTranslate()&&(u||0)!==o)return!1}return p=o>u?"next":o<u?"prev":"reset",d&&-f===r.translate||!d&&f===r.translate?(r.updateActiveIndex(o),a.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==a.effect&&r.setTranslate(f),"reset"!==p&&(r.transitionStart(n,p),r.transitionEnd(n,p)),!1):(0!==e&&q.transition?(r.setTransition(e),r.setTranslate(f),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,i),r.transitionStart(n,p),r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(t){r&&!r.destroyed&&t.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(n,p))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd))):(r.setTransition(0),r.setTranslate(f),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,i),r.transitionStart(n,p),r.transitionEnd(n,p)),!0)}function vt(t,e,n,i){void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===n&&(n=!0);var r=this,o=t;return r.params.loop&&(o+=r.loopedSlides),r.slideTo(o,e,n,i)}function gt(t,e,n){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);var i=this,r=i.params,o=i.animating;return r.loop?!o&&(i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft,i.slideTo(i.activeIndex+r.slidesPerGroup,t,e,n)):i.slideTo(i.activeIndex+r.slidesPerGroup,t,e,n)}function bt(t,e,n){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);var i=this,r=i.params,o=i.animating,a=i.snapGrid,s=i.slidesGrid,l=i.rtlTranslate;if(r.loop){if(o)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}function c(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}var u,d=c(l?i.translate:-i.translate),h=a.map((function(t){return c(t)})),p=(s.map((function(t){return c(t)})),a[h.indexOf(d)],a[h.indexOf(d)-1]);return void 0!==p&&(u=s.indexOf(p))<0&&(u=i.activeIndex-1),i.slideTo(u,t,e,n)}function yt(t,e,n){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);var i=this;return i.slideTo(i.activeIndex,t,e,n)}function _t(t,e,n){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);var i=this,r=i.activeIndex,o=Math.floor(r/i.params.slidesPerGroup);if(o<i.snapGrid.length-1){var a=i.rtlTranslate?i.translate:-i.translate,s=i.snapGrid[o];a-s>(i.snapGrid[o+1]-s)/2&&(r=i.params.slidesPerGroup)}return i.slideTo(r,t,e,n)}function wt(){var t,e=this,n=e.params,r=e.$wrapperEl,o="auto"===n.slidesPerView?e.slidesPerViewDynamic():n.slidesPerView,a=e.clickedIndex;if(n.loop){if(e.animating)return;t=parseInt(i(e.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?a<e.loopedSlides-o/2||a>e.slides.length-e.loopedSlides+o/2?(e.loopFix(),a=r.children("."+n.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),Y.nextTick((function(){e.slideTo(a)}))):e.slideTo(a):a>e.slides.length-o?(e.loopFix(),a=r.children("."+n.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),Y.nextTick((function(){e.slideTo(a)}))):e.slideTo(a)}else e.slideTo(a)}var xt={slideTo:mt,slideToLoop:vt,slideNext:gt,slidePrev:bt,slideReset:yt,slideToClosest:_t,slideToClickedSlide:wt};function Ct(){var e=this,n=e.params,r=e.$wrapperEl;r.children("."+n.slideClass+"."+n.slideDuplicateClass).remove();var o=r.children("."+n.slideClass);if(n.loopFillGroupWithBlank){var a=n.slidesPerGroup-o.length%n.slidesPerGroup;if(a!==n.slidesPerGroup){for(var s=0;s<a;s+=1){var l=i(t.createElement("div")).addClass(n.slideClass+" "+n.slideBlankClass);r.append(l)}o=r.children("."+n.slideClass)}}"auto"!==n.slidesPerView||n.loopedSlides||(n.loopedSlides=o.length),e.loopedSlides=parseInt(n.loopedSlides||n.slidesPerView,10),e.loopedSlides+=n.loopAdditionalSlides,e.loopedSlides>o.length&&(e.loopedSlides=o.length);var c=[],u=[];o.each((function(t,n){var r=i(n);t<e.loopedSlides&&u.push(n),t<o.length&&t>=o.length-e.loopedSlides&&c.push(n),r.attr("data-swiper-slide-index",t)}));for(var d=0;d<u.length;d+=1)r.append(i(u[d].cloneNode(!0)).addClass(n.slideDuplicateClass));for(var h=c.length-1;h>=0;h-=1)r.prepend(i(c[h].cloneNode(!0)).addClass(n.slideDuplicateClass))}function St(){var t,e=this,n=e.params,i=e.activeIndex,r=e.slides,o=e.loopedSlides,a=e.allowSlidePrev,s=e.allowSlideNext,l=e.snapGrid,c=e.rtlTranslate;e.allowSlidePrev=!0,e.allowSlideNext=!0;var u=-l[i]-e.getTranslate();i<o?(t=r.length-3*o+i,t+=o,e.slideTo(t,0,!1,!0)&&0!==u&&e.setTranslate((c?-e.translate:e.translate)-u)):("auto"===n.slidesPerView&&i>=2*o||i>=r.length-o)&&(t=-r.length+i+o,t+=o,e.slideTo(t,0,!1,!0)&&0!==u&&e.setTranslate((c?-e.translate:e.translate)-u)),e.allowSlidePrev=a,e.allowSlideNext=s}function Et(){var t=this,e=t.$wrapperEl,n=t.params,i=t.slides;e.children("."+n.slideClass+"."+n.slideDuplicateClass+",."+n.slideClass+"."+n.slideBlankClass).remove(),i.removeAttr("data-swiper-slide-index")}var Tt={loopCreate:Ct,loopFix:St,loopDestroy:Et};function Ot(t){var e=this;if(!(q.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked)){var n=e.el;n.style.cursor="move",n.style.cursor=t?"-webkit-grabbing":"-webkit-grab",n.style.cursor=t?"-moz-grabbin":"-moz-grab",n.style.cursor=t?"grabbing":"grab"}}function kt(){var t=this;q.touch||t.params.watchOverflow&&t.isLocked||(t.el.style.cursor="")}var At={setGrabCursor:Ot,unsetGrabCursor:kt};function Pt(t){var e=this,n=e.$wrapperEl,i=e.params;if(i.loop&&e.loopDestroy(),"object"==typeof t&&"length"in t)for(var r=0;r<t.length;r+=1)t[r]&&n.append(t[r]);else n.append(t);i.loop&&e.loopCreate(),i.observer&&q.observer||e.update()}function Mt(t){var e=this,n=e.params,i=e.$wrapperEl,r=e.activeIndex;n.loop&&e.loopDestroy();var o=r+1;if("object"==typeof t&&"length"in t){for(var a=0;a<t.length;a+=1)t[a]&&i.prepend(t[a]);o=r+t.length}else i.prepend(t);n.loop&&e.loopCreate(),n.observer&&q.observer||e.update(),e.slideTo(o,0,!1)}function Lt(t,e){var n=this,i=n.$wrapperEl,r=n.params,o=n.activeIndex;r.loop&&(o-=n.loopedSlides,n.loopDestroy(),n.slides=i.children("."+r.slideClass));var a=n.slides.length;if(t<=0)n.prependSlide(e);else if(t>=a)n.appendSlide(e);else{for(var s=o>t?o+1:o,l=[],c=a-1;c>=t;c-=1){var u=n.slides.eq(c);u.remove(),l.unshift(u)}if("object"==typeof e&&"length"in e){for(var d=0;d<e.length;d+=1)e[d]&&i.append(e[d]);s=o>t?o+e.length:o}else i.append(e);for(var h=0;h<l.length;h+=1)i.append(l[h]);r.loop&&n.loopCreate(),r.observer&&q.observer||n.update(),r.loop?n.slideTo(s+n.loopedSlides,0,!1):n.slideTo(s,0,!1)}}function Dt(t){var e=this,n=e.params,i=e.$wrapperEl,r=e.activeIndex;n.loop&&(r-=e.loopedSlides,e.loopDestroy(),e.slides=i.children("."+n.slideClass));var o,a=r;if("object"==typeof t&&"length"in t){for(var s=0;s<t.length;s+=1)o=t[s],e.slides[o]&&e.slides.eq(o).remove(),o<a&&(a-=1);a=Math.max(a,0)}else o=t,e.slides[o]&&e.slides.eq(o).remove(),o<a&&(a-=1),a=Math.max(a,0);n.loop&&e.loopCreate(),n.observer&&q.observer||e.update(),n.loop?e.slideTo(a+e.loopedSlides,0,!1):e.slideTo(a,0,!1)}function Rt(){for(var t=this,e=[],n=0;n<t.slides.length;n+=1)e.push(n);t.removeSlide(e)}var It={appendSlide:Pt,prependSlide:Mt,addSlide:Lt,removeSlide:Dt,removeAllSlides:Rt},jt=function(){var n=e.navigator.userAgent,i={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:e.cordova||e.phonegap,phonegap:e.cordova||e.phonegap},r=n.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),o=n.match(/(Android);?[\s\/]+([\d.]+)?/),a=n.match(/(iPad).*OS\s([\d_]+)/),s=n.match(/(iPod)(.*OS\s([\d_]+))?/),l=!a&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(r&&(i.os="windows",i.osVersion=r[2],i.windows=!0),o&&!r&&(i.os="android",i.osVersion=o[2],i.android=!0,i.androidChrome=n.toLowerCase().indexOf("chrome")>=0),(a||l||s)&&(i.os="ios",i.ios=!0),l&&!s&&(i.osVersion=l[2].replace(/_/g,"."),i.iphone=!0),a&&(i.osVersion=a[2].replace(/_/g,"."),i.ipad=!0),s&&(i.osVersion=s[3]?s[3].replace(/_/g,"."):null,i.iphone=!0),i.ios&&i.osVersion&&n.indexOf("Version/")>=0&&"10"===i.osVersion.split(".")[0]&&(i.osVersion=n.toLowerCase().split("version/")[1].split(" ")[0]),i.desktop=!(i.os||i.android||i.webView),i.webView=(l||a||s)&&n.match(/.*AppleWebKit(?!.*Safari)/i),i.os&&"ios"===i.os){var c=i.osVersion.split("."),u=t.querySelector('meta[name="viewport"]');i.minimalUi=!i.webView&&(s||l)&&(1*c[0]==7?1*c[1]>=1:1*c[0]>7)&&u&&u.getAttribute("content").indexOf("minimal-ui")>=0}return i.pixelRatio=e.devicePixelRatio||1,i}();function Nt(n){var r=this,o=r.touchEventsData,a=r.params,s=r.touches;if(!r.animating||!a.preventInteractionOnTransition){var l=n;if(l.originalEvent&&(l=l.originalEvent),o.isTouchEvent="touchstart"===l.type,(o.isTouchEvent||!("which"in l)||3!==l.which)&&!(!o.isTouchEvent&&"button"in l&&l.button>0||o.isTouched&&o.isMoved))if(a.noSwiping&&i(l.target).closest(a.noSwipingSelector?a.noSwipingSelector:"."+a.noSwipingClass)[0])r.allowClick=!0;else if(!a.swipeHandler||i(l).closest(a.swipeHandler)[0]){s.currentX="touchstart"===l.type?l.targetTouches[0].pageX:l.pageX,s.currentY="touchstart"===l.type?l.targetTouches[0].pageY:l.pageY;var c=s.currentX,u=s.currentY,d=a.edgeSwipeDetection||a.iOSEdgeSwipeDetection,h=a.edgeSwipeThreshold||a.iOSEdgeSwipeThreshold;if(!d||!(c<=h||c>=e.screen.width-h)){if(Y.extend(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=c,s.startY=u,o.touchStartTime=Y.now(),r.allowClick=!0,r.updateSize(),r.swipeDirection=void 0,a.threshold>0&&(o.allowThresholdMove=!1),"touchstart"!==l.type){var p=!0;i(l.target).is(o.formElements)&&(p=!1),t.activeElement&&i(t.activeElement).is(o.formElements)&&t.activeElement!==l.target&&t.activeElement.blur();var f=p&&r.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||f)&&l.preventDefault()}r.emit("touchStart",l)}}}}function Ft(e){var n=this,r=n.touchEventsData,o=n.params,a=n.touches,s=n.rtlTranslate,l=e;if(l.originalEvent&&(l=l.originalEvent),r.isTouched){if(!r.isTouchEvent||"mousemove"!==l.type){var c="touchmove"===l.type?l.targetTouches[0].pageX:l.pageX,u="touchmove"===l.type?l.targetTouches[0].pageY:l.pageY;if(l.preventedByNestedSwiper)return a.startX=c,void(a.startY=u);if(!n.allowTouchMove)return n.allowClick=!1,void(r.isTouched&&(Y.extend(a,{startX:c,startY:u,currentX:c,currentY:u}),r.touchStartTime=Y.now()));if(r.isTouchEvent&&o.touchReleaseOnEdges&&!o.loop)if(n.isVertical()){if(u<a.startY&&n.translate<=n.maxTranslate()||u>a.startY&&n.translate>=n.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(c<a.startX&&n.translate<=n.maxTranslate()||c>a.startX&&n.translate>=n.minTranslate())return;if(r.isTouchEvent&&t.activeElement&&l.target===t.activeElement&&i(l.target).is(r.formElements))return r.isMoved=!0,void(n.allowClick=!1);if(r.allowTouchCallbacks&&n.emit("touchMove",l),!(l.targetTouches&&l.targetTouches.length>1)){a.currentX=c,a.currentY=u;var d,h=a.currentX-a.startX,p=a.currentY-a.startY;if(!(n.params.threshold&&Math.sqrt(Math.pow(h,2)+Math.pow(p,2))<n.params.threshold))if(void 0===r.isScrolling&&(n.isHorizontal()&&a.currentY===a.startY||n.isVertical()&&a.currentX===a.startX?r.isScrolling=!1:h*h+p*p>=25&&(d=180*Math.atan2(Math.abs(p),Math.abs(h))/Math.PI,r.isScrolling=n.isHorizontal()?d>o.touchAngle:90-d>o.touchAngle)),r.isScrolling&&n.emit("touchMoveOpposite",l),void 0===r.startMoving&&(a.currentX===a.startX&&a.currentY===a.startY||(r.startMoving=!0)),r.isScrolling)r.isTouched=!1;else if(r.startMoving){n.allowClick=!1,l.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&l.stopPropagation(),r.isMoved||(o.loop&&n.loopFix(),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,!o.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",l)),n.emit("sliderMove",l),r.isMoved=!0;var f=n.isHorizontal()?h:p;a.diff=f,f*=o.touchRatio,s&&(f=-f),n.swipeDirection=f>0?"prev":"next",r.currentTranslate=f+r.startTranslate;var m=!0,v=o.resistanceRatio;if(o.touchReleaseOnEdges&&(v=0),f>0&&r.currentTranslate>n.minTranslate()?(m=!1,o.resistance&&(r.currentTranslate=n.minTranslate()-1+Math.pow(-n.minTranslate()+r.startTranslate+f,v))):f<0&&r.currentTranslate<n.maxTranslate()&&(m=!1,o.resistance&&(r.currentTranslate=n.maxTranslate()+1-Math.pow(n.maxTranslate()-r.startTranslate-f,v))),m&&(l.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),o.threshold>0){if(!(Math.abs(f)>o.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,r.currentTranslate=r.startTranslate,void(a.diff=n.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY)}o.followFinger&&((o.freeMode||o.watchSlidesProgress||o.watchSlidesVisibility)&&(n.updateActiveIndex(),n.updateSlidesClasses()),o.freeMode&&(0===r.velocities.length&&r.velocities.push({position:a[n.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:a[n.isHorizontal()?"currentX":"currentY"],time:Y.now()})),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}}}}else r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",l)}function zt(t){var e=this,n=e.touchEventsData,i=e.params,r=e.touches,o=e.rtlTranslate,a=e.$wrapperEl,s=e.slidesGrid,l=e.snapGrid,c=t;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&e.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&i.grabCursor&&e.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);i.grabCursor&&n.isMoved&&n.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);var u,d=Y.now(),h=d-n.touchStartTime;if(e.allowClick&&(e.updateClickedSlide(c),e.emit("tap",c),h<300&&d-n.lastClickTime>300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),n.clickTimeout=Y.nextTick((function(){e&&!e.destroyed&&e.emit("click",c)}),300)),h<300&&d-n.lastClickTime<300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),e.emit("doubleTap",c))),n.lastClickTime=Y.now(),Y.nextTick((function(){e.destroyed||(e.allowClick=!0)})),!n.isTouched||!n.isMoved||!e.swipeDirection||0===r.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,u=i.followFinger?o?e.translate:-e.translate:-n.currentTranslate,i.freeMode){if(u<-e.minTranslate())return void e.slideTo(e.activeIndex);if(u>-e.maxTranslate())return void(e.slides.length<l.length?e.slideTo(l.length-1):e.slideTo(e.slides.length-1));if(i.freeModeMomentum){if(n.velocities.length>1){var p=n.velocities.pop(),f=n.velocities.pop(),m=p.position-f.position,v=p.time-f.time;e.velocity=m/v,e.velocity/=2,Math.abs(e.velocity)<i.freeModeMinimumVelocity&&(e.velocity=0),(v>150||Y.now()-p.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=i.freeModeMomentumVelocityRatio,n.velocities.length=0;var g=1e3*i.freeModeMomentumRatio,b=e.velocity*g,y=e.translate+b;o&&(y=-y);var _,w,x=!1,C=20*Math.abs(e.velocity)*i.freeModeMomentumBounceRatio;if(y<e.maxTranslate())i.freeModeMomentumBounce?(y+e.maxTranslate()<-C&&(y=e.maxTranslate()-C),_=e.maxTranslate(),x=!0,n.allowMomentumBounce=!0):y=e.maxTranslate(),i.loop&&i.centeredSlides&&(w=!0);else if(y>e.minTranslate())i.freeModeMomentumBounce?(y-e.minTranslate()>C&&(y=e.minTranslate()+C),_=e.minTranslate(),x=!0,n.allowMomentumBounce=!0):y=e.minTranslate(),i.loop&&i.centeredSlides&&(w=!0);else if(i.freeModeSticky){for(var S,E=0;E<l.length;E+=1)if(l[E]>-y){S=E;break}y=-(y=Math.abs(l[S]-y)<Math.abs(l[S-1]-y)||"next"===e.swipeDirection?l[S]:l[S-1])}if(w&&e.once("transitionEnd",(function(){e.loopFix()})),0!==e.velocity)g=o?Math.abs((-y-e.translate)/e.velocity):Math.abs((y-e.translate)/e.velocity);else if(i.freeModeSticky)return void e.slideToClosest();i.freeModeMomentumBounce&&x?(e.updateProgress(_),e.setTransition(g),e.setTranslate(y),e.transitionStart(!0,e.swipeDirection),e.animating=!0,a.transitionEnd((function(){e&&!e.destroyed&&n.allowMomentumBounce&&(e.emit("momentumBounce"),e.setTransition(i.speed),e.setTranslate(_),a.transitionEnd((function(){e&&!e.destroyed&&e.transitionEnd()})))}))):e.velocity?(e.updateProgress(y),e.setTransition(g),e.setTranslate(y),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,a.transitionEnd((function(){e&&!e.destroyed&&e.transitionEnd()})))):e.updateProgress(y),e.updateActiveIndex(),e.updateSlidesClasses()}else if(i.freeModeSticky)return void e.slideToClosest();(!i.freeModeMomentum||h>=i.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}else{for(var T=0,O=e.slidesSizesGrid[0],k=0;k<s.length;k+=i.slidesPerGroup)void 0!==s[k+i.slidesPerGroup]?u>=s[k]&&u<s[k+i.slidesPerGroup]&&(T=k,O=s[k+i.slidesPerGroup]-s[k]):u>=s[k]&&(T=k,O=s[s.length-1]-s[s.length-2]);var A=(u-s[T])/O;if(h>i.longSwipesMs){if(!i.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&(A>=i.longSwipesRatio?e.slideTo(T+i.slidesPerGroup):e.slideTo(T)),"prev"===e.swipeDirection&&(A>1-i.longSwipesRatio?e.slideTo(T+i.slidesPerGroup):e.slideTo(T))}else{if(!i.shortSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&e.slideTo(T+i.slidesPerGroup),"prev"===e.swipeDirection&&e.slideTo(T)}}}function Bt(){var t=this,e=t.params,n=t.el;if(!n||0!==n.offsetWidth){e.breakpoints&&t.setBreakpoint();var i=t.allowSlideNext,r=t.allowSlidePrev,o=t.snapGrid;if(t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),e.freeMode){var a=Math.min(Math.max(t.translate,t.maxTranslate()),t.minTranslate());t.setTranslate(a),t.updateActiveIndex(),t.updateSlidesClasses(),e.autoHeight&&t.updateAutoHeight()}else t.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0);t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.run(),t.allowSlidePrev=r,t.allowSlideNext=i,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}}function $t(t){var e=this;e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation()))}function Ut(){var e=this,n=e.params,i=e.touchEvents,r=e.el,o=e.wrapperEl;e.onTouchStart=Nt.bind(e),e.onTouchMove=Ft.bind(e),e.onTouchEnd=zt.bind(e),e.onClick=$t.bind(e);var a="container"===n.touchEventsTarget?r:o,s=!!n.nested;if(q.touch||!q.pointerEvents&&!q.prefixedPointerEvents){if(q.touch){var l=!("touchstart"!==i.start||!q.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};a.addEventListener(i.start,e.onTouchStart,l),a.addEventListener(i.move,e.onTouchMove,q.passiveListener?{passive:!1,capture:s}:s),a.addEventListener(i.end,e.onTouchEnd,l)}(n.simulateTouch&&!jt.ios&&!jt.android||n.simulateTouch&&!q.touch&&jt.ios)&&(a.addEventListener("mousedown",e.onTouchStart,!1),t.addEventListener("mousemove",e.onTouchMove,s),t.addEventListener("mouseup",e.onTouchEnd,!1))}else a.addEventListener(i.start,e.onTouchStart,!1),t.addEventListener(i.move,e.onTouchMove,s),t.addEventListener(i.end,e.onTouchEnd,!1);(n.preventClicks||n.preventClicksPropagation)&&a.addEventListener("click",e.onClick,!0),e.on(jt.ios||jt.android?"resize orientationchange observerUpdate":"resize observerUpdate",Bt,!0)}function Ht(){var e=this,n=e.params,i=e.touchEvents,r=e.el,o=e.wrapperEl,a="container"===n.touchEventsTarget?r:o,s=!!n.nested;if(q.touch||!q.pointerEvents&&!q.prefixedPointerEvents){if(q.touch){var l=!("onTouchStart"!==i.start||!q.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};a.removeEventListener(i.start,e.onTouchStart,l),a.removeEventListener(i.move,e.onTouchMove,s),a.removeEventListener(i.end,e.onTouchEnd,l)}(n.simulateTouch&&!jt.ios&&!jt.android||n.simulateTouch&&!q.touch&&jt.ios)&&(a.removeEventListener("mousedown",e.onTouchStart,!1),t.removeEventListener("mousemove",e.onTouchMove,s),t.removeEventListener("mouseup",e.onTouchEnd,!1))}else a.removeEventListener(i.start,e.onTouchStart,!1),t.removeEventListener(i.move,e.onTouchMove,s),t.removeEventListener(i.end,e.onTouchEnd,!1);(n.preventClicks||n.preventClicksPropagation)&&a.removeEventListener("click",e.onClick,!0),e.off(jt.ios||jt.android?"resize orientationchange observerUpdate":"resize observerUpdate",Bt)}function Vt(){var t=this,e=t.activeIndex,n=t.initialized,i=t.loopedSlides;void 0===i&&(i=0);var r=t.params,o=r.breakpoints;if(o&&(!o||0!==Object.keys(o).length)){var a=t.getBreakpoint(o);if(a&&t.currentBreakpoint!==a){var s=a in o?o[a]:void 0;s&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach((function(t){var e=s[t];void 0!==e&&(s[t]="slidesPerView"!==t||"AUTO"!==e&&"auto"!==e?"slidesPerView"===t?parseFloat(e):parseInt(e,10):"auto")}));var l=s||t.originalParams,c=l.direction&&l.direction!==r.direction,u=r.loop&&(l.slidesPerView!==r.slidesPerView||c);c&&n&&t.changeDirection(),Y.extend(t.params,l),Y.extend(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),t.currentBreakpoint=a,u&&n&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(e-i+t.loopedSlides,0,!1)),t.emit("breakpoint",l)}}}function Yt(t){var n=this;if(t){var i=!1,r=[];Object.keys(t).forEach((function(t){r.push(t)})),r.sort((function(t,e){return parseInt(t,10)-parseInt(e,10)}));for(var o=0;o<r.length;o+=1){var a=r[o];n.params.breakpointsInverse?a<=e.innerWidth&&(i=a):a>=e.innerWidth&&!i&&(i=a)}return i||"max"}}function qt(){var t=this,e=t.classNames,n=t.params,i=t.rtl,r=t.$el,o=[];o.push("initialized"),o.push(n.direction),n.freeMode&&o.push("free-mode"),q.flexbox||o.push("no-flexbox"),n.autoHeight&&o.push("autoheight"),i&&o.push("rtl"),n.slidesPerColumn>1&&o.push("multirow"),jt.android&&o.push("android"),jt.ios&&o.push("ios"),(W.isIE||W.isEdge)&&(q.pointerEvents||q.prefixedPointerEvents)&&o.push("wp8-"+n.direction),o.forEach((function(t){e.push(n.containerModifierClass+t)})),r.addClass(e.join(" "))}function Wt(){var t=this,e=t.$el,n=t.classNames;e.removeClass(n.join(" "))}function Gt(t,n,i,r,o,a){var s;function l(){a&&a()}t.complete&&o?l():n?((s=new e.Image).onload=l,s.onerror=l,r&&(s.sizes=r),i&&(s.srcset=i),n&&(s.src=n)):l()}function Xt(){var t=this;function e(){null!=t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}t.imagesToLoad=t.$el.find("img");for(var n=0;n<t.imagesToLoad.length;n+=1){var i=t.imagesToLoad[n];t.loadImage(i,i.currentSrc||i.getAttribute("src"),i.srcset||i.getAttribute("srcset"),i.sizes||i.getAttribute("sizes"),!0,e)}}function Kt(){var t=this,e=t.isLocked;t.isLocked=1===t.snapGrid.length,t.allowSlideNext=!t.isLocked,t.allowSlidePrev=!t.isLocked,e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock"),e&&e!==t.isLocked&&(t.isEnd=!1,t.navigation.update())}var Zt={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},Jt={update:ot,translate:ut,transition:ft,slide:xt,loop:Tt,grabCursor:At,manipulation:It,events:{attachEvents:Ut,detachEvents:Ht},breakpoints:{setBreakpoint:Vt,getBreakpoint:Yt},checkOverflow:{checkOverflow:Kt},classes:{addClasses:qt,removeClasses:Wt},images:{loadImage:Gt,preloadImages:Xt}},Qt={},te=function(t){function e(){for(var n,r,o,a=[],s=arguments.length;s--;)a[s]=arguments[s];1===a.length&&a[0].constructor&&a[0].constructor===Object?o=a[0]:(r=(n=a)[0],o=n[1]),o||(o={}),o=Y.extend({},o),r&&!o.el&&(o.el=r),t.call(this,o),Object.keys(Jt).forEach((function(t){Object.keys(Jt[t]).forEach((function(n){e.prototype[n]||(e.prototype[n]=Jt[t][n])}))}));var l=this;void 0===l.modules&&(l.modules={}),Object.keys(l.modules).forEach((function(t){var e=l.modules[t];if(e.params){var n=Object.keys(e.params)[0],i=e.params[n];if("object"!=typeof i||null===i)return;if(!(n in o)||!("enabled"in i))return;!0===o[n]&&(o[n]={enabled:!0}),"object"!=typeof o[n]||"enabled"in o[n]||(o[n].enabled=!0),o[n]||(o[n]={enabled:!1})}}));var c=Y.extend({},Zt);l.useModulesParams(c),l.params=Y.extend({},c,Qt,o),l.originalParams=Y.extend({},l.params),l.passedParams=Y.extend({},o),l.$=i;var u=i(l.params.el);if(r=u[0]){if(u.length>1){var d=[];return u.each((function(t,n){var i=Y.extend({},o,{el:n});d.push(new e(i))})),d}r.swiper=l,u.data("swiper",l);var h,p,f=u.children("."+l.params.wrapperClass);return Y.extend(l,{$el:u,el:r,$wrapperEl:f,wrapperEl:f[0],classNames:[],slides:i(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===l.params.direction},isVertical:function(){return"vertical"===l.params.direction},rtl:"rtl"===r.dir.toLowerCase()||"rtl"===u.css("direction"),rtlTranslate:"horizontal"===l.params.direction&&("rtl"===r.dir.toLowerCase()||"rtl"===u.css("direction")),wrongRTL:"-webkit-box"===f.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEvents:(h=["touchstart","touchmove","touchend"],p=["mousedown","mousemove","mouseup"],q.pointerEvents?p=["pointerdown","pointermove","pointerup"]:q.prefixedPointerEvents&&(p=["MSPointerDown","MSPointerMove","MSPointerUp"]),l.touchEventsTouch={start:h[0],move:h[1],end:h[2]},l.touchEventsDesktop={start:p[0],move:p[1],end:p[2]},q.touch||!l.params.simulateTouch?l.touchEventsTouch:l.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video",lastClickTime:Y.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.useModules(),l.params.init&&l.init(),l}}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={extendedDefaults:{configurable:!0},defaults:{configurable:!0},Class:{configurable:!0},$:{configurable:!0}};return e.prototype.slidesPerViewDynamic=function(){var t=this,e=t.params,n=t.slides,i=t.slidesGrid,r=t.size,o=t.activeIndex,a=1;if(e.centeredSlides){for(var s,l=n[o].swiperSlideSize,c=o+1;c<n.length;c+=1)n[c]&&!s&&(a+=1,(l+=n[c].swiperSlideSize)>r&&(s=!0));for(var u=o-1;u>=0;u-=1)n[u]&&!s&&(a+=1,(l+=n[u].swiperSlideSize)>r&&(s=!0))}else for(var d=o+1;d<n.length;d+=1)i[d]-i[o]<r&&(a+=1);return a},e.prototype.update=function(){var t=this;if(t&&!t.destroyed){var e=t.snapGrid,n=t.params;n.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.params.freeMode?(i(),t.params.autoHeight&&t.updateAutoHeight()):(("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0))||i(),n.watchOverflow&&e!==t.snapGrid&&t.checkOverflow(),t.emit("update")}function i(){var e=t.rtlTranslate?-1*t.translate:t.translate,n=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(n),t.updateActiveIndex(),t.updateSlidesClasses()}},e.prototype.changeDirection=function(t,e){void 0===e&&(e=!0);var n=this,i=n.params.direction;return t||(t="horizontal"===i?"vertical":"horizontal"),t===i||"horizontal"!==t&&"vertical"!==t||(n.$el.removeClass(""+n.params.containerModifierClass+i+" wp8-"+i).addClass(""+n.params.containerModifierClass+t),(W.isIE||W.isEdge)&&(q.pointerEvents||q.prefixedPointerEvents)&&n.$el.addClass(n.params.containerModifierClass+"wp8-"+t),n.params.direction=t,n.slides.each((function(e,n){"vertical"===t?n.style.width="":n.style.height=""})),n.emit("changeDirection"),e&&n.update()),n},e.prototype.init=function(){var t=this;t.initialized||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit),t.attachEvents(),t.initialized=!0,t.emit("init"))},e.prototype.destroy=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0);var n=this,i=n.params,r=n.$el,o=n.$wrapperEl,a=n.slides;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),e&&(n.removeClasses(),r.removeAttr("style"),o.removeAttr("style"),a&&a.length&&a.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((function(t){n.off(t)})),!1!==t&&(n.$el[0].swiper=null,n.$el.data("swiper",null),Y.deleteProps(n)),n.destroyed=!0),null},e.extendDefaults=function(t){Y.extend(Qt,t)},n.extendedDefaults.get=function(){return Qt},n.defaults.get=function(){return Zt},n.Class.get=function(){return t},n.$.get=function(){return i},Object.defineProperties(e,n),e}(G),ee={name:"device",proto:{device:jt},static:{device:jt}},ne={name:"support",proto:{support:q},static:{support:q}},ie={name:"browser",proto:{browser:W},static:{browser:W}},re={name:"resize",create:function(){var t=this;Y.extend(t,{resize:{resizeHandler:function(){t&&!t.destroyed&&t.initialized&&(t.emit("beforeResize"),t.emit("resize"))},orientationChangeHandler:function(){t&&!t.destroyed&&t.initialized&&t.emit("orientationchange")}}})},on:{init:function(){var t=this;e.addEventListener("resize",t.resize.resizeHandler),e.addEventListener("orientationchange",t.resize.orientationChangeHandler)},destroy:function(){var t=this;e.removeEventListener("resize",t.resize.resizeHandler),e.removeEventListener("orientationchange",t.resize.orientationChangeHandler)}}},oe={func:e.MutationObserver||e.WebkitMutationObserver,attach:function(t,n){void 0===n&&(n={});var i=this,r=new(0,oe.func)((function(t){if(1!==t.length){var n=function(){i.emit("observerUpdate",t[0])};e.requestAnimationFrame?e.requestAnimationFrame(n):e.setTimeout(n,0)}else i.emit("observerUpdate",t[0])}));r.observe(t,{attributes:void 0===n.attributes||n.attributes,childList:void 0===n.childList||n.childList,characterData:void 0===n.characterData||n.characterData}),i.observer.observers.push(r)},init:function(){var t=this;if(q.observer&&t.params.observer){if(t.params.observeParents)for(var e=t.$el.parents(),n=0;n<e.length;n+=1)t.observer.attach(e[n]);t.observer.attach(t.$el[0],{childList:t.params.observeSlideChildren}),t.observer.attach(t.$wrapperEl[0],{attributes:!1})}},destroy:function(){var t=this;t.observer.observers.forEach((function(t){t.disconnect()})),t.observer.observers=[]}},ae={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){var t=this;Y.extend(t,{observer:{init:oe.init.bind(t),attach:oe.attach.bind(t),destroy:oe.destroy.bind(t),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},se={update:function(t){var e=this,n=e.params,i=n.slidesPerView,r=n.slidesPerGroup,o=n.centeredSlides,a=e.params.virtual,s=a.addSlidesBefore,l=a.addSlidesAfter,c=e.virtual,u=c.from,d=c.to,h=c.slides,p=c.slidesGrid,f=c.renderSlide,m=c.offset;e.updateActiveIndex();var v,g,b,y=e.activeIndex||0;v=e.rtlTranslate?"right":e.isHorizontal()?"left":"top",o?(g=Math.floor(i/2)+r+s,b=Math.floor(i/2)+r+l):(g=i+(r-1)+s,b=r+l);var _=Math.max((y||0)-b,0),w=Math.min((y||0)+g,h.length-1),x=(e.slidesGrid[_]||0)-(e.slidesGrid[0]||0);function C(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load()}if(Y.extend(e.virtual,{from:_,to:w,offset:x,slidesGrid:e.slidesGrid}),u===_&&d===w&&!t)return e.slidesGrid!==p&&x!==m&&e.slides.css(v,x+"px"),void e.updateProgress();if(e.params.virtual.renderExternal)return e.params.virtual.renderExternal.call(e,{offset:x,from:_,to:w,slides:function(){for(var t=[],e=_;e<=w;e+=1)t.push(h[e]);return t}()}),void C();var S=[],E=[];if(t)e.$wrapperEl.find("."+e.params.slideClass).remove();else for(var T=u;T<=d;T+=1)(T<_||T>w)&&e.$wrapperEl.find("."+e.params.slideClass+'[data-swiper-slide-index="'+T+'"]').remove();for(var O=0;O<h.length;O+=1)O>=_&&O<=w&&(void 0===d||t?E.push(O):(O>d&&E.push(O),O<u&&S.push(O)));E.forEach((function(t){e.$wrapperEl.append(f(h[t],t))})),S.sort((function(t,e){return e-t})).forEach((function(t){e.$wrapperEl.prepend(f(h[t],t))})),e.$wrapperEl.children(".swiper-slide").css(v,x+"px"),C()},renderSlide:function(t,e){var n=this,r=n.params.virtual;if(r.cache&&n.virtual.cache[e])return n.virtual.cache[e];var o=r.renderSlide?i(r.renderSlide.call(n,t,e)):i('<div class="'+n.params.slideClass+'" data-swiper-slide-index="'+e+'">'+t+"</div>");return o.attr("data-swiper-slide-index")||o.attr("data-swiper-slide-index",e),r.cache&&(n.virtual.cache[e]=o),o},appendSlide:function(t){var e=this;if("object"==typeof t&&"length"in t)for(var n=0;n<t.length;n+=1)t[n]&&e.virtual.slides.push(t[n]);else e.virtual.slides.push(t);e.virtual.update(!0)},prependSlide:function(t){var e=this,n=e.activeIndex,i=n+1,r=1;if(Array.isArray(t)){for(var o=0;o<t.length;o+=1)t[o]&&e.virtual.slides.unshift(t[o]);i=n+t.length,r=t.length}else e.virtual.slides.unshift(t);if(e.params.virtual.cache){var a=e.virtual.cache,s={};Object.keys(a).forEach((function(t){s[parseInt(t,10)+r]=a[t]})),e.virtual.cache=s}e.virtual.update(!0),e.slideTo(i,0)},removeSlide:function(t){var e=this;if(null!=t){var n=e.activeIndex;if(Array.isArray(t))for(var i=t.length-1;i>=0;i-=1)e.virtual.slides.splice(t[i],1),e.params.virtual.cache&&delete e.virtual.cache[t[i]],t[i]<n&&(n-=1),n=Math.max(n,0);else e.virtual.slides.splice(t,1),e.params.virtual.cache&&delete e.virtual.cache[t],t<n&&(n-=1),n=Math.max(n,0);e.virtual.update(!0),e.slideTo(n,0)}},removeAllSlides:function(){var t=this;t.virtual.slides=[],t.params.virtual.cache&&(t.virtual.cache={}),t.virtual.update(!0),t.slideTo(0,0)}},le={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){var t=this;Y.extend(t,{virtual:{update:se.update.bind(t),appendSlide:se.appendSlide.bind(t),prependSlide:se.prependSlide.bind(t),removeSlide:se.removeSlide.bind(t),removeAllSlides:se.removeAllSlides.bind(t),renderSlide:se.renderSlide.bind(t),slides:t.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){var t=this;if(t.params.virtual.enabled){t.classNames.push(t.params.containerModifierClass+"virtual");var e={watchSlidesProgress:!0};Y.extend(t.params,e),Y.extend(t.originalParams,e),t.params.initialSlide||t.virtual.update()}},setTranslate:function(){var t=this;t.params.virtual.enabled&&t.virtual.update()}}},ce={handle:function(n){var i=this,r=i.rtlTranslate,o=n;o.originalEvent&&(o=o.originalEvent);var a=o.keyCode||o.charCode;if(!i.allowSlideNext&&(i.isHorizontal()&&39===a||i.isVertical()&&40===a||34===a))return!1;if(!i.allowSlidePrev&&(i.isHorizontal()&&37===a||i.isVertical()&&38===a||33===a))return!1;if(!(o.shiftKey||o.altKey||o.ctrlKey||o.metaKey||t.activeElement&&t.activeElement.nodeName&&("input"===t.activeElement.nodeName.toLowerCase()||"textarea"===t.activeElement.nodeName.toLowerCase()))){if(i.params.keyboard.onlyInViewport&&(33===a||34===a||37===a||39===a||38===a||40===a)){var s=!1;if(i.$el.parents("."+i.params.slideClass).length>0&&0===i.$el.parents("."+i.params.slideActiveClass).length)return;var l=e.innerWidth,c=e.innerHeight,u=i.$el.offset();r&&(u.left-=i.$el[0].scrollLeft);for(var d=[[u.left,u.top],[u.left+i.width,u.top],[u.left,u.top+i.height],[u.left+i.width,u.top+i.height]],h=0;h<d.length;h+=1){var p=d[h];p[0]>=0&&p[0]<=l&&p[1]>=0&&p[1]<=c&&(s=!0)}if(!s)return}i.isHorizontal()?(33!==a&&34!==a&&37!==a&&39!==a||(o.preventDefault?o.preventDefault():o.returnValue=!1),(34!==a&&39!==a||r)&&(33!==a&&37!==a||!r)||i.slideNext(),(33!==a&&37!==a||r)&&(34!==a&&39!==a||!r)||i.slidePrev()):(33!==a&&34!==a&&38!==a&&40!==a||(o.preventDefault?o.preventDefault():o.returnValue=!1),34!==a&&40!==a||i.slideNext(),33!==a&&38!==a||i.slidePrev()),i.emit("keyPress",a)}},enable:function(){var e=this;e.keyboard.enabled||(i(t).on("keydown",e.keyboard.handle),e.keyboard.enabled=!0)},disable:function(){var e=this;e.keyboard.enabled&&(i(t).off("keydown",e.keyboard.handle),e.keyboard.enabled=!1)}},ue={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){var t=this;Y.extend(t,{keyboard:{enabled:!1,enable:ce.enable.bind(t),disable:ce.disable.bind(t),handle:ce.handle.bind(t)}})},on:{init:function(){var t=this;t.params.keyboard.enabled&&t.keyboard.enable()},destroy:function(){var t=this;t.keyboard.enabled&&t.keyboard.disable()}}};function de(){var e="onwheel",n=e in t;if(!n){var i=t.createElement("div");i.setAttribute(e,"return;"),n="function"==typeof i[e]}return!n&&t.implementation&&t.implementation.hasFeature&&!0!==t.implementation.hasFeature("","")&&(n=t.implementation.hasFeature("Events.wheel","3.0")),n}var he={lastScrollTime:Y.now(),event:e.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":de()?"wheel":"mousewheel",normalize:function(t){var e=10,n=40,i=800,r=0,o=0,a=0,s=0;return"detail"in t&&(o=t.detail),"wheelDelta"in t&&(o=-t.wheelDelta/120),"wheelDeltaY"in t&&(o=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(r=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(r=o,o=0),a=r*e,s=o*e,"deltaY"in t&&(s=t.deltaY),"deltaX"in t&&(a=t.deltaX),(a||s)&&t.deltaMode&&(1===t.deltaMode?(a*=n,s*=n):(a*=i,s*=i)),a&&!r&&(r=a<1?-1:1),s&&!o&&(o=s<1?-1:1),{spinX:r,spinY:o,pixelX:a,pixelY:s}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(t){var n=t,i=this,r=i.params.mousewheel;if(!i.mouseEntered&&!r.releaseOnEdges)return!0;n.originalEvent&&(n=n.originalEvent);var o=0,a=i.rtlTranslate?-1:1,s=he.normalize(n);if(r.forceToAxis)if(i.isHorizontal()){if(!(Math.abs(s.pixelX)>Math.abs(s.pixelY)))return!0;o=s.pixelX*a}else{if(!(Math.abs(s.pixelY)>Math.abs(s.pixelX)))return!0;o=s.pixelY}else o=Math.abs(s.pixelX)>Math.abs(s.pixelY)?-s.pixelX*a:-s.pixelY;if(0===o)return!0;if(r.invert&&(o=-o),i.params.freeMode){i.params.loop&&i.loopFix();var l=i.getTranslate()+o*r.sensitivity,c=i.isBeginning,u=i.isEnd;if(l>=i.minTranslate()&&(l=i.minTranslate()),l<=i.maxTranslate()&&(l=i.maxTranslate()),i.setTransition(0),i.setTranslate(l),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!c&&i.isBeginning||!u&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky&&(clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=Y.nextTick((function(){i.slideToClosest()}),300)),i.emit("scroll",n),i.params.autoplay&&i.params.autoplayDisableOnInteraction&&i.autoplay.stop(),l===i.minTranslate()||l===i.maxTranslate())return!0}else{if(Y.now()-i.mousewheel.lastScrollTime>60)if(o<0)if(i.isEnd&&!i.params.loop||i.animating){if(r.releaseOnEdges)return!0}else i.slideNext(),i.emit("scroll",n);else if(i.isBeginning&&!i.params.loop||i.animating){if(r.releaseOnEdges)return!0}else i.slidePrev(),i.emit("scroll",n);i.mousewheel.lastScrollTime=(new e.Date).getTime()}return n.preventDefault?n.preventDefault():n.returnValue=!1,!1},enable:function(){var t=this;if(!he.event)return!1;if(t.mousewheel.enabled)return!1;var e=t.$el;return"container"!==t.params.mousewheel.eventsTarged&&(e=i(t.params.mousewheel.eventsTarged)),e.on("mouseenter",t.mousewheel.handleMouseEnter),e.on("mouseleave",t.mousewheel.handleMouseLeave),e.on(he.event,t.mousewheel.handle),t.mousewheel.enabled=!0,!0},disable:function(){var t=this;if(!he.event)return!1;if(!t.mousewheel.enabled)return!1;var e=t.$el;return"container"!==t.params.mousewheel.eventsTarged&&(e=i(t.params.mousewheel.eventsTarged)),e.off(he.event,t.mousewheel.handle),t.mousewheel.enabled=!1,!0}},pe={update:function(){var t=this,e=t.params.navigation;if(!t.params.loop){var n=t.navigation,i=n.$nextEl,r=n.$prevEl;r&&r.length>0&&(t.isBeginning?r.addClass(e.disabledClass):r.removeClass(e.disabledClass),r[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](e.lockClass)),i&&i.length>0&&(t.isEnd?i.addClass(e.disabledClass):i.removeClass(e.disabledClass),i[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](e.lockClass))}},onPrevClick:function(t){var e=this;t.preventDefault(),e.isBeginning&&!e.params.loop||e.slidePrev()},onNextClick:function(t){var e=this;t.preventDefault(),e.isEnd&&!e.params.loop||e.slideNext()},init:function(){var t,e,n=this,r=n.params.navigation;(r.nextEl||r.prevEl)&&(r.nextEl&&(t=i(r.nextEl),n.params.uniqueNavElements&&"string"==typeof r.nextEl&&t.length>1&&1===n.$el.find(r.nextEl).length&&(t=n.$el.find(r.nextEl))),r.prevEl&&(e=i(r.prevEl),n.params.uniqueNavElements&&"string"==typeof r.prevEl&&e.length>1&&1===n.$el.find(r.prevEl).length&&(e=n.$el.find(r.prevEl))),t&&t.length>0&&t.on("click",n.navigation.onNextClick),e&&e.length>0&&e.on("click",n.navigation.onPrevClick),Y.extend(n.navigation,{$nextEl:t,nextEl:t&&t[0],$prevEl:e,prevEl:e&&e[0]}))},destroy:function(){var t=this,e=t.navigation,n=e.$nextEl,i=e.$prevEl;n&&n.length&&(n.off("click",t.navigation.onNextClick),n.removeClass(t.params.navigation.disabledClass)),i&&i.length&&(i.off("click",t.navigation.onPrevClick),i.removeClass(t.params.navigation.disabledClass))}},fe={update:function(){var t=this,e=t.rtl,n=t.params.pagination;if(n.el&&t.pagination.el&&t.pagination.$el&&0!==t.pagination.$el.length){var r,o=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,a=t.pagination.$el,s=t.params.loop?Math.ceil((o-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?((r=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup))>o-1-2*t.loopedSlides&&(r-=o-2*t.loopedSlides),r>s-1&&(r-=s),r<0&&"bullets"!==t.params.paginationType&&(r=s+r)):r=void 0!==t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===n.type&&t.pagination.bullets&&t.pagination.bullets.length>0){var l,c,u,d=t.pagination.bullets;if(n.dynamicBullets&&(t.pagination.bulletSize=d.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),a.css(t.isHorizontal()?"width":"height",t.pagination.bulletSize*(n.dynamicMainBullets+4)+"px"),n.dynamicMainBullets>1&&void 0!==t.previousIndex&&(t.pagination.dynamicBulletIndex+=r-t.previousIndex,t.pagination.dynamicBulletIndex>n.dynamicMainBullets-1?t.pagination.dynamicBulletIndex=n.dynamicMainBullets-1:t.pagination.dynamicBulletIndex<0&&(t.pagination.dynamicBulletIndex=0)),l=r-t.pagination.dynamicBulletIndex,u=((c=l+(Math.min(d.length,n.dynamicMainBullets)-1))+l)/2),d.removeClass(n.bulletActiveClass+" "+n.bulletActiveClass+"-next "+n.bulletActiveClass+"-next-next "+n.bulletActiveClass+"-prev "+n.bulletActiveClass+"-prev-prev "+n.bulletActiveClass+"-main"),a.length>1)d.each((function(t,e){var o=i(e),a=o.index();a===r&&o.addClass(n.bulletActiveClass),n.dynamicBullets&&(a>=l&&a<=c&&o.addClass(n.bulletActiveClass+"-main"),a===l&&o.prev().addClass(n.bulletActiveClass+"-prev").prev().addClass(n.bulletActiveClass+"-prev-prev"),a===c&&o.next().addClass(n.bulletActiveClass+"-next").next().addClass(n.bulletActiveClass+"-next-next"))}));else if(d.eq(r).addClass(n.bulletActiveClass),n.dynamicBullets){for(var h=d.eq(l),p=d.eq(c),f=l;f<=c;f+=1)d.eq(f).addClass(n.bulletActiveClass+"-main");h.prev().addClass(n.bulletActiveClass+"-prev").prev().addClass(n.bulletActiveClass+"-prev-prev"),p.next().addClass(n.bulletActiveClass+"-next").next().addClass(n.bulletActiveClass+"-next-next")}if(n.dynamicBullets){var m=Math.min(d.length,n.dynamicMainBullets+4),v=(t.pagination.bulletSize*m-t.pagination.bulletSize)/2-u*t.pagination.bulletSize,g=e?"right":"left";d.css(t.isHorizontal()?g:"top",v+"px")}}if("fraction"===n.type&&(a.find("."+n.currentClass).text(n.formatFractionCurrent(r+1)),a.find("."+n.totalClass).text(n.formatFractionTotal(s))),"progressbar"===n.type){var b;b=n.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";var y=(r+1)/s,_=1,w=1;"horizontal"===b?_=y:w=y,a.find("."+n.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+_+") scaleY("+w+")").transition(t.params.speed)}"custom"===n.type&&n.renderCustom?(a.html(n.renderCustom(t,r+1,s)),t.emit("paginationRender",t,a[0])):t.emit("paginationUpdate",t,a[0]),a[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](n.lockClass)}},render:function(){var t=this,e=t.params.pagination;if(e.el&&t.pagination.el&&t.pagination.$el&&0!==t.pagination.$el.length){var n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,i=t.pagination.$el,r="";if("bullets"===e.type){for(var o=t.params.loop?Math.ceil((n-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length,a=0;a<o;a+=1)e.renderBullet?r+=e.renderBullet.call(t,a,e.bulletClass):r+="<"+e.bulletElement+' class="'+e.bulletClass+'"></'+e.bulletElement+">";i.html(r),t.pagination.bullets=i.find("."+e.bulletClass)}"fraction"===e.type&&(r=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):'<span class="'+e.currentClass+'"></span> / <span class="'+e.totalClass+'"></span>',i.html(r)),"progressbar"===e.type&&(r=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):'<span class="'+e.progressbarFillClass+'"></span>',i.html(r)),"custom"!==e.type&&t.emit("paginationRender",t.pagination.$el[0])}},init:function(){var t=this,e=t.params.pagination;if(e.el){var n=i(e.el);0!==n.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&n.length>1&&1===t.$el.find(e.el).length&&(n=t.$el.find(e.el)),"bullets"===e.type&&e.clickable&&n.addClass(e.clickableClass),n.addClass(e.modifierClass+e.type),"bullets"===e.type&&e.dynamicBullets&&(n.addClass(""+e.modifierClass+e.type+"-dynamic"),t.pagination.dynamicBulletIndex=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&n.addClass(e.progressbarOppositeClass),e.clickable&&n.on("click","."+e.bulletClass,(function(e){e.preventDefault();var n=i(this).index()*t.params.slidesPerGroup;t.params.loop&&(n+=t.loopedSlides),t.slideTo(n)})),Y.extend(t.pagination,{$el:n,el:n[0]}))}},destroy:function(){var t=this,e=t.params.pagination;if(e.el&&t.pagination.el&&t.pagination.$el&&0!==t.pagination.$el.length){var n=t.pagination.$el;n.removeClass(e.hiddenClass),n.removeClass(e.modifierClass+e.type),t.pagination.bullets&&t.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&n.off("click","."+e.bulletClass)}}},me={setTranslate:function(){var t=this;if(t.params.scrollbar.el&&t.scrollbar.el){var e=t.scrollbar,n=t.rtlTranslate,i=t.progress,r=e.dragSize,o=e.trackSize,a=e.$dragEl,s=e.$el,l=t.params.scrollbar,c=r,u=(o-r)*i;n?(u=-u)>0?(c=r-u,u=0):-u+r>o&&(c=o+u):u<0?(c=r+u,u=0):u+r>o&&(c=o-u),t.isHorizontal()?(q.transforms3d?a.transform("translate3d("+u+"px, 0, 0)"):a.transform("translateX("+u+"px)"),a[0].style.width=c+"px"):(q.transforms3d?a.transform("translate3d(0px, "+u+"px, 0)"):a.transform("translateY("+u+"px)"),a[0].style.height=c+"px"),l.hide&&(clearTimeout(t.scrollbar.timeout),s[0].style.opacity=1,t.scrollbar.timeout=setTimeout((function(){s[0].style.opacity=0,s.transition(400)}),1e3))}},setTransition:function(t){var e=this;e.params.scrollbar.el&&e.scrollbar.el&&e.scrollbar.$dragEl.transition(t)},updateSize:function(){var t=this;if(t.params.scrollbar.el&&t.scrollbar.el){var e=t.scrollbar,n=e.$dragEl,i=e.$el;n[0].style.width="",n[0].style.height="";var r,o=t.isHorizontal()?i[0].offsetWidth:i[0].offsetHeight,a=t.size/t.virtualSize,s=a*(o/t.size);r="auto"===t.params.scrollbar.dragSize?o*a:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?n[0].style.width=r+"px":n[0].style.height=r+"px",i[0].style.display=a>=1?"none":"",t.params.scrollbar.hide&&(i[0].style.opacity=0),Y.extend(e,{trackSize:o,divider:a,moveDivider:s,dragSize:r}),e.$el[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](t.params.scrollbar.lockClass)}},getPointerPosition:function(t){return this.isHorizontal()?"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].pageX:t.pageX||t.clientX:"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].pageY:t.pageY||t.clientY},setDragPosition:function(t){var e,n=this,i=n.scrollbar,r=n.rtlTranslate,o=i.$el,a=i.dragSize,s=i.trackSize,l=i.dragStartPos;e=(i.getPointerPosition(t)-o.offset()[n.isHorizontal()?"left":"top"]-(null!==l?l:a/2))/(s-a),e=Math.max(Math.min(e,1),0),r&&(e=1-e);var c=n.minTranslate()+(n.maxTranslate()-n.minTranslate())*e;n.updateProgress(c),n.setTranslate(c),n.updateActiveIndex(),n.updateSlidesClasses()},onDragStart:function(t){var e=this,n=e.params.scrollbar,i=e.scrollbar,r=e.$wrapperEl,o=i.$el,a=i.$dragEl;e.scrollbar.isTouched=!0,e.scrollbar.dragStartPos=t.target===a[0]||t.target===a?i.getPointerPosition(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),r.transition(100),a.transition(100),i.setDragPosition(t),clearTimeout(e.scrollbar.dragTimeout),o.transition(0),n.hide&&o.css("opacity",1),e.emit("scrollbarDragStart",t)},onDragMove:function(t){var e=this,n=e.scrollbar,i=e.$wrapperEl,r=n.$el,o=n.$dragEl;e.scrollbar.isTouched&&(t.preventDefault?t.preventDefault():t.returnValue=!1,n.setDragPosition(t),i.transition(0),r.transition(0),o.transition(0),e.emit("scrollbarDragMove",t))},onDragEnd:function(t){var e=this,n=e.params.scrollbar,i=e.scrollbar.$el;e.scrollbar.isTouched&&(e.scrollbar.isTouched=!1,n.hide&&(clearTimeout(e.scrollbar.dragTimeout),e.scrollbar.dragTimeout=Y.nextTick((function(){i.css("opacity",0),i.transition(400)}),1e3)),e.emit("scrollbarDragEnd",t),n.snapOnRelease&&e.slideToClosest())},enableDraggable:function(){var e=this;if(e.params.scrollbar.el){var n=e.scrollbar,i=e.touchEventsTouch,r=e.touchEventsDesktop,o=e.params,a=n.$el[0],s=!(!q.passiveListener||!o.passiveListeners)&&{passive:!1,capture:!1},l=!(!q.passiveListener||!o.passiveListeners)&&{passive:!0,capture:!1};q.touch?(a.addEventListener(i.start,e.scrollbar.onDragStart,s),a.addEventListener(i.move,e.scrollbar.onDragMove,s),a.addEventListener(i.end,e.scrollbar.onDragEnd,l)):(a.addEventListener(r.start,e.scrollbar.onDragStart,s),t.addEventListener(r.move,e.scrollbar.onDragMove,s),t.addEventListener(r.end,e.scrollbar.onDragEnd,l))}},disableDraggable:function(){var e=this;if(e.params.scrollbar.el){var n=e.scrollbar,i=e.touchEventsTouch,r=e.touchEventsDesktop,o=e.params,a=n.$el[0],s=!(!q.passiveListener||!o.passiveListeners)&&{passive:!1,capture:!1},l=!(!q.passiveListener||!o.passiveListeners)&&{passive:!0,capture:!1};q.touch?(a.removeEventListener(i.start,e.scrollbar.onDragStart,s),a.removeEventListener(i.move,e.scrollbar.onDragMove,s),a.removeEventListener(i.end,e.scrollbar.onDragEnd,l)):(a.removeEventListener(r.start,e.scrollbar.onDragStart,s),t.removeEventListener(r.move,e.scrollbar.onDragMove,s),t.removeEventListener(r.end,e.scrollbar.onDragEnd,l))}},init:function(){var t=this;if(t.params.scrollbar.el){var e=t.scrollbar,n=t.$el,r=t.params.scrollbar,o=i(r.el);t.params.uniqueNavElements&&"string"==typeof r.el&&o.length>1&&1===n.find(r.el).length&&(o=n.find(r.el));var a=o.find("."+t.params.scrollbar.dragClass);0===a.length&&(a=i('<div class="'+t.params.scrollbar.dragClass+'"></div>'),o.append(a)),Y.extend(e,{$el:o,el:o[0],$dragEl:a,dragEl:a[0]}),r.draggable&&e.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},ve={setTransform:function(t,e){var n=this,r=n.rtl,o=i(t),a=r?-1:1,s=o.attr("data-swiper-parallax")||"0",l=o.attr("data-swiper-parallax-x"),c=o.attr("data-swiper-parallax-y"),u=o.attr("data-swiper-parallax-scale"),d=o.attr("data-swiper-parallax-opacity");if(l||c?(l=l||"0",c=c||"0"):n.isHorizontal()?(l=s,c="0"):(c=s,l="0"),l=l.indexOf("%")>=0?parseInt(l,10)*e*a+"%":l*e*a+"px",c=c.indexOf("%")>=0?parseInt(c,10)*e+"%":c*e+"px",null!=d){var h=d-(d-1)*(1-Math.abs(e));o[0].style.opacity=h}if(null==u)o.transform("translate3d("+l+", "+c+", 0px)");else{var p=u-(u-1)*(1-Math.abs(e));o.transform("translate3d("+l+", "+c+", 0px) scale("+p+")")}},setTranslate:function(){var t=this,e=t.$el,n=t.slides,r=t.progress,o=t.snapGrid;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(e,n){t.parallax.setTransform(n,r)})),n.each((function(e,n){var a=n.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(a+=Math.ceil(e/2)-r*(o.length-1)),a=Math.min(Math.max(a,-1),1),i(n).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(e,n){t.parallax.setTransform(n,a)}))}))},setTransition:function(t){void 0===t&&(t=this.params.speed),this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(e,n){var r=i(n),o=parseInt(r.attr("data-swiper-parallax-duration"),10)||t;0===t&&(o=0),r.transition(o)}))}},ge={getDistanceBetweenTouches:function(t){if(t.targetTouches.length<2)return 1;var e=t.targetTouches[0].pageX,n=t.targetTouches[0].pageY,i=t.targetTouches[1].pageX,r=t.targetTouches[1].pageY;return Math.sqrt(Math.pow(i-e,2)+Math.pow(r-n,2))},onGestureStart:function(t){var e=this,n=e.params.zoom,r=e.zoom,o=r.gesture;if(r.fakeGestureTouched=!1,r.fakeGestureMoved=!1,!q.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targetTouches.length<2)return;r.fakeGestureTouched=!0,o.scaleStart=ge.getDistanceBetweenTouches(t)}o.$slideEl&&o.$slideEl.length||(o.$slideEl=i(t.target).closest(".swiper-slide"),0===o.$slideEl.length&&(o.$slideEl=e.slides.eq(e.activeIndex)),o.$imageEl=o.$slideEl.find("img, svg, canvas"),o.$imageWrapEl=o.$imageEl.parent("."+n.containerClass),o.maxRatio=o.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,0!==o.$imageWrapEl.length)?(o.$imageEl.transition(0),e.zoom.isScaling=!0):o.$imageEl=void 0},onGestureChange:function(t){var e=this,n=e.params.zoom,i=e.zoom,r=i.gesture;if(!q.gestures){if("touchmove"!==t.type||"touchmove"===t.type&&t.targetTouches.length<2)return;i.fakeGestureMoved=!0,r.scaleMove=ge.getDistanceBetweenTouches(t)}r.$imageEl&&0!==r.$imageEl.length&&(q.gestures?i.scale=t.scale*i.currentScale:i.scale=r.scaleMove/r.scaleStart*i.currentScale,i.scale>r.maxRatio&&(i.scale=r.maxRatio-1+Math.pow(i.scale-r.maxRatio+1,.5)),i.scale<n.minRatio&&(i.scale=n.minRatio+1-Math.pow(n.minRatio-i.scale+1,.5)),r.$imageEl.transform("translate3d(0,0,0) scale("+i.scale+")"))},onGestureEnd:function(t){var e=this,n=e.params.zoom,i=e.zoom,r=i.gesture;if(!q.gestures){if(!i.fakeGestureTouched||!i.fakeGestureMoved)return;if("touchend"!==t.type||"touchend"===t.type&&t.changedTouches.length<2&&!jt.android)return;i.fakeGestureTouched=!1,i.fakeGestureMoved=!1}r.$imageEl&&0!==r.$imageEl.length&&(i.scale=Math.max(Math.min(i.scale,r.maxRatio),n.minRatio),r.$imageEl.transition(e.params.speed).transform("translate3d(0,0,0) scale("+i.scale+")"),i.currentScale=i.scale,i.isScaling=!1,1===i.scale&&(r.$slideEl=void 0))},onTouchStart:function(t){var e=this.zoom,n=e.gesture,i=e.image;n.$imageEl&&0!==n.$imageEl.length&&(i.isTouched||(jt.android&&t.preventDefault(),i.isTouched=!0,i.touchesStart.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,i.touchesStart.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY))},onTouchMove:function(t){var e=this,n=e.zoom,i=n.gesture,r=n.image,o=n.velocity;if(i.$imageEl&&0!==i.$imageEl.length&&(e.allowClick=!1,r.isTouched&&i.$slideEl)){r.isMoved||(r.width=i.$imageEl[0].offsetWidth,r.height=i.$imageEl[0].offsetHeight,r.startX=Y.getTranslate(i.$imageWrapEl[0],"x")||0,r.startY=Y.getTranslate(i.$imageWrapEl[0],"y")||0,i.slideWidth=i.$slideEl[0].offsetWidth,i.slideHeight=i.$slideEl[0].offsetHeight,i.$imageWrapEl.transition(0),e.rtl&&(r.startX=-r.startX,r.startY=-r.startY));var a=r.width*n.scale,s=r.height*n.scale;if(!(a<i.slideWidth&&s<i.slideHeight)){if(r.minX=Math.min(i.slideWidth/2-a/2,0),r.maxX=-r.minX,r.minY=Math.min(i.slideHeight/2-s/2,0),r.maxY=-r.minY,r.touchesCurrent.x="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,r.touchesCurrent.y="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,!r.isMoved&&!n.isScaling){if(e.isHorizontal()&&(Math.floor(r.minX)===Math.floor(r.startX)&&r.touchesCurrent.x<r.touchesStart.x||Math.floor(r.maxX)===Math.floor(r.startX)&&r.touchesCurrent.x>r.touchesStart.x))return void(r.isTouched=!1);if(!e.isHorizontal()&&(Math.floor(r.minY)===Math.floor(r.startY)&&r.touchesCurrent.y<r.touchesStart.y||Math.floor(r.maxY)===Math.floor(r.startY)&&r.touchesCurrent.y>r.touchesStart.y))return void(r.isTouched=!1)}t.preventDefault(),t.stopPropagation(),r.isMoved=!0,r.currentX=r.touchesCurrent.x-r.touchesStart.x+r.startX,r.currentY=r.touchesCurrent.y-r.touchesStart.y+r.startY,r.currentX<r.minX&&(r.currentX=r.minX+1-Math.pow(r.minX-r.currentX+1,.8)),r.currentX>r.maxX&&(r.currentX=r.maxX-1+Math.pow(r.currentX-r.maxX+1,.8)),r.currentY<r.minY&&(r.currentY=r.minY+1-Math.pow(r.minY-r.currentY+1,.8)),r.currentY>r.maxY&&(r.currentY=r.maxY-1+Math.pow(r.currentY-r.maxY+1,.8)),o.prevPositionX||(o.prevPositionX=r.touchesCurrent.x),o.prevPositionY||(o.prevPositionY=r.touchesCurrent.y),o.prevTime||(o.prevTime=Date.now()),o.x=(r.touchesCurrent.x-o.prevPositionX)/(Date.now()-o.prevTime)/2,o.y=(r.touchesCurrent.y-o.prevPositionY)/(Date.now()-o.prevTime)/2,Math.abs(r.touchesCurrent.x-o.prevPositionX)<2&&(o.x=0),Math.abs(r.touchesCurrent.y-o.prevPositionY)<2&&(o.y=0),o.prevPositionX=r.touchesCurrent.x,o.prevPositionY=r.touchesCurrent.y,o.prevTime=Date.now(),i.$imageWrapEl.transform("translate3d("+r.currentX+"px, "+r.currentY+"px,0)")}}},onTouchEnd:function(){var t=this.zoom,e=t.gesture,n=t.image,i=t.velocity;if(e.$imageEl&&0!==e.$imageEl.length){if(!n.isTouched||!n.isMoved)return n.isTouched=!1,void(n.isMoved=!1);n.isTouched=!1,n.isMoved=!1;var r=300,o=300,a=i.x*r,s=n.currentX+a,l=i.y*o,c=n.currentY+l;0!==i.x&&(r=Math.abs((s-n.currentX)/i.x)),0!==i.y&&(o=Math.abs((c-n.currentY)/i.y));var u=Math.max(r,o);n.currentX=s,n.currentY=c;var d=n.width*t.scale,h=n.height*t.scale;n.minX=Math.min(e.slideWidth/2-d/2,0),n.maxX=-n.minX,n.minY=Math.min(e.slideHeight/2-h/2,0),n.maxY=-n.minY,n.currentX=Math.max(Math.min(n.currentX,n.maxX),n.minX),n.currentY=Math.max(Math.min(n.currentY,n.maxY),n.minY),e.$imageWrapEl.transition(u).transform("translate3d("+n.currentX+"px, "+n.currentY+"px,0)")}},onTransitionEnd:function(){var t=this,e=t.zoom,n=e.gesture;n.$slideEl&&t.previousIndex!==t.activeIndex&&(n.$imageEl.transform("translate3d(0,0,0) scale(1)"),n.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,e.currentScale=1,n.$slideEl=void 0,n.$imageEl=void 0,n.$imageWrapEl=void 0)},toggle:function(t){var e=this.zoom;e.scale&&1!==e.scale?e.out():e.in(t)},in:function(t){var e,n,r,o,a,s,l,c,u,d,h,p,f,m,v,g,b=this,y=b.zoom,_=b.params.zoom,w=y.gesture,x=y.image;w.$slideEl||(w.$slideEl=b.clickedSlide?i(b.clickedSlide):b.slides.eq(b.activeIndex),w.$imageEl=w.$slideEl.find("img, svg, canvas"),w.$imageWrapEl=w.$imageEl.parent("."+_.containerClass)),w.$imageEl&&0!==w.$imageEl.length&&(w.$slideEl.addClass(""+_.zoomedSlideClass),void 0===x.touchesStart.x&&t?(e="touchend"===t.type?t.changedTouches[0].pageX:t.pageX,n="touchend"===t.type?t.changedTouches[0].pageY:t.pageY):(e=x.touchesStart.x,n=x.touchesStart.y),y.scale=w.$imageWrapEl.attr("data-swiper-zoom")||_.maxRatio,y.currentScale=w.$imageWrapEl.attr("data-swiper-zoom")||_.maxRatio,t?(v=w.$slideEl[0].offsetWidth,g=w.$slideEl[0].offsetHeight,r=w.$slideEl.offset().left+v/2-e,o=w.$slideEl.offset().top+g/2-n,l=w.$imageEl[0].offsetWidth,c=w.$imageEl[0].offsetHeight,u=l*y.scale,d=c*y.scale,f=-(h=Math.min(v/2-u/2,0)),m=-(p=Math.min(g/2-d/2,0)),(a=r*y.scale)<h&&(a=h),a>f&&(a=f),(s=o*y.scale)<p&&(s=p),s>m&&(s=m)):(a=0,s=0),w.$imageWrapEl.transition(300).transform("translate3d("+a+"px, "+s+"px,0)"),w.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+y.scale+")"))},out:function(){var t=this,e=t.zoom,n=t.params.zoom,r=e.gesture;r.$slideEl||(r.$slideEl=t.clickedSlide?i(t.clickedSlide):t.slides.eq(t.activeIndex),r.$imageEl=r.$slideEl.find("img, svg, canvas"),r.$imageWrapEl=r.$imageEl.parent("."+n.containerClass)),r.$imageEl&&0!==r.$imageEl.length&&(e.scale=1,e.currentScale=1,r.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),r.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),r.$slideEl.removeClass(""+n.zoomedSlideClass),r.$slideEl=void 0)},enable:function(){var t=this,e=t.zoom;if(!e.enabled){e.enabled=!0;var n=!("touchstart"!==t.touchEvents.start||!q.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1};q.gestures?(t.$wrapperEl.on("gesturestart",".swiper-slide",e.onGestureStart,n),t.$wrapperEl.on("gesturechange",".swiper-slide",e.onGestureChange,n),t.$wrapperEl.on("gestureend",".swiper-slide",e.onGestureEnd,n)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.on(t.touchEvents.start,".swiper-slide",e.onGestureStart,n),t.$wrapperEl.on(t.touchEvents.move,".swiper-slide",e.onGestureChange,n),t.$wrapperEl.on(t.touchEvents.end,".swiper-slide",e.onGestureEnd,n)),t.$wrapperEl.on(t.touchEvents.move,"."+t.params.zoom.containerClass,e.onTouchMove)}},disable:function(){var t=this,e=t.zoom;if(e.enabled){t.zoom.enabled=!1;var n=!("touchstart"!==t.touchEvents.start||!q.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1};q.gestures?(t.$wrapperEl.off("gesturestart",".swiper-slide",e.onGestureStart,n),t.$wrapperEl.off("gesturechange",".swiper-slide",e.onGestureChange,n),t.$wrapperEl.off("gestureend",".swiper-slide",e.onGestureEnd,n)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.off(t.touchEvents.start,".swiper-slide",e.onGestureStart,n),t.$wrapperEl.off(t.touchEvents.move,".swiper-slide",e.onGestureChange,n),t.$wrapperEl.off(t.touchEvents.end,".swiper-slide",e.onGestureEnd,n)),t.$wrapperEl.off(t.touchEvents.move,"."+t.params.zoom.containerClass,e.onTouchMove)}}},be={loadInSlide:function(t,e){void 0===e&&(e=!0);var n=this,r=n.params.lazy;if(void 0!==t&&0!==n.slides.length){var o=n.virtual&&n.params.virtual.enabled?n.$wrapperEl.children("."+n.params.slideClass+'[data-swiper-slide-index="'+t+'"]'):n.slides.eq(t),a=o.find("."+r.elementClass+":not(."+r.loadedClass+"):not(."+r.loadingClass+")");!o.hasClass(r.elementClass)||o.hasClass(r.loadedClass)||o.hasClass(r.loadingClass)||(a=a.add(o[0])),0!==a.length&&a.each((function(t,a){var s=i(a);s.addClass(r.loadingClass);var l=s.attr("data-background"),c=s.attr("data-src"),u=s.attr("data-srcset"),d=s.attr("data-sizes");n.loadImage(s[0],c||l,u,d,!1,(function(){if(null!=n&&n&&(!n||n.params)&&!n.destroyed){if(l?(s.css("background-image",'url("'+l+'")'),s.removeAttr("data-background")):(u&&(s.attr("srcset",u),s.removeAttr("data-srcset")),d&&(s.attr("sizes",d),s.removeAttr("data-sizes")),c&&(s.attr("src",c),s.removeAttr("data-src"))),s.addClass(r.loadedClass).removeClass(r.loadingClass),o.find("."+r.preloaderClass).remove(),n.params.loop&&e){var t=o.attr("data-swiper-slide-index");if(o.hasClass(n.params.slideDuplicateClass)){var i=n.$wrapperEl.children('[data-swiper-slide-index="'+t+'"]:not(.'+n.params.slideDuplicateClass+")");n.lazy.loadInSlide(i.index(),!1)}else{var a=n.$wrapperEl.children("."+n.params.slideDuplicateClass+'[data-swiper-slide-index="'+t+'"]');n.lazy.loadInSlide(a.index(),!1)}}n.emit("lazyImageReady",o[0],s[0])}})),n.emit("lazyImageLoad",o[0],s[0])}))}},load:function(){var t=this,e=t.$wrapperEl,n=t.params,r=t.slides,o=t.activeIndex,a=t.virtual&&n.virtual.enabled,s=n.lazy,l=n.slidesPerView;function c(t){if(a){if(e.children("."+n.slideClass+'[data-swiper-slide-index="'+t+'"]').length)return!0}else if(r[t])return!0;return!1}function u(t){return a?i(t).attr("data-swiper-slide-index"):i(t).index()}if("auto"===l&&(l=0),t.lazy.initialImageLoaded||(t.lazy.initialImageLoaded=!0),t.params.watchSlidesVisibility)e.children("."+n.slideVisibleClass).each((function(e,n){var r=a?i(n).attr("data-swiper-slide-index"):i(n).index();t.lazy.loadInSlide(r)}));else if(l>1)for(var d=o;d<o+l;d+=1)c(d)&&t.lazy.loadInSlide(d);else t.lazy.loadInSlide(o);if(s.loadPrevNext)if(l>1||s.loadPrevNextAmount&&s.loadPrevNextAmount>1){for(var h=s.loadPrevNextAmount,p=l,f=Math.min(o+p+Math.max(h,p),r.length),m=Math.max(o-Math.max(p,h),0),v=o+l;v<f;v+=1)c(v)&&t.lazy.loadInSlide(v);for(var g=m;g<o;g+=1)c(g)&&t.lazy.loadInSlide(g)}else{var b=e.children("."+n.slideNextClass);b.length>0&&t.lazy.loadInSlide(u(b));var y=e.children("."+n.slidePrevClass);y.length>0&&t.lazy.loadInSlide(u(y))}}},ye={LinearSpline:function(t,e){var n,i,r,o,a,s=function(t,e){for(i=-1,n=t.length;n-i>1;)t[r=n+i>>1]<=e?i=r:n=r;return n};return this.x=t,this.y=e,this.lastIndex=t.length-1,this.interpolate=function(t){return t?(a=s(this.x,t),o=a-1,(t-this.x[o])*(this.y[a]-this.y[o])/(this.x[a]-this.x[o])+this.y[o]):0},this},getInterpolateFunction:function(t){var e=this;e.controller.spline||(e.controller.spline=e.params.loop?new ye.LinearSpline(e.slidesGrid,t.slidesGrid):new ye.LinearSpline(e.snapGrid,t.snapGrid))},setTranslate:function(t,e){var n,i,r=this,o=r.controller.control;function a(t){var e=r.rtlTranslate?-r.translate:r.translate;"slide"===r.params.controller.by&&(r.controller.getInterpolateFunction(t),i=-r.controller.spline.interpolate(-e)),i&&"container"!==r.params.controller.by||(n=(t.maxTranslate()-t.minTranslate())/(r.maxTranslate()-r.minTranslate()),i=(e-r.minTranslate())*n+t.minTranslate()),r.params.controller.inverse&&(i=t.maxTranslate()-i),t.updateProgress(i),t.setTranslate(i,r),t.updateActiveIndex(),t.updateSlidesClasses()}if(Array.isArray(o))for(var s=0;s<o.length;s+=1)o[s]!==e&&o[s]instanceof te&&a(o[s]);else o instanceof te&&e!==o&&a(o)},setTransition:function(t,e){var n,i=this,r=i.controller.control;function o(e){e.setTransition(t,i),0!==t&&(e.transitionStart(),e.params.autoHeight&&Y.nextTick((function(){e.updateAutoHeight()})),e.$wrapperEl.transitionEnd((function(){r&&(e.params.loop&&"slide"===i.params.controller.by&&e.loopFix(),e.transitionEnd())})))}if(Array.isArray(r))for(n=0;n<r.length;n+=1)r[n]!==e&&r[n]instanceof te&&o(r[n]);else r instanceof te&&e!==r&&o(r)}},_e={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){var t=this;Y.extend(t,{controller:{control:t.params.controller.control,getInterpolateFunction:ye.getInterpolateFunction.bind(t),setTranslate:ye.setTranslate.bind(t),setTransition:ye.setTransition.bind(t)}})},on:{update:function(){var t=this;t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},resize:function(){var t=this;t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},observerUpdate:function(){var t=this;t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},setTranslate:function(t,e){var n=this;n.controller.control&&n.controller.setTranslate(t,e)},setTransition:function(t,e){var n=this;n.controller.control&&n.controller.setTransition(t,e)}}},we={makeElFocusable:function(t){return t.attr("tabIndex","0"),t},addElRole:function(t,e){return t.attr("role",e),t},addElLabel:function(t,e){return t.attr("aria-label",e),t},disableEl:function(t){return t.attr("aria-disabled",!0),t},enableEl:function(t){return t.attr("aria-disabled",!1),t},onEnterKey:function(t){var e=this,n=e.params.a11y;if(13===t.keyCode){var r=i(t.target);e.navigation&&e.navigation.$nextEl&&r.is(e.navigation.$nextEl)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?e.a11y.notify(n.lastSlideMessage):e.a11y.notify(n.nextSlideMessage)),e.navigation&&e.navigation.$prevEl&&r.is(e.navigation.$prevEl)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?e.a11y.notify(n.firstSlideMessage):e.a11y.notify(n.prevSlideMessage)),e.pagination&&r.is("."+e.params.pagination.bulletClass)&&r[0].click()}},notify:function(t){var e=this.a11y.liveRegion;0!==e.length&&(e.html(""),e.html(t))},updateNavigation:function(){var t=this;if(!t.params.loop){var e=t.navigation,n=e.$nextEl,i=e.$prevEl;i&&i.length>0&&(t.isBeginning?t.a11y.disableEl(i):t.a11y.enableEl(i)),n&&n.length>0&&(t.isEnd?t.a11y.disableEl(n):t.a11y.enableEl(n))}},updatePagination:function(){var t=this,e=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each((function(n,r){var o=i(r);t.a11y.makeElFocusable(o),t.a11y.addElRole(o,"button"),t.a11y.addElLabel(o,e.paginationBulletMessage.replace(/{{index}}/,o.index()+1))}))},init:function(){var t=this;t.$el.append(t.a11y.liveRegion);var e,n,i=t.params.a11y;t.navigation&&t.navigation.$nextEl&&(e=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(n=t.navigation.$prevEl),e&&(t.a11y.makeElFocusable(e),t.a11y.addElRole(e,"button"),t.a11y.addElLabel(e,i.nextSlideMessage),e.on("keydown",t.a11y.onEnterKey)),n&&(t.a11y.makeElFocusable(n),t.a11y.addElRole(n,"button"),t.a11y.addElLabel(n,i.prevSlideMessage),n.on("keydown",t.a11y.onEnterKey)),t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.$el.on("keydown","."+t.params.pagination.bulletClass,t.a11y.onEnterKey)},destroy:function(){var t,e,n=this;n.a11y.liveRegion&&n.a11y.liveRegion.length>0&&n.a11y.liveRegion.remove(),n.navigation&&n.navigation.$nextEl&&(t=n.navigation.$nextEl),n.navigation&&n.navigation.$prevEl&&(e=n.navigation.$prevEl),t&&t.off("keydown",n.a11y.onEnterKey),e&&e.off("keydown",n.a11y.onEnterKey),n.pagination&&n.params.pagination.clickable&&n.pagination.bullets&&n.pagination.bullets.length&&n.pagination.$el.off("keydown","."+n.params.pagination.bulletClass,n.a11y.onEnterKey)}},xe={init:function(){var t=this;if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);var n=t.history;n.initialized=!0,n.paths=xe.getPathValues(),(n.paths.key||n.paths.value)&&(n.scrollToSlide(0,n.paths.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",t.history.setHistoryPopState))}},destroy:function(){var t=this;t.params.history.replaceState||e.removeEventListener("popstate",t.history.setHistoryPopState)},setHistoryPopState:function(){var t=this;t.history.paths=xe.getPathValues(),t.history.scrollToSlide(t.params.speed,t.history.paths.value,!1)},getPathValues:function(){var t=e.location.pathname.slice(1).split("/").filter((function(t){return""!==t})),n=t.length;return{key:t[n-2],value:t[n-1]}},setHistory:function(t,n){var i=this;if(i.history.initialized&&i.params.history.enabled){var r=i.slides.eq(n),o=xe.slugify(r.attr("data-history"));e.location.pathname.includes(t)||(o=t+"/"+o);var a=e.history.state;a&&a.value===o||(i.params.history.replaceState?e.history.replaceState({value:o},null,o):e.history.pushState({value:o},null,o))}},slugify:function(t){return t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(t,e,n){var i=this;if(e)for(var r=0,o=i.slides.length;r<o;r+=1){var a=i.slides.eq(r);if(xe.slugify(a.attr("data-history"))===e&&!a.hasClass(i.params.slideDuplicateClass)){var s=a.index();i.slideTo(s,t,n)}}else i.slideTo(0,t,n)}},Ce={onHashCange:function(){var e=this,n=t.location.hash.replace("#","");if(n!==e.slides.eq(e.activeIndex).attr("data-hash")){var i=e.$wrapperEl.children("."+e.params.slideClass+'[data-hash="'+n+'"]').index();if(void 0===i)return;e.slideTo(i)}},setHash:function(){var n=this;if(n.hashNavigation.initialized&&n.params.hashNavigation.enabled)if(n.params.hashNavigation.replaceState&&e.history&&e.history.replaceState)e.history.replaceState(null,null,"#"+n.slides.eq(n.activeIndex).attr("data-hash")||0);else{var i=n.slides.eq(n.activeIndex),r=i.attr("data-hash")||i.attr("data-history");t.location.hash=r||""}},init:function(){var n=this;if(!(!n.params.hashNavigation.enabled||n.params.history&&n.params.history.enabled)){n.hashNavigation.initialized=!0;var r=t.location.hash.replace("#","");if(r)for(var o=0,a=0,s=n.slides.length;a<s;a+=1){var l=n.slides.eq(a);if((l.attr("data-hash")||l.attr("data-history"))===r&&!l.hasClass(n.params.slideDuplicateClass)){var c=l.index();n.slideTo(c,o,n.params.runCallbacksOnInit,!0)}}n.params.hashNavigation.watchState&&i(e).on("hashchange",n.hashNavigation.onHashCange)}},destroy:function(){var t=this;t.params.hashNavigation.watchState&&i(e).off("hashchange",t.hashNavigation.onHashCange)}},Se={run:function(){var t=this,e=t.slides.eq(t.activeIndex),n=t.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(n=e.attr("data-swiper-autoplay")||t.params.autoplay.delay),clearTimeout(t.autoplay.timeout),t.autoplay.timeout=Y.nextTick((function(){t.params.autoplay.reverseDirection?t.params.loop?(t.loopFix(),t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.isBeginning?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(t.slides.length-1,t.params.speed,!0,!0),t.emit("autoplay")):(t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.params.loop?(t.loopFix(),t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")):t.isEnd?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(0,t.params.speed,!0,!0),t.emit("autoplay")):(t.slideNext(t.params.speed,!0,!0),t.emit("autoplay"))}),n)},start:function(){var t=this;return void 0===t.autoplay.timeout&&!t.autoplay.running&&(t.autoplay.running=!0,t.emit("autoplayStart"),t.autoplay.run(),!0)},stop:function(){var t=this;return!!t.autoplay.running&&void 0!==t.autoplay.timeout&&(t.autoplay.timeout&&(clearTimeout(t.autoplay.timeout),t.autoplay.timeout=void 0),t.autoplay.running=!1,t.emit("autoplayStop"),!0)},pause:function(t){var e=this;e.autoplay.running&&(e.autoplay.paused||(e.autoplay.timeout&&clearTimeout(e.autoplay.timeout),e.autoplay.paused=!0,0!==t&&e.params.autoplay.waitForTransition?(e.$wrapperEl[0].addEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].addEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd)):(e.autoplay.paused=!1,e.autoplay.run())))}},Ee={setTranslate:function(){for(var t=this,e=t.slides,n=0;n<e.length;n+=1){var i=t.slides.eq(n),r=-i[0].swiperSlideOffset;t.params.virtualTranslate||(r-=t.translate);var o=0;t.isHorizontal()||(o=r,r=0);var a=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(i[0].progress),0):1+Math.min(Math.max(i[0].progress,-1),0);i.css({opacity:a}).transform("translate3d("+r+"px, "+o+"px, 0px)")}},setTransition:function(t){var e=this,n=e.slides,i=e.$wrapperEl;if(n.transition(t),e.params.virtualTranslate&&0!==t){var r=!1;n.transitionEnd((function(){if(!r&&e&&!e.destroyed){r=!0,e.animating=!1;for(var t=["webkitTransitionEnd","transitionend"],n=0;n<t.length;n+=1)i.trigger(t[n])}}))}}},Te={setTranslate:function(){var t,e=this,n=e.$el,r=e.$wrapperEl,o=e.slides,a=e.width,s=e.height,l=e.rtlTranslate,c=e.size,u=e.params.cubeEffect,d=e.isHorizontal(),h=e.virtual&&e.params.virtual.enabled,p=0;u.shadow&&(d?(0===(t=r.find(".swiper-cube-shadow")).length&&(t=i('<div class="swiper-cube-shadow"></div>'),r.append(t)),t.css({height:a+"px"})):0===(t=n.find(".swiper-cube-shadow")).length&&(t=i('<div class="swiper-cube-shadow"></div>'),n.append(t)));for(var f=0;f<o.length;f+=1){var m=o.eq(f),v=f;h&&(v=parseInt(m.attr("data-swiper-slide-index"),10));var g=90*v,b=Math.floor(g/360);l&&(g=-g,b=Math.floor(-g/360));var y=Math.max(Math.min(m[0].progress,1),-1),_=0,w=0,x=0;v%4==0?(_=4*-b*c,x=0):(v-1)%4==0?(_=0,x=4*-b*c):(v-2)%4==0?(_=c+4*b*c,x=c):(v-3)%4==0&&(_=-c,x=3*c+4*c*b),l&&(_=-_),d||(w=_,_=0);var C="rotateX("+(d?0:-g)+"deg) rotateY("+(d?g:0)+"deg) translate3d("+_+"px, "+w+"px, "+x+"px)";if(y<=1&&y>-1&&(p=90*v+90*y,l&&(p=90*-v-90*y)),m.transform(C),u.slideShadows){var S=d?m.find(".swiper-slide-shadow-left"):m.find(".swiper-slide-shadow-top"),E=d?m.find(".swiper-slide-shadow-right"):m.find(".swiper-slide-shadow-bottom");0===S.length&&(S=i('<div class="swiper-slide-shadow-'+(d?"left":"top")+'"></div>'),m.append(S)),0===E.length&&(E=i('<div class="swiper-slide-shadow-'+(d?"right":"bottom")+'"></div>'),m.append(E)),S.length&&(S[0].style.opacity=Math.max(-y,0)),E.length&&(E[0].style.opacity=Math.max(y,0))}}if(r.css({"-webkit-transform-origin":"50% 50% -"+c/2+"px","-moz-transform-origin":"50% 50% -"+c/2+"px","-ms-transform-origin":"50% 50% -"+c/2+"px","transform-origin":"50% 50% -"+c/2+"px"}),u.shadow)if(d)t.transform("translate3d(0px, "+(a/2+u.shadowOffset)+"px, "+-a/2+"px) rotateX(90deg) rotateZ(0deg) scale("+u.shadowScale+")");else{var T=Math.abs(p)-90*Math.floor(Math.abs(p)/90),O=1.5-(Math.sin(2*T*Math.PI/360)/2+Math.cos(2*T*Math.PI/360)/2),k=u.shadowScale,A=u.shadowScale/O,P=u.shadowOffset;t.transform("scale3d("+k+", 1, "+A+") translate3d(0px, "+(s/2+P)+"px, "+-s/2/A+"px) rotateX(-90deg)")}var M=W.isSafari||W.isUiWebView?-c/2:0;r.transform("translate3d(0px,0,"+M+"px) rotateX("+(e.isHorizontal()?0:p)+"deg) rotateY("+(e.isHorizontal()?-p:0)+"deg)")},setTransition:function(t){var e=this,n=e.$el;e.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.cubeEffect.shadow&&!e.isHorizontal()&&n.find(".swiper-cube-shadow").transition(t)}},Oe={setTranslate:function(){for(var t=this,e=t.slides,n=t.rtlTranslate,r=0;r<e.length;r+=1){var o=e.eq(r),a=o[0].progress;t.params.flipEffect.limitRotation&&(a=Math.max(Math.min(o[0].progress,1),-1));var s=-180*a,l=0,c=-o[0].swiperSlideOffset,u=0;if(t.isHorizontal()?n&&(s=-s):(u=c,c=0,l=-s,s=0),o[0].style.zIndex=-Math.abs(Math.round(a))+e.length,t.params.flipEffect.slideShadows){var d=t.isHorizontal()?o.find(".swiper-slide-shadow-left"):o.find(".swiper-slide-shadow-top"),h=t.isHorizontal()?o.find(".swiper-slide-shadow-right"):o.find(".swiper-slide-shadow-bottom");0===d.length&&(d=i('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"left":"top")+'"></div>'),o.append(d)),0===h.length&&(h=i('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"right":"bottom")+'"></div>'),o.append(h)),d.length&&(d[0].style.opacity=Math.max(-a,0)),h.length&&(h[0].style.opacity=Math.max(a,0))}o.transform("translate3d("+c+"px, "+u+"px, 0px) rotateX("+l+"deg) rotateY("+s+"deg)")}},setTransition:function(t){var e=this,n=e.slides,i=e.activeIndex,r=e.$wrapperEl;if(n.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.virtualTranslate&&0!==t){var o=!1;n.eq(i).transitionEnd((function(){if(!o&&e&&!e.destroyed){o=!0,e.animating=!1;for(var t=["webkitTransitionEnd","transitionend"],n=0;n<t.length;n+=1)r.trigger(t[n])}}))}}},ke={setTranslate:function(){for(var t=this,e=t.width,n=t.height,r=t.slides,o=t.$wrapperEl,a=t.slidesSizesGrid,s=t.params.coverflowEffect,l=t.isHorizontal(),c=t.translate,u=l?e/2-c:n/2-c,d=l?s.rotate:-s.rotate,h=s.depth,p=0,f=r.length;p<f;p+=1){var m=r.eq(p),v=a[p],g=(u-m[0].swiperSlideOffset-v/2)/v*s.modifier,b=l?d*g:0,y=l?0:d*g,_=-h*Math.abs(g),w=l?0:s.stretch*g,x=l?s.stretch*g:0;Math.abs(x)<.001&&(x=0),Math.abs(w)<.001&&(w=0),Math.abs(_)<.001&&(_=0),Math.abs(b)<.001&&(b=0),Math.abs(y)<.001&&(y=0);var C="translate3d("+x+"px,"+w+"px,"+_+"px)  rotateX("+y+"deg) rotateY("+b+"deg)";if(m.transform(C),m[0].style.zIndex=1-Math.abs(Math.round(g)),s.slideShadows){var S=l?m.find(".swiper-slide-shadow-left"):m.find(".swiper-slide-shadow-top"),E=l?m.find(".swiper-slide-shadow-right"):m.find(".swiper-slide-shadow-bottom");0===S.length&&(S=i('<div class="swiper-slide-shadow-'+(l?"left":"top")+'"></div>'),m.append(S)),0===E.length&&(E=i('<div class="swiper-slide-shadow-'+(l?"right":"bottom")+'"></div>'),m.append(E)),S.length&&(S[0].style.opacity=g>0?g:0),E.length&&(E[0].style.opacity=-g>0?-g:0)}}(q.pointerEvents||q.prefixedPointerEvents)&&(o[0].style.perspectiveOrigin=u+"px 50%")},setTransition:function(t){this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)}},Ae={init:function(){var t=this,e=t.params.thumbs,n=t.constructor;e.swiper instanceof n?(t.thumbs.swiper=e.swiper,Y.extend(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Y.extend(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):Y.isObject(e.swiper)&&(t.thumbs.swiper=new n(Y.extend({},e.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),t.thumbs.swiperCreated=!0),t.thumbs.swiper.$el.addClass(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",t.thumbs.onThumbClick)},onThumbClick:function(){var t=this,e=t.thumbs.swiper;if(e){var n=e.clickedIndex,r=e.clickedSlide;if(!(r&&i(r).hasClass(t.params.thumbs.slideThumbActiveClass)||null==n)){var o;if(o=e.params.loop?parseInt(i(e.clickedSlide).attr("data-swiper-slide-index"),10):n,t.params.loop){var a=t.activeIndex;t.slides.eq(a).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,a=t.activeIndex);var s=t.slides.eq(a).prevAll('[data-swiper-slide-index="'+o+'"]').eq(0).index(),l=t.slides.eq(a).nextAll('[data-swiper-slide-index="'+o+'"]').eq(0).index();o=void 0===s?l:void 0===l?s:l-a<a-s?l:s}t.slideTo(o)}}},update:function(t){var e=this,n=e.thumbs.swiper;if(n){var i="auto"===n.params.slidesPerView?n.slidesPerViewDynamic():n.params.slidesPerView;if(e.realIndex!==n.realIndex){var r,o=n.activeIndex;if(n.params.loop){n.slides.eq(o).hasClass(n.params.slideDuplicateClass)&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,o=n.activeIndex);var a=n.slides.eq(o).prevAll('[data-swiper-slide-index="'+e.realIndex+'"]').eq(0).index(),s=n.slides.eq(o).nextAll('[data-swiper-slide-index="'+e.realIndex+'"]').eq(0).index();r=void 0===a?s:void 0===s?a:s-o==o-a?o:s-o<o-a?s:a}else r=e.realIndex;n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(r)<0&&(n.params.centeredSlides?r=r>o?r-Math.floor(i/2)+1:r+Math.floor(i/2)-1:r>o&&(r=r-i+1),n.slideTo(r,t?0:void 0))}var l=1,c=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(l=e.params.slidesPerView),n.slides.removeClass(c),n.params.loop||n.params.virtual)for(var u=0;u<l;u+=1)n.$wrapperEl.children('[data-swiper-slide-index="'+(e.realIndex+u)+'"]').addClass(c);else for(var d=0;d<l;d+=1)n.slides.eq(e.realIndex+d).addClass(c)}}},Pe=[ee,ne,ie,re,ae,le,ue,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){var t=this;Y.extend(t,{mousewheel:{enabled:!1,enable:he.enable.bind(t),disable:he.disable.bind(t),handle:he.handle.bind(t),handleMouseEnter:he.handleMouseEnter.bind(t),handleMouseLeave:he.handleMouseLeave.bind(t),lastScrollTime:Y.now()}})},on:{init:function(){var t=this;t.params.mousewheel.enabled&&t.mousewheel.enable()},destroy:function(){var t=this;t.mousewheel.enabled&&t.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){var t=this;Y.extend(t,{navigation:{init:pe.init.bind(t),update:pe.update.bind(t),destroy:pe.destroy.bind(t),onNextClick:pe.onNextClick.bind(t),onPrevClick:pe.onPrevClick.bind(t)}})},on:{init:function(){var t=this;t.navigation.init(),t.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(t){var e,n=this,r=n.navigation,o=r.$nextEl,a=r.$prevEl;!n.params.navigation.hideOnClick||i(t.target).is(a)||i(t.target).is(o)||(o?e=o.hasClass(n.params.navigation.hiddenClass):a&&(e=a.hasClass(n.params.navigation.hiddenClass)),!0===e?n.emit("navigationShow",n):n.emit("navigationHide",n),o&&o.toggleClass(n.params.navigation.hiddenClass),a&&a.toggleClass(n.params.navigation.hiddenClass))}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(t){return t},formatFractionTotal:function(t){return t},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){var t=this;Y.extend(t,{pagination:{init:fe.init.bind(t),render:fe.render.bind(t),update:fe.update.bind(t),destroy:fe.destroy.bind(t),dynamicBulletIndex:0}})},on:{init:function(){var t=this;t.pagination.init(),t.pagination.render(),t.pagination.update()},activeIndexChange:function(){var t=this;(t.params.loop||void 0===t.snapIndex)&&t.pagination.update()},snapIndexChange:function(){var t=this;t.params.loop||t.pagination.update()},slidesLengthChange:function(){var t=this;t.params.loop&&(t.pagination.render(),t.pagination.update())},snapGridLengthChange:function(){var t=this;t.params.loop||(t.pagination.render(),t.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(t){var e=this;e.params.pagination.el&&e.params.pagination.hideOnClick&&e.pagination.$el.length>0&&!i(t.target).hasClass(e.params.pagination.bulletClass)&&(!0===e.pagination.$el.hasClass(e.params.pagination.hiddenClass)?e.emit("paginationShow",e):e.emit("paginationHide",e),e.pagination.$el.toggleClass(e.params.pagination.hiddenClass))}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){var t=this;Y.extend(t,{scrollbar:{init:me.init.bind(t),destroy:me.destroy.bind(t),updateSize:me.updateSize.bind(t),setTranslate:me.setTranslate.bind(t),setTransition:me.setTransition.bind(t),enableDraggable:me.enableDraggable.bind(t),disableDraggable:me.disableDraggable.bind(t),setDragPosition:me.setDragPosition.bind(t),getPointerPosition:me.getPointerPosition.bind(t),onDragStart:me.onDragStart.bind(t),onDragMove:me.onDragMove.bind(t),onDragEnd:me.onDragEnd.bind(t),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){var t=this;t.scrollbar.init(),t.scrollbar.updateSize(),t.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(t){this.scrollbar.setTransition(t)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){var t=this;Y.extend(t,{parallax:{setTransform:ve.setTransform.bind(t),setTranslate:ve.setTranslate.bind(t),setTransition:ve.setTransition.bind(t)}})},on:{beforeInit:function(){var t=this;t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)},init:function(){var t=this;t.params.parallax.enabled&&t.parallax.setTranslate()},setTranslate:function(){var t=this;t.params.parallax.enabled&&t.parallax.setTranslate()},setTransition:function(t){var e=this;e.params.parallax.enabled&&e.parallax.setTransition(t)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var t=this,e={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach((function(n){e[n]=ge[n].bind(t)})),Y.extend(t,{zoom:e});var n=1;Object.defineProperty(t.zoom,"scale",{get:function(){return n},set:function(e){if(n!==e){var i=t.zoom.gesture.$imageEl?t.zoom.gesture.$imageEl[0]:void 0,r=t.zoom.gesture.$slideEl?t.zoom.gesture.$slideEl[0]:void 0;t.emit("zoomChange",e,i,r)}n=e}})},on:{init:function(){var t=this;t.params.zoom.enabled&&t.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(t){var e=this;e.zoom.enabled&&e.zoom.onTouchStart(t)},touchEnd:function(t){var e=this;e.zoom.enabled&&e.zoom.onTouchEnd(t)},doubleTap:function(t){var e=this;e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&e.zoom.toggle(t)},transitionEnd:function(){var t=this;t.zoom.enabled&&t.params.zoom.enabled&&t.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){var t=this;Y.extend(t,{lazy:{initialImageLoaded:!1,load:be.load.bind(t),loadInSlide:be.loadInSlide.bind(t)}})},on:{beforeInit:function(){var t=this;t.params.lazy.enabled&&t.params.preloadImages&&(t.params.preloadImages=!1)},init:function(){var t=this;t.params.lazy.enabled&&!t.params.loop&&0===t.params.initialSlide&&t.lazy.load()},scroll:function(){var t=this;t.params.freeMode&&!t.params.freeModeSticky&&t.lazy.load()},resize:function(){var t=this;t.params.lazy.enabled&&t.lazy.load()},scrollbarDragMove:function(){var t=this;t.params.lazy.enabled&&t.lazy.load()},transitionStart:function(){var t=this;t.params.lazy.enabled&&(t.params.lazy.loadOnTransitionStart||!t.params.lazy.loadOnTransitionStart&&!t.lazy.initialImageLoaded)&&t.lazy.load()},transitionEnd:function(){var t=this;t.params.lazy.enabled&&!t.params.lazy.loadOnTransitionStart&&t.lazy.load()}}},_e,{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var t=this;Y.extend(t,{a11y:{liveRegion:i('<span class="'+t.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys(we).forEach((function(e){t.a11y[e]=we[e].bind(t)}))},on:{init:function(){var t=this;t.params.a11y.enabled&&(t.a11y.init(),t.a11y.updateNavigation())},toEdge:function(){var t=this;t.params.a11y.enabled&&t.a11y.updateNavigation()},fromEdge:function(){var t=this;t.params.a11y.enabled&&t.a11y.updateNavigation()},paginationUpdate:function(){var t=this;t.params.a11y.enabled&&t.a11y.updatePagination()},destroy:function(){var t=this;t.params.a11y.enabled&&t.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){var t=this;Y.extend(t,{history:{init:xe.init.bind(t),setHistory:xe.setHistory.bind(t),setHistoryPopState:xe.setHistoryPopState.bind(t),scrollToSlide:xe.scrollToSlide.bind(t),destroy:xe.destroy.bind(t)}})},on:{init:function(){var t=this;t.params.history.enabled&&t.history.init()},destroy:function(){var t=this;t.params.history.enabled&&t.history.destroy()},transitionEnd:function(){var t=this;t.history.initialized&&t.history.setHistory(t.params.history.key,t.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var t=this;Y.extend(t,{hashNavigation:{initialized:!1,init:Ce.init.bind(t),destroy:Ce.destroy.bind(t),setHash:Ce.setHash.bind(t),onHashCange:Ce.onHashCange.bind(t)}})},on:{init:function(){var t=this;t.params.hashNavigation.enabled&&t.hashNavigation.init()},destroy:function(){var t=this;t.params.hashNavigation.enabled&&t.hashNavigation.destroy()},transitionEnd:function(){var t=this;t.hashNavigation.initialized&&t.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var t=this;Y.extend(t,{autoplay:{running:!1,paused:!1,run:Se.run.bind(t),start:Se.start.bind(t),stop:Se.stop.bind(t),pause:Se.pause.bind(t),onTransitionEnd:function(e){t&&!t.destroyed&&t.$wrapperEl&&e.target===this&&(t.$wrapperEl[0].removeEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].removeEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd),t.autoplay.paused=!1,t.autoplay.running?t.autoplay.run():t.autoplay.stop())}}})},on:{init:function(){var t=this;t.params.autoplay.enabled&&t.autoplay.start()},beforeTransitionStart:function(t,e){var n=this;n.autoplay.running&&(e||!n.params.autoplay.disableOnInteraction?n.autoplay.pause(t):n.autoplay.stop())},sliderFirstMove:function(){var t=this;t.autoplay.running&&(t.params.autoplay.disableOnInteraction?t.autoplay.stop():t.autoplay.pause())},destroy:function(){var t=this;t.autoplay.running&&t.autoplay.stop()}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){var t=this;Y.extend(t,{fadeEffect:{setTranslate:Ee.setTranslate.bind(t),setTransition:Ee.setTransition.bind(t)}})},on:{beforeInit:function(){var t=this;if("fade"===t.params.effect){t.classNames.push(t.params.containerModifierClass+"fade");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};Y.extend(t.params,e),Y.extend(t.originalParams,e)}},setTranslate:function(){var t=this;"fade"===t.params.effect&&t.fadeEffect.setTranslate()},setTransition:function(t){var e=this;"fade"===e.params.effect&&e.fadeEffect.setTransition(t)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){var t=this;Y.extend(t,{cubeEffect:{setTranslate:Te.setTranslate.bind(t),setTransition:Te.setTransition.bind(t)}})},on:{beforeInit:function(){var t=this;if("cube"===t.params.effect){t.classNames.push(t.params.containerModifierClass+"cube"),t.classNames.push(t.params.containerModifierClass+"3d");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};Y.extend(t.params,e),Y.extend(t.originalParams,e)}},setTranslate:function(){var t=this;"cube"===t.params.effect&&t.cubeEffect.setTranslate()},setTransition:function(t){var e=this;"cube"===e.params.effect&&e.cubeEffect.setTransition(t)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){var t=this;Y.extend(t,{flipEffect:{setTranslate:Oe.setTranslate.bind(t),setTransition:Oe.setTransition.bind(t)}})},on:{beforeInit:function(){var t=this;if("flip"===t.params.effect){t.classNames.push(t.params.containerModifierClass+"flip"),t.classNames.push(t.params.containerModifierClass+"3d");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};Y.extend(t.params,e),Y.extend(t.originalParams,e)}},setTranslate:function(){var t=this;"flip"===t.params.effect&&t.flipEffect.setTranslate()},setTransition:function(t){var e=this;"flip"===e.params.effect&&e.flipEffect.setTransition(t)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){var t=this;Y.extend(t,{coverflowEffect:{setTranslate:ke.setTranslate.bind(t),setTransition:ke.setTransition.bind(t)}})},on:{beforeInit:function(){var t=this;"coverflow"===t.params.effect&&(t.classNames.push(t.params.containerModifierClass+"coverflow"),t.classNames.push(t.params.containerModifierClass+"3d"),t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)},setTranslate:function(){var t=this;"coverflow"===t.params.effect&&t.coverflowEffect.setTranslate()},setTransition:function(t){var e=this;"coverflow"===e.params.effect&&e.coverflowEffect.setTransition(t)}}},{name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){var t=this;Y.extend(t,{thumbs:{swiper:null,init:Ae.init.bind(t),update:Ae.update.bind(t),onThumbClick:Ae.onThumbClick.bind(t)}})},on:{beforeInit:function(){var t=this,e=t.params.thumbs;e&&e.swiper&&(t.thumbs.init(),t.thumbs.update(!0))},slideChange:function(){var t=this;t.thumbs.swiper&&t.thumbs.update()},update:function(){var t=this;t.thumbs.swiper&&t.thumbs.update()},resize:function(){var t=this;t.thumbs.swiper&&t.thumbs.update()},observerUpdate:function(){var t=this;t.thumbs.swiper&&t.thumbs.update()},setTransition:function(t){var e=this.thumbs.swiper;e&&e.setTransition(t)},beforeDestroy:function(){var t=this,e=t.thumbs.swiper;e&&t.thumbs.swiperCreated&&e&&e.destroy()}}}];return void 0===te.use&&(te.use=te.Class.use,te.installModule=te.Class.installModule),te.use(Pe),te}()},3348:(t,e,n)=>{"use strict";n.d(e,{IO:()=>Gt});var i=n(2893);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var c,u,d=(u=c={path:void 0,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&c.path)}},c.exports,function(){var t={}.hasOwnProperty;function e(){for(var n=[],i=0;i<arguments.length;i++){var r=arguments[i];if(r){var o=typeof r;if("string"===o||"number"===o)n.push(r);else if(Array.isArray(r)&&r.length){var a=e.apply(null,r);a&&n.push(a)}else if("object"===o)for(var s in r)t.call(r,s)&&r[s]&&n.push(s)}}return n.join(" ")}u.exports?(e.default=e,u.exports=e):window.classNames=e}(),c.exports),h=function(t){return function(e,n){if(!e)return t;var i;"string"==typeof e?i=e:n=e;var r=t;return i&&(r+="__"+i),r+(n?Object.keys(n).reduce((function(t,e){var i=n[e];return i&&(t+=" "+("boolean"==typeof i?r+"--"+e:r+"--"+e+"_"+i)),t}),""):"")}};function p(t,e,n){var i,r,o,a,s;function l(){var c=Date.now()-a;c<e&&c>=0?i=setTimeout(l,e-c):(i=null,n||(s=t.apply(o,r),o=r=null))}null==e&&(e=100);var c=function(){o=this,r=arguments,a=Date.now();var c=n&&!i;return i||(i=setTimeout(l,e)),c&&(s=t.apply(o,r),o=r=null),s};return c.clear=function(){i&&(clearTimeout(i),i=null)},c.flush=function(){i&&(s=t.apply(o,r),o=r=null,clearTimeout(i),i=null)},c}p.debounce=p;var f=p,m=function(){return(m=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function v(t,e){var n,i;return t&&e?(n=""+t+e[0].toUpperCase()+e.slice(1),i=t+"-"+e):(n=t||e,i=t||e),{name:n,classname:i}}function g(t){return/^blob:/.test(t)}function b(t){return g(t)||function(t){return/^data:/.test(t)}(t)}function y(t){return!!(t&&t.constructor&&t.call&&t.apply)}function _(t){return void 0===t}function w(t){return"object"==typeof t&&null!==t}function x(t,e,n){var i={};return w(t)?(Object.keys(e).forEach((function(r){_(t[r])?i[r]=e[r]:w(e[r])?w(t[r])?i[r]=x(t[r],e[r],n[r]):i[r]=t[r]?e[r]:n[r]:!0===e[r]||!1===e[r]?i[r]=Boolean(t[r]):i[r]=t[r]})),i):t?e:n}function C(t){var e=Number(t);return Number.isNaN(e)?t:e}function S(t){return typeof("number"==t||function(t){return"object"==typeof t&&null!==t}(t)&&"[object Number]"==toString.call(t))&&!E(t)}function E(t){return t!=t}function T(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}var O=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this.type="manipulateImage",this.move=t,this.scale=e},k=function(t,e){void 0===e&&(e={}),this.type="resize",this.directions=t,this.params=e},A=function(t){this.type="move",this.directions=t},P=function(){function t(t,e,n,i,r){this.type="drag",this.nativeEvent=t,this.position=n,this.previousPosition=i,this.element=e,this.anchor=r}return t.prototype.shift=function(){var t=this,e=t.element,n=t.anchor,i=t.position,r=e.getBoundingClientRect(),o=r.left,a=r.top;return{left:i.left-o-n.left,top:i.top-a-n.top}},t}();function M(t,e,n,i,r,o,a,s,l,c){"boolean"!=typeof a&&(l=s,s=a,a=!1);const u="function"==typeof n?n.options:n;let d;if(t&&t.render&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),i&&(u._scopeId=i),o?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=d):e&&(d=a?function(t){e.call(this,c(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),d)if(u.functional){const t=u.render;u.render=function(e,n){return d.call(n),t(e,n)}}else{const t=u.beforeCreate;u.beforeCreate=t?[].concat(t,d):[d]}return n}var L=M({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"draggable",class:t.classname,on:{touchstart:t.onTouchStart,mousedown:t.onMouseDown,mouseover:t.onMouseOver,mouseleave:t.onMouseLeave}},[t._t("default")],2)},staticRenderFns:[]},void 0,{name:"DraggableElement",mixins:[{beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeDestroy:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){if(!this.$refs.draggable)throw new Error('You should add ref "draggable" to your root element to use draggable mixin');this.touches=[],this.hovered=!1},methods:{onMouseOver:function(){this.hovered||(this.hovered=!0,this.$emit("enter"))},onMouseLeave:function(){this.hovered&&!this.touches.length&&(this.hovered=!1,this.$emit("leave"))},onTouchStart:function(t){t.cancelable&&!this.disabled&&1===t.touches.length&&(this.touches=s(t.touches),this.hovered||(this.$emit("enter"),this.hovered=!0),t.touches.length&&this.initAnchor(this.touches.reduce((function(e,n){return{clientX:e.clientX+n.clientX/t.touches.length,clientY:e.clientY+n.clientY/t.touches.length}}),{clientX:0,clientY:0})),t.preventDefault&&t.preventDefault(),t.stopPropagation())},onTouchEnd:function(){this.processEnd()},onTouchMove:function(t){this.touches.length&&(this.processMove(t,t.touches),t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation())},onMouseDown:function(t){if(!this.disabled&&0===t.button){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.initAnchor(e),t.stopPropagation()}},onMouseMove:function(t){this.touches.length&&(this.processMove(t,[{fake:!0,clientX:t.clientX,clientY:t.clientY}]),t.preventDefault&&t.preventDefault())},onMouseUp:function(){this.processEnd()},initAnchor:function(t){var e=this.$refs.draggable.getBoundingClientRect(),n=e.left,i=e.right,r=e.bottom,o=e.top;this.anchor={left:t.clientX-n,top:t.clientY-o,bottom:r-t.clientY,right:i-t.clientX}},processMove:function(t,e){var n=s(e);if(this.touches.length){if(1===this.touches.length&&1===n.length){var i=this.$refs.draggable;this.$emit("drag",new P(t,i,{left:n[0].clientX,top:n[0].clientY},{left:this.touches[0].clientX,top:this.touches[0].clientY},this.anchor))}this.touches=n}},processEnd:function(){this.touches.length&&this.$emit("drag-end"),this.hovered&&(this.$emit("leave"),this.hovered=!1),this.touches=[]}}}],props:{classname:{type:String}}},void 0,!1,void 0,!1,void 0,void 0,void 0),D=h("vue-handler-wrapper"),R=M({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classes.root},[n("DraggableElement",{class:t.classes.draggable,on:{drag:function(e){return t.$emit("drag",e)},"drag-end":function(e){return t.$emit("drag-end")},leave:function(e){return t.$emit("leave")},enter:function(e){return t.$emit("enter")}}},[t._t("default")],2)],1)},staticRenderFns:[]},void 0,{name:"HandlerWrapper",components:{DraggableElement:L},props:{horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},computed:{classes:function(){var t;if(this.horizontalPosition||this.verticalPosition){var e,n=v(this.horizontalPosition,this.verticalPosition);t=D((r(e={},n.classname,!0),r(e,"disabled",this.disabled),e))}else t=D({disabled:this.disabled});return{root:t,draggable:D("draggable")}}}},void 0,!1,void 0,!1,void 0,void 0,void 0),I=h("vue-line-wrapper"),j=M({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("DraggableElement",{class:t.classname,on:{drag:function(e){return t.$emit("drag",e)},"drag-end":function(e){return t.$emit("drag-end")},leave:function(e){return t.$emit("leave")},enter:function(e){return t.$emit("enter")}}},[t._t("default")],2)},staticRenderFns:[]},void 0,{name:"LineWrapper",components:{DraggableElement:L},props:{position:{type:String,required:!0},disabled:{type:Boolean,default:!1}},computed:{classname:function(){var t;return I((r(t={},this.position,!0),r(t,"disabled",this.disabled),t))}}},void 0,!1,void 0,!1,void 0,void 0,void 0),N=["left","right","top","bottom"],F=["left","right"],z=["top","bottom"],B=["left","top"],$=["fill-area","fit-area","stencil","none"],U={left:0,top:0,width:0,height:0};function H(t,e,n){return!(n=n||["width","height","left","top"]).some((function(n){return t[n]!==e[n]}))}function V(t){return{left:t.left,top:t.top,right:t.left+t.width,bottom:t.top+t.height}}function Y(t,e){return{left:t.left-e.left,top:t.top-e.top}}function q(t){return{left:t.left+t.width/2,top:t.top+t.height/2}}function W(t,e){var n={left:0,top:0,right:0,bottom:0};return N.forEach((function(i){var r=e[i],o=V(t)[i];n[i]=void 0!==r&&void 0!==o?"left"===i||"top"===i?Math.max(0,r-o):Math.max(0,o-r):0})),n}function G(t,e){return{left:t.left-e.left,top:t.top-e.top,width:t.width+e.left+e.right,height:t.height+e.top+e.bottom}}function X(t){return{left:-t.left,top:-t.top}}function K(t,e){return m(m({},t),{left:t.left+e.left,top:t.top+e.top})}function Z(t,e,n,i){if(1!==e){if(n){var r=q(t);return{width:t.width*e,height:t.height*e,left:t.left+t.width*(1-e)/2+(n.left-r.left)*(i||1-e),top:t.top+t.height*(1-e)/2+(n.top-r.top)*(i||1-e)}}return{width:t.width*e,height:t.height*e,left:t.left+t.width*(1-e)/2,top:t.top+t.height*(1-e)/2}}return t}function J(t){return t.width/t.height}function Q(t,e){return Math.min(void 0!==e.right&&void 0!==e.left?(e.right-e.left)/t.width:1/0,void 0!==e.bottom&&void 0!==e.top?(e.bottom-e.top)/t.height:1/0)}function tt(t,e){var n={left:0,top:0},i=W(t,e);return i.left&&i.left>0?n.left=i.left:i.right&&i.right>0&&(n.left=-i.right),i.top&&i.top>0?n.top=i.top:i.bottom&&i.bottom>0&&(n.top=-i.bottom),n}function et(t,e){var n;return e.minimum&&t<e.minimum?n=e.minimum:e.maximum&&t>e.maximum&&(n=e.maximum),n}function nt(t,e){var n=J(t),i=J(e);return e.width<1/0&&e.height<1/0?n>i?{width:e.width,height:e.width/n}:{width:e.height*n,height:e.height}:e.width<1/0?{width:e.width,height:e.width/n}:e.height<1/0?{width:e.height*n,height:e.height}:t}function it(t,e){var n=e*Math.PI/180;return{width:Math.abs(t.width*Math.cos(n))+Math.abs(t.height*Math.sin(n)),height:Math.abs(t.width*Math.sin(n))+Math.abs(t.height*Math.cos(n))}}function rt(t,e){var n=e*Math.PI/180;return{left:t.left*Math.cos(n)-t.top*Math.sin(n),top:t.left*Math.sin(n)+t.top*Math.cos(n)}}function ot(t,e){var n=W(at(t,e),e);return n.left+n.right+n.top+n.bottom?n.left+n.right>n.top+n.bottom?Math.min((t.width+n.left+n.right)/t.width,Q(t,e)):Math.min((t.height+n.top+n.bottom)/t.height,Q(t,e)):1}function at(t,e,n){void 0===n&&(n=!1);var i=tt(t,e);return K(t,n?X(i):i)}function st(t){return{width:void 0!==t.right&&void 0!==t.left?t.right-t.left:1/0,height:void 0!==t.bottom&&void 0!==t.top?t.bottom-t.top:1/0}}function lt(t,e,n){void 0===n&&(n=!0);var i={};return N.forEach((function(r){var o=t[r],a=e[r];void 0!==o&&void 0!==a?i[r]="left"===r||"top"===r?n?Math.max(o,a):Math.min(o,a):n?Math.min(o,a):Math.max(o,a):void 0!==a?i[r]=a:void 0!==o&&(i[r]=o)})),i}function ct(t,e){return lt(t,e,!0)}function ut(t){var e=t.size,n=t.aspectRatio,i=t.ignoreMinimum,r=t.sizeRestrictions;return Boolean((e.correctRatio||J(e)>=n.minimum&&J(e)<=n.maximum)&&e.height<=r.maxHeight&&e.width<=r.maxWidth&&e.width&&e.height&&(i||e.height>=r.minHeight&&e.width>=r.minWidth))}function dt(t,e){return Math.pow(t.width-e.width,2)+Math.pow(t.height-e.height,2)}function ht(t){var e=t.width,n=t.height,i=t.sizeRestrictions,r={minimum:t.aspectRatio&&t.aspectRatio.minimum||0,maximum:t.aspectRatio&&t.aspectRatio.maximum||1/0},o={width:Math.max(i.minWidth,Math.min(i.maxWidth,e)),height:Math.max(i.minHeight,Math.min(i.maxHeight,n))};function a(t,o){return void 0===o&&(o=!1),t.reduce((function(t,a){return ut({size:a,aspectRatio:r,sizeRestrictions:i,ignoreMinimum:o})&&(!t||dt(a,{width:e,height:n})<dt(t,{width:e,height:n}))?a:t}),null)}var s=[];r&&[r.minimum,r.maximum].forEach((function(t){t&&s.push({width:o.width,height:o.width/t,correctRatio:!0},{width:o.height*t,height:o.height,correctRatio:!0})})),ut({size:o,aspectRatio:r,sizeRestrictions:i})&&s.push(o);var l=a(s)||a(s,!0);return l&&{width:l.width,height:l.height}}function pt(t){var e=t.event,n=t.coordinates,i=t.positionRestrictions,r=void 0===i?{}:i,o=K(n,e.directions);return K(o,tt(o,r))}function ft(t){t.event;var e,n,i,r=t.getAreaRestrictions,o=t.boundaries,a=t.coordinates,s=t.visibleArea,l=(t.aspectRatio,t.stencilSize),c=t.sizeRestrictions,u=t.positionRestrictions,d=(t.stencilReference,m({},a)),h=m({},s),p=m({},l);e=J(p),n=J(d),void 0===i&&(i=.001),(0===e||0===n?Math.abs(n-e)<i:Math.abs(n/e)<1+i&&Math.abs(n/e)>1-i)||(d=m(m({},d),ht({sizeRestrictions:c,width:d.width,height:d.height,aspectRatio:{minimum:J(p),maximum:J(p)}})));var f=ot(h=Z(h,d.width*o.width/(h.width*p.width)),r({visibleArea:h,type:"resize"}));return 1!==f&&(h=Z(h,f),d=Z(d,f)),h=at(h=K(h,Y(q(d),q(h))),r({visibleArea:h,type:"move"})),{coordinates:d=at(d,ct(V(h),u)),visibleArea:h}}function mt(t){var e=t.event,n=t.getAreaRestrictions,i=t.boundaries,r=t.coordinates,o=t.visibleArea,a=(t.aspectRatio,t.stencilSize,t.sizeRestrictions,t.positionRestrictions),s=(t.stencilReference,m({},r)),l=m({},o);if(r&&o&&"manipulateImage"!==e.type){var c={width:0,height:0};l.width,i.width,J(i)>J(s)?(c.height=.8*i.height,c.width=c.height*J(s)):(c.width=.8*i.width,c.height=c.width*J(s));var u=ot(l=Z(l,s.width*i.width/(l.width*c.width)),n({visibleArea:l,type:"resize"}));l=Z(l,u),1!==u&&(c.height/=u,c.width/=u),l=at(l=K(l,Y(q(s),q(l))),n({visibleArea:l,type:"move"})),s=at(s,ct(V(l),a))}return{coordinates:s,visibleArea:l}}function vt(t){var e=t.event,n=t.coordinates,i=t.visibleArea,r=t.getAreaRestrictions,o=m({},i),a=m({},n);if("setCoordinates"===e.type){var s=Math.max(0,a.width-o.width),l=Math.max(0,a.height-o.height);s>l?o=Z(o,Math.min(a.width/o.width,Q(o,r({visibleArea:o,type:"resize"})))):l>s&&(o=Z(o,Math.min(a.height/o.height,Q(o,r({visibleArea:o,type:"resize"}))))),o=at(o=K(o,X(tt(a,V(o)))),r({visibleArea:o,type:"move"}))}return{visibleArea:o,coordinates:a}}function gt(t){var e=t.imageSize,n=t.visibleArea,i=t.aspectRatio,r=t.sizeRestrictions,o=n||e,a=Math.min(i.maximum||1/0,Math.max(i.minimum||0,J(o))),s=o.width<o.height?{width:.8*o.width,height:.8*o.width/a}:{height:.8*o.height,width:.8*o.height*a};return ht(m(m({},s),{aspectRatio:i,sizeRestrictions:r}))}function bt(t){var e,n,i=t.imageSize,r=t.visibleArea,o=t.boundaries,a=t.aspectRatio,s=t.sizeRestrictions,l=t.stencilSize,c=r||i;return J(c)>J(o)?n=(e=l.height*c.height/o.height)*J(l):e=(n=l.width*c.width/o.width)/J(l),ht({width:n,height:e,aspectRatio:a,sizeRestrictions:s})}function yt(t,e){return lt(t,V(e))}function _t(t){var e=t.directions,n=t.coordinates,i=t.positionRestrictions,r=void 0===i?{}:i,o=t.sizeRestrictions,a=t.preserveRatio,s=t.compensate,l=m({},e),c=G(n,l).width,u=G(n,l).height;c<0&&(l.left<0&&l.right<0?(l.left=-(n.width-o.minWidth)/(l.left/l.right),l.right=-(n.width-o.minWidth)/(l.right/l.left)):l.left<0?l.left=-(n.width-o.minWidth):l.right<0&&(l.right=-(n.width-o.minWidth))),u<0&&(l.top<0&&l.bottom<0?(l.top=-(n.height-o.minHeight)/(l.top/l.bottom),l.bottom=-(n.height-o.minHeight)/(l.bottom/l.top)):l.top<0?l.top=-(n.height-o.minHeight):l.bottom<0&&(l.bottom=-(n.height-o.minHeight)));var d=W(G(n,l),r);s&&(d.left&&d.left>0&&0===d.right?(l.right+=d.left,l.left-=d.left):d.right&&d.right>0&&0===d.left&&(l.left+=d.right,l.right-=d.right),d.top&&d.top>0&&0===d.bottom?(l.bottom+=d.top,l.top-=d.top):d.bottom&&d.bottom>0&&0===d.top&&(l.top+=d.bottom,l.bottom-=d.bottom),d=W(G(n,l),r));var h={width:1/0,height:1/0,left:1/0,right:1/0,top:1/0,bottom:1/0};if(N.forEach((function(t){var e=d[t];e&&l[t]&&(h[t]=Math.max(0,1-e/l[t]))})),a){var p=Math.min.apply(Math,N.map((function(t){return h[t]})));p!==1/0&&N.forEach((function(t){l[t]*=p}))}else N.forEach((function(t){h[t]!==1/0&&(l[t]*=h[t])}));if(c=G(n,l).width,u=G(n,l).height,l.right+l.left&&(c>o.maxWidth?h.width=(o.maxWidth-n.width)/(l.right+l.left):c<o.minWidth&&(h.width=(o.minWidth-n.width)/(l.right+l.left))),l.bottom+l.top&&(u>o.maxHeight?h.height=(o.maxHeight-n.height)/(l.bottom+l.top):u<o.minHeight&&(h.height=(o.minHeight-n.height)/(l.bottom+l.top))),a){var f=Math.min(h.width,h.height);f!==1/0&&N.forEach((function(t){l[t]*=f}))}else h.width!==1/0&&F.forEach((function(t){l[t]*=h.width})),h.height!==1/0&&z.forEach((function(t){l[t]*=h.height}));return l}function wt(t,e,n){return 0==e&&0==n?t/2:0==e?0:0==n?t:t*Math.abs(e/(e+n))}var xt=h("vue-simple-handler"),Ct=h("vue-simple-handler-wrapper"),St=M({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("HandlerWrapper",{class:t.classes.wrapper,attrs:{"vertical-position":t.verticalPosition,"horizontal-position":t.horizontalPosition,disabled:t.disabled},on:{drag:t.onDrag,"drag-end":t.onDragEnd,enter:t.onEnter,leave:t.onLeave}},[n("div",{class:t.classes.default})])},staticRenderFns:[]},void 0,{name:"SimpleHandler",components:{HandlerWrapper:R},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){var t,e=(r(t={},this.horizontalPosition,Boolean(this.horizontalPosition)),r(t,this.verticalPosition,Boolean(this.verticalPosition)),r(t,"".concat(this.horizontalPosition,"-").concat(this.verticalPosition),Boolean(this.verticalPosition&&this.horizontalPosition)),r(t,"hover",this.hover),t);return{default:d(xt(e),this.defaultClass,this.hover&&this.hoverClass),wrapper:d(Ct(e),this.wrapperClass)}}},methods:{onDrag:function(t){this.$emit("drag",t)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}}},void 0,!1,void 0,!1,void 0,void 0,void 0),Et=h("vue-simple-line"),Tt=h("vue-simple-line-wrapper"),Ot=M({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("LineWrapper",{class:t.classes.wrapper,attrs:{position:t.position,disabled:t.disabled},on:{drag:t.onDrag,"drag-end":t.onDragEnd,enter:t.onEnter,leave:t.onLeave}},[n("div",{class:t.classes.root})])},staticRenderFns:[]},void 0,{name:"SimpleLine",components:{LineWrapper:j},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},position:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){return{root:d(Et(r({},this.position,!0)),this.defaultClass,this.hover&&this.hoverClass),wrapper:d(Tt(r({},this.position,!0)),this.wrapperClass)}}},methods:{onDrag:function(t){this.$emit("drag",t)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}}},void 0,!1,void 0,!1,void 0,void 0,void 0),kt=h("vue-bounding-box"),At=["east","west",null],Pt=["south","north",null],Mt=M({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"box",class:t.classes.root,style:t.style},[t._t("default"),t._v(" "),n("div",t._l(t.lineNodes,(function(e){return n(e.component,{key:e.name,tag:"component",attrs:{"default-class":e.class,"hover-class":e.hoverClass,"wrapper-class":e.wrapperClass,position:e.name,disabled:e.disabled},on:{drag:function(n){return t.onHandlerDrag(n,e.horizontalDirection,e.verticalDirection)},"drag-end":function(e){return t.onEnd()}}})})),1),t._v(" "),t._l(t.handlerNodes,(function(e){return n("div",{key:e.name,class:e.wrapperClass,style:e.wrapperStyle},[n(e.component,{tag:"component",attrs:{"default-class":e.class,"hover-class":e.hoverClass,"wrapper-class":e.wrapperClass,"horizontal-position":e.horizontalDirection,"vertical-position":e.verticalDirection,disabled:e.disabled},on:{drag:function(n){return t.onHandlerDrag(n,e.horizontalDirection,e.verticalDirection)},"drag-end":function(e){return t.onEnd()}}})],1)}))],2)},staticRenderFns:[]},void 0,{name:"BoundingBox",props:{width:{type:Number},height:{type:Number},transitions:{type:Object},handlers:{type:Object,default:function(){return{eastNorth:!0,north:!0,westNorth:!0,west:!0,westSouth:!0,south:!0,eastSouth:!0,east:!0}}},handlersComponent:{type:[Object,String],default:function(){return St}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}},lines:{type:Object,default:function(){return{west:!0,north:!0,east:!0,south:!0}}},linesComponent:{type:[Object,String],default:function(){return Ot}},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},resizable:{type:Boolean,default:!0}},data:function(){var t=[];return At.forEach((function(e){Pt.forEach((function(n){if(e!==n){var i=v(e,n),r=i.name,o=i.classname;t.push({name:r,classname:o,verticalDirection:n,horizontalDirection:e})}}))})),{points:t}},computed:{style:function(){var t={};return this.width&&this.height&&(t.width="".concat(this.width,"px"),t.height="".concat(this.height,"px"),this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction))),t},classes:function(){var t=this.handlersClasses,e=this.handlersWrappersClasses,n=this.linesClasses,i=this.linesWrappersClasses;return{root:kt(),handlers:t,handlersWrappers:e,lines:n,linesWrappers:i}},lineNodes:function(){var t=this,e=[];return this.points.forEach((function(n){n.horizontalDirection&&n.verticalDirection||!t.lines[n.name]||e.push({name:n.name,component:t.linesComponent,class:d(t.classes.lines.default,t.classes.lines[n.name],!t.resizable&&t.classes.lines.disabled),wrapperClass:d(t.classes.linesWrappers.default,t.classes.linesWrappers[n.name],!t.resizable&&t.classes.linesWrappers.disabled),hoverClass:t.classes.lines.hover,verticalDirection:n.verticalDirection,horizontalDirection:n.horizontalDirection,disabled:!t.resizable})})),e},handlerNodes:function(){var t=this,e=[],n=this.width,i=this.height;return this.points.forEach((function(o){if(t.handlers[o.name]){var a={name:o.name,component:t.handlersComponent,class:d(t.classes.handlers.default,t.classes.handlers[o.name]),wrapperClass:d(t.classes.handlersWrappers.default,t.classes.handlersWrappers[o.name]),hoverClass:t.classes.handlers.hover,verticalDirection:o.verticalDirection,horizontalDirection:o.horizontalDirection,disabled:!t.resizable};if(n&&i){var s=o.horizontalDirection,l=o.verticalDirection,c="east"===s?n:"west"===s?0:n/2,u="south"===l?i:"north"===l?0:i/2;a.wrapperClass=kt("handler"),a.wrapperStyle={transform:"translate(".concat(c,"px, ").concat(u,"px)")},t.transitions&&t.transitions.enabled&&(a.wrapperStyle.transition="".concat(t.transitions.time,"ms ").concat(t.transitions.timingFunction))}else a.wrapperClass=kt("handler",r({},o.classname,!0));e.push(a)}})),e}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeDestroy:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[]},methods:{onEnd:function(){this.$emit("resize-end")},onHandlerDrag:function(t,e,n){var i,r=t.shift(),o=r.left,a=r.top,s={left:0,right:0,top:0,bottom:0};"west"===e?s.left-=o:"east"===e&&(s.right+=o),"north"===n?s.top-=a:"south"===n&&(s.bottom+=a),!n&&e?i="width":n&&!e&&(i="height"),this.resizable&&this.$emit("resize",new k(s,{allowedDirections:{left:"west"===e||!e,right:"east"===e||!e,bottom:"south"===n||!n,top:"north"===n||!n},preserveAspectRatio:t.nativeEvent&&t.nativeEvent.shiftKey,respectDirection:i}))}}},void 0,!1,void 0,!1,void 0,void 0,void 0),Lt=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this.type="manipulateImage",this.move=t,this.scale=e},Dt=function(t){this.type="move",this.directions=t},Rt=h("vue-draggable-area"),It=M({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"container",on:{touchstart:t.onTouchStart,mousedown:t.onMouseDown}},[t._t("default")],2)},staticRenderFns:[]},void 0,{name:"DraggableArea",props:{movable:{type:Boolean,default:!0},activationDistance:{type:Number,default:20}},computed:{classnames:function(){return{default:Rt()}}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeDestroy:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[],this.touchStarted=!1},methods:{onTouchStart:function(t){if(t.cancelable){var e=this.movable&&1===t.touches.length;e&&(this.touches=s(t.touches)),(this.touchStarted||e)&&(t.preventDefault(),t.stopPropagation())}},onTouchEnd:function(){this.touchStarted=!1,this.processEnd()},onTouchMove:function(t){this.touches.length>=1&&(this.touchStarted?(this.processMove(t,t.touches),t.preventDefault(),t.stopPropagation()):T({x:this.touches[0].clientX,y:this.touches[0].clientY},{x:t.touches[0].clientX,y:t.touches[0].clientY})>this.activationDistance&&(this.initAnchor({clientX:t.touches[0].clientX,clientY:t.touches[0].clientY}),this.touchStarted=!0))},onMouseDown:function(t){if(this.movable&&0===t.button){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.initAnchor(e),t.stopPropagation()}},onMouseMove:function(t){this.touches.length&&(this.processMove(t,[{fake:!0,clientX:t.clientX,clientY:t.clientY}]),t.preventDefault&&t.cancelable&&t.preventDefault(),t.stopPropagation())},onMouseUp:function(){this.processEnd()},initAnchor:function(t){var e=this.$refs.container.getBoundingClientRect(),n=e.left,i=e.top;this.anchor={x:t.clientX-n,y:t.clientY-i}},processMove:function(t,e){var n=s(e);if(this.touches.length){var i=this.$refs.container.getBoundingClientRect(),r=i.left,o=i.top;1===this.touches.length&&1===n.length&&this.$emit("move",new Dt({left:n[0].clientX-(r+this.anchor.x),top:n[0].clientY-(o+this.anchor.y)}))}},processEnd:function(){this.touches.length&&this.$emit("move-end"),this.touches=[]}}},void 0,!1,void 0,!1,void 0,void 0,void 0);function jt(t){var e=t.rotate,n=t.flip,i=t.scaleX,r=t.scaleY,o="";return o+=" rotate("+e+"deg) ",(o+=" scaleX("+i*(n.horizontal?-1:1)+") ")+" scaleY("+r*(n.vertical?-1:1)+") "}var Nt=h("vue-preview-result");M({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classes.root},[n("div",{ref:"wrapper",class:t.classes.wrapper,style:t.wrapperStyle},[n("img",{ref:"image",class:t.classes.image,style:t.imageStyle,attrs:{src:t.image.src}})])])},staticRenderFns:[]},void 0,{name:"PreviewResult",props:{image:{type:Object},transitions:{type:Object},stencilCoordinates:{type:Object,default:function(){return{width:0,height:0,left:0,top:0}}},imageClass:{type:String}},computed:{classes:function(){return{root:Nt(),wrapper:Nt("wrapper"),imageWrapper:Nt("image-wrapper"),image:d(Nt("image"),this.imageClass)}},wrapperStyle:function(){var t={width:"".concat(this.stencilCoordinates.width,"px"),height:"".concat(this.stencilCoordinates.height,"px"),left:"calc(50% - ".concat(this.stencilCoordinates.width/2,"px)"),top:"calc(50% - ".concat(this.stencilCoordinates.height/2,"px)")};return this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),t},imageStyle:function(){var t=this.image.transforms,e=it({width:this.image.width,height:this.image.height},t.rotate),n={width:"".concat(this.image.width,"px"),height:"".concat(this.image.height,"px"),left:"0px",top:"0px"},i=(this.image.width-e.width)*t.scaleX/2,r=(this.image.height-e.height)*t.scaleY/2,o=(1-t.scaleX)*this.image.width/2,a=(1-t.scaleY)*this.image.height/2;return n.transform="translate(\n\t\t\t\t".concat(-this.stencilCoordinates.left-t.translateX-i-o,"px,").concat(-this.stencilCoordinates.top-t.translateY-r-a,"px) ")+jt(t),this.transitions&&this.transitions.enabled&&(n.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),n}}},void 0,!1,void 0,!1,void 0,void 0,void 0);function Ft(t,e){var n=e.getBoundingClientRect(),i=n.left,r=n.top,o={left:0,top:0},a=0;return t.forEach((function(e){o.left+=(e.clientX-i)/t.length,o.top+=(e.clientY-r)/t.length})),t.forEach((function(t){a+=T({x:o.left,y:o.top},{x:t.clientX-i,y:t.clientY-r})})),{centerMass:o,spread:a,count:t.length}}var zt=M({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"container",on:{touchstart:t.onTouchStart,mousedown:t.onMouseDown,wheel:t.onWheel}},[t._t("default")],2)},staticRenderFns:[]},void 0,{name:"CropperWrapper",props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeDestroy:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[]},methods:{onTouchStart:function(t){if(t.cancelable&&(this.touchMove||this.touchResize&&t.touches.length>1)){var e=this.$refs.container,n=e.getBoundingClientRect(),i=n.left,r=n.top,o=n.bottom,a=n.right;this.touches=s(t.touches).filter((function(t){return t.clientX>i&&t.clientX<a&&t.clientY>r&&t.clientY<o})),this.oldGeometricProperties=Ft(this.touches,e),t.preventDefault&&t.preventDefault(),t.stopPropagation()}},onTouchEnd:function(t){0===t.touches.length&&this.processEnd()},onTouchMove:function(t){var e=this;if(this.touches.length){var n=s(t.touches).filter((function(t){return!t.identifier||e.touches.find((function(e){return e.identifier===t.identifier}))}));this.processMove(t,n),t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation()}},onMouseDown:function(t){if(this.mouseMove&&"buttons"in t&&1===t.buttons){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],t.stopPropagation()}},onMouseMove:function(t){this.touches.length&&(this.processMove(t,[{fake:!0,clientX:t.clientX,clientY:t.clientY}]),t.preventDefault&&t.cancelable&&t.preventDefault())},onMouseUp:function(){this.touches=[]},processMove:function(t,e){if(this.touches.length){if(1===this.touches.length&&1===e.length)this.$emit("move",new Lt({left:this.touches[0].clientX-e[0].clientX,top:this.touches[0].clientY-e[0].clientY}));else if(this.touches.length>1&&this.touchResize){var n=Ft(e,this.$refs.container),i=this.oldGeometricProperties;i.count===n.count&&i.count>1&&this.$emit("resize",new Lt({left:i.centerMass.left-n.centerMass.left,top:i.centerMass.top-n.centerMass.top},{factor:i.spread/n.spread,center:n.centerMass})),this.oldGeometricProperties=n}this.touches=e}},processEnd:function(){this.touches=[]},onWheel:function(t){if(this.wheelResize){var e=this.$refs.container.getBoundingClientRect(),n=e.left,i=e.top,r=1+this.wheelResize.ratio*(0==(a=+(t.deltaY||t.detail||t.wheelDelta))||E(a)?a:a>0?1:-1),o={left:t.clientX-n,top:t.clientY-i};this.$emit("resize",new Lt({},{factor:r,center:o})),t.preventDefault(),t.stopPropagation()}var a}}},void 0,!1,void 0,!1,void 0,void 0,void 0),Bt=h("vue-preview"),$t=M({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"root",class:t.classes.root,style:t.style},[n("div",{ref:"wrapper",class:t.classes.wrapper,style:t.wrapperStyle},[n("img",{directives:[{name:"show",rawName:"v-show",value:t.image&&t.image.src,expression:"image && image.src"}],ref:"image",class:t.classes.image,style:t.imageStyle,attrs:{src:t.image&&t.image.src}})])])},staticRenderFns:[]},void 0,{props:{coordinates:{type:Object},transitions:{type:Object},image:{type:Object,default:function(){return{}}},imageClass:{type:String},width:{type:Number},height:{type:Number},fill:{type:Boolean}},data:function(){return{calculatedImageSize:{width:0,height:0},calculatedSize:{width:0,height:0}}},computed:{classes:function(){return{root:Bt({fill:this.fill}),wrapper:Bt("wrapper"),imageWrapper:Bt("image-wrapper"),image:d(Bt("image"),this.imageClass)}},style:function(){if(this.fill)return{};var t={};return this.width&&(t.width="".concat(this.size.width,"px")),this.height&&(t.height="".concat(this.size.height,"px")),this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),t},wrapperStyle:function(){var t={width:"".concat(this.size.width,"px"),height:"".concat(this.size.height,"px"),left:"calc(50% - ".concat(this.size.width/2,"px)"),top:"calc(50% - ".concat(this.size.height/2,"px)")};return this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),t},imageStyle:function(){if(this.coordinates&&this.image){var t=this.coordinates.width/this.size.width,e=a(a({rotate:0,flip:{horizontal:!1,vertical:!1}},this.image.transforms),{},{scaleX:1/t,scaleY:1/t}),n=this.imageSize.width,i=this.imageSize.height,r=it({width:n,height:i},e.rotate),o={width:"".concat(n,"px"),height:"".concat(i,"px"),left:"0px",top:"0px"},s={rotate:{left:(n-r.width)*e.scaleX/2,top:(i-r.height)*e.scaleY/2},scale:{left:(1-e.scaleX)*n/2,top:(1-e.scaleY)*i/2}};return o.transform="translate(\n\t\t\t\t".concat(-this.coordinates.left/t-s.rotate.left-s.scale.left,"px,").concat(-this.coordinates.top/t-s.rotate.top-s.scale.top,"px) ")+jt(e),this.transitions&&this.transitions.enabled&&(o.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),o}return{}},size:function(){return{width:this.width||this.calculatedSize.width,height:this.height||this.calculatedSize.height}},imageSize:function(){return{width:this.image.width||this.calculatedImageSize.width,height:this.image.height||this.calculatedImageSize.height}}},watch:{image:function(t){(t.width||t.height)&&this.onChangeImage()}},mounted:function(){var t=this;this.onChangeImage(),this.$refs.image.addEventListener("load",(function(){t.refreshImage()})),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},destroyed:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh)},methods:{refreshImage:function(){var t=this.$refs.image;this.calculatedImageSize.height=t.naturalHeight,this.calculatedImageSize.width=t.naturalWidth},refresh:function(){var t=this.$refs.root;this.width||(this.calculatedSize.width=t.clientWidth),this.height||(this.calculatedSize.height=t.clientHeight)},onChangeImage:function(){var t=this.$refs.image;t&&t.complete&&this.refreshImage(),this.refresh()}}},void 0,!1,void 0,!1,void 0,void 0,void 0),Ut=M({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("preview",t._b({attrs:{fill:!0}},"preview",t.$attrs,!1))},staticRenderFns:[]},void 0,{components:{Preview:$t},inheritAttrs:!1},void 0,!1,void 0,!1,void 0,void 0,void 0),Ht=h("vue-rectangle-stencil"),Vt=M({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classes.stencil,style:t.style},[n("bounding-box",{class:t.classes.boundingBox,attrs:{width:t.stencilCoordinates.width,height:t.stencilCoordinates.height,transitions:t.transitions,handlers:t.handlers,"handlers-component":t.handlersComponent,"handlers-classes":t.handlersClasses,"handlers-wrappers-classes":t.handlersWrappersClasses,lines:t.lines,"lines-component":t.linesComponent,"lines-classes":t.linesClasses,"lines-wrappers-classes":t.linesWrappersClasses,resizable:t.resizable},on:{resize:t.onResize,"resize-end":t.onResizeEnd}},[n("draggable-area",{attrs:{movable:t.movable},on:{move:t.onMove,"move-end":t.onMoveEnd}},[n("stencil-preview",{class:t.classes.preview,attrs:{image:t.image,coordinates:t.coordinates,width:t.stencilCoordinates.width,height:t.stencilCoordinates.height,transitions:t.transitions}})],1)],1)],1)},staticRenderFns:[]},void 0,{name:"RectangleStencil",components:{StencilPreview:Ut,BoundingBox:Mt,DraggableArea:It},props:{image:{type:Object},coordinates:{type:Object},stencilCoordinates:{type:Object},handlers:{type:Object},handlersComponent:{type:[Object,String],default:function(){return St}},lines:{type:Object},linesComponent:{type:[Object,String],default:function(){return Ot}},aspectRatio:{type:[Number,String]},minAspectRatio:{type:[Number,String]},maxAspectRatio:{type:[Number,String]},movable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},transitions:{type:Object},movingClass:{type:String},resizingClass:{type:String},previewClass:{type:String},boundingBoxClass:{type:String},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}}},data:function(){return{moving:!1,resizing:!1}},computed:{classes:function(){return{stencil:d(Ht({movable:this.movable,moving:this.moving,resizing:this.resizing}),this.moving&&this.movingClass,this.resizing&&this.resizingClass),preview:d(Ht("preview"),this.previewClass),boundingBox:d(Ht("bounding-box"),this.boundingBoxClass)}},style:function(){var t=this.stencilCoordinates,e=t.height,n=t.width,i=t.left,r=t.top,o={width:"".concat(n,"px"),height:"".concat(e,"px"),transform:"translate(".concat(i,"px, ").concat(r,"px)")};return this.transitions&&this.transitions.enabled&&(o.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),o}},methods:{onMove:function(t){this.$emit("move",t),this.moving=!0},onMoveEnd:function(){this.$emit("move-end"),this.moving=!1},onResize:function(t){this.$emit("resize",t),this.resizing=!0},onResizeEnd:function(){this.$emit("resize-end"),this.resizing=!1},aspectRatios:function(){return{minimum:this.aspectRatio||this.minAspectRatio,maximum:this.aspectRatio||this.maxAspectRatio}}}},void 0,!1,void 0,!1,void 0,void 0,void 0),Yt=h("vue-circle-stencil"),qt=M({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classes.stencil,style:t.style},[n("bounding-box",{class:t.classes.boundingBox,attrs:{width:t.stencilCoordinates.width,height:t.stencilCoordinates.height,transitions:t.transitions,handlers:t.handlers,"handlers-component":t.handlersComponent,"handlers-classes":t.handlersClasses,"handlers-wrappers-classes":t.handlersWrappersClasses,lines:t.lines,"lines-component":t.linesComponent,"lines-classes":t.linesClasses,"lines-wrappers-classes":t.linesWrappersClasses,resizable:t.resizable},on:{resize:t.onResize,"resize-end":t.onResizeEnd}},[n("draggable-area",{attrs:{movable:t.movable},on:{move:t.onMove,"move-end":t.onMoveEnd}},[n("stencil-preview",{class:t.classes.preview,attrs:{image:t.image,coordinates:t.coordinates,width:t.stencilCoordinates.width,height:t.stencilCoordinates.height,transitions:t.transitions}})],1)],1)],1)},staticRenderFns:[]},void 0,{components:{StencilPreview:Ut,BoundingBox:Mt,DraggableArea:It},props:{image:{type:Object},coordinates:{type:Object},stencilCoordinates:{type:Object},handlers:{type:Object,default:function(){return{eastNorth:!0,westNorth:!0,westSouth:!0,eastSouth:!0}}},handlersComponent:{type:[Object,String],default:function(){return St}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}},lines:{type:Object},linesComponent:{type:[Object,String],default:function(){return Ot}},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},movable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},transitions:{type:Object},movingClass:{type:String},resizingClass:{type:String},previewClass:{type:String},boundingBoxClass:{type:String}},data:function(){return{moving:!1,resizing:!1}},computed:{classes:function(){return{stencil:d(Yt({movable:this.movable,moving:this.moving,resizing:this.resizing}),this.moving&&this.movingClass,this.resizing&&this.resizingClass),preview:d(Yt("preview"),this.previewClass),boundingBox:d(Yt("bounding-box"),this.boundingBoxClass)}},style:function(){var t=this.stencilCoordinates,e=t.height,n=t.width,i=t.left,r=t.top,o={width:"".concat(n,"px"),height:"".concat(e,"px"),transform:"translate(".concat(i,"px, ").concat(r,"px)")};return this.transitions&&this.transitions.enabled&&(o.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),o}},methods:{onMove:function(t){this.$emit("move",t),this.moving=!0},onMoveEnd:function(){this.$emit("move-end"),this.moving=!1},onResize:function(t){this.$emit("resize",t),this.resizing=!0},onResizeEnd:function(){this.$emit("resize-end"),this.resizing=!1},aspectRatios:function(){return{minimum:1,maximum:1}}}},void 0,!1,void 0,!1,void 0,void 0,void 0),Wt=h("vue-advanced-cropper"),Gt=M({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"cropper",class:t.classes.cropper},[n("div",{ref:"stretcher",class:t.classes.stretcher}),t._v(" "),n("div",{class:t.classes.boundaries,style:t.boundariesStyle},[n("cropper-wrapper",{class:t.classes.cropperWrapper,attrs:{"wheel-resize":t.settings.resizeImage.wheel,"touch-resize":t.settings.resizeImage.touch,"touch-move":t.settings.moveImage.touch,"mouse-move":t.settings.moveImage.mouse},on:{move:t.onManipulateImage,resize:t.onManipulateImage}},[n("div",{class:t.classes.background,style:t.boundariesStyle}),t._v(" "),n("div",{class:t.classes.imageWrapper},[n("img",{ref:"image",class:t.classes.image,style:t.imageStyle,attrs:{crossorigin:t.imageAttributes.crossOrigin,src:t.imageAttributes.src},on:{mousedown:function(t){t.preventDefault()}}})]),t._v(" "),n("div",{class:t.classes.foreground,style:t.boundariesStyle}),t._v(" "),n(t.stencilComponent,t._b({directives:[{name:"show",rawName:"v-show",value:t.imageLoaded,expression:"imageLoaded"}],ref:"stencil",tag:"component",attrs:{image:t.image,coordinates:t.coordinates,"stencil-coordinates":t.stencilCoordinates,transitions:t.transitionsOptions},on:{resize:t.onResize,"resize-end":t.onResizeEnd,move:t.onMove,"move-end":t.onMoveEnd}},"component",t.stencilProps,!1)),t._v(" "),t.canvas?n("canvas",{ref:"canvas",style:{display:"none"}}):t._e(),t._v(" "),t.canvas?n("canvas",{ref:"sourceCanvas",style:{display:"none"}}):t._e()],1)],1)])},staticRenderFns:[]},void 0,{name:"Cropper",components:{CropperWrapper:zt},props:{src:{type:String,default:null},stencilComponent:{type:[Object,String],default:function(){return Vt}},stencilProps:{type:Object,default:function(){return{}}},autoZoom:{type:Boolean,default:!1},imageClass:{type:String},boundariesClass:{type:String},backgroundClass:{type:String},foregroundClass:{type:String},minWidth:{type:[Number,String]},minHeight:{type:[Number,String]},maxWidth:{type:[Number,String]},maxHeight:{type:[Number,String]},debounce:{type:[Boolean,Number],default:500},transitions:{type:Boolean,default:!0},checkOrientation:{type:Boolean,default:!0},canvas:{type:[Object,Boolean],default:!0},crossOrigin:{type:[Boolean,String],default:void 0},transitionTime:{type:Number,default:300},imageRestriction:{type:String,default:"fit-area",validator:function(t){return-1!==$.indexOf(t)}},roundResult:{type:Boolean,default:!0},defaultSize:{type:[Function,Object]},defaultPosition:{type:[Function,Object],default:function(t){var e=t.imageSize,n=t.visibleArea,i=t.coordinates,r=n||e;return{left:(n?n.left:0)+r.width/2-i.width/2,top:(n?n.top:0)+r.height/2-i.height/2}}},defaultVisibleArea:{type:[Function,Object],default:function(t){var e=t.getAreaRestrictions,n=t.coordinates,i=t.imageSize,r=J(t.boundaries);if(n){var o={height:Math.max(n.height,i.height),width:Math.max(n.width,i.width)},a=nt({width:J(o)>r?o.width:o.height*r,height:J(o)>r?o.width/r:o.height},st(e())),s={left:n.left+n.width/2-a.width/2,top:n.top+n.height/2-a.height/2,width:a.width,height:a.height},l=W(n,V(m({left:0,top:0},i))),c={};return!l.left&&!l.right&&s.width<=i.width&&(c.left=0,c.right=i.width),!l.top&&!l.bottom&&s.height<=i.height&&(c.top=0,c.bottom=i.height),at(s,c)}var u=J(i);return a={height:u>r?i.height:i.width/r,width:u>r?i.height*r:i.width},{left:i.width/2-a.width/2,top:i.height/2-a.height/2,width:a.width,height:a.height}}},defaultBoundaries:{type:[Function,String],validator:function(t){return!("string"==typeof t&&"fill"!==t&&"fit"!==t)}},priority:{type:String,default:"coordinates"},stencilSize:{type:[Object,Function]},resizeImage:{type:[Boolean,Object],default:!0},moveImage:{type:[Boolean,Object],default:!0},autoZoomAlgorithm:{type:Function},resizeAlgorithm:{type:Function,default:function(t){var e=t.event,n=t.coordinates,i=t.aspectRatio,r=t.positionRestrictions,o=t.sizeRestrictions,a=m(m({},n),{right:n.left+n.width,bottom:n.top+n.height}),s=e.params||{},l=m({},e.directions),c=s.allowedDirections||{left:!0,right:!0,bottom:!0,top:!0};o.widthFrozen&&(l.left=0,l.right=0),o.heightFrozen&&(l.top=0,l.bottom=0),N.forEach((function(t){c[t]||(l[t]=0)}));var u=G(a,l=_t({coordinates:a,directions:l,sizeRestrictions:o,positionRestrictions:r})).width,d=G(a,l).height,h=s.preserveRatio?J(a):et(u/d,i);if(h){var p=s.respectDirection;if(p||(p=a.width>=a.height||1===h?"width":"height"),"width"===p){var f=u/h-a.height;if(c.top&&c.bottom){var v=l.top,g=l.bottom;l.bottom=wt(f,g,v),l.top=wt(f,v,g)}else c.bottom?l.bottom=f:c.top?l.top=f:c.right?l.right=0:c.left&&(l.left=0)}else if("height"===p){var b=a.width-d*h;if(c.left&&c.right){var y=l.left,_=l.right;l.left=-wt(b,y,_),l.right=-wt(b,_,y)}else c.left?l.left=-b:c.right?l.right=-b:c.top?l.top=0:c.bottom&&(l.bottom=0)}l=_t({directions:l,coordinates:a,sizeRestrictions:o,positionRestrictions:r,preserveRatio:!0,compensate:s.compensate})}return u=G(a,l).width,d=G(a,l).height,(h=s.preserveRatio?J(a):et(u/d,i))&&Math.abs(h-u/d)>.001&&N.forEach((function(t){c[t]||(l[t]=0)})),pt({event:new A({left:-l.left,top:-l.top}),coordinates:{width:n.width+l.right+l.left,height:n.height+l.top+l.bottom,left:n.left,top:n.top},positionRestrictions:r})}},moveAlgorithm:{type:Function,default:pt},initStretcher:{type:Function,default:function(t){var e=t.stretcher,n=t.imageSize,i=J(n);e.style.width=n.width+"px",e.style.height=e.clientWidth/i+"px",e.style.width=e.clientWidth+"px"}},fitCoordinates:{type:Function,default:function(t){var e=t.visibleArea,n=t.coordinates,i=t.aspectRatio,r=t.sizeRestrictions,o=t.positionRestrictions,a=m(m({},n),ht({width:n.width,height:n.height,aspectRatio:i,sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minHeight:Math.min(e.height,r.minHeight),minWidth:Math.min(e.width,r.minWidth)}}));return at(a=K(a,Y(q(n),q(a))),ct(V(e),o))}},fitVisibleArea:{type:Function,default:function(t){var e=t.visibleArea,n=t.boundaries,i=t.getAreaRestrictions,r=t.coordinates,o=m({},e);o.height=o.width/J(n),o.top+=(e.height-o.height)/2,(r.height-o.height>0||r.width-o.width>0)&&(o=Z(o,Math.max(r.height/o.height,r.width/o.width)));var a=X(tt(r,V(o=Z(o,ot(o,i({visibleArea:o,type:"resize"}))))));return o.width<r.width&&(a.left=0),o.height<r.height&&(a.top=0),at(o=K(o,a),i({visibleArea:o,type:"move"}))}},areaRestrictionsAlgorithm:{type:Function,default:function(t){var e=t.visibleArea,n=t.boundaries,i=t.imageSize,r=t.imageRestriction,o=t.type,a={};return"fill-area"===r?a={left:0,top:0,right:i.width,bottom:i.height}:"fit-area"===r&&(J(n)>J(i)?(a={top:0,bottom:i.height},e&&"move"===o&&(e.width>i.width?(a.left=-(e.width-i.width)/2,a.right=i.width-a.left):(a.left=0,a.right=i.width))):(a={left:0,right:i.width},e&&"move"===o&&(e.height>i.height?(a.top=-(e.height-i.height)/2,a.bottom=i.height-a.top):(a.top=0,a.bottom=i.height)))),a}},sizeRestrictionsAlgorithm:{type:Function,default:function(t){return{minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight}}},positionRestrictionsAlgorithm:{type:Function,default:function(t){var e=t.imageSize,n={};return"none"!==t.imageRestriction&&(n={left:0,top:0,right:e.width,bottom:e.height}),n}}},data:function(){return{transitionsActive:!1,imageLoaded:!1,imageAttributes:{width:null,height:null,crossOrigin:!1,src:null},customImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},basicImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},boundaries:{width:0,height:0},visibleArea:null,coordinates:a({},U)}},computed:{image:function(){return{src:this.imageAttributes.src,width:this.imageAttributes.width,height:this.imageAttributes.height,transforms:this.imageTransforms}},imageTransforms:function(){return{rotate:this.basicImageTransforms.rotate+this.customImageTransforms.rotate,flip:{horizontal:Boolean(this.basicImageTransforms.flip.horizontal^this.customImageTransforms.flip.horizontal),vertical:Boolean(this.basicImageTransforms.flip.vertical^this.customImageTransforms.flip.vertical)},translateX:this.visibleArea?this.visibleArea.left/this.coefficient:0,translateY:this.visibleArea?this.visibleArea.top/this.coefficient:0,scaleX:1/this.coefficient,scaleY:1/this.coefficient}},imageSize:function(){var t=function(t){return t*Math.PI/180}(this.imageTransforms.rotate);return{width:Math.abs(this.imageAttributes.width*Math.cos(t))+Math.abs(this.imageAttributes.height*Math.sin(t)),height:Math.abs(this.imageAttributes.width*Math.sin(t))+Math.abs(this.imageAttributes.height*Math.cos(t))}},initialized:function(){return Boolean(this.visibleArea&&this.imageLoaded)},settings:function(){var t=x(this.resizeImage,{touch:!0,wheel:{ratio:.1},adjustStencil:!0},{touch:!1,wheel:!1,adjustStencil:!1});return{moveImage:x(this.moveImage,{touch:!0,mouse:!0},{touch:!1,mouse:!1}),resizeImage:t}},coefficient:function(){return this.visibleArea?this.visibleArea.width/this.boundaries.width:0},areaRestrictions:function(){return this.imageLoaded?this.areaRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction,boundaries:this.boundaries}):{}},transitionsOptions:function(){return{enabled:this.transitionsActive,timingFunction:"ease-in-out",time:350}},sizeRestrictions:function(){if(this.boundaries.width&&this.boundaries.height&&this.imageSize.width&&this.imageSize.height){var t=this.sizeRestrictionsAlgorithm({imageSize:this.imageSize,minWidth:_(this.minWidth)?0:C(this.minWidth),minHeight:_(this.minHeight)?0:C(this.minHeight),maxWidth:_(this.maxWidth)?1/0:C(this.maxWidth),maxHeight:_(this.maxHeight)?1/0:C(this.maxHeight)});if(t=function(t){var e=t.areaRestrictions,n=t.sizeRestrictions,i=t.boundaries,r=t.positionRestrictions,o=m(m({},n),{minWidth:void 0!==n.minWidth?n.minWidth:0,minHeight:void 0!==n.minHeight?n.minHeight:0,maxWidth:void 0!==n.maxWidth?n.maxWidth:1/0,maxHeight:void 0!==n.maxHeight?n.maxHeight:1/0});void 0!==r.left&&void 0!==r.right&&(o.maxWidth=Math.min(o.maxWidth,r.right-r.left)),void 0!==r.bottom&&void 0!==r.top&&(o.maxHeight=Math.min(o.maxHeight,r.bottom-r.top));var a=st(e),s=nt(i,a);return a.width<1/0&&(!o.maxWidth||o.maxWidth>s.width)&&(o.maxWidth=Math.min(o.maxWidth,s.width)),a.height<1/0&&(!o.maxHeight||o.maxHeight>s.height)&&(o.maxHeight=Math.min(o.maxHeight,s.height)),o.minWidth>o.maxWidth&&(o.minWidth=o.maxWidth,o.widthFrozen=!0),o.minHeight>o.maxHeight&&(o.minHeight=o.maxHeight,o.heightFrozen=!0),o}({sizeRestrictions:t,areaRestrictions:this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}),imageSize:this.imageSize,boundaries:this.boundaries,positionRestrictions:this.positionRestrictions,imageRestriction:this.imageRestriction,visibleArea:this.visibleArea,stencilSize:this.getStencilSize()}),this.visibleArea&&this.stencilSize){var e=this.getStencilSize(),n=st(this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}));t.maxWidth=Math.min(t.maxWidth,n.width*e.width/this.boundaries.width),t.maxHeight=Math.min(t.maxHeight,n.height*e.height/this.boundaries.height),t.maxWidth<t.minWidth&&(t.minWidth=t.maxWidth),t.maxHeight<t.minHeight&&(t.minHeight=t.maxHeight)}return t}return{minWidth:0,minHeight:0,maxWidth:0,maxHeight:0}},positionRestrictions:function(){return this.positionRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction})},classes:function(){return{cropper:Wt(),image:d(Wt("image"),this.imageClass),stencil:Wt("stencil"),boundaries:d(Wt("boundaries"),this.boundariesClass),stretcher:d(Wt("stretcher")),background:d(Wt("background"),this.backgroundClass),foreground:d(Wt("foreground"),this.foregroundClass),imageWrapper:d(Wt("image-wrapper")),cropperWrapper:d(Wt("cropper-wrapper"))}},stencilCoordinates:function(){if(this.initialized){var t=this.coordinates,e=t.width,n=t.height,i=t.left,r=t.top;return{width:e/this.coefficient,height:n/this.coefficient,left:(i-this.visibleArea.left)/this.coefficient,top:(r-this.visibleArea.top)/this.coefficient}}return this.defaultCoordinates()},boundariesStyle:function(){var t={width:this.boundaries.width?"".concat(Math.round(this.boundaries.width),"px"):"auto",height:this.boundaries.height?"".concat(Math.round(this.boundaries.height),"px"):"auto",transition:"opacity ".concat(this.transitionTime,"ms"),pointerEvents:this.imageLoaded?"all":"none"};return this.imageLoaded||(t.opacity="0"),t},imageStyle:function(){var t=this.imageAttributes.width>this.imageAttributes.height?{width:Math.min(1024,this.imageAttributes.width),height:Math.min(1024,this.imageAttributes.width)/(this.imageAttributes.width/this.imageAttributes.height)}:{height:Math.min(1024,this.imageAttributes.height),width:Math.min(1024,this.imageAttributes.height)*(this.imageAttributes.width/this.imageAttributes.height)},e=(t.width-this.imageSize.width)/(2*this.coefficient),n=(t.height-this.imageSize.height)/(2*this.coefficient),i=(1-1/this.coefficient)*t.width/2,r=(1-1/this.coefficient)*t.height/2,o=a(a({},this.imageTransforms),{},{scaleX:this.imageTransforms.scaleX*(this.imageAttributes.width/t.width),scaleY:this.imageTransforms.scaleY*(this.imageAttributes.height/t.height)}),s={width:"".concat(t.width,"px"),height:"".concat(t.height,"px"),left:"0px",top:"0px",transform:"translate(".concat(-e-i-this.imageTransforms.translateX,"px, ").concat(-n-r-this.imageTransforms.translateY,"px)")+jt(o)};return this.transitionsOptions.enabled&&(s.transition="".concat(this.transitionsOptions.time,"ms ").concat(this.transitionsOptions.timingFunction)),s}},watch:{src:function(){this.onChangeImage()},stencilComponent:function(){var t=this;this.$nextTick((function(){t.resetCoordinates(),t.runAutoZoom("setCoordinates"),t.onChange()}))},minWidth:function(){this.onPropsChange()},maxWidth:function(){this.onPropsChange()},minHeight:function(){this.onPropsChange()},maxHeight:function(){this.onPropsChange()},imageRestriction:function(){this.reset()},stencilProps:function(t,e){["aspectRatio","minAspectRatio","maxAspectRatio"].find((function(n){return t[n]!==e[n]}))&&this.$nextTick(this.onPropsChange)}},created:function(){this.debouncedUpdate=f(this.update,this.debounce),this.debouncedDisableTransitions=f(this.disableTransitions,this.transitionsOptions.time),this.awaiting=!1},mounted:function(){this.$refs.image.addEventListener("load",this.onSuccessLoadImage),this.$refs.image.addEventListener("error",this.onFailLoadImage),this.onChangeImage(),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},destroyed:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh),this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src)},methods:{getResult:function(){var t=this.initialized?this.prepareResult(a({},this.coordinates)):this.defaultCoordinates(),e={rotate:this.imageTransforms.rotate%360,flip:a({},this.imageTransforms.flip)};if(this.src&&this.imageLoaded){var n=this;return{image:this.image,coordinates:t,visibleArea:this.visibleArea?a({},this.visibleArea):null,imageTransforms:e,get canvas(){return n.canvas?n.getCanvas():void 0}}}return{image:this.image,coordinates:t,visibleArea:this.visibleArea?a({},this.visibleArea):null,canvas:void 0,imageTransforms:e}},zoom:function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).transitions,i=void 0===n||n;this.onManipulateImage(new O({},{factor:1/t,center:e}),{normalize:!1,transitions:i})},move:function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).transitions,i=void 0===n||n;this.onManipulateImage(new O({left:t||0,top:e||0}),{normalize:!1,transitions:i})},setCoordinates:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.autoZoom,r=void 0===i||i,o=n.transitions,a=void 0===o||o;this.$nextTick((function(){e.imageLoaded?(e.transitionsActive||(a&&e.enableTransitions(),e.coordinates=e.applyTransform(t),r&&e.runAutoZoom("setCoordinates"),a&&e.debouncedDisableTransitions()),e.onChange()):e.delayedTransforms=t}))},refresh:function(){var t=this,e=this.$refs.image;if(this.src&&e)return this.initialized?this.updateVisibleArea().then((function(){t.onChange()})):this.resetVisibleArea().then((function(){t.onChange()}))},reset:function(){var t=this;return this.resetVisibleArea().then((function(){t.onChange()}))},awaitRender:function(t){var e=this;this.awaiting||(this.awaiting=!0,this.$nextTick((function(){t(),e.awaiting=!1})))},prepareResult:function(t){return this.roundResult?function(t){var e=t.coordinates,n=t.sizeRestrictions,i=t.positionRestrictions,r={width:Math.round(e.width),height:Math.round(e.height),left:Math.round(e.left),top:Math.round(e.top)};return r.width>n.maxWidth?r.width=Math.floor(e.width):r.width<n.minWidth&&(r.width=Math.ceil(e.width)),r.height>n.maxHeight?r.height=Math.floor(e.height):r.height<n.minHeight&&(r.height=Math.ceil(e.height)),at(r,i)}(a(a({},this.getPublicProperties()),{},{positionRestrictions:yt(this.positionRestrictions,this.visibleArea),coordinates:t})):t},processAutoZoom:function(t,e,n,i){var r=this.autoZoomAlgorithm;r||(r=this.stencilSize?ft:this.autoZoom?mt:vt);var o=r({event:{type:t,params:i},visibleArea:e,coordinates:n,boundaries:this.boundaries,aspectRatio:this.getAspectRatio(),positionRestrictions:this.positionRestrictions,getAreaRestrictions:this.getAreaRestrictions,sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize()});return a(a({},o),{},{changed:!H(o.visibleArea,e)||!H(o.coordinates,n)})},runAutoZoom:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.transitions,i=void 0!==n&&n,r=function(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}(e,["transitions"]),o=this.processAutoZoom(t,this.visibleArea,this.coordinates,r),a=o.visibleArea,s=o.coordinates,l=o.changed;i&&l&&this.enableTransitions(),this.visibleArea=a,this.coordinates=s,i&&l&&this.debouncedDisableTransitions()},normalizeEvent:function(t){return function(t){var e=t.event,n=t.visibleArea,i=t.coefficient;if("manipulateImage"===e.type)return m(m({},e),{move:{left:e.move&&e.move.left?i*e.move.left:0,top:e.move&&e.move.top?i*e.move.top:0},scale:{factor:e.scale&&e.scale.factor?e.scale.factor:1,center:e.scale&&e.scale.center?{left:e.scale.center.left*i+n.left,top:e.scale.center.top*i+n.top}:null}});if("resize"===e.type){var r=m(m({},e),{directions:m({},e.directions)});return N.forEach((function(t){r.directions[t]*=i})),r}if("move"===e.type){var o=m(m({},e),{directions:m({},e.directions)});return B.forEach((function(t){o.directions[t]*=i})),o}return e}(a(a({},this.getPublicProperties()),{},{event:t}))},getCanvas:function(){if(this.$refs.canvas){var t=this.$refs.canvas,e=this.$refs.image,n=0!==this.imageTransforms.rotate||this.imageTransforms.flip.horizontal||this.imageTransforms.flip.vertical?function(t,e,n){var i=n.rotate,r=n.flip,o={width:e.naturalWidth,height:e.naturalHeight},a=it(o,i),s=t.getContext("2d");t.height=a.height,t.width=a.width,s.save();var l=rt(q(m({left:0,top:0},o)),i);return s.translate(-(l.left-a.width/2),-(l.top-a.height/2)),s.rotate(i*Math.PI/180),s.translate(r.horizontal?o.width:0,r.vertical?o.height:0),s.scale(r.horizontal?-1:1,r.vertical?-1:1),s.drawImage(e,0,0,o.width,o.height),s.restore(),t}(this.$refs.sourceCanvas,e,this.imageTransforms):e,i=a({minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,maxArea:this.maxCanvasSize,imageSmoothingEnabled:!0,imageSmoothingQuality:"high",fillColor:"transparent"},this.canvas),r=function(t){return t.find((function(t){return e=t,!Number.isNaN(parseFloat(e))&&isFinite(e);var e}))},o=ht({sizeRestrictions:{minWidth:r([i.width,i.minWidth])||0,minHeight:r([i.height,i.minHeight])||0,maxWidth:r([i.width,i.maxWidth])||1/0,maxHeight:r([i.height,i.maxHeight])||1/0},width:this.coordinates.width,height:this.coordinates.height,aspectRatio:{minimum:this.coordinates.width/this.coordinates.height,maximum:this.coordinates.width/this.coordinates.height}});if(i.maxArea&&o.width*o.height>i.maxArea){var s=Math.sqrt(i.maxArea/(o.width*o.height));o={width:Math.round(s*o.width),height:Math.round(s*o.height)}}return function(t,e,n,i,r){t.width=i?i.width:n.width,t.height=i?i.height:n.height;var o=t.getContext("2d");o.clearRect(0,0,t.width,t.height),r&&(r.imageSmoothingEnabled&&(o.imageSmoothingEnabled=r.imageSmoothingEnabled),r.imageSmoothingQuality&&(o.imageSmoothingQuality=r.imageSmoothingQuality),r.fillColor&&(o.fillStyle=r.fillColor,o.fillRect(0,0,t.width,t.height),o.save())),o.drawImage(e,n.left,n.top,n.width,n.height,0,0,t.width,t.height)}(t,n,this.coordinates,o,i),t}},update:function(){this.$emit("change",this.getResult())},applyTransform:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.visibleArea&&e?function(t,e){return m(m({},t),{minWidth:Math.min(e.width,t.minWidth),minHeight:Math.min(e.height,t.minHeight),maxWidth:Math.min(e.width,t.maxWidth),maxHeight:Math.min(e.height,t.maxHeight)})}(this.sizeRestrictions,this.visibleArea):this.sizeRestrictions,i=this.visibleArea&&e?yt(this.positionRestrictions,this.visibleArea):this.positionRestrictions;return function(t){var e=t.coordinates,n=t.transform,i=t.imageSize,r=t.sizeRestrictions,o=t.positionRestrictions,a=t.aspectRatio,s=t.visibleArea,l=function(t,e){return pt({coordinates:t,positionRestrictions:o,event:new A({left:e.left-t.left,top:e.top-t.top})})},c=m({},e);return(Array.isArray(n)?n:[n]).forEach((function(t){var e;_((e="function"==typeof t?t({coordinates:c,imageSize:i,visibleArea:s}):t).width)&&_(e.height)||(c=function(t,e){var n=m(m(m({},t),ht({width:e.width,height:e.height,sizeRestrictions:r,aspectRatio:a})),{left:0,top:0});return l(n,{left:t.left,top:t.top})}(c,m(m({},c),e))),_(e.left)&&_(e.top)||(c=l(c,m(m({},c),e)))})),c}({transform:t,coordinates:this.coordinates,imageSize:this.imageSize,sizeRestrictions:n,positionRestrictions:i,aspectRatio:this.getAspectRatio(),visibleArea:this.visibleArea})},resetCoordinates:function(){var t=this;if(this.$refs.image){this.$refs.cropper,this.$refs.image;var e=this.defaultSize;e||(e=this.stencilSize?bt:gt);var n=this.sizeRestrictions,i=(n.minWidth,n.minHeight,n.maxWidth,n.maxHeight,[y(e)?e({boundaries:this.boundaries,imageSize:this.imageSize,aspectRatio:this.getAspectRatio(),sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize(),visibleArea:this.visibleArea}):e,function(e){var n=e.coordinates;return a({},y(t.defaultPosition)?t.defaultPosition({coordinates:n,imageSize:t.imageSize,visibleArea:t.visibleArea}):t.defaultPosition)}]);this.delayedTransforms&&i.push.apply(i,s(Array.isArray(this.delayedTransforms)?this.delayedTransforms:[this.delayedTransforms])),this.coordinates=this.applyTransform(i,!0),this.delayedTransforms=null}},clearImage:function(){var t=this;this.imageLoaded=!1,setTimeout((function(){var e=t.$refs.stretcher;e&&(e.style.height="auto",e.style.width="auto"),t.coordinates=t.defaultCoordinates(),t.boundaries={width:0,height:0}}),this.transitionTime)},enableTransitions:function(){this.transitions&&(this.transitionsActive=!0)},disableTransitions:function(){this.transitionsActive=!1},updateBoundaries:function(){var t=this,e=this.$refs.stretcher,n=this.$refs.cropper;return this.initStretcher({cropper:n,stretcher:e,imageSize:this.imageSize}),this.$nextTick().then((function(){var e={cropper:n,imageSize:t.imageSize};if(y(t.defaultBoundaries)?t.boundaries=t.defaultBoundaries(e):"fit"===t.defaultBoundaries?t.boundaries=function(t){var e=t.cropper,n=t.imageSize,i=e.clientHeight,r=e.clientWidth,o=i,a=n.width*i/n.height;return a>r&&(a=r,o=n.height*r/n.width),{width:a,height:o}}(e):t.boundaries=function(t){var e=t.cropper;return{width:e.clientWidth,height:e.clientHeight}}(e),!t.boundaries.width||!t.boundaries.height)throw new Error("It's impossible to fit the cropper in the current container")}))},resetVisibleArea:function(){var t=this;return this.updateBoundaries().then((function(){var e,n,i,r,o;"visible-area"!==t.priority&&(t.visibleArea=null,t.resetCoordinates()),t.visibleArea=y(t.defaultVisibleArea)?t.defaultVisibleArea({imageSize:t.imageSize,boundaries:t.boundaries,coordinates:"visible-area"!==t.priority?t.coordinates:null,getAreaRestrictions:t.getAreaRestrictions,stencilSize:t.getStencilSize()}):t.defaultVisibleArea,t.visibleArea=(n=(e={visibleArea:t.visibleArea,boundaries:t.boundaries,getAreaRestrictions:t.getAreaRestrictions}).boundaries,i=e.getAreaRestrictions,r=m({},e.visibleArea),o=J(n),r.width/r.height!==o&&(r.height=r.width/o),at(r,i({visibleArea:r,type:"move"}))),"visible-area"===t.priority?t.resetCoordinates():t.coordinates=t.fitCoordinates({visibleArea:t.visibleArea,coordinates:t.coordinates,aspectRatio:t.getAspectRatio(),positionRestrictions:t.positionRestrictions,sizeRestrictions:t.sizeRestrictions}),t.runAutoZoom("resetVisibleArea")})).catch((function(){t.visibleArea=null}))},updateVisibleArea:function(){var t=this;return this.updateBoundaries().then((function(){t.visibleArea=t.fitVisibleArea({imageSize:t.imageSize,boundaries:t.boundaries,visibleArea:t.visibleArea,coordinates:t.coordinates,getAreaRestrictions:t.getAreaRestrictions}),t.coordinates=t.fitCoordinates({visibleArea:t.visibleArea,coordinates:t.coordinates,aspectRatio:t.getAspectRatio(),positionRestrictions:t.positionRestrictions,sizeRestrictions:t.sizeRestrictions}),t.runAutoZoom("updateVisibleArea")})).catch((function(){t.visibleArea=null}))},onChange:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.$listeners&&this.$listeners.change&&(t&&this.debounce?this.debouncedUpdate():this.update())},onChangeImage:function(){var t,e=this;if(this.imageLoaded=!1,this.delayedTransforms=null,this.src){if(function(t){if(b(t))return!1;var e=window.location,n=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(t)||[],i={protocol:n[1]||"",host:n[2]||"",port:n[3]||""},r=function(t){return t.port||("http"===(t.protocol||e.protocol)?80:433)};return!(!i.protocol&&!i.host&&!i.port||Boolean(i.protocol&&i.protocol==e.protocol&&i.host&&i.host==e.host&&i.host&&r(i)==r(e)))}(this.src)){var n=_(this.crossOrigin)?this.canvas:this.crossOrigin;!0===n&&(n="anonymous"),this.imageAttributes.crossOrigin=n}if(this.checkOrientation){var i=(t=this.src,new Promise((function(e){(function(t){return new Promise((function(e,n){try{if(t)if(/^data:/i.test(t))e(function(t){t=t.replace(/^data:([^;]+);base64,/gim,"");for(var e=atob(t),n=e.length,i=new ArrayBuffer(n),r=new Uint8Array(i),o=0;o<n;o++)r[o]=e.charCodeAt(o);return i}(t));else if(/^blob:/i.test(t)){var i=new FileReader;i.onload=function(t){e(t.target.result)},o=t,a=function(t){i.readAsArrayBuffer(t)},(s=new XMLHttpRequest).open("GET",o,!0),s.responseType="blob",s.onload=function(){200!=this.status&&0!==this.status||a(this.response)},s.send()}else{var r=new XMLHttpRequest;r.onreadystatechange=function(){4===r.readyState&&(200===r.status||0===r.status?e(r.response):n("Warning: could not load an image to parse its orientation"),r=null)},r.onprogress=function(){"image/jpeg"!==r.getResponseHeader("content-type")&&r.abort()},r.withCredentials=!1,r.open("GET",t,!0),r.responseType="arraybuffer",r.send(null)}else n("Error: the image is empty")}catch(t){n(t)}var o,a,s}))})(t).then((function(n){var i=function(t){try{var e,n=new DataView(t),i=void 0,r=void 0,o=void 0,a=void 0;if(255===n.getUint8(0)&&216===n.getUint8(1))for(var s=n.byteLength,l=2;l+1<s;){if(255===n.getUint8(l)&&225===n.getUint8(l+1)){o=l;break}l++}if(o&&(i=o+10,"Exif"===function(t,e,n){var i,r="";for(i=e,n+=e;i<n;i++)r+=String.fromCharCode(t.getUint8(i));return r}(n,o+4,4))){var c=n.getUint16(i);if(((r=18761===c)||19789===c)&&42===n.getUint16(i+2,r)){var u=n.getUint32(i+4,r);u>=8&&(a=i+u)}}if(a)for(var d=n.getUint16(a,r),h=0;h<d;h++)if(l=a+12*h+2,274===n.getUint16(l,r)){l+=8,e=n.getUint16(l,r),n.setUint16(l,1,r);break}return e}catch(t){return null}}(n);e(n?{source:t,arrayBuffer:n,orientation:i}:{source:t,arrayBuffer:null,orientation:null})})).catch((function(n){console.warn(n),e({source:t,arrayBuffer:null,orientation:null})}))})));setTimeout((function(){i.then(e.onParseImage)}),this.transitionTime)}else setTimeout((function(){e.onParseImage({source:e.src})}),this.transitionTime)}else this.clearImage()},onFailLoadImage:function(){this.imageAttributes.src&&(this.clearImage(),this.$emit("error"))},onSuccessLoadImage:function(){var t=this,e=this.$refs.image;e&&!this.imageLoaded&&(this.imageAttributes.height=e.naturalHeight,this.imageAttributes.width=e.naturalWidth,this.imageLoaded=!0,this.reset().then((function(){t.$emit("ready"),t.onChange(!1)})))},onParseImage:function(t){var e=this,n=t.source,i=t.arrayBuffer,r=t.orientation;this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.imageAttributes.revoke=!1,i&&r&&r>1&&b(n)?g(n)?(this.imageAttributes.src=URL.createObjectURL(new Blob([i])),this.imageAttributes.revoke=!0):this.imageAttributes.src=function(t){for(var e=[],n=new Uint8Array(t);n.length>0;){var i=n.subarray(0,8192);e.push(String.fromCharCode.apply(null,Array.from?Array.from(i):i.slice())),n=n.subarray(8192)}return"data:image/jpeg;base64,"+btoa(e.join(""))}(i):this.imageAttributes.src=n,this.customImageTransforms={rotate:0,flip:{horizontal:!1,vertical:!1}},this.basicImageTransforms=a(a({},this.customImageTransforms),function(t){var e={flip:{horizontal:!1,vertical:!1},rotate:0};if(t)switch(t){case 2:e.flip.horizontal=!0;break;case 3:e.rotate=-180;break;case 4:e.flip.vertical=!0;break;case 5:e.rotate=90,e.flip.vertical=!0;break;case 6:e.rotate=90;break;case 7:e.rotate=90,e.flip.horizontal=!0;break;case 8:e.rotate=-90}return e}(r)),this.$nextTick((function(){var t=e.$refs.image;t&&t.complete&&(function(t){return Boolean(t.naturalWidth)}(t)?e.onSuccessLoadImage():e.onFailLoadImage())}))},onResizeEnd:function(){this.runAutoZoom("resize",{transitions:!0})},onMoveEnd:function(){this.runAutoZoom("move",{transitions:!0})},onMove:function(t){var e=this;this.transitionsOptions.enabled||this.awaitRender((function(){e.coordinates=e.moveAlgorithm(a(a({},e.getPublicProperties()),{},{positionRestrictions:yt(e.positionRestrictions,e.visibleArea),coordinates:e.coordinates,event:e.normalizeEvent(t)})),e.onChange()}))},onResize:function(t){var e=this;this.transitionsOptions.enabled||this.stencilSize&&!this.autoZoom||this.awaitRender((function(){var n=e.sizeRestrictions,i=Math.min(e.coordinates.width,e.coordinates.height,20*e.coefficient);e.coordinates=e.resizeAlgorithm(a(a({},e.getPublicProperties()),{},{positionRestrictions:yt(e.positionRestrictions,e.visibleArea),sizeRestrictions:{maxWidth:Math.min(n.maxWidth,e.visibleArea.width),maxHeight:Math.min(n.maxHeight,e.visibleArea.height),minWidth:Math.max(n.minWidth,i),minHeight:Math.max(n.minHeight,i)},event:e.normalizeEvent(t)})),e.onChange(),e.ticking=!1}))},onManipulateImage:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.transitionsOptions.enabled){var n=e.transitions,i=void 0!==n&&n,r=e.normalize,o=void 0===r||r;i&&this.enableTransitions();var s=function(t){var e=t.event,n=t.coordinates,i=t.visibleArea,r=t.sizeRestrictions,o=t.getAreaRestrictions,a=t.positionRestrictions,s=t.adjustStencil,l=e.scale,c=e.move,u=m({},i),d=m({},n),h=1,p=1,f=l.factor&&Math.abs(l.factor-1)>.001;u=K(u,{left:c.left||0,top:c.top||0});var v={stencil:{minimum:Math.max(r.minWidth?r.minWidth/d.width:0,r.minHeight?r.minHeight/d.height:0),maximum:Math.min(r.maxWidth?r.maxWidth/d.width:1/0,r.maxHeight?r.maxHeight/d.height:1/0,Q(d,a))},area:{maximum:Q(u,o({visibleArea:u,type:"resize"}))}};l.factor&&f&&(l.factor<1?(p=Math.max(l.factor,v.stencil.minimum))>1&&(p=1):l.factor>1&&(p=Math.min(l.factor,Math.min(v.area.maximum,v.stencil.maximum)))<1&&(p=1)),p&&(u=Z(u,p,l.center));var g=n.left-i.left,b=i.width+i.left-(n.width+n.left),y=n.top-i.top,_=i.height+i.top-(n.height+n.top);return u=at(u=K(u,tt(u,{left:void 0!==a.left?a.left-g*p:void 0,top:void 0!==a.top?a.top-y*p:void 0,bottom:void 0!==a.bottom?a.bottom+_*p:void 0,right:void 0!==a.right?a.right+b*p:void 0})),o({visibleArea:u,type:"move"})),d.width=d.width*p,d.height=d.height*p,d.left=u.left+g*p,d.top=u.top+y*p,d=at(d,ct(V(u),a)),l.factor&&f&&s&&(l.factor>1?h=Math.min(v.area.maximum,l.factor)/p:l.factor<1&&(h=Math.max(d.height/u.height,d.width/u.width,l.factor/p)),1!==h&&(u=K(u=at(u=Z(u,h,l.factor>1?l.center:q(d)),o({visibleArea:u,type:"move"})),X(tt(d,V(u)))))),{coordinates:d,visibleArea:u}}(a(a({},this.getPublicProperties()),{},{event:o?this.normalizeEvent(t):t,getAreaRestrictions:this.getAreaRestrictions,imageRestriction:this.imageRestriction,adjustStencil:!this.stencilSize&&this.settings.resizeImage.adjustStencil})),l=s.visibleArea,c=s.coordinates;this.visibleArea=l,this.coordinates=c,this.runAutoZoom("manipulateImage"),this.onChange(),i&&this.debouncedDisableTransitions()}},onPropsChange:function(){this.coordinates=this.applyTransform(this.coordinates,!0),this.onChange(!1)},getAreaRestrictions:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.visibleArea,n=t.type,i=void 0===n?"move":n;return this.areaRestrictionsAlgorithm({boundaries:this.boundaries,imageSize:this.imageSize,imageRestriction:this.imageRestriction,visibleArea:e,type:i})},getAspectRatio:function(t){var e,n,i=this.stencilProps,r=i.aspectRatio,o=i.minAspectRatio,a=i.maxAspectRatio;if(this.$refs.stencil.aspectRatios){var s=this.$refs.stencil.aspectRatios();e=s.minimum,n=s.maximum}if(_(e)&&(e=_(r)?o:r),_(n)&&(n=_(r)?a:r),!t&&(_(e)||_(n))){var l=this.getStencilSize(),c=l?J(l):null;_(e)&&(e=S(c)?c:void 0),_(n)&&(n=S(c)?c:void 0)}return{minimum:e,maximum:n}},getStencilSize:function(){if(this.stencilSize)return e=(t={currentStencilSize:{width:this.stencilCoordinates.width,height:this.stencilCoordinates.height},stencilSize:this.stencilSize,boundaries:this.boundaries,coefficient:this.coefficient,coordinates:this.coordinates,aspectRatio:this.getAspectRatio(!0)}).boundaries,i=t.aspectRatio,et(J(r=y(n=t.stencilSize)?n({boundaries:e,aspectRatio:i}):n),i)&&(r=ht({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:r.width,height:r.height,aspectRatio:{minimum:i.minimum,maximum:i.maximum}})),(r.width>e.width||r.height>e.height)&&(r=ht({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:r.width,height:r.height,aspectRatio:{minimum:J(r),maximum:J(r)}})),r;var t,e,n,i,r},getPublicProperties:function(){return{coefficient:this.coefficient,visibleArea:this.visibleArea,coordinates:this.coordinates,boundaries:this.boundaries,sizeRestrictions:this.sizeRestrictions,positionRestrictions:this.positionRestrictions,aspectRatio:this.getAspectRatio(),imageRestriction:this.imageRestriction}},defaultCoordinates:function(){return a({},U)},flip:function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).transitions,i=void 0===n||n;if(!this.transitionsActive){i&&this.enableTransitions();var r=a({},this.imageTransforms.flip),o=function(t){var e=t.flip,n=t.previousFlip,i=t.rotate,r=(t.aspectRatio,t.getAreaRestrictions),o=t.coordinates,a=t.visibleArea,s=t.imageSize,l=m({},o),c=m({},a),u=n.horizontal!==e.horizontal,d=n.vertical!==e.vertical;if(u||d){var h=rt({left:s.width/2,top:s.height/2},-i),p=rt(q(l),-i),f=rt({left:u?h.left-(p.left-h.left):p.left,top:d?h.top-(p.top-h.top):p.top},i);l=K(l,Y(f,q(l))),p=rt(q(c),-i),c=at(c=K(c,Y(f=rt({left:u?h.left-(p.left-h.left):p.left,top:d?h.top-(p.top-h.top):p.top},i),q(c))),r({visibleArea:c,type:"move"}))}return{coordinates:l,visibleArea:c}}({flip:{horizontal:t?!r.horizontal:r.horizontal,vertical:e?!r.vertical:r.vertical},previousFlip:r,rotate:this.imageTransforms.rotate,visibleArea:this.visibleArea,coordinates:this.coordinates,imageSize:this.imageSize,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),s=o.visibleArea,l=o.coordinates;t&&(this.customImageTransforms.flip.horizontal=!this.customImageTransforms.flip.horizontal),e&&(this.customImageTransforms.flip.vertical=!this.customImageTransforms.flip.vertical),this.visibleArea=s,this.coordinates=l,this.onChange(),i&&this.debouncedDisableTransitions()}},rotate:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).transitions,n=void 0===e||e;if(!this.transitionsActive){n&&this.enableTransitions();var i=a({},this.imageSize);this.customImageTransforms.rotate+=t;var r=function(t){var e=t.aspectRatio,n=t.getAreaRestrictions,i=t.coordinates,r=t.visibleArea,o=t.sizeRestrictions,a=t.positionRestrictions,s=t.imageSize,l=t.previousImageSize,c=t.angle,u=m({},i),d=m({},r),h=rt(q(m({left:0,top:0},l)),c);return(u=m(m({},ht({sizeRestrictions:o,aspectRatio:e,width:u.width,height:u.height})),rt(q(u),c))).left-=h.left-s.width/2+u.width/2,u.top-=h.top-s.height/2+u.height/2,d=Z(d,ot(d,n({visibleArea:d,type:"resize"}))),{coordinates:u=at(u,a),visibleArea:d=at(d=K(d,Y(q(u),q(i))),n({visibleArea:d,type:"move"}))}}({visibleArea:this.visibleArea,coordinates:this.coordinates,previousImageSize:i,imageSize:this.imageSize,angle:t,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),o=r.visibleArea,s=r.coordinates,l=this.processAutoZoom("rotateImage",o,s);o=l.visibleArea,s=l.coordinates,this.visibleArea=o,this.coordinates=s,this.onChange(),n&&this.debouncedDisableTransitions()}}}},void 0,!1,void 0,!1,void 0,void 0,void 0);i.default.component("cropper",Gt),i.default.component("rectangle-stencil",Vt),i.default.component("circle-stencil",qt),i.default.component("simple-handler",St),i.default.component("simple-line",Ot)},4276:function(t,e,n){var i;t.exports=(i=n(6018),function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=4)}([function(t,e){t.exports=i},function(t,e){t.exports=function(t,e,n,i,r,o){var a,s=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(a=t,s=t.default);var c,u="function"==typeof s?s.options:s;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),r&&(u._scopeId=r),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=c):i&&(c=i),c){var d=u.functional,h=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(t,e){return c.call(e),h(t,e)}):u.beforeCreate=h?[].concat(h,c):[c]}return{esModule:a,exports:s,options:u}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),r=n.n(i),o=n(8),a=n(1)(r.a,o.a,!1,null,null,null);e.default=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(6),r=n.n(i),o=n(7),a=n(1)(r.a,o.a,!1,null,null,null);e.default=a.exports},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.install=e.swiperSlide=e.swiper=e.Swiper=void 0;var r=i(n(0)),o=i(n(2)),a=i(n(3)),s=window.Swiper||r.default,l=a.default,c=o.default,u=function(t,e){e&&(a.default.props.globalOptions.default=function(){return e}),t.component(a.default.name,a.default),t.component(o.default.name,o.default)},d={Swiper:s,swiper:l,swiperSlide:c,install:u};e.default=d,e.Swiper=s,e.swiper=l,e.swiperSlide=c,e.install=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"swiper-slide",data:function(){return{slideClass:"swiper-slide"}},ready:function(){this.update()},mounted:function(){this.update(),this.$parent&&this.$parent.options&&this.$parent.options.slideClass&&(this.slideClass=this.$parent.options.slideClass)},updated:function(){this.update()},attached:function(){this.update()},methods:{update:function(){this.$parent&&this.$parent.swiper&&this.$parent.update()}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){return t&&t.__esModule?t:{default:t}}(n(0)),r=window.Swiper||i.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),i=1;i<arguments.length;i++){var r=arguments[i];if(null!=r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])}return n},writable:!0,configurable:!0});var o=["beforeDestroy","slideChange","slideChangeTransitionStart","slideChangeTransitionEnd","slideNextTransitionStart","slideNextTransitionEnd","slidePrevTransitionStart","slidePrevTransitionEnd","transitionStart","transitionEnd","touchStart","touchMove","touchMoveOpposite","sliderMove","touchEnd","click","tap","doubleTap","imagesReady","progress","reachBeginning","reachEnd","fromEdge","setTranslate","setTransition","resize"];e.default={name:"swiper",props:{options:{type:Object,default:function(){return{}}},globalOptions:{type:Object,required:!1,default:function(){return{}}}},data:function(){return{swiper:null,classes:{wrapperClass:"swiper-wrapper"}}},ready:function(){this.swiper||this.mountInstance()},mounted:function(){if(!this.swiper){var t=!1;for(var e in this.classes)this.classes.hasOwnProperty(e)&&this.options[e]&&(t=!0,this.classes[e]=this.options[e]);t?this.$nextTick(this.mountInstance):this.mountInstance()}},activated:function(){this.update()},updated:function(){this.update()},beforeDestroy:function(){this.$nextTick((function(){this.swiper&&(this.swiper.destroy&&this.swiper.destroy(),delete this.swiper)}))},methods:{update:function(){this.swiper&&(this.swiper.update&&this.swiper.update(),this.swiper.navigation&&this.swiper.navigation.update(),this.swiper.pagination&&this.swiper.pagination.render(),this.swiper.pagination&&this.swiper.pagination.update())},mountInstance:function(){var t=Object.assign({},this.globalOptions,this.options);this.swiper=new r(this.$el,t),this.bindEvents(),this.$emit("ready",this.swiper)},bindEvents:function(){var t=this,e=this;o.forEach((function(n){t.swiper.on(n,(function(){e.$emit.apply(e,[n].concat(Array.prototype.slice.call(arguments))),e.$emit.apply(e,[n.replace(/([A-Z])/g,"-$1").toLowerCase()].concat(Array.prototype.slice.call(arguments)))}))}))}}}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"swiper-container"},[t._t("parallax-bg"),t._v(" "),n("div",{class:t.classes.wrapperClass},[t._t("default")],2),t._v(" "),t._t("pagination"),t._v(" "),t._t("button-prev"),t._v(" "),t._t("button-next"),t._v(" "),t._t("scrollbar")],2)},r={render:i,staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{class:t.slideClass},[t._t("default")],2)},r={render:i,staticRenderFns:[]};e.a=r}]))},7059:function(t){"undefined"!=typeof self&&self,t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"3ae1":function(t,e,n){"use strict";n("e386")},8875:function(t,e,n){var i,r,o,a;"undefined"!=typeof self&&self,a=function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(t){var n,i,r,o=/@([^@]*):(\d+):(\d+)\s*$/gi,a=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(t.stack)||o.exec(t.stack),s=a&&a[1]||!1,l=a&&a[2]||!1,c=document.location.href.replace(document.location.hash,""),u=document.getElementsByTagName("script");s===c&&(n=document.documentElement.outerHTML,i=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),r=n.replace(i,"$1").trim());for(var d=0;d<u.length;d++){if("interactive"===u[d].readyState)return u[d];if(u[d].src===s)return u[d];if(s===c&&u[d].innerHTML&&u[d].innerHTML.trim()===r)return u[d]}return null}}return t},r=[],void 0===(o="function"==typeof(i=a)?i.apply(e,r):i)||(t.exports=o)},e386:function(t,e,n){},fb15:function(t,e,n){"use strict";if(n.r(e),"undefined"!=typeof window){var i=window.document.currentScript,r=n("8875");i=r(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:r});var o=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}var a=function(){var t=this,e=t.$createElement;return(t._self._c||e)(t.$props.tagname,{tag:"section",staticClass:"ps-container",on:{"ps-scroll-y":t.scrollHandle,"ps-scroll-x":t.scrollHandle,"ps-scroll-up":t.scrollHandle,"ps-scroll-down":t.scrollHandle,"ps-scroll-left":t.scrollHandle,"ps-scroll-right":t.scrollHandle,"ps-y-reach-start":t.scrollHandle,"ps-y-reach-end":t.scrollHandle,"ps-x-reach-start":t.scrollHandle,"ps-x-reach-end":t.scrollHandle}},[t._t("default")],2)},s=[];function l(t){return getComputedStyle(t)}function c(t,e){for(var n in e){var i=e[n];"number"==typeof i&&(i+="px"),t.style[n]=i}return t}function u(t){var e=document.createElement("div");return e.className=t,e}var d="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function h(t,e){if(!d)throw new Error("No element matching method supported");return d.call(t,e)}function p(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function f(t,e){return Array.prototype.filter.call(t.children,(function(t){return h(t,e)}))}var m={main:"ps",rtl:"ps__rtl",element:{thumb:function(t){return"ps__thumb-"+t},rail:function(t){return"ps__rail-"+t},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(t){return"ps--active-"+t},scrolling:function(t){return"ps--scrolling-"+t}}},v={x:null,y:null};function g(t,e){var n=t.element.classList,i=m.state.scrolling(e);n.contains(i)?clearTimeout(v[e]):n.add(i)}function b(t,e){v[e]=setTimeout((function(){return t.isAlive&&t.element.classList.remove(m.state.scrolling(e))}),t.settings.scrollingThreshold)}function y(t,e){g(t,e),b(t,e)}var _=function(t){this.element=t,this.handlers={}},w={isEmpty:{configurable:!0}};_.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},_.prototype.unbind=function(t,e){var n=this;this.handlers[t]=this.handlers[t].filter((function(i){return!(!e||i===e)||(n.element.removeEventListener(t,i,!1),!1)}))},_.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},w.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every((function(e){return 0===t.handlers[e].length}))},Object.defineProperties(_.prototype,w);var x=function(){this.eventElements=[]};function C(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function S(t,e,n,i,r){var o;if(void 0===i&&(i=!0),void 0===r&&(r=!1),"top"===e)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}E(t,n,o,i,r)}function E(t,e,n,i,r){var o=n[0],a=n[1],s=n[2],l=n[3],c=n[4],u=n[5];void 0===i&&(i=!0),void 0===r&&(r=!1);var d=t.element;t.reach[l]=null,d[s]<1&&(t.reach[l]="start"),d[s]>t[o]-t[a]-1&&(t.reach[l]="end"),e&&(d.dispatchEvent(C("ps-scroll-"+l)),e<0?d.dispatchEvent(C("ps-scroll-"+c)):e>0&&d.dispatchEvent(C("ps-scroll-"+u)),i&&y(t,l)),t.reach[l]&&(e||r)&&d.dispatchEvent(C("ps-"+l+"-reach-"+t.reach[l]))}function T(t){return parseInt(t,10)||0}function O(t){return h(t,"input,[contenteditable]")||h(t,"select,[contenteditable]")||h(t,"textarea,[contenteditable]")||h(t,"button,[contenteditable]")}function k(t){var e=l(t);return T(e.width)+T(e.paddingLeft)+T(e.paddingRight)+T(e.borderLeftWidth)+T(e.borderRightWidth)}x.prototype.eventElement=function(t){var e=this.eventElements.filter((function(e){return e.element===t}))[0];return e||(e=new _(t),this.eventElements.push(e)),e},x.prototype.bind=function(t,e,n){this.eventElement(t).bind(e,n)},x.prototype.unbind=function(t,e,n){var i=this.eventElement(t);i.unbind(e,n),i.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(i),1)},x.prototype.unbindAll=function(){this.eventElements.forEach((function(t){return t.unbindAll()})),this.eventElements=[]},x.prototype.once=function(t,e,n){var i=this.eventElement(t),r=function(t){i.unbind(e,r),n(t)};i.bind(e,r)};var A={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function P(t){var e=t.element,n=Math.floor(e.scrollTop),i=e.getBoundingClientRect();t.containerWidth=Math.ceil(i.width),t.containerHeight=Math.ceil(i.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(f(e,m.element.rail("x")).forEach((function(t){return p(t)})),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(f(e,m.element.rail("y")).forEach((function(t){return p(t)})),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset<t.contentWidth?(t.scrollbarXActive=!0,t.railXWidth=t.containerWidth-t.railXMarginWidth,t.railXRatio=t.containerWidth/t.railXWidth,t.scrollbarXWidth=M(t,T(t.railXWidth*t.containerWidth/t.contentWidth)),t.scrollbarXLeft=T((t.negativeScrollAdjustment+e.scrollLeft)*(t.railXWidth-t.scrollbarXWidth)/(t.contentWidth-t.containerWidth))):t.scrollbarXActive=!1,!t.settings.suppressScrollY&&t.containerHeight+t.settings.scrollYMarginOffset<t.contentHeight?(t.scrollbarYActive=!0,t.railYHeight=t.containerHeight-t.railYMarginHeight,t.railYRatio=t.containerHeight/t.railYHeight,t.scrollbarYHeight=M(t,T(t.railYHeight*t.containerHeight/t.contentHeight)),t.scrollbarYTop=T(n*(t.railYHeight-t.scrollbarYHeight)/(t.contentHeight-t.containerHeight))):t.scrollbarYActive=!1,t.scrollbarXLeft>=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),L(e,t),t.scrollbarXActive?e.classList.add(m.state.active("x")):(e.classList.remove(m.state.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?e.classList.add(m.state.active("y")):(e.classList.remove(m.state.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function M(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function L(t,e){var n={width:e.railXWidth},i=Math.floor(t.scrollTop);e.isRtl?n.left=e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:n.left=t.scrollLeft,e.isScrollbarXUsingBottom?n.bottom=e.scrollbarXBottom-i:n.top=e.scrollbarXTop+i,c(e.scrollbarXRail,n);var r={top:i,height:e.railYHeight};e.isScrollbarYUsingRight?e.isRtl?r.right=e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:r.right=e.scrollbarYRight-t.scrollLeft:e.isRtl?r.left=e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:r.left=e.scrollbarYLeft+t.scrollLeft,c(e.scrollbarYRail,r),c(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),c(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}function D(t){t.element,t.event.bind(t.scrollbarY,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarYRail,"mousedown",(function(e){var n=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top>t.scrollbarYTop?1:-1;t.element.scrollTop+=n*t.containerHeight,P(t),e.stopPropagation()})),t.event.bind(t.scrollbarX,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarXRail,"mousedown",(function(e){var n=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left>t.scrollbarXLeft?1:-1;t.element.scrollLeft+=n*t.containerWidth,P(t),e.stopPropagation()}))}function R(t){I(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),I(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])}function I(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8],d=t.element,h=null,p=null,f=null;function v(e){e.touches&&e.touches[0]&&(e[r]=e.touches[0].pageY),d[l]=h+f*(e[r]-p),g(t,c),P(t),e.stopPropagation(),e.preventDefault()}function y(){b(t,c),t[u].classList.remove(m.state.clicking),t.event.unbind(t.ownerDocument,"mousemove",v)}function _(e,a){h=d[l],a&&e.touches&&(e[r]=e.touches[0].pageY),p=e[r],f=(t[i]-t[n])/(t[o]-t[s]),a?t.event.bind(t.ownerDocument,"touchmove",v):(t.event.bind(t.ownerDocument,"mousemove",v),t.event.once(t.ownerDocument,"mouseup",y),e.preventDefault()),t[u].classList.add(m.state.clicking),e.stopPropagation()}t.event.bind(t[a],"mousedown",(function(t){_(t)})),t.event.bind(t[a],"touchstart",(function(t){_(t,!0)}))}function j(t){var e=t.element,n=function(){return h(e,":hover")},i=function(){return h(t.scrollbarX,":focus")||h(t.scrollbarY,":focus")};function r(n,i){var r=Math.floor(e.scrollTop);if(0===n){if(!t.scrollbarYActive)return!1;if(0===r&&i>0||r>=t.contentHeight-t.containerHeight&&i<0)return!t.settings.wheelPropagation}var o=e.scrollLeft;if(0===i){if(!t.scrollbarXActive)return!1;if(0===o&&n<0||o>=t.contentWidth-t.containerWidth&&n>0)return!t.settings.wheelPropagation}return!0}t.event.bind(t.ownerDocument,"keydown",(function(o){if(!(o.isDefaultPrevented&&o.isDefaultPrevented()||o.defaultPrevented)&&(n()||i())){var a=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(a){if("IFRAME"===a.tagName)a=a.contentDocument.activeElement;else for(;a.shadowRoot;)a=a.shadowRoot.activeElement;if(O(a))return}var s=0,l=0;switch(o.which){case 37:s=o.metaKey?-t.contentWidth:o.altKey?-t.containerWidth:-30;break;case 38:l=o.metaKey?t.contentHeight:o.altKey?t.containerHeight:30;break;case 39:s=o.metaKey?t.contentWidth:o.altKey?t.containerWidth:30;break;case 40:l=o.metaKey?-t.contentHeight:o.altKey?-t.containerHeight:-30;break;case 32:l=o.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:l=t.containerHeight;break;case 34:l=-t.containerHeight;break;case 36:l=t.contentHeight;break;case 35:l=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==s||t.settings.suppressScrollY&&0!==l||(e.scrollTop-=l,e.scrollLeft+=s,P(t),r(s,l)&&o.preventDefault())}}))}function N(t){var e=t.element;function n(n,i){var r=Math.floor(e.scrollTop),o=0===e.scrollTop,a=r+e.offsetHeight===e.scrollHeight,s=0===e.scrollLeft,l=e.scrollLeft+e.offsetWidth===e.scrollWidth;return!(Math.abs(i)>Math.abs(n)?o||a:s||l)||!t.settings.wheelPropagation}function i(t){var e=t.deltaX,n=-1*t.deltaY;return void 0!==e&&void 0!==n||(e=-1*t.wheelDeltaX/6,n=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,n*=10),e!=e&&n!=n&&(e=0,n=t.wheelDelta),t.shiftKey?[-n,-e]:[e,n]}function r(t,n,i){if(!A.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(t))return!1;for(var r=t;r&&r!==e;){if(r.classList.contains(m.element.consuming))return!0;var o=l(r);if(i&&o.overflowY.match(/(scroll|auto)/)){var a=r.scrollHeight-r.clientHeight;if(a>0&&(r.scrollTop>0&&i<0||r.scrollTop<a&&i>0))return!0}if(n&&o.overflowX.match(/(scroll|auto)/)){var s=r.scrollWidth-r.clientWidth;if(s>0&&(r.scrollLeft>0&&n<0||r.scrollLeft<s&&n>0))return!0}r=r.parentNode}return!1}function o(o){var a=i(o),s=a[0],l=a[1];if(!r(o.target,s,l)){var c=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(l?e.scrollTop-=l*t.settings.wheelSpeed:e.scrollTop+=s*t.settings.wheelSpeed,c=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(s?e.scrollLeft+=s*t.settings.wheelSpeed:e.scrollLeft-=l*t.settings.wheelSpeed,c=!0):(e.scrollTop-=l*t.settings.wheelSpeed,e.scrollLeft+=s*t.settings.wheelSpeed),P(t),(c=c||n(s,l))&&!o.ctrlKey&&(o.stopPropagation(),o.preventDefault())}}void 0!==window.onwheel?t.event.bind(e,"wheel",o):void 0!==window.onmousewheel&&t.event.bind(e,"mousewheel",o)}function F(t){if(A.supportsTouch||A.supportsIePointer){var e=t.element,n={},i=0,r={},o=null;A.supportsTouch?(t.event.bind(e,"touchstart",d),t.event.bind(e,"touchmove",p),t.event.bind(e,"touchend",f)):A.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",d),t.event.bind(e,"pointermove",p),t.event.bind(e,"pointerup",f)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",d),t.event.bind(e,"MSPointerMove",p),t.event.bind(e,"MSPointerUp",f)))}function a(n,i){var r=Math.floor(e.scrollTop),o=e.scrollLeft,a=Math.abs(n),s=Math.abs(i);if(s>a){if(i<0&&r===t.contentHeight-t.containerHeight||i>0&&0===r)return 0===window.scrollY&&i>0&&A.isChrome}else if(a>s&&(n<0&&o===t.contentWidth-t.containerWidth||n>0&&0===o))return!0;return!0}function s(n,i){e.scrollTop-=i,e.scrollLeft-=n,P(t)}function c(t){return t.targetTouches?t.targetTouches[0]:t}function u(t){return!(t.pointerType&&"pen"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function d(t){if(u(t)){var e=c(t);n.pageX=e.pageX,n.pageY=e.pageY,i=(new Date).getTime(),null!==o&&clearInterval(o)}}function h(t,n,i){if(!e.contains(t))return!1;for(var r=t;r&&r!==e;){if(r.classList.contains(m.element.consuming))return!0;var o=l(r);if(i&&o.overflowY.match(/(scroll|auto)/)){var a=r.scrollHeight-r.clientHeight;if(a>0&&(r.scrollTop>0&&i<0||r.scrollTop<a&&i>0))return!0}if(n&&o.overflowX.match(/(scroll|auto)/)){var s=r.scrollWidth-r.clientWidth;if(s>0&&(r.scrollLeft>0&&n<0||r.scrollLeft<s&&n>0))return!0}r=r.parentNode}return!1}function p(t){if(u(t)){var e=c(t),o={pageX:e.pageX,pageY:e.pageY},l=o.pageX-n.pageX,d=o.pageY-n.pageY;if(h(t.target,l,d))return;s(l,d),n=o;var p=(new Date).getTime(),f=p-i;f>0&&(r.x=l/f,r.y=d/f,i=p),a(l,d)&&t.preventDefault()}}function f(){t.settings.swipeEasing&&(clearInterval(o),o=setInterval((function(){t.isInitialized?clearInterval(o):r.x||r.y?Math.abs(r.x)<.01&&Math.abs(r.y)<.01?clearInterval(o):(s(30*r.x,30*r.y),r.x*=.8,r.y*=.8):clearInterval(o)}),10))}}var z=function(){return{handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1}},B={"click-rail":D,"drag-thumb":R,keyboard:j,wheel:N,touch:F},$=function(t,e){var n=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var i in this.element=t,t.classList.add(m.main),this.settings=z(),e)this.settings[i]=e[i];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var r=function(){return t.classList.add(m.state.focus)},o=function(){return t.classList.remove(m.state.focus)};this.isRtl="rtl"===l(t).direction,!0===this.isRtl&&t.classList.add(m.rtl),this.isNegativeScroll=function(){var e=t.scrollLeft,n=null;return t.scrollLeft=-1,n=t.scrollLeft<0,t.scrollLeft=e,n}(),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new x,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=u(m.element.rail("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=u(m.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",r),this.event.bind(this.scrollbarX,"blur",o),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var a=l(this.scrollbarXRail);this.scrollbarXBottom=parseInt(a.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=T(a.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=T(a.borderLeftWidth)+T(a.borderRightWidth),c(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=T(a.marginLeft)+T(a.marginRight),c(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=u(m.element.rail("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=u(m.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",r),this.event.bind(this.scrollbarY,"blur",o),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var s=l(this.scrollbarYRail);this.scrollbarYRight=parseInt(s.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=T(s.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?k(this.scrollbarY):null,this.railBorderYWidth=T(s.borderTopWidth)+T(s.borderBottomWidth),c(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=T(s.marginTop)+T(s.marginBottom),c(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach((function(t){return B[t](n)})),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",(function(t){return n.onScroll(t)})),P(this)};$.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,c(this.scrollbarXRail,{display:"block"}),c(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=T(l(this.scrollbarXRail).marginLeft)+T(l(this.scrollbarXRail).marginRight),this.railYMarginHeight=T(l(this.scrollbarYRail).marginTop)+T(l(this.scrollbarYRail).marginBottom),c(this.scrollbarXRail,{display:"none"}),c(this.scrollbarYRail,{display:"none"}),P(this),S(this,"top",0,!1,!0),S(this,"left",0,!1,!0),c(this.scrollbarXRail,{display:""}),c(this.scrollbarYRail,{display:""}))},$.prototype.onScroll=function(t){this.isAlive&&(P(this),S(this,"top",this.element.scrollTop-this.lastScrollTop),S(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},$.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),p(this.scrollbarX),p(this.scrollbarY),p(this.scrollbarXRail),p(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},$.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter((function(t){return!t.match(/^ps([-_].+|)$/)})).join(" ")};var U=$,H={name:"vue-custom-scrollbar",props:{settings:{default:null},swicher:{type:Boolean,default:!0},tagname:{type:String,default:"section"}},data:function(){return{ps:null}},methods:{scrollHandle:function(t){this.$emit(t.type,t)},update:function(){this.ps&&this.ps.update()},__init:function(){this.swicher&&(this._ps_inited?this.ps.update():(this._ps_inited=!0,this.ps=new U(this.$el,this.settings)))},__uninit:function(){this.ps&&(this.ps.destroy(),this.ps=null,this._ps_inited=!1)}},watch:{swicher:function(t){t&&!this._ps_inited&&this.__init(),!t&&this._ps_inited&&this.__uninit()},settings:{deep:!0,handler:function(){this.__uninit(),this.__init()}},$route:function(){this.update()}},mounted:function(){this.$isServer||this.__init()},updated:function(){this.$nextTick(this.update)},activated:function(){this.__init()},deactivated:function(){this.__uninit()},beforeDestroy:function(){this.__uninit()}},V=H;function Y(t,e,n,i,r,o,a,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}n("3ae1");var q=Y(V,a,s,!1,null,null,null).exports;e.default=q}}).default},4879:(t,e,n)=>{t.exports=function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=19)}([function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var i=n(23),r=n(28);t.exports=n(4)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){t.exports=!n(6)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){var i=n(0),r=n(1),o=n(3),a=n(29),s=n(8),l=function(t,e,n){var c,u,d,h,p=t&l.F,f=t&l.G,m=t&l.S,v=t&l.P,g=t&l.B,b=f?i:m?i[e]||(i[e]={}):(i[e]||{}).prototype,y=f?r:r[e]||(r[e]={}),_=y.prototype||(y.prototype={});for(c in f&&(n=e),n)d=((u=!p&&b&&void 0!==b[c])?b:n)[c],h=g&&u?s(d,i):v&&"function"==typeof d?s(Function.call,d):d,b&&a(b,c,d,t&l.U),y[c]!=d&&o(y,c,h),v&&_[c]!=d&&(_[c]=d)};i.core=r,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e,n){var i=n(31);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var i=n(10);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e,n){var i=n(13),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e,n){var i=n(15)("unscopables"),r=Array.prototype;null==r[i]&&n(3)(r,i,{}),t.exports=function(t){r[i][t]=!0}},function(t,e,n){var i=n(35)("wks"),r=n(7),o=n(0).Symbol,a="function"==typeof o;(t.exports=function(t){return i[t]||(i[t]=a&&o[t]||(a?o:r)("Symbol."+t))}).store=i},function(t,e){t.exports=function(t,e,n,i,r){var o,a=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(o=t,a=t.default);var l,c="function"==typeof a?a.options:a;if(e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns),i&&(c._scopeId=i),r?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=l):n&&(l=n),l){var u=c.functional,d=u?c.render:c.beforeCreate;u?c.render=function(t,e){return l.call(e),d(t,e)}:c.beforeCreate=d?[].concat(d,l):[l]}return{esModule:o,exports:a,options:c}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){return t.reduce((function(t,e){return(t[e]=e)&&t}),{})};e.events=i(["drag","dragend","dragenter","dragleave","dragstart","dragover","drop"]),e.dropEffects=i(["copy","move","link","none"]),e.effectsAllowed=i(["none","copy","copyLink","copyMove","link","linkMove","move","all","uninitialized"])},function(t,e,n){n(20),t.exports=n(43)},function(t,e,n){"use strict";n(21),n(36)},function(t,e,n){n(22),t.exports=n(1).Array.includes},function(t,e,n){"use strict";var i=n(5),r=n(32)(!0);i(i.P,"Array",{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n(14)("includes")},function(t,e,n){var i=n(24),r=n(25),o=n(27),a=Object.defineProperty;e.f=n(4)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var i=n(2);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(4)&&!n(6)((function(){return 7!=Object.defineProperty(n(26)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var i=n(2),r=n(0).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e,n){var i=n(2);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var i=n(0),r=n(3),o=n(30),a=n(7)("src"),s=Function.toString,l=(""+s).split("toString");n(1).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var c="function"==typeof n;c&&(o(n,"name")||r(n,"name",e)),t[e]!==n&&(c&&(o(n,a)||r(n,a,t[e]?""+t[e]:l.join(String(e)))),t===i?t[e]=n:s?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[a]||s.call(this)}))},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var i=n(33),r=n(12),o=n(34);t.exports=function(t){return function(e,n,a){var s,l=i(e),c=r(l.length),u=o(a,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},function(t,e,n){var i=n(9),r=n(11);t.exports=function(t){return i(r(t))}},function(t,e,n){var i=n(13),r=Math.max,o=Math.min;t.exports=function(t,e){return(t=i(t))<0?r(t+e,0):o(t,e)}},function(t,e,n){var i=n(0),r=i["__core-js_shared__"]||(i["__core-js_shared__"]={});t.exports=function(t){return r[t]||(r[t]={})}},function(t,e,n){n(37),t.exports=n(1).Array.find},function(t,e,n){"use strict";var i=n(5),r=n(38)(5),o=!0;"find"in[]&&Array(1).find((function(){o=!1})),i(i.P+i.F*o,"Array",{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n(14)("find")},function(t,e,n){var i=n(8),r=n(9),o=n(39),a=n(12),s=n(40);t.exports=function(t,e){var n=1==t,l=2==t,c=3==t,u=4==t,d=6==t,h=5==t||d,p=e||s;return function(e,s,f){for(var m,v,g=o(e),b=r(g),y=i(s,f,3),_=a(b.length),w=0,x=n?p(e,_):l?p(e,0):void 0;_>w;w++)if((h||w in b)&&(v=y(m=b[w],w,g),t))if(n)x[w]=v;else if(v)switch(t){case 3:return!0;case 5:return m;case 6:return w;case 2:x.push(m)}else if(u)return!1;return d?-1:c||u?u:x}}},function(t,e,n){var i=n(11);t.exports=function(t){return Object(i(t))}},function(t,e,n){var i=n(41);t.exports=function(t,e){return new(i(t))(e)}},function(t,e,n){var i=n(2),r=n(42),o=n(15)("species");t.exports=function(t){var e;return r(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!r(e.prototype)||(e=void 0),i(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){var i=n(10);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,i){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){t.component("drag",a.default),t.component("drop",s.default)}Object.defineProperty(e,"__esModule",{value:!0}),e.Drop=e.Drag=void 0,e.install=o;var a=r(i(44)),s=r(i(47));e.Drag=a.default,e.Drop=s.default;var l={version:"1.1.4",install:o};e.default=l;var c=null;"undefined"!=typeof window?c=window.Vue:void 0!==n.g&&(c=n.g.Vue),c&&c.use(l)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(45),r=n.n(i),o=n(46),a=n(16)(r.a,o.a,null,null,"319bdce9");e.default=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(17),o=(i=r)&&i.__esModule?i:{default:i},a=n(18);e.default={props:{draggable:{type:Boolean,default:!0},transferData:{},dropEffect:{validator:function(t){return t in a.dropEffects}},effectAllowed:{validator:function(t){return t in a.effectsAllowed}},image:String,imageXOffset:{type:Number,default:0},imageYOffset:{type:Number,default:0},hideImageHtml:{type:Boolean,default:!0},tag:{type:String,default:"div"}},data:function(){return{dragging:!1}},computed:{events:function(){return a.events},scopedData:function(){return this.dragging&&this.transferData},hideImageStyle:function(){return{position:"fixed",top:"-1000px"}}},methods:{emitEvent:function(t,e){var n=e.dataTransfer;if([a.events.dragenter,a.events.dragover].includes(t)&&this.dropEffect&&(n.dropEffect=this.dropEffect),t===a.events.dragstart){if(this.effectAllowed&&(n.effectAllowed=this.effectAllowed),this.image||this.$slots.image){var i=void 0;this.image?(i=new Image).src=this.image:this.$slots.image&&(i=this.$slots.image[0].elm),n.setDragImage&&n.setDragImage(i,this.imageXOffset,this.imageYOffset)}void 0!==this.transferData&&(o.default.data=this.transferData,e.dataTransfer.setData("text","")),this.dragging=!0}this.$emit(t,this.transferData,e),t===a.events.dragend&&(o.default.data=void 0,this.dragging=!1)}}}},function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.tag,{tag:"component",attrs:{draggable:t.draggable},on:{drag:function(e){t.emitEvent(t.events.drag,e)},dragstart:function(e){t.emitEvent(t.events.dragstart,e)},dragenter:function(e){t.emitEvent(t.events.dragenter,e)},dragleave:function(e){t.emitEvent(t.events.dragleave,e)},dragend:function(e){t.emitEvent(t.events.dragend,e)}}},[t._t("default",null,{transferData:t.scopedData}),t._v(" "),t.hideImageHtml?n("div",{style:t.hideImageStyle},[t._t("image",null,{transferData:t.scopedData})],2):t._t("image",null,{transferData:t.scopedData})],2)},staticRenderFns:[]};e.a=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(48),r=n.n(i),o=n(49),a=n(16)(r.a,o.a,null,null,"49fe8924");e.default=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(17),o=(i=r)&&i.__esModule?i:{default:i},a=n(18),s=new Set;e.default={data:function(){return{transferData:void 0,isDraggingOver:!1}},props:{tag:{type:String,default:"div"}},computed:{events:function(){return a.events},scopedData:function(){return this.isDraggingOver&&this.transferData}},methods:{emitEvent:function(t,e){this.transferData=o.default.data,this.$emit(t,this.transferData,e),t===a.events.dragenter&&(s.size||e.target===this.$el)&&s.add(e.target),t===a.events.dragleave&&s.delete(e.target),t===a.events.drop&&s.clear(),this.isDraggingOver=Boolean(s.size)}}}},function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)(t.tag,{tag:"component",on:{dragenter:function(e){t.emitEvent(t.events.dragenter,e)},dragleave:function(e){t.emitEvent(t.events.dragleave,e)},dragover:function(e){e.preventDefault(),t.emitEvent(t.events.dragover,e)},drop:function(e){e.preventDefault(),t.emitEvent(t.events.drop,e)}}},[t._t("default",null,{transferData:t.scopedData})],2)},staticRenderFns:[]};e.a=i}])},5196:function(t){"undefined"!=typeof self&&self,t.exports=function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=1)}([function(t,e,n){"use strict";var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},r=void 0;e.a={props:{value:{default:function(){return{}}},index:0,dragDirection:null,replaceDirection:{default:function(){return"vertical"}}},data:function(){return{preventClick:!1,moveLockCount:5,scrollHeight:0,overlapping:!1,reversing:!1,dragging:!1,newIndex:null,position:{top:0,left:0,offsetX:0,offsetY:0},dragData:{startX:0,startY:0,pageX:0,pageY:0}}},computed:{marginStyle:function(){var t=this.dragging,e=this.replaceDirection,n=this.value,i=this.index,r=n.activeInstance,o=n.currentIndex,a=n.width,s=n.height,l=0==i&&i==o||0==o&&1==i&&0==r.index,c=i==o-1;return t?null:{horizontal:{marginLeft:l?a+"px":null,marginRight:c?a+"px":null},vertical:{marginTop:l?s+"px":null,marginBottom:c?s+"px":null}}[e]},rootStyle:function(){var t=this.dragging,e=this.position,n={position:t?"absolute":null,top:e.top+e.offsetY+"px",left:e.left+e.offsetX+"px"};return t?n:{}}},watch:{value:function(t){var e=this.replaceDirection,n=this.index,o=this.$el,a=t.activeInstance,s=t.currentIndex,l=t.status;if("moving"==l&&this!==a){var c=this.getPosition(),u=this.judgeOverlap(t,c,e);if(u){var d="a"==u?n+1:n;d==a.index+1&&d--;var h=(new Date).getTime()-(r||0);s!=d&&h>10&&(r=(new Date).getTime(),this.updateValue(i({},t,{currentIndex:d})))}}if("release"==l){var p=a.position;if(a.reversing=!0,s==n+1){var f=o.offsetTop,m=o.offsetLeft,v=o.offsetWidth,g=o.offsetHeight,b="horizontal"==e?v:0,y=f+("vertical"==e?g:0)-p.top,_=m+b-p.left;p.offsetY==y&&p.offsetX==_&&a.onTransEnd(),p.offsetY=y,p.offsetX=_}else 0==s&&0==this.index&&(p.offsetY==-p.top&&p.offsetX==-p.left&&a.onTransEnd(),p.offsetY=-p.top,p.offsetX=-p.left)}if(a===this){var w=this.position,x=this.$el.offsetParent,C=x.scrollTop,S=x.offsetHeight;t.top-C<20?(x.scrollTop-=5,w.top+=x.scrollTop-C):t.bottom-C>S-20&&(x.scrollTop+=5,w.top+=x.scrollTop-C)}}},methods:{onClick:function(t){this.preventClick||this.$emit("real-click",t)},onTransEnd:function(){if(this.reversing){this.reversing=!1;var t=this.getDraggingIndex(),e=t.oldIndex,n=t.newIndex;e!==n&&this.$emit("sortend",{oldIndex:e,newIndex:n}),this.newIndex=null,this.updateValue({}),this.dragging=!1}},updateValue:function(t){this.$emit("input",t)},dragHandler:function(){var t=this.getPosition(),e=t.top,n=t.left;this.dragging=!0,this.position.top=e,this.position.left=n,this.position.offsetX=0,this.position.offsetY=0,this.scrollHeight=this.$el.offsetParent.scrollHeight,this.updateValue(i({status:"start",activeInstance:this,currentIndex:this.index},this.getPosition()))},moveHandler:function(t){var e=t.offsetX,n=t.offsetY;this.moveLockCount--;var r=this.dragDirection,o=this.position,a=this.scrollHeight,s=this.value,l=this.getPosition().height;if(o.offsetX=r&&"horizontal"!=r?0:e,o.offsetY=r&&"vertical"!=r?0:n,o.top+o.offsetY>a-l?o.offsetY=a-l-o.top+1:o.top+o.offsetY<0&&(o.offsetY=-o.top),this.moveLockCount<0){this.updateValue(i({},s,{status:"moving",activeInstance:this},this.getPosition()));var c=this.getDraggingIndex(),u=c.oldIndex,d=c.newIndex;this.newIndex!==d&&(this.newIndex=d,this.$emit("sort",{oldIndex:u,newIndex:d}))}},releaseHandler:function(){this.moveLockCount=5,this.$emit("input",i({},this.value,{status:"release",activeInstance:this},this.getPosition()))},startFn:function(t){var e="touchstart"===(t||{}).type;this.preventClick=!1;var n=this.dragData,i=t.touches&&t.touches[0]||t;n.startX=i.pageX,n.startY=i.pageY,n.pageX=i.pageX,n.pageY=i.pageY,window.addEventListener(e?"touchmove":"mousemove",this.moveFn,{passive:!1}),window.addEventListener(e?"touchend":"mouseup",this.releaseFn)},moveFn:function(t){t.preventDefault();var e=t.touches&&t.touches[0]||t,n=this.dragData;this.preventClick=!0,n.pageX=e.pageX,n.pageY=e.pageY,n.moved?this.moveHandler({offsetX:e.pageX-n.startX,offsetY:e.pageY-n.startY}):(this.dragHandler(t),n.moved=!0)},releaseFn:function(t){var e="touchend"===(t||{}).type;window.removeEventListener(e?"touchmove":"mousemove",this.moveFn),window.removeEventListener(e?"touchend":"mouseup",this.releaseFn);var n=this.dragData;n.moved&&this.releaseHandler(),n.moved=!1},getDraggingIndex:function(){var t=this.value.currentIndex,e=this.index;return{oldIndex:e,newIndex:t-(t<=e?0:1)}},getPosition:function(){var t=this.$el,e=t.offsetTop,n=t.offsetLeft,i=t.offsetWidth,r=t.offsetHeight;return{top:e,right:n+i,bottom:e+r,left:n,height:r,width:i}},judgeOverlap:function(t,e,n){function i(t,e){return t+(e-t)/2}var r=i(t.left,t.right),o=i(t.top,t.bottom),a=i(e.left,e.right),s=i(e.top,e.bottom);if("horizontal"==n&&o>e.top&&o<e.bottom){if(r>=e.left&&r<=a)return"b";if(r>a&&r<=e.right)return"a"}else if("vertical"==n&&r>e.left&&r<e.right){if(o>=e.top&&o<=s)return"b";if(o>s&&o<=e.bottom)return"a"}return!1}}}},function(t,e,n){"use strict";function i(t){n(2)}Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(8),a=i,s=n(7)(r.a,o.a,!1,a,"data-v-4561ef1b",null);e.default=s.exports},function(t,e,n){var i=n(3);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),n(5)("3d5f5193",i,!0,{})},function(t,e,n){(t.exports=n(4)(!1)).push([t.i,".drag-sortable[data-v-4561ef1b]{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.drag-sortable.dragging[data-v-4561ef1b]{z-index:1}.drag-sortable.anim[data-v-4561ef1b]{transition:margin .2s linear}.drag-sortable.reversing[data-v-4561ef1b]{transition:top .2s linear,left .2s linear}",""])},function(t,e){function n(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=i(r);return[n].concat(r.sources.map((function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"}))).concat([o]).join("\n")}return[n].join("\n")}function i(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=n(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(i[o]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&i[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e,n){function i(t){for(var e=0;e<t.length;e++){var n=t[e],i=u[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(o(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var a=[];for(r=0;r<n.parts.length;r++)a.push(o(n.parts[r]));u[n.id]={id:n.id,refs:1,parts:a}}}}function r(){var t=document.createElement("style");return t.type="text/css",d.appendChild(t),t}function o(t){var e,n,i=document.querySelector("style["+g+'~="'+t.id+'"]');if(i){if(f)return m;i.parentNode.removeChild(i)}if(b){var o=p++;i=h||(h=r()),e=a.bind(null,i,o,!1),n=a.bind(null,i,o,!0)}else i=r(),e=s.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}function a(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=y(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function s(t,e){var n=e.css,i=e.media,r=e.sourceMap;if(i&&t.setAttribute("media",i),v.ssrId&&t.setAttribute(g,e.id),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c=n(6),u={},d=l&&(document.head||document.getElementsByTagName("head")[0]),h=null,p=0,f=!1,m=function(){},v=null,g="data-vue-ssr-id",b="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,n,r){f=n,v=r||{};var o=c(t,e);return i(o),function(e){for(var n=[],r=0;r<o.length;r++){var a=o[r];(s=u[a.id]).refs--,n.push(s)}for(e?i(o=c(t,e)):o=[],r=0;r<n.length;r++){var s;if(0===(s=n[r]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete u[s.id]}}}};var y=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t,e){for(var n=[],i={},r=0;r<e.length;r++){var o=e[r],a=o[0],s={id:t+":"+r,css:o[1],media:o[2],sourceMap:o[3]};i[a]?i[a].parts.push(s):n.push(i[a]={id:a,parts:[s]})}return n}},function(t,e){t.exports=function(t,e,n,i,r,o){var a,s=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(a=t,s=t.default);var c,u="function"==typeof s?s.options:s;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),r&&(u._scopeId=r),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=c):i&&(c=i),c){var d=u.functional,h=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(t,e){return c.call(e),h(t,e)}):u.beforeCreate=h?[].concat(h,c):[c]}return{esModule:a,exports:s,options:u}}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"drag-sortable",class:{dragging:t.dragging,reversing:t.reversing,anim:"moving"==t.value.status},style:[t.marginStyle,t.rootStyle],on:{mousedown:t.startFn,touchstart:t.startFn,click:t.onClick,transitionend:t.onTransEnd}},[t._t("default")],2)},r={render:i,staticRenderFns:[]};e.a=r}])},8722:(t,e,n)=>{"use strict";n.d(e,{L:()=>s});var i=function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},r={kebab:/-(\w)/g,styleProp:/:(.*)/,styleList:/;(?![^(]*\))/g};function o(t,e){return e?e.toUpperCase():""}function a(t){for(var e,n={},i=0,a=t.split(r.styleList);i<a.length;i++){var s=a[i].split(r.styleProp),l=s[0],c=s[1];(l=l.trim())&&("string"==typeof c&&(c=c.trim()),n[(e=l,e.replace(r.kebab,o))]=c)}return n}function s(){for(var t,e,n={},r=arguments.length;r--;)for(var o=0,s=Object.keys(arguments[r]);o<s.length;o++)switch(t=s[o]){case"class":case"style":case"directives":if(Array.isArray(n[t])||(n[t]=[]),"style"===t){var l=void 0;l=Array.isArray(arguments[r].style)?arguments[r].style:[arguments[r].style];for(var c=0;c<l.length;c++){var u=l[c];"string"==typeof u&&(l[c]=a(u))}arguments[r].style=l}n[t]=n[t].concat(arguments[r][t]);break;case"staticClass":if(!arguments[r][t])break;void 0===n[t]&&(n[t]=""),n[t]&&(n[t]+=" "),n[t]+=arguments[r][t].trim();break;case"on":case"nativeOn":n[t]||(n[t]={});for(var d=0,h=Object.keys(arguments[r][t]||{});d<h.length;d++)e=h[d],n[t][e]?n[t][e]=[].concat(n[t][e],arguments[r][t][e]):n[t][e]=arguments[r][t][e];break;case"attrs":case"props":case"domProps":case"scopedSlots":case"staticStyle":case"hook":case"transition":n[t]||(n[t]={}),n[t]=i({},arguments[r][t],n[t]);break;default:n[t]||(n[t]=arguments[r][t])}return n}},1722:function(t,e,n){t.exports=function(t,e,n,i,r){"use strict";r=r&&r.hasOwnProperty("default")?r.default:r;var o={props:{images:{type:Array,default:function(){return[]}},options:{type:Object,default:function(){return{}}},carousel:{type:Boolean,default:!1},index:{type:Number},id:{type:String,default:"blueimp-gallery"}},data:function(){return{instance:null}},watch:{index:function(t){this.carousel||(null!==t?this.open(t):(this.instance&&this.instance.close(),this.$emit("close")))}},mounted:function(){this.carousel&&this.open()},destroyed:function(){null!==this.instance&&(this.instance.destroyEventListeners(),this.instance.close(),this.instance=null)},methods:{open:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=void 0!==r.Gallery?r.Gallery:r,i=Object.assign({toggleControlsOnReturn:!1,toggleControlsOnSlideClick:!1,closeOnSlideClick:!1,carousel:this.carousel,container:"#".concat(this.id),index:e,onopen:function(){return t.$emit("onopen")},onopened:function(){return t.$emit("onopened")},onslide:this.onSlideCustom,onslideend:function(e,n){return t.$emit("onslideend",{index:e,slide:n})},onslidecomplete:function(e,n){return t.$emit("onslidecomplete",{index:e,slide:n})},onclose:function(){return t.$emit("close")},onclosed:function(){return t.$emit("onclosed")}},this.options);this.carousel&&(i.container=this.$el),this.instance=n(this.images,i)},onSlideCustom:function(t,e){this.$emit("onslide",{index:t,slide:e});var n=this.images[t];if(void 0!==n){var i=n.description,r=this.instance.container.find(".description");i&&(r.empty(),r[0].appendChild(document.createTextNode(i)))}}}};function a(t,e,n,i,r,o,a,s,l,c){"boolean"!=typeof a&&(l=s,s=a,a=!1);var u,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=u):e&&(u=a?function(){e.call(this,c(this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),u)if(d.functional){var h=d.render;d.render=function(t,e){return u.call(e),h(t,e)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,u):[u]}return n}var s=a,l="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function c(t){return function(t,e){return h(t,e)}}var u=document.head||document.getElementsByTagName("head")[0],d={};function h(t,e){var n=l?e.media||"default":t,i=d[n]||(d[n]={ids:new Set,styles:[]});if(!i.ids.has(t)){i.ids.add(t);var r=e.source;if(e.map&&(r+="\n/*# sourceURL="+e.map.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),i.element||(i.element=document.createElement("style"),i.element.type="text/css",e.media&&i.element.setAttribute("media",e.media),u.appendChild(i.element)),"styleSheet"in i.element)i.styles.push(r),i.element.styleSheet.cssText=i.styles.filter(Boolean).join("\n");else{var o=i.ids.size-1,a=document.createTextNode(r),s=i.element.childNodes;s[o]&&i.element.removeChild(s[o]),s.length?i.element.insertBefore(a,s[o]):i.element.appendChild(a)}}}const p=void 0,f=void 0;return s({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"blueimp-gallery blueimp-gallery-controls",class:{"blueimp-gallery-carousel":t.carousel},attrs:{id:t.id}},[n("div",{staticClass:"slides"}),t._v(" "),n("h3",{staticClass:"title"}),t._v(" "),n("p",{staticClass:"description"}),t._v(" "),n("a",{staticClass:"prev"},[t._t("prev",[t._v("‹")])],2),t._v(" "),n("a",{staticClass:"next"},[t._t("next",[t._v("›")])],2),t._v(" "),t.carousel?t._e():n("a",{staticClass:"close"},[t._t("close",[t._v("×")])],2),t._v(" "),t.carousel?t._e():n("ol",{staticClass:"indicator"}),t._v(" "),t.carousel?n("a",{staticClass:"play-pause"}):t._e()])},staticRenderFns:[]},(function(t){t&&t("data-v-6d2033ba_0",{source:".blueimp-gallery>.description{position:absolute;top:30px;left:15px;color:#fff;display:none}.blueimp-gallery-controls>.description{display:block}",map:void 0,media:void 0})}),o,p,!1,f,c,void 0)}(n(7327),n(2899),n(9855),n(7221),n(8409))},2865:(t,e,n)=>{"use strict";n.d(e,{j:()=>l});const i={name:"IntegerPlusminus",props:{value:{default:0,type:Number},min:{default:0,type:Number},max:{default:void 0,type:Number},step:{default:1,type:Number},stepIncrement:{default:0,type:Number},stepDecrement:{default:0,type:Number},vertical:{default:!1,type:Boolean},incrementAriaLabel:{default:null,type:String},decrementAriaLabel:{default:null,type:String},spinButtonAriaLabel:{default:null,type:String},disabled:{default:!1,type:Boolean},formName:{default:"integerPlusMinus",type:String}},data:()=>({intValue:0}),computed:{canIncrement(){return!this.disabled&&(void 0===this.max||this.intValue+this.incrementValue<=this.max)},canDecrement(){return!this.disabled&&this.intValue-this.decrementValue>=this.min},incrementValue(){return this.stepIncrement>0?this.stepIncrement:this.step},decrementValue(){return this.stepDecrement>0?this.stepDecrement:this.step}},mounted(){window.addEventListener("keydown",this.keyUp)},methods:{keyUp(t){this.isSpinButtonFocused()&&(33!==t.keyCode&&38!==t.keyCode||(this.increment(),t.preventDefault()),34!==t.keyCode&&40!==t.keyCode||(this.decrement(),t.preventDefault()),36===t.keyCode&&(this.setToMin(),t.preventDefault()),void 0!==this.max&&35===t.keyCode&&(this.setToMax(),t.preventDefault()))},isSpinButtonFocused(){return document.activeElement===this.$refs.spinbutton},getBtnClass(t){let e="int-pm-";return t&&!this.vertical||!t&&this.vertical?(e+="decrement",this.canDecrement||(e+=" disabled")):(e+="increment",this.canIncrement||(e+=" disabled")),e},setToMin(){this.disabled||(this.intValue=this.min,this.$emit("input",this.intValue))},setToMax(){this.disabled||(this.intValue=this.max,this.$emit("input",this.intValue))},increment(){this.canIncrement&&(this.intValue=this.intValue+this.incrementValue,this.$emit("ipm-increment",this.intValue),this.$emit("input",this.intValue))},decrement(){this.canDecrement&&(this.intValue=this.intValue-this.decrementValue,this.$emit("ipm-decrement",this.intValue),this.$emit("input",this.intValue))}},watch:{value:{handler:function(t,e){this.intValue=t}}},created(){this.intValue=this.value,this.step<1&&(this.step=1),this.stepIncrement<0&&(this.stepIncrement=0),this.stepDecrement<0&&(this.stepDecrement=0),this.max<this.min&&(this.max=void 0)}};var r=n(5072),o=n.n(r),a=n(2840),s={insert:"head",singleton:!1};o()(a.A,s);a.A.locals;const l=(0,n(4486).A)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"int-pm",class:{"int-pm-vertical":t.vertical}},[n("button",{staticClass:"int-pm-btn",class:t.getBtnClass(!0),attrs:{"aria-label":t.decrementAriaLabel,disabled:t.disabled},on:{click:function(e){t.vertical?t.increment():t.decrement()}}},[t._t(t.vertical?"increment":"decrement",(function(){return[t._v(t._s(t.vertical?"+":"-"))]}))],2),t._v(" "),n("div",{ref:"spinbutton",staticClass:"int-pm-value",attrs:{role:"spinbutton",tabindex:"0","aria-valuenow":t.value,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-label":t.spinButtonAriaLabel}},[t._t("default",(function(){return[t._v(t._s(t.intValue))]}))],2),t._v(" "),n("input",{attrs:{type:"hidden",name:t.formName},domProps:{value:t.intValue}}),t._v(" "),n("button",{staticClass:"int-pm-btn",class:t.getBtnClass(!1),attrs:{"aria-label":t.incrementAriaLabel,disabled:t.disabled},on:{click:function(e){t.vertical?t.decrement():t.increment()}}},[t._t(t.vertical?"decrement":"increment",(function(){return[t._v(t._s(t.vertical?"-":"+"))]}))],2)])}),[],!1,null,"aecbc5e0",null).exports},2616:function(t){var e;e=function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=2)}([function(t,e,n){n(8);var i=n(6)(n(1),n(7),"data-v-25adc6c0",null);t.exports=i.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),r="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},o="#75c791",a="#fff";e.default={name:"ToggleButton",props:{value:{type:Boolean,default:!1},name:{type:String},disabled:{type:Boolean,default:!1},tag:{type:String},sync:{type:Boolean,default:!1},speed:{type:Number,default:300},color:{type:[String,Object],validator:function(t){return n.i(i.a)(t)||n.i(i.b)(t,"checked")||n.i(i.b)(t,"unchecked")||n.i(i.b)(t,"disabled")}},switchColor:{type:[String,Object],validator:function(t){return n.i(i.a)(t)||n.i(i.b)(t,"checked")||n.i(i.b)(t,"unchecked")}},cssColors:{type:Boolean,default:!1},labels:{type:[Boolean,Object],default:!1,validator:function(t){return"object"===(void 0===t?"undefined":r(t))?t.checked||t.unchecked:"boolean"==typeof t}},height:{type:Number,default:22},width:{type:Number,default:50},margin:{type:Number,default:3},fontSize:{type:Number}},computed:{className:function(){return["vue-js-switch",{toggled:this.toggled,disabled:this.disabled}]},coreStyle:function(){return{width:n.i(i.c)(this.width),height:n.i(i.c)(this.height),backgroundColor:this.cssColors?null:this.disabled?this.colorDisabled:this.colorCurrent,borderRadius:n.i(i.c)(Math.round(this.height/2))}},buttonRadius:function(){return this.height-2*this.margin},distance:function(){return n.i(i.c)(this.width-this.height+this.margin)},buttonStyle:function(){var t="transform "+this.speed+"ms",e=n.i(i.c)(this.margin),r=this.toggled?n.i(i.d)(this.distance,e):n.i(i.d)(e,e),o=this.switchColor?this.switchColorCurrent:null;return{width:n.i(i.c)(this.buttonRadius),height:n.i(i.c)(this.buttonRadius),transition:t,transform:r,background:o}},labelStyle:function(){return{lineHeight:n.i(i.c)(this.height),fontSize:this.fontSize?n.i(i.c)(this.fontSize):null}},colorChecked:function(){var t=this.color;return n.i(i.e)(t)?n.i(i.f)(t,"checked",o):t||o},colorUnchecked:function(){return n.i(i.f)(this.color,"unchecked","#bfcbd9")},colorDisabled:function(){return n.i(i.f)(this.color,"disabled",this.colorCurrent)},colorCurrent:function(){return this.toggled?this.colorChecked:this.colorUnchecked},labelChecked:function(){return n.i(i.f)(this.labels,"checked","on")},labelUnchecked:function(){return n.i(i.f)(this.labels,"unchecked","off")},switchColorChecked:function(){return n.i(i.f)(this.switchColor,"checked",a)},switchColorUnchecked:function(){return n.i(i.f)(this.switchColor,"unchecked",a)},switchColorCurrent:function(){return this.switchColor,n.i(i.e)(this.switchColor)?this.toggled?this.switchColorChecked:this.switchColorUnchecked:this.switchColor||a}},watch:{value:function(t){this.sync&&(this.toggled=!!t)}},data:function(){return{toggled:!!this.value}},methods:{toggle:function(t){var e=!this.toggled;this.sync||(this.toggled=e),this.$emit("input",e),this.$emit("change",{value:e,tag:this.tag,srcEvent:t})}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n.n(i);n.d(e,"ToggleButton",(function(){return r.a}));var o=!1;e.default={install:function(t){o||(t.component("ToggleButton",r.a),o=!0)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"e",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"f",(function(){return s})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return c}));var i="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},r=function(t){return"string"==typeof t},o=function(t){return"object"===(void 0===t?"undefined":i(t))},a=function(t,e){return o(t)&&t.hasOwnProperty(e)},s=function(t,e,n){return a(t,e)?t[e]:n},l=function(t){return t+"px"},c=function(t,e){return"translate3d("+t+", "+e+", "+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0px")+")"}},function(t,e,n){(t.exports=n(5)()).push([t.i,".vue-js-switch[data-v-25adc6c0]{display:inline-block;position:relative;vertical-align:middle;user-select:none;font-size:10px;cursor:pointer}.vue-js-switch .v-switch-input[data-v-25adc6c0]{opacity:0;position:absolute;width:1px;height:1px}.vue-js-switch .v-switch-label[data-v-25adc6c0]{position:absolute;top:0;font-weight:600;color:#fff;z-index:1}.vue-js-switch .v-switch-label.v-left[data-v-25adc6c0]{left:10px}.vue-js-switch .v-switch-label.v-right[data-v-25adc6c0]{right:10px}.vue-js-switch .v-switch-core[data-v-25adc6c0]{display:block;position:relative;box-sizing:border-box;outline:0;margin:0;transition:border-color .3s,background-color .3s;user-select:none}.vue-js-switch .v-switch-core .v-switch-button[data-v-25adc6c0]{display:block;position:absolute;overflow:hidden;top:0;left:0;border-radius:100%;background-color:#fff;z-index:2}.vue-js-switch.disabled[data-v-25adc6c0]{pointer-events:none;opacity:.6}",""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var n=this[e];n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1])}return t.join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(i[o]=!0)}for(r=0;r<e.length;r++){var a=e[r];"number"==typeof a[0]&&i[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(t,e){t.exports=function(t,e,n,i){var r,o=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(r=t,o=t.default);var s="function"==typeof o?o.options:o;if(e&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns),n&&(s._scopeId=n),i){var l=Object.create(s.computed||null);Object.keys(i).forEach((function(t){var e=i[t];l[t]=function(){return e}})),s.computed=l}return{esModule:r,exports:o,options:s}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{class:t.className},[n("input",{staticClass:"v-switch-input",attrs:{type:"checkbox",name:t.name,disabled:t.disabled},domProps:{checked:t.value},on:{change:function(e){return e.stopPropagation(),t.toggle(e)}}}),t._v(" "),n("div",{staticClass:"v-switch-core",style:t.coreStyle},[n("div",{staticClass:"v-switch-button",style:t.buttonStyle})]),t._v(" "),t.labels?[t.toggled?n("span",{staticClass:"v-switch-label v-left",style:t.labelStyle},[t._t("checked",[[t._v(t._s(t.labelChecked))]])],2):n("span",{staticClass:"v-switch-label v-right",style:t.labelStyle},[t._t("unchecked",[[t._v(t._s(t.labelUnchecked))]])],2)]:t._e()],2)},staticRenderFns:[]}},function(t,e,n){var i=n(4);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),n(9)("2283861f",i,!0)},function(t,e,n){var i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var r=n(10),o={},a=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},d="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(t){for(var e=0;e<t.length;e++){var n=t[e],i=o[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(f(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var a=[];for(r=0;r<n.parts.length;r++)a.push(f(n.parts[r]));o[n.id]={id:n.id,refs:1,parts:a}}}}function p(){var t=document.createElement("style");return t.type="text/css",a.appendChild(t),t}function f(t){var e,n,i=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(i){if(c)return u;i.parentNode.removeChild(i)}if(d){var r=l++;i=s||(s=p()),e=g.bind(null,i,r,!1),n=g.bind(null,i,r,!0)}else i=p(),e=b.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}t.exports=function(t,e,n){c=n;var i=r(t,e);return h(i),function(e){for(var n=[],a=0;a<i.length;a++){var s=i[a];(l=o[s.id]).refs--,n.push(l)}for(e?h(i=r(t,e)):i=[],a=0;a<n.length;a++){var l;if(0===(l=n[a]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete o[l.id]}}}};var m,v=(m=[],function(t,e){return m[t]=e,m.filter(Boolean).join("\n")});function g(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=v(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function b(t,e){var n=e.css,i=e.media,r=e.sourceMap;if(i&&t.setAttribute("media",i),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},function(t,e){t.exports=function(t,e){for(var n=[],i={},r=0;r<e.length;r++){var o=e[r],a=o[0],s={id:t+":"+r,css:o[1],media:o[2],sourceMap:o[3]};i[a]?i[a].parts.push(s):n.push(i[a]={id:a,parts:[s]})}return n}}])},t.exports=e()},7340:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});const i={subpremise:"short_name",street_number:"short_name",route:"long_name",locality:"long_name",administrative_area_level_1:"short_name",administrative_area_level_2:"long_name",country:"long_name",postal_code:"short_name"},r=["locality","administrative_area_level_3"],o=["locality","sublocality","postal_code","country","administrative_area_level_1","administrative_area_level_2"],a=["address_components","adr_address","alt_id","formatted_address","geometry","icon","id","name","permanently_closed","photo","place_id","scope","type","url","utc_offset","vicinity"],s={name:"VueGoogleAutocomplete",props:{id:{type:String,required:!0},classname:String,placeholder:{type:String,default:"Start typing"},disabled:{type:Boolean,default:!1},types:{type:String,default:"address"},fields:{type:Array,default:function(){return a}},country:{type:[String,Array],default:null},enableGeolocation:{type:Boolean,default:!1},geolocationOptions:{type:Object,default:null}},data:()=>({autocomplete:null,autocompleteText:"",geolocation:{geocoder:null,loc:null,position:null}}),watch:{autocompleteText:function(t,e){this.$emit("inputChange",{newVal:t,oldVal:e},this.id)},country:function(t,e){this.autocomplete.setComponentRestrictions({country:null===this.country?[]:this.country})}},mounted:function(){const t={};this.types&&(t.types=[this.types]),this.country&&(t.componentRestrictions={country:this.country}),this.autocomplete=new google.maps.places.Autocomplete(document.getElementById(this.id),t),this.autocomplete.setFields(this.fields),this.autocomplete.addListener("place_changed",this.onPlaceChanged)},methods:{onPlaceChanged(){let t=this.autocomplete.getPlace();t.geometry?void 0!==t.address_components&&(this.$emit("placechanged",this.formatResult(t),t,this.id),this.autocompleteText=document.getElementById(this.id).value,this.onChange()):this.$emit("no-results-found",t,this.id)},onFocus(){this.biasAutocompleteLocation(),this.$emit("focus")},onBlur(){this.$emit("blur")},onChange(){this.$emit("change",this.autocompleteText)},onKeyPress(t){this.$emit("keypress",t)},onKeyUp(t){this.$emit("keyup",t)},clear(){this.autocompleteText=""},focus(){this.$refs.autocomplete.focus()},blur(){this.$refs.autocomplete.blur()},update(t){this.autocompleteText=t},updateCoordinates(t){(t||t.lat||t.lng)&&(this.geolocation.geocoder||(this.geolocation.geocoder=new google.maps.Geocoder),this.geolocation.geocoder.geocode({location:t},((t,e)=>{"OK"===e?(t=this.filterGeocodeResultTypes(t))[0]?(this.$emit("placechanged",this.formatResult(t[0]),t[0],this.id),this.update(t[0].formatted_address)):this.$emit("error","no result for provided coordinates"):this.$emit("error","error getting address from coords")})))},geolocate(){this.updateGeolocation(((t,e)=>{this.updateCoordinates(t)}))},updateGeolocation(t=null){if(navigator.geolocation){let e={};this.geolocationOptions&&Object.assign(e,this.geolocationOptions),navigator.geolocation.getCurrentPosition((e=>{let n={lat:e.coords.latitude,lng:e.coords.longitude};this.geolocation.loc=n,this.geolocation.position=e,t&&t(n,e)}),(t=>{this.$emit("error","Cannot get Coordinates from navigator",t)}),e)}},biasAutocompleteLocation(){this.enableGeolocation&&this.updateGeolocation(((t,e)=>{let n=new google.maps.Circle({center:t,radius:e.coords.accuracy});this.autocomplete.setBounds(n.getBounds())}))},formatResult(t){let e={};for(let n=0;n<t.address_components.length;n++){let r=t.address_components[n].types[0];if(i[r]){let o=t.address_components[n][i[r]];e[r]=o}}return e.latitude=t.geometry.location.lat(),e.longitude=t.geometry.location.lng(),e},filterGeocodeResultTypes(t){if(!t||!this.types)return t;let e=[],n=[this.types];n.includes("(cities)")&&(n=n.concat(r)),n.includes("(regions)")&&(n=n.concat(o));for(let i of t)for(let t of i.types)if(n.includes(t)){e.push(i);break}return e}}};const l=(0,n(4486).A)(s,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("input",{directives:[{name:"model",rawName:"v-model",value:t.autocompleteText,expression:"autocompleteText"}],ref:"autocomplete",class:t.classname,attrs:{type:"text",id:t.id,placeholder:t.placeholder,disabled:t.disabled},domProps:{value:t.autocompleteText},on:{focus:function(e){return t.onFocus()},blur:function(e){return t.onBlur()},change:t.onChange,keypress:t.onKeyPress,keyup:t.onKeyUp,input:function(e){e.target.composing||(t.autocompleteText=e.target.value)}}})}),[],!1,null,null,null).exports},9142:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(8858);const r={name:"add-client",components:{User:n(3853).A},mixins:[i.A],props:["agents","masterClients"],data:function(){return{form:{name:null,email:null,agent_id:null,master_client_id:null,role:"client"},roles:[{id:"client",label:"Standard"},{id:"master-client",label:"Master Client"}]}},computed:{agentOptions:function(){return this.agents.map((function(t){return{id:t.id,label:"".concat(t.id,". ").concat(t.name," (").concat(t.email,")")}}))},masterClientOptions:function(){return this.masterClients.map((function(t){return{id:t.id,label:t.name}}))}},methods:{create:function(){var t=this;this.fetching=!0,axios.post("/client-manager",this.form).then((function(e){t.$store.commit("setUsers",e.data.data),t.form.name=null,t.form.email=null,t.form.agent_id=null,t.successNotice("The client was created successfully."),t.$bvModal.hide("client-modal")})).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))},submitForm:function(){this.$refs.submit.click()},showModal:function(){this.$bvModal.show("client-modal")}},mounted:function(){}};const o=(0,n(4486).A)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("button",{staticClass:"btn btn-primary",on:{click:t.showModal}},[t._v("Add New Account")]),t._v(" "),n("b-modal",{attrs:{id:"client-modal"},scopedSlots:t._u([{key:"modal-title",fn:function(){return[n("div",{staticClass:"text-center"},[n("h4",[t._v("Add New Account")])])]},proxy:!0},{key:"modal-footer",fn:function(){return[n("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:t.fetching},on:{click:t.submitForm}},[t._v("Create")])]},proxy:!0}])},[t._v(" "),n("form",{ref:"form",on:{submit:function(e){return e.preventDefault(),t.create.apply(null,arguments)}}},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"modal-account-type"}},[t._v("Account type")]),t._v(" "),n("treeselect",{attrs:{id:"modal-account-type",options:t.roles,placeholder:"Select Account type",clearable:!1},model:{value:t.form.role,callback:function(e){t.$set(t.form,"role",e)},expression:"form.role"}})],1),t._v(" "),"client"===t.form.role&&t.masterClients&&t.masterClients.length?n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"modal-master-account"}},[t._v("Add to Master Client account")]),t._v(" "),n("treeselect",{attrs:{id:"modal-master-account",options:t.masterClientOptions,placeholder:"Select Master Client",clearable:!0},model:{value:t.form.master_client_id,callback:function(e){t.$set(t.form,"master_client_id",e)},expression:"form.master_client_id"}})],1):t._e(),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"modal-name"}},[t._v("Name")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.name,expression:"form.name"}],staticClass:"form-control",attrs:{type:"text",id:"modal-name"},domProps:{value:t.form.name},on:{input:function(e){e.target.composing||t.$set(t.form,"name",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"modal-email"}},[t._v("Email")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.email,expression:"form.email"}],staticClass:"form-control",attrs:{type:"email",id:"modal-email"},domProps:{value:t.form.email},on:{input:function(e){e.target.composing||t.$set(t.form,"email",e.target.value)}}})]),t._v(" "),n("hr"),t._v(" "),"client"===t.form.role?[n("div",{staticClass:"mb-2"},[t._v("Create a full Celect account from an existing agent account")]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"modal-agent"}},[t._v("Agent")]),t._v(" "),n("treeselect",{attrs:{options:t.agentOptions,placeholder:"Select Agent",clearable:!0},model:{value:t.form.agent_id,callback:function(e){t.$set(t.form,"agent_id",e)},expression:"form.agent_id"}})],1)]:t._e(),t._v(" "),n("button",{ref:"submit",staticClass:"d-none"},[t._v("Submit")])],2)])],1)}),[],!1,null,null,null).exports},1190:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(3144);const r={name:"agent-features",props:{},mixins:[n(8858).A],data:function(){return{model:{monday_enabled:!1,xero_enabled:!1}}},computed:{features:function(){return i.A.all()}},methods:{update:function(t){var e,n,r,o=this;axios.post("/agent-manager/features",(e={},n=t,r=this.model[t],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e)).then((function(t){o.successNotice("Settings have been updated."),i.A.insert({data:t.data.data})}))},setFeatures:function(){var t=this;this.features&&this.features.forEach((function(e){t.model[e.feature]=+e.enabled}))}},mounted:function(){this.setFeatures()}};const o=(0,n(4486).A)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h4",[t._v("Features")]),t._v(" "),n("b-form-checkbox",{attrs:{size:"lg",value:"1","unchecked-value":"0",switch:""},on:{change:function(e){return t.update("monday_enabled")}},model:{value:t.model.monday_enabled,callback:function(e){t.$set(t.model,"monday_enabled",e)},expression:"model.monday_enabled"}},[t._v("\n    Monday Integration\n  ")]),t._v(" "),n("b-form-checkbox",{attrs:{size:"lg",value:"1","unchecked-value":"0",switch:""},on:{change:function(e){return t.update("xero_enabled")}},model:{value:t.model.xero_enabled,callback:function(e){t.$set(t.model,"xero_enabled",e)},expression:"model.xero_enabled"}},[t._v("\n    Xero Integration\n  ")])],1)}),[],!1,null,"34eacf65",null).exports},6703:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(8858);const r={name:"client-management",props:{user:{type:Object}},mixins:[i.A],data:function(){return{deleting:!1,password:null,new_password:null}},computed:{},methods:{changePassword:function(){var t=this;axios.post("/settings/set-password",{password:this.new_password}).then((function(e){t.successAlert("Password changed successfully.")})).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))},deleteAccount:function(){var t=this;this.fetching=!0,axios.post("/settings/delete",{password:this.password}).then((function(t){window.location.href=t.data.data.redirectTo})).catch((function(e){403===e.response.status?t.alertErrors("This action is unauthorized."):t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))},activate:function(){var t=this;this.fetching=!0,axios.post("/settings/activate").then((function(t){window.location.reload()})).finally((function(){t.fetching=!1}))},deactivate:function(){var t=this;this.fetching=!0,this.confirm((function(){axios.post("/settings/deactivate").then((function(t){window.location.reload()})).finally((function(){t.fetching=!1}))}),null,{text:"It will be impossible to log in to a deactivated account. The store will also be deactivated. This action can be reversed."})}},created:function(){}};const o=(0,n(4486).A)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.fetching?n("loader"):t._e(),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.fetching,expression:"!fetching"}]},[n("h4",{staticClass:"mb-4"},[t._v("Client Management")]),t._v(" "),n("div",{staticClass:"row mb-5"},[n("div",{staticClass:"col-md-6"},[n("h4",[t._v("Set Password")]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.new_password,expression:"new_password"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.new_password},on:{input:function(e){e.target.composing||(t.new_password=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"col-4"},[n("button",{staticClass:"button btn btn-primary",on:{click:t.changePassword}},[t._v("Set")])])])])]),t._v(" "),t.user.deactivated_at?n("div",{staticClass:"mb-2"},[n("div",{staticClass:"mb-2"},[t._v("Deactivated at: "+t._s(t.user.deactivated_at))]),t._v(" "),n("button",{staticClass:"btn btn-success",on:{click:t.activate}},[t._v("Activate Account")])]):n("div",{staticClass:"mb-2"},[n("button",{staticClass:"btn btn-danger",on:{click:t.deactivate}},[t._v("Deactivate Account")])]),t._v(" "),t.deleting?t._e():n("button",{staticClass:"btn btn-danger",on:{click:function(e){t.deleting=!0}}},[t._v("Delete Account")]),t._v(" "),t.deleting?n("div",{staticClass:"row"},[n("div",{staticClass:"col-4"},[n("div",{staticClass:"border p-4 rounded"},[n("h4",{staticClass:"mt-0"},[t._v("You won't be able to revert this!")]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"confirm-password"}},[t._v("Please enter your password")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],staticClass:"form-control",attrs:{type:"password",name:"confirm-password",id:"confirm-password"},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"d-flex justify-content-between"},[n("button",{staticClass:"btn btn-outline-secondary",on:{click:function(e){t.deleting=!1}}},[t._v("Cancel")]),t._v(" "),n("button",{staticClass:"btn btn-danger",on:{click:t.deleteAccount}},[t._v("Delete")])])])])]):t._e()])],1)}),[],!1,null,"1afd68f6",null).exports},2114:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(3029),r=n(8858);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const s={name:"features",props:{store:{type:Object}},mixins:[r.A],data:function(){return{model:{step_builder_enabled:!1,agent_manager_enabled:!1,customer_view_enabled:!1,drafts_enabled:!1,xero_enabled:!1,monday_enabled:!1,fb_pixel_enabled:!1}}},computed:{storeModel:function(){return i.A.query().first()}},methods:{update:function(t){var e=this;axios.put("/customer-view/feature",a({},t,this.model[t])).then((function(t){i.A.create({data:t.data.data}),e.successNotice("Settings have been updated.")}))}},created:function(){i.A.create({data:this.store}),this.model=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this.store)}};const l=(0,n(4486).A)(s,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h4",[t._v("Features")]),t._v(" "),n("b-form-checkbox",{attrs:{size:"lg",value:"1","unchecked-value":"0",switch:""},on:{change:function(e){return t.update("step_builder_enabled")}},model:{value:t.model.step_builder_enabled,callback:function(e){t.$set(t.model,"step_builder_enabled",e)},expression:"model.step_builder_enabled"}},[t._v("\n    Step Builder\n  ")]),t._v(" "),n("b-form-checkbox",{attrs:{size:"lg",value:"1","unchecked-value":"0",switch:""},on:{change:function(e){return t.update("agent_manager_enabled")}},model:{value:t.model.agent_manager_enabled,callback:function(e){t.$set(t.model,"agent_manager_enabled",e)},expression:"model.agent_manager_enabled"}},[t._v("\n    Agent Manager\n  ")]),t._v(" "),n("b-form-checkbox",{attrs:{size:"lg",value:"1","unchecked-value":"0",switch:""},on:{change:function(e){return t.update("customer_view_enabled")}},model:{value:t.model.customer_view_enabled,callback:function(e){t.$set(t.model,"customer_view_enabled",e)},expression:"model.customer_view_enabled"}},[t._v("\n    Customer View\n  ")]),t._v(" "),n("b-form-checkbox",{attrs:{size:"lg",value:"1","unchecked-value":"0",switch:""},on:{change:function(e){return t.update("drafts_enabled")}},model:{value:t.model.drafts_enabled,callback:function(e){t.$set(t.model,"drafts_enabled",e)},expression:"model.drafts_enabled"}},[t._v("\n    Drafts\n  ")]),t._v(" "),n("hr"),t._v(" "),n("b-form-checkbox",{attrs:{size:"lg",value:"1","unchecked-value":"0",switch:""},on:{change:function(e){return t.update("xero_enabled")}},model:{value:t.model.xero_enabled,callback:function(e){t.$set(t.model,"xero_enabled",e)},expression:"model.xero_enabled"}},[t._v("\n    Xero Integration\n  ")]),t._v(" "),n("b-form-checkbox",{attrs:{size:"lg",value:"1","unchecked-value":"0",switch:""},on:{change:function(e){return t.update("monday_enabled")}},model:{value:t.model.monday_enabled,callback:function(e){t.$set(t.model,"monday_enabled",e)},expression:"model.monday_enabled"}},[t._v("\n    Monday Integration\n  ")]),t._v(" "),n("b-form-checkbox",{attrs:{size:"lg",value:"1","unchecked-value":"0",switch:""},on:{change:function(e){return t.update("fb_pixel_enabled")}},model:{value:t.model.fb_pixel_enabled,callback:function(e){t.$set(t.model,"fb_pixel_enabled",e)},expression:"model.fb_pixel_enabled"}},[t._v("\n    Facebook Pixel Integration\n  ")]),t._v(" "),n("b-form-checkbox",{attrs:{size:"lg",value:"1","unchecked-value":"0",switch:""},on:{change:function(e){return t.update("ga_enabled")}},model:{value:t.model.ga_enabled,callback:function(e){t.$set(t.model,"ga_enabled",e)},expression:"model.ga_enabled"}},[t._v("\n    Google Analytics Integration\n  ")])],1)}),[],!1,null,"f8db3684",null).exports},1855:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});function i(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}const o={name:"forwards",props:{forwards:{}},mixins:[n(8858).A],data:function(){return{rows:[]}},methods:{deleteForward:function(t){var e=this;this.confirm((function(){axios.delete("/forwards/".concat(t.query_id)).then((function(n){var i=e.rows.findIndex((function(e){return e.query_id===t.query_id}));e.rows.splice(i,1),e.successNotice("Successfully deleted.")}))}))}},created:function(){this.rows=i(this.forwards)}};const a=(0,n(4486).A)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"block-wrapper"},[n("div",{staticClass:"block-header justify-content-between pr-3"},[n("a",{attrs:{"data-toggle":"collapse",href:"#forward-list","aria-expanded":"false","aria-controls":"forward-list"}},[t._v("\n      Forward queries (total: "+t._s(t.rows.length)+")\n      "),n("i",{staticClass:"fa fa-caret-down",attrs:{"aria-hidden":"true"}})]),t._v(" "),t.rows.length>0?n("span",[t._v("Last at "+t._s(t.rows[0].enquiry.sent_at))]):t._e()]),t._v(" "),n("div",{staticClass:"block-content table-responsive p-0 collapse",attrs:{id:"forward-list"}},[n("table",{staticClass:"table shadow-none"},[t._m(0),t._v(" "),n("tbody",t._l(t.rows,(function(e){return n("tr",[n("td",[t._v(t._s(e.query_id))]),t._v(" "),n("td",[t._v(t._s(e.enquiry.store.name))]),t._v(" "),n("td",[n("div",[t._v(t._s(e.enquiry.name))]),t._v(" "),n("div",[t._v(t._s(e.enquiry.email))])]),t._v(" "),n("td",[n("div",[t._v(t._s(e.name))]),t._v(" "),n("div",[t._v(t._s(e.email))])]),t._v(" "),n("td",[t._v(t._s(e.text))]),t._v(" "),n("td",[t._v(t._s(e.enquiry.sent_at))]),t._v(" "),n("td",{staticClass:"text-right"},[n("a",{attrs:{href:"javascript:;"},on:{click:function(n){return n.preventDefault(),t.deleteForward(e)}}},[n("i",{staticClass:"text-danger delete-btn"})])])])})),0)])])])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("thead",{staticClass:"table_head_snap"},[n("tr",[n("td",[t._v("Query ID")]),t._v(" "),n("td",[t._v("Store")]),t._v(" "),n("td",[t._v("From")]),t._v(" "),n("td",[t._v("To")]),t._v(" "),n("td",[t._v("Message")]),t._v(" "),n("td",[t._v("Sent At")]),t._v(" "),n("td",{staticClass:"text-right"})])])}],!1,null,"42fe3eca",null).exports},8833:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});function i(t){return i="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},i(t)}function r(){r=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,i){var r=e&&e.prototype instanceof p?e:p,o=Object.create(r.prototype),a=new E(i||[]);return o._invoke=function(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return O()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=d(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h={};function p(){}function f(){}function m(){}var v={};c(v,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==e&&n.call(b,a)&&(v=b);var y=m.prototype=p.prototype=Object.create(v);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function r(o,a,s,l){var c=d(t[o],t,a);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==i(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,s,l)}),(function(t){r("throw",t,s,l)})):e.resolve(h).then((function(t){u.value=t,s(u)}),(function(t){return r("throw",t,s,l)}))}l(c.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var i=d(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function T(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:O}}function O(){return{value:void 0,done:!0}}return f.prototype=m,c(y,"constructor",m),c(m,"constructor",f),f.displayName=c(m,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,l,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},_(w.prototype),c(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new w(u(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(y),c(y,l,"Generator"),c(y,a,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return a.type="throw",a.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function o(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function s(t){o(a,i,r,s,l,"next",t)}function l(t){o(a,i,r,s,l,"throw",t)}s(void 0)}))}}const s={name:"CheckEmailVerification",data:function(){return{}},created:function(){var t=this;return a(r().mark((function e(){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=setInterval(a(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$get("/check-email-verification");case 3:e.sent.data.is_verified&&(window.location.href="/dashboard"),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),clearInterval(n);case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))),3e3);case 1:case"end":return e.stop()}}),e)})))()}};const l=(0,n(4486).A)(s,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports},4307:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const i={name:"GetPriceInfo",props:{id:{type:String,required:!0},label:{type:String,required:!1}}};const r=(0,n(4486).A)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t._v("\n  "+t._s(t.label)+"\n  $\n  "),n("div",{staticStyle:{display:"inline-block",width:"30px","border-top":"1px solid black","margin-bottom":"4px"}}),t._v(" "),n("i",{staticClass:"fa fa-question-circle-o",attrs:{id:t.id,"aria-hidden":"true"}}),t._v(" "),n("b-tooltip",{attrs:{target:t.id}},[t._v("\n    To access price information please add items, enter name, phone, address,\n    and select save or send to instantly receive a full itemised quote\n  ")])],1)}),[],!1,null,null,null).exports},156:(t,e,n)=>{"use strict";n.d(e,{A:()=>f});var i=n(8858),r=n(8852);function o(t){return o="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},o(t)}function a(){a=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,i){var r=e&&e.prototype instanceof p?e:p,o=Object.create(r.prototype),a=new E(i||[]);return o._invoke=function(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return O()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=d(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h={};function p(){}function f(){}function m(){}var v={};c(v,r,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==e&&n.call(b,r)&&(v=b);var y=m.prototype=p.prototype=Object.create(v);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(r,a,s,l){var c=d(t[r],t,a);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==o(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,s,l)}),(function(t){i("throw",t,s,l)})):e.resolve(h).then((function(t){u.value=t,s(u)}),(function(t){return i("throw",t,s,l)}))}l(c.arg)}var r;this._invoke=function(t,n){function o(){return new e((function(e,r){i(t,n,e,r)}))}return r=r?r.then(o,o):o()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var i=d(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function T(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return f.prototype=m,c(y,"constructor",m),c(m,"constructor",f),f.displayName=c(m,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,l,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},_(w.prototype),c(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new w(u(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(y),c(y,l,"Generator"),c(y,r,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return a.type="throw",a.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function s(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function l(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){s(o,i,r,a,l,"next",t)}function l(t){s(o,i,r,a,l,"throw",t)}a(void 0)}))}}const c={name:"image-editor",props:{value:{type:Object,default:null},presets:{type:Array,default:function(){return[]}},height:{default:"100px"},width:{default:"auto"}},components:{Editor:r.A},mixins:[i.A],data:function(){return{image:{id:null,original:null,cropped:null,croppingInfo:null,imageUrl:null,url:null},showEditor:!1}},computed:{styles:function(){return{height:this.height,width:this.width}}},methods:{remove:function(){this.image.id=null,this.image.original=null,this.image.cropped=null,this.image.croppingInfo=null,this.image.imageUrl=null,this.image.url=null,this.$emit("input",this.image)},change:function(){this.$refs.file.click()},edit:function(){this.image.imageUrl?this.showEditor=!0:this.$refs.file.click()},crop:function(t){this.image.cropped=t.file,this.image.croppingInfo=t.croppingInfo,this.image.url=t.imageUrl,this.showEditor=!1,this.$emit("input",this.image)},upload:function(t){var e=t.target.files[0],n=URL.createObjectURL(e);this.image.url=n,this.image.imageUrl=n,this.image.original=e,this.$emit("input",this.image)},setImage:function(t){var e=this;return l(a().mark((function n(){return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.prepareImage(t);case 2:e.image=n.sent;case 3:case"end":return n.stop()}}),n)})))()}},created:function(){var t=this;return l(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.value){e.next=3;break}return e.next=3,t.setImage(t.value);case 3:case"end":return e.stop()}}),e)})))()}};var u=n(5072),d=n.n(u),h=n(9365),p={insert:"head",singleton:!1};d()(h.A,p);h.A.locals;const f=(0,n(4486).A)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.image.url?"avatar-upload edit_upload":"avatar-upload",style:t.styles},[n("div",{staticClass:"avatar-edit"},[n("input",{ref:"file",attrs:{type:"file",accept:".png, .jpg, .jpeg"},on:{change:t.upload}}),t._v(" "),n("label",{on:{click:t.edit}})]),t._v(" "),n("div",{staticClass:"avatar-preview"},[t.image.url?n("div",{style:"background-image:url("+this.image.url+")"}):t._e()]),t._v(" "),t.showEditor?n("editor",{attrs:{"image-url":t.image.imageUrl,"cropping-info":t.image.croppingInfo,"is-main-image":!0,"can-remove":!0,"can-change":!0,"fixed-ratio":!1,presets:t.presets},on:{close:function(e){t.showEditor=!1},crop:function(e){return t.crop(e)},remove:t.remove,change:t.change}}):t._e()],1)}),[],!1,null,"1a0003cf",null).exports},6931:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});const i={name:"loader",props:{cssClass:{type:String,required:!1},width:{type:Number,required:!1,default:51},message:{type:String,default:null},show:{type:Boolean,default:!1}}};var r=n(5072),o=n.n(r),a=n(4627),s={insert:"head",singleton:!1};o()(a.A,s);a.A.locals;const l=(0,n(4486).A)(i,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.show?i("div",{staticClass:"l-wrapper",class:t.cssClass},[i("img",{attrs:{width:t.width,src:n(4271)}}),t._v(" "),t.message?i("p",[t._v(t._s(t.message))]):t._e()]):t._e()}),[],!1,null,null,null).exports},2977:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(5196);const r={name:"re-order",components:{Sortable:n.n(i)()},props:{items:{type:Array,default:null},title:{type:String,required:!0},button_text:{type:String,required:!1,default:"Re Order"}},data:function(){return{dragData:[],sortItems:[],updated:!1}},mounted:function(){},methods:{sortingDone:function(){this.$emit("sortingDone",this.sortItems.map((function(t,e){return{id:t.id,order:e}}))),this.$refs.modal.hide()},show:function(){this.updated=!1,this.sortItems=this.items.map((function(t){return{id:t.id,name:t.name}})),this.$refs.modal.show()},sort:function(t){var e=t.oldIndex,n=t.newIndex;this.rearrange(e,n)},rearrange:function(t,e){this.updated=!0,t>e?(this.sortItems.splice(e,0,this.sortItems[t]),this.sortItems.splice(t+1,1)):(this.sortItems.splice(e+1,0,this.sortItems[t]),this.sortItems.splice(t,1))}}};const o=(0,n(4486).A)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"order-container"},[n("button",{staticClass:"button btn btn-primary",on:{click:function(e){return t.show()}}},[t._v(t._s(t.button_text))]),t._v(" "),n("b-modal",{ref:"modal",attrs:{size:"md",title:""+t.title,id:"modal","no-close-on-backdrop":!0,"no-close-on-esc":!0}},[n("b-container",[n("div",[n("p",[t._v("This is the order your customer will see the products on your website")]),t._v(" "),n("div",{staticClass:"reorder-container"},t._l(t.sortItems,(function(e,i){return n("sortable",{key:e.id,attrs:{index:i,"drag-direction":"vertical","replace-direction":"vertical"},on:{sortend:function(e){return t.sort(e)}},model:{value:t.dragData,callback:function(e){t.dragData=e},expression:"dragData"}},[t._v("\n            "+t._s(e.name)+"\n          ")])})),1)])]),t._v(" "),n("div",{staticClass:"w-100",attrs:{slot:"modal-footer"},slot:"modal-footer"},[n("button",{staticClass:"btn-primary pull-right btn product_btn btn_styles",on:{click:t.sortingDone}},[t._v("Save and close")])])],1)],1)}),[],!1,null,null,null).exports},204:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var i=n(6754);const r={name:"Scroll",emits:["load-more"],props:{keepShow:{type:Boolean,default:!1},size:{type:String,default:"6px"}},components:{vuescroll:n.n(i)()},data:function(){return{options:{bar:{keepShow:this.keepShow,background:"#ccc",size:this.size}}}},methods:{handleScroll:function(t){t.process>.95&&this.$emit("load-more")}}};var o=n(5072),a=n.n(o),s=n(9853),l={insert:"head",singleton:!1};a()(s.A,l);s.A.locals;const c=(0,n(4486).A)(r,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("vuescroll",{attrs:{ops:t.options},on:{"handle-scroll":t.handleScroll}},[t._t("default")],2)}),[],!1,null,null,null).exports},8852:(t,e,n)=>{"use strict";n.d(e,{A:()=>d});var i=n(3348),r=n(5072),o=n.n(r),a=n(6555),s={insert:"head",singleton:!1};o()(a.A,s);a.A.locals;const l={name:"Editor",props:{imageUrl:{type:String,required:!0},croppingInfo:{type:Object,required:!1},isMainImage:{type:Boolean,default:!1},canRemove:{type:Boolean,default:!0},canChange:{type:Boolean,default:!0},fixedRatio:{type:Boolean,default:!0},presets:{type:Array,default:[]},stencilSize:{type:Object,default:null}},components:{Cropper:i.IO},data:function(){var t=this;return{coordinates:this.croppingInfo,isShown:!!this.imageUrl,currentCoords:{},cropperSettings:{backgroundClassname:"bg-white",imageRestriction:"none",defaultSize:function(){return{width:t.coordinates?t.coordinates.width:233,height:t.coordinates?t.coordinates.height:160}},stencilProps:{previewClassname:"cropper-preview",aspectRatio:this.fixedRatio?1.45:null},stencilSize:this.stencilSize}}},methods:{fit:function(t){this.$refs.cropper.setCoordinates((function(e){e.coordinates,e.imageSize;return{width:t.width,height:t.height}}))},onChange:function(t){var e=t.coordinates;t.canvas;this.currentCoords=e},setCropperCoordinates:function(){var t=this;this.coordinates?this.$refs.cropper.setCoordinates((function(){return{left:t.coordinates.left,top:t.coordinates.top,width:t.coordinates.width,height:t.coordinates.height}})):this.$refs.cropper.setCoordinates((function(t){var e=t.coordinates,n=t.imageSize;return{left:n.width/2-e.width/2,top:n.height/2-e.height/2}}))},close:function(){this.$emit("close")},cropImage:function(){var t=this.$refs.cropper.getResult(),e=t.coordinates,n=t.canvas.toDataURL(),i=this.dataURLtoFile(n,"cropped-image.png");this.$emit("crop",{file:i,imageUrl:n,croppingInfo:e}),this.close()},changeImage:function(){this.$emit("change")},removeImage:function(){this.close(),this.$emit("remove")},setMainImage:function(){this.close(),this.$emit("setMain")},dataURLtoFile:function(t,e){for(var n=t.split(","),i=n[0].match(/:(.*?);/)[1],r=atob(n[1]),o=r.length,a=new Uint8Array(o);o--;)a[o]=r.charCodeAt(o);return new File([a],e,{type:i})}}};var c=n(5585),u={insert:"head",singleton:!1};o()(c.A,u);c.A.locals;const d=(0,n(4486).A)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-modal",{attrs:{visible:t.isShown,size:"lg","hide-footer":"","no-close-on-backdrop":"",title:"What you want to do with this image?"},on:{close:t.close}},[n("div",{staticClass:"d-block text-center"},[n("Cropper",{ref:"cropper",attrs:{classname:"upload-example-cropper",src:t.imageUrl,imageRestriction:t.cropperSettings.imageRestriction,"background-classname":t.cropperSettings.backgroundClassname,"stencil-props":t.cropperSettings.stencilProps,"stencil-size":t.cropperSettings.stencilSize},on:{ready:t.setCropperCoordinates,change:t.onChange}}),t._v(" "),n("div",[t._v("\n      Width: "+t._s(t.currentCoords.width)+";\n      Height: "+t._s(t.currentCoords.height)+";\n      Left: "+t._s(t.currentCoords.left)+";\n      Top: "+t._s(t.currentCoords.top)+"\n    ")]),t._v(" "),n("div",{staticClass:"mt-4"},[t._l(t.presets,(function(e){return n("button",{staticClass:"button btn btn-primary mr-2",on:{click:function(n){return t.fit(e)}}},[t._v("Fit "+t._s(e.title))])})),t._v(" "),n("button",{staticClass:"button btn btn-secondary mr-2",on:{click:t.cropImage}},[t._v("Crop Image")]),t._v(" "),t.canChange?n("button",{staticClass:"button btn btn-primary mr-2",on:{click:t.changeImage}},[t._v("Change image")]):t._e(),t._v(" "),t.canRemove?n("button",{staticClass:"button btn btn-danger mr-2",on:{click:t.removeImage}},[t._v("Remove image")]):t._e(),t._v(" "),t.isMainImage?t._e():n("button",{staticClass:"button btn btn-primary",on:{click:t.setMainImage}},[t._v("Set as main image")])],2)],1)])}),[],!1,null,null,null).exports},9974:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});const i={name:"ImageUploader",components:{Editor:n(8852).A},props:{index:{type:[Number,String],required:!0},imageUrl:{type:String,default:""}},data:function(){return{editorImageUrl:null,editorCroppingInfo:null,isReUploading:!1}},methods:{editorClose:function(){this.editorImageUrl=null},editorChange:function(){this.isReUploading=!0,this.$refs.file.click()},editorRemove:function(){this.isReUploading=!0,this.$emit("remove",this.index)},editorSetMain:function(){this.$emit("setMain",this.index)},crop:function(t){this.$emit("crop",Object.assign(t,{index:this.index}))},addOrEditImage:function(){if(this.imageUrl)return this.editorImageUrl=URL.createObjectURL(this.$parent.files[this.index].original),void(this.editorCroppingInfo=this.$parent.files[this.index].croppingInfo);this.$refs.file.click()},onChange:function(t){if(this.isReUploading)return this.$emit("reupload",{index:this.index,file:t.target.files[0]}),this.isReUploading=!1,this.addOrEditImage(),void this.clearInput();this.$emit("change",{index:this.index,files:t.target.files}),this.clearInput(),this.isChangingImage=!1},clearInput:function(){this.$refs.file.value=""}},beforeDestroy:function(){this.$parent.$off("re-upload")}};var r=n(4486);function o(t){return o="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},o(t)}function a(){a=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,i){var r=e&&e.prototype instanceof p?e:p,o=Object.create(r.prototype),a=new E(i||[]);return o._invoke=function(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return O()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=d(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h={};function p(){}function f(){}function m(){}var v={};c(v,r,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==e&&n.call(b,r)&&(v=b);var y=m.prototype=p.prototype=Object.create(v);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(r,a,s,l){var c=d(t[r],t,a);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==o(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,s,l)}),(function(t){i("throw",t,s,l)})):e.resolve(h).then((function(t){u.value=t,s(u)}),(function(t){return i("throw",t,s,l)}))}l(c.arg)}var r;this._invoke=function(t,n){function o(){return new e((function(e,r){i(t,n,e,r)}))}return r=r?r.then(o,o):o()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var i=d(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function T(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return f.prototype=m,c(y,"constructor",m),c(m,"constructor",f),f.displayName=c(m,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,l,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},_(w.prototype),c(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new w(u(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(y),c(y,l,"Generator"),c(y,r,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return a.type="throw",a.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function s(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function c(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function u(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){c(o,i,r,a,s,"next",t)}function s(t){c(o,i,r,a,s,"throw",t)}a(void 0)}))}}const d={name:"ImagesUploader",components:{ImageUploader:(0,r.A)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.imageUrl?"avatar-upload edit_upload":"avatar-upload"},[n("div",{staticClass:"avatar-edit"},[n("input",{ref:"file",attrs:{multiple:"",accept:".png, .jpg, .jpeg",type:"file"},on:{change:t.onChange}}),t._v(" "),n("label",{on:{click:function(e){return t.addOrEditImage()}}})]),t._v(" "),n("div",{staticClass:"avatar-preview"},[t.imageUrl?n("div",{style:"background-image:url("+t.imageUrl+")"}):t._e()]),t._v(" "),t.editorImageUrl?n("editor",{attrs:{"image-url":t.editorImageUrl,"cropping-info":t.editorCroppingInfo,"is-main-image":0===parseInt(this.index)},on:{close:t.editorClose,change:t.editorChange,crop:t.crop,remove:t.editorRemove,setMain:t.editorSetMain}}):t._e()],1)}),[],!1,null,null,null).exports},props:{multi:{type:Boolean,default:!0},images:{type:Array,default:null}},data:function(){return{files:[],imageUrls:[]}},watch:{images:{handler:function(t){var e=this;return u(a().mark((function n(){var i,r,o,l,c;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e.imageUrls=[],e.files=[],i=s(t),n.prev=3,i.s();case 5:if((r=i.n()).done){n.next=17;break}return o=r.value,e.imageUrls.push(o.cropped_file_path||o.original_file_path),n.next=10,e.createFileFromUrl(o.original_file_path);case 10:return l=n.sent,n.next=13,e.createFileFromUrl(o.cropped_file_path);case 13:c=n.sent,e.files.push({id:o.id,original:l,cropped:c,croppingInfo:JSON.parse(o.cropping_info)});case 15:n.next=5;break;case 17:n.next=22;break;case 19:n.prev=19,n.t0=n.catch(3),i.e(n.t0);case 22:return n.prev=22,i.f(),n.finish(22);case 25:case"end":return n.stop()}}),n,null,[[3,19,22,25]])})))()},deep:!0,immediate:!0},files:{handler:function(t){this.$emit("change",t)},deep:!0}},methods:{createFileFromUrl:function(t){return u(a().mark((function e(){var n,i,r,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return",null);case 2:return e.next=4,fetch(t);case 4:return n=e.sent,e.next=7,n.blob();case 7:return i=e.sent,r=t.split(".").pop(),o={type:"image/"+r},e.abrupt("return",new File([i],"image."+r,o));case 11:case"end":return e.stop()}}),e)})))()},setMainImage:function(t){var e=this.imageUrls[0],n=this.files[0];this.$set(this.imageUrls,0,this.imageUrls[t]),this.$set(this.files,0,this.files[t]),this.$set(this.imageUrls,t,e),this.$set(this.files,t,n)},crop:function(t){this.files[t.index].cropped=t.file,this.files[t.index].croppingInfo=t.croppingInfo,this.$set(this.imageUrls,t.index,URL.createObjectURL(t.file))},reUpload:function(t){this.$set(this.files,t.index,{original:t.file,cropped:null}),this.$set(this.imageUrls,t.index,URL.createObjectURL(t.file))},onChange:function(t){var e=t.files;if(e.length)if(1===e.length)this.addFileOrShowWarning(e[0]);else{this.files=[],this.imageUrls=[];var n,i=s(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(this.addFileOrShowWarning(r))break}}catch(t){i.e(t)}finally{i.f()}}},remove:function(t){this.files.splice(t,1),this.imageUrls.splice(t,1)},addFileOrShowWarning:function(t){return this.files.length<5?(this.imageUrls.push(URL.createObjectURL(t)),this.files.push({original:t,cropped:null}),!1):(this.$bvToast.toast("You can upload maximum 5 images."),!0)}}};const h=(0,r.A)(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:[t.multi?"multi_uploads":""]},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-lg-6 col-md-12 mb-3"},[n("image-uploader",{attrs:{"image-url":t.imageUrls[0],index:"0"},on:{change:t.onChange,crop:t.crop,reupload:t.reUpload,remove:t.remove}})],1),t._v(" "),t.multi?n("div",{staticClass:"col-lg-6 col-md-12"},[n("div",{staticClass:"upload_mini_pd"},[n("div",{staticClass:"row"},t._l(4,(function(e){return n("div",{key:e,staticClass:"col-lg-6 col-md-12 mb-3"},[n("image-uploader",{attrs:{"image-url":t.imageUrls[e],index:e},on:{change:t.onChange,crop:t.crop,reupload:t.reUpload,remove:t.remove,setMain:t.setMainImage}})],1)})),0)])]):t._e()])])}),[],!1,null,null,null).exports},4186:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const i={name:"loader",props:{width:{type:Number,required:!1,default:51},msg:{type:String,required:!1,default:"Please wait"},preloader:{type:String,default:null},preloaderStyles:{type:Object,default:null}},data:function(){return{}},computed:{styles:function(){return this.preloaderStyles?this.preloaderStyles:{position:"fixed",top:"50%",left:"50%",marginTop:"-75px",marginLeft:"-75px"}}},mounted:function(){}};const r=(0,n(4486).A)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"loader-container"},[n("div",{staticClass:"psv-loader",style:t.styles},[t.preloader?n("img",{attrs:{src:t.preloader,width:"150"}}):[n("svg",{staticClass:"psv-loader-canvas",attrs:{viewBox:"0 0 150 150"}},[n("circle",{attrs:{cx:"75",cy:"75",r:"75",fill:"rgba(61, 61, 61, 0.5)"}}),t._v(" "),n("path",{attrs:{d:"M 75 8 A 67 67 0 1 1 74.9957902658469 8.000000132252708",fill:"none",stroke:"rgba(255, 255, 255, 0.7)","stroke-width":"10","stroke-linecap":"round"}})]),t._v(" "),n("div",{staticClass:"psv-loader-text"},[t._v(t._s(t.msg))])]],2)])}),[],!1,null,null,null).exports},9310:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const i={name:"notice",props:{notice:{type:Object,required:!1,default:function(){return{type:"danger",msg:null}}}},mounted:function(){this.notification=this.notice},data:function(){return{notification:this.notice}}};const r=(0,n(4486).A)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"notice_container"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.notification.msg,expression:"notification.msg"}],staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("div",{class:"alert show fade alert-"+t.notification.type,domProps:{innerHTML:t._s(t.notification.msg)}})])])])}),[],!1,null,null,null).exports},4296:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const i={name:"status-dott",props:{status:{required:!0},tooltip:{type:String,required:!1,default:"Item is inactive"}},data:function(){return{}}};const r=(0,n(4486).A)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return 2==t.status?n("span",{staticClass:"status_dott status_dott_red",attrs:{title:t.tooltip}}):t._e()}),[],!1,null,null,null).exports},2949:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var i=n(6931),r=n(8858),o=(n(3969),n(1684));function a(t){return a="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},a(t)}function s(){s=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,i){var r=e&&e.prototype instanceof p?e:p,o=Object.create(r.prototype),a=new E(i||[]);return o._invoke=function(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return O()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=d(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h={};function p(){}function f(){}function m(){}var v={};c(v,r,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==e&&n.call(b,r)&&(v=b);var y=m.prototype=p.prototype=Object.create(v);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(r,o,s,l){var c=d(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==a(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,s,l)}),(function(t){i("throw",t,s,l)})):e.resolve(h).then((function(t){u.value=t,s(u)}),(function(t){return i("throw",t,s,l)}))}l(c.arg)}var r;this._invoke=function(t,n){function o(){return new e((function(e,r){i(t,n,e,r)}))}return r=r?r.then(o,o):o()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var i=d(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function T(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return f.prototype=m,c(y,"constructor",m),c(m,"constructor",f),f.displayName=c(m,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,l,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},_(w.prototype),c(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new w(u(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(y),c(y,l,"Generator"),c(y,r,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return a.type="throw",a.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function l(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}const c={name:"QueryExporter",components:{Loader:i.A},mixins:[r.A],props:{query:{type:o.A,required:!0},exportXero:{type:Boolean,default:!1},exportMonday:{type:Boolean,default:!1}},data:function(){return{isShownModal:!1,isExporting:!1,model:{xero:!1,monday:!1}}},computed:{canBeExported:function(){if(this.isExporting);else{if(this.model.xero)return!0;if(this.model.monday)return!0}return!1}},methods:{showModal:function(){this.isShownModal=!0},exportQuery:function(){var t=this;this.isExporting=!0,this.$post("/exports/quotes/".concat(this.query.id),this.model).then(function(){var e,n=(e=s().mark((function e(n){var i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.A.insertOrUpdate({data:[n.data.query]});case 2:i="",n.data.result&&Object.keys(n.data.result).forEach((function(t){var e=n.data.result[t];i+='<h4 class="align-items-center d-flex justify-content-center text-capitalize">',e.success?i+='<i class="fa fa-check-circle mr-2 text-success"></i> '.concat(t,"</h4>"):(i+='<i class="fa fa-times-circle mr-2 text-danger"></i> '.concat(t,"</h4>"),i+='<div class="mt-n2"><small class="text-danger">'.concat(e.error,"</small></div>"))})),t.$swal({title:"Result",html:i,type:"info"});case 5:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(t){l(o,i,r,a,s,"next",t)}function s(t){l(o,i,r,a,s,"throw",t)}a(void 0)}))});return function(t){return n.apply(this,arguments)}}()).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.isShownModal=!1,t.isExporting=!1}))}}};const u=(0,n(4486).A)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{display:"inline"}},[t.exportXero||t.exportMonday?n("button",{staticClass:"button btn btn-primary",attrs:{title:"Export"},on:{click:t.showModal}},[n("i",{staticClass:"fa fa-external-link"})]):t._e(),t._v(" "),n("b-modal",{attrs:{title:"Export to",centered:""},on:{hide:function(e){t.isShownModal=!1}},scopedSlots:t._u([{key:"modal-footer",fn:function(){return[n("button",{staticClass:"button btn btn-dark",on:{click:function(e){t.isShownModal=!1}}},[t._v("Cancel")]),t._v(" "),n("button",{staticClass:"button btn btn-primary",attrs:{disabled:!t.canBeExported},on:{click:t.exportQuery}},[t._v("Ok")])]},proxy:!0}]),model:{value:t.isShownModal,callback:function(e){t.isShownModal=e},expression:"isShownModal"}},[t.exportXero?n("div",{staticClass:"d-flex justify-content-between align-items-center"},[n("b-form-checkbox",{attrs:{size:"lg"},model:{value:t.model.xero,callback:function(e){t.$set(t.model,"xero",e)},expression:"model.xero"}},[t._v("\n        Xero\n      ")])],1):t._e(),t._v(" "),t.exportMonday?n("div",{staticClass:"d-flex justify-content-between align-items-center"},[n("b-form-checkbox",{attrs:{size:"lg"},model:{value:t.model.monday,callback:function(e){t.$set(t.model,"monday",e)},expression:"model.monday"}},[t._v("\n        Monday\n      ")]),t._v(" "),t.query.monday_exports&&t.query.monday_exports.length?n("span",[n("i",{staticClass:"fa fa-check text-success"}),t._v(" Exported\n      ")]):t._e()],1):t._e()])],1)}),[],!1,null,null,null).exports},7965:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(8858);const r={name:"TabForm",props:{tab:{type:Object,required:!1},visible:{type:Boolean,default:!1},baseUrl:{type:String,default:"enquire-tabs"}},mixins:[i.A],data:function(){return{model:"",submitting:!1,isShown:!1,errorMessage:null,state:null}},computed:{isEditing:function(){return!!this.tab.id}},watch:{visible:function(t){this.isShown=t,this.model=this.tab.title||""}},methods:{submit:function(){var t=this,e="/".concat(this.baseUrl);this.isEditing&&(e+="/".concat(this.tab.id)),axios.post(e,{title:this.model}).then((function(e){t.$emit("tabsChanged",{tab:e.data.data,isUpdated:t.isEditing}),t.model=null,t.isShown=!1})).catch((function(e){t.state=!1,t.errorMessage=e.response.data.errors.title[0]}))},deleteTab:function(){var t=this;this.confirm((function(){axios.delete("/".concat(t.baseUrl,"/").concat(t.tab.id)).then((function(){t.$emit("tabsChanged",{tab:t.tab,deleted:!0}),t.successAlert("Deleted!","Your data has been deleted.")})).catch((function(){t.alertErrors()})).finally((function(){t.isShown=!1}))}))},handleHide:function(){this.errorMessage=null,this.state=null,this.$emit("hide")}}};const o=(0,n(4486).A)(r,(function(){var t=this,e=this,n=e.$createElement,i=e._self._c||n;return i("b-modal",{attrs:{centered:"",title:e.isEditing?"Edit "+e.tab.title:"Create tab","ok-title":"Save"},on:{hide:e.handleHide},scopedSlots:e._u([{key:"modal-footer",fn:function(){return[i("div",{staticStyle:{width:"100%"}},[e.isEditing?i("b-button",{attrs:{variant:"danger",size:"sm",disabled:e.submitting},on:{click:e.deleteTab}},[e.submitting?i("b-spinner",{attrs:{variant:"light",small:"",label:"Spinning"}}):e._e(),e._v("\n        Delete\n      ")],1):e._e(),e._v(" "),i("b-button",{staticClass:"float-right ml-3",attrs:{variant:"light",size:"sm"},on:{click:function(t){e.isShown=!1}}},[e._v("\n        Cancel\n      ")]),e._v(" "),i("b-button",{staticClass:"float-right",attrs:{variant:"primary",size:"sm",disabled:e.submitting},on:{click:e.submit}},[e.submitting?i("b-spinner",{attrs:{variant:"light",small:"",label:"Spinning"}}):e._e(),e._v("\n        Save\n      ")],1)],1)]},proxy:!0}]),model:{value:e.isShown,callback:function(t){e.isShown=t},expression:"isShown"}},[i("b-row",[i("b-col",{staticClass:"mt-2",attrs:{sm:"1"}},[i("label",[e._v("Title")])]),e._v(" "),i("b-col",{attrs:{sm:"11"}},[i("b-form-input",{attrs:{id:"input-invalid",state:e.state,placeholder:"Tab title"},on:{input:function(){t.state=null,t.errorMessage=null}},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}}),e._v(" "),e.errorMessage?i("span",{staticStyle:{color:"red"}},[e._v(e._s(e.errorMessage))]):e._e()],1)],1)],1)}),[],!1,null,null,null).exports},4756:(t,e,n)=>{"use strict";n.d(e,{A:()=>x});var i=n(8858),r=n(7809),o=n(3853),a=n(4297),s=n(7376),l=n(8939),c=n(967);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const p={name:"agent-users",props:["links","user","agents","roles"],mixins:[i.A],components:{User:o.A},data:function(){return{agent:{id:null,name:null,email:null,role:null}}},computed:{agentList:function(){return o.A.query().orderBy("id","asc").get()},roleOptions:function(){return this.roles.map((function(t){return{id:t.name,label:t.display_name}}))}},methods:{submit:function(){this.agent.id?this.update():this.create()},checkClient:function(){var t=this;return this.fetching=!0,c.A.find(this.agent,"agent-user").catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))},create:function(){var t=this;this.checkClient().then((function(e){if(e)if(e.data.data.found){if(!e.data.data.can_add)return void t.alertErrors("This email belongs to a user who can't be an admin.");t.addAgent(e.data.data.found)}else t.addAgent()}))},addAgent:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.fetching=!0,axios.post(this.links.create_agent_user,d(d({},this.agent),{},{user_id:e})).then((function(e){o.A.insert({data:e.data.data}),t.successNotice("User Created."),t.reset()})).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))},edit:function(t){this.agent.id===t.id?this.reset():this.agent=d({},t)},update:function(){var t=this;this.fetching=!0,axios.post(this.links.update_agent.replace("id",this.agent.id),this.agent).then((function(e){o.A.update({where:t.agent.id,data:e.data.data}),t.successNotice("User updated.")})).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))},invite:function(t){var e=this;this.confirm((function(){e.fetching=!0,axios.post(e.links.invite_agent.replace("id",t)).then((function(t){e.successNotice("Invitation sent.")})).catch((function(t){e.alertErrors(t.response.data)})).finally((function(){e.fetching=!1}))}),null,{text:"Invitation will be sent by email"})},deleteAgent:function(t){var e=this;this.confirm((function(){e.fetching=!0,axios.delete(e.links.delete_agent.replace("id",t.id)).then((function(e){o.A.delete(t.id)})).catch((function(t){e.alertErrors(t.response.data)})).finally((function(){e.fetching=!1}))}))},reset:function(){this.agent={id:null,name:null,email:null,role:null}}},mounted:function(){this.agents&&o.A.insert({data:this.agents})}};var f=n(5072),m=n.n(f),v=n(3559),g={insert:"head",singleton:!1};m()(v.A,g);v.A.locals;var b=n(4486);const y=(0,b.A)(p,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row mb-5"},[n("div",{staticClass:"col-md-6"},[t.agent.id?n("h4",{staticClass:"mb-4"},[t._v("Update User")]):n("h4",{staticClass:"mb-4"},[t._v("Create User")]),t._v(" "),n("form",{on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[t.agent.id?t._e():n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"agent-role"}},[t._v("Role*")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("treeselect",{attrs:{id:"agent-role",options:t.roleOptions,clearable:!1,placeholder:"Select Role"},model:{value:t.agent.role,callback:function(e){t.$set(t.agent,"role",e)},expression:"agent.role"}})],1)]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"sub-agent-name"}},[t._v("Name")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.agent.name,expression:"agent.name"}],staticClass:"form-control",attrs:{type:"text",name:"name",id:"sub-agent-name"},domProps:{value:t.agent.name},on:{input:function(e){e.target.composing||t.$set(t.agent,"name",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"sub-agent-email"}},[t._v("Email*")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.agent.email,expression:"agent.email"}],staticClass:"form-control",attrs:{type:"email",name:"email",id:"sub-agent-email"},domProps:{value:t.agent.email},on:{input:function(e){e.target.composing||t.$set(t.agent,"email",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"mt-4 text-right"},[t.agent.id?n("button",{staticClass:"button btn btn-secondary",attrs:{type:"button"},on:{click:function(e){return t.edit(t.agent)}}},[t._v("\n          Cancel\n        ")]):t._e(),t._v(" "),n("button",{staticClass:"button btn btn-primary",attrs:{type:"submit",disabled:t.fetching}},[t.agent.id?n("span",[t._v("Update")]):n("span",[t._v("Create")])])])])]),t._v(" "),n("div",{staticClass:"col-md-6"},[n("h4",[t._v("Users")]),t._v(" "),n("div",{staticClass:"table-responsive"},[n("table",{staticClass:"table shadow-none",attrs:{id:"agent-users"}},[t._m(0),t._v(" "),n("tbody",t._l(t.agentList,(function(e){return n("tr",[n("td",[n("div",[t._v(t._s(e.name))]),t._v(" "),n("div",{staticClass:"text-black-50"},[t._v(t._s(e.email))])]),t._v(" "),n("td",[n("span",{domProps:{innerHTML:t._s(t.getRoleBadge(e.role))}})]),t._v(" "),n("td",[t._v(t._s(e.logged_at))]),t._v(" "),n("td",{staticClass:"agent-actions text-right"},[e.email_verified_at?t._e():n("button",{staticClass:"button btn btn-primary",attrs:{title:"Invite"},on:{click:function(n){return t.invite(e.id)}}},[n("i",{staticClass:"fa fa-paper-plane"})]),t._v(" "),t.agent.id===e.id?n("button",{staticClass:"button btn btn-secondary",attrs:{title:"Edit"},on:{click:function(n){return t.edit(e)}}},[n("i",{staticClass:"fa fa-times"})]):n("button",{staticClass:"button btn btn-primary",attrs:{title:"Edit"},on:{click:function(n){return t.edit(e)}}},[n("i",{staticClass:"fa fa-pencil"})]),t._v(" "),t.user.id!==e.id?n("button",{staticClass:"button btn btn-danger",attrs:{title:"Delete"},on:{click:function(n){return t.deleteAgent(e)}}},[n("i",{staticClass:"fa fa-trash"})]):t._e()])])})),0)])])])])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("thead",{staticClass:"table_head_snap"},[n("tr",[n("th",[t._v("User")]),t._v(" "),n("th",[t._v("Role")]),t._v(" "),n("th",[t._v("Last Login")]),t._v(" "),n("th",{staticClass:"agent-actions text-right"},[t._v("Actions")])])])}],!1,null,"c4a8f0a6",null).exports;var _=n(3144);const w={name:"agent-settings",props:["links","timezones","user","ownerSettings","agents","roles","features","canManageAgentUsers","isAgent"],mixins:[i.A,r.A],components:{User:o.A,Timezone:l.A,UserDetails:a.A,Password:s.A,AgentUsers:y},data:function(){return{model:{notification_enabled:!0,xero_enabled:!1,monday_enabled:!1}}},computed:{canManageIntegrations:function(){return this.canManageXero||this.canManageMonday},canManageXero:function(){return _.A.query().where("feature","xero_enabled").where("enabled",!0).exists()},canManageMonday:function(){var t=_.A.query().where("feature","monday_enabled").where("enabled",!0).exists();return this.isAgent?t:t&&this.ownerSettings.monday_enabled}},methods:{},mounted:function(){this.features&&_.A.insert({data:this.features}),this.fetchUserSettings(),this.canManageMonday&&this.fetchMonday()}};const x=(0,b.A)(w,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("b-tabs",{attrs:{"content-class":"",fill:""}},[n("b-tab",{attrs:{title:"General"}},[n("div",{staticClass:"list_container p-2 p-lg-5 p-md-3"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("h4",{staticClass:"mb-4"},[t._v("Details")]),t._v(" "),n("user-details",{attrs:{user:t.user}})],1),t._v(" "),n("div",{staticClass:"col-md-6"})]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row mb-5"},[n("div",{staticClass:"col-md-6"},[n("h4",{staticClass:"mb-4"},[t._v("Change Password")]),t._v(" "),n("password")],1),t._v(" "),n("div",{staticClass:"col-md-6"},[n("h4",[t._v("Change Timezone")]),t._v(" "),n("timezone",{attrs:{"user-settings":t.userSettings,timezones:t.timezones}})],1)]),t._v(" "),t.canManageAgentUsers?[n("hr"),t._v(" "),n("agent-users",{attrs:{user:t.user,agents:t.agents,roles:t.roles,links:t.links}})]:t._e()],2)]),t._v(" "),n("b-tab",{attrs:{title:"Notification Settings"}},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("div",{staticClass:"list_container p-2 p-lg-5 p-md-3"},[n("h4",[t._v("Notification Settings")]),t._v(" "),n("b-form-checkbox",{attrs:{size:"lg",switch:""},on:{change:function(e){return t.updateSetting("notification_enabled")}},model:{value:t.model.notification_enabled,callback:function(e){t.$set(t.model,"notification_enabled",e)},expression:"model.notification_enabled"}},[t._v("\n                  New enquiry email notification\n                ")])],1)])])]),t._v(" "),t.canManageIntegrations?n("b-tab",{attrs:{title:"Integration Settings"}},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("div",{staticClass:"list_container p-2 p-lg-5 p-md-3"},[n("h4",[t._v("Integration Settings")]),t._v(" "),t.canManageXero?n("b-form-checkbox",{attrs:{size:"lg",switch:""},on:{change:function(e){return t.updateSetting("xero_enabled")}},model:{value:t.model.xero_enabled,callback:function(e){t.$set(t.model,"xero_enabled",e)},expression:"model.xero_enabled"}},[t._v("\n                  Xero integration\n                ")]):t._e(),t._v(" "),t.canManageMonday?[n("b-form-checkbox",{attrs:{size:"lg",switch:""},on:{change:function(e){return t.updateSetting("monday_enabled")}},model:{value:t.model.monday_enabled,callback:function(e){t.$set(t.model,"monday_enabled",e)},expression:"model.monday_enabled"}},[t._v("\n                    Monday integration\n                  ")]),t._v(" "),t.model.monday_enabled&&t.monday_install?n("div",{staticClass:"col-6 my-3"},[t.monday?n("h4",[t._v("Installed")]):n("div",[n("h4",[t._v("Installation")]),t._v(" "),n("ol",{staticClass:"pl-4"},[n("li",[t._v("Install the app.")]),t._v(" "),n("li",[t._v("Go to a board with prepared table.")]),t._v(" "),n("li",[t._v('Click integrate and search for "celect".')]),t._v(" "),n("li",[t._v("Click use template.")]),t._v(" "),n("li",[t._v("Login or select account.")]),t._v(" "),n("li",[t._v("And eventually connect fields in table.")])]),t._v(" "),n("a",{staticClass:"btn btn-primary",attrs:{href:t.monday_install,target:"_blank"}},[t._v("Install app")])])]):t._e()]:t._e()],2)])])]):t._e()],1)],1)])])}),[],!1,null,null,null).exports},8879:(t,e,n)=>{"use strict";n.d(e,{A:()=>k});var i=n(8858),r=n(4297),o=n(7376),a=n(8939);function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const c={name:"business-info",components:{VueGoogleAutocomplete:n(7340).A},mixins:[i.A],props:["store","canManage"],data:function(){return{storeData:{business_name:null,business_address:null,lat:null,lng:null}}},methods:{update:function(){var t=this;this.fetching=!0,axios.post("/settings/business",this.storeData).then((function(e){t.successNotice("Business Details Updated.")})).finally((function(){t.fetching=!1}))},getAddressData:function(t,e,n){this.storeData.lat=t.latitude,this.storeData.lng=t.longitude,this.storeData.business_address=e.formatted_address}},mounted:function(){this.storeData=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this.store)}};var u=n(4486);const d=(0,u.A)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"business-name"}},[t._v("\n      Business Name "),n("i",{staticClass:"fa fa-question-circle-o",attrs:{id:"tooltip-target-name"}}),t._v(" "),n("b-tooltip",{attrs:{target:"tooltip-target-name",triggers:"hover click"}},[n("div",{staticClass:"text-left"},[t._v("\n          This will be shown in the domain name for your storefront widget\n        ")])])],1),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.business_name,expression:"storeData.business_name"}],staticClass:"form-control",attrs:{type:"text",id:"business-name",disabled:!t.canManage},domProps:{value:t.storeData.business_name},on:{input:function(e){e.target.composing||t.$set(t.storeData,"business_name",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"business-address"}},[t._v("\n      Business Address ")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.business_address,expression:"storeData.business_address"}],staticClass:"form-control",attrs:{type:"text",id:"business-address"},domProps:{value:t.storeData.business_address},on:{input:function(e){e.target.composing||t.$set(t.storeData,"business_address",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"text-right"},[t.canManage?n("button",{staticClass:"button btn btn-primary",attrs:{type:"button",disabled:t.fetching},on:{click:t.update}},[t._v("Save")]):t._e()])])}),[],!1,null,null,null).exports;var h=n(204),p=n(3853),f=n(967);function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const b={name:"client-users",props:{user:{type:Object},roles:{},users:{},addedUsers:{}},mixins:[i.A],components:{scroll:h.A},data:function(){return{client:{id:null,role:null,name:null,email:null}}},computed:{clientList:function(){return p.A.query().orderBy("id","asc").get()},roleOptions:function(){return this.roles.map((function(t){return{id:t.name,label:t.display_name}}))}},methods:{edit:function(t){this.client.id===t.id?this.reset():this.client=v({},t)},submit:function(){this.client.id?this.update():this.create()},checkClient:function(){var t=this;return this.fetching=!0,f.A.find(this.client,"client-user").catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))},create:function(){var t=this;this.checkClient().then((function(e){if(e)if(e.data.data.found){if(!e.data.data.can_add)return void t.alertErrors("This email belongs to a user who can't be an admin.");t.addUser(e.data.data.found)}else t.addUser()}))},addUser:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.fetching=!0,axios.post("/client-manager/users",v(v({},this.client),{},{user_id:e})).then((function(e){p.A.insert({data:e.data.data}),t.successNotice("User created and invitation sent."),t.reset()})).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))},update:function(){var t=this;this.fetching=!0,axios.post("/client-manager/users/".concat(this.client.id),this.client).then((function(e){p.A.update({where:t.client.id,data:e.data.data}),t.successNotice("User updated.")})).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))},deleteClient:function(t){var e=this;this.confirm((function(){e.fetching=!0,axios.delete("/client-manager/users/".concat(t.id)).then((function(n){p.A.delete(t.id),e.client.id===t.id&&e.reset(),e.successNotice("User deleted.")})).catch((function(t){e.alertErrors(t.response.data)})).finally((function(){e.fetching=!1}))}))},invite:function(t){var e=this;this.confirm((function(){e.fetching=!0,axios.post("/client-manager/users/".concat(t.id,"/invite")).then((function(t){e.successNotice("Invitation sent.")})).catch((function(t){e.alertErrors(t.response.data)})).finally((function(){e.fetching=!1}))}),null,{text:"Invitation will be sent by email"})},reset:function(){this.client={id:null,role:null,name:null,email:null}}},created:function(){this.users&&p.A.insert({data:this.users}),this.addedUsers&&p.A.insert({data:this.addedUsers})}};var y=n(5072),_=n.n(y),w=n(408),x={insert:"head",singleton:!1};_()(w.A,x);w.A.locals;const C=(0,u.A)(b,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[t.fetching?n("loader",{staticStyle:{position:"fixed"}}):t._e(),t._v(" "),n("div",{staticClass:"col-md-6"},[t.client.id?n("h4",{staticClass:"mb-4"},[t._v("Update User")]):n("h4",{staticClass:"mb-4"},[t._v("Create User")]),t._v(" "),n("form",{on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"client-role"}},[t._v("Role*")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("treeselect",{attrs:{id:"client-role",options:t.roleOptions,clearable:!1,placeholder:"Select Role"},model:{value:t.client.role,callback:function(e){t.$set(t.client,"role",e)},expression:"client.role"}})],1)]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"client-name"}},[t._v("Name")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.client.name,expression:"client.name"}],staticClass:"form-control",attrs:{type:"text",name:"name",id:"client-name",required:""},domProps:{value:t.client.name},on:{input:function(e){e.target.composing||t.$set(t.client,"name",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"client-email"}},[t._v("Email*")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.client.email,expression:"client.email"}],staticClass:"form-control",attrs:{type:"email",name:"email",id:"client-email",required:""},domProps:{value:t.client.email},on:{input:function(e){e.target.composing||t.$set(t.client,"email",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"mt-4 text-right"},[t.client.id?n("button",{staticClass:"button btn btn-secondary",attrs:{type:"button"},on:{click:function(e){return t.edit(t.client)}}},[t._v("\n          Cancel\n        ")]):t._e(),t._v(" "),n("button",{staticClass:"button btn btn-primary",attrs:{type:"submit"}},[t.client.id?[t._v("Update")]:[t._v("Create")]],2)])])]),t._v(" "),t.clientList.length?n("div",{staticClass:"col-md-6"},[n("h4",{staticClass:"mb-4"},[t._v("Users")]),t._v(" "),n("div",{staticClass:"table-responsive"},[n("table",{staticClass:"table shadow-none",attrs:{id:"client-users"}},[t._m(0),t._v(" "),n("tbody",t._l(t.clientList,(function(e){return n("tr",{class:e.id===t.client.id?"active-stock":null},[n("td",[n("div",[t._v(t._s(e.name))]),t._v(" "),n("div",{staticClass:"text-black-50"},[t._v(t._s(e.email))])]),t._v(" "),n("td",[n("span",{domProps:{innerHTML:t._s(t.getRoleBadge(e.role))}})]),t._v(" "),n("td",[t._v(t._s(e.logged_at))]),t._v(" "),n("td",{staticClass:"user-actions text-right"},[e.email_verified_at?t._e():n("button",{staticClass:"button btn btn-primary",attrs:{title:"Invite"},on:{click:function(n){return t.invite(e)}}},[n("i",{staticClass:"fa fa-paper-plane"})]),t._v(" "),t.client.id===e.id?n("button",{staticClass:"button btn btn-secondary",attrs:{title:"Edit"},on:{click:function(n){return t.edit(e)}}},[n("i",{staticClass:"fa fa-times"})]):n("button",{staticClass:"button btn btn-primary",attrs:{title:"Edit"},on:{click:function(n){return t.edit(e)}}},[n("i",{staticClass:"fa fa-pencil"})]),t._v(" "),t.user.id!==e.id?n("button",{staticClass:"button btn btn-danger",attrs:{title:"Delete"},on:{click:function(n){return t.deleteClient(e)}}},[n("i",{staticClass:"fa fa-trash"})]):t._e()])])})),0)])])]):t._e()],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("thead",{staticClass:"table_head_snap"},[n("tr",[n("th",[t._v("User")]),t._v(" "),n("th",[t._v("Role")]),t._v(" "),n("th",[t._v("Last Login")]),t._v(" "),n("th",{staticClass:"user-actions text-right"},[t._v("Actions")])])])}],!1,null,"2a0f9f75",null).exports;function S(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function E(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?S(Object(n),!0).forEach((function(e){T(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function T(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const O={name:"client-settings",components:{BusinessInfo:d,Timezone:a.A,UserDetails:r.A,Password:o.A,ClientUsers:C},mixins:[i.A],props:["links","user","userSettings","store","timezones","users","addedUsers","roles","canManageStore","canManageAdmins"],data:function(){return{storeData:{client_name:null,phone:null,email:null,address:null},userData:{name:null,email:null}}},methods:{inviteClient:function(){var t=this;this.fetching=!0,axios.post("/client-manager/invite",{email:this.userData.email}).then((function(e){t.successNotice("Invitation has been sent.")})).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))},updateClientInfo:function(){var t=this;this.fetching=!0,axios.post(this.links.update_client_info,this.storeData).then((function(e){t.successNotice("Client Information updated.")})).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))}},mounted:function(){this.storeData=E({},this.store),this.userData=E({},this.user)}};const k=(0,u.A)(O,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"component_container change_password"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("div",{staticClass:"list_container p-2 p-lg-5 p-md-3"},[t.store.completed_at?t._e():n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("h4",{staticClass:"mb-4"},[t._v("Invite Client")]),t._v(" "),n("form",{on:{submit:function(e){return e.preventDefault(),t.inviteClient.apply(null,arguments)}}},[n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"client-email"}},[t._v("Email")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.userData.email,expression:"userData.email"}],staticClass:"form-control",attrs:{type:"email",name:"email",id:"client-email",required:""},domProps:{value:t.userData.email},on:{input:function(e){e.target.composing||t.$set(t.userData,"email",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"mt-4 text-right"},[n("button",{staticClass:"button btn btn-primary",attrs:{type:"submit",disabled:t.fetching}},[t._v("Send Login Link")])])])])]),t._v(" "),t.store.completed_at?t._e():n("hr"),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("h4",[t._v("Account Details")]),t._v(" "),n("user-details",{attrs:{user:t.user}})],1),t._v(" "),n("div",{staticClass:"col-md-6"},[n("h4",[t._v("Client Information")]),t._v(" "),n("div",{staticClass:"form-group row align-items-center"},[n("label",{staticClass:"col-4 form-label",attrs:{for:"name"}},[t._v("Client Name")]),t._v(" "),n("div",{staticClass:"col-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.client_name,expression:"storeData.client_name"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Client Name",disabled:!t.canManageStore},domProps:{value:t.storeData.client_name},on:{input:function(e){e.target.composing||t.$set(t.storeData,"client_name",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row align-items-center"},[n("label",{staticClass:"col-4 form-label",attrs:{for:"map"}},[t._v("Address")]),t._v(" "),n("div",{staticClass:"col-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.address,expression:"storeData.address"}],staticClass:"form-control",attrs:{type:"text",id:"map",placeholder:"Please type your address",disabled:!t.canManageStore},domProps:{value:t.storeData.address},on:{input:function(e){e.target.composing||t.$set(t.storeData,"address",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row align-items-center"},[n("label",{staticClass:"col-4 form-label",attrs:{for:"email"}},[t._v("Email")]),t._v(" "),n("div",{staticClass:"col-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.email,expression:"storeData.email"}],staticClass:"form-control",attrs:{type:"text",id:"email",placeholder:"Email",disabled:!t.canManageStore},domProps:{value:t.storeData.email},on:{input:function(e){e.target.composing||t.$set(t.storeData,"email",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row align-items-center"},[n("label",{staticClass:"col-4 form-label",attrs:{for:"phone"}},[t._v("Phone")]),t._v(" "),n("div",{staticClass:"col-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.phone,expression:"storeData.phone"}],staticClass:"form-control",attrs:{type:"text",id:"phone",placeholder:"Phone",disabled:!t.canManageStore},domProps:{value:t.storeData.phone},on:{input:function(e){e.target.composing||t.$set(t.storeData,"phone",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"text-right"},[t.canManageStore?n("button",{staticClass:"button btn btn-primary",attrs:{type:"button",disabled:t.fetching},on:{click:t.updateClientInfo}},[t._v("Save\n              ")]):t._e()])])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("h4",[t._v("Change Password")]),t._v(" "),n("password")],1),t._v(" "),n("div",{staticClass:"col-md-6"},[n("h4",[t._v("Change Timezone")]),t._v(" "),n("timezone",{attrs:{"user-settings":t.userSettings,timezones:t.timezones}})],1)]),t._v(" "),n("hr"),t._v(" "),t.canManageAdmins?n("client-users",{attrs:{user:t.user,users:t.users,"added-users":t.addedUsers,roles:t.roles}}):t._e()],1)])])])}),[],!1,null,null,null).exports},7376:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const i={name:"password",mixins:[n(8858).A],data:function(){return{current_password:null,new_password:null,new_confirm_password:null}},methods:{reset:function(){this.current_password=null,this.new_password=null,this.new_confirm_password=null},update:function(){var t=this;this.fetching=!0,axios.post("/settings/password",{current_password:this.current_password,new_password:this.new_password,new_confirm_password:this.new_confirm_password}).then((function(e){t.reset(),t.successNotice("Password Changed.")})).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))}}};const r=(0,n(4486).A)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("form",{on:{submit:function(e){return e.preventDefault(),t.update.apply(null,arguments)}}},[n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"password"}},[t._v("Current Password")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.current_password,expression:"current_password"}],staticClass:"form-control",attrs:{id:"password",type:"password",name:"current_password",required:""},domProps:{value:t.current_password},on:{input:function(e){e.target.composing||(t.current_password=e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"new_password"}},[t._v("New Password")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.new_password,expression:"new_password"}],staticClass:"form-control",attrs:{id:"new_password",type:"password",name:"new_password",required:""},domProps:{value:t.new_password},on:{input:function(e){e.target.composing||(t.new_password=e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"new_confirm_password"}},[t._v("New Confirm Password")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.new_confirm_password,expression:"new_confirm_password"}],staticClass:"form-control",attrs:{id:"new_confirm_password",type:"password",name:"new_confirm_password",required:""},domProps:{value:t.new_confirm_password},on:{input:function(e){e.target.composing||(t.new_confirm_password=e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"text-right"},[n("button",{staticClass:"button btn btn-primary",attrs:{type:"submit",disabled:t.fetching}},[t._v("Save")])])])])}),[],!1,null,null,null).exports},8939:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const o={name:"timezone",mixins:[n(8858).A],props:["userSettings","timezones"],data:function(){return{settings:{}}},computed:{timezoneOptions:function(){var t=this,e=[];return Object.keys(this.timezones).forEach((function(n){e.push({id:n,label:t.timezones[n]})})),e}},methods:{update:function(){var t,e=this;this.fetching=!0,axios.put("/user-settings",{timezone:null!==(t=this.settings.timezone)&&void 0!==t?t:null}).then((function(t){e.successNotice("Timezone Updated.")})).catch((function(t){e.alertErrors(t.response.data)})).finally((function(){e.fetching=!1}))}},mounted:function(){this.settings=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this.userSettings)}};const a=(0,n(4486).A)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"user-timezone"}},[t._v("Timezone")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("treeselect",{attrs:{id:"user-timezone",options:t.timezoneOptions,clearable:!0,multiple:!1,placeholder:"Select Timezone",required:""},model:{value:t.settings.timezone,callback:function(e){t.$set(t.settings,"timezone",e)},expression:"settings.timezone"}})],1)]),t._v(" "),n("div",{staticClass:"text-right"},[n("button",{staticClass:"button btn btn-primary",attrs:{type:"button",disabled:t.fetching},on:{click:t.update}},[t._v("Save")])])])}),[],!1,null,null,null).exports},4297:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const o={name:"user-details",props:["user"],mixins:[n(8858).A],data:function(){return{editUser:!1,userData:{name:null,email:null},password:null}},methods:{cancelEdit:function(){this.editUser=!1,this.password=null},update:function(){var t=this;this.fetching=!0,axios.post("/settings/profile",{name:this.userData.name,email:this.userData.email,password:this.password}).then((function(e){t.cancelEdit(),t.successNotice("Details Updated.")})).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))}},mounted:function(){this.userData=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this.user)}};const a=(0,n(4486).A)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.editUser?[n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"user-name"}},[t._v("Name")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.userData.name,expression:"userData.name"}],staticClass:"form-control",attrs:{type:"text",id:"user-name",required:""},domProps:{value:t.userData.name},on:{input:function(e){e.target.composing||t.$set(t.userData,"name",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"user-email"}},[t._v("Email")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.userData.email,expression:"userData.email"}],staticClass:"form-control",attrs:{type:"text",id:"user-email",required:""},domProps:{value:t.userData.email},on:{input:function(e){e.target.composing||t.$set(t.userData,"email",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"confirm-password"}},[t._v("Current Password")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],staticClass:"form-control",attrs:{id:"confirm-password",type:"password",name:"confirm-password",required:""},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"text-right"},[n("button",{staticClass:"button btn btn-secondary",on:{click:t.cancelEdit}},[t._v("Cancel")]),t._v(" "),n("button",{staticClass:"button btn btn-primary",attrs:{disabled:t.fetching},on:{click:t.update}},[t._v("Save")])])]:[n("div",{staticClass:"detail-item-wrapper"},[n("div",{staticClass:"detail-item-label"},[t._v("Name:")]),t._v(" "),n("div",[t._v(t._s(t.userData.name))])]),t._v(" "),t.userData.email?n("div",{staticClass:"detail-item-wrapper"},[n("div",{staticClass:"detail-item-label"},[t._v("Email:")]),t._v(" "),n("div",[t._v(t._s(t.userData.email))])]):t._e(),t._v(" "),n("div",{staticClass:"text-right"},[n("button",{staticClass:"button btn btn-primary",on:{click:function(e){t.editUser=!0}}},[t._v("Edit")])])]],2)}),[],!1,null,"f2a607e4",null).exports},4690:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var i=n(6931),r=n(8858),o=n(7809),a=n(3029);function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var l=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)},n=[{key:"getQueryParams",value:function(){var t=new URLSearchParams(window.location.search);return Object.fromEntries(t.entries())}}],(e=null)&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();const c={name:"user-settings",mixins:[r.A,o.A],props:{store:{type:Object,default:null},ownerSettings:{type:Object,default:null},canManageStore:{type:Boolean,default:!1},isClient:{type:Boolean,default:!1}},components:{Loader:i.A},data:function(){return{isReady:!1,fbLock:!0,gaLock:!0}},computed:{storeModel:function(){return a.A.query().first()},activeTab:function(){return l.getQueryParams().active},mondayEnabled:function(){return this.isClient?this.storeModel.monday_enabled:this.storeModel.monday_enabled&&this.ownerSettings.monday_enabled}},methods:{updateStoreSetting:function(t){var e,n,i,r=this;this.updateStore((e={},n=t,i=this.storeModel[t],n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e)).then((function(t){r.successNotice("Settings have been updated.")}))},updateFbPixel:function(){var t=this;this.updateStore({fb_pixel_on:this.storeModel.fb_pixel_on,fb_pixel_code:this.storeModel.fb_pixel_code}).then((function(e){t.successNotice("Facebook Pixel integration has been updated.")}))},updateGA:function(){var t=this;this.updateStore({ga_on:this.storeModel.ga_on,ga_code:this.storeModel.ga_code}).then((function(e){t.successNotice("Google Analytics integration has been updated.")}))},updateStore:function(t){return this.$put("/customer-view/feature",t).then((function(t){a.A.create({data:t.data.data})}))}},created:function(){this.store&&a.A.create({data:this.store}),this.fetchUserSettings(),this.storeModel.monday_enabled&&this.fetchMonday()}};const u=(0,n(4486).A)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("b-tab",{attrs:{title:"Notification Settings"}},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[t.isReady?n("div",{staticClass:"list_container p-2 p-lg-5 p-md-3"},[n("h4",[t._v("Notification Settings")]),t._v(" "),n("b-form-checkbox",{attrs:{size:"lg",switch:""},on:{change:function(e){return t.updateSetting("notification_enabled")}},model:{value:t.model.notification_enabled,callback:function(e){t.$set(t.model,"notification_enabled",e)},expression:"model.notification_enabled"}},[t._v("\n            New enquiry email notification\n          ")])],1):t._e()])])]),t._v(" "),t.canManageStore?n("b-tab",{attrs:{title:"Integration Settings",active:"integration"===this.activeTab}},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[t.isReady?n("div",{staticClass:"list_container p-2 p-lg-5 p-md-3"},[n("h4",[t._v("Integration Settings")]),t._v(" "),t.storeModel.xero_enabled?n("b-form-checkbox",{attrs:{size:"lg",switch:""},on:{change:function(e){return t.updateSetting("xero_enabled")}},model:{value:t.model.xero_enabled,callback:function(e){t.$set(t.model,"xero_enabled",e)},expression:"model.xero_enabled"}},[t._v("\n            Xero integration\n          ")]):t._e(),t._v(" "),t.mondayEnabled?[n("b-form-checkbox",{attrs:{size:"lg",switch:""},on:{change:function(e){return t.updateSetting("monday_enabled")}},model:{value:t.model.monday_enabled,callback:function(e){t.$set(t.model,"monday_enabled",e)},expression:"model.monday_enabled"}},[t._v("\n              Monday integration\n            ")]),t._v(" "),t.model.monday_enabled&&t.monday_install?n("div",{staticClass:"col-6 my-3"},[t.monday?n("h4",[t._v("Installed")]):n("div",[n("h4",[t._v("Installation")]),t._v(" "),n("ol",{staticClass:"pl-4"},[n("li",[t._v("Install the app.")]),t._v(" "),n("li",[t._v("Go to a board with prepared table.")]),t._v(" "),n("li",[t._v('Click integrate and search for "celect".')]),t._v(" "),n("li",[t._v("Click use template.")]),t._v(" "),n("li",[t._v("Login or select account.")]),t._v(" "),n("li",[t._v("And eventually connect fields in table.")])]),t._v(" "),n("a",{staticClass:"btn btn-primary",attrs:{href:t.monday_install,target:"_blank"}},[t._v("Install app")])])]):t._e()]:t._e(),t._v(" "),t.storeModel.fb_pixel_enabled?[n("b-form-checkbox",{attrs:{size:"lg",switch:""},on:{change:function(e){return t.updateStoreSetting("fb_pixel_on")}},model:{value:t.storeModel.fb_pixel_on,callback:function(e){t.$set(t.storeModel,"fb_pixel_on",e)},expression:"storeModel.fb_pixel_on"}},[t._v("\n              Facebook Pixel integration\n            ")]),t._v(" "),t.storeModel.fb_pixel_on?n("div",{staticClass:"row mt-3"},[n("div",{staticClass:"col-6"},[n("div",{staticClass:"form-group"},[n("label",{staticClass:"col-form-label",attrs:{for:"fb-pixel-code"}},[t._v("Facebook Pixel code\n                    "),n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.fbLock=!t.fbLock}}},[t.fbLock?n("i",{staticClass:"fa fa-lock"}):n("i",{staticClass:"fa fa-unlock"})])]),t._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.storeModel.fb_pixel_code,expression:"storeModel.fb_pixel_code"}],staticClass:"form-control",attrs:{name:"fb_pixel_code",id:"fb-pixel-code",rows:"5",disabled:t.fbLock},domProps:{value:t.storeModel.fb_pixel_code},on:{input:function(e){e.target.composing||t.$set(t.storeModel,"fb_pixel_code",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"text-right"},[n("button",{staticClass:"btn btn-primary",on:{click:function(e){return e.preventDefault(),t.updateFbPixel.apply(null,arguments)}}},[t._v("Save")])])])]):t._e()]:t._e(),t._v(" "),t.storeModel.ga_enabled?[n("b-form-checkbox",{attrs:{size:"lg",switch:""},on:{change:function(e){return t.updateStoreSetting("ga_on")}},model:{value:t.storeModel.ga_on,callback:function(e){t.$set(t.storeModel,"ga_on",e)},expression:"storeModel.ga_on"}},[t._v("\n              Google Analytics integration\n            ")]),t._v(" "),t.storeModel.ga_on?n("div",{staticClass:"row mt-3"},[n("div",{staticClass:"col-6"},[n("div",{staticClass:"form-group"},[n("label",{staticClass:"col-form-label",attrs:{for:"ga-code"}},[t._v("Google Analytics code\n                    "),n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.gaLock=!t.gaLock}}},[t.gaLock?n("i",{staticClass:"fa fa-lock"}):n("i",{staticClass:"fa fa-unlock"})])]),t._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.storeModel.ga_code,expression:"storeModel.ga_code"}],staticClass:"form-control",attrs:{name:"ga_code",id:"ga-code",rows:"5",disabled:t.gaLock},domProps:{value:t.storeModel.ga_code},on:{input:function(e){e.target.composing||t.$set(t.storeModel,"ga_code",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"text-right"},[n("button",{staticClass:"btn btn-primary",on:{click:function(e){return e.preventDefault(),t.updateGA.apply(null,arguments)}}},[t._v("Save")])])])]):t._e()]:t._e()],2):t._e()])])]):t._e()],1)}),[],!1,null,null,null).exports},1414:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>S});var i=n(432),r=n.n(i),o=n(4953),a=n(8858),s=n(204),l=n(2922),c=n(8170),u=n(2985),d=n(7342),h=n(5009);function p(t){return p="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},p(t)}function f(){f=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var r=e&&e.prototype instanceof d?e:d,o=Object.create(r.prototype),a=new E(i||[]);return o._invoke=function(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return O()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=c(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var u={};function d(){}function h(){}function m(){}var v={};s(v,r,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==e&&n.call(b,r)&&(v=b);var y=m.prototype=d.prototype=Object.create(v);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(r,o,a,s){var l=c(t[r],t,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==p(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(d).then((function(t){u.value=t,a(u)}),(function(t){return i("throw",t,a,s)}))}s(l.arg)}var r;this._invoke=function(t,n){function o(){return new e((function(e,r){i(t,n,e,r)}))}return r=r?r.then(o,o):o()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var i=c(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,u;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function T(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=m,s(y,"constructor",m),s(m,"constructor",h),h.displayName=s(m,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,a,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},_(w.prototype),s(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new w(l(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(y),s(y,a,"Generator"),s(y,r,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return a.type="throw",a.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}const y={name:"branch-step",props:{model:{type:Object},height:{type:Number,default:400}},components:{scroll:s.A,Value:l.A,BranchSteps:c.A,draggable:r()},mixins:[a.A],data:function(){return{editField:{name:!1,title:!1,image:!1},step:{name:null,title:null,image:null,order:null,parent_id:null,active:null,is_favorite:!1,autoselect:!0,show_continue:!0,display_type:"plain",description_type:"flip-y",min_values:1,max_values:1,card_width:null,card_height:null,card_scale:100,is_branch:!1},image_zoom:null,image_pitch:null,image_yaw:null,value:{step_id:null,name:null},showForm:!1,showValueForm:!1,loading:!1,uploading:!1,ready:!1,maxFav:3,viewer:null,formHeight:0,showVariations:!0}},watch:{"step.min_values":function(t,e){t>this.values.length?this.step.min_values=this.values.length||1:this.step.min_values=t<0?0:t,this.update({min_values:this.step.min_values})},"step.max_values":function(t,e){t>this.values.length?this.step.max_values=this.values.length||1:this.step.max_values=t<1?1:t,this.update({max_values:this.step.max_values})},"step.card_size":function(){var t=this;setTimeout((function(){t.$refs.form&&(t.formHeight=t.$refs.form.clientHeight)}),500)},"step.card_width":function(t,e){this.update({card_width:this.step.card_width})},"step.card_height":function(t,e){this.update({card_height:this.step.card_height})},"step.card_scale":function(t,e){this.step.card_scale=t>200?200:t<1?1:t,this.update({card_scale:this.step.card_scale})},globalShowVariations:function(t,e){this.showVariations=t}},computed:{children:function(){return u.A.query().where("parent_id",this.model.id).get()},inGroup:function(){return this.step.parent_id||this.children.length},canReorder:function(){return this.reordering},canManage:function(){return this.$store.state.can_manage},grouping:function(){return this.$store.state.grouping},reordering:function(){return this.$store.state.reordering},globalShowVariations:function(){return this.$store.state.show_variations},imagePositionChanged:function(){return null!==this.step.image_zoom||null!==this.step.image_pitch||null!==this.step.image_yaw},imagePositionTitle:function(){return this.imagePositionChanged?"Update image position":"Set image position"},canEdit:function(){return this.canManage&&!this.saving},parent:function(){return u.A.query().where("id",this.step.parent_id).with("variation_images").first()},isAfterBranch:function(){return!!this.prevSteps.length&&!!this.prevSteps.filter((function(t){return t.is_branch})).length},prevSteps:function(){var t,e=this;return u.A.query().where((function(t){return t.order<e.model.order})).where("parent_id",null).where("branch_id",null!==(t=this.model.branch_id)&&void 0!==t?t:null).orderBy("order","desc").get()},next:function(){var t,e=this;return u.A.query().where((function(t){return t.order>e.model.order})).where("parent_id",null).where("branch_id",null!==(t=this.model.branch_id)&&void 0!==t?t:null).orderBy("order","asc").first()},values:{get:function(){return d.A.query().with("images").with("branch_steps").where("step_id",this.model.id).orderBy("order").get()},set:function(t){this.updateValueOrder(t)}},favCount:function(){var t;return u.A.query().where("is_favorite",!0).where("branch_id",null!==(t=this.model.branch_id)&&void 0!==t?t:null).get().length},variationImages:function(){var t=this.values.map((function(t){return t.id}));return h.A.query().where((function(e){return t.includes(e.value_id)})).get()},panorama:function(){if("panorama"===this.step.display_type){var t;if(this.step.parent_id){var e;if(this.parent.panorama)return this.parent.panorama;if(null!==(e=this.parent.variation_images)&&void 0!==e&&e.length)return this.parent.variation_images[0].panorama}if(this.step.panorama)return this.step.panorama;if(null!==(t=this.variationImages)&&void 0!==t&&t.length)return this.variationImages[0].panorama}return null},panoramaToggleTitle:function(){return this.step.show_panorama_tooltip?"Turn off 360 view tooltip":"Turn on 360 view tooltip"},scrollHeight:function(){return this.showForm?this.height-this.formHeight:this.height}},methods:{toggleForm:function(){this.showForm=!this.showForm},massCompatible:function(t){var e=this;this.confirm((function(){e.loading=!0,axios.post("/step-builder/".concat(e.model.id,"/mass-compatible"),{compatible:t}).then((function(t){window.location.reload()})).catch((function(t){e.alertErrors(t.response.data)})).finally((function(){e.loading=!1}))}))},togglePanoramaTooltip:function(){this.update({show_panorama_tooltip:!this.step.show_panorama_tooltip})},resetPosition:function(){this.image_zoom=null,this.image_pitch=null,this.image_yaw=null,this.viewer.animate({zoom:50,pitch:0,yaw:0})},savePosition:function(){this.$bvModal.hide("panorama-modal-".concat(this.model.id)),this.update({image_zoom:this.image_zoom,image_pitch:this.image_pitch,image_yaw:this.image_yaw})},showPanoramaViewer:function(){var t,e,n,i=this;this.$bvModal.show("panorama-modal-".concat(this.model.id)),this.image_zoom=null!==(t=this.step.image_zoom)&&void 0!==t?t:null,this.image_pitch=null!==(e=this.step.image_pitch)&&void 0!==e?e:null,this.image_yaw=null!==(n=this.step.image_yaw)&&void 0!==n?n:null,setTimeout((function(){i.viewer=i.initPanoramaViewer(i.$refs.panorama,i.panorama,{zoom:i.image_zoom,pitch:i.image_pitch,yaw:i.image_yaw}),i.viewer.addEventListener("position-updated",(function(t){i.image_pitch=t.position.pitch.toFixed(5),i.image_yaw=t.position.yaw.toFixed(5)})),i.viewer.addEventListener("zoom-updated",(function(t){i.image_zoom=t.zoomLevel.toFixed(0)}))}),100)},upload:function(t){var e=this,n=new FormData;n.append("image",t.target.files[0]),this.uploading=!0,axios.post("/step-builder/".concat(this.model.id,"/upload"),n).then((function(t){u.A.update({where:e.model.id,data:t.data.data}),e.step=t.data.data})).catch((function(t){e.alertErrors(t.response.data)})).finally((function(){e.uploading=!1}))},deleteImage:function(){var t=this;this.confirm((function(){axios.delete("/step-builder/".concat(t.model.id,"/image")).then((function(e){u.A.update({where:t.model.id,data:e.data.data}),t.step=e.data.data})).catch((function(e){t.alertErrors(e.response.data)}))}))},toggleBranch:function(){var t=this;this.step.is_branch?this.confirm((function(){t.update({is_branch:!1})})):this.update({is_branch:!0})},toggleShowInQuote:function(){this.update({show_in_quote:!this.step.show_in_quote})},toggleShowImageInQuote:function(){this.update({show_image_in_quote:!this.step.show_image_in_quote})},toggleShowPriceInQuote:function(){this.update({show_price_in_quote:!this.step.show_price_in_quote})},toggleAutoselect:function(){this.update({autoselect:!this.step.autoselect})},toggleFavorite:function(){this.update({is_favorite:!this.step.is_favorite})},updateValueOrder:function(t){var e=this;if(t.length){var n=[];t.forEach((function(t,e){n.push({id:t.id,order:e}),d.A.update({where:t.id,data:{order:e}})})),axios.post("/values/reorder",{order:n}).then((function(t){t.data.data.forEach((function(t){d.A.update({where:t.id,data:t})}))})).catch((function(t){e.alertErrors(t.response.data)}))}},updateDescriptionType:function(){this.update({description_type:this.step.description_type})},toggleMainImageMobile:function(t){this.step.main_image_mobile=t,this.update({main_image_mobile:t})},toggleMainImageDesktop:function(t){this.step.main_image_desktop=t,this.update({main_image_desktop:t})},toggleStatus:function(t){this.step.active=t,this.update({active:t})},update:(0,o.debounce)((function(t){this.ready&&(t&&u.A.update({where:this.model.id,data:t}),this.save(t))}),500),deleteStep:function(){var t=this;this.confirm((function(){u.A.query().where((function(e){return e.order>t.model.order})).get();u.A.update({where:function(e){return e.parent_id===t.model.id},data:{parent_id:null}}),u.A.delete(t.model.id),axios.delete("/step-builder/".concat(t.model.id)).then((function(t){})).catch((function(e){t.alertErrors(e.response.data)}))}))},getPrevStep:function(){var t=this,e=u.A.query().where((function(e){return e.order<t.model.order})).where("parent_id",null).orderBy("order","desc");return this.model.branch_id?e.where("branch_id",this.model.branch_id):e.where("branch_id",null),e.first()},group:function(){var t=this,e=this.getPrevStep(),n=e.parent_id?e.parent_id:e.id;this.save({parent_id:n},(function(){u.A.update({where:function(e){return e.parent_id===t.model.id},data:{parent_id:n}})}))},ungroup:function(){var t=this;this.save({parent_id:null},(function(){u.A.update({where:function(e){return e.parent_id===t.step.parent_id&&e.order>t.model.order},data:{parent_id:t.model.id}})}))},createValue:function(){var t,e=this;return(t=f().mark((function t(){var n;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.value.name){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,d.A.insert({data:v(v({},e.value),{prices:[{price:0}]})});case 4:n=t.sent,e.showValueForm=!1,e.showVariations=!0,axios.post("/values",e.value).then((function(t){d.A.insert({data:t.data.data}),d.A.delete(n.values[0].id)})).catch((function(t){e.alertErrors(t.response.data)}));case 8:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){b(o,i,r,a,s,"next",t)}function s(t){b(o,i,r,a,s,"throw",t)}a(void 0)}))})()},addValue:function(){var t=this;this.showValueForm=!0,this.resetValue(),this.$nextTick((function(){return t.$refs.valueName.focus()}))},resetValue:function(){this.value={step_id:this.model.id,name:null}},cancel:function(t){this.editField[t]=!1},edit:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.editField[t]=!0,n&&this.$nextTick((function(){return e.$refs[t].focus()}))},saveField:function(t){var e=this;this.save(null,(function(){e.editField[t]=!1}))},save:function(t,e){var n=this,i={name:this.step.name,title:this.step.title,parent_id:this.step.parent_id,order:this.model.order,active:this.step.active,main_image_mobile:this.step.main_image_mobile,main_image_desktop:this.step.main_image_desktop,display_type:this.step.display_type,description_type:this.step.description_type,is_favorite:this.step.is_favorite,autoselect:this.step.autoselect,show_continue:this.step.show_continue,show_in_quote:this.step.show_in_quote,show_image_in_quote:this.step.show_image_in_quote,show_price_in_quote:this.step.show_price_in_quote,show_panorama_tooltip:this.step.show_panorama_tooltip,min_values:this.step.min_values,max_values:this.step.max_values,card_size:this.step.card_size,card_width:this.step.card_width,card_height:this.step.card_height,card_scale:this.step.card_scale};t&&(i=v(v({},i),t)),axios.post("/step-builder/".concat(this.model.id),i).then((function(t){e&&e(),u.A.update({where:n.model.id,data:t.data.data}),n.step=t.data.data})).catch((function(t){n.alertErrors(t.response.data)})).finally((function(){}))},updateDisplayType:function(){this.update({display_type:this.step.display_type})},updateCardSize:function(){this.update({card_size:this.step.card_size})}},mounted:function(){var t=this;this.value.step_id=this.model.id,this.step=v({},this.model),setTimeout((function(){t.ready=!0}),1e3),this.$refs.form&&(this.formHeight=this.$refs.form.clientHeight),this.showVariations=this.globalShowVariations}};var _=n(5072),w=n.n(_),x=n(1690),C={insert:"head",singleton:!1};w()(x.A,C);x.A.locals;const S=(0,n(4486).A)(y,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"branch-step",class:{grouped:!!t.step.parent_id,reordering:t.canReorder}},[i("div",{staticClass:"step",class:{grouped:!!t.step.parent_id,inactive:!t.step.active,"root-branch":t.step.is_branch,inaccessible:t.isAfterBranch}},[i("div",{staticClass:"step-controls step-description-type"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.step.description_type,expression:"step.description_type"}],attrs:{id:"step-"+t.model.id+"-description-y",type:"radio",name:"step_"+t.model.id+"_description_type",value:"flip-y",disabled:!t.canEdit},domProps:{checked:t._q(t.step.description_type,"flip-y")},on:{change:[function(e){return t.$set(t.step,"description_type","flip-y")},t.updateDescriptionType]}}),t._v(" "),i("label",{attrs:{for:"step-"+t.model.id+"-description-y",title:"Description display type: Horizontal flip"}},[i("i",{staticClass:"fa fa-arrows-h",attrs:{"aria-hidden":"true"}})]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.step.description_type,expression:"step.description_type"}],attrs:{id:"step-"+t.model.id+"-description-x",type:"radio",name:"step_"+t.model.id+"_description_type",value:"flip-x",disabled:!t.canEdit},domProps:{checked:t._q(t.step.description_type,"flip-x")},on:{change:[function(e){return t.$set(t.step,"description_type","flip-x")},t.updateDescriptionType]}}),t._v(" "),i("label",{attrs:{for:"step-"+t.model.id+"-description-x",title:"Description display type: Vertical flip"}},[i("i",{staticClass:"fa fa-arrows-v",attrs:{"aria-hidden":"true"}})]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.step.description_type,expression:"step.description_type"}],attrs:{id:"step-"+t.model.id+"-description-popup",type:"radio",name:"step_"+t.model.id+"_description_type",value:"popup",disabled:!t.canEdit},domProps:{checked:t._q(t.step.description_type,"popup")},on:{change:[function(e){return t.$set(t.step,"description_type","popup")},t.updateDescriptionType]}}),t._v(" "),i("label",{attrs:{for:"step-"+t.model.id+"-description-popup",title:"Description display type: Popup"}},[i("i",{staticClass:"fa fa-expand",attrs:{"aria-hidden":"true"}})])]),t._v(" "),i("div",{staticClass:"step-controls card-size"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.step.card_size,expression:"step.card_size"}],attrs:{id:"step-"+t.model.id+"-card-size-sm",type:"radio",name:"step_"+t.model.id+"_card_size",value:"sm",disabled:!t.canEdit},domProps:{checked:t._q(t.step.card_size,"sm")},on:{change:[function(e){return t.$set(t.step,"card_size","sm")},t.updateCardSize]}}),t._v(" "),i("label",{attrs:{for:"step-"+t.model.id+"-card-size-sm",title:"Variation card size: Small"}},[t._v("S")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.step.card_size,expression:"step.card_size"}],attrs:{id:"step-"+t.model.id+"-card-size-md",type:"radio",name:"step_"+t.model.id+"_card_size",value:"md",disabled:!t.canEdit},domProps:{checked:t._q(t.step.card_size,"md")},on:{change:[function(e){return t.$set(t.step,"card_size","md")},t.updateCardSize]}}),t._v(" "),i("label",{attrs:{for:"step-"+t.model.id+"-card-size-md",title:"Variation card size: Medium"}},[t._v("M")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.step.card_size,expression:"step.card_size"}],attrs:{id:"step-"+t.model.id+"-card-size-lg",type:"radio",name:"step_"+t.model.id+"_card_size",value:"lg",disabled:!t.canEdit},domProps:{checked:t._q(t.step.card_size,"lg")},on:{change:[function(e){return t.$set(t.step,"card_size","lg")},t.updateCardSize]}}),t._v(" "),i("label",{attrs:{for:"step-"+t.model.id+"-card-size-lg",title:"Variation card size: Large"}},[t._v("L")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.step.card_size,expression:"step.card_size"}],attrs:{id:"step-"+t.model.id+"-card-size-custom",type:"radio",name:"step_"+t.model.id+"_card_size",value:"cs",disabled:!t.canEdit},domProps:{checked:t._q(t.step.card_size,"cs")},on:{change:[function(e){return t.$set(t.step,"card_size","cs")},t.updateCardSize]}}),t._v(" "),i("label",{attrs:{for:"step-"+t.model.id+"-card-size-custom",title:"Variation card size: Custom"}},[t._v("C")])]),t._v(" "),i("div",{staticClass:"step-controls step-display-type"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.step.display_type,expression:"step.display_type"}],attrs:{id:"step-"+t.model.id+"-display-type-plain",type:"radio",name:"step_"+t.model.id+"_display_type",value:"plain",disabled:!t.canEdit},domProps:{checked:t._q(t.step.display_type,"plain")},on:{change:[function(e){return t.$set(t.step,"display_type","plain")},t.updateDisplayType]}}),t._v(" "),i("label",{attrs:{for:"step-"+t.model.id+"-display-type-plain",title:"Display type: plain"}},[t._v("\n        P\n      ")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.step.display_type,expression:"step.display_type"}],attrs:{id:"step-"+t.model.id+"-display-type-color",type:"radio",name:"step_"+t.model.id+"_display_type",value:"color",disabled:!t.canEdit},domProps:{checked:t._q(t.step.display_type,"color")},on:{change:[function(e){return t.$set(t.step,"display_type","color")},t.updateDisplayType]}}),t._v(" "),i("label",{attrs:{for:"step-"+t.model.id+"-display-type-color",title:"Display type: color"}},[t._v("\n        C\n      ")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.step.display_type,expression:"step.display_type"}],attrs:{id:"step-"+t.model.id+"-display-type-image",type:"radio",name:"step_"+t.model.id+"_display_type",value:"image",disabled:!t.canEdit},domProps:{checked:t._q(t.step.display_type,"image")},on:{change:[function(e){return t.$set(t.step,"display_type","image")},t.updateDisplayType]}}),t._v(" "),i("label",{attrs:{for:"step-"+t.model.id+"-display-type-image",title:"Display type: image"}},[i("i",{staticClass:"fa fa-image",attrs:{"aria-hidden":"true"}})]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.step.display_type,expression:"step.display_type"}],attrs:{id:"step-"+t.model.id+"-display-type-panorama",type:"radio",name:"step_"+t.model.id+"_display_type",value:"panorama",disabled:!t.canEdit},domProps:{checked:t._q(t.step.display_type,"panorama")},on:{change:[function(e){return t.$set(t.step,"display_type","panorama")},t.updateDisplayType]}}),t._v(" "),i("label",{attrs:{for:"step-"+t.model.id+"-display-type-panorama",title:"Display type: panorama"}},[t._v("\n        3D\n      ")]),t._v(" "),"panorama"===t.step.display_type?i("a",{staticClass:"toggle-panorama-tooltip",class:t.step.show_panorama_tooltip?"text-primary":"text-danger",attrs:{href:"#",title:t.panoramaToggleTitle},on:{click:function(e){return e.preventDefault(),t.togglePanoramaTooltip.apply(null,arguments)}}},[i("i",{staticClass:"fa fa-info"}),t._v(" "),t.step.show_panorama_tooltip?i("i",{staticClass:"fa fa-toggle-on"}):i("i",{staticClass:"fa fa-toggle-off"})]):t._e()]),t._v(" "),t.grouping&&t.model.order>1?i("div",{staticClass:"step-group"},[t.step.parent_id?i("a",{attrs:{href:"#",title:"Ungroup"},on:{click:function(e){return e.preventDefault(),t.ungroup.apply(null,arguments)}}},[i("i",{staticClass:"fa fa-lock"})]):i("a",{attrs:{href:"#",title:"Group"},on:{click:function(e){return e.preventDefault(),t.group.apply(null,arguments)}}},[i("i",{staticClass:"fa fa-unlock"})])]):t._e(),t._v(" "),t.canManage?i("div",{staticClass:"step-actions"},[t.step.main_image_mobile?i("a",{staticClass:"text-danger",attrs:{href:"#",title:"Hide main image on mobile"},on:{click:function(e){return e.preventDefault(),t.toggleMainImageMobile(0)}}},[i("i",{staticClass:"fa fa-mobile-retro",staticStyle:{"font-size":"18px"}})]):i("a",{staticClass:"text-primary",attrs:{href:"#",title:"Show main image on mobile"},on:{click:function(e){return e.preventDefault(),t.toggleMainImageMobile(1)}}},[i("i",{staticClass:"fa fa-mobile-retro",staticStyle:{"font-size":"18px"}})]),t._v(" "),t.step.main_image_desktop?i("a",{staticClass:"text-danger",attrs:{href:"#",title:"Hide main image on desktop"},on:{click:function(e){return e.preventDefault(),t.toggleMainImageDesktop(0)}}},[i("i",{staticClass:"fa fa-desktop",staticStyle:{"font-size":"14px"}})]):i("a",{staticClass:"text-primary",attrs:{href:"#",title:"Show main image on desktop"},on:{click:function(e){return e.preventDefault(),t.toggleMainImageDesktop(1)}}},[i("i",{staticClass:"fa fa-desktop",staticStyle:{"font-size":"14px"}})]),t._v(" "),t.step.active?i("a",{staticClass:"text-danger",attrs:{href:"#",title:"Make inactive"},on:{click:function(e){return e.preventDefault(),t.toggleStatus(0)}}},[i("i",{staticClass:"fa fa-eye-slash"})]):i("a",{staticClass:"text-primary",attrs:{href:"#",title:"Make active"},on:{click:function(e){return e.preventDefault(),t.toggleStatus(1)}}},[i("i",{staticClass:"fa fa-eye"})]),t._v(" "),i("a",{staticClass:"text-danger",attrs:{href:"#",title:"Delete step"},on:{click:function(e){return e.preventDefault(),t.deleteStep.apply(null,arguments)}}},[i("i",{staticClass:"fa fa-trash"})])]):t._e(),t._v(" "),i("h4",{staticClass:"step-header d-flex justify-content-between"},[i("span",{staticClass:"header"},[i("span",{staticClass:"step-name",class:{"text-info":t.model.is_draft},attrs:{title:t.step.name},on:{click:t.toggleForm}},[t._v(t._s(t.step.name))]),t._v(" "),t.reordering?i("span",{staticClass:"reordering-icons"},[t.step.is_branch?i("i",{staticClass:"fa fa-code-fork text-danger",attrs:{title:"Disable branch steps"},on:{click:t.toggleBranch}}):i("i",{staticClass:"fa fa-code-fork",attrs:{title:"Enable branch steps"},on:{click:t.toggleBranch}})]):t._e(),t._v(" "),i("span",{staticClass:"icons"},[t.step.is_branch?i("i",{staticClass:"fa fa-code-fork text-danger",attrs:{title:"Disable branch steps"},on:{click:t.toggleBranch}}):i("i",{staticClass:"fa fa-code-fork",attrs:{title:"Enable branch steps"},on:{click:t.toggleBranch}}),t._v(" "),t.step.is_favorite?i("i",{staticClass:"fa fa-star text-warning",attrs:{title:"Step selected as defining (max up to "+t.maxFav+")"},on:{click:t.toggleFavorite}}):t.favCount<t.maxFav?i("i",{staticClass:"fa fa-star",attrs:{title:"Make this step identifying (will be displayed in the enquiry list)"},on:{click:t.toggleFavorite}}):i("i",{staticClass:"fa fa-star",staticStyle:{color:"rgba(0, 0, 0, .2) !important"},attrs:{title:"You've reached the limit of the defining steps (max up to "+t.maxFav+")"}}),t._v(" "),t.step.show_in_quote?i("i",{attrs:{title:"Hide from quote"},on:{click:t.toggleShowInQuote}},[i("img",{staticClass:"mb-1",attrs:{src:"/images/icons/invoice.png",height:"18"}})]):i("span",{staticClass:"fa-stack",attrs:{title:"Show in quote"},on:{click:t.toggleShowInQuote}},[i("img",{staticClass:"mb-1",attrs:{src:"/images/icons/invoice.png",height:"18"}}),t._v(" "),i("i",{staticClass:"fa fa-ban fa-stack-2x text-danger"})]),t._v(" "),t.step.parent_id?t._e():[t.step.show_image_in_quote?i("i",{staticClass:"fa fa-image",attrs:{title:"Hide image from quote"},on:{click:t.toggleShowImageInQuote}}):i("span",{staticClass:"fa-stack",attrs:{title:"Show image in quote"},on:{click:t.toggleShowImageInQuote}},[i("i",{staticClass:"fa fa-image fa-stack-1x"}),t._v(" "),i("i",{staticClass:"fa fa-ban fa-stack-2x text-danger"})])],t._v(" "),t.step.show_price_in_quote?i("i",{staticClass:"fa fa-dollar",attrs:{title:"Hide price on summary page and quote"},on:{click:t.toggleShowPriceInQuote}}):i("span",{staticClass:"fa-stack",attrs:{title:"Show price on summary page and quote"},on:{click:t.toggleShowPriceInQuote}},[i("i",{staticClass:"fa fa-dollar fa-stack-1x"}),t._v(" "),i("i",{staticClass:"fa fa-ban fa-stack-2x text-danger"})]),t._v(" "),t.step.autoselect?i("i",{staticClass:"fa fa-check",attrs:{title:"Do not select first variation automatically"},on:{click:t.toggleAutoselect}}):i("span",{staticClass:"fa-stack",attrs:{title:"Automatically select first variation"},on:{click:t.toggleAutoselect}},[i("i",{staticClass:"fa fa-check fa-stack-1x"}),t._v(" "),i("i",{staticClass:"fa fa-ban fa-stack-2x text-danger"})]),t._v(" "),i("i",{staticClass:"fa fa-edit",on:{click:t.toggleForm}})],2)])]),t._v(" "),t.reordering?t._e():[i("div",{directives:[{name:"show",rawName:"v-show",value:t.showForm,expression:"showForm"}],ref:"form"},[t.editField.name?i("div",{staticClass:"input-group mb-1"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.step.name,expression:"step.name"}],ref:"name",staticClass:"form-control",attrs:{type:"text",placeholder:"Name",disabled:!t.canEdit},domProps:{value:t.step.name},on:{keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.saveField("name")},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.cancel("name")}],input:function(e){e.target.composing||t.$set(t.step,"name",e.target.value)}}}),t._v(" "),i("div",{staticClass:"input-group-append"},[t.canManage?i("button",{staticClass:"btn btn-primary",on:{click:function(e){return t.saveField("name")}}},[t._v("OK")]):t._e()])]):i("div",{staticClass:"step-title",on:{click:function(e){return t.edit("name")}}},[i("div",{staticClass:"d-flex justify-content-between"},[i("div",{staticClass:"title"},[t._v(t._s(t.step.name))]),t._v(" "),i("i",{staticClass:"fa fa-edit"})])]),t._v(" "),t.editField.title?i("div",{staticClass:"input-group mt-1"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.step.title,expression:"step.title"}],ref:"title",staticClass:"form-control",attrs:{type:"text",placeholder:"Add the user question",disabled:!t.canEdit},domProps:{value:t.step.title},on:{keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.saveField("title")},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.cancel("title")}],input:function(e){e.target.composing||t.$set(t.step,"title",e.target.value)}}}),t._v(" "),i("div",{staticClass:"input-group-append"},[t.canManage?i("button",{staticClass:"btn btn-primary",on:{click:function(e){return t.saveField("title")}}},[t._v("OK")]):t._e()])]):i("div",{staticClass:"step-title",on:{click:function(e){return t.edit("title")}}},[t.step.title?i("div",{staticClass:"d-flex justify-content-between"},[i("div",{staticClass:"title"},[t._v(t._s(t.step.title))]),t._v(" "),i("i",{staticClass:"fa fa-edit"})]):i("div",[i("i",{staticClass:"fa fa-plus"}),t._v(" Add the user question")])]),t._v(" "),t.editField.image?i("div",{staticClass:"step-image d-flex justify-content-between align-items-end"},[t.step.image?i("div",{staticClass:"image-wrapper"},[i("img",{attrs:{src:t.step.thumb,title:t.step.image,alt:t.step.image}}),t._v(" "),t.canManage?i("a",{staticClass:"delete-image text-danger",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.deleteImage.apply(null,arguments)}}},[i("i",{staticClass:"fa fa-trash"})]):t._e()]):[i("label",{staticClass:"upload-image",class:[t.uploading?"bg-gray rounded":""]},[i("img",{attrs:{src:n(155)}}),t._v(" "),i("input",{ref:"image",attrs:{type:"file",accept:".png, .jpg, .jpeg"},on:{change:t.upload}})]),t._v(" "),i("small",{staticClass:"align-self-baseline text-center"},[t._v("Recommended resolution for panorama: 5000x2500")])],t._v(" "),i("div",[i("button",{staticClass:"btn btn-outline-secondary",attrs:{disabled:t.uploading},on:{click:function(e){return t.cancel("image")}}},[t._v("Close")])])],2):t.canManage?i("div",{staticClass:"d-flex justify-content-between"},[t.step.parent_id?t._e():i("div",{staticClass:"step-title flex-fill",on:{click:function(e){return t.edit("image",!1)}}},[t.step.image?i("span",[i("i",{staticClass:"fa fa-edit"}),t._v(" Edit base image")]):i("span",[i("i",{staticClass:"fa fa-plus"}),t._v(" Set a base image")])]),t._v(" "),t.panorama?i("div",{staticClass:"step-title flex-fill",class:{"ml-2":!t.step.parent_id,"text-info":t.imagePositionChanged},on:{click:t.showPanoramaViewer}},[i("i",{staticClass:"fa fa-arrows-alt"}),t._v(" "+t._s(t.imagePositionTitle)+"\n          ")]):t._e()]):t._e(),t._v(" "),i("div",{staticClass:"d-flex align-items-center justify-content-between mt-2"},[i("div",{staticClass:"form-inline"},[i("div",{staticClass:"form-group mb-0"},[i("input",{directives:[{name:"model",rawName:"v-model.number",value:t.step.min_values,expression:"step.min_values",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",id:"min-"+t.model.id,step:"1",min:"0",max:"255",disabled:!t.canEdit},domProps:{value:t.step.min_values},on:{input:function(e){e.target.composing||t.$set(t.step,"min_values",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),i("label",{staticClass:"mb-0 ml-1",attrs:{for:"min-"+t.model.id}},[t._v("Min")])])]),t._v(" "),i("div",[t._v("Variation limit")]),t._v(" "),i("div",{staticClass:"form-inline"},[i("div",{staticClass:"form-group mb-0"},[i("label",{staticClass:"mb-0 mr-1",attrs:{for:"max-"+t.model.id}},[t._v("Max")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model.number",value:t.step.max_values,expression:"step.max_values",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",id:"max-"+t.model.id,step:"1",min:"0",max:"255",disabled:!t.canEdit},domProps:{value:t.step.max_values},on:{input:function(e){e.target.composing||t.$set(t.step,"max_values",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])])]),t._v(" "),i("div",{staticClass:"statuses"},[i("div",{staticClass:"align-items-center border-bottom d-flex justify-content-between mb-2 pb-2"},[i("button",{staticClass:"btn btn-primary",attrs:{disabled:t.loading},on:{click:function(e){return t.massCompatible(!0)}}},[t._v("Mass Compatible\n            ")]),t._v(" "),i("i",{staticClass:"fa fa-question-circle-o",attrs:{id:"tooltip-compatible-"+t.step.id}}),t._v(" "),i("b-tooltip",{attrs:{target:"tooltip-compatible-"+t.step.id}},[t._v('\n              Make all variations from this step compatible/incompatible with subsequent steps.\n              This way you do not have to manually select ("Edit price" tab) compatibility for all subsequent steps.\n            ')]),t._v(" "),i("button",{staticClass:"btn btn-danger",attrs:{disabled:t.loading},on:{click:function(e){return t.massCompatible(!1)}}},[t._v("Mass Incompatible\n            ")])],1),t._v(" "),i("b-form-checkbox",{attrs:{size:"sm",switch:""},on:{change:t.update},model:{value:t.step.active,callback:function(e){t.$set(t.step,"active",e)},expression:"step.active"}},[t._v("\n            Active\n          ")]),t._v(" "),i("b-form-checkbox",{attrs:{size:"sm",switch:""},on:{change:t.update},model:{value:t.step.main_image_mobile,callback:function(e){t.$set(t.step,"main_image_mobile",e)},expression:"step.main_image_mobile"}},[t._v("\n            Show main image on mobile\n          ")]),t._v(" "),i("b-form-checkbox",{attrs:{size:"sm",switch:""},on:{change:t.update},model:{value:t.step.main_image_desktop,callback:function(e){t.$set(t.step,"main_image_desktop",e)},expression:"step.main_image_desktop"}},[t._v("\n            Show main image on desktop\n          ")]),t._v(" "),t.step.is_favorite||t.favCount<t.maxFav?i("b-form-checkbox",{attrs:{size:"sm",switch:""},on:{change:t.update},model:{value:t.step.is_favorite,callback:function(e){t.$set(t.step,"is_favorite",e)},expression:"step.is_favorite"}},[t._v("\n            Is identifying "),i("i",{staticClass:"fa fa-question-circle-o",attrs:{id:"tooltip-favorite-"+t.step.id}}),t._v(" "),i("b-tooltip",{attrs:{target:"tooltip-favorite-"+t.step.id}},[t._v("will be displayed in the enquiry list")])],1):t._e(),t._v(" "),i("b-form-checkbox",{attrs:{size:"sm",switch:""},on:{change:t.update},model:{value:t.step.show_in_quote,callback:function(e){t.$set(t.step,"show_in_quote",e)},expression:"step.show_in_quote"}},[t._v("\n            Show in quote\n          ")]),t._v(" "),t.step.parent_id?t._e():i("b-form-checkbox",{attrs:{size:"sm",switch:""},on:{change:t.update},model:{value:t.step.show_image_in_quote,callback:function(e){t.$set(t.step,"show_image_in_quote",e)},expression:"step.show_image_in_quote"}},[t._v("\n            Show image in quote\n          ")]),t._v(" "),i("b-form-checkbox",{attrs:{size:"sm",switch:""},on:{change:t.update},model:{value:t.step.show_price_in_quote,callback:function(e){t.$set(t.step,"show_price_in_quote",e)},expression:"step.show_price_in_quote"}},[t._v("\n            Show price on summary page and quote\n          ")]),t._v(" "),i("b-form-checkbox",{attrs:{size:"sm",switch:""},on:{change:t.update},model:{value:t.step.autoselect,callback:function(e){t.$set(t.step,"autoselect",e)},expression:"step.autoselect"}},[t._v("\n            Autoselect first variation\n          ")]),t._v(" "),i("b-form-checkbox",{attrs:{size:"sm",switch:""},on:{change:t.update},model:{value:t.step.show_continue,callback:function(e){t.$set(t.step,"show_continue",e)},expression:"step.show_continue"}},[t._v("\n            Show continue button\n          ")]),t._v(" "),i("b-form-group",{staticClass:"mt-1",attrs:{label:"Display type"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.ariaDescribedby;return[i("b-form-radio-group",{attrs:{options:[{text:"Plain",value:"plain"},{text:"Color",value:"color"},{text:"Image",value:"image"},{text:"Panorama",value:"panorama"}],"aria-describedby":n,"button-variant":"outline-primary",buttons:""},on:{change:t.update},model:{value:t.step.display_type,callback:function(e){t.$set(t.step,"display_type",e)},expression:"step.display_type"}})]}}],null,!1,2399298385)}),t._v(" "),i("b-form-group",{attrs:{label:"Description display type"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.ariaDescribedby;return[i("b-form-radio-group",{attrs:{options:[{text:"Horizontal flip",value:"flip-y"},{text:"Vertical flip",value:"flip-x"},{text:"Popup",value:"popup"}],"aria-describedby":n,"button-variant":"outline-primary",buttons:""},on:{change:t.update},model:{value:t.step.description_type,callback:function(e){t.$set(t.step,"description_type",e)},expression:"step.description_type"}})]}}],null,!1,1149120442)}),t._v(" "),i("b-form-group",{staticClass:"mb-0",attrs:{label:"Variation card size"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.ariaDescribedby;return[i("b-form-radio-group",{attrs:{options:[{text:"Small",value:"sm"},{text:"Medium",value:"md"},{text:"Large",value:"lg"},{text:"Custom",value:"cs"}],"aria-describedby":n,"button-variant":"outline-primary",buttons:""},on:{change:t.update},model:{value:t.step.card_size,callback:function(e){t.$set(t.step,"card_size",e)},expression:"step.card_size"}})]}}],null,!1,4024163842)})],1),t._v(" "),"cs"===t.step.card_size?i("div",{staticClass:"custom-card-size"},[t._m(0),t._v(" "),["image","panorama","plain"].includes(t.step.display_type)?i("div",[i("div",{staticClass:"form-inline justify-content-between"},[i("div",{staticClass:"form-group mb-0"},[i("label",{attrs:{for:"custom-card-size-scale-"+t.model.id}},[t._v("Scale:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model.number",value:t.step.card_scale,expression:"step.card_scale",modifiers:{number:!0}}],staticClass:"form-control mx-1",attrs:{type:"number",id:"custom-card-size-scale-"+t.model.id,step:"1",min:"1",max:"200",disabled:!t.canEdit},domProps:{value:t.step.card_scale},on:{input:function(e){e.target.composing||t.$set(t.step,"card_scale",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}}),t._v("\n                %\n              ")])])]):i("div",[i("b",{staticClass:"text-danger"},[t._v("Not supported")])])]):t._e()]),t._v(" "),t.model.is_branch?t._e():i("div",[i("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.showVariations=!t.showVariations}}},[t._v("\n          Variations ("+t._s(t.values.length)+")\n\n          "),t.showVariations?i("i",{staticClass:"fa fa-caret-down"}):i("i",{staticClass:"fa fa-caret-up"})]),t._v(" "),t.showVariations?i("div",[t.values.length?i("scroll",{style:{height:t.scrollHeight+"px"}},[i("draggable",{staticClass:"values",model:{value:t.values,callback:function(e){t.values=e},expression:"values"}},t._l(t.values,(function(e){return i("value",{key:e.id,attrs:{model:e,step:t.step}})})),1)],1):t._e()],1):t._e()]),t._v(" "),t.showValueForm?i("div",{staticClass:"input-group mt-2"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.value.name,expression:"value.name"}],ref:"valueName",staticClass:"form-control",attrs:{type:"text",placeholder:"Add Variation"},domProps:{value:t.value.name},on:{keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.createValue.apply(null,arguments)},function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"]))return null;t.showValueForm=!1}],input:function(e){e.target.composing||t.$set(t.value,"name",e.target.value)}}}),t._v(" "),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"btn btn-primary",attrs:{disabled:!t.value.name},on:{click:t.createValue}},[t._v("OK")])])]):t.canManage?i("button",{staticClass:"btn w-100 btn-outline-primary my-2",on:{click:t.addValue}},[i("i",{staticClass:"fa fa-plus"}),t._v(" Add Variation\n      ")]):t._e()],t._v(" "),i("b-modal",{attrs:{id:"panorama-modal-"+t.model.id,"no-close-on-esc":""},scopedSlots:t._u([{key:"modal-title",fn:function(){return[i("div",{staticClass:"text-center"},[i("h4",[t._v("Set custom image position")])])]},proxy:!0},{key:"modal-footer",fn:function(){return[i("button",{staticClass:"btn btn-danger",attrs:{type:"button"},on:{click:t.resetPosition}},[t._v("Reset")]),t._v(" "),i("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:t.savePosition}},[t._v("Save")])]},proxy:!0}])},[t._v(" "),i("div",{ref:"panorama",staticStyle:{height:"300px"}}),t._v(" "),i("div",{staticClass:"d-flex mt-2"},[i("div",{staticClass:"border flex-fill p-2"},[t._v("Zoom: "+t._s(t.image_zoom?t.image_zoom:50))]),t._v(" "),i("div",{staticClass:"border flex-fill p-2 mx-1"},[t._v("Pitch: "+t._s(t.image_pitch?t.image_pitch:0))]),t._v(" "),i("div",{staticClass:"border flex-fill p-2"},[t._v("Yaw: "+t._s(t.image_yaw?t.image_yaw:0))])])])],2),t._v(" "),t.model.is_branch?i("div",{staticClass:"branch-step-wrapper"},t._l(t.values.sort((function(t,e){return t.order-e.order})),(function(e){return i("branch-steps",{key:e.id,attrs:{step:t.step,model:e}})})),1):t._e()])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",[n("b",[t._v("Custom Variation Card Size")])])}],!1,null,"6d58d31a",null).exports},8170:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var i=n(432),r=n.n(i),o=n(8858),a=n(3019),s=n(8894),l=n(2922),c=n(2985),u=n(7342);const d={name:"branch-steps",props:{model:{type:Object},step:{type:Object}},components:{draggable:r(),CreateStep:s.A,Value:l.A,"branch-step":function(){return Promise.resolve().then(n.bind(n,1414))}},mixins:[o.A,a.A],data:function(){return{branch_id:this.model.id}},computed:{canManage:function(){return this.$store.state.can_manage},branchSteps:{get:function(){return c.A.query().where("branch_id",this.model.id).orderBy("order").get()},set:function(t){this.reorder(t,this.model.id)}},siblings:function(){return u.A.query().where("step_id",this.step.id).get()}},methods:{moveSteps:function(){this.moveStepsToBranch(this.branchSteps.map((function(t){return t.id})))}}};const h=(0,n(4486).A)(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"d-flex pt-4 my-2"},[n("div",{staticClass:"branch-step"},[n("div",{staticClass:"step"},[n("value",{key:t.model.id,attrs:{model:t.model,step:t.step}})],1),t._v(" "),t.reordering?n("div",{staticClass:"mt-2 mr-4"},[n("label",{staticClass:"mb-0"},[t._v('Move steps from branch "'+t._s(t.model.name)+'" to branch:')]),t._v(" "),n("div",{staticClass:"input-group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.branch_id,expression:"branch_id"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.branch_id=e.target.multiple?n:n[0]}}},[n("option",{domProps:{value:null}},[t._v("Main")]),t._v(" "),t._l(t.siblings,(function(e){return n("option",{domProps:{value:e.id}},[t._v(t._s(e.name))])}))],2),t._v(" "),n("div",{staticClass:"input-group-append"},[n("button",{staticClass:"btn btn-sm btn-primary",attrs:{disabled:t.branch_id===t.model.id},on:{click:t.moveSteps}},[t._v("Move")])])])]):t._e()]),t._v(" "),n("draggable",{staticClass:"draggable d-flex",class:{dragging:t.reordering,empty:!t.branchSteps.length},attrs:{group:"steps",draggable:".reordering",disabled:!t.reordering},on:{start:t.startDrag,end:t.endDrag},model:{value:t.branchSteps,callback:function(e){t.branchSteps=e},expression:"branchSteps"}},[t._l(t.branchSteps,(function(t){return n("branch-step",{key:t.id,attrs:{model:t}})})),t._v(" "),n("div",{staticClass:"branch-name",attrs:{slot:"header"},slot:"header"},[t._v("Branch "+t._s(t.model.name))])],2),t._v(" "),t.canManage?n("create-step",{attrs:{slot:"footer",branch:t.model.id,order:t.branchSteps.length+1},slot:"footer"}):t._e()],1)}),[],!1,null,null,null).exports},8894:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(2985);function r(t){return r="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},r(t)}function o(){o=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,i){var r=e&&e.prototype instanceof p?e:p,o=Object.create(r.prototype),a=new E(i||[]);return o._invoke=function(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return O()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=d(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h={};function p(){}function f(){}function m(){}var v={};c(v,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==e&&n.call(b,a)&&(v=b);var y=m.prototype=p.prototype=Object.create(v);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(o,a,s,l){var c=d(t[o],t,a);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==r(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,s,l)}),(function(t){i("throw",t,s,l)})):e.resolve(h).then((function(t){u.value=t,s(u)}),(function(t){return i("throw",t,s,l)}))}l(c.arg)}var o;this._invoke=function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var i=d(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function T(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:O}}function O(){return{value:void 0,done:!0}}return f.prototype=m,c(y,"constructor",m),c(m,"constructor",f),f.displayName=c(m,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,l,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},_(w.prototype),c(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new w(u(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(y),c(y,l,"Generator"),c(y,a,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return a.type="throw",a.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function a(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}const s={name:"create-step",props:{branch:{},order:{}},data:function(){return{showForm:!1,name:null}},methods:{show:function(){var t=this;this.showForm=!0,this.$nextTick((function(){return t.$refs.stepName.focus()}))},hide:function(){this.showForm=!1},createBranch:function(){var t,e=this;return(t=o().mark((function t(){var n,r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={branch_id:e.branch,order:e.order,name:e.name},t.next=3,i.A.insert({data:n});case 3:r=t.sent,e.hide(),e.name=null,axios.post("/step-builder",n).then((function(t){i.A.update({where:r.steps[0].id,data:t.data.data}),i.A.delete(r.steps[0].id)})).catch((function(t){e.alertErrors(t.response.data)}));case 7:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function s(t){a(o,i,r,s,l,"next",t)}function l(t){a(o,i,r,s,l,"throw",t)}s(void 0)}))})()}}};const l=(0,n(4486).A)(s,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"add-step"},[t.showForm?n("div",{staticClass:"input-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.name,expression:"name"}],ref:"stepName",staticClass:"form-control",attrs:{type:"text",placeholder:"Add Step title.."},domProps:{value:t.name},on:{keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.createBranch.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.hide.apply(null,arguments)}],input:function(e){e.target.composing||(t.name=e.target.value)}}}),t._v(" "),n("div",{staticClass:"input-group-append"},[n("button",{staticClass:"btn btn-primary",on:{click:t.createBranch}},[n("i",{staticClass:"fa fa-check"})])])]):n("button",{staticClass:"btn btn-primary",on:{click:t.show}},[n("i",{staticClass:"fa fa-plus"}),t._v(" Add Step\n  ")])])}),[],!1,null,null,null).exports},4358:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(8858),r=n(2821);const o={name:"panorama",props:{store:{store:Object},storeUrl:{type:String},images:{type:Array},values:{type:Array},steps:{type:Array}},mixins:[i.A],components:{Slider:r.A},data:function(){return{mobileHeight:"300px",desktopOffset:40,headerHeight:0,isMobile:!1}},computed:{hasHeader:function(){return this.store.header_enabled||this.store.logo_enabled},desktopHeight:function(){return this.hasHeader?"500px":"600px"},height:function(){return this.isMobile?this.mobileHeight:this.desktopHeight},headerOffset:function(){return this.headerHeight+(this.isMobile?20:this.desktopOffset)},titleFont:function(){return this.store.settings&&this.store.settings.store_fonts.category_name_css_class||""},contentStyles:function(){var t={};return this.hasHeader&&(t["margin-top"]=this.headerOffset+"px"),t},showTotal:function(){var t=this,e=!1;return this.values.forEach((function(n){t.showPrice(n.step_id)&&(e=!0)})),e},cartTotal:function(){var t=0;return this.values.forEach((function(e){e.price&&(t+=parseFloat(e.price))})),t}},methods:{setHeights:function(){var t=this;this.isMobile=window.innerWidth<=768,setTimeout((function(){t.headerHeight=t.$refs.storeHeader?t.$refs.storeHeader.clientHeight:0}),100)},showPrice:function(t){var e=this.steps.find((function(e){return e.id===t}));return e&&e.show_price_in_quote}},mounted:function(){var t=this;this.setHeights(),window.addEventListener("resize",(function(){t.setHeights()}))}};const a=(0,n(4486).A)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"store-home-builder"},[t.hasHeader?n("header",{staticClass:"fixed_this"},[n("div",{ref:"storeHeader",staticClass:"filter_store_header m-0 p-0"},[t.store.header_enabled?n("div",{attrs:{id:"custom-header"},domProps:{innerHTML:t._s(t.store.header)}}):n("div",{staticClass:"col-xl-8 offset-xl-2 col-md-12 p-0"},[n("div",{staticClass:"d-flex justify-content-between align-items-center"},[n("div",{},[n("a",{attrs:{href:t.storeUrl}},[t.store.logoPath?n("img",{attrs:{src:t.store.logoPath,alt:t.store.name,height:"50"}}):n("h5",{staticClass:"text-capitalize",class:t.titleFont},[t._v(t._s(t.store.name))])])])])])])]):t._e(),t._v(" "),n("main",{ref:"main",staticClass:"main_store_sec col-xl-8 offset-xl-2 col-md-12 p-0 mb-5",style:t.contentStyles,attrs:{role:"main"}},[n("div",{staticClass:"row"},[n("div",{ref:"mainSection",staticClass:"col-12 col-md-7 col-xl-8",attrs:{id:"main-image"}},[n("slider",{attrs:{"is-mobile":t.isMobile,images:t.images,"desktop-height":t.desktopHeight,"mobile-height":t.mobileHeight}})],1),t._v(" "),n("div",{ref:"attributes",staticClass:"col-12 col-md-5 col-xl-4",attrs:{id:"attributes"}},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 total-attributes",class:t.titleFont},[t._l(t.values,(function(e){return n("div",{staticClass:"d-flex justify-content-between table-row"},[n("div",{staticClass:"attr-name"},[t._v(t._s(e.step_name)+": "+t._s(e.name))]),t._v(" "),t.showPrice(e.step_id)?n("div",{staticClass:"attr-price"},[t._v(t._s(t.formatPrice(e.price)))]):t._e()])})),t._v(" "),n("div",{staticClass:"block-total d-flex justify-content-between align-items-center"},[t.showTotal?[n("div",[n("h4",{class:t.titleFont},[t._v("Total "),n("span",{staticClass:"subheading"},[t._v("Cost")])])]),t._v(" "),n("span",{staticClass:"total-price",class:t.titleFont},[t._v(t._s(t.formatPrice(t.cartTotal)))])]:t._e()],2)],2)])])])]),t._v(" "),t.store.footer_enabled?n("div",{attrs:{id:"custom-footer"},domProps:{innerHTML:t._s(t.store.footer)}}):t._e()])}),[],!1,null,null,null).exports},2821:(t,e,n)=>{"use strict";n.d(e,{A:()=>d});var i=n(8858),r=n(2333),o=n.n(r);const a={name:"slider",mixins:[i.A],components:{PanZoom:o()},props:{isMobile:{type:Boolean},images:{},desktopHeight:{default:"500px"},mobileHeight:{default:"250px"}},data:function(){return{thumbHeight:"100px",viewers:[],swiper:null,zoom:null}},computed:{mobileSwiperStyles:function(){return{height:this.mobileHeight}},swiperStyles:function(){return{height:this.desktopHeight}},thumbStyles:function(){return{height:this.thumbHeight}}},methods:{viewImage:function(t){this.zoom=t,this.$bvModal.show("image-modal")},setSlide:function(t){this.swiper.slideTo(t)},setPanoramas:function(){var t=this;this.images.forEach((function(e,n){if(e.is_panorama){var i=t.$refs["desktop-".concat(n,"-viewer")];i&&t.viewers.push(t.initPanoramaViewer(i[0],e.image));var r=t.$refs["mobile-".concat(n,"-viewer")];r&&t.viewers.push(t.initPanoramaViewer(r[0],e.image,{},!0))}}))},destroyViewers:function(){this.viewers.forEach((function(t){t.destroy()})),this.viewers=[]}},mounted:function(){this.setPanoramas(),this.swiper=this.$refs.mySwiper.swiper},beforeDestroy:function(){this.destroyViewers()}};var s=n(5072),l=n.n(s),c=n(7027),u={insert:"head",singleton:!1};l()(c.A,u);c.A.locals;const d=(0,n(4486).A)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("swiper-container",{directives:[{name:"show",rawName:"v-show",value:t.isMobile,expression:"isMobile"}],staticClass:"mobile-swiper",style:t.mobileSwiperStyles,attrs:{navigation:!0,"no-swiping-class":"psv-container"}},t._l(t.images,(function(e,i){return n("swiper-slide",{key:"mobile-"+i,staticClass:"swiper-slide"},[n("div",{staticClass:"img-wrapper"},[e.is_panorama?n("div",{ref:"mobile-"+i+"-viewer",refInFor:!0,style:{height:t.mobileHeight}}):n("img",{staticClass:"img-fluid",style:{maxHeight:t.mobileHeight},attrs:{src:e.image}})])])})),1),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.isMobile,expression:"!isMobile"}]},[n("swiper-container",{ref:"mySwiper",style:t.swiperStyles,attrs:{"thumbs-swiper":".thumbs-swiper",navigation:!0,"no-swiping-class":"psv-container"}},t._l(t.images,(function(e,i){return n("swiper-slide",{key:"desktop-"+i,staticClass:"swiper-slide"},[n("div",{staticClass:"img-wrapper"},[e.is_panorama?n("div",{ref:"desktop-"+i+"-viewer",refInFor:!0,style:{height:t.desktopHeight}}):n("img",{staticClass:"img-fluid cursor-zoom",style:{maxHeight:t.desktopHeight},attrs:{src:e.image},on:{click:function(n){return t.viewImage(e.image)}}})])])})),1),t._v(" "),t.swiper&&t.images.length>1?n("div",{staticClass:"d-flex justify-content-center mt-3"},t._l(t.images,(function(e,i){return n("div",{key:"thumb-"+i,staticClass:"img-wrapper slide",class:{active:i===t.swiper.activeIndex},on:{click:function(e){return t.setSlide(i)}}},[n("img",{staticClass:"img-fluid",style:{maxHeight:t.thumbHeight},attrs:{src:e.image}})])})),0):t._e()],1),t._v(" "),n("b-modal",{attrs:{id:"image-modal",size:"lg","hide-footer":""}},[n("pan-zoom",[n("div",{staticClass:"img-wrapper"},[t.zoom?n("img",{staticClass:"img-fluid",attrs:{src:t.zoom}}):t._e()])])],1)],1)}),[],!1,null,"c5ebdd0a",null).exports},2922:(t,e,n)=>{"use strict";n.d(e,{A:()=>j});var i=n(8858),r=n(8027),o=n(4953),a=n(2985),s=n(7342),l=n(5009),c=n(3212);function u(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}const h={name:"variation-image",props:["model"],mixins:[i.A],data:function(){return{values:[],view:!1}},computed:{canManage:function(){return this.$store.state.can_manage},value:function(){return s.A.find(this.model.value_id)},step:function(){return a.A.query().with("children").find(this.value.step_id)},siblings:function(){var t=this;return l.A.query().where("value_id",this.model.value_id).where((function(e){return e.id!==t.model.id})).with("variation_image_values").get()},previousSteps:function(){var t=this,e=a.A.query().with("values").where((function(e){return t.step.order>e.order})).orderBy("order");this.step.branch_id?e.where("branch_id",this.step.branch_id):e.where("branch_id",null);var n=e.get().filter((function(t){return t.values.length}));return[].concat([],u(n))},selectedValues:function(){var t=[];return this.values.forEach((function(e){if(Number.isInteger(e))t.push(e);else{var n=+e.replace(/[A-Za-z$-]/g,""),i=s.A.query().where("step_id",n).get().map((function(t){return t.id}));t=t.concat(i)}})),t},options:function(){var t,e=this,n=[],i=(null!==(t=this.model.originalValues)&&void 0!==t?t:[]).map((function(t){return t.value_id}));return this.previousSteps.forEach((function(t){var r=[],o=!1;t.values.forEach((function(t){var n=e.selectedValues.includes(t.id),a=i.length&&i.includes(t.id)?!n:n;a&&(o=!0),r.push({id:t.id,label:t.name,className:a?"text-info":null})})),n.push({id:"step-"+t.id,label:t.name,children:r,className:o?"text-info":null})})),n},modalTitle:function(){if(this.model.original){var t=this.model.original.lastIndexOf("/")+1;return this.model.original.substr(t)}return"Variation Image"},type:function(){return this.step.parent_id?"Layer Image":this.values.length&&this.step.children.length?"Variation Base Image":this.step.children.length?"Base Image":this.values.length?"Variation Image":"Standalone Image"}},watch:{values:function(t,e){var n=this.model.variation_image_values.map((function(t){return t.value_id}));JSON.stringify(t)!==JSON.stringify(n)&&this.updateValues()}},methods:{updateValues:(0,o.debounce)((function(){var t=this;c.A.delete((function(e){return e.variation_image_id===t.model.id}));var e=this.selectedValues.map((function(e){return{variation_image_id:t.model.id,value_id:e}}));this.values.length&&c.A.insert({data:e}),axios.post("/variation-images/".concat(this.model.id,"/values"),{values:e}).then((function(t){}))}),1e3),deleteImage:function(){var t=this;this.confirm((function(){l.A.delete(t.model.id),axios.delete("/variation-images/".concat(t.model.id)).then((function(t){})).catch((function(e){t.alertErrors(e.response.data)}))}))},viewImage:function(){var t=this;this.view=!0,setTimeout((function(){t.$bvModal.show("variation-image-modal-".concat(t.model.id))}),50)}},created:function(){this.values=this.model.variation_image_values.map((function(t){return t.value_id}))}},p=h;var f=n(5072),m=n.n(f),v=n(4264),g={insert:"head",singleton:!1};m()(v.A,g);v.A.locals;var b=n(4486);const y=(0,b.A)(p,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"value-image d-flex"},[n("div",{staticClass:"image-wrapper",class:{"border-info":t.model.is_draft}},[n("img",{attrs:{src:t.model.thumb,title:t.model.thumb,alt:t.model.id}}),t._v(" "),t.canManage&&"number"==typeof t.model.id?[n("a",{staticClass:"view-image",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.viewImage.apply(null,arguments)}}},[n("i",{staticClass:"fa fa-eye"})]),t._v(" "),n("a",{staticClass:"delete-image text-danger",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.deleteImage.apply(null,arguments)}}},[n("i",{staticClass:"fa fa-trash"})])]:t._e()],2),t._v(" "),n("div",[n("treeselect",{class:{required:t.step.parent_id&&!t.values.length},attrs:{options:t.options,placeholder:"Pick parent steps",clearable:!0,multiple:!0,limit:1,disabled:!t.canManage,"append-to-body":!0},scopedSlots:t._u([{key:"option-label",fn:function(e){var i=e.node,r=e.labelClassName;return n("label",{class:[r,i.raw.className]},[n("span",{attrs:{title:i.label}},[t._v(t._s(i.label))])])}}]),model:{value:t.values,callback:function(e){t.values=e},expression:"values"}}),t._v(" "),n("small",[n("i",{staticClass:"fa fa-question-circle",attrs:{id:"tooltip-variation-image-"+t.model.id}}),t._v("\n      "+t._s(t.type)+"\n    ")]),t._v(" "),n("b-tooltip",{attrs:{target:"tooltip-variation-image-"+t.model.id,triggers:"hover click","custom-class":"tooltip-variation-image"}},[n("div",{staticClass:"text-left"},[n("div",[t._v("Base - image in the first step of the group")]),t._v(" "),n("div",[t._v("Layer - image in subsequent group steps")]),t._v(" "),n("div",[t._v("Standalone - image without parent step(s)")]),t._v(" "),n("div",[t._v("Variation - image with parent step(s)")])])])],1),t._v(" "),t.view?n("b-modal",{attrs:{id:"variation-image-modal-"+t.model.id,"hide-footer":"",size:"lg"},scopedSlots:t._u([{key:"modal-title",fn:function(){return[n("h4",[t._v(t._s(t.modalTitle))])]},proxy:!0}],null,!1,99537558)},[t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 text-center"},[n("img",{staticClass:"image-preview",attrs:{src:t.model.full_image,alt:t.modalTitle}})])])]):t._e()],1)}),[],!1,null,"b9387cb4",null).exports;var _=n(9570),w=n(5913);function x(t){return function(t){if(Array.isArray(t))return C(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return C(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}const S={name:"price",props:["model","step"],mixins:[i.A],data:function(){return{price:null,values:[]}},computed:{canManage:function(){return this.$store.state.can_manage},previousSteps:function(){var t=this,e=a.A.query().with("values").where((function(e){return t.step.order>e.order})).orderBy("order");this.step.branch_id?e.where("branch_id",this.step.branch_id):e.where("branch_id",null);var n=e.get().filter((function(t){return t.values.length}));return[].concat([],x(n))},options:function(){var t,e=this,n=[],i=(null!==(t=this.model.originalPriceValues)&&void 0!==t?t:[]).map((function(t){return t.value_id}));return this.previousSteps.forEach((function(t){var r=[],o=!1;t.values.forEach((function(t){var n=e.values.includes(t.id),a=i.length&&i.includes(t.id)?!n:n;a&&(o=!0),r.push({id:t.id,label:t.name,className:a?"text-info":null})})),n.push({id:"step-"+t.id,label:t.name,children:r,className:o?"text-info":null})})),n}},watch:{price:function(){this.price!==this.model.price&&this.updatePrice()},values:function(t,e){var n=this.model.price_values.map((function(t){return t.value_id}));JSON.stringify(t)!==JSON.stringify(n)&&this.updateValues()}},methods:{updatePrice:(0,o.debounce)((function(){var t=this;axios.post("/prices/".concat(this.model.id),{price:this.price}).then((function(e){_.A.update({where:t.model.id,data:e.data.data})}))}),500),updateValues:(0,o.debounce)((function(){var t=this,e=this.values.map((function(e){return{price_id:t.model.id,value_id:e}}));w.A.delete((function(e){return e.price_id===t.model.id})),this.values.length&&w.A.insert({data:e}),axios.post("/prices/".concat(this.model.id,"/values"),{values:e}).then((function(t){}))}),500),deletePrice:function(){var t=this;this.confirm((function(){_.A.delete(t.model.id),axios.delete("/prices/".concat(t.model.id)).then((function(t){})).catch((function(e){t.alertErrors(e.response.data)}))}))}},created:function(){this.price=this.model.price,this.values=this.model.price_values.map((function(t){return t.value_id}))}},E=S;const T=(0,b.A)(E,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row mb-2"},[n("div",{staticClass:"col-3 pr-1"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.price,expression:"price"}],staticClass:"form-control",class:{"border-info":t.model.is_draft,"text-info":t.model.is_draft},attrs:{type:"number",placeholder:"Price",disabled:!t.canManage},domProps:{value:t.price},on:{input:function(e){e.target.composing||(t.price=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"col-9 pl-1 d-flex"},[n("treeselect",{class:{"border-info":t.model.is_draft},attrs:{options:t.options,clearable:!0,multiple:!0,"value-consists-of":"LEAF_PRIORITY",placeholder:"Pick variations",limit:1,disabled:!t.canManage,"append-to-body":!0},scopedSlots:t._u([{key:"option-label",fn:function(e){var i=e.node,r=e.labelClassName;return n("label",{class:[r,i.raw.className]},[n("span",{attrs:{title:i.label}},[t._v(t._s(i.label))])])}}]),model:{value:t.values,callback:function(e){t.values=e},expression:"values"}}),t._v(" "),n("a",{staticClass:"ml-1 pt-2",attrs:{href:"#",title:"Delete price"},on:{click:function(e){return e.preventDefault(),t.deletePrice.apply(null,arguments)}}},[t.canManage?n("i",{staticClass:"fa fa-trash text-danger"}):t._e()])],1)])}),[],!1,null,"78f5e620",null).exports;function O(t){return O="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},O(t)}function k(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function A(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function P(){P=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var r=e&&e.prototype instanceof d?e:d,o=Object.create(r.prototype),a=new C(i||[]);return o._invoke=function(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return E()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=c(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var u={};function d(){}function h(){}function p(){}var f={};s(f,r,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(S([])));v&&v!==e&&n.call(v,r)&&(f=v);var g=p.prototype=d.prototype=Object.create(f);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){function i(r,o,a,s){var l=c(t[r],t,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==O(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(d).then((function(t){u.value=t,a(u)}),(function(t){return i("throw",t,a,s)}))}s(l.arg)}var r;this._invoke=function(t,n){function o(){return new e((function(e,r){i(t,n,e,r)}))}return r=r?r.then(o,o):o()}}function _(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var i=c(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,u;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function S(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:E}}function E(){return{value:void 0,done:!0}}return h.prototype=p,s(g,"constructor",p),s(p,"constructor",h),h.displayName=s(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,s(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(y.prototype),s(y.prototype,o,(function(){return this})),t.AsyncIterator=y,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new y(l(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,a,"Generator"),s(g,r,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=S,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return a.type="throw",a.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;x(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}function M(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function L(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){M(o,i,r,a,s,"next",t)}function s(t){M(o,i,r,a,s,"throw",t)}a(void 0)}))}}const D={name:"value",props:["model","step"],components:{LvColorPicker:r.A,VariationImage:y,Price:T},mixins:[i.A],data:function(){return{types:[{value:"plain",title:"Display Type: Plain"},{value:"color",title:"Display Type: Color"},{value:"image",title:"Display Type: Image"},{value:"panorama",title:"Display Type: 3D"}],value:{name:null,description:null,active:null,button_color:null,button_background:null},variationForm:!1,priceForm:!1,uploading:!1,priceCount:0,price:0}},computed:{canManage:function(){return this.$store.state.can_manage},variationImages:function(){return this.variationForm?l.A.query().where("value_id",this.model.id).with("variation_image_values").get():[]},imageCount:function(){return l.A.query().where("value_id",this.model.id).get().length},prices:function(){return this.priceForm?_.A.query().where("value_id",this.model.id).with("values").with("price_values").get():[]},open:function(){return this.variationForm||this.priceForm},classes:function(){var t=[];return this.open&&t.push("open"),this.value.active||t.push("inactive"),t}},methods:{addPrice:function(){var t=this;return L(P().mark((function e(){var n,i;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={value_id:t.model.id,price:0},e.next=3,_.A.insert({data:n});case 3:i=e.sent,axios.post("/prices",n).then((function(t){_.A.update({where:i.prices[0].id,data:t.data.data}),_.A.delete(i.prices[0].id)})).catch((function(e){t.alertErrors(e.response.data)}));case 5:case"end":return e.stop()}}),e)})))()},edit:function(t){var e=!this[t+"Form"];this.cancel(),this[t+"Form"]=e},cancel:function(){this.variationForm=!1,this.priceForm=!1,this.setPrice()},active:function(){this.value.active=1,this.save()},inactive:function(){this.value.active=0,this.save()},upload:function(t){var e=this;return L(P().mark((function n(){var i,r,o;return P().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.target.files.length){n.next=2;break}return n.abrupt("return");case 2:if(i=new FormData,t.target.files.length>1)for(r=0,o=t.target.files.length;r<o;r++)i.append("images[".concat(r,"]"),t.target.files[r]);else i.append("image",t.target.files[0]);e.uploading=!0,axios.post("/values/".concat(e.model.id,"/image"),i,{headers:{"Content-Type":"multipart/form-data"}}).then((function(t){l.A.insert({data:t.data.data})})).catch((function(t){e.alertErrors(t.response.data)})).finally((function(){e.uploading=!1}));case 6:case"end":return n.stop()}}),n)})))()},save:function(){var t=this;this.value.name&&(this.variationForm=!1,axios.post("/values/".concat(this.model.id),this.value).then((function(e){t.value=e.data.data,s.A.update({where:t.model.id,data:e.data.data})})).catch((function(e){t.alertErrors(e.response.data)})))},deleteValue:function(){var t=this;this.confirm((function(){s.A.delete(t.model.id),axios.delete("/values/".concat(t.model.id)).then((function(t){})).catch((function(e){t.alertErrors(e.response.data)}))}))},setPrice:function(){var t=_.A.query().where("value_id",this.model.id).get().map((function(t){return t.price})),e=t.reduce((function(t,e){return t+e}),0);this.priceCount=t.length,this.price=e/this.priceCount||0}},mounted:function(){this.value=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?k(Object(n),!0).forEach((function(e){A(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this.model),this.value.button_color||(this.value.button_color="#000000"),this.value.button_background||(this.value.button_background="#ffffff"),this.setPrice()}};var R=n(7114),I={insert:"head",singleton:!1};m()(R.A,I);R.A.locals;const j=(0,b.A)(D,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"step-value",class:t.classes},[t.open?i("div",[i("div",{staticClass:"step-tabs"},[i("a",{class:t.priceForm?"text-black-50":"",attrs:{href:"#",title:"Edit price"},on:{click:function(e){return e.preventDefault(),t.edit("price")}}},[i("i",{staticClass:"fa fa-usd"})]),t._v(" "),i("a",{class:t.variationForm?"text-black-50":"",attrs:{href:"#",title:"Edit variation"},on:{click:function(e){return e.preventDefault(),t.edit("variation")}}},[i("i",{staticClass:"fa fa-edit"})])]),t._v(" "),t.variationForm?i("div",[i("div",{staticClass:"form-group"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.value.name,expression:"value.name"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Variation",disabled:!t.canManage},domProps:{value:t.value.name},on:{input:function(e){e.target.composing||t.$set(t.value,"name",e.target.value)}}})]),t._v(" "),i("div",{staticClass:"form-group"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.value.sku,expression:"value.sku"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Product Code",disabled:!t.canManage},domProps:{value:t.value.sku},on:{input:function(e){e.target.composing||t.$set(t.value,"sku",e.target.value)}}})]),t._v(" "),i("div",{staticClass:"form-group"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:t.value.description,expression:"value.description"}],staticClass:"form-control",attrs:{placeholder:"Description",maxlength:"popup"!==t.step.description_type?1e3:null,rows:"popup"===t.step.description_type?5:3,disabled:!t.canManage},domProps:{value:t.value.description},on:{input:function(e){e.target.composing||t.$set(t.value,"description",e.target.value)}}}),t._v(" "),"popup"!==t.step.description_type?i("small",{staticClass:"text-gray"},[t._v("\n          "+t._s(t.value.description?t.value.description.length:0)+" / 1000\n        ")]):t._e()]),t._v(" "),"color"===t.step.display_type?i("div",{},[i("LvColorPicker",{attrs:{label:"Button Background Color",clearable:!0,hidePalette:!0,disabled:!t.canManage},model:{value:t.value.button_background,callback:function(e){t.$set(t.value,"button_background",e)},expression:"value.button_background"}}),t._v(" "),i("LvColorPicker",{attrs:{label:"Button Color",clearable:!0,hidePalette:!0,disabled:!t.canManage},model:{value:t.value.button_color,callback:function(e){t.$set(t.value,"button_color",e)},expression:"value.button_color"}})],1):t._e(),t._v(" "),i("hr",{staticClass:"my-2"}),t._v(" "),t._l(t.variationImages,(function(t){return i("variation-image",{key:t.id,attrs:{model:t}})})),t._v(" "),i("div",{staticClass:"d-flex justify-content-between"},[t.canManage?i("label",{class:[t.uploading?"bg-gray rounded":""]},[i("img",{attrs:{src:n(155)}}),t._v(" "),i("input",{attrs:{type:"file",accept:".png, .jpg, .jpeg",multiple:""},on:{change:t.upload}})]):t._e(),t._v(" "),i("div",{staticClass:"mt-2 text-right"},[i("button",{staticClass:"btn btn-outline-secondary",attrs:{disabled:t.uploading},on:{click:t.cancel}},[t._v("Close")]),t._v(" "),t.canManage?[t.value.active?i("button",{staticClass:"btn btn-danger",attrs:{disabled:t.uploading},on:{click:t.inactive}},[t._v("Inactive\n            ")]):i("button",{staticClass:"btn btn-secondary",attrs:{disabled:t.uploading},on:{click:t.active}},[t._v("Active")]),t._v(" "),i("button",{staticClass:"btn btn-primary",attrs:{disabled:t.uploading||!t.value.name},on:{click:t.save}},[t._v("Save")])]:t._e()],2)])],2):t._e(),t._v(" "),t.priceForm?i("div",[t._l(t.prices,(function(e){return i("price",{key:e.id,attrs:{model:e,step:t.step}})})),t._v(" "),t.step.order>1?i("div",{staticClass:"mb-2"},[t.canManage?i("button",{staticClass:"btn btn-outline-primary w-100",on:{click:t.addPrice}},[i("i",{staticClass:"fa fa-plus"}),t._v(" "),t.prices.length?i("span",[t._v("Add Another Price")]):i("span",[t._v("Add Price")])]):t._e()]):t._e(),t._v(" "),i("div",{staticClass:"text-right"},[i("button",{staticClass:"btn btn-outline-secondary",on:{click:t.cancel}},[t._v("Close")])])],2):t._e()]):i("div",{staticClass:"d-flex justify-content-between align-items-center"},[i("div",{staticClass:"d-flex"},[i("div",{staticClass:"value-name",class:{"my-n2":t.price||t.value.description}},[i("div",[i("div",{class:{"text-info":t.model.is_draft}},[t._v(t._s(t.value.name))]),t._v(" "),i("div",[t.price?i("small",{staticClass:"text-success",attrs:{title:"Average price"}},[t._v("$"+t._s(t.price))]):t._e(),t._v(" "),t.value.description?i("i",{staticClass:"fa fa-ellipsis-h text-primary",attrs:{title:t.value.description}}):t._e()])])]),t._v(" "),i("div",{staticClass:"value-stats"},[i("div",{class:t.imageCount?"text-info":"text-black-50"},[i("i",{staticClass:"fa fa-image"}),t._v(": "+t._s(t.imageCount)+"\n        ")]),t._v(" "),i("div",{class:t.priceCount?"text-success":"text-black-50"},[i("i",{staticClass:"fa fa-usd"}),t._v(": "+t._s(t.priceCount)+"\n        ")])])]),t._v(" "),i("div",{staticClass:"value-actions"},[i("a",{attrs:{href:"#",title:"Edit price"},on:{click:function(e){return e.preventDefault(),t.edit("price")}}},[i("i",{staticClass:"fa fa-usd"})]),t._v(" "),i("a",{attrs:{href:"#",title:"Edit variation"},on:{click:function(e){return e.preventDefault(),t.edit("variation")}}},[i("i",{staticClass:"fa fa-edit"})]),t._v(" "),t.canManage?i("a",{attrs:{href:"#",title:"Delete variation"},on:{click:function(e){return e.preventDefault(),t.deleteValue.apply(null,arguments)}}},[i("i",{staticClass:"fa fa-trash text-danger"})]):t._e()])])])}),[],!1,null,"7271a8fa",null).exports},6921:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});const i={name:"value-card",props:{value:{type:Object},price:{type:String},type:{type:String,default:null},step:{type:Object,default:null},displayType:{type:String,default:function(){return this.step?this.step.display_type:null}},size:{type:String,default:function(){return this.step?this.step.card_size:"md"}},attribute:{type:Boolean,default:!1},active:{type:Boolean,default:!1},nameFont:{type:String,default:null},plainNameFont:{type:String,default:null},plainNameActiveFont:{type:String,default:null},priceFont:{type:String,default:null},plainPriceFont:{type:String,default:null},plainPriceActiveFont:{type:String,default:null}},computed:{image:function(){return this.value.variation_images&&this.value.variation_images.length&&this.value.variation_images[0].full_image?this.value.variation_images[0].full_image:"/images/image-placeholder.png"},styles:function(){var t={};return"color"===this.displayType&&(t.color=this.value.button_color,t.borderColor=this.value.button_background,t.backgroundColor=this.active?this.value.button_background:this.value.button_background+"70"),t},classes:function(){var t=[];return this.active&&t.push("active"),"color"!==this.displayType&&t.push("img-overlay"),"image"!==this.displayType&&t.push("plain"),t},wrapperClasses:function(){return{flip:this.flipped,"flip-x":"flip-x"===this.type,"flip-y":"flip-y"===this.type,"card-custom":["sm","lg","cs"].includes(this.size)}}},data:function(){return{flipped:!1}},methods:{showModal:function(){this.$bvModal.show("description-modal-".concat(this.value.id))},setActive:function(){this.$emit("set-active",this.value)},flip:function(t,e){this.flipped=e}},mounted:function(){}};var r=n(5072),o=n.n(r),a=n(3654),s={insert:"head",singleton:!1};o()(a.A,s);a.A.locals;const l=(0,n(4486).A)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"flip-card",class:t.wrapperClasses},[t.flipped?n("div",{staticClass:"back"},[t.type&&t.value.description?n("div",{staticClass:"flip-description"},[n("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.flip(t.value,!1)}}},[n("i",{staticClass:"fa fa-minus"})])]):t._e(),t._v(" "),t.attribute?n("div",{ref:"back",staticClass:"stock stock-attribute description",class:t.classes,style:t.styles,on:{click:function(e){return e.preventDefault(),t.setActive.apply(null,arguments)}}},[t._v("\n      "+t._s(t.value.description)+"\n    ")]):n("div",{ref:"back",staticClass:"stock img-overlay description",class:{active:t.active},on:{click:function(e){return e.preventDefault(),t.setActive.apply(null,arguments)}}},[t._v("\n      "+t._s(t.value.description)+"\n    ")])]):t._e(),t._v(" "),n("div",{ref:"front",staticClass:"front"},[t.type&&t.value.description?n("div",{staticClass:"flip-description"},["popup"===t.type?n("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showModal.apply(null,arguments)}}},[n("i",{staticClass:"fa fa-plus"})]):n("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.flip(t.value,!0)}}},[n("i",{staticClass:"fa fa-plus"})])]):t._e(),t._v(" "),t.attribute?n("div",{staticClass:"stock stock-attribute",class:t.classes,style:t.styles,on:{click:function(e){return e.preventDefault(),t.setActive.apply(null,arguments)}}},["image"===t.displayType?[n("div",{staticClass:"img-wrapper"},t._l(t.value.layer_images,(function(e,i){return n("img",{staticClass:"img-fluid",class:i+1<t.value.layer_images.length?"layer":"",style:{zIndex:1e3-i},attrs:{src:e.thumb}})})),0),t._v(" "),n("div",{staticClass:"stock-description"},[n("div",{staticClass:"stock-name",class:t.nameFont},[t._v(t._s(t.value.name))]),t._v(" "),t.value.price?n("div",{staticClass:"price mt-1",class:t.priceFont},[t._v(t._s(t.price))]):t._e()])]:n("div",{staticClass:"plain-stock"},[n("div",{staticClass:"stock-name",class:t.active?t.plainNameActiveFont:t.plainNameFont},[t._v(t._s(t.value.name))]),t._v(" "),t.value.price?n("div",{staticClass:"price mt-1",class:t.active?t.plainPriceActiveFont:t.plainPriceFont},[t._v("\n          "+t._s(t.price)+"\n        ")]):t._e()])],2):n("div",{staticClass:"stock img-overlay",class:{active:t.active},on:{click:function(e){return e.preventDefault(),t.setActive.apply(null,arguments)}}},["image"===t.displayType?[n("div",{staticClass:"img-wrapper"},[n("img",{staticClass:"img-fluid",attrs:{src:t.image}})]),t._v(" "),n("div",{staticClass:"stock-description text-center"},[n("h4",{staticClass:"stock-name text-capitalize",class:t.nameFont},[t._v(t._s(t.value.name))]),t._v(" "),t.value.price?n("div",{staticClass:"price",class:t.priceFont},[t._v(t._s(t.price))]):t._e()])]:n("div",{staticClass:"plain-stock stock-description text-center"},[n("div",{staticClass:"stock-name",class:t.active?t.plainNameActiveFont:t.plainNameFont},[t._v(t._s(t.value.name))]),t._v(" "),t.value.price?n("div",{staticClass:"price mt-1",class:t.active?t.plainPriceActiveFont:t.plainPriceFont},[t._v("\n          "+t._s(t.price)+"\n        ")]):t._e()])],2)]),t._v(" "),n("b-modal",{attrs:{id:"description-modal-"+t.value.id,"hide-footer":""},scopedSlots:t._u([{key:"modal-title",fn:function(){return[n("div",{staticClass:"text-center"},[n("h4",{class:t.nameFont},[t._v(t._s(t.value.name))])])]},proxy:!0}])},[t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[t._v("\n        "+t._s(t.value.description)+"\n      ")])])])],1)}),[],!1,null,"79a31ea4",null).exports},8858:(t,e,n)=>{"use strict";n.d(e,{A:()=>v});var i=n(9123),r=n.n(i),o=n(5072),a=n.n(o),s=n(4182),l={insert:"head",singleton:!1};a()(s.A,l);s.A.locals;var c=n(9399);n(1876);function u(){u=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var r=e&&e.prototype instanceof h?e:h,o=Object.create(r.prototype),a=new E(i||[]);return o._invoke=function(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return O()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=c(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function h(){}function f(){}function m(){}var v={};s(v,r,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==e&&n.call(b,r)&&(v=b);var y=m.prototype=h.prototype=Object.create(v);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(r,o,a,s){var l=c(t[r],t,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==p(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(d).then((function(t){u.value=t,a(u)}),(function(t){return i("throw",t,a,s)}))}s(l.arg)}var r;this._invoke=function(t,n){function o(){return new e((function(e,r){i(t,n,e,r)}))}return r=r?r.then(o,o):o()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var i=c(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,d;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function T(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return f.prototype=m,s(y,"constructor",m),s(m,"constructor",f),f.displayName=s(m,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,a,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},_(w.prototype),s(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new w(l(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(y),s(y,a,"Generator"),s(y,r,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return a.type="throw",a.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function d(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function h(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){d(o,i,r,a,s,"next",t)}function s(t){d(o,i,r,a,s,"throw",t)}a(void 0)}))}}function p(t){return p="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},p(t)}const f={components:{Treeselect:r()},data:function(){return{fetching:!1,adminRoleNames:["owner","admin"]}},computed:{currency:function(){return this.store&&this.store.currency?this.store.currency:null}},methods:{getRoleBadge:function(t){var e={owner:{color:"danger",name:"Owner"},admin:{color:"red",name:"Admin"},"master-client":{color:"deep-purple",name:"Master Client"},manager:{color:"deep-purple",name:"Master Client"},client:{color:"primary",name:"Client"},"client-owner":{color:"indigo",name:"Client Owner"},"client-admin":{color:"blue",name:"Client Admin"},"client-agent":{color:"success",name:"Client Agent"},agent:{color:"dark",name:"Agent"},"agent-owner":{color:"blue-grey",name:"Agent Owner"},"agent-admin":{color:"grey",name:"Agent Admin"}}[t];return e?'<span class="badge badge-'.concat(e.color,'">').concat(e.name,"</span>"):null},initPanoramaViewer:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={container:t,panorama:e,navbar:["zoom","caption","fullscreen"]};i.zoom&&(a.defaultZoomLvl=i.zoom),i.pitch&&(a.defaultPitch=i.pitch),i.yaw&&(a.defaultYaw=i.yaw);var s=new c.jM(a);return o&&(console.log("Show helper"),s.addEventListener("ready",(function(){n.showPanoramaHelper(s,r)}),{once:!0})),s},showPanoramaHelper:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.overlay.show({image:document.getElementById("look-around").innerHTML,title:e?"Touch and swipe to look around":"Click and drag to look around",dissmisable:!0})},getParameterByName:function(t,e){e||(e=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},checkSubscription:function(){return!this.need_subscription||(this.$swal({title:"Trial Period Expired!",text:"You cant`t do this action without subscription",type:"error",showCloseButton:!0,showCancelButton:!1,showConfirmButton:!1,footer:'<a href="/dashboard">Get Subscription</a>'}),!1)},capitalize:function(t){return t?(t=t.toString()).charAt(0).toUpperCase()+t.slice(1):""},successNotice:function(t){this.$toasted.show(t)},setErrors:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t.response.data.errors;for(var i in this.errors={},n)this.errors[e+i]=n[i][0]},successAlert:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.$swal({title:t||"Success!",html:e||"",type:"success"})},alertErrors:function(t){var e="";"object"===p(t)?t.errors?Object.keys(t.errors).forEach((function(n){e+=t.errors[n][0]+"<br>"})):t.data&&t.data.message&&(e=t.data.message):("string"==typeof t||t instanceof String)&&(e=t),e||(e="There is a problem. Please try later."),this.$swal({title:"Error!",html:e,type:"error"})},confirm:function(t,e,n){var i,r,o,a;this.$swal({title:null!==(i=null==n?void 0:n.title)&&void 0!==i?i:"Are you sure?",text:null!==(r=null==n?void 0:n.text)&&void 0!==r?r:"You won't be able to revert this!",showCancelButton:!0,width:null!==(o=null==n?void 0:n.width)&&void 0!==o?o:"360px",confirmButtonColor:"#1282a2",cancelButtonColor:"#dd1755",confirmButtonText:null!==(a=null==n?void 0:n.yes)&&void 0!==a?a:"Yes"}).then((function(n){n.value?t():e&&e()}))},set_char_limit:function(t,e){var n=t;return t&&t.length>e&&(n=t.substring(0,e).trim()+".."),n},getPercentage:function(t,e){return t/100*e},appendImage:function(t,e,n){e&&(t.append(n+"[original]",e.original?e.original:null),t.append(n+"[cropped][file]",e.cropped?e.cropped:null),t.append(n+"[cropped][cropping_info]",e.cropped?JSON.stringify(e.croppingInfo):null))},getImage:function(t){return t&&t.images&&t.images.length?t.images[0].original?URL.createObjectURL(t.images[0].original):t.images[0].cropped_file_path||t.images[0].original_file_path:"/images/image-placeholder.png"},getImages:function(t){return t&&t.images&&t.images.length?t.images.map((function(t){return t.cropped_file_path||t.original_file_path})):["/images/image-placeholder.png"]},createFileFromUrl:function(t){return h(u().mark((function e(){var n,i,r,o;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return",null);case 2:return e.next=4,fetch(t);case 4:return n=e.sent,e.next=7,n.blob();case 7:return i=e.sent,r=t.split(".").pop(),o={type:"image/"+r},e.abrupt("return",new File([i],"image."+r,o));case 11:case"end":return e.stop()}}),e)})))()},prepareImage:function(t){var e=this;return h(u().mark((function n(){var i,r;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.createFileFromUrl(t.original_file_path);case 2:return i=n.sent,n.next=5,e.createFileFromUrl(t.cropped_file_path);case 5:return r=n.sent,n.abrupt("return",{id:t.id,original:i,cropped:r,croppingInfo:JSON.parse(t.cropping_info),imageUrl:t.original_file_path,url:t.cropped_file_path||t.original_file_path});case 7:case"end":return n.stop()}}),n)})))()},getDiscountPrice:function(t,e){return t===e?this.formatPrice(e):"<strike>"+this.formatPrice(t)+"</strike> "+this.formatPrice(e)},formatPrice:function(t){var e="$";return this.store&&this.store.currency&&(e=this.store.currency.symbol),e+parseFloat(t).toFixed(2)},formatDate:function(t){if(t){var e={year:"numeric",month:"long",day:"numeric"};return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(e.hour="numeric",e.minute="numeric"),new Date(t).toLocaleDateString("en-US",e)}},getPackagePrice:function(t,e){var n={itemsPrice:0,discounted:0,fullPrice:0,finalPrice:0,formatted:"",description:""},i=parseFloat(t.discount),r=parseFloat(t.labour_cost),o=parseFloat(t.additional_cost);if(i=i||0,r=r||0,o=o||0,e.length>0)for(var a=0;a<e.length;a++){var s=e[a];if(s.quantity>0){var l=void 0===s.discount?parseFloat(s.item.discount):parseFloat(s.discount),c=void 0===s.price?parseFloat(s.item.price):parseFloat(s.price),u=s.quantity*c;i>l&&(l=i),n.itemsPrice+=u,n.discounted+=l>0?s.quantity*(c-this.getPercentage(l,c)):u}}n.fullPrice=n.itemsPrice+o+r,n.finalPrice=n.discounted+o+r,n.formatted=n.fullPrice===n.finalPrice?this.formatPrice(n.fullPrice):this.getDiscountPrice(n.fullPrice,n.finalPrice);var d=this.formatPrice(n.itemsPrice),h=this.formatPrice(n.discounted),p=this.formatPrice(n.itemsPrice-n.discounted);return n.description=(r?this.formatPrice(r)+" + ":"")+(o?this.formatPrice(o)+" + ":"")+(i>0?"("+d+" - "+i+"% = "+h+")":p>0?"("+d+" - "+p+" = "+h+")":d)+" = "+this.formatPrice(n.finalPrice),n}}},m=f;const v=(0,n(4486).A)(m,undefined,undefined,!1,null,null,null).exports},2385:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const i={computed:{canExportXero:function(){return!(!(this.userSettings&&this.userSettings.xero_enabled&&this.store&&this.store.xero_enabled)||this.features&&!this.features.xero_enabled)},canExportMonday:function(){return!(!(this.userSettings&&this.userSettings.monday_enabled&&this.store&&this.store.monday_enabled)||this.features&&!this.features.monday_enabled)},canExport:function(){return this.canExportXero||this.canExportMonday}}};const r=(0,n(4486).A)(i,undefined,undefined,!1,null,null,null).exports},3019:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(2985);const r={data:function(){return{branch_id:null}},computed:{dragging:function(){return this.$store.state.dragging},reordering:function(){return this.$store.state.reordering}},methods:{moveStepsToBranch:function(t){var e;e=this.branch_id?i.A.query().where("branch_id",this.branch_id).count()+1:i.A.query().where("branch_id",null).count()+1;var n=[];t.forEach((function(t,i){n.push({id:t,order:i+e})})),this.updateOrder(n,this.branch_id)},startDrag:function(){this.$store.commit("setDragging",!0)},endDrag:function(){this.$store.commit("setDragging",!1)},reorder:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(t=t.filter((function(t){return void 0!==t}))).length&&(t=t.map((function(t,e){return{id:t.id,name:t.name,order:e+1}})),this.updateOrder(t,e))},updateOrder:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t.forEach((function(t){i.A.update({where:t.id,data:{order:t.order,branch_id:e}})})),axios.post("/step-builder/reorder",{order:t,branch_id:e}).then((function(t){t.data.data.forEach((function(t){i.A.update({where:t.id,data:t})}))}))}}};const o=(0,n(4486).A)(r,undefined,undefined,!1,null,null,null).exports},9450:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(3029);function r(t){return r="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},r(t)}function o(){o=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,i){var r=e&&e.prototype instanceof p?e:p,o=Object.create(r.prototype),a=new E(i||[]);return o._invoke=function(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return O()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=d(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h={};function p(){}function f(){}function m(){}var v={};c(v,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==e&&n.call(b,a)&&(v=b);var y=m.prototype=p.prototype=Object.create(v);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(o,a,s,l){var c=d(t[o],t,a);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==r(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,s,l)}),(function(t){i("throw",t,s,l)})):e.resolve(h).then((function(t){u.value=t,s(u)}),(function(t){return i("throw",t,s,l)}))}l(c.arg)}var o;this._invoke=function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var i=d(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function T(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:O}}function O(){return{value:void 0,done:!0}}return f.prototype=m,c(y,"constructor",m),c(m,"constructor",f),f.displayName=c(m,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,l,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},_(w.prototype),c(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new w(u(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(y),c(y,l,"Generator"),c(y,a,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return a.type="throw",a.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function a(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}const s={data:function(){return{address:"",fetching:!1,fetchingCart:!1,fetchingProducts:!1,storeData:this.store,notice:{type:"danger",msg:""}}},computed:{storeModel:function(){return i.A.query().first()},titleColor:function(){return{color:this.storeData.title_clr}},btnColor:function(){return{color:this.storeData.btn_text_clr,border:this.storeData.btn_clr,backgroundColor:this.storeData.btn_clr}},btnColorWithoutBorder:function(){return{color:"".concat(this.storeData.btn_text_clr," !important"),backgroundColor:"".concat(this.storeData.btn_clr," !important")}},bgColor:function(){return{"background-color":"".concat(this.storeData.bg_clr," !important")}},outlineButton:function(){return{"--button-outline-color":this.store.btn_outline_clr,"--button-outline-background-color":"#fff","--button-outline-border-color":this.store.btn_outline_clr,"--button-outline-color--hover":"#fff","--button-outline-background-color--hover":this.store.btn_outline_clr}},cartTotal:function(){return this.formatPrice(parseFloat(this.cart.total)+parseFloat(this.cart.transport)+parseFloat(this.cart.labour)+parseFloat(this.cart.additional))},swiperPre:function(){return"\n        background-image:none !important;\n        background-color: ".concat(this.storeData.arrow_btns_clr," !important;\n        -webkit-mask-image: url(/images/arrow-left.svg);\n        mask-image: url(/images/arrow-left.svg);\n      ")},swiperNext:function(){return"\n        background-image:none !important;\n        background-color: ".concat(this.storeData.arrow_btns_clr," !important;\n        -webkit-mask-image: url(/images/arrow-right.svg);\n        mask-image: url(/images/arrow-right.svg);\n      ")}},methods:{},created:function(){var t,e=this;return(t=o().mark((function t(){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.store,t.next=3,i.A.create({data:n});case 3:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function s(t){a(o,i,r,s,l,"next",t)}function l(t){a(o,i,r,s,l,"throw",t)}s(void 0)}))})()}};const l=(0,n(4486).A)(s,undefined,undefined,!1,null,null,null).exports},7e3:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const i={data:function(){return{}},computed:{storeCssVars:function(){return{"--title-color":this.storeData.title_clr||"#000000","--title-font-size":(this.storeData.settings.title_font_size||25)+"px","--title-font-spacing":(this.storeData.settings.title_font_spacing||0)+"px","--breadcrumb-color":this.storeData.settings.breadcrumb_clr||"#475467","--breadcrumb-current-color":this.storeData.settings.breadcrumb_current_clr||"#6941c6","--breadcrumb-font-size":(this.storeData.settings.breadcrumb_font_size||14)+"px","--breadcrumb-font-spacing":(this.storeData.settings.breadcrumb_font_spacing||0)+"px","--button-color":this.storeData.btn_clr||"#f6b26b","--continue-btn-font-spacing":(this.storeData.settings.continue_btn_font_spacing||0)+"px","--back-button-color":this.storeData.arrow_btns_clr||"#d0d5dd","--back-btn-font-spacing":(this.storeData.settings.back_btn_font_spacing||0)+"px","--send-btn-font-spacing":(this.storeData.settings.send_btn_font_spacing||0)+"px","--item-name-color":this.storeData.settings.item_name_clr||"#000000","--item-active-name-color":this.storeData.settings.item_active_name_clr||"#000000","--item-font-size":(this.storeData.settings.item_font_size||18)+"px","--item-font-spacing":(this.storeData.settings.item_font_spacing||0)+"px","--price-color":this.storeData.settings.price_clr||"#000000","--price-active-color":this.storeData.settings.price_active_clr||"#000000","--price-font-size":(this.storeData.settings.price_font_size||13)+"px","--price-font-spacing":(this.storeData.settings.price_font_spacing||0)+"px","--plain-item-background-color":this.storeData.settings.plain_item_bg_clr||"#ffffff","--plain-item-border-color":this.storeData.settings.plain_item_border_clr||"#000000","--plain-item-name-color":this.storeData.settings.plain_item_name_clr||"#000000","--plain-item-font-size":(this.storeData.settings.plain_item_font_size||13)+"px","--plain-item-font-spacing":(this.storeData.settings.plain_item_font_spacing||0)+"px","--plain-item-price-color":this.storeData.settings.plain_item_price_clr||"#000000","--plain-item-price-font-size":(this.storeData.settings.plain_item_price_font_size||18)+"px","--plain-item-price-font-spacing":(this.storeData.settings.plain_item_price_font_spacing||0)+"px","--plain-item-active-background-color":this.storeData.settings.plain_item_active_bg_clr||"#ffffff","--plain-item-active-border-color":this.storeData.settings.plain_item_active_border_clr||"#000000","--plain-item-name-active-color":this.storeData.settings.plain_item_name_active_clr||"#000000","--plain-item-active-font-size":(this.storeData.settings.plain_item_active_font_size||13)+"px","--plain-item-active-font-spacing":(this.storeData.settings.plain_item_active_font_spacing||0)+"px","--plain-item-price-active-color":this.storeData.settings.plain_item_price_active_clr||"#000000","--plain-item-price-active-font-size":(this.storeData.settings.plain_item_price_active_font_size||13)+"px","--plain-item-price-active-font-spacing":(this.storeData.settings.plain_item_price_active_font_spacing||0)+"px","--card-background-color":this.storeData.settings.card_bg_clr||"#ffffff","--card-description-background-color":this.storeData.settings.card_description_bg_clr||"#F9FAFB","--card-active-description-background-color":this.storeData.settings.card_active_description_bg_clr||"#F9FAFB","--card-overlay-color":this.storeData.settings.card_overlay_clr||"#f6b26b3f","--card-border-color":this.storeData.settings.card_border_clr||"#eaecf0","--card-active-border-color":this.storeData.settings.card_active_border_clr||"#f6b26b","--expand-description-button-color":this.storeData.settings.expand_description_btn_clr||"#f6b26b","--expand-description-icon-color":this.storeData.settings.expand_description_icon_clr||"#ffffff"}},breadcrumbFont:function(){return this.storeData.settings&&this.storeData.settings.store_fonts.breadcrumb_css_class||""},continueButtonFont:function(){return this.storeData.settings&&this.storeData.settings.store_fonts.continue_btn_css_class||""},backButtonFont:function(){return this.storeData.settings&&this.storeData.settings.store_fonts.back_btn_css_class||""},titleFont:function(){return this.storeData.settings&&this.storeData.settings.store_fonts.category_name_css_class||""},itemNameFont:function(){return this.storeData.settings&&this.storeData.settings.store_fonts.item_name_css_class||""},plainItemNameFont:function(){return this.storeData.settings&&this.storeData.settings.store_fonts.plain_item_name_css_class||""},plainItemNameActiveFont:function(){return this.storeData.settings&&this.storeData.settings.store_fonts.plain_item_name_active_css_class||""},priceFont:function(){return this.storeData.settings&&this.storeData.settings.store_fonts.price_css_class||""},plainItemPriceFont:function(){return this.storeData.settings&&this.storeData.settings.store_fonts.plain_item_price_css_class||""},plainItemPriceActiveFont:function(){return this.storeData.settings&&this.storeData.settings.store_fonts.plain_item_price_active_css_class||""}},methods:{formatPrice:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Intl.NumberFormat("en-US",{style:"currency",currency:e?"USD":this.store.currency.code}).format(t)}}};const r=(0,n(4486).A)(i,undefined,undefined,!1,null,null,null).exports},5016:(t,e,n)=>{"use strict";n.d(e,{A:()=>V});var i=n(8027),r=n(2616),o=n.n(r),a=n(5358),s=n.n(a),l=n(7340),c=n(8858);const u={name:"FontSelect",mixins:[c.A],props:{options:{type:Array,default:function(){return[{value:"store-font-georama-thin",label:"Georama Thin"},{value:"store-font-georama-regular",label:"Georama Regular"},{value:"store-font-georama-bold",label:"Georama Bold"},{value:"store-font-hamlet-thin",label:"Hamlet Thin"},{value:"store-font-hamlet-regular",label:"Hamlet Regular"},{value:"store-font-hamlet-bold",label:"Hamlet Bold"},{value:"store-font-roboto-thin",label:"Roboto Thin"},{value:"store-font-roboto-regular",label:"Roboto Regular"},{value:"store-font-roboto-bold",label:"Roboto Bold"},{value:"store-font-arial",label:"Arial"},{value:"store-font-arial store-font-bold",label:"Arial Bold"},{value:"store-font-verdana",label:"Verdana"},{value:"store-font-verdana store-font-bold",label:"Verdana Bold"},{value:"store-font-tahoma",label:"Tahoma"},{value:"store-font-tahoma store-font-bold",label:"Tahoma Bold"},{value:"store-font-trebuchet-ms",label:"Trebuchet MS"},{value:"store-font-trebuchet-ms store-font-bold",label:"Trebuchet MS Bold"},{value:"store-font-impact",label:"Impact"},{value:"store-font-impact store-font-bold",label:"Impact Bold"},{value:"store-font-times-new-roman",label:"Times New Roman"},{value:"store-font-times-new-roman store-font-bold",label:"Times New Roman Bold"},{value:"store-font-didot",label:"Didot"},{value:"store-font-didot store-font-bold",label:"Didot Bold"},{value:"store-font-georgia",label:"Georgia"},{value:"store-font-georgia store-font-bold",label:"Georgia Bold"},{value:"store-font-american-typewriter",label:"American Typewriter"},{value:"store-font-american-typewriter store-font-bold",label:"American Typewriter Bold"},{value:"store-font-andale-mono",label:"Andalé Mono"},{value:"store-font-andale-mono store-font-bold",label:"Andalé Mono Bold"},{value:"store-font-courier",label:"Courier"},{value:"store-font-courier store-font-bold",label:"Courier Bold"},{value:"store-font-lucida-console",label:"Lucida Console"},{value:"store-font-lucida-console store-font-bold",label:"Lucida Console Bold"},{value:"store-font-monaco",label:"Monaco"},{value:"store-font-monaco store-font-bold",label:"Monaco Bold"},{value:"store-font-bradley-hand",label:"Bradley Hand"},{value:"store-font-bradley-hand store-font-bold",label:"Bradley Hand Bold"},{value:"store-font-brush-script-mt",label:"Brush Script MT"},{value:"store-font-brush-script-mt store-font-bold",label:"Brush Script MT Bold"},{value:"store-font-comic-sans-ms",label:"Comic Sans MS"},{value:"store-font-comic-sans-ms store-font-bold",label:"Comic Sans MS Bold"}]}},value:{type:String,default:null}},data:function(){return{id:null,orderedOptions:[],name:null,file:null}},computed:{userOptions:function(){return this.$store.state.fonts},selectedValue:function(){var t=this;if(!this.value)return null;var e=this.userOptions?this.userOptions.find((function(e){return e.value===t.value})):null;return e||(e=this.options.find((function(e){return e.value===t.value}))),e}},methods:{select:function(t){this.$emit("input",t)},upload:function(t){this.file=t.target.files[0],this.name||(this.name=this.file.name.match(/^([^,.])+/g)[0].replace(/[_|-]/g," "))},showUploadForm:function(){this.$bvModal.show("upload-font-modal-".concat(this.id))},addFont:function(){var t=this;this.fetching=!0;var e=new FormData;e.append("name",this.name),e.append("file",this.file),axios.post("/customer-view/fonts",e).then((function(e){var n=e.data.data;t.$bvModal.hide("upload-font-modal-".concat(t.id)),t.successAlert("Font added successfully"),t.$store.commit("addFont",n);var i="@font-face { font-family: '".concat(n.name,"'; src: url('").concat(n.url,"'); } ");i+=".".concat(n.class," { font-family: '").concat(n.name,"', sans-serif; }");var r=document.createElement("style");document.head.appendChild(r),r.appendChild(document.createTextNode(i))})).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))},deleteFont:function(t){var e=this;this.fetching=!0,this.confirm((function(){axios.delete("/customer-view/fonts/"+t).then((function(n){e.successAlert("Font deleted successfully"),e.$store.commit("removeFont",t)})).catch((function(t){e.alertErrors(t.response.data)})).finally((function(){e.fetching=!1}))}))}},created:function(){this.id=this._uid,this.orderedOptions=_.orderBy(this.options,"label")}};var d=n(5072),h=n.n(d),p=n(6371),f={insert:"head",singleton:!1};h()(p.A,f);p.A.locals;var m=n(4486);const v=(0,m.A)(u,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"font-select"},[n("div",{staticClass:"dropdown dropright"},[n("a",{staticClass:"dropdown-toggle",attrs:{href:"#","data-toggle":"dropdown","aria-expanded":"false",role:"button"}},[t.selectedValue?n("span",{class:t.selectedValue.value},[t._v(t._s(t.selectedValue.label))]):n("span",[t._v("Default")])]),t._v(" "),n("ul",{staticClass:"dropdown-menu"},[n("li",[n("a",{staticClass:"dropdown-item",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showUploadForm.apply(null,arguments)}}},[n("i",{staticClass:"fa fa-plus"}),t._v(" Add Font")])]),t._v(" "),n("li",{staticClass:"dropdown-divider"}),t._v(" "),t._l(t.userOptions,(function(e){return n("li",[n("a",{staticClass:"dropdown-item",class:[e.value,t.value===e.value?"active":""],attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),n.target!==n.currentTarget?null:t.select(e.value)}}},[t._v(t._s(e.label)+"\n          "),n("a",{attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),t.deleteFont(e.id)}}},[n("i",{staticClass:"fa fa-times text-danger"})])])])})),t._v(" "),t.userOptions&&t.userOptions.length?n("li",{staticClass:"dropdown-divider"}):t._e(),t._v(" "),t._l(t.orderedOptions,(function(e){return n("li",[n("a",{staticClass:"dropdown-item",class:[e.value,t.value===e.value?"active":""],attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),t.select(e.value)}}},[t._v(t._s(e.label))])])}))],2)]),t._v(" "),n("b-modal",{attrs:{id:"upload-font-modal-"+t.id},scopedSlots:t._u([{key:"modal-title",fn:function(){return[n("h4",[t._v("Add Font")])]},proxy:!0},{key:"modal-footer",fn:function(){return[n("button",{staticClass:"btn btn-primary",attrs:{disabled:t.fetching},on:{click:t.addFont}},[t._v("Save")])]},proxy:!0}])},[t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"font-name-"+t.id}},[t._v("Name")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.name,expression:"name"}],staticClass:"form-control",attrs:{type:"text",id:"font-name-"+t.id},domProps:{value:t.name},on:{input:function(e){e.target.composing||(t.name=e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"col-12"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"font-file-"+t.id}},[t._v("Select .ttf file")]),t._v(" "),n("input",{attrs:{type:"file",id:"font-file-"+t.id,accept:".ttf"},on:{change:t.upload}})])])])])],1)}),[],!1,null,"3e2782e3",null).exports;var g=n(9974),b=n(156);const y={name:"quote-template",components:{LvColorPicker:i.A,ImageUploader:g.A,ImageEditor:b.A,VueGoogleAutocomplete:l.A,FontSelect:v},props:{ready:{},store:{},quote:{},canManage:{type:Boolean,default:!1}},data:function(){return{address:this.store.address}},computed:{tableFont:function(){return this.quote.table_font||""},infoFont:function(){return this.quote.info_font||""},currency:function(){return this.store&&this.store.currency?this.store.currency:null},cssVars:function(){return{"--table-color":this.quote.table_color,"--table-bg":this.quote.table_bg,"--info-color":this.quote.info_color,"--info-bg":this.quote.info_bg}}},methods:{getAddressData:function(t,e,n){this.store.address=e.formatted_address,this.address=this.store.address}},created:function(){}};var w=n(3132),x={insert:"head",singleton:!1};h()(w.A,x);w.A.locals;const C=(0,m.A)(y,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row",style:t.cssVars},[n("div",{staticClass:"col-12 mb-3"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-8"},[t.ready?n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-4"},[n("h4",[t._v("Table")]),t._v(" "),n("label",[t._v("Font")]),t._v(" "),n("div",{staticClass:"form-group"},[n("font-select",{attrs:{disabled:!t.canManage},model:{value:t.quote.table_font,callback:function(e){t.$set(t.quote,"table_font",e)},expression:"quote.table_font"}})],1),t._v(" "),n("div",{staticClass:"mb-2"},[n("LvColorPicker",{attrs:{label:"Colour",clearable:!0,hidePalette:!0,disabled:!t.canManage},model:{value:t.quote.table_color,callback:function(e){t.$set(t.quote,"table_color",e)},expression:"quote.table_color"}})],1),t._v(" "),n("div",{staticClass:"mb-2"},[n("LvColorPicker",{attrs:{label:"Background Colour",clearable:!0,hidePalette:!0,disabled:!t.canManage},model:{value:t.quote.table_bg,callback:function(e){t.$set(t.quote,"table_bg",e)},expression:"quote.table_bg"}})],1)]),t._v(" "),n("div",{staticClass:"col-12 col-md-4"},[n("h4",[t._v("Information")]),t._v(" "),n("label",[t._v("Font")]),t._v(" "),n("div",{staticClass:"form-group"},[n("font-select",{attrs:{disabled:!t.canManage},model:{value:t.quote.info_font,callback:function(e){t.$set(t.quote,"info_font",e)},expression:"quote.info_font"}})],1),t._v(" "),n("div",{staticClass:"mb-2"},[n("LvColorPicker",{attrs:{label:"Colour",clearable:!0,hidePalette:!0,disabled:!t.canManage},model:{value:t.quote.info_color,callback:function(e){t.$set(t.quote,"info_color",e)},expression:"quote.info_color"}})],1),t._v(" "),n("div",{staticClass:"mb-2"},[n("LvColorPicker",{attrs:{label:"Background Colour",clearable:!0,hidePalette:!0,disabled:!t.canManage},model:{value:t.quote.info_bg,callback:function(e){t.$set(t.quote,"info_bg",e)},expression:"quote.info_bg"}})],1)])]):t._e()]),t._v(" "),n("div",{staticClass:"col-12 col-md-4"},[n("h4",[t._v("Client Logo")]),t._v(" "),n("image-editor",{attrs:{id:"client-logo",height:"150px"},model:{value:t.store.logo,callback:function(e){t.$set(t.store,"logo",e)},expression:"store.logo"}})],1)])]),t._v(" "),n("div",{staticClass:"col-12 mb-3"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-xl-8 col-lg-6 col-md-6"},[n("div",{staticClass:"query_info_box",class:t.infoFont},[n("h4",[t._v("Customer Information")]),t._v(" "),n("div",{staticClass:"mb-2"},[t._v("Customer Name")]),t._v(" "),n("div",{staticClass:"mb-2"},[t._v("Address")]),t._v(" "),n("div",{staticClass:"mb-2"},[t._v("Phone")]),t._v(" "),n("div",{staticClass:"mb-2"},[t._v("Email")])])]),t._v(" "),n("div",{staticClass:"col-xl-4 col-lg-6 col-md-6"},[n("h4",[t._v("Client Information")]),t._v(" "),n("div",{staticClass:"form-group row align-items-center"},[n("label",{staticClass:"col-4 form-label",attrs:{for:"name"}},[t._v("Client Name")]),t._v(" "),n("div",{staticClass:"col-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.store.client_name,expression:"store.client_name"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Client Name",disabled:!t.canManage},domProps:{value:t.store.client_name},on:{input:function(e){e.target.composing||t.$set(t.store,"client_name",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row align-items-center"},[n("label",{staticClass:"col-4 form-label",attrs:{for:"map"}},[t._v("Address\n            ")]),t._v(" "),n("div",{staticClass:"col-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.store.address,expression:"store.address"}],staticClass:"form-control",attrs:{type:"text",id:"map",placeholder:"Please type your address",disabled:!t.canManage},domProps:{value:t.store.address},on:{input:function(e){e.target.composing||t.$set(t.store,"address",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row align-items-center"},[n("label",{staticClass:"col-4 form-label",attrs:{for:"email"}},[t._v("Email")]),t._v(" "),n("div",{staticClass:"col-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.store.email,expression:"store.email"}],staticClass:"form-control",attrs:{type:"text",id:"email",placeholder:"Email",disabled:!t.canManage},domProps:{value:t.store.email},on:{input:function(e){e.target.composing||t.$set(t.store,"email",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row align-items-center"},[n("label",{staticClass:"col-4 form-label",attrs:{for:"phone"}},[t._v("Phone")]),t._v(" "),n("div",{staticClass:"col-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.store.phone,expression:"store.phone"}],staticClass:"form-control",attrs:{type:"text",id:"phone",placeholder:"Phone",disabled:!t.canManage},domProps:{value:t.store.phone},on:{input:function(e){e.target.composing||t.$set(t.store,"phone",e.target.value)}}})])])])])]),t._v(" "),n("div",{staticClass:"col-lg-12"},[n("div",{staticClass:"table_customer",class:t.tableFont},[n("table",{staticClass:"table"},[n("thead",{staticClass:"table_fixed"},[n("tr",[n("th",[t._v("Step")]),t._v(" "),n("th",[t._v("Item")]),t._v(" "),n("th",[n("div",{staticClass:"d-flex justify-content-center"},[t._v("\n              Quantity\n              "),n("b-form-checkbox",{staticClass:"ml-2",attrs:{switch:"",value:"1","unchecked-value":"0"},model:{value:t.quote.show_quantity,callback:function(e){t.$set(t.quote,"show_quantity",e)},expression:"quote.show_quantity"}})],1)]),t._v(" "),n("th",[n("div",{staticClass:"d-flex justify-content-center"},[t._v("\n              Price\n              "),n("b-form-checkbox",{staticClass:"ml-2",attrs:{switch:"",value:"1","unchecked-value":"0"},model:{value:t.quote.show_price,callback:function(e){t.$set(t.quote,"show_price",e)},expression:"quote.show_price"}})],1)]),t._v(" "),n("th",[n("div",{staticClass:"d-flex justify-content-center"},[t._v("\n              Discount\n              "),n("b-form-checkbox",{staticClass:"ml-2",attrs:{switch:"",value:"1","unchecked-value":"0"},model:{value:t.quote.show_discount,callback:function(e){t.$set(t.quote,"show_discount",e)},expression:"quote.show_discount"}})],1)]),t._v(" "),n("th",[n("div",{staticClass:"d-flex justify-content-end"},[t._v("\n              Total\n              "),n("b-form-checkbox",{staticClass:"ml-2",attrs:{switch:"",value:"1","unchecked-value":"0"},model:{value:t.quote.show_total,callback:function(e){t.$set(t.quote,"show_total",e)},expression:"quote.show_total"}})],1)])])]),t._v(" "),n("tbody",[n("tr",[n("td",{attrs:{colspan:"6"}},[n("table",{staticClass:"template_table table_fixed table table-borderless mb-0"},[n("tbody",[n("tr",{staticClass:"table-active"},[t._m(0),t._v(" "),n("td",[t._v("Tourer")]),t._v(" "),n("td",{staticClass:"text-center"},[t._v("1")]),t._v(" "),n("td",{staticClass:"text-center"},[t._v(t._s(t.currency.symbol)+"90")]),t._v(" "),n("td",{staticClass:"text-center"},[t._v("10%")]),t._v(" "),n("td",{staticClass:"text-right"},[t._v(t._s(t.currency.symbol)+"90")])])])])])]),t._v(" "),n("tr",[n("td",{attrs:{colspan:"6"}},[n("table",{staticClass:"template_table table_fixed table table-borderless mb-0"},[n("tbody",[n("tr",{staticClass:"table-active"},[t._m(1),t._v(" "),n("td",[t._v("Grey")]),t._v(" "),n("td",{staticClass:"text-center"},[t._v("1")]),t._v(" "),n("td",{staticClass:"text-center"},[t._v(t._s(t.currency.symbol)+"90")]),t._v(" "),n("td",{staticClass:"text-center"},[t._v("10%")]),t._v(" "),n("td",{staticClass:"text-right"},[t._v(t._s(t.currency.symbol)+"90")])])])])])]),t._v(" "),n("tr",[n("td",{attrs:{colspan:"6"}},[n("table",{staticClass:"template_table table_fixed table table-borderless mb-0"},[n("tbody",[n("tr",{staticClass:"table-active"},[t._m(2),t._v(" "),n("td",[t._v("18ft Single Axle Cafe")]),t._v(" "),n("td",{staticClass:"text-center"},[t._v("1")]),t._v(" "),n("td",{staticClass:"text-center"},[t._v(t._s(t.currency.symbol)+"90")]),t._v(" "),n("td",{staticClass:"text-center"},[t._v("10%")]),t._v(" "),n("td",{staticClass:"text-right"},[t._v(t._s(t.currency.symbol)+"90")])])])])])])])]),t._v(" "),n("div",{staticClass:"charge_total_box",class:t.infoFont},[n("span",[t._v("Total "),n("i",[t._v(t._s(t.currency.symbol)+"5.999")])])]),t._v(" "),n("div",{staticClass:"disclaimer"},[n("div",{staticClass:"row justify-content-center"},[n("div",{staticClass:"col-lg-5"},[n("div",{staticClass:"disclaimer_form"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.store.disclaimer,expression:"store.disclaimer"}],staticClass:"form-control",attrs:{placeholder:"Disclaimer",rows:"5",disabled:!t.canManage},domProps:{value:t.store.disclaimer},on:{input:function(e){e.target.composing||t.$set(t.store,"disclaimer",e.target.value)}}})])])])])])])])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("td",[n("b",[t._v("Model")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("td",[n("b",[t._v("Exterior Colour")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("td",[n("b",[t._v("Size and layout")])])}],!1,null,"37caa815",null).exports;var S=n(8852);function E(t){return E="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},E(t)}function T(){T=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var r=e&&e.prototype instanceof d?e:d,o=Object.create(r.prototype),a=new C(i||[]);return o._invoke=function(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return O()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=c(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var u={};function d(){}function h(){}function p(){}var f={};s(f,r,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(S([])));v&&v!==e&&n.call(v,r)&&(f=v);var g=p.prototype=d.prototype=Object.create(f);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){function i(r,o,a,s){var l=c(t[r],t,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==E(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(d).then((function(t){u.value=t,a(u)}),(function(t){return i("throw",t,a,s)}))}s(l.arg)}var r;this._invoke=function(t,n){function o(){return new e((function(e,r){i(t,n,e,r)}))}return r=r?r.then(o,o):o()}}function _(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var i=c(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,u;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function S(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=p,s(g,"constructor",p),s(p,"constructor",h),h.displayName=s(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,s(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(y.prototype),s(y.prototype,o,(function(){return this})),t.AsyncIterator=y,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new y(l(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,a,"Generator"),s(g,r,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=S,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return a.type="throw",a.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;x(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}function O(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function k(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){O(o,i,r,a,s,"next",t)}function s(t){O(o,i,r,a,s,"throw",t)}a(void 0)}))}}function A(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function P(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?A(Object(n),!0).forEach((function(e){M(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function M(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const L={name:"background-settings",props:{value:{type:Object},canManage:{type:Boolean,default:!1}},components:{LvColorPicker:i.A,Editor:S.A},mixins:[c.A],data:function(){return{header:null,mobile_header:null,body:null,mobile_body:null,footer:null,mobile_footer:null,edit_header:!1,edit_mobile_header:!1,edit_body:!1,edit_mobile_body:!1,edit_footer:!1,edit_mobile_footer:!1,mobilePreset:[{title:"",width:768,height:1e3}],desktopPreset:[{title:"",width:1280,height:1e3}]}},watch:{},computed:{headerStyles:function(){if(this.value.custom_header_bg){if(this.value.header_bg_grouped){var t=P({},this.bodyStyles);return t.backgroundPosition=null,t}return{backgroundImage:this.header?"url(".concat(this.header,")"):null,backgroundColor:this.value.header_bg_clr,color:this.value.header_bg_clr||this.header?"#fff":"#000"}}return null},mobileHeaderStyles:function(){if(this.value.custom_header_bg){if(this.value.header_bg_grouped){var t=P({},this.mobileBodyStyles);return t.backgroundPosition=null,t}return{backgroundColor:this.value.header_bg_clr,backgroundImage:this.mobile_header?"url(".concat(this.mobile_header,")"):null,color:this.value.header_bg_clr||this.mobile_header?"#fff":"#000"}}return null},bodyStyles:function(){return this.value.custom_bg?{backgroundImage:this.body?"url(".concat(this.body,")"):null,backgroundPosition:this.bodyBackgroundPosition,backgroundColor:this.value.bg_clr,color:this.value.bg_clr||this.body?"#fff":"#000"}:{}},mobileBodyStyles:function(){var t=P({},this.bodyStyles);return this.value.custom_bg&&this.mobile_body?(t.backgroundImage="url(".concat(this.mobile_body,")"),t):t},footerStyles:function(){if(this.value.custom_footer_bg){if(this.value.footer_bg_grouped){var t=P({},this.bodyStyles);return t.backgroundPosition=this.footerBackgroundPosition,t}return{backgroundColor:this.value.footer_bg_clr,backgroundImage:this.footer?"url(".concat(this.footer,")"):null,color:this.value.footer_bg_clr||this.footer?"#fff":"#000"}}return null},mobileFooterStyles:function(){if(this.value.custom_footer_bg){if(this.value.footer_bg_grouped){var t=P({},this.mobileBodyStyles);return t.backgroundPosition=this.footerBackgroundPosition,t}return{backgroundColor:this.value.footer_bg_clr,backgroundImage:this.mobile_footer?"url(".concat(this.mobile_footer,")"):null,color:this.value.footer_bg_clr||this.mobile_footer?"#fff":"#000"}}return null},bodyBackgroundPosition:function(){return this.value.header_bg_grouped?"0 -50px":"0 0"},footerBackgroundPosition:function(){return this.value.footer_bg_grouped?this.value.header_bg_grouped?"0 -100px":"0 -50px":"0 0"}},methods:{crop:function(t,e){this.value["".concat(e,"_image")].cropped=t.file,this.value["".concat(e,"_image")].croppingInfo=t.croppingInfo,this[e]=t.imageUrl,this["edit_".concat(e)]=!1},upload:function(t,e){var n=URL.createObjectURL(e);this["edit_".concat(t)]=!1,this["edit_mobile_".concat(t)]=!1,this[t]=n,this.value["".concat(t,"_image")]={original:e,imageUrl:n},this["mobile_".concat(t)]=n,this.value["mobile_".concat(t,"_image")]={original:e,imageUrl:n}},uploadHeader:function(t){this.upload("header",t.target.files[0])},uploadBody:function(t){this.upload("body",t.target.files[0])},uploadFooter:function(t){this.upload("footer",t.target.files[0])},deleteHeaderImage:function(){this.value.header_image={original:null},this.value.mobile_header_image={original:null},this.header=null,this.mobile_header=null},deleteBodyImage:function(){this.value.body_image={original:null},this.value.mobile_body_image={original:null},this.body=null,this.mobile_body=null},deleteFooterImage:function(){this.value.footer_image={original:null},this.value.mobile_footer_image={original:null},this.footer=null,this.mobile_footer=null},setImages:function(){var t=this;return k(T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(t.value.images.map(function(){var e=k(T().mark((function e(n){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("header_image"!==n.image_type){e.next=7;break}return e.next=3,t.prepareImage(n);case 3:t.value.header_image=e.sent,t.header=t.value.header_image.url,e.next=40;break;case 7:if("mobile_header_image"!==n.image_type){e.next=14;break}return e.next=10,t.prepareImage(n);case 10:t.value.mobile_header_image=e.sent,t.mobile_header=t.value.mobile_header_image.url,e.next=40;break;case 14:if("body_image"!==n.image_type){e.next=21;break}return e.next=17,t.prepareImage(n);case 17:t.value.body_image=e.sent,t.body=t.value.body_image.url,e.next=40;break;case 21:if("mobile_body_image"!==n.image_type){e.next=28;break}return e.next=24,t.prepareImage(n);case 24:t.value.mobile_body_image=e.sent,t.mobile_body=t.value.mobile_body_image.url,e.next=40;break;case 28:if("footer_image"!==n.image_type){e.next=35;break}return e.next=31,t.prepareImage(n);case 31:t.value.footer_image=e.sent,t.footer=t.value.footer_image.url,e.next=40;break;case 35:if("mobile_footer_image"!==n.image_type){e.next=40;break}return e.next=38,t.prepareImage(n);case 38:t.value.mobile_footer_image=e.sent,t.mobile_footer=t.value.mobile_footer_image.url;case 40:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 2:case"end":return e.stop()}}),e)})))()}},created:function(){var t=this;return k(T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.setImages();case 2:case"end":return e.stop()}}),e)})))()}};var D=n(7864),R={insert:"head",singleton:!1};h()(D.A,R);D.A.locals;const I=(0,m.A)(L,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"row"},[n("div",{staticClass:"col-8 mt-4"},[n("div",{staticClass:"background-setting-wrapper row align-items-center"},[n("div",{staticClass:"col-4"},[n("b-form-checkbox",{attrs:{switch:"",disabled:!t.canManage},model:{value:t.value.custom_header_bg,callback:function(e){t.$set(t.value,"custom_header_bg",e)},expression:"value.custom_header_bg"}},[t._v("\n            Customize Header\n          ")])],1),t._v(" "),n("div",{staticClass:"col-4"},[t.value.custom_header_bg&&!t.value.header_bg_grouped?n("LvColorPicker",{staticClass:"mb-0 hide-label",attrs:{clearable:!0,hidePalette:!0,disabled:!t.canManage},model:{value:t.value.header_bg_clr,callback:function(e){t.$set(t.value,"header_bg_clr",e)},expression:"value.header_bg_clr"}}):t._e()],1),t._v(" "),n("div",{staticClass:"col-3"},[t.value.custom_header_bg&&!t.value.header_bg_grouped?[n("label",{staticClass:"cursor_pointer"},[n("i",{staticClass:"fa fa-upload text-primary"}),t._v(" upload image\n              "),n("input",{staticClass:"d-none",attrs:{type:"file",disabled:!t.canManage},on:{change:t.uploadHeader}})]),t._v(" "),t.header?n("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.deleteHeaderImage.apply(null,arguments)}}},[n("i",{staticClass:"fa fa-times text-danger"})]):t._e()]:t._e()],2),t._v(" "),n("div",{staticClass:"col-1"},[t.value.custom_header_bg&&t.value.custom_bg?n("label",{staticClass:"m-0 cursor_pointer",attrs:{title:"Group Header and Body"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.value.header_bg_grouped,expression:"value.header_bg_grouped"}],staticClass:"d-none",attrs:{type:"checkbox",disabled:!t.canManage},domProps:{checked:Array.isArray(t.value.header_bg_grouped)?t._i(t.value.header_bg_grouped,null)>-1:t.value.header_bg_grouped},on:{change:function(e){var n=t.value.header_bg_grouped,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&t.$set(t.value,"header_bg_grouped",n.concat([null])):o>-1&&t.$set(t.value,"header_bg_grouped",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.value,"header_bg_grouped",r)}}}),t._v(" "),t.value.header_bg_grouped?n("i",{staticClass:"fa fa-minus text-danger"}):n("i",{staticClass:"fa fa-plus text-primary"})]):t._e()])]),t._v(" "),n("div",{staticClass:"background-setting-wrapper row align-items-center"},[n("div",{staticClass:"col-4"},[n("b-form-checkbox",{attrs:{switch:"",disabled:!t.canManage},model:{value:t.value.custom_bg,callback:function(e){t.$set(t.value,"custom_bg",e)},expression:"value.custom_bg"}},[t._v("\n            Customize Body\n          ")])],1),t._v(" "),n("div",{staticClass:"col-4"},[t.value.custom_bg?n("LvColorPicker",{staticClass:"mb-0 hide-label",attrs:{clearable:!0,hidePalette:!0,disabled:!t.canManage},model:{value:t.value.bg_clr,callback:function(e){t.$set(t.value,"bg_clr",e)},expression:"value.bg_clr"}}):t._e()],1),t._v(" "),n("div",{staticClass:"col-3"},[t.value.custom_bg?[n("label",{staticClass:"cursor_pointer"},[n("i",{staticClass:"fa fa-upload text-primary"}),t._v(" upload image\n              "),n("input",{staticClass:"d-none",attrs:{type:"file",disabled:!t.canManage},on:{change:t.uploadBody}})]),t._v(" "),t.body?n("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.deleteBodyImage.apply(null,arguments)}}},[n("i",{staticClass:"fa fa-times text-danger"})]):t._e()]:t._e()],2),t._v(" "),n("div",{staticClass:"col-1"})]),t._v(" "),n("div",{staticClass:"background-setting-wrapper row align-items-center"},[n("div",{staticClass:"col-4"},[n("b-form-checkbox",{attrs:{switch:"",disabled:!t.canManage},model:{value:t.value.custom_footer_bg,callback:function(e){t.$set(t.value,"custom_footer_bg",e)},expression:"value.custom_footer_bg"}},[t._v("\n            Customize Footer\n          ")])],1),t._v(" "),n("div",{staticClass:"col-4"},[t.value.custom_footer_bg&&!t.value.footer_bg_grouped?n("LvColorPicker",{staticClass:"mb-0 hide-label",attrs:{clearable:!0,hidePalette:!0,disabled:!t.canManage},model:{value:t.value.footer_bg_clr,callback:function(e){t.$set(t.value,"footer_bg_clr",e)},expression:"value.footer_bg_clr"}}):t._e()],1),t._v(" "),n("div",{staticClass:"col-3"},[t.value.custom_footer_bg&&!t.value.footer_bg_grouped?[n("label",{staticClass:"cursor_pointer"},[n("i",{staticClass:"fa fa-upload text-primary"}),t._v(" upload image\n              "),n("input",{staticClass:"d-none",attrs:{type:"file",disabled:!t.canManage},on:{change:t.uploadFooter}})]),t._v(" "),t.footer?n("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.deleteFooterImage.apply(null,arguments)}}},[n("i",{staticClass:"fa fa-times text-danger"})]):t._e()]:t._e()],2),t._v(" "),n("div",{staticClass:"col-1"},[t.value.custom_footer_bg&&t.value.custom_bg?n("label",{staticClass:"m-0 cursor_pointer",attrs:{title:"Group Footer and Body"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.value.footer_bg_grouped,expression:"value.footer_bg_grouped"}],staticClass:"d-none",attrs:{type:"checkbox",disabled:!t.canManage},domProps:{checked:Array.isArray(t.value.footer_bg_grouped)?t._i(t.value.footer_bg_grouped,null)>-1:t.value.footer_bg_grouped},on:{change:function(e){var n=t.value.footer_bg_grouped,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&t.$set(t.value,"footer_bg_grouped",n.concat([null])):o>-1&&t.$set(t.value,"footer_bg_grouped",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.value,"footer_bg_grouped",r)}}}),t._v(" "),t.value.footer_bg_grouped?n("i",{staticClass:"fa fa-minus text-danger"}):n("i",{staticClass:"fa fa-plus text-primary"})]):t._e()])])]),t._v(" "),n("div",{staticClass:"col-4"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-4"},[t.value.custom_bg||t.value.custom_header_bg||t.value.custom_footer_bg?n("div",{staticClass:"text-center"},[t._v("\n            Mobile Layout "),n("span",{attrs:{title:"Not actual preview"}},[t._v("(?)")])]):t._e(),t._v(" "),t.value.custom_header_bg?n("div",{staticClass:"custom-background",class:{"has-image":t.value.header_image},style:t.mobileHeaderStyles,on:{click:function(e){t.edit_mobile_header=!0}}},[n("div",[t._v("Header")]),t._v(" "),t.edit_mobile_header&&t.value.mobile_header_image?n("editor",{attrs:{"image-url":t.value.mobile_header_image.imageUrl,"cropping-info":t.value.mobile_header_image.croppingInfo,"is-main-image":!0,"can-remove":!1,"can-change":!1,"fixed-ratio":!1,presets:t.mobilePreset},on:{close:function(e){t.edit_mobile_header=!1},crop:function(e){return t.crop(e,"mobile_header")}}}):t._e()],1):t._e(),t._v(" "),t.value.custom_bg?n("div",{staticClass:"custom-background",class:{"has-image":t.value.body_image},style:t.mobileBodyStyles,on:{click:function(e){t.edit_mobile_body=!0}}},[n("div",[t._v("Body")]),t._v(" "),t.edit_mobile_body&&t.value.mobile_body_image?n("editor",{attrs:{"image-url":t.value.mobile_body_image.imageUrl,"cropping-info":t.value.mobile_body_image.croppingInfo,"is-main-image":!0,"can-remove":!1,"can-change":!1,"fixed-ratio":!1,presets:t.mobilePreset},on:{close:function(e){t.edit_mobile_body=!1},crop:function(e){return t.crop(e,"mobile_body")}}}):t._e()],1):t._e(),t._v(" "),t.value.custom_footer_bg?n("div",{staticClass:"custom-background",class:{"has-image":t.value.footer_image},style:t.mobileFooterStyles,on:{click:function(e){t.edit_mobile_footer=!0}}},[n("div",[t._v("Footer")]),t._v(" "),t.edit_mobile_footer&&t.value.mobile_footer_image?n("editor",{attrs:{"image-url":t.value.mobile_footer_image.imageUrl,"cropping-info":t.value.mobile_footer_image.croppingInfo,"is-main-image":!0,"can-remove":!1,"can-change":!1,"fixed-ratio":!1,presets:t.mobilePreset},on:{close:function(e){t.edit_mobile_footer=!1},crop:function(e){return t.crop(e,"mobile_footer")}}}):t._e()],1):t._e()]),t._v(" "),n("div",{staticClass:"col-8"},[t.value.custom_bg||t.value.custom_header_bg||t.value.custom_footer_bg?n("div",{staticClass:"text-center"},[t._v("\n            Desktop Layout "),n("span",{attrs:{title:"Not actual preview"}},[t._v("(?)")])]):t._e(),t._v(" "),t.value.custom_header_bg?n("div",{staticClass:"custom-background",class:{"has-image":t.value.header_image},style:t.headerStyles,on:{click:function(e){t.edit_header=!0}}},[n("div",[t._v("Header")]),t._v(" "),t.edit_header&&t.value.header_image?n("editor",{attrs:{"image-url":t.value.header_image.imageUrl,"cropping-info":t.value.header_image.croppingInfo,"is-main-image":!0,"can-remove":!1,"can-change":!1,"fixed-ratio":!1,presets:t.desktopPreset},on:{close:function(e){t.edit_header=!1},crop:function(e){return t.crop(e,"header")}}}):t._e()],1):t._e(),t._v(" "),t.value.custom_bg?n("div",{staticClass:"custom-background",class:{"has-image":t.value.body_image},style:t.bodyStyles,on:{click:function(e){t.edit_body=!0}}},[n("div",[t._v("Body")]),t._v(" "),t.edit_body&&t.value.body_image?n("editor",{attrs:{"image-url":t.value.body_image.imageUrl,"cropping-info":t.value.body_image.croppingInfo,"is-main-image":!0,"can-remove":!1,"can-change":!1,"fixed-ratio":!1,presets:t.desktopPreset},on:{close:function(e){t.edit_body=!1},crop:function(e){return t.crop(e,"body")}}}):t._e()],1):t._e(),t._v(" "),t.value.custom_footer_bg?n("div",{staticClass:"custom-background",class:{"has-image":t.value.footer_image},style:t.footerStyles,on:{click:function(e){t.edit_footer=!0}}},[n("div",[t._v("Footer")]),t._v(" "),t.edit_footer&&t.value.footer_image?n("editor",{attrs:{"image-url":t.value.footer_image.imageUrl,"cropping-info":t.value.footer_image.croppingInfo,"is-main-image":!0,"can-remove":!1,"can-change":!1,"fixed-ratio":!1,presets:t.desktopPreset},on:{close:function(e){t.edit_footer=!1},crop:function(e){return t.crop(e,"footer")}}}):t._e()],1):t._e()])])])])])}),[],!1,null,"7e6351c0",null).exports;function j(t){return j="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},j(t)}function N(){N=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var r=e&&e.prototype instanceof d?e:d,o=Object.create(r.prototype),a=new C(i||[]);return o._invoke=function(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return E()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=c(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var u={};function d(){}function h(){}function p(){}var f={};s(f,r,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(S([])));v&&v!==e&&n.call(v,r)&&(f=v);var g=p.prototype=d.prototype=Object.create(f);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){function i(r,o,a,s){var l=c(t[r],t,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==j(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(d).then((function(t){u.value=t,a(u)}),(function(t){return i("throw",t,a,s)}))}s(l.arg)}var r;this._invoke=function(t,n){function o(){return new e((function(e,r){i(t,n,e,r)}))}return r=r?r.then(o,o):o()}}function _(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var i=c(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,u;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function S(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:E}}function E(){return{value:void 0,done:!0}}return h.prototype=p,s(g,"constructor",p),s(p,"constructor",h),h.displayName=s(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,s(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(y.prototype),s(y.prototype,o,(function(){return this})),t.AsyncIterator=y,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new y(l(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,a,"Generator"),s(g,r,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=S,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return a.type="throw",a.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;x(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}function F(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?F(Object(n),!0).forEach((function(e){B(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function B(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function U(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){$(o,i,r,a,s,"next",t)}function s(t){$(o,i,r,a,s,"throw",t)}a(void 0)}))}}Vue.use(o());const H={props:["links","store","canManage","currencies","defaultSettings"],components:{QuoteTemplate:C,BackgroundSettings:I,LvColorPicker:i.A,Swatches:s(),FontSelect:v},data:function(){return{isDesktop:!0,showDraft:!1,showLive:!1,fetching:!1,storeData:this.store,preview:null,link:null,customerRequirementsOptions:[{text:"Name",value:"name"},{text:"Phone",value:"phone"},{text:"Address",value:"address"}],quote:{info_font:null,info_color:"#2d2d2d",info_bg:"#eff4f8",table_font:null,table_color:"#212529",table_bg:"#f8f8f8",show_quantity:1,show_price:1,show_discount:1,show_total:1}}},computed:{iframeWrapperClasses:function(){return this.isDesktop?"tab_content p-0":"text-center"},iframeStyles:function(){var t={};return this.isDesktop?(t.width="100%",t.height="1000px",t.border="none"):(t.width="375px",t.height="667px",t.border="2px solid #1282a2",t.borderRadius="10px"),t}},methods:{uploadFavicon:function(t){var e=this;this.fetching=!0;var n=new FormData;n.append("image",t.target.files[0]),axios.post(this.links.upload_favicon,n).then((function(t){e.storeData.faviconPath=t.data.data.faviconPath})).catch((function(t){e.alertErrors(t.response.data)})).finally((function(){e.fetching=!1}))},deleteFavicon:function(){var t=this;this.confirm((function(){t.fetching=!0,axios.delete(t.links.delete_favicon).then((function(e){t.storeData.faviconPath=null})).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))}))},isRequired:function(t){return this.storeData.settings.customer_requirements.includes(t)},tryHiddenPricesModal:function(){this.$bvModal.show("customer-modal")},tryPopup:function(){this.$swal({title:this.storeData.popup_title,text:this.storeData.popup_text,confirmButtonText:this.storeData.popup_btn_text,confirmButtonColor:this.storeData.btn_clr,type:"success"})},setStoreSettings:function(){var t=this;return U(N().mark((function e(){return N().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.store.settings?t.storeData.settings=z({},t.store.settings):t.storeData.settings=z({},t.defaultSettings),!t.storeData.logo){e.next=5;break}return e.next=4,t.prepareImage(t.storeData.logo);case 4:t.storeData.logo=e.sent;case 5:if(!t.storeData.emailLogo){e.next=9;break}return e.next=8,t.prepareImage(t.storeData.emailLogo);case 8:t.storeData.emailLogo=e.sent;case 9:t.storeData.settings.quote&&(t.quote=t.storeData.settings.quote,void 0===t.quote.show_quantity&&(t.quote.show_quantity=1),void 0===t.quote.show_price&&(t.quote.show_price=1),void 0===t.quote.show_discount&&(t.quote.show_discount=1),void 0===t.quote.show_total&&(t.quote.show_total=1)),null===t.storeData.bg_clr&&(t.storeData.bg_clr=""),null===t.storeData.header_bg_clr&&(t.storeData.header_bg_clr=""),null===t.storeData.footer_bg_clr&&(t.storeData.footer_bg_clr="");case 13:case"end":return e.stop()}}),e)})))()},toggleStatus:function(){var t=this;this.fetching=!0,axios.put(this.links.store_status.replace("store_id",this.storeData.user_id)).then((function(e){t.storeData.live=1!==t.storeData.live,t.successNotice("Store status has been updated.")})).catch((function(e){t.alertErrors()})).finally((function(){t.fetching=!1}))},prepareData:function(){var t=new FormData,e=["logo","emailLogo","images","settings","currency"];for(var n in this.storeData)this.storeData.hasOwnProperty(n)&&(e.includes(n)||(null===this.storeData[n]?t.append(n,""):t.append(n,this.storeData[n])));for(var i in this.quote)this.quote.hasOwnProperty(i)&&t.append("quote[".concat(i,"]"),this.quote[i]);return t},update:function(){var t=this;this.fetching=!0,this.storeData.default_theme=!1,this.uploadImages().then((function(){t.updateSettings()})).catch((function(e){t.alertErrors()})).finally((function(){t.fetching=!1}))},updateSettings:function(){var t=this;axios.put(this.links.store_ui_settings,this.storeData).then((function(e){t.successNotice("Store updated.")})).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))},updateTemplate:function(){var t=this;this.fetching=!0;var e=this.links.store_template_settings.replace("store_id",this.storeData.user_id);this.uploadImages().then((function(){axios.post(e,t.prepareData()).then((function(e){t.successNotice("Quote Template updated.")})).catch((function(e){t.alertErrors()})).finally((function(){t.fetching=!1}))})).catch((function(e){t.alertErrors()})).finally((function(){t.fetching=!1}))},uploadImages:function(){var t=this;return U(N().mark((function e(){var n,i;return N().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=["logo","header_image","mobile_header_image","body_image","mobile_body_image","footer_image","mobile_footer_image"],i=new FormData,n.forEach((function(e){var n=t.storeData[e];t.appendImage(i,n,"images[".concat(e,"]"))})),t.appendImage(i,t.storeData.emailLogo,"images[email_logo]"),!i.entries().next().done){e.next=8;break}return e.abrupt("return",!0);case 8:return e.next=10,axios.post(t.links.update_images,i);case 10:return e.abrupt("return",e.sent);case 11:case"end":return e.stop()}}),e)})))()}},mounted:function(){this.link=this.links.store_home_preview.replace("store_slug",this.storeData.name)}};const V=(0,m.A)(H,undefined,undefined,!1,null,null,null).exports},7809:(t,e,n)=>{"use strict";n.d(e,{A:()=>d});var i=n(3969);function r(t){return r="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},r(t)}function o(){o=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,i){var r=e&&e.prototype instanceof p?e:p,o=Object.create(r.prototype),a=new E(i||[]);return o._invoke=function(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return O()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=d(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h={};function p(){}function f(){}function m(){}var v={};c(v,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==e&&n.call(b,a)&&(v=b);var y=m.prototype=p.prototype=Object.create(v);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(o,a,s,l){var c=d(t[o],t,a);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==r(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,s,l)}),(function(t){i("throw",t,s,l)})):e.resolve(h).then((function(t){u.value=t,s(u)}),(function(t){return i("throw",t,s,l)}))}l(c.arg)}var o;this._invoke=function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var i=d(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function T(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:O}}function O(){return{value:void 0,done:!0}}return f.prototype=m,c(y,"constructor",m),c(m,"constructor",f),f.displayName=c(m,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,l,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},_(w.prototype),c(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new w(u(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(y),c(y,l,"Generator"),c(y,a,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return a.type="throw",a.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function a(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function s(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function s(t){a(o,i,r,s,l,"next",t)}function l(t){a(o,i,r,s,l,"throw",t)}s(void 0)}))}}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const u={data:function(){return{monday:null,monday_install:null,model:{notification_enabled:!0,xero_enabled:!1,monday_enabled:!1}}},computed:{userSettings:function(){return i.A.query().first()}},methods:{fetchMonday:function(){var t=this;axios.get("/monday").then((function(e){t.monday=e.data.current,t.monday_install=e.data.install_url}))},fetchUserSettings:function(){var t=this;axios.get("/user-settings").then((function(e){i.A.create({data:e.data.user_setting}),t.model=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t.userSettings),t.isReady=!0}))},updateMonday:function(){var t=this;return s(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.update({monday_enabled:t.model.monday_enabled});case 2:case"end":return e.stop()}}),e)})))()},updateSetting:function(t){var e=this;return s(o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.update(c({},t,e.model[t]));case 2:if("xero_enabled"!==t||!e.userSettings.xero_enabled){n.next=5;break}return n.next=5,e.fetchXeroDataAndMaybeCreateNewXeroAccount();case 5:case"end":return n.stop()}}),n)})))()},update:function(t){var e=this;return s(o().mark((function n(){var r;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.$put("/user-settings",t);case 2:return r=n.sent,n.next=5,i.A.create({data:r.data.user_setting});case 5:e.successNotice("Settings have been updated.");case 6:case"end":return n.stop()}}),n)})))()},fetchXeroDataAndMaybeCreateNewXeroAccount:function(){var t=this;return s(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$get("/xero/auth-data");case 2:if(!e.sent.data.xero){e.next=5;break}return e.abrupt("return");case 5:window.location.replace("/ext-api-auth/xero/authorization");case 6:case"end":return e.stop()}}),e)})))()}}};const d=(0,n(4486).A)(u,undefined,undefined,!1,null,null,null).exports},8194:(t,e,n)=>{"use strict";n.d(e,{A:()=>D});var i=n(8858),r=n(3853),o=n(7376);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={name:"personal-settings",props:{user:{type:Object}},mixins:[i.A],components:{Password:o.A},data:function(){return{model:{name:null,email:null,phone:null}}},methods:{update:function(){var t=this;this.fetching=!0,axios.post("/admins/".concat(this.model.id),this.model).then((function(e){r.A.update({where:t.model.id,data:e.data.data}),t.successNotice("Details Updated.")})).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))}},created:function(){this.model=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this.user)}};var c=n(4486);const u=(0,c.A)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.fetching,expression:"!fetching"}],staticClass:"col-md-6 col-xl-5"},[n("h4",{staticClass:"mb-4"},[t._v("Details")]),t._v(" "),n("form",{on:{submit:function(e){return e.preventDefault(),t.update.apply(null,arguments)}}},[n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"user-name"}},[t._v("Name*")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.model.name,expression:"model.name"}],staticClass:"form-control",attrs:{type:"text",name:"name",id:"user-name",required:""},domProps:{value:t.model.name},on:{input:function(e){e.target.composing||t.$set(t.model,"name",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"user-email"}},[t._v("Email*")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.model.email,expression:"model.email"}],staticClass:"form-control",attrs:{type:"email",name:"email",id:"user-email",required:""},domProps:{value:t.model.email},on:{input:function(e){e.target.composing||t.$set(t.model,"email",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"user-phone"}},[t._v("Phone")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.model.phone,expression:"model.phone"}],staticClass:"form-control",attrs:{type:"text",name:"phone",id:"user-phone"},domProps:{value:t.model.phone},on:{input:function(e){e.target.composing||t.$set(t.model,"phone",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"mt-4 text-right"},[n("button",{staticClass:"button btn btn-primary",attrs:{type:"submit",disabled:t.fetching}},[t._v("Save")])])])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.fetching,expression:"!fetching"}],staticClass:"col-md-6 col-xl-5 offset-xl-2"},[n("h4",{staticClass:"mb-4"},[t._v("Change Password")]),t._v(" "),n("password")],1)])}),[],!1,null,null,null).exports;function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const p={name:"admin-list",props:{user:{type:Object},roles:{}},mixins:[i.A],data:function(){return{admin:{id:null,role:null,name:null,email:null,phone:null,password:null}}},computed:{adminList:function(){return r.A.query().orderBy("id","asc").get()},adminRoles:function(){var t=this;return this.roles.filter((function(e){return t.adminRoleNames.includes(e.name)})).map((function(t){return{id:t.name,label:t.display_name}}))}},methods:{edit:function(t){this.admin.id===t.id?this.resetAdmin():this.admin=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t)},submit:function(){this.admin.id?this.update():this.create()},create:function(){var t=this;this.fetching=!0,axios.post("/admins",this.admin).then((function(e){r.A.insert({data:e.data.data}),t.successAlert("Admin Created."),t.resetAdmin()})).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))},update:function(){var t=this;this.fetching=!0,axios.post("/admins/".concat(this.admin.id),this.admin).then((function(e){r.A.update({where:t.admin.id,data:e.data.data}),t.successAlert("Admin Updated.")})).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))},deleteAdmin:function(t){var e=this;this.confirm((function(){e.fetching=!0,axios.delete("/admins/".concat(t.id)).then((function(n){r.A.delete(t.id),e.admin.id===t.id&&e.resetAdmin(),e.successAlert("Admin Deleted.")})).catch((function(t){e.alertErrors(t.response.data)})).finally((function(){e.fetching=!1}))}))},resetAdmin:function(){this.admin={id:null,role:null,name:null,email:null,phone:null,password:null}}},created:function(){}};const f=(0,c.A)(p,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"col-12"},[n("div",{staticClass:"row"},[t.fetching?n("loader",{staticStyle:{position:"fixed"}}):t._e(),t._v(" "),n("div",{staticClass:"col-md-5"},[t.admin.id?n("h4",{staticClass:"mb-4"},[t._v("Update Admin")]):n("h4",{staticClass:"mb-4"},[t._v("Create Admin")]),t._v(" "),n("form",{on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"admin-role"}},[t._v("Role*")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("treeselect",{attrs:{id:"admin-role",options:t.adminRoles,clearable:!1,placeholder:"Select Role"},model:{value:t.admin.role,callback:function(e){t.$set(t.admin,"role",e)},expression:"admin.role"}})],1)]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"admin-name"}},[t._v("Name*")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.admin.name,expression:"admin.name"}],staticClass:"form-control",attrs:{type:"text",name:"name",id:"admin-name",required:""},domProps:{value:t.admin.name},on:{input:function(e){e.target.composing||t.$set(t.admin,"name",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"admin-email"}},[t._v("Email*")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.admin.email,expression:"admin.email"}],staticClass:"form-control",attrs:{type:"email",name:"email",id:"admin-email",required:""},domProps:{value:t.admin.email},on:{input:function(e){e.target.composing||t.$set(t.admin,"email",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"admin-phone"}},[t._v("Phone")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.admin.phone,expression:"admin.phone"}],staticClass:"form-control",attrs:{type:"text",name:"phone",id:"admin-phone"},domProps:{value:t.admin.phone},on:{input:function(e){e.target.composing||t.$set(t.admin,"phone",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"admin-password"}},[t._v("\n            Password\n            "),t.admin.id?t._e():[t._v("*")]],2),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.admin.password,expression:"admin.password"}],staticClass:"form-control",attrs:{type:"password",name:"password",id:"admin-password",required:!t.admin.id},domProps:{value:t.admin.password},on:{input:function(e){e.target.composing||t.$set(t.admin,"password",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"mt-4 text-right"},[t.admin.id?n("button",{staticClass:"btn btn-outline-primary",attrs:{type:"button"},on:{click:function(e){return t.edit(t.admin)}}},[n("i",{staticClass:"fa fa-times"}),t._v(" Cancel\n          ")]):t._e(),t._v(" "),n("button",{staticClass:"btn btn-primary",attrs:{type:"submit"}},[t.admin.id?[t._v("Update")]:[t._v("Create")]],2)])])]),t._v(" "),t.adminList.length?n("div",{staticClass:"col-md-7"},[n("h4",{staticClass:"mb-4"},[t._v("Admins")]),t._v(" "),n("div",{staticClass:"table-responsive"},[n("table",{staticClass:"table shadow-none"},[t._m(0),t._v(" "),n("tbody",t._l(t.adminList,(function(e){return n("tr",{class:e.id===t.admin.id?"active-stock":null},[n("td",[t._v(t._s(e.name))]),t._v(" "),n("td",[t._v(t._s(e.email))]),t._v(" "),n("td",[t._v(t._s(e.phone))]),t._v(" "),n("td",[n("span",{domProps:{innerHTML:t._s(t.getRoleBadge(e.role))}})]),t._v(" "),n("td",[t._v(t._s(e.logged_at))]),t._v(" "),n("td",{staticClass:"text-right"},[t.admin.id===e.id?n("button",{staticClass:"button btn btn-secondary",attrs:{title:"Edit"},on:{click:function(n){return t.edit(e)}}},[n("i",{staticClass:"fa fa-times"})]):n("button",{staticClass:"button btn btn-primary",attrs:{title:"Edit"},on:{click:function(n){return t.edit(e)}}},[n("i",{staticClass:"fa fa-pencil"})]),t._v(" "),n("button",{staticClass:"button btn btn-danger",attrs:{title:"Delete"},on:{click:function(n){return t.deleteAdmin(e)}}},[n("i",{staticClass:"fa fa-trash"})])])])})),0)])])]):t._e()],1)])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("thead",{staticClass:"table_head_snap"},[n("tr",[n("th",[t._v("Name")]),t._v(" "),n("th",[t._v("Email")]),t._v(" "),n("th",[t._v("Phone")]),t._v(" "),n("th",[t._v("Role")]),t._v(" "),n("th",[t._v("Last Login")]),t._v(" "),n("th",{staticClass:"text-right"},[t._v("Actions")])])])}],!1,null,null,null).exports;function m(t){return function(t){if(Array.isArray(t))return v(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return v(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?g(Object(n),!0).forEach((function(e){y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const _={name:"roles",props:{roles:{},permissions:{}},mixins:[i.A],data:function(){return{list:[],role:{id:null},values:[]}},computed:{adminRoles:function(){var t=this;return this.list.filter((function(e){return t.adminRoleNames.includes(e.name)}))},clientRoles:function(){var t=this;return this.list.filter((function(e){return!t.adminRoleNames.includes(e.name)}))},adminPermissions:function(){return this.permissions.filter((function(t){return 1===t.admin_permission})).map((function(t){return{id:t.name,label:t.display_name}}))},clientPermissions:function(){return this.permissions.filter((function(t){return 1===t.client_permission})).map((function(t){return{id:t.name,label:t.display_name}}))}},methods:{edit:function(t){this.role.id===t.id?(this.role={id:null},this.values=[]):(this.role=b({},t),this.values=t.permissions.map((function(t){return t.name})))},save:function(){var t=this;this.fetching=!0,axios.post("/roles/".concat(this.role.id),b(b({},this.role),{},{permissions:this.values})).then((function(e){var n=t.list.findIndex((function(e){return e.id===t.role.id}));t.list[n]=e.data.data,t.list=m(t.list),t.$toasted.show("Updated!")})).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))}},created:function(){this.list=m(this.roles),this.options=this.permissions.map((function(t){return{id:t.name,label:t.display_name}}))}};const w=(0,c.A)(_,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("h4",{staticClass:"mb-4"},[t._v("Admin Roles")]),t._v(" "),n("table",{staticClass:"table shadow-none"},[t._m(0),t._v(" "),n("tbody",t._l(t.adminRoles,(function(e){return n("tr",{class:e.id===t.role.id?"active-stock":null},[n("td",[n("span",{domProps:{innerHTML:t._s(t.getRoleBadge(e.name))}})]),t._v(" "),n("td",[t._v(t._s(e.description))]),t._v(" "),n("td",{staticClass:"text-center"},[t._v(t._s(e.permissions.length)+"/"+t._s(t.adminPermissions.length))]),t._v(" "),n("td",{staticClass:"text-right"},[n("button",{staticClass:"btn btn-primary edit-btn",attrs:{title:"Edit"},on:{click:function(n){return t.edit(e)}}},[n("i",{staticClass:"fa fa-pencil"})])])])})),0)]),t._v(" "),n("h4",{staticClass:"mb-4"},[t._v("Client Roles")]),t._v(" "),n("table",{staticClass:"table shadow-none"},[t._m(1),t._v(" "),n("tbody",t._l(t.clientRoles,(function(e){return n("tr",{class:e.id===t.role.id?"active-stock":null},[n("td",[n("span",{domProps:{innerHTML:t._s(t.getRoleBadge(e.name))}})]),t._v(" "),n("td",[t._v(t._s(e.description))]),t._v(" "),n("td",{staticClass:"text-center"},[t._v(t._s(e.permissions.length)+"/"+t._s(t.clientPermissions.length))]),t._v(" "),n("td",{staticClass:"text-right"},[n("button",{staticClass:"btn btn-primary edit-btn",attrs:{title:"Edit"},on:{click:function(n){return t.edit(e)}}},[n("i",{staticClass:"fa fa-pencil"})])])])})),0)])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.role.id,expression:"role.id"}],staticClass:"col-md-6"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v("Role Name:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.role.display_name,expression:"role.display_name"}],staticClass:"form-control",attrs:{type:"text",id:"name"},domProps:{value:t.role.display_name},on:{input:function(e){e.target.composing||t.$set(t.role,"display_name",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"description"}},[t._v("Description:")]),t._v(" "),n("b-form-textarea",{attrs:{id:"description","min-rows":"2"},model:{value:t.role.description,callback:function(e){t.$set(t.role,"description",e)},expression:"role.description"}})],1),t._v(" "),n("treeselect",{directives:[{name:"show",rawName:"v-show",value:t.adminRoleNames.includes(t.role.name),expression:"adminRoleNames.includes(role.name)"}],attrs:{options:t.adminPermissions,clearable:!0,multiple:!0,placeholder:"Pick permissions",disabled:"owner"===t.role.name},model:{value:t.values,callback:function(e){t.values=e},expression:"values"}}),t._v(" "),n("treeselect",{directives:[{name:"show",rawName:"v-show",value:!t.adminRoleNames.includes(t.role.name),expression:"!adminRoleNames.includes(role.name)"}],attrs:{options:t.clientPermissions,clearable:!0,multiple:!0,placeholder:"Pick permissions"},model:{value:t.values,callback:function(e){t.values=e},expression:"values"}}),t._v(" "),n("div",{staticClass:"text-right mt-5"},[n("button",{staticClass:"btn btn-primary",attrs:{disabled:t.fetching||"owner"===t.role.name},on:{click:function(e){return e.preventDefault(),t.save.apply(null,arguments)}}},[t._v("\n        Save\n      ")])])],1)])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("thead",{staticClass:"table_head_snap"},[n("tr",[n("th",[t._v("Role")]),t._v(" "),n("th",[t._v("Description")]),t._v(" "),n("th",{staticClass:"text-center"},[t._v("Permissions")]),t._v(" "),n("th",{staticClass:"text-right"},[t._v("Actions")])])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("thead",{staticClass:"table_head_snap"},[n("tr",[n("th",[t._v("Role")]),t._v(" "),n("th",[t._v("Description")]),t._v(" "),n("th",{staticClass:"text-center"},[t._v("Permissions")]),t._v(" "),n("th",{staticClass:"text-right"},[t._v("Actions")])])])}],!1,null,null,null).exports;const x={name:"permissions",props:{roles:{},permissions:{}},mixins:[i.A],data:function(){return{role_list:[]}},computed:{},methods:{},created:function(){this.role_list=this.roles.map((function(t){return t.permission_ids=t.permissions.map((function(t){return t.id})),t}))}};var C=n(5072),S=n.n(C),E=n(1030),T={insert:"head",singleton:!1};S()(E.A,T);E.A.locals;const O=(0,c.A)(x,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("h4",{staticClass:"mb-4"},[t._v("Permissions")]),t._v(" "),n("table",{staticClass:"table shadow-none"},[t._m(0),t._v(" "),n("tbody",t._l(t.permissions,(function(e){return n("tr",[n("td",{staticClass:"permission-name"},[e.name.includes("page")?n("span",{staticClass:"badge badge-primary"},[t._v("Page")]):t._e(),t._v("\n          "+t._s(e.display_name)+"\n        ")]),t._v(" "),n("td",{staticClass:"permission-roles"},[n("div",{staticClass:"row"},t._l(t.roles,(function(i){return i.permission_ids.includes(e.id)?n("div",{staticClass:"col-auto px-1"},[n("span",{domProps:{innerHTML:t._s(t.getRoleBadge(i.name))}})]):t._e()})),0)]),t._v(" "),n("td",[t._v(t._s(e.description))])])})),0)])])])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("thead",{staticClass:"table_head_snap"},[n("tr",[n("th",{staticClass:"permission-name"},[t._v("Permission")]),t._v(" "),n("th",{staticClass:"permission-roles"},[t._v("Roles")]),t._v(" "),n("th",[t._v("Description")])])])}],!1,null,"df1d8604",null).exports;function k(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function A(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const P={name:"client-settings",props:{settings:{}},mixins:[i.A],components:{},data:function(){return{model:{enabled_step_builder:1,enabled_2_factor_auth:1,enabled_signup:0,twilio_enabled:!1,twilio_account_sid:null,twilio_auth_token:null,twilio_phone_number:null}}},computed:{},methods:{toggleSetting:function(t){this.update(A({},t,this.model[t]))},updateTwilio:function(){this.update({twilio_account_sid:this.model.twilio_account_sid,twilio_auth_token:this.model.twilio_auth_token,twilio_phone_number:this.model.twilio_phone_number})},update:function(t){var e=this;this.fetching=!0,axios.post("/settings/update",t).then((function(t){e.successNotice("Settings have been updated.")})).catch((function(t){e.alertErrors(t.response.data)})).finally((function(){e.fetching=!1}))}},created:function(){this.model=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?k(Object(n),!0).forEach((function(e){A(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this.settings)}};const M=(0,c.A)(P,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[t.fetching?n("loader"):t._e(),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.fetching,expression:"!fetching"}],staticClass:"col-md-6 col-xl-5"},[n("h4",{staticClass:"mb-4"},[t._v("Client Settings")]),t._v(" "),n("b-form-checkbox",{staticClass:"mb-2",attrs:{size:"lg",value:"1","unchecked-value":"0",switch:""},on:{change:function(e){return t.toggleSetting("enabled_signup")}},model:{value:t.model.enabled_signup,callback:function(e){t.$set(t.model,"enabled_signup",e)},expression:"model.enabled_signup"}},[t._v("\n      Signup "),n("span",{attrs:{title:"allow users to register themselves"}},[t._v("(?)")])]),t._v(" "),n("b-form-checkbox",{staticClass:"mb-2",attrs:{size:"lg",value:"1","unchecked-value":"0",switch:""},on:{change:function(e){return t.toggleSetting("enabled_step_builder")}},model:{value:t.model.enabled_step_builder,callback:function(e){t.$set(t.model,"enabled_step_builder",e)},expression:"model.enabled_step_builder"}},[t._v("\n      Step Builder\n    ")]),t._v(" "),n("b-form-checkbox",{staticClass:"mb-2",attrs:{size:"lg",value:"1","unchecked-value":"0",switch:""},on:{change:function(e){return t.toggleSetting("enabled_2_factor_auth")}},model:{value:t.model.enabled_2_factor_auth,callback:function(e){t.$set(t.model,"enabled_2_factor_auth",e)},expression:"model.enabled_2_factor_auth"}},[t._v("\n      2 Factor Auth\n    ")]),t._v(" "),n("b-form-checkbox",{staticClass:"mb-3",attrs:{size:"lg",value:"1","unchecked-value":"0",switch:""},on:{change:function(e){return t.toggleSetting("twilio_enabled")}},model:{value:t.model.twilio_enabled,callback:function(e){t.$set(t.model,"twilio_enabled",e)},expression:"model.twilio_enabled"}},[t._v("\n      Use Twilio for 2FA\n    ")]),t._v(" "),n("form",{directives:[{name:"show",rawName:"v-show",value:t.model.twilio_enabled>0,expression:"model.twilio_enabled > 0"}],on:{submit:function(e){return e.preventDefault(),t.updateTwilio.apply(null,arguments)}}},[n("h4",{staticClass:"mb-0"},[t._v("Twilio Credentials")]),t._v(" "),n("small",{staticClass:"text-black-50"},[t._v("*Used to send SMS when passing 2 factor authentication")]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"twilio_account_sid"}},[t._v("Account SID")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.model.twilio_account_sid,expression:"model.twilio_account_sid"}],staticClass:"form-control",attrs:{type:"text",name:"twilio_account_sid",id:"twilio_account_sid"},domProps:{value:t.model.twilio_account_sid},on:{input:function(e){e.target.composing||t.$set(t.model,"twilio_account_sid",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"twilio_auth_token"}},[t._v("Auth Token")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.model.twilio_auth_token,expression:"model.twilio_auth_token"}],staticClass:"form-control",attrs:{type:"text",name:"twilio_auth_token",id:"twilio_auth_token"},domProps:{value:t.model.twilio_auth_token},on:{input:function(e){e.target.composing||t.$set(t.model,"twilio_auth_token",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"twilio_phone_number"}},[t._v("Phone Number")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.model.twilio_phone_number,expression:"model.twilio_phone_number"}],staticClass:"form-control",attrs:{type:"text",name:"twilio_phone_number",id:"twilio_phone_number"},domProps:{value:t.model.twilio_phone_number},on:{input:function(e){e.target.composing||t.$set(t.model,"twilio_phone_number",e.target.value)}}})])]),t._v(" "),t._m(0)])],1)],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mt-4 text-right"},[n("button",{staticClass:"button btn btn-primary",attrs:{type:"submit"}},[t._v("Save")])])}],!1,null,null,null).exports,L={name:"admin-settings",props:{user:{type:Object},userPermissions:{},users:{type:Array},roles:{},permissions:{},settings:{}},mixins:[i.A],components:{Admins:f,PersonalSettings:u,Roles:w,Permissions:O,GlobalSettings:M},data:function(){return{}},computed:{canManageAdmins:function(){return this.userPermissions.includes("manage_admins")},canManageRoles:function(){return this.userPermissions.includes("manage_roles")},canManageSettings:function(){return this.userPermissions.includes("manage_global_settings")}},methods:{},created:function(){r.A.create({data:this.users})}};const D=(0,c.A)(L,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-tabs",{attrs:{"content-class":"mb-3"}},[n("b-tab",{attrs:{title:"Master Settings"}},[n("div",{staticClass:"bg-white col-12 p-xl-5 pt-3"},[n("personal-settings",{attrs:{user:t.user}}),t._v(" "),n("hr"),t._v(" "),t.canManageAdmins?n("admins",{attrs:{user:t.user,roles:t.roles}}):t._e()],1)]),t._v(" "),t.canManageRoles?n("b-tab",{attrs:{title:"Roles"}},[n("div",{staticClass:"bg-white col-12 p-xl-5 pt-3"},[n("roles",{attrs:{roles:t.roles,permissions:t.permissions}})],1)]):t._e(),t._v(" "),t.canManageRoles?n("b-tab",{attrs:{title:"Permissions"}},[n("div",{staticClass:"bg-white col-12 p-xl-5 pt-3"},[n("permissions",{attrs:{roles:t.roles,permissions:t.permissions}})],1)]):t._e(),t._v(" "),t.canManageSettings?n("b-tab",{attrs:{title:"Client Settings"}},[n("div",{staticClass:"bg-white col-12 p-xl-5 pt-3"},[n("global-settings",{attrs:{settings:t.settings}})],1)]):t._e()],1)}),[],!1,null,null,null).exports},2237:(t,e,n)=>{"use strict";n.d(e,{A:()=>f});var i=n(204),r=n(8858),o=n(967),a=n(3853);function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const c={name:"client-manager",components:{scroll:i.A,User:a.A},mixins:[r.A],props:["users","permissions"],data:function(){return{clone:{id:null,name:null,email:null,password:null},store:{id:null,name:null,managers:[]},errors:{},open:{}}},computed:{list:function(){return this.$store.state.users},canManage:function(){return this.permissions.includes("manage_clients")},masterClients:function(){return this.list.filter((function(t){return"master-client"===t.role})).map((function(t){return{id:t.id,label:t.name}}))},isOpen:function(){var t=this;return function(e,n){var i="".concat(e.id,".").concat(n.id);return!!t.open[i]&&t.open[i]}}},methods:{toggle:function(t,e){var n="".concat(t.id,".").concat(e.id);this.open[n]?this.open[n]=!this.open[n]:this.open[n]=!0,this.open=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this.open)},assignManager:function(t){this.store.id=t.id,this.store.name=t.name,this.store.managers=t.managers.map((function(t){return t.id})),this.$bvModal.show("assign-manager-modal")},confirmAssign:function(){var t=this;this.fetching=!0,axios.post("/client-manager/".concat(this.store.id,"/managers"),this.store).then((function(e){t.$bvModal.hide("assign-manager-modal"),t.$store.commit("setUsers",e.data.data)})).catch((function(e){t.setErrors(e)})).finally((function(){t.fetching=!1}))},cloneClient:function(t){this.clone.id=t.id,this.clone.name=t.store.name+"-clone",this.clone.email=null,this.clone.password=null,this.$bvModal.show("clone-modal")},confirmClone:function(){var t=this;this.fetching=!0,axios.post("/client-manager/".concat(this.clone.id,"/clone"),this.clone).then((function(e){t.$bvModal.hide("clone-modal"),window.location.reload()})).catch((function(e){t.setErrors(e)})).finally((function(){t.fetching=!1}))},impersonate:function(t){var e=this;o.A.impersonate(t).catch((function(t){e.alertErrors(t.response.data)}))}},mounted:function(){this.users&&this.$store.commit("setUsers",this.users.map((function(t){return t.open=!1,t})))}};var u=n(5072),d=n.n(u),h=n(3236),p={insert:"head",singleton:!1};d()(h.A,p);h.A.locals;const f=(0,n(4486).A)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[t.fetching?n("loader"):t._e(),t._v(" "),n("div",{staticClass:"col-12"},[n("div",{staticClass:"table-responsive"},[n("scroll",{staticStyle:{height:"calc(100vh - 180px)"}},[n("table",{staticClass:"table shadow-none"},[n("thead",{staticClass:"table_head_snap"},[n("tr",[n("th",{staticClass:"user-id"}),t._v(" "),n("th",{staticClass:"user-id"},[t._v("ID")]),t._v(" "),n("th",{staticClass:"user-name"},[t._v("Client")]),t._v(" "),n("th",{staticClass:"user-email"},[t._v("Email")]),t._v(" "),n("th",{staticClass:"user-store"},[t._v("Role")]),t._v(" "),n("th",{staticClass:"user-store"},[t._v("Store")]),t._v(" "),n("th",{staticClass:"user-store-live"},[t._v("Live")]),t._v(" "),n("th",{staticClass:"user-active"},[t._v("Active")]),t._v(" "),n("th",{staticClass:"user-agents"},[t._v("Agents")]),t._v(" "),n("th",{staticClass:"text-right"},[t._v("Actions")])])]),t._v(" "),n("tbody",[t._l(t.list,(function(e){return[n("tr",[n("td",{staticClass:"user-id"},[e.store&&e.store.agents.length?n("a",{staticClass:"toggle-agents text-primary",attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),t.toggle(e.store,e)}}},[t.isOpen(e.store,e)?n("i",{staticClass:"fa fa-angle-up"}):n("i",{staticClass:"fa fa-angle-down"})]):t._e()]),t._v(" "),n("td",{staticClass:"user-id"},[t._v(t._s(e.id))]),t._v(" "),n("td",{staticClass:"user-name"},[t._v(t._s(e.name))]),t._v(" "),n("td",{staticClass:"user-email"},[t._v(t._s(e.email))]),t._v(" "),n("td",{staticClass:"user-store"},[n("span",{domProps:{innerHTML:t._s(t.getRoleBadge(e.role))}})]),t._v(" "),n("td",{staticClass:"user-store"},[n("div",[e.store?n("a",{attrs:{href:e.store.link,target:"_blank"}},[t._v("\n                    "+t._s(e.store.id)+". "+t._s(e.store.name)+"\n                  ")]):t._e()]),t._v(" "),t._l(e.managed_stores,(function(i){return e.managed_stores?n("div",[n("a",{attrs:{href:i.link,target:"_blank"}},[t._v("\n                    "+t._s(i.id)+". "+t._s(i.name)+"\n                  ")])]):t._e()}))],2),t._v(" "),n("td",{staticClass:"user-store-live"},[e.store?n("span",[e.store.live?n("i",{staticClass:"fa fa-check text-success"}):n("i",{staticClass:"fa fa-times text-danger"})]):t._e()]),t._v(" "),n("td",{staticClass:"user-active"},[e.deactivated_at?n("i",{staticClass:"fa fa-times text-danger"}):n("i",{staticClass:"fa fa-check text-success"})]),t._v(" "),n("td",{staticClass:"user-agents"},[e.store?n("span",[t._v(t._s(e.store.agents.length))]):t._e()]),t._v(" "),n("td",{staticClass:"text-right"},[t.canManage?[e.store?[e.store.managers&&e.store.managers.length?n("button",{staticClass:"button btn btn-secondary",attrs:{title:"Change Manager"},on:{click:function(n){return t.assignManager(e.store)}}},[n("i",{staticClass:"fa fa-user-times"})]):n("button",{staticClass:"button btn btn-primary",attrs:{title:"Assign Manager"},on:{click:function(n){return t.assignManager(e.store)}}},[n("i",{staticClass:"fa fa-user-plus"})]),t._v(" "),n("button",{staticClass:"button btn btn-primary",attrs:{title:"Clone"},on:{click:function(n){return t.cloneClient(e)}}},[n("i",{staticClass:"fa fa-copy"})])]:void 0,t._v(" "),n("button",{staticClass:"button btn btn-primary",on:{click:function(n){return t.impersonate(e)}}},[t._v("\n                    Manage\n                  ")])]:t._e()],2)]),t._v(" "),e.store&&e.store.agents.length&&t.isOpen(e.store,e)?n("tr",[n("td",{staticClass:"p-0",attrs:{colspan:"10"}},[n("div",{staticClass:"store-agents"},[n("table",{staticClass:"table shadow-none"},[n("thead",{staticClass:"table_head_snap"},[n("tr",[n("th",{staticClass:"user-id"}),t._v(" "),n("th",{staticClass:"user-id"},[t._v("ID")]),t._v(" "),n("th",{staticClass:"user-name"},[t._v("Agent")]),t._v(" "),n("th",{staticClass:"user-email"},[t._v("Email")]),t._v(" "),n("th",{staticClass:"user-store"},[t._v("Role")]),t._v(" "),n("th",{staticClass:"user-agents"},[t._v("Users")]),t._v(" "),n("th",{staticClass:"text-right"},[t._v("Actions")])])]),t._v(" "),n("tbody",[t._l(e.store.agents,(function(i,r){return[n("tr",[n("td",{staticClass:"user-id"},[i.agent_users.length?n("a",{staticClass:"toggle-agents text-primary",attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),t.toggle(e.store,i)}}},[t.isOpen(e.store,i)?n("i",{staticClass:"fa fa-angle-up"}):n("i",{staticClass:"fa fa-angle-down"})]):t._e()]),t._v(" "),n("td",{staticClass:"user-id"},[t._v(t._s(i.id))]),t._v(" "),n("td",{staticClass:"user-name"},[t._v(t._s(i.name))]),t._v(" "),n("td",{staticClass:"user-email"},[t._v(t._s(i.email))]),t._v(" "),n("td",{staticClass:"user-store"},[n("span",{domProps:{innerHTML:t._s(t.getRoleBadge(i.role))}})]),t._v(" "),n("td",{staticClass:"user-agents"},[t._v(t._s(i.agent_users.length))]),t._v(" "),n("td",{staticClass:"text-right"},[t.canManage?n("button",{staticClass:"button btn btn-primary",on:{click:function(e){return t.impersonate(i)}}},[t._v("\n                            Manage\n                          ")]):t._e()])]),t._v(" "),t.isOpen(e.store,i)?n("tr",[n("td",{staticClass:"p-0",attrs:{colspan:"7"}},[n("div",{staticClass:"agent-admins"},[n("table",{staticClass:"table shadow-none"},[n("thead",{staticClass:"table_head_snap"},[n("tr",[n("th",{staticClass:"user-id"},[t._v("ID")]),t._v(" "),n("th",{staticClass:"user-name"},[t._v("User")]),t._v(" "),n("th",{staticClass:"user-email"},[t._v("Email")]),t._v(" "),n("th",{staticClass:"user-store"},[t._v("Role")]),t._v(" "),n("th",{staticClass:"text-right"},[t._v("Actions")])])]),t._v(" "),n("tbody",[t._l(i.agent_users,(function(e){return[n("tr",[n("td",{staticClass:"user-id"},[t._v(t._s(e.id))]),t._v(" "),n("td",{staticClass:"user-name"},[t._v(t._s(e.name))]),t._v(" "),n("td",{staticClass:"user-email"},[t._v(t._s(e.email))]),t._v(" "),n("td",{staticClass:"user-store"},[n("span",{domProps:{innerHTML:t._s(t.getRoleBadge(e.role))}})]),t._v(" "),n("td",{staticClass:"text-right"},[t.canManage?n("button",{staticClass:"button btn btn-primary",on:{click:function(n){return t.impersonate(e)}}},[t._v("\n                                      Manage\n                                    ")]):t._e()])])]}))],2)])])])]):t._e()]}))],2)])])])]):t._e()]})),t._v(" "),t.list.length?t._e():n("tr",[n("td",{staticClass:"text-center",attrs:{colspan:"10"}},[t._v("There are no clients yet.")])])],2)])])],1)]),t._v(" "),n("b-modal",{attrs:{id:"clone-modal"},scopedSlots:t._u([{key:"modal-title",fn:function(){return[n("h4",[t._v("Clone Store")]),t._v(" "),n("div",[n("small",{staticClass:"text-danger"},[t._v("Make sure you have enough disk space.")])]),t._v(" "),n("div",[n("small",[t._v("All store content will be cloned.")])]),t._v(" "),n("div",[n("small",[t._v("You will receive an email when everything is ready.")])])]},proxy:!0},{key:"modal-footer",fn:function(){return[n("button",{staticClass:"btn btn-primary",attrs:{disabled:!t.clone.name||!t.clone.email||t.fetching},on:{click:t.confirmClone}},[t._v("\n        Clone\n      ")])]},proxy:!0}])},[t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"modal-name"}},[t._v("Store Name*")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.clone.name,expression:"clone.name"}],staticClass:"form-control",attrs:{type:"text",id:"modal-name"},domProps:{value:t.clone.name},on:{input:function(e){e.target.composing||t.$set(t.clone,"name",e.target.value)}}}),t._v(" "),t.errors.name?n("span",{staticClass:"validation-error"},[t._v(t._s(t.errors.name))]):t._e()])]),t._v(" "),n("div",{staticClass:"col-12"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"modal-email"}},[t._v("Email*")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.clone.email,expression:"clone.email"}],staticClass:"form-control",attrs:{type:"email",id:"modal-email"},domProps:{value:t.clone.email},on:{input:function(e){e.target.composing||t.$set(t.clone,"email",e.target.value)}}}),t._v(" "),t.errors.email?n("span",{staticClass:"validation-error"},[t._v(t._s(t.errors.email))]):t._e()])]),t._v(" "),n("div",{staticClass:"col-12"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"modal-password"}},[t._v("\n            Password "),n("span",{attrs:{title:"If left blank, the password will also be copied."}},[t._v("(?)")])]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.clone.password,expression:"clone.password"}],staticClass:"form-control",attrs:{type:"password",id:"modal-password"},domProps:{value:t.clone.password},on:{input:function(e){e.target.composing||t.$set(t.clone,"password",e.target.value)}}}),t._v(" "),t.errors.password?n("span",{staticClass:"validation-error"},[t._v(t._s(t.errors.password))]):t._e()])])])]),t._v(" "),n("b-modal",{attrs:{id:"assign-manager-modal"},scopedSlots:t._u([{key:"modal-title",fn:function(){return[n("h4",[t._v('Assign Master Client to "'+t._s(t.store.name)+'"')]),t._v(" "),n("div",[n("small",[t._v("Select one or more master clients to make them managers of this store.")])])]},proxy:!0},{key:"modal-footer",fn:function(){return[n("button",{staticClass:"btn btn-primary",attrs:{disabled:t.fetching},on:{click:t.confirmAssign}},[t._v("\n        Save\n      ")])]},proxy:!0}])},[t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("treeselect",{attrs:{options:t.masterClients,placeholder:"Select Master Client",clearable:!0,multiple:!0},model:{value:t.store.managers,callback:function(e){t.$set(t.store,"managers",e)},expression:"store.managers"}})],1)])])],1)}),[],!1,null,"b3af79fe",null).exports},5860:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var i=n(8858),r=n(204);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}const s={name:"emails",mixins:[i.A],props:["stores","recipients","queries"],components:{scroll:r.A},data:function(){return{base_url:"emails",list:[],page:1,last_page:1,total:0,per_page:30,email:null,store_id:null,query_id:null,view_email:{id:null}}},computed:{},methods:{loadMore:function(){this.fetching||this.page===this.last_page||(this.page++,this.fetch(!0))},fetch:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.fetching=!0,e||(this.page=1);var n="/".concat(this.base_url,"?page=").concat(this.page,"&per_page=").concat(this.per_page);this.email&&(n+="&email=".concat(this.email)),this.store_id&&(n+="&store_id=".concat(this.store_id)),this.query_id&&(n+="&query_id=".concat(this.query_id)),axios.get(n).then((function(n){t.last_page=n.data.meta.last_page,t.total=n.data.meta.total,t.list=e?[].concat(o(t.list),o(n.data.data)):o(n.data.data)})).finally((function(){t.fetching=!1}))},view:function(t){var e=this;axios.get("".concat(this.base_url,"/").concat(t.id)).then((function(t){e.view_email=t.data.data,e.$bvModal.show("email-modal")}))}},mounted:function(){this.fetch()}};var l=n(5072),c=n.n(l),u=n(861),d={insert:"head",singleton:!1};c()(u.A,d);u.A.locals;const h=(0,n(4486).A)(s,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"component_container"},[t.fetching?n("loader"):t._e(),t._v(" "),n("div",{staticClass:"row mb-2"},[n("div",{staticClass:"col-auto pr-2"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],staticClass:"form-control",attrs:{name:"email-recipient"},on:{change:[function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.email=e.target.multiple?n:n[0]},function(e){return t.fetch(!1)}]}},[n("option",{domProps:{value:null}},[t._v("Recipient")]),t._v(" "),t._l(t.recipients,(function(e){return n("option",{domProps:{value:e.email}},[t._v(t._s(e.email))])}))],2)]),t._v(" "),n("div",{staticClass:"col-auto pl-2"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.store_id,expression:"store_id"}],staticClass:"form-control",attrs:{name:"email-enquiry"},on:{change:[function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.store_id=e.target.multiple?n:n[0]},function(e){return t.fetch(!1)}]}},[n("option",{domProps:{value:null}},[t._v("Store")]),t._v(" "),t._l(t.stores,(function(e){return n("option",{domProps:{value:e.store_id}},[t._v(t._s(e.store.name))])}))],2)]),t._v(" "),n("div",{staticClass:"col-auto pl-2"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.query_id,expression:"query_id"}],staticClass:"form-control",attrs:{name:"email-enquiry"},on:{change:[function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.query_id=e.target.multiple?n:n[0]},function(e){return t.fetch(!1)}]}},[n("option",{domProps:{value:null}},[t._v("Enquiry")]),t._v(" "),t._l(t.queries,(function(e){return n("option",{domProps:{value:e.query_id}},[t._v(t._s(e.query_id))])}))],2)])]),t._v(" "),n("div",{staticClass:"list_container"},[n("div",{staticClass:"table-responsive"},[t._m(0),t._v(" "),n("scroll",{staticStyle:{height:"calc(100vh - 300px)"},on:{"load-more":t.loadMore}},[n("table",{staticClass:"table shadow-none"},[n("tbody",t._l(t.list,(function(e){return n("tr",[n("td",{staticClass:"email-id"},[t._v(t._s(e.id))]),t._v(" "),n("td",{staticClass:"email-store"},[e.store?n("span",[t._v(t._s(e.store.name))]):t._e()]),t._v(" "),n("td",{staticClass:"email-enquiry"},[t._v(t._s(e.query_id))]),t._v(" "),n("td",{staticClass:"email-to"},[t._v(t._s(e.email))]),t._v(" "),n("td",{staticClass:"email-subject"},[t._v(t._s(e.subject))]),t._v(" "),n("td",{staticClass:"email-date"},[t._v(t._s(e.created_at))]),t._v(" "),n("td",{staticClass:"email-action"},[n("div",{staticClass:"d-flex justify-content-end align-middle"},[n("button",{staticClass:"btn btn-primary edit-btn mr-2",attrs:{title:"View"},on:{click:function(n){return t.view(e)}}},[n("i",{staticClass:"fa fa-eye"})])])])])})),0)])])],1)]),t._v(" "),n("div",{staticClass:"text-right text-muted"},[t._v("\n    page "+t._s(t.page)+" / "+t._s(t.last_page)+" of "+t._s(t.total)+" emails\n  ")]),t._v(" "),n("b-modal",{attrs:{id:"email-modal",size:"xl","hide-footer":""},scopedSlots:t._u([{key:"modal-title",fn:function(){return[n("div",{staticClass:"text-center"},[n("h4",[t._v(t._s(t.view_email.subject))])])]},proxy:!0}])},[t._v(" "),n("iframe",{staticStyle:{width:"100%",height:"600px"},attrs:{srcdoc:t.view_email.message,frameborder:"0"}})])],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticClass:"table"},[n("thead",{staticClass:"table_head_snap"},[n("tr",[n("th",{staticClass:"email-id"},[t._v("ID")]),t._v(" "),n("th",{staticClass:"email-store"},[t._v("Store")]),t._v(" "),n("th",{staticClass:"email-enquiry"},[t._v("Enquiry")]),t._v(" "),n("th",{staticClass:"email-to"},[t._v("To")]),t._v(" "),n("th",{staticClass:"email-subject"},[t._v("Subject")]),t._v(" "),n("th",{staticClass:"email-date"},[t._v("Date")]),t._v(" "),n("th",{staticClass:"email-action"})])])])}],!1,null,"08842d50",null).exports},5091:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var i=n(9399);n(1876);const r={name:"panorama-viewer",props:{},mixins:[n(8858).A],components:{},data:function(){return{height:"700px",image:null,viewer:null,drag:!1}},computed:{},methods:{drop:function(t){this.drag=!1,this.image=URL.createObjectURL(t.dataTransfer.files[0]),this.image&&this.setPanorama()},upload:function(t){this.image=URL.createObjectURL(t.target.files[0]),this.image&&this.setPanorama()},setPanorama:function(){var t=this;this.fetching=!0,this.viewer?this.viewer.setPanorama(this.image).then((function(){t.fetching=!1})):(this.initPanoramaViewer(this.image),this.viewer.addEventListener("ready",(function(){t.fetching=!1}),{once:!0}))},initPanoramaViewer:function(t){this.viewer=new i.jM({container:this.$refs.viewer,panorama:t,navbar:["zoom","caption","fullscreen"]})}},mounted:function(){}};var o=n(5072),a=n.n(o),s=n(825),l={insert:"head",singleton:!1};a()(s.A,l);s.A.locals;const c=(0,n(4486).A)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.fetching?n("loader"):t._e(),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-8"},[n("div",{staticClass:"dropzone",class:{hover:t.drag},on:{dragenter:function(e){e.preventDefault(),t.drag=!0},dragover:function(e){e.preventDefault(),t.drag=!0},dragleave:function(e){e.preventDefault(),t.drag=!1},drop:function(e){return e.preventDefault(),t.drop.apply(null,arguments)}}},[n("div",{ref:"viewer",style:{height:t.height},attrs:{id:"viewer"}},[t.image?t._e():n("div",{staticClass:"placeholder"},[t._v("Drag & drop or upload image")])])])]),t._v(" "),n("div",{staticClass:"col-4"},[n("label",{staticClass:"btn btn-primary w-100"},[n("i",{staticClass:"fa fa-upload"}),t._v(" Upload\n        "),n("input",{staticClass:"d-none",attrs:{type:"file",accept:"image/*"},on:{change:t.upload}})])])])],1)}),[],!1,null,"50754dd2",null).exports},7771:(t,e,n)=>{"use strict";n.d(e,{A:()=>d});var i=n(204),r=n(8858),o=n(967);const a={name:"users",components:{scroll:i.A},mixins:[r.A],props:["users","stores","roles"],data:function(){return{store_id:null,role:null,query:null}},computed:{filtered:function(){var t=this,e=this.query?this.query.toLowerCase():null;return this.users.filter((function(n){if(e&&!n.name.toLowerCase().includes(e)&&!n.email.toLowerCase().includes(e))return!1;if(t.store_id)if(n.stores.length){if(!n.stores.map((function(t){return t.id})).includes(t.store_id))return!1}else if(!n.store||n.store.id!==t.store_id)return!1;return!(t.role&&!n.roles.includes(t.role))}))}},methods:{canImpersonate:function(t){return!t.roles.some((function(t){return["admin","owner"].includes(t)}))},impersonate:function(t){var e=this;o.A.impersonate(t).catch((function(t){e.alertErrors(t.response.data)}))}},mounted:function(){}};var s=n(5072),l=n.n(s),c=n(8500),u={insert:"head",singleton:!1};l()(c.A,u);c.A.locals;const d=(0,n(4486).A)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[t.fetching?n("loader"):t._e(),t._v(" "),n("div",{staticClass:"col-12"},[n("div",{staticClass:"row mb-2"},[n("div",{staticClass:"col-auto pr-2"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.store_id,expression:"store_id"}],staticClass:"form-control",attrs:{name:"email-enquiry"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.store_id=e.target.multiple?n:n[0]}}},[n("option",{domProps:{value:null}},[t._v("Store")]),t._v(" "),t._l(t.stores,(function(e){return n("option",{domProps:{value:e.id}},[t._v(t._s(e.name))])}))],2)]),t._v(" "),n("div",{staticClass:"col-auto pl-2"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.role,expression:"role"}],staticClass:"form-control",attrs:{name:"email-recipient"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.role=e.target.multiple?n:n[0]}}},[n("option",{domProps:{value:null}},[t._v("Role")]),t._v(" "),t._l(t.roles,(function(e,i){return n("option",{domProps:{value:i}},[t._v(t._s(e.name))])}))],2)])]),t._v(" "),n("div",{staticClass:"table-responsive"},[n("scroll",{staticStyle:{height:"calc(100vh - 210px)"}},[n("table",{staticClass:"table shadow-none"},[n("thead",{staticClass:"table_head_snap"},[n("tr",[n("th",{staticClass:"user-id"},[t._v("ID")]),t._v(" "),n("th",{},[t._v("User")]),t._v(" "),n("th",{},[t._v("Email")]),t._v(" "),n("th",{staticClass:"text-center"},[t._v("Store/Role")]),t._v(" "),n("th",{},[t._v("Created At")]),t._v(" "),n("th",{staticClass:"user-actions"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.query,expression:"query"}],staticClass:"form-control",attrs:{type:"search",placeholder:"Search"},domProps:{value:t.query},on:{input:function(e){e.target.composing||(t.query=e.target.value)}}})])])]),t._v(" "),n("tbody",[t._l(t.filtered,(function(e){return n("tr",[n("td",{staticClass:"user-id"},[t._v(t._s(e.id))]),t._v(" "),n("td",{},[t._v(t._s(e.name))]),t._v(" "),n("td",{},[t._v(t._s(e.email))]),t._v(" "),n("td",{staticClass:"text-center"},[t.canImpersonate(e)?t._e():n("div",t._l(e.roles,(function(e){return n("span",{domProps:{innerHTML:t._s(t.getRoleBadge(e))}})})),0),t._v(" "),e.store?n("div",[t._v("\n                "+t._s(e.store.name)+" "),n("span",{domProps:{innerHTML:t._s(t.getRoleBadge("client"))}})]):t._e(),t._v(" "),e.stores.length?n("div",t._l(e.stores,(function(e){return n("div",[t._v("\n                  "+t._s(e.name)+" "),n("span",{attrs:{title:e.created_at},domProps:{innerHTML:t._s(t.getRoleBadge(e.role))}})])})),0):t._e(),t._v(" "),e.user_owners.length?n("div",t._l(e.user_owners,(function(e){return n("div",[t._v("\n                  "+t._s(e.name)+" "),n("span",{attrs:{title:e.created_at},domProps:{innerHTML:t._s(t.getRoleBadge(e.role))}})])})),0):t._e(),t._v(" "),e.managed_stores.length?n("div",t._l(e.managed_stores,(function(e){return n("div",[t._v("\n                  "+t._s(e.name)+" "),n("span",{attrs:{title:e.created_at},domProps:{innerHTML:t._s(t.getRoleBadge(e.role))}})])})),0):t._e()]),t._v(" "),n("td",{},[t._v(t._s(e.created_at))]),t._v(" "),n("td",{staticClass:"user-actions"},[t.canImpersonate(e)?n("button",{staticClass:"button btn btn-primary",on:{click:function(n){return t.impersonate(e)}}},[t._v("\n                Manage\n              ")]):t._e()])])})),t._v(" "),t.users.length?t._e():n("tr",[n("td",{staticClass:"text-center",attrs:{colspan:"5"}},[t._v("There are no users yet.")])])],2)])])],1)])],1)}),[],!1,null,"ab8def78",null).exports},6086:(t,e,n)=>{"use strict";n.d(e,{A:()=>m});var i=n(4879),r=n.n(i),o=n(5358),a=n.n(o),s=(n(430),n(8858)),l=n(204),c=n(6845),u=n(2502),d=n(6313);function h(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}Vue.use(r());const f={name:"categories",components:{Swatches:a(),Scroll:l.A},mixins:[s.A],props:["links","stocks","categories","store"],data:function(){return{dragging:!1,fetching:!1,display:{add_cat_form:!1,cat_tabs:!0},need_subscription:this.store.need_subscription,category:{name:"",color:"#cccccc",discount:0,status:1,id:-1},edit:!1,draggedItem:null,currentTab:null}},computed:{categoryModels:function(){return u.A.query().with("items",(function(t){t.orderBy("order")})).with("items.images").orderBy("order").get()},itemModels:function(){return c.A.query().with("images").get()},assignedItemIds:function(){var t=[];return this.categoryModels.forEach((function(e){e.items.length&&(t=[].concat(h(t),h(e.items.map((function(t){return t.id})))))})),t},unAssignedItemModels:function(){var t=this;return this.itemModels.filter((function(e){return!t.assignedItemIds.includes(e.id)}))}},methods:{resetCategory:function(){this.category.name="",this.category.color="#cccccc",this.category.discount=0,this.category.status=1,this.category.id=-1,this.edit=!1},addClick:function(){this.checkSubscription()&&(this.resetCategory(),this.display.add_cat_form=!0,this.display.cat_tabs=!1)},cancel:function(){this.resetCategory(),this.display.add_cat_form=!1,this.display.cat_tabs=!0},editClick:function(t){this.checkSubscription()&&(this.edit=!0,Object.assign(this.category,t),this.display.add_cat_form=!0,this.display.cat_tabs=!1)},deleteClick:function(t){var e=this;this.checkSubscription()&&this.confirm((function(){e.fetching=!0,axios.delete(e.links.delete.replace("category_id",t.id)).then((function(n){u.A.delete(t.id),e.resetCategory(),e.successAlert("Deleted!","Category has been deleted.")})).catch((function(t){e.alertErrors()})).finally((function(){e.fetching=!1}))}))},publish:function(t){this.edit=!0,Object.assign(this.category,t),this.save()},unPublish:function(t){this.edit=!0,Object.assign(this.category,t),this.save(!0)},save:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.checkSubscription()){var n=this.links.add;this.edit&&(n=this.links.edit.replace("category_id",this.category.id)),this.fetching=!0,this.category.status=e?1:2,axios.post(n,this.category).then((function(e){t.successAlert("Category saved!"),t.edit?u.A.update({where:t.category.id,data:e.data.data}):(t.currentTab=e.data.data.id,u.A.insert({data:e.data.data})),t.display.add_cat_form=!1,t.display.cat_tabs=!0})).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))}},deleteItem:function(t,e){var n=this;this.checkSubscription()&&this.confirm((function(){d.A.delete((function(n){return n.category_id===t.id&&n.item_id===e.id}));var i=n.links.delete_category_item.replace("category_id",t.id).replace("item_id",e.id);axios.delete(i).then((function(t){})).catch((function(t){n.alertErrors()})).finally((function(){n.fetching=!1}))}))},tabClick:function(t){this.currentTab=t.id},handleDrop:function(t){var e=this;if(this.checkSubscription()){d.A.insert({data:{category_id:t.id,item_id:this.draggedItem.id,order:t.items.length}});var n=this.links.add_category_item.replace("category_id",t.id).replace("item_id",this.draggedItem.id);axios.post(n,{order:t.items.length}).then((function(t){})).catch((function(t){e.alertErrors()})).finally((function(){e.fetching=!1}))}},reorderCategories:function(t){var e=this;this.fetching=!0,axios.post(this.links.sort_categories,{data:t}).then((function(e){t.forEach((function(t){u.A.update({where:t.id,data:{order:t.order}})}))})).catch((function(t){e.alertErrors()})).finally((function(){e.fetching=!1}))},reorderItems:function(t){var e=this;this.fetching=!0,axios.post(this.links.sort_cat_items.replace("category_id",this.currentTab),{data:t}).then((function(e){t.forEach((function(t){c.A.update({where:t.id,data:{order:t.order}})}))})).catch((function(t){e.alertErrors()})).finally((function(){e.fetching=!1}))}},mounted:function(){this.stocks&&this.stocks.length&&c.A.insert({data:this.stocks}),this.categories&&this.categories.length&&(u.A.insert({data:this.categories}),this.currentTab=this.categoryModels[0].id)}};const m=(0,n(4486).A)(f,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"component_container"},[n("div",{staticClass:"row row_height"},[t.fetching?n("loader"):t._e(),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.fetching,expression:"!fetching"}],staticClass:"col-xl-5 col-lg-12"},[n("div",{staticClass:"list_container"},[t._m(0),t._v(" "),n("scroll",{staticStyle:{height:"calc(100vh - 200px)"}},[n("table",{staticClass:"table product-table shadow-none"},[n("tbody",[t._l(t.unAssignedItemModels,(function(e){return n("tr",{key:e.id,class:t.display.cat_tabs?"drag_area":"",attrs:{draggable:t.display.cat_tabs},on:{dragstart:function(e){t.dragging=!0},dragend:function(e){t.dragging=!1},drag:function(n){t.draggedItem=e}}},[n("td",[n("img",{staticClass:"img-fluid",attrs:{src:t.getImage(e)}})]),t._v(" "),n("td",{staticClass:"text-left"},[n("span",{staticClass:"table_pro_name"},[t._v(t._s(e.name))])])])})),t._v(" "),t.itemModels.length?t._e():n("tr",[n("td",{staticClass:"text-center py-5",attrs:{colspan:"3"}},[t._v("\n                Get started by adding a Product on the Product page\n              ")])])],2)])])],1)]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.fetching,expression:"!fetching"}],staticClass:"col-xl-7 col-lg-12  mt-lg"},[n("div",{staticClass:"form_container col_height"},[n("div",{staticClass:"form_header gray_header"},[n("h6",{staticClass:"title_header"},[t._v("Category")]),t._v(" "),n("div",{staticClass:"pull-right"},[t.display.add_cat_form?n("button",{staticClass:"btn btn_close btn-circle btn-sm",on:{click:t.cancel}},[n("img",{attrs:{src:"images/no.svg",alt:""}})]):t._e(),t._v(" "),t.display.add_cat_form?t._e():n("button",{staticClass:"button btn btn-primary",on:{click:t.addClick}},[t._v("Add Category\n            ")]),t._v(" "),!t.display.add_cat_form&&t.categoryModels.length>1?n("re-order",{attrs:{items:t.categoryModels,title:"Re-order Categories",button_text:"Re-order Categories"},on:{sortingDone:t.reorderCategories}}):t._e()],1)]),t._v(" "),t.display.cat_tabs?n("div",{staticClass:"snap_tabs categories_tabs ",class:t.dragging?"dragging_here":""},[t.categoryModels.length>0?n("b-tabs",{attrs:{"content-class":"snap_tabs"}},t._l(t.categoryModels,(function(e){return n("b-tab",{key:e.id,attrs:{active:t.currentTab===e.id},on:{click:function(n){return t.tabClick(e)}},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n                "+t._s(e.name)+"\n                "),n("status-dott",{attrs:{status:e.status}})]},proxy:!0}],null,!0)},[t._v(" "),n("drop",{staticClass:"drop_area",class:e.items.length>0?"drag_moveable":"",on:{drop:function(n){return t.handleDrop(e)}}},[n("div",{staticClass:"drop_container"},[n("img",{attrs:{src:"images//drag-and-drop.svg",alt:""}}),t._v(" "),n("p",[t._v("Drag & Drop Products here")])]),t._v(" "),n("scroll",{style:{height:e.items.length>0?"500px":"340px"}},[e.items.length>0?n("table",{staticClass:"table product-table"},[n("tbody",t._l(e.items,(function(i){return n("tr",{key:i.id},[n("td",[n("img",{staticClass:"img-fluid",attrs:{src:t.getImage(i),alt:""}})]),t._v(" "),n("td",{staticClass:"text-left"},[n("span",{staticClass:"table_pro_name"},[t._v(t._s(i.name))])]),t._v(" "),n("td",{staticClass:"text-right"},[n("a",{attrs:{href:"javascript:;"},on:{click:function(n){return t.deleteItem(e,i)}}},[n("i",{staticClass:"text-danger delete-btn"})])])])})),0)]):t._e()]),t._v(" "),n("div",{staticClass:"category_action_buttons"},[n("button",{staticClass:"btn btn-outline-secondary theme_custom_buttons",on:{click:function(n){return t.unPublish(e)}}},[t._v("Save as draft\n                  ")]),t._v(" "),e.changed||2===e.status?n("button",{staticClass:"button btn btn-primary",on:{click:function(n){return t.publish(e)}}},[t._v("Save & Publish\n                  ")]):t._e(),t._v(" "),e.items.length>1?n("re-order",{attrs:{items:e.items,title:"Re-Order "+e.name+" Items",button_text:"Re-order Products"},on:{sortingDone:t.reorderItems}}):t._e(),t._v(" "),n("button",{staticClass:"button btn btn-secondary",on:{click:function(n){return t.editClick(e)}}},[t._v("Edit")]),t._v(" "),n("button",{staticClass:"button btn btn-danger",on:{click:function(n){return t.deleteClick(e)}}},[t._v("Delete")])],1)],1)],1)})),1):n("div",{staticClass:"mt-5"},[n("p",{staticClass:"p-5 text-center"},[t._v("You haven't added any Categories")])])],1):t._e(),t._v(" "),t.display.add_cat_form?n("form",[n("div",{staticClass:"category_edit_form"},[n("div",{staticClass:"form-group"},[n("div",{staticClass:"row"},[t._m(1),t._v(" "),n("div",{staticClass:"col-lg-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.category.name,expression:"category.name"}],staticClass:"form-control",attrs:{type:"text",id:"name"},domProps:{value:t.category.name},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.save.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.category,"name",e.target.value)}}})])])]),t._v(" "),n("div",{staticClass:"form-group cat_helptext_container"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-lg-4"},[n("label",{attrs:{for:"discount"}},[t._v("\n                    Category Discount (%):\n\n                    "),n("i",{staticClass:"fa fa-question-circle-o",attrs:{id:"tooltip-target-discount"}}),t._v(" "),n("b-tooltip",{attrs:{target:"tooltip-target-discount",triggers:"hover click"}},[n("div",{staticClass:"text-left"},[t._v("\n                        Applies the discount on all the products in the category.\n                      ")])])],1)]),t._v(" "),n("div",{staticClass:"col-lg-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.category.discount,expression:"category.discount"}],staticClass:"form-control",attrs:{type:"number",min:"0",id:"discount"},domProps:{value:t.category.discount},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.save.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.category,"discount",e.target.value)}}})])])]),t._v(" "),n("button",{staticClass:"btn btn-outline-secondary theme_custom_buttons",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.save(!0)}}},[t.edit?n("span",[t._v("Save as Draft")]):n("span",[t._v("Next")])]),t._v(" "),t.categoryModels.length>0&&t.edit?n("button",{staticClass:"button btn btn-primary",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.save(!1)}}},[t._v("Save & Publish\n            ")]):t._e()])]):t._e()])])],1)])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"custom_head"},[n("table",[n("thead",{staticClass:"table_head_snap"},[n("tr",[n("th",{staticClass:"title_header product_title_th",attrs:{scope:"col"}},[t._v("Product Name")]),t._v(" "),n("th",{attrs:{scope:"col"}})])])])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"col-lg-4"},[n("label",{attrs:{for:"name"}},[t._v("Category Name:")])])}],!1,null,null,null).exports},4671:(t,e,n)=>{"use strict";n.d(e,{A:()=>y});var i=n(4879),r=n.n(i),o=n(5358),a=n.n(o),s=(n(430),n(8858)),l=n(204);function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}Vue.use(r());const f={name:"filters",components:{Swatches:a(),scroll:l.A},mixins:[s.A],props:["links","items","filters","packages","store"],data:function(){return{dragging:!1,fetching:!1,display:{filterForm:!1,conditionForm:!1,conditionSection:!1},need_subscription:this.store.need_subscription,filterList:[],itemList:[],packageList:[],filter:{name:"",status:1,id:-1},condition:{name:"",id:-1},edit:!1,conditionEdit:!1,currentFilterId:null,currentConditionId:null,draggedItem:null}},computed:{currentFilter:function(){var t=this;return this.currentFilterId?this.filterList.find((function(e){return e.id===t.currentFilterId})):null},currentCondition:function(){var t=this;return this.currentFilter&&this.currentConditionId?this.currentFilter.conditions.find((function(e){return e.id===t.currentConditionId})):null},conditionItemIds:function(){return this.currentCondition&&this.currentCondition.condition_items?this.currentCondition.condition_items.map((function(t){return t.item_id})):[]},conditionPackageIds:function(){return this.currentCondition&&this.currentCondition.condition_packages?this.currentCondition.condition_packages.map((function(t){return t.package_id})):[]},conditionItems:function(){var t=this,e=[];if(this.packageList&&(e=this.packageList.filter((function(e){return t.conditionPackageIds.includes(e.id)}))),this.itemList){var n=this.itemList.filter((function(e){return t.conditionItemIds.includes(e.id)}));e=[].concat(h(e),h(n))}return e},filteredItems:function(){var t=this;return this.itemList?this.itemList.filter((function(e){return!t.conditionItemIds.includes(e.id)})):[]},filteredPackages:function(){var t=this;return this.packageList?this.packageList.filter((function(e){return!t.conditionPackageIds.includes(e.id)})):[]}},methods:{resetFilter:function(){this.filter.name="",this.filter.id=-1,this.edit=!1,this.dragging=!1},resetCondition:function(){this.condition.name="",this.condition.id=-1,this.conditionEdit=!1},addClick:function(){this.checkSubscription()&&(this.edit=!1,this.resetFilter(),this.display.filterForm=!0,this.display.conditionSection=!1)},cancel:function(){this.display.filterForm=!1,this.display.conditionSection=!!this.currentFilterId,this.display.conditionForm=!1,this.edit=!1,this.resetFilter()},editFilter:function(t){this.checkSubscription()&&(this.edit=!0,Object.assign(this.filter,t),this.display.filterForm=!0,this.display.conditionSection=!1)},deleteFilter:function(t){var e=this;this.checkSubscription()&&(this.display.conditionSection=!1,this.confirm((function(){var n=e.links.delete.replace("filter_id",t.id);e.fetching=!0,axios.delete(n).then((function(n){var i=e.filterList.findIndex((function(e){return e.id===t.id}));e.filterList.splice(i,1),e.filterList.length&&e.selectFilter(e.filterList[i>0?i-1:i]),e.successAlert("Deleted!","Filter has been deleted.")})).catch((function(t){e.alertErrors()})).finally((function(){e.fetching=!1}))})))},save:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.checkSubscription()){this.filter.status=e?1:2;var n=this.links.add;this.edit&&(n=this.links.edit.replace("filter_id",this.filter.id)),this.fetching=!0,axios.post(n,this.filter).then((function(e){var n=e.data.data;if(t.edit){var i=t.filterList.findIndex((function(t){return t.id===n.id}));n=u(u({},t.filterList[i]),n),t.filterList[i]=n,t.successAlert("Filter updated")}else t.filterList.push(n),t.successAlert("Filter created");t.display.filterForm=!1,t.selectFilter(n)})).catch((function(e){t.alertErrors(e)})).finally((function(){t.fetching=!1}))}},selectFilter:function(t){this.currentFilterId=t.id,this.display.conditionSection=!0,this.display.conditionForm=!1,t.conditions.length&&this.selectCondition(t.conditions[0])},addCondition:function(){this.checkSubscription()&&(this.conditionEdit=!1,this.resetCondition(),this.display.conditionForm=!0)},conditionCancel:function(){this.conditionEdit=!1,this.resetCondition(),this.display.conditionForm=!1},editCondition:function(t){this.checkSubscription()&&(this.conditionEdit=!0,Object.assign(this.condition,t),this.display.conditionForm=!0)},deleteCondition:function(t){var e=this;this.checkSubscription()&&this.confirm((function(){e.fetching=!0;var n=e.links.delete_filter_condition.replace("filter_id",t.filter_id).replace("condition_id",t.id);axios.delete(n).then((function(n){var i=e.currentFilter.conditions.findIndex((function(e){return e.id===t.id}));e.currentFilter.conditions.splice(i,1),e.currentFilter.conditions.length&&e.selectCondition(e.currentFilter.conditions[i>0?i-1:i]),e.successAlert("Deleted!","Condition has been deleted.")})).catch((function(t){e.alertErrors()})).finally((function(){e.fetching=!1}))}))},publishCondition:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.conditionEdit=!0,Object.assign(this.condition,t),this.saveCondition(e)},saveCondition:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.checkSubscription()){this.condition.status=e?1:2;var n=this.links.add_filter_condition.replace("filter_id",this.currentFilterId);this.conditionEdit&&(n=this.links.edit_filter_condition.replace("condition_id",this.condition.id)),this.fetching=!0,axios.post(n,this.condition).then((function(e){var n=e.data.data;if(t.conditionEdit){delete n.condition_packages,delete n.condition_items;var i=t.currentFilter.conditions.findIndex((function(t){return t.id===n.id}));n=u(u({},t.currentFilter.conditions[i]),n),t.currentFilter.conditions[i]=n,t.successAlert("Condition updated")}else t.currentFilter.conditions.push(n),t.successAlert("Condition created");t.selectCondition(n),t.display.conditionForm=!1})).catch((function(e){t.alertErrors(e)})).finally((function(){t.fetching=!1}))}},selectCondition:function(t){this.currentConditionId=t.id},handleDrop:function(t){this.checkSubscription()&&(t.changed=!0,"package"===this.draggedItem.type?this.addPackage(t,this.draggedItem):this.addProduct(t,this.draggedItem))},addProduct:function(t,e){var n=this,i=this.links.add_filter_condition_item.replace("condition_id",t.id).replace("item_id",e.id);this.fetching=!0,axios.post(i,{}).then((function(e){t.condition_items.push(e.data.data)})).catch((function(t){n.alertErrors(t)})).finally((function(){n.fetching=!1}))},addPackage:function(t,e){var n=this,i=this.links.add_filter_condition_package.replace("condition_id",t.id).replace("package_id",e.id);this.fetching=!0,axios.post(i,{}).then((function(e){t.condition_packages.push(e.data.data)})).catch((function(t){n.alertErrors(t)})).finally((function(){n.fetching=!1}))},deleteItem:function(t,e){var n=this;this.checkSubscription()&&this.confirm((function(){"package"===e.type?n.removePackage(t,e):n.removeProduct(t,e)}))},removeProduct:function(t,e){var n=this,i=this.links.delete_filter_condition_item.replace("condition_id",t.id).replace("item_id",e.id);this.fetching=!0,axios.delete(i).then((function(i){var r=t.condition_items.findIndex((function(t){return t.item_id===e.id}));t.condition_items.splice(r,1),n.successAlert("Deleted!","Product has been deleted.")})).finally((function(){n.fetching=!1}))},removePackage:function(t,e){var n=this,i=this.links.delete_filter_condition_package.replace("condition_id",t.id).replace("package_id",e.id);this.fetching=!0,axios.delete(i).then((function(i){var r=t.condition_packages.findIndex((function(t){return t.package_id===e.id}));t.condition_packages.splice(r,1),n.successAlert("Deleted!","Package has been deleted.")})).finally((function(){n.fetching=!1}))}},mounted:function(){this.filters&&this.filters.length&&(this.filterList=h(this.filters),this.selectFilter(this.filterList[0])),this.items&&this.items.length&&(this.itemList=h(this.items)),this.packages&&this.packages.length&&(this.packageList=h(this.packages))}};var m=n(5072),v=n.n(m),g=n(2678),b={insert:"head",singleton:!1};v()(g.A,b);g.A.locals;const y=(0,n(4486).A)(f,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"component_container"},[n("div",{staticClass:"row row_height"},[t.fetching?n("loader"):t._e(),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.fetching,expression:"!fetching"}],staticClass:"col-xl-5 col-lg-12"},[n("div",{staticClass:"list_container col_height"},[n("div",{staticClass:"snap_tabs tab_gray"},[n("b-tabs",{attrs:{"content-class":""}},[n("b-tab",{attrs:{title:"Products"}},[n("scroll",{staticStyle:{height:"calc(100vh - 180px)"}},[n("table",{staticClass:"table product-table shadow-none"},[n("tbody",[t._l(t.filteredItems,(function(e){return n("tr",{class:t.display.conditionSection?"drag_area":"",attrs:{draggable:t.display.conditionSection},on:{drag:function(n){t.draggedItem=e},dragstart:function(e){t.dragging=!0},dragend:function(e){t.dragging=!1}}},[n("td",[n("img",{staticClass:"img-fluid",attrs:{src:t.getImage(e),alt:""}})]),t._v(" "),n("td",{staticClass:"text-left"},[n("span",{staticClass:"table_pro_name"},[t._v(t._s(e.name))])])])})),t._v(" "),t.itemList.length?t._e():n("tr",[n("td",{staticClass:"py-5 text-center",attrs:{colspan:"3"}},[t._v("Get started by adding a Product on the Product page")])])],2)])])],1),t._v(" "),n("b-tab",{attrs:{title:"Packages"}},[n("scroll",{staticStyle:{height:"calc(100vh - 180px)"}},[n("table",{staticClass:"table product-table shadow-none"},[n("tbody",[t._l(t.filteredPackages,(function(e){return n("tr",{class:t.display.conditionSection?"drag_area":"",attrs:{draggable:t.display.conditionSection},on:{drag:function(n){t.draggedItem=e},dragstart:function(e){t.dragging=!0},dragend:function(e){t.dragging=!1}}},[n("td",[n("img",{staticClass:"img-fluid",attrs:{src:t.getImage(e),alt:""}})]),t._v(" "),n("td",{staticClass:"text-left"},[n("span",{staticClass:"table_pro_name"},[t._v(t._s(e.name))])])])})),t._v(" "),t.itemList.length?t._e():n("tr",[n("td",{staticClass:"py-5 text-center",attrs:{colspan:"3"}},[t._v("Get started by adding a Package on the Packages page")])])],2)])])],1)],1)],1)])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.fetching,expression:"!fetching"}],staticClass:"col-xl-7 col-lg-12 mt-lg"},[n("div",{staticClass:"list_container col_height"},[n("div",{staticClass:"form_container shadow-none"},[n("div",{staticClass:"form_header gray_header"},[n("h6",{staticClass:"title_header"},[t._v("Filters")]),t._v(" "),t.display.filterForm?n("button",{staticClass:"btn btn_close btn-circle btn-sm pull-right",on:{click:function(e){return t.cancel()}}},[n("img",{attrs:{src:"images/no.svg",alt:""}})]):n("button",{staticClass:"button btn btn-primary pull-right",on:{click:function(e){return t.addClick()}}},[t._v("\n              Add Filter\n            ")])]),t._v(" "),t.display.filterForm?n("div",{staticClass:"pd_form add_filter"},[n("form",{on:{submit:function(t){t.preventDefault()}}},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v("\n                  Filter Name:\n\n                  "),n("i",{staticClass:"fa fa-question-circle-o",attrs:{id:"tooltip-target-filter"}}),t._v(" "),n("b-tooltip",{attrs:{target:"tooltip-target-filter",triggers:"hover click"}},[n("div",{staticClass:"text-left"},[t._v("\n                      This is the name of your filter group, eg. Size, Colour.\n                      You will define the exact filter in the next step when you name the\n                      conditions for each category. Eg. Colour - Gold, Silver.\n                      "),n("img",{staticClass:"img-fluid",attrs:{src:"images/name-explanation.png"}})])])],1),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.filter.name,expression:"filter.name"}],staticClass:"form-control",attrs:{type:"text",id:"name"},domProps:{value:t.filter.name},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.save.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.filter,"name",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form_actions"},[n("button",{staticClass:"btn btn-outline-secondary theme_custom_buttons",on:{click:function(e){return e.preventDefault(),t.save()}}},[t._v("Save as Draft\n                ")]),t._v(" "),t.edit&&t.currentFilter&&t.currentFilter.conditions.length>0?n("button",{staticClass:"button btn btn-primary",on:{click:function(e){return e.preventDefault(),t.save(!0)}}},[t._v("Save & Publish\n                ")]):t._e()])])]):n("div",{staticClass:"filters_list"},[n("scroll",{staticStyle:{height:"calc(50vh - 180px)"}},[n("table",{staticClass:"table filter_list_form_table shadow-none"},[n("tbody",[t._l(t.filterList,(function(e){return n("tr",{class:t.currentFilterId===e.id?"active":""},[n("td",{staticClass:"table_pro_name",on:{click:function(n){return t.selectFilter(e)}}},[t._v(t._s(e.name)+"\n                    "),n("status-dott",{staticClass:"filter_dot_container",attrs:{status:e.status}})],1),t._v(" "),n("td",{staticClass:"actions"},[n("button",{staticClass:"btn btn-primary edit-btn",on:{click:function(n){return t.selectFilter(e)}}},[n("i",{staticClass:"fa fa-eye"})]),t._v(" "),n("button",{staticClass:"btn btn-primary edit-btn",on:{click:function(n){return t.editFilter(e)}}},[n("i",{staticClass:"fa fa-pencil"})]),t._v(" "),n("a",{attrs:{href:"javascript:;"},on:{click:function(n){return t.deleteFilter(e)}}},[n("i",{staticClass:"text-danger delete-btn"})])])])})),t._v(" "),t.filterList.length?t._e():n("tr",[n("td",{staticClass:"py-5 text-center",attrs:{colspan:"2"}},[t._v("Please add a filter")])])],2)])])],1)]),t._v(" "),t.display.conditionSection?n("div",{staticClass:"form_container shadow-none"},[n("div",{staticClass:"form_header gray_header"},[t.currentFilter?n("h6",{staticClass:"title_header"},[t._v("\n              Conditions for "),n("strong",[t._v("'"+t._s(t.currentFilter.name)+"'")]),t._v(" filter\n            ")]):t._e(),t._v(" "),t.display.conditionForm?n("button",{staticClass:"btn btn_close btn-circle btn-sm pull-right",on:{click:function(e){return t.conditionCancel()}}},[n("img",{attrs:{src:"images/no.svg",alt:""}})]):n("button",{staticClass:"button btn btn-primary pull-right",on:{click:function(e){return t.addCondition()}}},[t._v("\n              Add Condition\n            ")])]),t._v(" "),n("div",{staticClass:"pd_form add_filter"},[t.display.conditionForm?n("form",{on:{submit:function(t){t.preventDefault()}}},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"condition-name"}},[t._v("\n                  Condition Name:\n\n                  "),n("i",{staticClass:"fa fa-question-circle-o",attrs:{id:"tooltip-target-condition"}}),t._v(" "),n("b-tooltip",{attrs:{target:"tooltip-target-condition",triggers:"hover click"}},[n("div",{staticClass:"text-left"},[t._v("\n                      This is the name of each condition in your filter groups\n                      eg. for Size - your condition name would be 8 or 10 or 12\n                      eg. for Colour - Gold or Silver or White.\n                      "),n("img",{staticClass:"img-fluid",attrs:{src:"images/name-explanation.png"}})])])],1),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.condition.name,expression:"condition.name"}],staticClass:"form-control",attrs:{type:"text",id:"condition-name"},domProps:{value:t.condition.name},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.saveCondition.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.condition,"name",e.target.value)}}})]),t._v(" "),n("button",{staticClass:"btn btn-outline-secondary theme_custom_buttons",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.saveCondition(!1)}}},[t._v("Save as Draft\n              ")]),t._v(" "),t.condition.id>0?n("button",{staticClass:"button btn btn-primary",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.saveCondition(!0)}}},[t._v("Save & Publish\n              ")]):t._e()]):n("div",{staticClass:"condition_tables"},[t.currentFilter.conditions.length<=0?n("div",{staticClass:"not_found"},[t._v("\n                Please add a condition for your filter\n              ")]):n("div",{staticClass:"snap_tabs categories_tabs",class:t.dragging?"dragging_here":""},[n("b-tabs",{attrs:{"content-class":"mt-3"}},t._l(t.currentFilter.conditions,(function(e){return n("b-tab",{key:e.id,attrs:{title:e.name,active:e.id===t.currentConditionId},on:{click:function(n){return t.selectCondition(e)}},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n                      "+t._s(e.name)+"\n                      "),n("status-dott",{attrs:{status:e.status}})]},proxy:!0}],null,!0)},[t._v(" "),n("drop",{staticClass:"drop_area",class:t.conditionItems.length>0?"drag_moveable":"",on:{drop:function(n){return t.handleDrop(e)}}},[n("div",{staticClass:"drop_container"},[n("img",{attrs:{src:"images//drag-and-drop.svg",alt:""}}),t._v(" "),n("p",[t._v("Drag & Drop Products here")])]),t._v(" "),n("scroll",{staticStyle:{height:"calc(50vh - 180px)"}},[t.conditionItems.length>0?n("table",{staticClass:"table product-table"},[n("thead",{staticClass:"table_head_snap"},[n("tr",[n("th",{staticClass:"title_header product_title_th",attrs:{colspan:"2"}},[t._v("Name")]),t._v(" "),n("th",{staticClass:"title_header product_title_th text-center"},[t._v("Type")]),t._v(" "),n("th")])]),t._v(" "),n("tbody",t._l(t.conditionItems,(function(i){return n("tr",[n("td",[n("img",{staticClass:"img-fluid",attrs:{src:t.getImage(i),alt:""}})]),t._v(" "),n("td",[n("span",{staticClass:"table_pro_name"},[t._v(t._s(i.name))])]),t._v(" "),n("td",{staticClass:"table_pro_name text-center"},[n("span",{staticClass:"text-capitalize"},[t._v("\n                                  "+t._s("package"===i.type?"package":"product")+"\n                                ")]),t._v(" "),n("status-dott",{staticClass:"filter_dot_container",attrs:{status:i.status}})],1),t._v(" "),n("td",{staticClass:"text-right"},[n("a",{attrs:{href:"javascript:;"},on:{click:function(n){return t.deleteItem(e,i)}}},[n("i",{staticClass:"text-danger delete-btn"})])])])})),0)]):t._e()])],1),t._v(" "),n("div",{staticClass:"conditions_actions_btn"},[n("button",{staticClass:"btn btn-outline-secondary theme_custom_buttons",on:{click:function(n){return t.publishCondition(e,!1)}}},[t._v("Save as Draft\n                      ")]),t._v(" "),e.changed||2==e.status?n("button",{staticClass:"button btn btn-primary",on:{click:function(n){return t.publishCondition(e,!0)}}},[t._v("Save & Publish\n                      ")]):t._e(),t._v(" "),n("button",{staticClass:"button btn btn-secondary",on:{click:function(n){return t.editCondition(e)}}},[t._v("Edit\n                      ")]),t._v(" "),n("button",{staticClass:"button btn btn-danger",on:{click:function(n){return t.deleteCondition(e)}}},[t._v("Delete\n                      ")])])],1)})),1)],1)])])]):t._e()])])],1)])}),[],!1,null,"777b6438",null).exports},8888:(t,e,n)=>{"use strict";n.d(e,{A:()=>S});var i=n(8568),r=n.n(i),o=n(3348),a=n(4879),s=n.n(a),l=n(2616),c=n.n(l),u=n(6708),d=n.n(u),h=n(2865),p=(n(4953),n(8858)),f=n(204),m=n(9974),v=n(5160),g=n.n(v);function b(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?b(Object(n),!0).forEach((function(e){_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w(t){return function(t){if(Array.isArray(t))return x(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return x(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}Vue.use(g(),{duration:2e3}),Vue.use(c()),Vue.use(s());const C={name:"packages",components:{IntegerPlusminus:h.j,Scroll:f.A,VueNumericInput:d(),FileUpload:r(),Cropper:o.IO,ImageUploader:m.A},mixins:[p.A],props:["store","packages","categories","items","links"],data:function(){return{dragging:!1,fetching:!1,edit:!1,store_data:this.store,need_subscription:this.store.need_subscription,itemsData:[],packagesData:[],categoriesData:[],currentTab:null,draggedItem:null,pack:{name:"",description:"",price:0,delivery_price:parseInt(this.store.default_deliver_price),additional_cost:0,labour_cost:0,status:1,discount:0,id:-1},imagesFromPackage:[],images:[],display:{add_cat_form:!1,cat_tabs:!0},cropperSettings:{backgroundClassname:"bg-white",imageRestriction:"none",defaultSize:function(){return{width:233,height:160}},stencilProps:{previewClassname:"cropper-preview",aspectRatio:1.45}}}},computed:{current:function(){var t=this;return this.currentTab?this.packagesData.find((function(e){return e.id===t.currentTab})):null},packagePriceDescription:function(){return this.pack.id>0?this.getPackagePrice(this.pack).description:this.formatPrice(0)},packagePriceFormatted:function(){if(this.current){var t=this.getPackagePrice(this.current);if(t.itemsPrice)return t.formatted}return this.formatPrice(0)},packageItemIds:function(){return this.current&&this.current.items?this.current.items.map((function(t){return t.id})):[]},filteredItems:function(){var t=this;return this.itemsData?this.itemsData.filter((function(e){return!t.packageItemIds.includes(e.id)})):[]},filteredCategoryItems:function(){var t=this;return function(e){return e.items?e.items.filter((function(e){return!t.packageItemIds.includes(e.id)})):[]}}},methods:{getPackageItemDiscount:function(t,e){return t.discount},getItemPrice:function(t){return t.price*t.pivot.quantity},getDiscountedItemPrice:function(t,e){var n=this.getItemPrice(e),i=this.getPackageItemDiscount(t,e);return n&&i?n-n/100*i:n},setPackageImages:function(t){this.images=t},resetPackage:function(){this.pack={name:"",description:"",price:0,delivery_price:parseInt(this.store.default_deliver_price),additional_cost:0,labour_cost:0,status:1,discount:0,id:-1},this.images=[],this.imagesFromPackage=[],this.edit=!1,this.dragging=!1},addClick:function(){this.checkSubscription()&&(this.currentTab=null,this.edit=!1,this.resetPackage(),this.display.add_cat_form=!0,this.display.cat_tabs=!1)},cancel:function(){this.edit=!1,this.resetPackage(),this.display.add_cat_form=!1,this.display.cat_tabs=!0},editClick:function(t){var e;this.checkSubscription()&&(this.resetPackage(),this.edit=!0,Object.assign(this.pack,t),this.display.add_cat_form=!0,this.display.cat_tabs=!1,this.imagesFromPackage=w(null!==(e=t.images)&&void 0!==e?e:[]))},deleteClick:function(t){var e=this;this.checkSubscription()&&this.confirm((function(){e.fetching=!0,axios.delete(e.links.delete.replace("package_id",t.id)).then((function(n){var i=e.packagesData.findIndex((function(e){return e.id===t.id}));e.packagesData.splice(i,1),e.packagesData.length&&(e.currentTab=e.packagesData[0].id),e.successAlert("Deleted!","Your data has been deleted.")})).catch((function(t){e.alertErrors()})).finally((function(){e.fetching=!1}))}))},publish:function(t){this.edit=!0,Object.assign(this.pack,t),this.save(!0)},unPublish:function(t){this.edit=!0,Object.assign(this.pack,t),this.save()},save:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.checkSubscription()){var n=this.links.add;this.edit?n=this.links.edit.replace("package_id",this.currentTab):this.pack.order=this.packagesData.length,this.fetching=!0,axios.post(n,this.prepareData(e),{headers:{"content-type":"multipart/form-data"}}).then((function(e){var n=e.data.data;if(t.edit){delete n.items;var i=t.packagesData.findIndex((function(t){return t.id===n.id}));t.packagesData[i]=y(y({},t.packagesData[i]),n)}else t.packagesData.push(n);t.currentTab=n.id,t.successAlert("Package saved!"),t.$nextTick((function(){t.display.add_cat_form=!1,t.display.cat_tabs=!0}))})).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))}},prepareData:function(t){var e=this,n=new FormData;for(var i in t&&(this.pack.draft=!0),this.pack.status=t?1:2,this.pack)n.append(i,this.pack[i]);var r=0;return this.images.map((function(t){e.appendImage(n,t,"images[".concat(r,"]")),r++})),n},toggleRemovable:function(t,e){var n=this;if(this.checkSubscription()){var i=this.links.removeable_package_item.replace("package_id",t.id).replace("item_id",e.id);axios.put(i,{}).then((function(t){})).catch((function(t){n.alertErrors()}))}},updateQuantity:function(t,e){var n=this;if(this.checkSubscription()){var i=this.links.quantity_package_item.replace("package_id",t.id).replace("item_id",e.id);axios.put(i,{quantity:e.pivot.quantity}).then((function(t){})).catch((function(t){n.alertErrors()}))}},deletePackageItem:function(t,e){var n=this;this.checkSubscription()&&this.confirm((function(){n.fetching=!0;var i=n.links.delete_package_item.replace("package_id",t.id).replace("item_id",e.id);axios.delete(i).then((function(i){var r=t.items.findIndex((function(t){return t.id===e.id}));t.items.splice(r,1),n.successAlert("Deleted!","Your data has been deleted.")})).catch((function(t){n.alertErrors(t.response.data)})).finally((function(){n.fetching=!1}))}))},tabClick:function(t){this.currentTab=t.id},handleDrop:function(t){var e=this;if(this.checkSubscription()){this.fetching=!0;var n=this.links.add_package_item.replace("package_id",t.id).replace("item_id",this.draggedItem.id);axios.post(n,{order:t.items.length}).then((function(e){t.items.push(e.data.data.item),t.changed=!0})).catch((function(t){})).finally((function(){e.fetching=!1}))}},reorderPackages:function(t){var e=this;t.forEach((function(t){var n=e.packagesData.findIndex((function(e){return e.id===t.id}));e.reorder(e.packagesData,n,t.order)})),axios.post(this.links.sort_packages,{data:t}).then((function(t){})).catch((function(t){e.alertErrors()})).finally((function(){e.fetching=!1}))},reorderItems:function(t){var e=this,n=this.packagesData.find((function(t){return t.id===e.currentTab}));t.forEach((function(t){var i=n.items.findIndex((function(e){return e.id===t.id}));e.reorder(n.items,i,t.order)})),axios.post(this.links.sort_items.replace("package_id",this.currentTab),{data:t}).then((function(t){})).catch((function(t){e.alertErrors()}))},getPackagePrice:function(t){var e=this,n={itemsPrice:0,discounted:0,fullPrice:0,finalPrice:0,formatted:"",description:""},i=parseFloat(t.labour_cost),r=parseFloat(t.additional_cost);i=i||0,r=r||0,t.items&&t.items.length>0&&t.items.forEach((function(i){i.pivot.quantity>0&&(n.itemsPrice+=e.getItemPrice(i),n.discounted+=e.getDiscountedItemPrice(t,i))})),n.fullPrice=n.itemsPrice+r+i,n.finalPrice=n.discounted+r+i,n.formatted=n.fullPrice===n.finalPrice?this.formatPrice(n.fullPrice):this.getDiscountPrice(n.fullPrice,n.finalPrice);var o=this.formatPrice(n.itemsPrice),a=this.formatPrice(n.discounted),s=this.formatPrice(n.itemsPrice-n.discounted);return n.description=(i?this.formatPrice(i)+" + ":"")+(r?this.formatPrice(r)+" + ":"")+(t.discount>0?"("+o+" - "+t.discount+"% = "+a+")":s>0?"("+o+" - "+s+" = "+a+")":o)+" = "+this.formatPrice(n.finalPrice),n},reorder:function(t,e,n){e>n?(t.splice(n,0,t[e]),t.splice(e+1,1)):(t.splice(n+1,0,t[e]),t.splice(e,1))}},mounted:function(){this.packages&&this.packages.length&&(this.packagesData=w(this.packages),this.currentTab=this.packagesData[0].id),this.categories&&this.categories.length&&(this.categoriesData=w(this.categories)),this.items&&this.items.length&&(this.itemsData=w(this.items))}};const S=(0,n(4486).A)(C,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"component_container"},[n("div",{staticClass:"row row_height"},[n("div",{staticClass:"col-xl-6 col-lg-12"},[n("scroll",{staticStyle:{height:"calc(100vh - 130px)"}},[n("div",{staticClass:"list_container"},[n("table",{staticClass:"table"},[n("thead",{staticClass:"table_head_snap"},[n("tr",[n("th",{staticClass:"title_header product_title_th",attrs:{scope:"col"}},[t._v("Products")]),t._v(" "),n("th",{attrs:{scope:"col"}})])])]),t._v(" "),n("div",{attrs:{role:"tablist"}},[n("b-card",{staticClass:"category_accordian",attrs:{"no-body":""}},[n("b-card-header",{staticClass:"p-1",attrs:{"header-tag":"header",role:"tab"}},[n("b-button",{directives:[{name:"b-toggle",rawName:"v-b-toggle",value:"accordion-0",expression:"`accordion-0`"}],staticClass:"text-left",attrs:{block:"",variant:"light"}},[t._v("Without category\n                ")])],1),t._v(" "),n("b-collapse",{attrs:{id:"accordion-0",visible:"",accordion:"my-accordion",role:"tabpanel"}},[n("table",{staticClass:"table product-table"},[n("tbody",[t._l(t.filteredItems,(function(e){return n("tr",{key:e.id,class:t.display.cat_tabs?"drag_area":"",attrs:{draggable:t.display.cat_tabs},on:{dragstart:function(e){t.dragging=!0},dragend:function(e){t.dragging=!1},drag:function(n){t.draggedItem=e}}},[n("td",[n("img",{staticClass:"img-fluid",attrs:{src:t.getImage(e),alt:""}})]),t._v(" "),n("td",{staticClass:"text-left"},[n("span",{staticClass:"table_pro_name"},[t._v(t._s(e.name))])])])})),t._v(" "),t.itemsData.length?t._e():n("tr",[n("td",{attrs:{colspan:"3"}},[t._v("No data found")])])],2)])])],1),t._v(" "),t._l(t.categoriesData,(function(e){return n("b-card",{key:e.id,staticClass:"category_accordian",attrs:{"no-body":""}},[n("b-card-header",{staticClass:"p-1",attrs:{"header-tag":"header",role:"tab"}},[n("b-button",{directives:[{name:"b-toggle",rawName:"v-b-toggle",value:"accordion-"+e.id,expression:"`accordion-${category.id}`"}],staticClass:"text-left",attrs:{block:"",variant:"light"}},[t._v(t._s(e.name)+"\n                ")])],1),t._v(" "),n("b-collapse",{attrs:{id:"accordion-"+e.id,accordion:"my-accordion",role:"tabpanel"}},[n("table",{staticClass:"table product-table"},[n("tbody",[t._l(t.filteredCategoryItems(e),(function(e){return n("tr",{key:e.id,class:t.display.cat_tabs?"drag_area":"",attrs:{draggable:t.display.cat_tabs,"transfer-data":e},on:{dragstart:function(e){t.dragging=!0},dragend:function(e){t.dragging=!1},drag:function(n){t.draggedItem=e}}},[n("td",[n("img",{staticClass:"img-fluid",attrs:{src:t.getImage(e),alt:""}})]),t._v(" "),n("td",{staticClass:"text-left"},[n("span",{staticClass:"table_pro_name"},[t._v(t._s(e.name))])])])})),t._v(" "),e.items.length?t._e():n("tr",[n("td",{attrs:{colspan:"3"}},[t._v("No data found")])])],2)])])],1)}))],2)])])],1),t._v(" "),n("div",{staticClass:"col-xl-6 col-lg-12 mt-lg"},[t.fetching?n("loader"):t._e(),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.fetching,expression:"!fetching"}],staticClass:"form_container col_height"},[n("div",{staticClass:"form_header gray_header"},[n("h6",{staticClass:"title_header"},[t._v("Package")]),t._v(" "),n("div",{staticClass:"pull-right"},[t.display.add_cat_form?n("button",{staticClass:"btn btn_close btn-circle btn-sm",on:{click:t.cancel}},[n("img",{attrs:{src:"images/no.svg",alt:""}})]):t._e(),t._v(" "),t.display.add_cat_form?t._e():n("button",{staticClass:"button btn btn-primary",on:{click:t.addClick}},[t._v("Add Package\n            ")]),t._v(" "),!t.display.add_cat_form&&t.packagesData.length>1?n("re-order",{staticStyle:{float:"right"},attrs:{items:t.packagesData,title:"Re-order Packages",button_text:"Re-order Packages"},on:{sortingDone:t.reorderPackages}}):t._e()],1)]),t._v(" "),t.display.cat_tabs?n("div",{staticClass:"snap_tabs packages_tabs",class:t.dragging?"dragging_here":""},[t.packagesData.length>0?n("b-tabs",{attrs:{"content-class":"mt-3"}},t._l(t.packagesData,(function(e){return n("b-tab",{key:e.id,attrs:{active:e.id===t.currentTab},on:{click:function(n){return t.tabClick(e)}},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n                "+t._s(e.name)+"\n                "),n("status-dott",{attrs:{status:e.status}})]},proxy:!0}],null,!0)},[t._v(" "),n("drop",{staticClass:"drop_area",class:e.items&&e.items.length>0?"drag_moveable":"",on:{drop:function(n){return t.handleDrop(e)}}},[n("div",{staticClass:"drop_container"},[n("img",{attrs:{src:"images//drag-and-drop.svg",alt:""}}),t._v(" "),n("p",[t._v("Drag & Drop Products here")])]),t._v(" "),n("div",{staticClass:"hscroll"},[e.items&&e.items.length>0?n("table",{staticClass:"table product-table"},[n("thead",[n("tr",[n("th",{staticClass:"title_header text-left",attrs:{colspan:"2"}},[t._v("Product Name")]),t._v(" "),n("th",{staticClass:"title_header"},[t._v("Quantity")]),t._v(" "),n("th",{staticClass:"title_header"},[t._v("Price")]),t._v(" "),n("th",{staticClass:"title_header"},[t._v("Removeable")]),t._v(" "),n("th")])]),t._v(" "),n("tbody",t._l(e.items,(function(i){return n("tr",[n("td",[n("img",{staticClass:"img-fluid",attrs:{src:t.getImage(i),alt:""}})]),t._v(" "),n("td",[n("span",{staticClass:"table_pro_name"},[t._v(t._s(i.name))])]),t._v(" "),n("td",[n("div",{staticClass:"custom_integer"},[n("vue-numeric-input",{staticClass:"myplusminus",attrs:{disabled:t.need_subscription,min:1,max:500,step:1,size:"85px",id:"dragged_item_default_quatity_"+i.id},on:{input:function(n){return t.updateQuantity(e,i)}},model:{value:i.pivot.quantity,callback:function(e){t.$set(i.pivot,"quantity",e)},expression:"item.pivot.quantity"}})],1)]),t._v(" "),n("td",{staticClass:"item_price_table",domProps:{innerHTML:t._s(t.getDiscountPrice(t.getItemPrice(i),t.getDiscountedItemPrice(e,i)))}}),t._v(" "),n("td",{staticClass:"toggle_switch"},[n("toggle-button",{attrs:{disabled:t.need_subscription,value:!!i.pivot.removeable,labels:{checked:"Yes",unchecked:"No"}},on:{change:function(n){return t.toggleRemovable(e,i)}}})],1),t._v(" "),n("td",{staticClass:"text-right"},[n("a",{staticClass:"delete_btn_p",attrs:{href:"javascript:;"},on:{click:function(n){return t.deletePackageItem(e,i)}}},[n("i",{staticClass:"text-danger delete-btn"})])])])})),0)]):t._e()])]),t._v(" "),n("div",{staticClass:"package__action_buttons"},[n("div",{staticClass:"pull-left"},[n("div",{staticClass:"total_package_text",domProps:{innerHTML:t._s(t.packagePriceFormatted)}})]),t._v(" "),n("div",{staticClass:"pull-right"},[n("button",{staticClass:"btn btn-outline-secondary theme_custom_buttons",on:{click:function(n){return t.unPublish(e)}}},[t._v("Save as Draft\n                  ")]),t._v(" "),e.changed||2==e.status?n("button",{staticClass:"button btn btn-primary",attrs:{type:"button"},on:{click:function(n){return t.publish(e)}}},[t._v("Save & Publish\n                  ")]):t._e(),t._v(" "),e.items&&e.items.length>1?n("re-order",{attrs:{items:e.items,title:"Re-order "+e.name+" Items",button_text:"Re-order Products"},on:{sortingDone:t.reorderItems}}):t._e(),t._v(" "),n("button",{staticClass:"button btn btn-secondary",on:{click:function(n){return t.editClick(e)}}},[t._v("Edit\n                  ")]),t._v(" "),n("button",{staticClass:"button btn btn-danger",on:{click:function(n){return t.deleteClick(e)}}},[t._v("Delete\n                  ")])],1)])],1)})),1):n("div",{staticClass:"p-5 mt-5 text-center"},[t._v("You haven't added any Packages")])],1):t._e(),t._v(" "),t.display.add_cat_form?n("form",[n("scroll",{staticStyle:{height:"calc(100vh - 200px)"}},[n("div",{staticClass:"col-12"},[n("image-uploader",{attrs:{images:t.imagesFromPackage},on:{change:t.setPackageImages}}),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-lg-12"},[n("form",[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v("Package Name:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.pack.name,expression:"pack.name"}],staticClass:"form-control",attrs:{type:"text",id:"name"},domProps:{value:t.pack.name},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.save.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.pack,"name",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"description"}},[t._v("Description:")]),t._v(" "),n("b-form-textarea",{attrs:{id:"description","min-rows":"2"},model:{value:t.pack.description,callback:function(e){t.$set(t.pack,"description",e)},expression:"pack.description"}})],1),t._v(" "),t.pack.id>0?n("div",{staticClass:"form-group"},[n("label",[t._v("Price (Automatically Calculated):")]),t._v(" "),n("div",{staticClass:"alert alert-secondary",domProps:{innerHTML:t._s(t.packagePriceDescription)}})]):t._e(),t._v(" "),n("div",{staticClass:"form-group"},[n("div",{staticClass:"form-row row align-items-end"},[n("div",{staticClass:"form-group col-md-6"},[n("label",{attrs:{for:"default"}},[t._v("Delivery Price per km:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.pack.delivery_price,expression:"pack.delivery_price"}],staticClass:"form-control",attrs:{type:"number",min:"0",id:"delivery_price"},domProps:{value:t.pack.delivery_price},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.save.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.pack,"delivery_price",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group col-md-6"},[n("label",{attrs:{for:"additional_cost"}},[t._v("Additional Cost:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.pack.additional_cost,expression:"pack.additional_cost"}],staticClass:"form-control",attrs:{type:"number",min:"0",id:"additional_cost"},domProps:{value:t.pack.additional_cost},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.save.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.pack,"additional_cost",e.target.value)}}})])])]),t._v(" "),n("div",{staticClass:"form-group"},[n("div",{staticClass:"form-row"},[n("div",{staticClass:"form-group col-md-6"},[n("label",{attrs:{for:"labour_cost"}},[t._v("Labour Cost:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.pack.labour_cost,expression:"pack.labour_cost"}],staticClass:"form-control",attrs:{type:"number",min:"0",id:"labour_cost"},domProps:{value:t.pack.labour_cost},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.save.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.pack,"labour_cost",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group col-md-6"},[n("label",{attrs:{for:"discount"}},[t._v("\n                            Discount (%):\n\n                            "),n("i",{staticClass:"fa fa-question-circle-o",attrs:{id:"tooltip-target-discount"}}),t._v(" "),n("b-tooltip",{attrs:{target:"tooltip-target-discount",triggers:"hover click"}},[n("div",{staticClass:"text-left"},[t._v("\n                                Applies the discount on all the products in the package.\n                              ")])])],1),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.pack.discount,expression:"pack.discount"}],staticClass:"form-control",attrs:{type:"number",min:"0",max:"100",id:"discount"},domProps:{value:t.pack.discount},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.save.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.pack,"discount",e.target.value)}}})])])]),t._v(" "),n("div",{staticClass:"pull-left"},[n("button",{staticClass:"button btn btn-primary mb-3",on:{click:function(e){return e.preventDefault(),t.save(!1)}}},[t._v("\n                        Save Item\n                      ")])])])])])],1)])],1):t._e()])],1)])])}),[],!1,null,null,null).exports},741:(t,e,n)=>{"use strict";n.d(e,{A:()=>A});var i=n(8858),r=n(8568),o=n.n(r),a=n(3348),s=n(204),l=n(9974),c=n(5160),u=n.n(c),d=n(2616),h=n.n(d),p=n(6845),f=n(8425);function m(t){return function(t){if(Array.isArray(t))return v(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return v(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var g=2147483647,b="product_form";Vue.use(h()),Vue.use(u(),{duration:2e3});const y={name:"stock",components:{FileUpload:o(),Cropper:a.IO,scroll:s.A,ImageUploader:l.A},data:function(){return{view:b,storeData:this.store,needSubscription:this.store.need_subscription,form:!0,edit:!1,clone:!1,fetching:!1,isEnabledMaxQuantity:!1,imageClickTmpCheck:!1,imageEditNum:-1,stock:{name:"",price:0,max_quantity:null,oprice:0,delivery_price:parseInt(this.store.default_deliver_price),description:"",id:-1,discount:0,ddp:!0},images:[],imagesFromProduct:[],preview:{img1:null,img2:null,img3:null,img4:null,img5:null,img6:null},scrollStyles:{maxHeight:null},cropperSettings:{backgroundClassname:"bg-white",imageRestriction:"none",defaultSize:function(){return{width:233,height:160}},stencilProps:{previewClassname:"cropper-preview",aspectRatio:1.45}}}},computed:{stockData:function(){return p.A.query().withAll().orderBy("id","desc").get()},formTitle:function(){return this.form?this.view===b?this.edit?"Edit Product":"Add Product":void 0:"Add Product"}},methods:{showProductForm:function(t){this.view=this.VIEW_PRODUCT_FORM,this.edit=!!t},addClick:function(){this.checkSubscription()&&(this.clone=!1,this.edit=!1,this.resetStock(),this.stock.delivery_price=parseInt(this.storeData.default_deliver_price),this.form=!0,this.showProductForm(!1))},deleteStock:function(t){var e=this;this.checkSubscription()&&this.confirm((function(){e.fetching=!0,axios.delete(e.links.delete.replace("stock_id",t.id),{}).then((function(n){e.fetching=!1,p.A.delete(t.id),e.successAlert("Deleted!","Product has been deleted."),e.resetStock()})).catch((function(t){e.alertErrors()})).finally((function(){e.fetching=!1}))}))},beforeSave:function(){var t=this;this.stock.max_quantity>g&&(this.stock.max_quantity=g),this.checkSubscription()&&(this.edit&&this.stock.price!=this.stock.oprice?this.confirm((function(){t.save()}),(function(){var e=p.A.find(t.stock.id);t.editClick(e)}),{title:"Price Changed!",text:"Change in product price will update packages price which uses this product?"}):this.save())},save:function(){var t=this;if(this.checkSubscription()){var e=this.links.add;this.edit&&(e=this.links.edit.replace("stock_id",this.stock.id));var n=new FormData;for(var i in this.stock)n.append(i,this.stock[i]);var r=0;this.images.map((function(e){t.appendImage(n,e,"images[".concat(r,"]")),r++})),this.fetching=!0,axios.post(e,n).then((function(e){var n=e.data.data;t.successNotice("Item saved"),t.stock.ddp&&(t.storeData.default_deliver_price=t.stock.delivery_price),t.edit?(f.A.delete((function(e){return"items"===e.imageable_type&&e.imageable_id===t.stock.id})),p.A.update({where:t.stock.id,data:n}),n.images.length&&f.A.insert({data:n.images})):p.A.insert({data:n}),t.resetStock()})).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))}},cloneStock:function(t){var e;this.checkSubscription()&&(this.resetStock(),Object.assign(this.stock,t),this.stock.id=-1,this.stock.name+=" clone",this.stock.max_quantity?this.isEnabledMaxQuantity=!0:(this.isEnabledMaxQuantity=!1,this.stock.max_quantity=null),this.stock.oprice=t.price,this.imagesFromProduct=m(null!==(e=t.images)&&void 0!==e?e:[]),this.form=!0,this.clone=!0)},setProductImages:function(t){this.images=t},resetStock:function(){this.form=!1,this.edit=!1,this.stock={id:-1,name:"",description:"",price:0,oprice:0,discount:0,delivery_price:parseInt(this.storeData.default_deliver_price),max_quantity:null,ddp:!0},this.images=[],this.imagesFromProduct=[]},cancel:function(){this.form=!1,this.resetStock()},checkSubscription:function(){return!this.needSubscription||(this.$swal({title:"Trial Period Expired!",text:"You can’t do this action without subscription",type:"error",showCloseButton:!0,showCancelButton:!1,showConfirmButton:!1,footer:'<a href="/dashboard">Get Subscription</a>'}),!1)},hideModal:function(){this.$refs["my-modal"].hide()},cropImage:function(){var t=this.$refs.cropper.getResult(),e=(t.coordinates,t.canvas),n=this.dataURLtoFile(e.toDataURL(),"image".concat(this.imageEditNum,".png"));this.stock["image".concat(this.imageEditNum)]=n,this.preview["img".concat(this.imageEditNum)]=e.toDataURL(),this.hideModal()},changeImage:function(){this.imageClickTmpCheck=!0,1==this.imageEditNum?this.$refs.images.click():this.$refs["image".concat(this.imageEditNum)].click()},removeImage:function(){this.stock["image".concat(this.imageEditNum)]=null,this.preview["img".concat(this.imageEditNum)]=null,this.$refs["image".concat(1===this.imageEditNum?"s":this.imageEditNum)].value="",this.hideModal()},switchImages:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.imageClickTmpCheck){if(2==t&&this.stock.image2){var n=this.stock.image2;this.stock.image2=this.stock.image1,this.stock.image1=n,this.preview.img1=URL.createObjectURL(this.stock.image1),this.preview.img2=URL.createObjectURL(this.stock.image2)}if(3==t&&this.stock.image3){n=this.stock.image3;this.stock.image3=this.stock.image1,this.stock.image1=n,this.preview.img1=URL.createObjectURL(this.stock.image1),this.preview.img3=URL.createObjectURL(this.stock.image3)}if(4==t&&this.stock.image4){n=this.stock.image4;this.stock.image4=this.stock.image1,this.stock.image1=n,this.preview.img1=URL.createObjectURL(this.stock.image1),this.preview.img4=URL.createObjectURL(this.stock.image4)}if(5==t&&this.stock.image5){n=this.stock.image5;this.stock.image5=this.stock.image1,this.stock.image1=n,this.preview.img1=URL.createObjectURL(this.stock.image1),this.preview.img5=URL.createObjectURL(this.stock.image5)}e&&this.hideModal()}},dataURLtoFile:function(t,e){for(var n=t.split(","),i=n[0].match(/:(.*?);/)[1],r=atob(n[1]),o=r.length,a=new Uint8Array(o);o--;)a[o]=r.charCodeAt(o);return new File([a],e,{type:i})}}};var _=n(4486);const w=(0,_.A)(y,undefined,undefined,!1,null,null,null).exports;function x(t){return function(t){if(Array.isArray(t))return C(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return C(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}const S={mixins:[i.A,w],props:["links","stocks","store","incompatibleStocks"],data:function(){return{incompatibleStockData:{}}},methods:{editClick:function(t){var e;this.showProductForm(!0),this.checkSubscription()&&(this.resetStock(),this.edit=!0,this.clone=!1,Object.assign(this.stock,t),this.stock.max_quantity?this.isEnabledMaxQuantity=!0:(this.isEnabledMaxQuantity=!1,this.stock.max_quantity=null),this.stock.oprice=t.price,this.imagesFromProduct=x(null!==(e=t.images)&&void 0!==e?e:[]),this.stock.ddp=parseInt(this.storeData.default_deliver_price)===this.stock.delivery_price,this.form=!0)},getIncompatibleStocks:function(){if(this.stock.id>0&&this.incompatibleStockData[this.stock.id]){var t=this.incompatibleStockData[this.stock.id];return this.stockData.filter((function(e){return t.includes(e.id)}))}return[]},isCompatible:function(t){return!this.incompatibleStockData[this.stock.id]||!this.incompatibleStockData[this.stock.id].find((function(e){return e===t.id}))},setIncompatible:function(t,e){var n=this;if(e.value){var i=this.incompatibleStockData[this.stock.id].findIndex((function(e){return e===t.id}));this.incompatibleStockData[this.stock.id].splice(i,1),i=this.incompatibleStockData[t.id].findIndex((function(t){return t===n.stock.id})),this.incompatibleStockData[t.id].splice(i,1),this.deleteIncompatible(t)}else this.incompatibleStockData[this.stock.id]?this.incompatibleStockData[this.stock.id].push(t.id):this.incompatibleStockData[this.stock.id]=[t.id],this.incompatibleStockData[t.id]?this.incompatibleStockData[t.id].push(this.stock.id):this.incompatibleStockData[t.id]=[this.stock.id],this.addIncompatible(t);this.$forceUpdate()},addIncompatible:function(t){var e=this.links.add_incompatible.replace("stock_id",this.stock.id);e=e.replace("incompatible_id",t.id),axios.post(e)},deleteIncompatible:function(t){var e=this.links.delete_incompatible.replace("stock_id",this.stock.id);e=e.replace("incompatible_id",t.id),axios.delete(e)},showIncompatibleStocks:function(){this.$refs["incompatible-modal"].show()}},mounted:function(){p.A.insert({data:this.stocks}),Array.isArray(this.incompatibleStocks)||(this.incompatibleStockData=this.incompatibleStocks);var t=$(".content-wrapper"),e=t.offset().top,n=t.find(".custom_head").height();this.scrollStyles.maxHeight=window.innerHeight-(e+n)-20+"px"}};var E=n(5072),T=n.n(E),O=n(6169),k={insert:"head",singleton:!1};T()(O.A,k);O.A.locals;const A=(0,_.A)(S,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[t.fetching?n("loader"):t._e(),t._v(" "),t.fetching?t._e():n("div",{staticClass:"col-xl-6 col-lg-12"},[n("div",{staticClass:"list_container"},[t._m(0),t._v(" "),n("scroll",{staticStyle:{height:"calc(100vh - 180px)"}},[n("table",{staticClass:"table shadow-none product-table"},[n("tbody",[t._l(t.stockData,(function(e){return n("tr",{key:e.id,class:e.id===t.stock.id?"active-stock":null},[n("td",[n("img",{staticClass:"img-fluid",attrs:{src:t.getImage(e),alt:""}})]),t._v(" "),n("td",[n("span",{staticClass:"table_pro_name cursor_pointer",on:{click:function(n){return t.editClick(e)}}},[t._v(t._s(e.name))])]),t._v(" "),n("td",{staticClass:"toggle_switch is_compatible"},[-1!==t.stock.id&&t.stock.id!==e.id?n("toggle-button",{attrs:{sync:!0,value:t.isCompatible(e),labels:{checked:"Yes",unchecked:"No"}},on:{change:function(n){return t.setIncompatible(e,n)}}}):t._e()],1),t._v(" "),n("td",{staticClass:"actions text-right"},[n("button",{staticClass:"btn btn-primary edit-btn",attrs:{title:"Edit"},on:{click:function(n){return t.editClick(e)}}},[n("i",{staticClass:"fa fa-pencil"})]),t._v(" "),n("button",{staticClass:"btn btn-primary edit-btn",attrs:{title:"Clone item"},on:{click:function(n){return t.cloneStock(e)}}},[n("i",{staticClass:"fa fa-clone"})]),t._v(" "),n("a",{attrs:{href:"javascript:;",title:"Delete"},on:{click:function(n){return t.deleteStock(e)}}},[n("i",{staticClass:"text-danger delete-btn"})])])])})),t._v(" "),t.stockData.length?t._e():n("tr",[n("td",{staticClass:"py-4 text-center",attrs:{colspan:"4"}},[t._v("Get started by adding your Products")])])],2)])])],1)]),t._v(" "),t.fetching?t._e():n("div",{staticClass:"col-xl-6 col-lg-12 mt-lg"},[n("div",{staticClass:"form_container"},[n("div",{staticClass:"custom_head"},[n("table",[n("thead",{staticClass:"table_head_snap"},[n("tr",[n("th",{staticClass:"title_header product_title_th",attrs:{scope:"col"}},[t._v(t._s(t.formTitle))]),t._v(" "),n("th",{staticClass:"text-right",attrs:{scope:"col"}},[t.form?n("button",{staticClass:"btn btn_close btn-circle btn-sm",on:{click:t.cancel}},[n("img",{attrs:{src:"images/no.svg",alt:""}})]):t._e(),t._v(" "),t.form?t._e():n("button",{staticClass:"button btn btn-primary",on:{click:t.addClick}},[n("img",{staticClass:"button-icon",attrs:{src:"images/plus.svg"}}),t._v(" Add Product\n              ")])])])])])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.form,expression:"form"}]},[n("scroll",{staticStyle:{height:"calc(100vh - 240px)"}},[n("div",{staticClass:"col-12"},[n("image-uploader",{attrs:{images:t.imagesFromProduct},on:{change:t.setProductImages}}),t._v(" "),n("form",[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v("Product Name:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.stock.name,expression:"stock.name"}],staticClass:"form-control",attrs:{type:"text",id:"name"},domProps:{value:t.stock.name},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.beforeSave.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.stock,"name",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"description"}},[t._v("Description:")]),t._v(" "),n("b-form-textarea",{attrs:{id:"description","min-rows":"2"},model:{value:t.stock.description,callback:function(e){t.$set(t.stock,"description",e)},expression:"stock.description"}})],1),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"price"}},[t._v("Price:")]),t._v(" "),n("div",{staticClass:"input-group mb-3"},[n("div",{staticClass:"input-group-prepend"},[n("span",{staticClass:"input-group-text"},[t._v(t._s(t.currency.symbol))])]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.stock.price,expression:"stock.price"}],staticClass:"form-control w-auto",attrs:{type:"number",min:"0",id:"price"},domProps:{value:t.stock.price},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.beforeSave.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.stock,"price",e.target.value)}}})])]),t._v(" "),n("label",{attrs:{for:"max-quantity"}},[t._v("Max quantity:")]),t._v(" "),n("div",{staticClass:"form-group row"},[n("div",{staticClass:"col-1"},[n("b-form-checkbox",{staticClass:"mt-1",attrs:{size:"lg",switch:""},on:{change:function(e){!1===e&&(t.stock.max_quantity=null)}},model:{value:t.isEnabledMaxQuantity,callback:function(e){t.isEnabledMaxQuantity=e},expression:"isEnabledMaxQuantity"}})],1),t._v(" "),n("div",{staticClass:"col-11"},[n("div",{staticClass:"input-group mb-3"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.stock.max_quantity,expression:"stock.max_quantity"}],staticClass:"form-control w-auto",attrs:{disabled:!t.isEnabledMaxQuantity,type:"number",min:"0",id:"max-quantity"},domProps:{value:t.stock.max_quantity},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.beforeSave.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.stock,"max_quantity",e.target.value)}}})])])]),t._v(" "),n("div",{staticClass:"form-group product_make_default_container"},[n("label",{staticClass:"float-left mr-5"},[t._v("\n                  Delivery Price per km:\n                ")]),t._v(" "),n("div",{staticClass:"c_chechbox"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.stock.ddp,expression:"stock.ddp"}],attrs:{type:"checkbox",name:"default",id:"default"},domProps:{checked:Array.isArray(t.stock.ddp)?t._i(t.stock.ddp,null)>-1:t.stock.ddp},on:{change:function(e){var n=t.stock.ddp,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&t.$set(t.stock,"ddp",n.concat([null])):o>-1&&t.$set(t.stock,"ddp",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.stock,"ddp",r)}}}),t._v(" "),n("label",{staticClass:"float-left",attrs:{for:"default"}},[t._v("\n                    Make Default\n                  ")]),t._v(" "),n("i",{staticClass:"fa fa-question-circle-o",staticStyle:{"margin-left":"5px","vertical-align":"middle",cursor:"pointer"},attrs:{id:"tooltip-target-default"}}),t._v(" "),n("b-tooltip",{attrs:{target:"tooltip-target-default",triggers:"hover click"}},[n("div",{staticClass:"text-left"},[t._v("\n                      Clicking the checkbox will make this a default delivery price\n                      for all products.\n                      "),n("br"),t._v(" If items with different delivery prices are added to the\n                      same quotation, the\n                      highest delivery price will be used.\n                    ")])])],1),t._v(" "),n("div",{staticClass:"input-group mb-3"},[n("div",{staticClass:"input-group-prepend"},[n("span",{staticClass:"input-group-text"},[t._v(t._s(t.currency.symbol))])]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.stock.delivery_price,expression:"stock.delivery_price"}],staticClass:"form-control w-auto",attrs:{type:"number",min:"0",id:"delivery_price"},domProps:{value:t.stock.delivery_price},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.beforeSave.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.stock,"delivery_price",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"discount"}},[t._v("Discount (%):")]),t._v(" "),n("div",{staticClass:"input-group"},[n("div",{staticClass:"input-group-prepend"},[n("span",{staticClass:"input-group-text"},[t._v(t._s(t.currency.symbol))])]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.stock.discount,expression:"stock.discount"}],staticClass:"form-control w-auto",attrs:{type:"number",min:"0",id:"discount"},domProps:{value:t.stock.discount},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.beforeSave.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.stock,"discount",e.target.value)}}})])])])],1)]),t._v(" "),n("div",{staticClass:"product-form-footer"},[n("button",{class:["button","btn","btn-primary",t.clone?"un-saved":""],attrs:{type:"button"},on:{click:t.beforeSave}},[t._v("Save Item\n          ")]),t._v(" "),t.stock.id>0?n("button",{staticClass:"button btn btn-primary",attrs:{type:"button"},on:{click:t.showIncompatibleStocks}},[t._v("Incompatible Products\n          ")]):t._e()])],1),t._v(" "),n("b-modal",{ref:"incompatible-modal",attrs:{size:"lg","no-close-on-backdrop":"","ok-only":"",title:"Incompatible products"}},[n("div",{staticClass:"d-block"},[t.getIncompatibleStocks().length?n("div",[n("div",[n("table",{staticClass:"table shadow-none"},[n("thead",[n("tr",[n("th",{staticClass:"text-center border-top-0",attrs:{colspan:"2"}},[t._v("These products cannot be selected with this product\n                  ")])])]),t._v(" "),n("tbody",t._l(t.getIncompatibleStocks(),(function(e){return n("tr",[n("td",[t._v(t._s(e.name))]),t._v(" "),n("td",{staticClass:"text-right"},[n("i",{staticClass:"fa fa-times text-danger cursor_pointer",on:{click:function(n){return t.setIncompatible(e,{value:!0})}}})])])})),0)])])]):n("div",{staticClass:"text-center"},[n("div",[t._v("This product has no incompatible products.")]),t._v(" "),n("div",[t._v("You can select incompatible products by clicking on the switcher in the product list.")])])])]),t._v(" "),n("b-modal",{ref:"my-modal",attrs:{size:"lg","hide-footer":"","no-close-on-backdrop":"",title:"What you want to do with this image?"}},[n("div",{staticClass:"d-block text-center"},[n("Cropper",{ref:"cropper",attrs:{classname:"upload-example-cropper",src:t.preview["img"+t.imageEditNum],defaultSize:t.cropperSettings.defaultSize,imageRestriction:t.cropperSettings.imageRestriction,backgroundClassname:t.cropperSettings.backgroundClassname,"stencil-props":t.cropperSettings.stencilProps}}),t._v(" "),n("br"),n("br"),t._v(" "),t.preview["img"+t.imageEditNum]?n("button",{staticClass:"button btn btn-secondary",on:{click:t.cropImage}},[t._v("Crop Image\n          ")]):t._e(),t._v(" "),n("button",{staticClass:"button btn btn-primary margin",on:{click:t.changeImage}},[t._v("Change image")]),t._v(" "),n("button",{staticClass:"button btn btn-danger margin",on:{click:t.removeImage}},[t._v("Remove image")]),t._v(" "),1!=t.imageEditNum?n("button",{staticClass:"btn btn-primary",on:{click:function(e){return t.switchImages(t.imageEditNum,!0)}}},[t._v("Set as main image\n          ")]):t._e()],1)])],1)])],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"custom_head"},[n("table",[n("thead",{staticClass:"table_head_snap"},[n("tr",[n("th",{attrs:{colspan:"2"}},[t._v("Products")]),t._v(" "),n("th",{staticClass:"is_compatible"},[t._v("Is Compatible")]),t._v(" "),n("th",{staticClass:"actions"},[t._v("Actions")])])])])])}],!1,null,"23c774f4",null).exports},7658:(t,e,n)=>{"use strict";n.d(e,{A:()=>B});var i=n(1722),r=n.n(i),o=n(8568),a=n.n(o),s=n(2865),l=n(5072),c=n.n(l),u=n(2258),d={insert:"head",singleton:!1};c()(u.A,d);u.A.locals;var h=n(4276),p=n(8858),f=n(9450),m=n(9509),v=n(4307);const g={name:"StoreButton",components:{GetPriceInfo:v.A},props:["styles","label","type","classes","cartTotal","isHiddenPrice"],computed:{},mounted:function(){},data:function(){return{}},methods:{}};var b=n(4486);const y=(0,b.A)(g,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return"filter"===this.type?n("button",{class:t.classes,style:t.styles,attrs:{type:"button",id:"dropdownMenuButton","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[n("svg",{staticClass:"feather feather-sliders",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}},[n("line",{attrs:{x1:"4",y1:"21",x2:"4",y2:"14"}}),t._v(" "),n("line",{attrs:{x1:"4",y1:"10",x2:"4",y2:"3"}}),t._v(" "),n("line",{attrs:{x1:"12",y1:"21",x2:"12",y2:"12"}}),t._v(" "),n("line",{attrs:{x1:"12",y1:"8",x2:"12",y2:"3"}}),t._v(" "),n("line",{attrs:{x1:"20",y1:"21",x2:"20",y2:"16"}}),t._v(" "),n("line",{attrs:{x1:"20",y1:"12",x2:"20",y2:"3"}}),t._v(" "),n("line",{attrs:{x1:"1",y1:"14",x2:"7",y2:"14"}}),t._v(" "),n("line",{attrs:{x1:"9",y1:"8",x2:"15",y2:"8"}}),t._v(" "),n("line",{attrs:{x1:"17",y1:"16",x2:"23",y2:"16"}})]),t._v("\n    "+t._s(t.label)+"\n")]):"price"===this.type?n("button",{class:t.classes,style:t.styles,attrs:{type:"button","data-toggle":"modal","data-target":"#priceModal"}},[t._v("\n  Total:\n  "),t.isHiddenPrice?t._e():n("b",[t._v(t._s(t.cartTotal))]),t._v(" "),t.isHiddenPrice?n("get-price-info",{attrs:{id:"store-button"}}):t._e()],1):t._e()}),[],!1,null,null,null).exports;var w=n(7340),x=n(3029);const C={name:"item-table",components:{GetPriceInfo:v.A},props:["store","cart","title_color"],mixins:[p.A],computed:{storeModel:function(){return x.A.query().first()}},mounted:function(){},data:function(){return{}},methods:{checkQuantity:function(t){var e=parseFloat(t.total),n=parseFloat(t.price);return n*t.quantity===e?t.quantity:e/n}}};var S=n(6235),E={insert:"head",singleton:!1};c()(S.A,E);S.A.locals;const T=(0,b.A)(C,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"table-responsive mb-0"},[n("table",{staticClass:"table table-sm table-borderless shadow-none"},[t._m(0),t._v(" "),n("tbody",[t._l(t.cart.packages,(function(e,i){return e.quantity>0?n("tr",[n("td",{attrs:{colspan:"6"}},[n("table",{staticClass:"table table-sm table-border-bottom"},[t._l(e.package_items,(function(r,o){return r.quantity>0?n("tr",{key:"cart_item_"+r.item.id,staticStyle:{"table-layout":"fixed"}},[n("td",[0===o?n("h4",{style:t.title_color},[t._v(t._s(e.name))]):t._e()]),t._v(" "),n("td",{attrs:{title:r.item.name}},[t._v(t._s(t.set_char_limit(r.item.name,35)))]),t._v(" "),n("td",{staticClass:"text-center"},[t._v(t._s(r.quantity*e.quantity))]),t._v(" "),n("td",{staticClass:"text-center"},[t.storeModel.is_hidden_price?t._e():[t._v(t._s(t.formatPrice(r.item.price)))],t._v(" "),t.storeModel.is_hidden_price?n("get-price-info",{attrs:{id:"package-item-price-"+r.id+i}}):t._e()],2),t._v(" "),n("td",{staticClass:"text-center"},[t._v("\n              "+t._s(e.discount>r.item.discount?e.discount:r.item.discount)+"%\n            ")]),t._v(" "),n("td",{staticClass:"text-center"},[t.storeModel.is_hidden_price?t._e():[t._v(t._s(t.formatPrice(r.item.total)))],t._v(" "),t.storeModel.is_hidden_price?n("get-price-info",{attrs:{id:"package-item-total-"+r.id+i}}):t._e()],2)]):t._e()})),t._v(" "),n("tr",[n("td",{staticClass:"p-0",attrs:{colspan:"6"}},[n("table",{staticClass:"table table-sm mb-0"},[n("tr",{},[n("td"),t._v(" "),t._m(1,!0),t._v(" "),n("td"),t._v(" "),n("td"),t._v(" "),n("td"),t._v(" "),n("td",{staticClass:"text-center"},[t.storeModel.is_hidden_price?t._e():[t._v("\n                      "+t._s(t.formatPrice(t.getPackagePrice(e,e.package_items).discounted))+"\n                    ")],t._v(" "),t.storeModel.is_hidden_price?n("get-price-info",{attrs:{id:"package-item-total-"+e.id+i}}):t._e()],2)])])])])],2)])]):t._e()})),t._v(" "),t._l(t.cart.categories,(function(e,i){return n("tr",{key:"category__"+e.id},[n("td",{attrs:{colspan:"6"}},[n("table",{staticClass:"table table-sm table-border-bottom"},t._l(e.items,(function(i,r){return i.quantity>0?n("tr",{key:"cat_item_"+i.id,staticStyle:{"table-layout":"fixed"}},[n("td",[0===r?n("h4",{style:t.title_color},[t._v(t._s(e.name))]):t._e()]),t._v(" "),n("td",{attrs:{title:i.name}},[t._v(t._s(t.set_char_limit(i.name,35)))]),t._v(" "),n("td",{staticClass:"text-center"},[t._v(t._s(i.quantity))]),t._v(" "),n("td",{staticClass:"text-center"},[t.storeModel.is_hidden_price?t._e():[t._v(t._s(t.formatPrice(i.price)))],t._v(" "),t.storeModel.is_hidden_price?n("get-price-info",{attrs:{id:"cart-category-item-price-"+i.id}}):t._e()],2),t._v(" "),n("td",{staticClass:"text-center"},[t._v("\n              "+t._s(e.discount>i.discount>0?e.discount:i.discount)+"%\n            ")]),t._v(" "),n("td",{staticClass:"text-center"},[t.storeModel.is_hidden_price?t._e():[t._v(t._s(t.formatPrice(i.total)))],t._v(" "),t.storeModel.is_hidden_price?n("get-price-info",{attrs:{id:"cart-category-item-total-"+i.id}}):t._e()],2)]):t._e()})),0)])])})),t._v(" "),(t.cart.categories.length>0||t.cart.packages.length>0)&&t.cart.labour>0?n("tr",[n("td",{attrs:{colspan:"6"}},[n("table",{staticClass:"table table-sm table-border-bottom"},[n("tr",{},[n("td",[n("h4",{style:t.title_color},[t._v("Labour")])]),t._v(" "),n("td",[t._v("Total")]),t._v(" "),n("td"),t._v(" "),n("td"),t._v(" "),n("td"),t._v(" "),n("td",{staticClass:"text-center"},[t._v(t._s(t.formatPrice(t.cart.labour)))])])])])]):t._e(),t._v(" "),(t.cart.categories.length>0||t.cart.packages.length>0)&&t.cart.additional>0?n("tr",[n("td",{attrs:{colspan:"6"}},[n("table",{staticClass:"table table-sm table-border-bottom"},[n("tr",{},[n("td",[n("h4",{style:t.title_color},[t._v("Additional")])]),t._v(" "),n("td",[t._v("Total")]),t._v(" "),n("td"),t._v(" "),n("td"),t._v(" "),n("td"),t._v(" "),n("td",{staticClass:"text-center"},[t._v(t._s(t.formatPrice(t.cart.additional)))])])])])]):t._e(),t._v(" "),(t.cart.categories.length>0||t.cart.packages.length>0)&&t.cart.transport>0?n("tr",[n("td",{attrs:{colspan:"6"}},[n("table",{staticClass:"table table-sm table-border-bottom"},[n("tr",[n("td",{},[n("h4",{style:t.title_color},[t._v("Transport")])]),t._v(" "),n("td",[t._v("Total")]),t._v(" "),n("td"),t._v(" "),n("td"),t._v(" "),n("td"),t._v(" "),n("td",{staticClass:"text-center"},[t._v(t._s(t.formatPrice(t.cart.transport)))])])])])]):t._e()],2)])])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("thead",[n("tr",{staticStyle:{"table-layout":"fixed"}},[n("th",{attrs:{scope:"col"}}),t._v(" "),n("th",{attrs:{scope:"col"}},[t._v("Item")]),t._v(" "),n("th",{staticClass:"text-center",attrs:{scope:"col"}},[t._v("Quantity")]),t._v(" "),n("th",{staticClass:"text-center",attrs:{scope:"col"}},[t._v("Price")]),t._v(" "),n("th",{staticClass:"text-center",attrs:{scope:"col"}},[t._v("Discount")]),t._v(" "),n("th",{staticClass:"text-center",attrs:{scope:"col"}},[t._v("Total")])])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("td",[n("b",[t._v("Package Total")])])}],!1,null,"439b10b4",null).exports;var O=n(6161),k=n.n(O);const A={name:"checkout-modal",props:["store","fetching_cart","cart","cartTotal","store_data","title_color","links"],components:{GetPriceInfo:v.A,VueGoogleAutocomplete:w.A,ItemTable:T},mixins:[p.A],computed:{storeModel:function(){return x.A.query().first()},addressClassname:function(){var t="form-control";return this.errors.address&&(t+=" cm-error"),t}},mounted:function(){var t=this;m.z.$on("update-transport-prices",(function(e){t.update_transport_prices()})),navigator.geolocation.getCurrentPosition((function(e){t.countryCode=k()([e.coords.longitude,e.coords.latitude])}))},data:function(){return{errors:{name:null,email:null,phone:null,address:null},countryCode:null,customer:{cart:"",name:"",email:"",phone:"",address:"",lat:"",lng:"",store_distance:0},notice_cart:{type:"danger",msg:""}}},methods:{isRequired:function(t){return!!this.storeModel.settings&&this.storeModel.settings.customer_requirements.includes(t)},setErrors:function(t){var e=t.response.data.errors;for(var n in e)this.errors[n]=e[n][0]},resetFieldError:function(t){this.errors[t]=null},save:function(){var t=this;""===this.customer.address&&this.isRequired("address")?this.errors.address="Please select address from autocomplete suggestions":(this.notice_cart.msg="",this.cart.customer=this.customer,this.cart.customer.temp_dp=this.temp_dp,this.cart.general_category_items=[],this.customer.query=this.cart,this.customer.save=!0,this.customer.completed=!0,this.id&&(this.customer.id=this.id),axios.post(this.links.submit_query,this.customer).then((function(e){t.id=e.data.data.id,window.open(t.links.get_invoice_pdf.replace("query_id",t.id),"_blank"),x.A.update({where:t.storeModel.id,data:{is_hidden_price:!1}})})).catch((function(e){t.setErrors(e),t.notice_cart.type="danger",t.notice_cart.msg="Please fill all the fields to submit your request"})))},send:function(){var t=this;""===this.customer.address&&this.isRequired("address")?this.errors.address="Please select address from autocomplete suggestions":(this.notice_cart.msg="",this.cart.customer=this.customer,this.cart.customer.temp_dp=this.temp_dp,this.cart.general_category_items=[],this.customer.query=this.cart,this.customer.save=!1,this.customer.completed=!0,this.id&&(this.customer.id=this.id),axios.post(this.links.submit_query,this.customer).then((function(e){alert("Your request has been submit successfully."),t.id=e.data.data.id,x.A.update({where:t.storeModel.id,data:{is_hidden_price:!1}})})).catch((function(e){t.setErrors(e),t.notice_cart.type="danger",t.notice_cart.msg="Please fill all the fields to submit your request"})))},getAddressData:function(t,e,n){this.resetFieldError("address"),this.temp_dp=this.customer.store_distance,this.address=t,this.customer.lat=t.latitude,this.customer.lng=t.longitude,this.customer.address=e.formatted_address,this.store.lat&&this.store.lng?this.customer.store_distance=this.calcCrow(this.store.lat,this.store.lng,this.customer.lat,this.customer.lng).toFixed(2):this.customer.store_distance=0,this.update_transport_prices()},update_transport_prices:function(){var t=0;if(this.cart.packages.length>0)for(var e=0;e<this.cart.packages.length;e++)if(this.cart.packages[e].quantity>0){var n=parseFloat(this.cart.packages[e].delivery_price);t<n&&(t=n)}if(this.cart.categories.length>0)for(var i=0;i<this.cart.categories.length;i++){var r=this.cart.categories[i].items;if(r.length>0)for(var o=0;o<r.length;o++){var a=r[o];if(a.quantity>0){var s=parseFloat(a.delivery_price);t<s&&(t=s)}}}this.cart.transport=t?parseFloat(this.get_delivery_price(t)).toFixed(2):0,this.calculate_total()},get_delivery_price:function(t){return parseFloat(parseFloat(t).toFixed(2)*parseFloat(this.customer.store_distance).toFixed(2))},calcCrow:function(t,e,n,i){var r=this.toRad(n-t),o=this.toRad(i-e);t=this.toRad(t),n=this.toRad(n);var a=Math.sin(r/2)*Math.sin(r/2)+Math.sin(o/2)*Math.sin(o/2)*Math.cos(t)*Math.cos(n);return 6371*(2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a)))},toRad:function(t){return t*Math.PI/180},formatPrice:function(t){return this.$parent.formatPrice(t)},calculate_total:function(){this.cart.pack_total=0,this.cart.labour=0,this.cart.additional=0;for(var t=0;t<this.cart.packages.length;t++){var e=this.cart.packages[t];e.quantity>0&&(e.total=this.get_package_total(e,e.quantity),this.cart.pack_total=this.sum(this.cart.pack_total,e.total),this.cart.labour=parseFloat(parseFloat(this.cart.labour)+parseFloat(e.labour_cost*e.quantity)).toFixed(2),this.cart.additional=parseFloat(parseFloat(this.cart.additional)+parseFloat(e.additional_cost*e.quantity)).toFixed(2))}this.cart.pack_total<0&&(this.cart.pack_total=0),this.cart.total=0;for(var n=0;n<this.cart.categories.length;n++)for(var i=0;i<this.cart.categories[n].items.length;i++)this.cart.categories[n].items[i].quantity>0&&(this.cart.total=this.sum(this.cart.total,this.cart.categories[n].items[i].total));this.cart.total=parseFloat(parseFloat(this.cart.total)+parseFloat(this.cart.pack_total)).toFixed(2),this.cart.total<0&&(this.cart.total=0)},get_package_total:function(t,e){try{var n=0;if(t.package_items.length>0)for(var i=0;i<t.package_items.length;i++){var r=t.package_items[i];if(r.quantity>0){var o=parseFloat(t.discount),a=parseFloat(r.item.discount),s=parseFloat(r.item.price),l=parseInt(r.quantity*e);parseFloat(t.delivery_price)>0&&(this.address_required=!0),o<a&&(o=a);var c=0;c=o>0?l*(s-this.getPercentage(o,s)):l*s,t.package_items[i].item.total=parseFloat(c).toFixed(2),n+=c}}return parseFloat(n).toFixed(2)}catch(t){return 0}},sum:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return parseFloat(parseFloat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+parseFloat(t)+parseFloat(e)+parseFloat(n)+parseFloat(i)).toFixed(2)}}};var P=n(7888),M={insert:"head",singleton:!1};c()(P.A,M);P.A.locals;const L=(0,b.A)(A,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"priceModal",tabindex:"-1",role:"dialog","aria-labelledby":"priceModalTitle","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-dialog-scrollable modal-lg",attrs:{role:"document"}},[n("div",{staticClass:"modal-content"},[t._m(0),t._v(" "),n("div",{staticClass:"modal-body",staticStyle:{"min-height":"250px"}},[n("div",{staticClass:"container-fluid mb-2"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col p-0 m-0"},[n("div",{},[t.fetching_cart?n("loader"):t._e(),t._v(" "),n("notice",{attrs:{notice:t.notice_cart}}),t._v(" "),n("div",{staticClass:"query_table with_modal"},[n("item-table",{attrs:{store:t.store,cart:t.cart,title_color:t.title_color}})],1)],1)])])]),t._v(" "),n("div",{staticClass:"container-fluid"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("ul",{staticClass:"action_total_ui"},[n("li",{},[t.storeModel.is_hidden_price?t._e():[n("span",[t._v("Total ("+t._s(t.store.currency.code)+")")]),t._v(" "),n("strong",[t._v("TOTAL: "+t._s(t.cartTotal))])],t._v(" "),t.storeModel.is_hidden_price?n("strong",[n("get-price-info",{attrs:{label:"TOTAL:",id:"checkout-total"}})],1):t._e()],2)])])])])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("div",{staticClass:"container-fluid p-0"},[t.cart.categories.length>0||t.cart.packages.length>0?n("div",{staticClass:"row mb-3"},[n("div",{staticClass:"col-6"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v("Name "+t._s(t.isRequired("name")?"*":""))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.customer.name,expression:"customer.name"}],staticClass:"form-control",class:{"cm-error":!!this.errors.name},attrs:{type:"text",id:"name"},domProps:{value:t.customer.name},on:{input:[function(e){e.target.composing||t.$set(t.customer,"name",e.target.value)},function(e){return t.resetFieldError("name")}]}}),t._v(" "),this.errors.name?n("span",{staticStyle:{color:"red","font-size":"0.7rem"}},[t._v(t._s(this.errors.name))]):t._e()]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"email"}},[t._v("Email *")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.customer.email,expression:"customer.email"}],staticClass:"form-control",class:{"cm-error":!!this.errors.email},attrs:{type:"email",id:"email"},domProps:{value:t.customer.email},on:{input:[function(e){e.target.composing||t.$set(t.customer,"email",e.target.value)},function(e){return t.resetFieldError("email")}]}}),t._v(" "),this.errors.email?n("span",{staticStyle:{color:"red","font-size":"0.7rem"}},[t._v(t._s(this.errors.email))]):t._e()])]),t._v(" "),n("div",{staticClass:"col-6"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"phone"}},[t._v("Phone "+t._s(t.isRequired("phone")?"*":""))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.customer.phone,expression:"customer.phone"}],staticClass:"form-control",class:{"cm-error":!!this.errors.phone},attrs:{type:"text",id:"phone"},domProps:{value:t.customer.phone},on:{input:[function(e){e.target.composing||t.$set(t.customer,"phone",e.target.value)},function(e){return t.resetFieldError("phone")}]}}),t._v(" "),this.errors.phone?n("span",{staticStyle:{color:"red","font-size":"0.7rem"}},[t._v(t._s(this.errors.phone))]):t._e()]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"address"}},[t._v("Address "+t._s(t.isRequired("address")?"*":""))]),t._v(" "),n("vue-google-autocomplete",{ref:"address",attrs:{id:"map",country:t.countryCode?[t.countryCode]:null,classname:t.addressClassname,placeholder:"Please type your address"},on:{placechanged:t.getAddressData}}),t._v(" "),this.errors.address?n("span",{staticStyle:{color:"red","font-size":"0.7rem"}},[t._v(t._s(this.errors.address))]):t._e(),t._v(" "),n("small",{staticClass:"pull-left w-100"},[t._v("\n                  Distance between store and your address is "+t._s(t.customer.store_distance)+" KM\n                ")])],1)])]):t._e(),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 text-right"},[n("button",{staticClass:"btn btn-outline-secondary theme_custom_buttons",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Close\n              ")]),t._v(" "),t.cart.categories.length>0||t.cart.packages.length>0?n("button",{staticClass:"button btn btn-secondary mx-2",attrs:{type:"button",disabled:!t.customer.email},on:{click:t.save}},[n("span",{staticClass:"save small-icon"}),t._v("\n                "+t._s(t.store_data.save_btn_text)+"\n              ")]):t._e(),t._v(" "),t.cart.categories.length>0||t.cart.packages.length>0?n("button",{staticClass:"button btn btn-primary",attrs:{type:"button",disabled:!t.customer.email},on:{click:t.send}},[n("span",{staticClass:"send small-icon"}),t._v("\n                "+t._s(t.store_data.send_btn_text)+"\n              ")]):t._e()])])])])])])])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal-header"},[n("h5",{staticClass:"modal-title",attrs:{id:"priceModalTitle"}},[t._v("Price")]),t._v(" "),n("a",{staticClass:"close-icon small w-inline-block",attrs:{href:"#","data-dismiss":"modal","aria-label":"Close"}})])}],!1,null,null,null).exports;function D(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function R(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function I(t){return function(t){if(Array.isArray(t))return j(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return j(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n(5501);const N={name:"store-home",components:{GetPriceInfo:v.A,CheckoutModal:L,FileUpload:a(),IntegerPlusminus:s.j,swiper:h.swiper,swiperSlide:h.swiperSlide,gallery:r(),StoreButton:y},mixins:[p.A,f.A],props:["links","filters","default_selected_filters","store"],computed:{incompatibleStocks:function(){var t=[];return this.cart.categories.forEach((function(e){e.items.forEach((function(e){e.quantity>0&&e.incompatible_stocks.forEach((function(e){t.push(e.id)}))}))})),this.cart.packages.forEach((function(e){e.package_items.forEach((function(e){e.item.incompatible_stocks.forEach((function(e){t.push(e.id)}))}))})),I(new Set(t))},orderedItems:function(){var t=this;return function(e){var n=t.categories_items[e].category_items.map((function(e){return e.disabled=t.incompatibleStocks.includes(e.item_id),e}));return _.orderBy(n,["disabled","order"])}},plusMinusBorder:function(){return{borderColor:"".concat(this.storeData.btn_clr," !important")}},highlightPackItemColor:function(){return{"box-shadow":"0 5px 10px 0 rgba(100,148,170,.5),0 5px 15px 0 ".concat(this.storeData.highlight_item_clr,"!important")}},highlightPackItemColorNotSelected:function(){return{border:"1px solid #000000 !important","box-shadow":"1px 7px 24px -1px #000000 !important"}},switcherStyle:function(){return{"--button-border-color":this.store.btn_clr,"--button-background-color":this.store.btn_clr}}},data:function(){return{notice_cart:{type:"danger",msg:""},tmp_gallery_index:null,gallery_images:[],swiperOption:{watchSlidesProgress:!0,watchSlidesVisibility:!0,slidesPerView:"auto",freeMode:!0,pagination:{el:".swiper-pagination",type:"bullets",clickable:!0,dynamicBullets:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{2300:{},1899.98:{},1459.98:{},1199.98:{},899.98:{spaceBetween:20},575.98:{spaceBetween:10},320:{spaceBetween:10}}},spi_index:-1,last_pack_index:null,selected_filters:{categories:[],filters:[]},categories_items:[],packages_items:[],cart:{categories:[],packages:[],total:0,pack_total:0,address:"",additional:0,transport:0,labour:0},temp_dp:0,address_required:!1,items_in_cart:{},package_toggle_limit:2,max_title_length:29}},methods:{clearAll:function(){this.packages_items.forEach((function(t){t.quantity=0})),this.cart={categories:[],packages:[],total:0,pack_total:0,address:"",additional:0,transport:0,labour:0},this.items_in_cart={},this.updateTransportPrices()},toggle_desc:function(t,e){this.categories_items[t].category_items[e].item.toggle?this.categories_items[t].category_items[e].item.toggle=!1:this.categories_items[t].category_items[e].item.toggle=!0},toggle_desc_package:function(t){null===this.last_pack_index||this.last_pack_index===t?this.toggle_packge_items(t):(this.toggle_packge_items(t),this.packages_items[this.last_pack_index].toggle&&this.toggle_packge_items(this.last_pack_index)),this.last_pack_index=t},toggle_packge_items:function(t){this.packages_items[t].toggle=!this.packages_items[t].toggle},toggle_desc_pack_item:function(t,e){this.packages_items[t].package_items[e].item.toggle?this.packages_items[t].package_items[e].item.toggle=!1:this.packages_items[t].package_items[e].item.toggle=!0},setGalleryImages:function(t){this.gallery_images=this.getImages(t),this.tmp_gallery_index=0},set_inputspinner:function(){$("input[type='number']").inputSpinner(),$(this.$refs.changedInput).inputSpinner()},resetFilters:function(){this.selected_filters=Object.assign({},this.default_selected_filters),this.get_filter_products(!1)},get_filter_products:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.fetchingProducts=!0,axios.post(this.links.get_products,{categories:this.selected_filters.categories.toString(),filters:this.selected_filters.filters.toString(),filter:e}).then((function(e){t.set_inputspinner(),t.packages_items=e.data.data.packages_items,t.categories_items=e.data.data.categories_items,t.fetchingProducts=!1})).catch((function(e){t.fetchingProducts=!1,t.alertErrors()}))},update_cart_item_package:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0,r=parseInt(t.quantity),o=parseInt(t.quantity);n?"-"==n?o--:"+"==n&&o++:(r=parseInt(t.quantity),o=parseInt(i.target.value));var a=t.p_id,s=t.i_id;t.quantity=o;var l=0;this.items_in_cart[s].total-=r,this.items_in_cart[s].data.forEach((function(t){t.p_id==a&&(e.items_in_cart[s].total+=t.quantity,l=t.defined_quantity)}));for(var c=-1,u=-1,d=0,h=0;h<this.cart.packages.length;h++)if(this.cart.packages[h].id==a)for(var p=0;p<this.cart.packages[h].package_items.length;p++)this.cart.packages[h].package_items[p].item_id==s&&(d++,-1==c&&(c=h),-1==u&&(u=p),!0);this.cart.packages[c].package_items[u].quantity=d<=1?o:o-l,this.updateTransportPrices()},update_cart_package:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n&&("-"==n?t.quantity=parseInt(t.quantity)-1:"+"==n&&(t.quantity=parseInt(t.quantity)+1));var i=JSON.parse(JSON.stringify(t)),r=t.quantity;if(this.cart.packages.length>0){for(var o=[],a=0;a<this.cart.packages.length;a++)this.cart.packages[a].id==i.id&&o.push(a);for(var s=o.length-1;s>=0;s--)this.cart.packages.splice(o[s],1);for(var l=0;l<r;l++)this.cart.packages.push(JSON.parse(JSON.stringify(t))),this.cart.packages[this.cart.packages.length-1].quantity=1}else for(var c=0;c<r;c++)this.cart.packages.push(JSON.parse(JSON.stringify(t))),this.cart.packages[this.cart.packages.length-1].quantity=1;this.set_items_in_cart(t,e,r),this.updateTransportPrices()},update_cart_category:function(t,e,n){this.notice_cart.msg="";var i=this.items_in_cart[e.id]?parseInt(this.items_in_cart[e.id].total):0,r=i;"-"===n?r--:"+"===n&&!e.max_quantity||"+"===n&&r<e.max_quantity?r++:"number"!=typeof n&&(r=parseInt(n.target.value));var o=0;if(this.items_in_cart[e.id]){if(this.items_in_cart[e.id].data.forEach((function(t){o+=parseInt(t.quantity)})),r<o)return void(e.total=i);this.items_in_cart[e.id].total=r}else this.items_in_cart[e.id]={total:r,data:[]};r-=o,e.quantity=r;var a=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?D(Object(n),!0).forEach((function(e){R(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},e),s=Object.assign({},t);delete s.category_items;var l=s.discount>e.discount?s.discount:e.discount,c=parseFloat(e.price).toFixed(2);l>0&&(c=parseFloat(c-this.getPercentage(l,c)).toFixed(2)),a.quantity=r,a.total=parseFloat(r*c).toFixed(2);var u=this.cart.categories.findIndex((function(t){return t.id===s.id}));if(u>-1){var d=this.cart.categories[u].items.findIndex((function(t){return t.id===e.id}));-1!==d?this.cart.categories[u].items.splice(d,1,a):this.cart.categories[u].items.push(a),parseFloat(e.delivery_price)>0&&(this.address_required=!0)}else s.items=[a],this.cart.categories.push(s);this.updateTransportPrices()},delete_cart_item:function(t,e,n,i){this.cart.total=parseFloat(parseFloat(this.cart.total)-parseFloat(this.cart.categories[t].items[e].total)).toFixed(2),this.cart.categories[t].items[e].quantity=0,this.cart.total<0&&(this.cart.total=0),this.updateTransportPrices()},delete_cart_package_item:function(t,e){this.cart.packages[t].quantity=0,this.cart.total<0&&(this.cart.total=0),this.updateTransportPrices()},delete_cart_package_removeable_item:function(t,e,n,i){this.cart.packages[t].package_items[e].quantity=0,this.cart.total<0&&(this.cart.total=0),this.updateTransportPrices()},get_old_delivery_price:function(t){return parseFloat(parseFloat(t).toFixed(2)*parseFloat(this.temp_dp).toFixed(2))},reset_cart:function(){this.cart.categories=[],this.cart.packages=[],this.cart.total=0,this.cart.pack_total=0,this.cart.address="",this.cart.additional=0,this.cart.transport=0,this.cart.labour=0},set_items_in_cart:function(t,e,n){if(n=parseInt(n),t.package_items)for(var i=0;i<t.package_items.length;i++){var r=t.package_items[i].item_id;if(r in this.items_in_cart){for(var o=!1,a=0;a<this.items_in_cart[r].data.length;a++)if(this.items_in_cart[r].data[a].p_id==t.id){o=!0;var s=this.items_in_cart[r].data[a].quantity,l=t.package_items[i].quantity*n;this.items_in_cart[r].data[a].quantity=l,this.items_in_cart[r].total-=s,this.items_in_cart[r].total+=l,this.items_in_cart[r].data[a].quantity<=0&&this.items_in_cart[r].data.splice(a,1);break}o||(this.items_in_cart[r].total+=t.package_items[i].quantity*n,this.items_in_cart[r].data.push({i_name:t.package_items[i].item.name,i_id:t.package_items[i].item.id,p_name:t.name,p_id:t.id,removeable:t.package_items[i].removeable,quantity:t.package_items[i].quantity*n})),this.update_item_order(t.package_items[i].item.id,this.items_in_cart[r].total)}else this.items_in_cart[t.package_items[i].item_id]={total:t.package_items[i].quantity*n,show:!1,data:[]},this.items_in_cart[t.package_items[i].item_id].data.push({i_name:t.package_items[i].item.name,i_id:t.package_items[i].item.id,p_name:t.name,p_id:t.id,removeable:t.package_items[i].removeable,quantity:t.package_items[i].quantity*n,defined_quantity:t.package_items[i].quantity}),this.update_item_order(t.package_items[i].item.id,this.items_in_cart[t.package_items[i].item_id].total)}},update_item_order:function(t,e){for(var n=!1,i=0;i<this.categories_items.length;i++){for(var r=0;r<this.categories_items[i].category_items.length;r++)if(this.categories_items[i].category_items[r].item_id==t){parseInt(e)>0&&(this.categories_items[i].category_items[r].order=-1),parseInt(e)<=0&&(this.categories_items[i].category_items[r].order=10),n=!0;break}if(n)break}},can_decrease_quantity:function(t){var e=!1,n=0;return this.items_in_cart[t]&&(this.items_in_cart[t].data.forEach((function(t){n+=parseInt(t.quantity)})),this.items_in_cart[t].total>n&&(e=!0)),e},getProductPrice:function(t,e){var n=t.discount>0?t.discount:e.discount;return n>0?this.getDiscountPrice(t.price,t.price-this.getPercentage(n,t.price)):this.formatPrice(t.price)},getPackagePrice:function(t){if(!t.price)return null;var e=0,n=0,i=parseFloat(t.discount),r=parseFloat(t.labour_cost),o=parseFloat(t.additional_cost);if(i=i||0,r=r||0,o=o||0,t.package_items.length>0)for(var a=0;a<t.package_items.length;a++){var s=t.package_items[a];if(s.quantity>0){var l=parseFloat(s.item.discount),c=parseFloat(s.item.price),u=s.quantity*c;i>l&&(l=i),e+=u,n+=l>0?s.quantity*(c-this.getPercentage(l,c)):u}}var d=e+o+r,h=n+o+r;return d===h?this.formatPrice(d):this.getDiscountPrice(d,h)},getBackground:function(t){return"background-image: url('".concat(this.getImage(t.item),"')")},updateTransportPrices:function(){m.z.$emit("update-transport-prices")}},mounted:function(){var t=this;this.selected_filters=Object.assign({},this.default_selected_filters),this.get_filter_products(!1),m.z.$on("update-category",(function(e){t.update_cart_category(e.category,e.item,e.event)})),m.z.$on("update-package",(function(e){t.update_cart_item_package(e.item,e.type,e.event)})),m.z.$on("set-gallery-images",(function(e){t.setGalleryImages(e)}))}};var F=n(7787),z={insert:"head",singleton:!1};c()(F.A,z);F.A.locals;const B=(0,b.A)(N,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"component_container store_home",style:t.bgColor},[t.fetching?n("loader"):t._e(),t._v(" "),n("gallery",{attrs:{images:t.gallery_images,index:t.tmp_gallery_index},on:{close:function(e){t.tmp_gallery_index=null}}}),t._v(" "),n("header",{staticClass:"fixed_this"},[n("div",{staticClass:"filter_store_header"},[n("div",{staticClass:"row justify-content-between"},[n("div",{class:t.fetchingProducts?"disabled_content":""},[n("div",{staticClass:"dropdown filter_dropdown_ui"},[n("StoreButton",{attrs:{type:"filter",label:"Filters",styles:t.outlineButton,classes:"filter_main_btn btn btn-xl btn-primary float-left dropdown-toggle d-none d-md-flex outline"}}),t._v(" "),n("StoreButton",{attrs:{type:"filter",label:"Filters",styles:t.outlineButton,classes:"filter_main_btn btn btn-primary float-left dropdown-toggle d-md-none outline"}}),t._v(" "),n("div",{staticClass:"dropdown-menu p-0 m-0 border-0"},[n("form",{},[n("div",{staticClass:"accordion md-accordion",attrs:{id:"accordionEx",role:"tablist"}},[n("div",{staticClass:"card"},[t._m(0),t._v(" "),n("div",{staticClass:"collapse",attrs:{id:"collapseOne1",role:"tabpanel","aria-labelledby":"headingOne1","data-parent":"#accordionEx"}},[n("div",{staticClass:"p-2"},[t.filters.categories.length<=0?n("div",{staticClass:"custom-control custom-switch mb-2"},[t._v("\n                          No categories found\n                        ")]):t._e(),t._v(" "),t._l(t.filters.categories,(function(e,i){return n("div",{key:"cat_"+e.id,staticClass:"custom-control custom-switch mb-2"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.selected_filters.categories,expression:"selected_filters.categories"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"categoriesSwitch_"+e.id},domProps:{value:e.id,checked:Array.isArray(t.selected_filters.categories)?t._i(t.selected_filters.categories,e.id)>-1:t.selected_filters.categories},on:{change:function(n){var i=t.selected_filters.categories,r=n.target,o=!!r.checked;if(Array.isArray(i)){var a=e.id,s=t._i(i,a);r.checked?s<0&&t.$set(t.selected_filters,"categories",i.concat([a])):s>-1&&t.$set(t.selected_filters,"categories",i.slice(0,s).concat(i.slice(s+1)))}else t.$set(t.selected_filters,"categories",o)}}}),t._v(" "),n("label",{staticClass:"custom-control-label",style:t.switcherStyle,attrs:{for:"categoriesSwitch_"+e.id}},[t._v(t._s(e.name))])])}))],2)])]),t._v(" "),t._l(t.filters.filters,(function(e,i){return n("div",{key:"filter_"+e.id,staticClass:"card"},[n("div",{staticClass:"card-header",attrs:{role:"tab",id:"filter_"+e.id}},[n("a",{attrs:{"data-toggle":"collapse","data-parent":"#accordionEx",href:"#collapseTwo_"+e.id,"aria-expanded":"false","aria-controls":"collapseTwo_"+e.id}},[n("h5",{staticClass:"mb-0"},[t._v(t._s(e.name)+" "),n("i",{staticClass:"float-right fa fa-caret-down",attrs:{"aria-hidden":"true"}})])])]),t._v(" "),n("div",{staticClass:"collapse ",attrs:{id:"collapseTwo_"+e.id,role:"tabpanel","aria-labelledby":"filter_"+e.id,"data-parent":"#accordionEx"}},[n("div",{staticClass:"p-2"},[e.conditions.length<=0?n("div",{staticClass:"custom-control custom-switch mb-2"},[t._v("\n                          No conditions found\n                        ")]):t._e(),t._v(" "),t._l(e.conditions,(function(i,r){return n("div",{key:"con_"+i.id,staticClass:"custom-control custom-switch mb-2"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.selected_filters.filters,expression:"selected_filters.filters"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"f_c_"+e.id+"_"+i.id},domProps:{value:e.id+"_"+i.id,checked:Array.isArray(t.selected_filters.filters)?t._i(t.selected_filters.filters,e.id+"_"+i.id)>-1:t.selected_filters.filters},on:{change:function(n){var r=t.selected_filters.filters,o=n.target,a=!!o.checked;if(Array.isArray(r)){var s=e.id+"_"+i.id,l=t._i(r,s);o.checked?l<0&&t.$set(t.selected_filters,"filters",r.concat([s])):l>-1&&t.$set(t.selected_filters,"filters",r.slice(0,l).concat(r.slice(l+1)))}else t.$set(t.selected_filters,"filters",a)}}}),t._v(" "),n("label",{staticClass:"custom-control-label",style:t.switcherStyle,attrs:{for:"f_c_"+e.id+"_"+i.id}},[t._v(t._s(i.name))])])}))],2)])])}))],2),t._v(" "),n("div",{staticClass:"card"},[n("div",{staticClass:"container my-2"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("button",{staticClass:"button btn btn-primary",attrs:{type:"button"},on:{click:t.get_filter_products}},[t._v("Submit\n                        ")])]),t._v(" "),n("div",{staticClass:"col-12"},[n("button",{staticClass:"button btn btn-danger",attrs:{type:"button"},on:{click:t.resetFilters}},[t._v("Reset\n                        ")])]),t._v(" "),t._m(1)])])])])])],1)]),t._v(" "),n("div",{staticClass:"d-flex justify-content-end"},[n("button",{staticClass:"filter_main_btn btn btn-fixed btn-xl btn-primary d-none d-md-flex outline mr-1",style:t.outlineButton,on:{click:t.clearAll}},[t._v("Clear all")]),t._v(" "),n("StoreButton",{attrs:{"is-hidden-price":t.storeModel.is_hidden_price,type:"price",label:"",styles:t.outlineButton,cartTotal:t.cartTotal,classes:"filter_main_btn btn btn-fixed btn-xl btn-primary dropdown-toggle d-none d-md-flex outline"}}),t._v(" "),n("button",{staticClass:"filter_main_btn btn btn-fixed btn-primary d-md-none outline mr-1",style:t.outlineButton,on:{click:t.clearAll}},[t._v("Clear all")]),t._v(" "),n("StoreButton",{attrs:{"is-hidden-price":t.storeModel.is_hidden_price,type:"price",label:"",styles:t.outlineButton,cartTotal:t.cartTotal,classes:"filter_main_btn btn btn-fixed btn-primary dropdown-toggle d-md-none outline"}})],1)])])]),t._v(" "),t.fetchingProducts?n("loader"):t._e(),t._v(" "),t.fetchingProducts?t._e():n("main",{staticClass:"main_store_sec pull-left w-100 mb-3 px-4 py-2",attrs:{role:"main"}},[t.packages_items.length>0?n("section",{attrs:{id:"package_all"}},[n("div",{staticClass:"pull-left w-100"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-lg-12 px-0"},[n("div",{staticClass:"swiper-container pt-2 pt-md-4 swiper-container-initialized swiper-container-horizontal"},[n("div",{staticClass:"swiper-wrapper"},[n("h2",{staticClass:"heading_store",class:t.storeModel.settings&&t.storeModel.settings.store_fonts.category_name_css_class||"",style:t.titleColor},[t._v(t._s(t.store.packages_label))])])]),t._v(" "),n("swiper",{ref:"pswiper_container_all",staticClass:"pt-2 pt-md-4",attrs:{options:t.swiperOption}},[t._l(t.packages_items,(function(e,i){return n("swiper-slide",{key:"package_"+e.id,staticClass:"swiper-slide"},[n("div",{staticClass:"col-lg-12 mw-100 text-left px-1 px-sm-1 px-md-2 px-lg-2"},[n("div",{staticClass:"card product_box",style:e.quantity>0?t.highlightPackItemColor:e.toggle?t.highlightPackItemColorNotSelected:""},[n("div",{staticClass:"pd_img",style:"background-image: url('"+t.getImage(e)+"')",on:{click:function(n){return t.setGalleryImages(e)}}}),t._v(" "),n("div",{staticClass:"card-body title"},[n("p",{staticClass:"mb-0 mb-sm-2 d-flex justify-content-between",attrs:{title:e.name}},[n("span",{class:t.storeModel.settings&&t.storeModel.settings.store_fonts.item_name_css_class||""},[e.name.length>t.max_title_length&&e.toggle?[t._v("\n                              "+t._s(e.name)+"\n                          ")]:[t._v(t._s(t.set_char_limit(e.name,t.max_title_length)))]],2),t._v(" "),e.description||e.package_items.length||e.name>t.max_title_length?n("span",{staticClass:"pull-right cus-int-btn outline",style:t.outlineButton,on:{click:function(e){t.toggle_desc_package(i),t.spi_index=t.spi_index==i?-1:i}}},[e.toggle?n("i",{staticClass:"fa fa-caret-up"}):n("span",[t._v("+")])]):t._e()]),t._v(" "),e.toggle?n("p",{staticClass:"card-text d-none d-md-block"},[t._v("\n                        "+t._s(e.description)+"\n                      ")]):t._e()]),t._v(" "),n("div",{staticClass:"card-body des"},[n("div",{staticClass:"row align-items-center"},[n("div",{staticClass:"col-7"},[t.storeModel.is_hidden_price?t._e():n("p",{staticClass:"pb-0 mb-0",domProps:{innerHTML:t._s(t.getPackagePrice(e))}}),t._v(" "),t.storeModel.is_hidden_price?n("get-price-info",{attrs:{id:"package-"+e.id}}):t._e()],1),t._v(" "),n("div",{staticClass:"col-5"},[n("div",{staticClass:"my_plusminus"},[n("input",{staticClass:"my_min",style:t.btnColorWithoutBorder,attrs:{disabled:e.quantity<=0,type:"button",value:"-"},on:{click:function(n){return t.update_cart_package(e,i,"-")}}}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.quantity,expression:"package_.quantity"}],ref:"p_quantity_"+e.id,refInFor:!0,style:t.plusMinusBorder,attrs:{type:"number",oninput:"this.value = Math.abs(this.value)",min:0,max:1e3},domProps:{value:e.quantity},on:{change:function(n){return t.update_cart_package(e,i)},input:function(n){n.target.composing||t.$set(e,"quantity",n.target.value)}}}),t._v(" "),n("input",{staticClass:"my_plus",style:t.btnColorWithoutBorder,attrs:{type:"button",value:"+"},on:{click:function(n){return t.update_cart_package(e,i,"+")}}})])])])])])])])})),t._v(" "),n("div",{staticClass:"swiper-pagination",attrs:{slot:"pagination"},slot:"pagination"}),t._v(" "),n("div",{staticClass:"swiper-button-prev",style:t.swiperPre,attrs:{slot:"button-prev"},slot:"button-prev"}),t._v(" "),n("div",{staticClass:"swiper-button-next",style:t.swiperNext,attrs:{slot:"button-next"},slot:"button-next"})],2)],1)])]),t._v(" "),t.spi_index>-1?n("div",{staticClass:"pull-left w-100"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-lg-12 px-0"},[n("swiper",{ref:"pswiper_container_items",staticClass:"pt-2 pt-md-4",attrs:{options:t.swiperOption}},[t._l(t.packages_items[t.spi_index].package_items,(function(e,i){return n("swiper-slide",{key:"pi_"+e.item.id,staticClass:"swiper-slide"},[n("div",{staticClass:"col-lg-12 mw-100 text-left px-1 px-sm-1 px-md-2 px-lg-2"},[n("div",{staticClass:"card product_box no_desc",style:t.highlightPackItemColorNotSelected},[n("div",{staticClass:"pd_img",style:"background-image: url('"+t.getImage(e.item)+"')",on:{click:function(n){return t.setGalleryImages(e.item)}}}),t._v(" "),n("div",{staticClass:"card-body title"},[n("p",{staticClass:"mb-0 mb-sm-2",class:t.storeModel.settings&&t.storeModel.settings.store_fonts.item_name_css_class||"",attrs:{title:e.item.name}},[t._v("\n                        "+t._s(t.set_char_limit(e.item.name,t.max_title_length)))])]),t._v(" "),n("div",{staticClass:"card-body des"},[n("div",{staticClass:"row align-items-center"},[n("div",{staticClass:"col-6"},[t.storeModel.is_hidden_price?t._e():n("p",{staticClass:"pb-0 mb-0"},[t._v(t._s(t.formatPrice(e.item.price)))]),t._v(" "),t.storeModel.is_hidden_price?n("get-price-info",{attrs:{id:"package-item-"+e.item.id}}):t._e()],1),t._v(" "),n("div",{staticClass:"col-6 text-right"},[t._v("\n                          Qty: "+t._s(e.quantity)+"\n                        ")])])])])])])})),t._v(" "),n("div",{staticClass:"swiper-pagination",attrs:{slot:"pagination"},slot:"pagination"}),t._v(" "),n("div",{staticClass:"swiper-button-prev",style:t.swiperPre,attrs:{slot:"button-prev"},slot:"button-prev"}),t._v(" "),n("div",{staticClass:"swiper-button-next",style:t.swiperNext,attrs:{slot:"button-next"},slot:"button-next"})],2)],1)])]):t._e()]):t._e(),t._v(" "),t._l(t.categories_items,(function(e,i){return n("section",{key:"category_"+e.id,staticClass:"pull-left w-100",attrs:{id:"category_"+e.id}},[e.category_items.length>0?n("div",{staticClass:"pull-left w-100 "},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-lg-12 px-0"},[n("div",{staticClass:"swiper-container pt-2 pt-md-4 swiper-container-initialized swiper-container-horizontal"},[n("div",{staticClass:"swiper-wrapper"},[n("h2",{staticClass:"heading_store",class:t.storeModel.settings&&t.storeModel.settings.store_fonts.category_name_css_class||"",style:t.titleColor},[t._v(t._s(e.name))])])]),t._v(" "),n("swiper",{ref:"swiper_container_"+e.id,refInFor:!0,class:"swiper_container_"+e.id+" pt-2 pt-md-4",attrs:{options:t.swiperOption}},[t._l(t.orderedItems(i),(function(i,r){return n("swiper-slide",{key:"item_"+i.item.id,staticClass:"swiper-slide"},[n("category-item",{attrs:{disabled:i.disabled,item:i,store:t.store,category:e,item_in_cart:t.items_in_cart[i.item.id]?t.items_in_cart[i.item.id]:null,total:t.items_in_cart[i.item.id]?t.items_in_cart[i.item.id].total:0,price:t.getProductPrice(i.item,e),package_toggle_limit:t.package_toggle_limit,can_decrease_quantity:t.can_decrease_quantity(i.item.id),background:t.getBackground(i),outlineButton:t.outlineButton,item_style:t.highlightPackItemColor,swiper_pre:t.swiperPre,btn_color_without_border:t.btnColorWithoutBorder,plusminus_border:t.plusMinusBorder,max_title_length:t.max_title_length}})],1)})),t._v(" "),n("div",{staticClass:"swiper-pagination",attrs:{slot:"pagination"},slot:"pagination"}),t._v(" "),n("div",{staticClass:"swiper-button-prev",style:t.swiperPre,attrs:{slot:"button-prev"},slot:"button-prev"}),t._v(" "),n("div",{staticClass:"swiper-button-next",style:t.swiperNext,attrs:{slot:"button-next"},slot:"button-next"})],2)],1)])]):t._e()])}))],2),t._v(" "),n("checkout-modal",{attrs:{fetching_cart:t.fetchingCart,cart:t.cart,cartTotal:t.cartTotal,title_color:t.titleColor,store_data:t.storeData,store:t.store,links:t.links}})],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card-header",attrs:{role:"tab",id:"headingOne1"}},[n("a",{staticClass:"collapsed",attrs:{"data-toggle":"collapse","data-parent":"#accordionEx",href:"#collapseOne1","aria-expanded":"false","aria-controls":"collapseOne1"}},[n("h5",{staticClass:"mb-0"},[t._v("\n                          Categories "),n("i",{staticClass:"float-right fa fa-caret-down",attrs:{"aria-hidden":"true"}})])])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"col-12"},[n("button",{staticClass:"btn btn-outline-secondary theme_custom_buttons",attrs:{type:"button","data-dismiss":"modal","data-toggle":"dropdown"}},[t._v("Close\n                        ")])])}],!1,null,"dcd3f26e",null).exports},4547:(t,e,n)=>{"use strict";n.d(e,{A:()=>p});var i=n(8858),r=n(5016);function o(t){return o="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},o(t)}function a(){a=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,i){var r=e&&e.prototype instanceof p?e:p,o=Object.create(r.prototype),a=new E(i||[]);return o._invoke=function(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return O()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=d(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h={};function p(){}function f(){}function m(){}var v={};c(v,r,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==e&&n.call(b,r)&&(v=b);var y=m.prototype=p.prototype=Object.create(v);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(r,a,s,l){var c=d(t[r],t,a);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==o(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,s,l)}),(function(t){i("throw",t,s,l)})):e.resolve(h).then((function(t){u.value=t,s(u)}),(function(t){return i("throw",t,s,l)}))}l(c.arg)}var r;this._invoke=function(t,n){function o(){return new e((function(e,r){i(t,n,e,r)}))}return r=r?r.then(o,o):o()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var i=d(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function T(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return f.prototype=m,c(y,"constructor",m),c(m,"constructor",f),f.displayName=c(m,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,l,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},_(w.prototype),c(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new w(u(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(y),c(y,l,"Generator"),c(y,r,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return a.type="throw",a.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function s(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}const l={name:"store-settings",props:[],components:{},mixins:[i.A,r.A],data:function(){return{}},computed:{cssVars:function(){return{"--title-color":this.storeData.title_clr,"--highlight-color":this.storeData.highlight_item_clr,"--enquiry-color":this.storeData.enquiry_clr,"--button-text-color":this.storeData.btn_text_clr,"--button-color":this.storeData.btn_clr,"--button-color-opacity":this.storeData.btn_clr+"3F","--background-color":this.storeData.bg_clr,"--border-color":this.storeData.btn_outline_clr,"--main-section-height":this.mainSectionHeight}},categoryFont:function(){return this.storeData.settings&&this.storeData.settings.store_fonts.category_name_css_class||""}},methods:{resetToDefaults:function(){var t=this,e=this.links.store_ui_settings.replace("store_id",this.storeData.user_id);this.fetching=!0,this.storeData.default_theme=!0,axios.put(e,this.storeData).then((function(e){t.successNotice("Store updated."),t.storeData=e.data.data,window.location.reload()})).catch((function(e){t.alertErrors()})).finally((function(){t.fetching=!1}))}},created:function(){var t,e=this;return(t=a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.setStoreSettings();case 2:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){s(o,i,r,a,l,"next",t)}function l(t){s(o,i,r,a,l,"throw",t)}a(void 0)}))})()}};var c=n(5072),u=n.n(c),d=n(748),h={insert:"head",singleton:!1};u()(d.A,h);d.A.locals;const p=(0,n(4486).A)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"component_container",style:t.cssVars},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-lg-12"},[t.fetching?n("loader"):t._e()],1),t._v(" "),t.fetching?t._e():n("div",{staticClass:"col-12"},[n("div",{staticClass:"d-flex"},[n("toggle-button",{staticClass:"mr-2",attrs:{value:!!t.storeData.live,height:36,width:100,"font-size":15,color:"#1282a2",labels:{checked:"Live",unchecked:"Offline"},disabled:!t.canManage},on:{change:t.toggleStatus}}),t._v(" "),n("toggle-button",{attrs:{labels:{checked:"Desktop",unchecked:"Mobile"},height:36,width:110,"font-size":15,color:"#1282a2"},model:{value:t.isDesktop,callback:function(e){t.isDesktop=e},expression:"isDesktop"}})],1),t._v(" "),n("b-tabs",{staticClass:"fancy_tabs",attrs:{"content-class":"mt-3",align:"right"}},["builder"===t.storeData.store_type?n("b-tab",{attrs:{title:"Draft View"},on:{click:function(e){t.showDraft=!0}}},[t.showDraft?n("div",{class:t.iframeWrapperClasses},[n("iframe",{style:t.iframeStyles,attrs:{src:t.link+"?view=setting-iframe&draft=1"}})]):t._e()]):t._e(),t._v(" "),n("b-tab",{attrs:{title:"Live View"},on:{click:function(e){t.showLive=!0}}},[t.showLive?n("div",{class:t.iframeWrapperClasses},[n("iframe",{style:t.iframeStyles,attrs:{src:t.link+"?view=setting-iframe"}})]):t._e()]),t._v(" "),n("b-tab",{attrs:{title:"Quote Template"}},[n("div",{staticClass:"tab-content"},[n("div",{staticClass:"list_container p-2 p-md-3 p-xl-5"},[n("quote-template",{attrs:{store:t.storeData,quote:t.quote,"can-manage":t.canManage}}),t._v(" "),n("div",{staticClass:"mt-5 text-right"},[t.canManage?n("button",{staticClass:"button btn btn-primary",on:{click:t.updateTemplate}},[t._v("Save")]):t._e()])],1)])]),t._v(" "),n("b-tab",{attrs:{title:"Settings",active:""}},[n("div",{staticClass:"list_container p-2 p-md-3 p-xl-5"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 text-right"},[n("a",{attrs:{href:t.storeData.link,target:"_blank"}},[n("i",{staticClass:"fa fa-2x fa-external-link-square"})])]),t._v(" "),n("div",{staticClass:"col-md-12"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-xl-8 col-md-12"},[n("label",[t._v("Store Name")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.name,expression:"storeData.name"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Store Name",disabled:!t.canManage},domProps:{value:t.storeData.name},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.update.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.storeData,"name",e.target.value)}}})]),t._v(" "),n("label",[t._v("Store Type")]),t._v(" "),n("div",{staticClass:"form-group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.storeData.store_type,expression:"storeData.store_type"}],staticClass:"form-control",attrs:{id:"store_type",name:"store_type",disabled:!t.canManage},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.storeData,"store_type",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:"catalogue"}},[t._v("Catalogue")]),t._v(" "),n("option",{attrs:{value:"builder"}},[t._v("Builder")])])]),t._v(" "),n("label",[t._v("Currency")]),t._v(" "),n("div",{staticClass:"form-group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.storeData.currency_id,expression:"storeData.currency_id"}],staticClass:"form-control",attrs:{id:"currency",name:"currency",disabled:!t.canManage},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.storeData,"currency_id",e.target.multiple?n:n[0])}}},t._l(t.currencies,(function(e){return n("option",{domProps:{value:e.id}},[t._v(t._s(e.name)+" ("+t._s(e.code)+")\n                            ")])})),0)]),t._v(" "),n("label",[t._v("Required Customer Information")]),t._v(" "),n("i",{staticClass:"fa fa-question-circle-o",attrs:{id:"required-customer-information-info","aria-hidden":"true"}}),t._v(" "),n("b-tooltip",{attrs:{target:"required-customer-information-info"}},[t._v("\n                          You can specify exactly what information is required\n                          by your customers before they can save or send a quote\n                        ")]),t._v(" "),n("div",{staticClass:"input-group mb-2"},[n("b-form-checkbox",{staticClass:"mr-3",attrs:{checked:"true",disabled:"",switch:""}},[t._v("Email")]),t._v(" "),n("b-form-checkbox-group",{attrs:{options:t.customerRequirementsOptions,disabled:!t.canManage,switches:""},model:{value:t.storeData.settings.customer_requirements,callback:function(e){t.$set(t.storeData.settings,"customer_requirements",e)},expression:"storeData.settings.customer_requirements"}})],1),t._v(" "),n("hr",{staticClass:"my-4"}),t._v(" "),n("div",{staticClass:"mb-4"},[n("h4",[t._v("Fonts")]),t._v(" "),n("label",[t._v("Category Name Font")]),t._v(" "),n("div",{staticClass:"form-group"},[n("font-select",{attrs:{disabled:!t.canManage},model:{value:t.storeData.settings.store_fonts.category_name_css_class,callback:function(e){t.$set(t.storeData.settings.store_fonts,"category_name_css_class",e)},expression:"storeData.settings.store_fonts.category_name_css_class"}})],1),t._v(" "),n("label",[t._v("Product Name Font")]),t._v(" "),n("div",{staticClass:"form-group"},[n("font-select",{attrs:{disabled:!t.canManage},model:{value:t.storeData.settings.store_fonts.item_name_css_class,callback:function(e){t.$set(t.storeData.settings.store_fonts,"item_name_css_class",e)},expression:"storeData.settings.store_fonts.item_name_css_class"}})],1)]),t._v(" "),n("hr",{staticClass:"mb-4"}),t._v(" "),n("div",{},[n("h4",[t._v("Color Theme")]),t._v(" "),n("div",{staticClass:"pick_color"},[n("swatches",{attrs:{colors:"text-advanced",disabled:!t.canManage},model:{value:t.storeData.btn_clr,callback:function(e){t.$set(t.storeData,"btn_clr",e)},expression:"storeData.btn_clr"}}),t._v("\n                            Button Color\n                          ")],1),t._v(" "),n("div",{staticClass:"pick_color"},[n("swatches",{attrs:{colors:"text-advanced",disabled:!t.canManage},model:{value:t.storeData.btn_text_clr,callback:function(e){t.$set(t.storeData,"btn_text_clr",e)},expression:"storeData.btn_text_clr"}}),t._v("\n                            Button Text Color\n                          ")],1),t._v(" "),n("div",{staticClass:"pick_color"},[n("swatches",{attrs:{colors:"text-advanced",disabled:!t.canManage},model:{value:t.storeData.btn_outline_clr,callback:function(e){t.$set(t.storeData,"btn_outline_clr",e)},expression:"storeData.btn_outline_clr"}}),t._v("\n                            Button Outline Color\n                          ")],1),t._v(" "),n("div",{staticClass:"pick_color"},[n("swatches",{attrs:{colors:"text-advanced",disabled:!t.canManage},model:{value:t.storeData.arrow_btns_clr,callback:function(e){t.$set(t.storeData,"arrow_btns_clr",e)},expression:"storeData.arrow_btns_clr"}}),t._v("\n                            Arrow Buttons Color\n                          ")],1),t._v(" "),n("div",{staticClass:"pick_color"},[n("swatches",{attrs:{colors:"text-advanced",disabled:!t.canManage},model:{value:t.storeData.title_clr,callback:function(e){t.$set(t.storeData,"title_clr",e)},expression:"storeData.title_clr"}}),t._v("\n                            Package/Filter title color\n                          ")],1),t._v(" "),n("div",{staticClass:"pick_color"},[n("swatches",{attrs:{colors:"text-advanced",disabled:!t.canManage},model:{value:t.storeData.highlight_item_clr,callback:function(e){t.$set(t.storeData,"highlight_item_clr",e)},expression:"storeData.highlight_item_clr"}}),t._v("\n                            Highlight item color\n                          ")],1)])],1)])]),t._v(" "),n("div",{staticClass:"col-12 col-md-6"},[n("label",{attrs:{for:"packages_label"}},[t._v("Main Label")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.packages_label,expression:"storeData.packages_label"}],staticClass:"form-control",attrs:{id:"packages_label",type:"text",placeholder:"Main Label",disabled:!t.canManage},domProps:{value:t.storeData.packages_label},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.update.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.storeData,"packages_label",e.target.value)}}})]),t._v(" "),"builder"===t.storeData.store_type?[n("label",{attrs:{for:"enquiry_form_header"}},[t._v("Enquiry Form Header")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.enquiry_form_header,expression:"storeData.enquiry_form_header"}],staticClass:"form-control",attrs:{id:"enquiry_form_header",type:"text",placeholder:"Enquiry Form Header",disabled:!t.canManage},domProps:{value:t.storeData.enquiry_form_header},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.update.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.storeData,"enquiry_form_header",e.target.value)}}})])]:t._e(),t._v(" "),n("div",{staticClass:"form-group"},[n("b-form-checkbox",{staticClass:"mr-3",attrs:{switch:"",disabled:!t.canManage},model:{value:t.storeData.is_hidden_price,callback:function(e){t.$set(t.storeData,"is_hidden_price",e)},expression:"storeData.is_hidden_price"}},[t._v("\n                        Hide price information\n                      ")])],1),t._v(" "),"builder"===t.storeData.store_type&&t.storeData.is_hidden_price?[n("hr",{staticClass:"my-4"}),t._v(" "),n("h4",{staticClass:"d-flex justify-content-between"},[t._v('"Hidden prices" Modal\n                        '),n("button",{staticClass:"button btn btn-primary mt-0",on:{click:function(e){return e.preventDefault(),t.tryHiddenPricesModal.apply(null,arguments)}}},[t._v("Try\n                        ")])]),t._v(" "),n("label",{attrs:{for:"hidden_price_modal_header"}},[t._v("Header")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.hidden_price_modal_header,expression:"storeData.hidden_price_modal_header"}],staticClass:"form-control",attrs:{id:"hidden_price_modal_header",type:"text",title:"Header",disabled:!t.canManage},domProps:{value:t.storeData.hidden_price_modal_header},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.update.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.storeData,"hidden_price_modal_header",e.target.value)}}})]),t._v(" "),n("label",{attrs:{for:"hidden_price_modal_subheader"}},[t._v("Subheader")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.hidden_price_modal_subheader,expression:"storeData.hidden_price_modal_subheader"}],staticClass:"form-control",attrs:{id:"hidden_price_modal_subheader",type:"text",placeholder:"Subheader",disabled:!t.canManage},domProps:{value:t.storeData.hidden_price_modal_subheader},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.update.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.storeData,"hidden_price_modal_subheader",e.target.value)}}})])]:t._e(),t._v(" "),n("hr",{staticClass:"my-4"}),t._v(" "),n("div",{},[n("h4",[t._v("Buttons")]),t._v(" "),n("div",{staticClass:"row mb-2"},[n("div",{staticClass:"col-md-4"},[n("button",{staticClass:"button btn btn-secondary",attrs:{type:"button"}},[n("span",{staticClass:"save small-icon"}),t._v(" "+t._s(t.storeData.save_btn_text)+"\n                          ")])]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.save_btn_text,expression:"storeData.save_btn_text"}],staticClass:"form-control",attrs:{type:"text",disabled:!t.canManage},domProps:{value:t.storeData.save_btn_text},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.update.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.storeData,"save_btn_text",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-4"},[n("button",{staticClass:"button btn btn-primary",attrs:{type:"button"}},[n("span",{staticClass:"send small-icon"}),t._v("\n                            "+t._s(t.storeData.send_btn_text)+"\n                          ")])]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.send_btn_text,expression:"storeData.send_btn_text"}],staticClass:"form-control",attrs:{type:"text",disabled:!t.canManage},domProps:{value:t.storeData.send_btn_text},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.update.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.storeData,"send_btn_text",e.target.value)}}})])])]),t._v(" "),n("hr",{staticClass:"my-4"}),t._v(" "),n("div",{},[n("h4",{staticClass:"d-flex justify-content-between"},[t._v('"Success" Popup\n                        '),n("button",{staticClass:"button btn btn-primary",on:{click:function(e){return e.preventDefault(),t.tryPopup.apply(null,arguments)}}},[t._v("Try")])]),t._v(" "),n("div",{staticClass:"row mb-2"},[n("div",{staticClass:"col-md-4"},[t._v("Title")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.popup_title,expression:"storeData.popup_title"}],staticClass:"form-control",attrs:{type:"text",disabled:!t.canManage},domProps:{value:t.storeData.popup_title},on:{input:function(e){e.target.composing||t.$set(t.storeData,"popup_title",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"row mb-2"},[n("div",{staticClass:"col-md-4"},[t._v("Text")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.popup_text,expression:"storeData.popup_text"}],staticClass:"form-control",attrs:{type:"text",disabled:!t.canManage},domProps:{value:t.storeData.popup_text},on:{input:function(e){e.target.composing||t.$set(t.storeData,"popup_text",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"row mb-5"},[n("div",{staticClass:"col-md-4"},[n("button",{staticClass:"button btn btn-primary",attrs:{type:"button"}},[t._v("\n                            "+t._s(t.storeData.popup_btn_text)+"\n                          ")])]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.popup_btn_text,expression:"storeData.popup_btn_text"}],staticClass:"form-control",attrs:{type:"text",disabled:!t.canManage},domProps:{value:t.storeData.popup_btn_text},on:{input:function(e){e.target.composing||t.$set(t.storeData,"popup_btn_text",e.target.value)}}})])])])],2),t._v(" "),n("div",{staticClass:"col-12"},[n("hr",{staticClass:"my-4"}),t._v(" "),n("h4",[t._v("Layout")]),t._v(" "),n("label",{attrs:{for:"custom-title"}},[t._v("Title")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.title,expression:"storeData.title"}],staticClass:"form-control",attrs:{type:"text",id:"custom-title",disabled:!t.canManage},domProps:{value:t.storeData.title},on:{input:function(e){e.target.composing||t.$set(t.storeData,"title",e.target.value)}}})]),t._v(" "),n("label",{attrs:{for:"custom-favicon"}},[t._v("Favicon")]),t._v(" "),n("div",{staticClass:"form-group"},[t.storeData.faviconPath?n("div",{staticClass:"img-wrapper"},[n("img",{staticClass:"img-thumbnail",staticStyle:{"max-width":"50px"},attrs:{src:t.storeData.faviconPath,alt:"favicon"}}),t._v(" "),t.canManage?n("i",{staticClass:"fa fa-times text-danger cursor_pointer",on:{click:t.deleteFavicon}}):t._e()]):n("input",{attrs:{type:"file",id:"custom-favicon"},on:{change:t.uploadFavicon}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("b-form-checkbox",{staticClass:"mr-3",attrs:{switch:"",disabled:!t.canManage},model:{value:t.storeData.logo_enabled,callback:function(e){t.$set(t.storeData,"logo_enabled",e)},expression:"storeData.logo_enabled"}},[t._v("\n                        Show logo "),n("i",{staticClass:"fa fa-question-circle-o",attrs:{id:"logo-info","aria-hidden":"true"}}),t._v(" "),n("b-tooltip",{attrs:{target:"logo-info"}},[t._v("\n                          Logo will not work with custom header\n                        ")])],1)],1),t._v(" "),n("div",{staticClass:"form-group"},[n("b-form-checkbox",{staticClass:"mr-3",attrs:{switch:"",disabled:!t.canManage},model:{value:t.storeData.header_enabled,callback:function(e){t.$set(t.storeData,"header_enabled",e)},expression:"storeData.header_enabled"}},[t._v("\n                        Use Custom Header\n                      ")])],1),t._v(" "),t.storeData.header_enabled?[n("label",{attrs:{for:"custom-header"}},[t._v("Custom Header")]),t._v(" "),n("div",{staticClass:"form-group"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.storeData.header,expression:"storeData.header"}],staticClass:"form-control",attrs:{id:"custom-header",placeholder:"Paste your html code here",rows:"5",disabled:!t.canManage},domProps:{value:t.storeData.header},on:{input:function(e){e.target.composing||t.$set(t.storeData,"header",e.target.value)}}})])]:t._e(),t._v(" "),n("div",{staticClass:"form-group"},[n("b-form-checkbox",{staticClass:"mr-3",attrs:{switch:"",disabled:!t.canManage},model:{value:t.storeData.footer_enabled,callback:function(e){t.$set(t.storeData,"footer_enabled",e)},expression:"storeData.footer_enabled"}},[t._v("\n                        Use Custom Footer\n                      ")])],1),t._v(" "),t.storeData.footer_enabled?[n("label",{attrs:{for:"custom-footer"}},[t._v("Custom Footer")]),t._v(" "),n("div",{staticClass:"form-group"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.storeData.footer,expression:"storeData.footer"}],staticClass:"form-control",attrs:{id:"custom-footer",placeholder:"Paste your html code here",rows:"5",disabled:!t.canManage},domProps:{value:t.storeData.footer},on:{input:function(e){e.target.composing||t.$set(t.storeData,"footer",e.target.value)}}})])]:t._e(),t._v(" "),t.storeData.header_enabled||t.storeData.footer_enabled?[n("label",{attrs:{for:"custom-styles"}},[t._v("Custom Styles")]),t._v(" "),n("div",{staticClass:"form-group"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.storeData.styles,expression:"storeData.styles"}],staticClass:"form-control",attrs:{id:"custom-styles",placeholder:"Paste your css code here",rows:"5",disabled:!t.canManage},domProps:{value:t.storeData.styles},on:{input:function(e){e.target.composing||t.$set(t.storeData,"styles",e.target.value)}}})])]:t._e()],2),t._v(" "),n("div",{staticClass:"col-12"},[n("hr",{staticClass:"my-4"}),t._v(" "),n("h4",[t._v("Background")]),t._v(" "),n("background-settings",{attrs:{"can-manage":t.canManage},model:{value:t.storeData,callback:function(e){t.storeData=e},expression:"storeData"}})],1)]),t._v(" "),n("div",{staticClass:"text-right mt-5"},[t.canManage?n("button",{staticClass:"button btn btn-danger",attrs:{type:"button"},on:{click:t.resetToDefaults}},[t._v("Reset to Defaults\n                  ")]):t._e(),t._v(" "),t.canManage?n("button",{staticClass:"button btn btn-primary",attrs:{type:"button"},on:{click:t.update}},[t._v("Save\n                  ")]):t._e()])])])])])],1)],1)]),t._v(" "),n("b-modal",{attrs:{id:"customer-modal","hide-header-close":""},scopedSlots:t._u([{key:"modal-title",fn:function(){return[n("div",{staticClass:"text-center",class:t.categoryFont},[n("h4",[t._v(t._s(t.storeData.hidden_price_modal_header))]),t._v(" "),n("div",[t._v(t._s(t.storeData.hidden_price_modal_subheader))])])]},proxy:!0},{key:"modal-footer",fn:function(){return[n("button",{staticClass:"store-button w-100",style:t.cssVars,attrs:{disabled:!0}},[t._v("Submit")])]},proxy:!0}])},[t._v(" "),n("div",{staticClass:"row"},[t.isRequired("name")?n("div",{staticClass:"col-12"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"modal-name"}},[t._v("Name*")]),t._v(" "),n("input",{staticClass:"form-control",attrs:{type:"text",id:"modal-name"}})])]):t._e(),t._v(" "),n("div",{staticClass:"col-12"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"modal-email"}},[t._v("Email*")]),t._v(" "),n("input",{staticClass:"form-control",attrs:{type:"email",id:"modal-email"}})])]),t._v(" "),t.isRequired("phone")?n("div",{staticClass:"col-12"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"modal-phone"}},[t._v("Phone*")]),t._v(" "),n("input",{staticClass:"form-control",attrs:{type:"text",id:"modal-phone"}})])]):t._e()])])],1)}),[],!1,null,"35e1ad5e",null).exports},2655:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var i=n(4307),r=n(8858),o=n(9509),a=n(3029);const s={name:"category-item",components:{GetPriceInfo:i.A},props:["item","total","item_in_cart","item_style","price","swiper_pre","category","outlineButton","background","btn_color_without_border","plusminus_border","package_toggle_limit","can_decrease_quantity","cart","store","max_title_length","disabled"],mixins:[r.A],data:function(){return{show:!1,show_desc:!1}},computed:{storeModel:function(){return a.A.query().first()}},methods:{updateQty:function(t){var e=this,n=Math.abs(t.target.value);this.value=e.item.item.max_quantity&&n>e.item.item.max_quantity?e.item.item.max_quantity:n},updateCategory:function(t){"string"!=typeof t&&(t.target.value=this.value),o.z.$emit("update-category",{category:this.category,item:this.item.item,event:t})},updatePackage:function(t,e,n){o.z.$emit("update-package",{item:t,type:e,event:n})},setGalleryImages:function(t){o.z.$emit("set-gallery-images",t)}}};var l=n(5072),c=n.n(l),u=n(3872),d={insert:"head",singleton:!1};c()(u.A,d);u.A.locals;const h=(0,n(4486).A)(s,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"col-lg-12 mw-100 text-left px-1 px-sm-1 px-md-2 px-lg-2"},[n("div",{staticClass:"card product_box",style:t.item_in_cart&&t.item_in_cart.total>0?t.item_style:"",attrs:{id:"select"}},[n("div",{staticClass:"pd_img",style:t.background,on:{click:function(e){return t.setGalleryImages(t.item.item)}}}),t._v(" "),t.disabled?n("div",{staticClass:"item-overlay"}):t._e(),t._v(" "),n("div",{staticClass:"card-body title"},[n("p",{staticClass:"mb-0 mb-sm-2 d-flex justify-content-between",attrs:{title:t.item.item.name}},[n("span",{class:t.storeModel.settings&&t.storeModel.settings.store_fonts.item_name_css_class||""},[t.item.item.name.length>t.max_title_length&&t.show_desc?[t._v("\n              "+t._s(t.item.item.name)+"\n          ")]:[t._v(t._s(t.set_char_limit(t.item.item.name,t.max_title_length)))]],2),t._v(" "),t.item.item.description||t.item.item.name.length>t.max_title_length?n("span",{staticClass:"pull-right cus-int-btn outline",style:t.outlineButton,on:{click:function(e){t.show_desc=!t.show_desc}}},[t.show_desc?n("i",{staticClass:"fa fa-caret-up"}):n("span",[t._v("+")])]):t._e()]),t._v(" "),t.show_desc?n("p",{staticClass:"card-text d-none d-md-block"},[t._v(t._s(t.item.item.description))]):t._e()]),t._v(" "),n("div",{staticClass:"card-body des"},[n("div",{staticClass:"row align-items-center"},[n("div",{staticClass:"col-5"},[t.storeModel.is_hidden_price?t._e():n("p",{staticClass:"pb-0 mb-0",domProps:{innerHTML:t._s(t.price)}}),t._v(" "),t.storeModel.is_hidden_price?n("get-price-info",{attrs:{id:"cat-item-"+t.item.item.id}}):t._e()],1),t._v(" "),n("div",{staticClass:"col-7"},[n("div",{staticClass:"my_plusminus"},[n("input",{attrs:{type:"hidden",id:"hiv_"+t.category.id+"_"+t.item.item.id},domProps:{value:t.total}}),t._v(" "),n("input",{staticClass:"my_min",style:t.btn_color_without_border,attrs:{type:"button",value:"-",disabled:t.disabled||!t.can_decrease_quantity},on:{click:function(e){return t.updateCategory("-")}}}),t._v(" "),n("input",{style:t.plusminus_border,attrs:{type:"number",min:0,disabled:t.disabled},domProps:{value:t.total},on:{input:t.updateQty,change:function(e){return t.updateCategory(e)}}}),t._v(" "),n("input",{staticClass:"my_plus",style:t.btn_color_without_border,attrs:{type:"button",value:"+",disabled:t.disabled||t.item.item.max_quantity>0&&t.item.item.quantity>=t.item.item.max_quantity},on:{click:function(e){return t.updateCategory("+")}}})])])]),t._v(" "),t.item_in_cart&&t.item_in_cart.data.length?n("div",[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[t.item_in_cart.data.length>1?n("span",{staticClass:"font-italic"},[t._v("Included in packages")]):n("span",{staticClass:"font-italic"},[t._v("Included in package")])])]),t._v(" "),t._l(t.item_in_cart.data.slice(0,t.package_toggle_limit),(function(e,i){return n("div",{key:"item_pack_"+e.p_id,staticClass:"row mt-1"},[n("div",{staticClass:"col-7 text-right pr-0"},[n("strong",{attrs:{title:e.p_name}},[t._v(t._s(t.set_char_limit(e.p_name,15)))])]),t._v(" "),n("div",{staticClass:"col-5"},[n("div",{staticClass:"my_plusminus"},[n("input",{staticClass:"my_min",style:t.btn_color_without_border,attrs:{disabled:t.disabled||!e.removeable,type:"button",value:"-"},on:{click:function(n){return t.updatePackage(e,"-",n)}}}),t._v(" "),n("input",{style:t.plusminus_border,attrs:{type:"number",disabled:t.disabled||!e.removeable,oninput:"this.value = Math.abs(this.value)",min:0,id:"changedInput"},domProps:{value:e.quantity},on:{change:function(n){return t.updatePackage(e,!1,n)}}}),t._v(" "),n("input",{staticClass:"my_plus",style:t.btn_color_without_border,attrs:{disabled:t.disabled||!e.removeable,type:"button",value:"+"},on:{click:function(n){return t.updatePackage(e,"+",n)}}})])])])})),t._v(" "),n("div",{staticClass:"row"},[t.item_in_cart.data.length>t.package_toggle_limit?n("div",{staticClass:"col-7 text-right"},[n("strong",[t._v("and "+t._s(t.item_in_cart.data.length-t.package_toggle_limit)+" other")])]):t._e()])],2):t._e()])])])}),[],!1,null,"1957692c",null).exports},5811:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const o={name:"payment-details",mixins:[n(8858).A],props:["user","links","stripe"],data:function(){return{processing:!1,changing:!1,cardElement:{},cardHolderName:{},userData:{}}},methods:{toggleChange:function(){this.changing=!this.changing},save:function(){var t=this;stripe.createToken(this.cardElement).then((function(e){e.token?t.saveToken(e.token.id):t.alertErrors(e.error.message)}))},saveToken:function(t){var e=this;axios.post(this.links.update_payment_details,{token:t}).then((function(t){e.successNotice("Card changed."),e.userData=t.data.data,e.toggleChange()})).catch((function(t){e.alertErrors(t.response.data)})).finally((function(){e.fetching=!1}))}},mounted:function(){var t=this;if(this.userData=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this.user),this.stripe){var e=stripe.elements();this.cardElement=e.create("card",{hidePostalCode:!0}),setTimeout((function(){t.cardElement.mount("#payment-card"),t.cardHolderName=document.getElementById("card-holder-name")}),0)}}};const a=(0,n(4486).A)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.changing,expression:"!changing"}]},[t.userData.card_last_four?n("div",{staticClass:"form-group card-details"},[n("h3",[t._v("Current payment method")]),t._v(" "),n("p",{staticClass:"form-control-static"},[t._v("\n          Card \n          "),n("span",{staticClass:"vendor"},[t._v(t._s(t.userData.card_brand))]),t._v(" \n          "),n("span",{staticClass:"number"},[t._v("... "+t._s(t.userData.card_last_four))]),t._v(" \n          "),n("button",{staticClass:"button btn btn-primary",attrs:{type:"button"},on:{click:t.toggleChange}},[t._v("Change")])])]):n("div",{staticClass:"form-group card-details"},[n("h3",[t._v("Payment method")]),t._v(" "),n("p",{staticClass:"form-control-static"},[n("button",{staticClass:"button btn btn-primary",attrs:{type:"button"},on:{click:t.toggleChange}},[t._v("Add")])])])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.changing,expression:"changing"}]},[t._m(0),t._v(" "),t._m(1),t._v(" "),n("div",{staticClass:"form-group text-right"},[n("button",{staticClass:"button btn btn-secondary",style:{opacity:t.processing?.3:1},attrs:{type:"button",disabled:t.processing},on:{click:t.toggleChange}},[t._v("\n          Cancel\n        ")]),t._v(" "),n("button",{staticClass:"button btn btn-primary",style:{opacity:t.processing?.3:1},attrs:{type:"button",disabled:t.processing},on:{click:t.save}},[t._v("\n          Save\n        ")])])])])])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group"},[n("label",{staticClass:"form_label",attrs:{for:"name"}},[t._v("Card Holder Name:")]),t._v(" "),n("input",{staticClass:"form-control",attrs:{type:"text",id:"card-holder-name",placeholder:"Card Holder Name"}})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-group mt-2"},[n("label",{staticClass:"form_label",attrs:{for:"name"}},[t._v("Card Information:")]),t._v(" "),n("div",{attrs:{id:"payment-card"}})])}],!1,null,null,null).exports},9722:(t,e,n)=>{"use strict";n.d(e,{A:()=>T});var i=n(204),r=n(8858),o=n(2385),a=n(1809),s=n(4879),l=n(7965);const c={name:"QueriesTabs",components:{Drop:s.Drop,TabForm:l.A,BIconPencilSquare:a.ix_},props:["canManage","isOwner"],data:function(){return{params:{id:null,sent:!1},tabForEdit:{},tabModel:0,isTabFormOpen:!1,tabs:[],dragTab:null,width:95}},methods:{handleClick:function(t){this.params.id=t,this.$emit("change",this.params)},change:function(){this.$emit("change",this.params)},fetchTabs:function(){var t=this;this.$get("/enquire-tabs").then((function(e){t.tabs=e.data.data}))},editTab:function(t){this.tabForEdit=t,this.isTabFormOpen=!0},formHide:function(){this.isTabFormOpen=!1,this.tabForEdit={}},updateTabs:function(t){if(t.isUpdated){var e=this.tabs.findIndex((function(e){return e.id===t.tab.id}));this.tabs[e].title=t.tab.title}else if(t.deleted){var n=this.tabs.findIndex((function(e){return e.id===t.tab.id}));this.tabs.splice(n,1),this.tabModel=0,this.params.id=null,this.change()}else this.tabs.push(t.tab)},drop:function(t,e){var n=e.target.getAttribute("tab-id");this.dragTab=null,this.$emit("drop",{queryId:t.queryId,tabId:n})}},created:function(){this.fetchTabs()}};var u=n(5072),d=n.n(u),h=n(8650),p={insert:"head",singleton:!1};d()(h.A,p);h.A.locals;var f=n(4486);const m=(0,f.A)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"t-tabs"},[n("div",{staticClass:"t-tab user-select-none cursor_pointer",class:{active:!t.params.id||"folder"===t.params.id},attrs:{id:"tab"},on:{click:function(e){return t.handleClick("folder")}}},[n("drop",{staticClass:"drop",class:{over:"folder"===t.dragTab},on:{dragover:function(e){t.dragTab="folder"},dragleave:function(e){t.dragTab=null},drop:t.drop}},[t._v("\n        Folder\n      ")])],1),t._v(" "),t._l(t.tabs,(function(e,i){return n("div",{key:i,staticClass:"t-tab user-select-none cursor_pointer custom-tab",class:{active:t.params.id===e.id},on:{click:function(n){return t.handleClick(e.id)}}},[t.canManage?n("div",{staticClass:"custom-tab-icon",on:{mousedown:function(n){return t.editTab(e)}}},[n("b-icon-pencil-square",{attrs:{title:"Edit"}})],1):t._e(),t._v(" "),n("drop",{staticClass:"drop",class:{over:t.dragTab===e.id},attrs:{"tab-id":e.id},on:{dragover:function(n){t.dragTab=e.id},dragleave:function(e){t.dragTab=null},drop:t.drop}},[t._v("\n        "+t._s(e.title)+"\n      ")])],1)})),t._v(" "),n("div",{staticClass:"t-tab user-select-none cursor_pointer",class:{active:"trash"===t.params.id},on:{click:function(e){return t.handleClick("trash")}}},[n("drop",{staticClass:"drop",class:{over:"trash"===t.dragTab},attrs:{"tab-id":"trash"},on:{dragover:function(e){t.dragTab="trash"},dragleave:function(e){t.dragTab=null},drop:t.drop}},[t._v("\n        Trash\n      ")])],1),t._v(" "),t.canManage?n("div",{staticClass:"t-tab user-select-none cursor_pointer mt-md-3",on:{click:function(e){t.isTabFormOpen=!0}}},[t._v("\n      Add New Tab\n    ")]):t._e(),t._v(" "),t.isOwner?n("div",{staticClass:"c_chechbox mt-3"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.params.sent,expression:"params.sent"}],attrs:{type:"checkbox",id:"sent"},domProps:{checked:Array.isArray(t.params.sent)?t._i(t.params.sent,null)>-1:t.params.sent},on:{change:[function(e){var n=t.params.sent,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&t.$set(t.params,"sent",n.concat([null])):o>-1&&t.$set(t.params,"sent",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.params,"sent",r)},t.change]}}),t._v(" "),n("label",{attrs:{for:"sent"}},[t._v("Sent")])]):t._e()],2),t._v(" "),n("tab-form",{attrs:{tab:t.tabForEdit,visible:t.isTabFormOpen},on:{hide:t.formHide,tabsChanged:t.updateTabs}})],1)}),[],!1,null,null,null).exports;var v=n(2949),g=n(4953),b=n(1684),y=n(3969);function _(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_(Object(n),!0).forEach((function(e){x(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function x(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const C={name:"queries",components:{QueryExporter:v.A,Tabs:m,Drag:s.Drag,scroll:i.A},mixins:[r.A,o.A],props:["store","links","canManage","isOwner","features","identifiers","showAssignedTo"],data:function(){return{tabsWidthWithMargin:95,deletingQueryId:null,params:{search:null,id:"folder",sent:!1,per_page:30,page:1},last_page:1,total:0}},computed:{userSettings:function(){return y.A.query().first()},columnCount:function(){var t=4;return this.showAssignedTo&&(t+=2),this.isOwner&&(t+=1),t},isTrashTab:function(){return"trash"===this.params.id},queryItems:function(){return b.A.query().with("store").with("users").with("users.store").orderBy("id","desc").all()}},watch:{"params.search":(0,g.debounce)((function(t){this.fetchQueries()}),300)},methods:{loadMore:function(){this.fetching||this.params.page===this.last_page||(this.params.page++,this.fetchQueries(null,!0))},fetchUserSettings:function(){axios.get("/user-settings").then((function(t){y.A.create({data:t.data.user_setting})}))},setTableWidth:function(t){this.tabsWidthWithMargin=t},fetchQueries:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t&&(this.params=w(w({},this.params),t),this.params.page=1,this.last_page=1,this.total=0),this.fetching=!0,this.$get("/enquiry-manager/filter",this.params).then((function(t){e.last_page=t.data.meta.last_page,e.total=t.data.meta.total,n?b.A.insert({data:t.data.data}):b.A.create({data:t.data.data})})).finally((function(){e.fetching=!1}))},deleteQuery:function(t){var e=this;this.confirm((function(){e.fetching=!0;var n=e.isTrashTab?"/enquiry-manager/".concat(t,"/force"):"/enquiry-manager/".concat(t);axios.delete(n).then((function(){e.removeQueryItem(t),e.successAlert("Deleted!","Your data has been deleted")})).catch((function(){e.alertErrors()})).finally((function(){e.fetching=!1}))}),null,{text:this.isTrashTab?"Will be deleted permanently. Can't be undone!":"Will be moved to Trash"})},moveQueryToTab:function(t){"trash"===t.tabId?this.deleteQuery(t.queryId):(this.submitQueryTab(t.queryId,t.tabId),this.successAlert("Moved!","Your data has been moved"))},submitQueryTab:function(t,e){var n=this;axios.post("/enquiry-manager/".concat(t,"/set-enquire-tab-id"),{enquire_tab_id:e}).then((function(e){n.removeQueryItem(t)}))},removeQueryItem:function(t){b.A.delete(t)}},created:function(){this.fetchQueries(),this.fetchUserSettings()}};var S=n(953),E={insert:"head",singleton:!1};d()(S.A,E);S.A.locals;const T=(0,f.A)(C,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"component_container"},[t.fetching?n("loader",{attrs:{preloader:t.store?t.store.preloaderPath:null}}):t._e(),t._v(" "),n("tabs",{ref:"tabs",attrs:{id:"query-tabs","can-manage":t.canManage,"is-owner":t.isOwner},on:{drop:t.moveQueryToTab,change:t.fetchQueries}}),t._v(" "),n("div",{attrs:{id:"query-tab-content"}},[n("div",{staticClass:"list_container"},[n("div",{staticClass:"table-responsive"},[n("table",{staticClass:"table"},[n("thead",{staticClass:"table_head_snap"},[n("tr",[n("th",{staticClass:"query-date"},[t._v("Date")]),t._v(" "),n("th",{staticClass:"query-customer"},[t._v("Customer")]),t._v(" "),n("th",{staticClass:"query-identifier"},[t._v("Identifier")]),t._v(" "),t.showAssignedTo?n("th",{staticClass:"query-store"},[t._v("Client")]):t._e(),t._v(" "),t.showAssignedTo?n("th",{staticClass:"query-agent"},[t._v("Assigned to")]):t._e(),t._v(" "),t.isOwner?n("th",{staticClass:"query-sent text-center"},[t._v("Sent")]):t._e(),t._v(" "),n("th",{staticClass:"query-action"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.params.search,expression:"params.search"}],staticClass:"form-control",staticStyle:{width:"200px",float:"right"},attrs:{type:"search",name:"search",placeholder:"Search"},domProps:{value:t.params.search},on:{input:function(e){e.target.composing||t.$set(t.params,"search",e.target.value)}}})])])])]),t._v(" "),n("scroll",{staticStyle:{height:"calc(100vh - 250px)"},on:{"load-more":t.loadMore}},[n("table",{staticClass:"table shadow-none"},[n("tbody",[t._l(t.queryItems,(function(e){return n("tr",[n("td",{staticClass:"query-date"},[n("drag",{staticClass:"drag_area",staticStyle:{"margin-left":"10px"},attrs:{"transfer-data":{queryId:e.id},draggable:t.canManage}},[n("span",{staticClass:"d-none"},[t._v(t._s(e.created_at))]),t._v("\n                  "+t._s(e.local_created_at)+"\n                ")])],1),t._v(" "),n("td",{staticClass:"query-customer"},[t._v("\n                "+t._s(e.name)+"\n                "),e.email?n("div",{staticClass:"text-muted"},[t._v(t._s(e.email))]):t._e(),t._v(" "),e.phone?n("div",{staticClass:"text-muted"},[t._v(t._s(e.phone))]):t._e()]),t._v(" "),n("td",{staticClass:"query-identifier"},[e.query&&e.query.values?n("div",[n("ul",{staticClass:"list-inline"},t._l(e.query.values,(function(e){return t.identifiers.includes(e.step_id)?n("li",{staticClass:"value-item list-inline-item text-capitalize"},[t._v(t._s(e.name)+"\n                    ")]):t._e()})),0)]):t._e()]),t._v(" "),t.showAssignedTo?n("td",{staticClass:"query-store"},[t.store&&e.store.id===t.store.id?n("span",{staticClass:"badge badge-primary"},[t._v("\n                  "+t._s(e.store.client_name||e.store.email)+"\n                ")]):n("span",{staticClass:"badge badge-secondary"},[t._v(t._s(e.store.client_name))])]):t._e(),t._v(" "),t.showAssignedTo?n("td",{staticClass:"query-agent"},t._l(e.users,(function(i){return e.users?n("div",{staticClass:"text-capitalize"},[t._v("\n                  "+t._s(i.name)+"\n                ")]):t._e()})),0):t._e(),t._v(" "),t.isOwner?n("td",{staticClass:"query-sent text-center"},[e.sent?n("i",{staticClass:"fa fa-check text-success"}):n("i",{staticClass:"fa fa-times text-danger"})]):t._e(),t._v(" "),n("td",{staticClass:"query-action"},[n("div",{staticClass:"d-flex justify-content-end"},[e.sent&&t.canExport?n("div",{staticClass:"mr-1"},[n("query-exporter",{attrs:{query:e,"export-xero":t.canExportXero,"export-monday":t.canExportMonday}})],1):t._e(),t._v(" "),n("div",{staticClass:"mr-1"},[t.isTrashTab?t._e():n("a",{staticClass:"button btn btn-primary",attrs:{href:t.links.get_invoice_pdf.replace("query_id",e.id),download:"",title:"Download"}},[n("i",{staticClass:"fa fa-download"})])]),t._v(" "),t.canManage?n("div",{staticClass:"mr-1"},[n("a",{staticClass:"button btn btn-danger text-white",on:{click:function(n){return n.preventDefault(),t.deleteQuery(e.id)}}},[n("i",{staticClass:"fa fa-trash"})])]):t._e(),t._v(" "),t.canManage?n("div",[e.view_selections_link?n("a",{staticClass:"button btn btn-primary",attrs:{target:"_blank",href:e.view_selections_link,title:"View Selections"}},[n("i",{staticClass:"fa fa-eye"})]):t._e(),t._v(" "),t.isTrashTab?t._e():n("a",{staticClass:"button btn btn-secondary",attrs:{title:"Manage",href:t.links.get_query.replace("query_id",e.id)}},[n("i",{staticClass:"fa fa-edit"})])]):t._e()])])])})),t._v(" "),t.queryItems.length?t._e():n("tr",[n("td",{staticClass:"text-center",attrs:{colspan:t.columnCount}},[t._v("No data found")])])],2)])])],1)]),t._v(" "),n("div",{staticClass:"text-right text-muted"},[t._v("\n      page "+t._s(t.params.page)+" / "+t._s(t.last_page)+" of "+t._s(t.total)+" enquiries\n    ")])])],1)}),[],!1,null,"e9ab7d3a",null).exports},5490:(t,e,n)=>{"use strict";n.d(e,{A:()=>y});var i=n(204),r=n(4879),o=n.n(r),a=n(8858),s=n(2385),l=n(2949),c=n(3969),u=n(1684);function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Vue.use(o());const f={name:"query",components:{QueryExporter:l.A,scroll:i.A},mixins:[a.A,s.A],props:["links","query","stocks","store","packages","userSettings","features"],data:function(){return{draggedItem:null,itemType:null,dragging:!1,productsShown:!0,packagesShown:!1,deleting:!1,pdf_downloading:!1,dragged_stock_index:-1,dragged_package_index:-1,when_dragging_package:!1,query_data:this.query,stock_data:this.stocks,store_data:this.store,packages_data:this.packages,cart:{}}},computed:{queryData:function(){return u.A.query().first()},userSetting:function(){return c.A.query().first()},packagePrice:function(){return function(t){var e=0;return t.package_items.forEach((function(t){e+=t.quantity*t.item.price})),e}},totalPackagePrice:function(){return function(t){var e=0;return t.package_items.forEach((function(n){e+=n.quantity*n.item.price*t.quantity})),e}},cartTotal:function(){return parseFloat(parseFloat(this.cart.total)+parseFloat(this.cart.transport)+parseFloat(this.cart.labour)+parseFloat(this.cart.additional)).toFixed(2)},inCart:function(){var t=this;return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"stock",i=0;if(t.cart)if("stock"===n){if(t.cart.categories&&t.cart.categories.forEach((function(t){var n=t.items.find((function(t){return t.id===e.id}));n&&(i+=parseInt(n.quantity))})),t.cart.packages&&t.cart.packages.forEach((function(t){var n=t.package_items.find((function(t){return t.id===e.id}));n&&(i+=parseInt(t.quantity)*parseInt(n.quantity))})),t.cart.general_category_items){var r=t.cart.general_category_items.find((function(t){return t.id===e.id}));r&&(i+=parseInt(r.quantity))}}else if(t.cart.packages){var o=t.cart.packages.find((function(t){return t.id===e.id}));o&&(i=o.quantity)}return i}}},methods:{dragItem:function(t,e){this.draggedItem=t,this.itemType=e},handleDrop:function(){"package"===this.itemType?this.addPackage(this.draggedItem):this.addProduct(this.draggedItem)},deletePackage:function(t){var e=this.cart.packages.findIndex((function(e){return e.id===t.id}));this.cart.packages.splice(e,1),this.calculate_total()},getMaxQuantity:function(t){var e=this.stock_data.find((function(e){return e.id===t.id}));return e?e.max_quantity:t.max_quantity},deleteQuery:function(){var t=this;this.confirm((function(){axios.delete("/enquiry-manager/".concat(t.query.id)).then((function(t){window.location.href="/enquiry-manager"})).catch((function(e){t.alertErrors(e.response.data)}))}),null,{text:"You want do delete it! Will be moved to Trash"})},toggleProductsShown:function(){this.productsShown=!this.productsShown},togglePackagesShown:function(){this.packagesShown=!this.packagesShown},addPackage:function(t){var e=this.cart.packages.findIndex((function(e){return e.id===t.id}));e>-1?this.cart.packages[e].quantity++:((t=h({},t)).quantity=1,t.package_items=t.package_items.map((function(t){return h({},t)})),this.cart.packages.push(t)),this.calculate_total()},addProduct:function(t){var e=this.cart.general_category_items.find((function(e){return e.id===t.id}));e?(e.quantity+=1,t.discount>0?e.total=(e.quantity*(t.price-this.get_percentage(t.discount,t.price))).toFixed(2):e.total=(e.quantity*t.price).toFixed(2)):(t.quantity=1,t.discount>0?t.total=(t.price-this.get_percentage(t.discount,t.price)).toFixed(2):t.total=parseFloat(t.price).toFixed(2),this.cart.general_category_items.push(t)),parseFloat(t.delivery_price)>0&&(this.address_required=!0),this.update_transport_prices(),this.calculate_total()},get_package_total:function(t,e){try{var n=0;if(t.package_items.length>0)for(var i=0;i<t.package_items.length;i++)if(t.package_items[i].quantity>0){var r=parseFloat(t.discount),o=parseFloat(t.package_items[i].item.discount),a=parseFloat(t.package_items[i].item.price),s=(t.package_items[i].quantity,parseInt(t.package_items[i].quantity*e));parseFloat(t.delivery_price)>0&&(this.address_required=!0),r<o&&(r=o);var l=0;if(r>0)l=s*(a-this.get_percentage(r,a));else l=s*a;t.package_items[i].item.total=parseFloat(l).toFixed(2),n+=l}return parseFloat(n).toFixed(2)}catch(t){return 0}},sum:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return parseFloat(parseFloat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+parseFloat(t)+parseFloat(e)+parseFloat(n)+parseFloat(i)).toFixed(2)},get_percentage:function(t,e){return t/100*e},delete_cart_item:function(t,e,n,i){var r=this;r.cart.total=parseFloat(parseFloat(r.cart.total)-parseFloat(r.cart.categories[t].items[e].total)).toFixed(2),r.cart.categories[t].items[e].quantity=0,r.cart.total<0&&(r.cart.total=0),r.update_transport_prices()},deleteGeneralItem:function(t){t.quantity=0,this.cart.total=(parseFloat(this.cart.total)-parseFloat(t.total)).toFixed(2),this.update_transport_prices()},deletePackageItem:function(t,e){var n=this.cart.packages.findIndex((function(e){return e.id===t.id})),i=this.cart.packages[n].package_items.findIndex((function(t){return t.id===e.id}));this.cart.packages[n].package_items.splice(i,1),0===this.totalPackagePrice(t)&&(console.log("DELETE ME"),this.cart.packages.splice(n,1)),this.calculate_total(),this.update_transport_prices()},update_category_item_quantity:function(t){var e=this.getMaxQuantity(t);e&&t.quantity>e&&(t.quantity=e),t.total=parseFloat(t.quantity*t.price).toFixed(2),this.calculate_total()},calculate_total:function(){var t=this;t.cart.pack_total=0,t.cart.labour=0,t.cart.additional=0;for(var e=0;e<t.cart.packages.length;e++)t.cart.packages[e].quantity>0&&(t.cart.packages[e].total=t.get_package_total(t.cart.packages[e],t.cart.packages[e].quantity),t.cart.pack_total=t.sum(t.cart.pack_total,t.cart.packages[e].total),t.cart.labour=parseFloat(parseFloat(t.cart.labour)+parseFloat(t.cart.packages[e].labour_cost*t.cart.packages[e].quantity)).toFixed(2),t.cart.additional=parseFloat(parseFloat(t.cart.additional)+parseFloat(t.cart.packages[e].additional_cost*t.cart.packages[e].quantity)).toFixed(2));t.cart.pack_total<0&&(t.cart.pack_total=0),t.cart.total=0;for(e=0;e<t.cart.categories.length;e++)for(var n=0;n<t.cart.categories[e].items.length;n++)t.cart.categories[e].items[n].quantity>0&&(t.cart.total=t.sum(t.cart.total,t.cart.categories[e].items[n].total));for(e=0;e<t.cart.general_category_items.length;e++)t.cart.general_category_items[e].quantity>0&&(t.cart.total=t.sum(t.cart.total,t.cart.general_category_items[e].total));t.cart.total=parseFloat(parseFloat(t.cart.total)+parseFloat(t.cart.pack_total)).toFixed(2),t.cart.total<0&&(t.cart.total=0)},update_transport_prices:function(){var t=this,e=0;if(t.cart.transport=0,t.cart.packages.length>0)for(var n=0;n<t.cart.packages.length;n++)if(t.cart.packages[n].quantity>0){e=t.get_delivery_price(t.cart.packages[n].delivery_price);t.cart.packages[n].total_delivery_price=parseFloat(e).toFixed(2),t.cart.transport=parseFloat(parseFloat(t.cart.transport)+e-t.get_old_delivery_price(t.cart.packages[n].delivery_price)).toFixed(2)}if(t.cart.categories.length>0)for(n=0;n<t.cart.categories.length;n++)if(t.cart.categories[n].items.length>0)for(var i=0;i<t.cart.categories[n].items.length;i++)if(t.cart.categories[n].items[i].quantity>0){e=t.get_delivery_price(t.cart.categories[n].items[i].delivery_price);t.cart.categories[n].items[i].total_delivery_price=parseFloat(e).toFixed(2),t.cart.transport=parseFloat(parseFloat(t.cart.transport)+e-t.get_old_delivery_price(t.cart.categories[n].items[i].delivery_price)).toFixed(2)}},get_delivery_price:function(t){return parseFloat(parseFloat(t).toFixed(2)*parseFloat(this.cart.customer.store_distance).toFixed(2))},get_old_delivery_price:function(t){return parseFloat(parseFloat(t).toFixed(2)*parseFloat(this.cart.customer.temp_dp).toFixed(2))},update:function(){var t=this;this.fetching=!0,axios.put(this.links.update_query,{query:this.cart}).then((function(e){t.successAlert("Invoice updated")})).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))},validateQuantity:function(t,e){var n=(t=t||window.event).which?t.which:t.keyCode;if(!(n>31&&(n<48||n>57)))return!0;t.preventDefault()}},created:function(){u.A.create({data:this.query}),c.A.create({data:this.userSettings})},mounted:function(){this.cart=this.query_data.query,this.cart.general_category_items=this.cart.general_category_items||[]}};var m=n(5072),v=n.n(m),g=n(3691),b={insert:"head",singleton:!1};v()(g.A,b);g.A.locals;const y=(0,n(4486).A)(f,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"component_container"},[n("div",{staticClass:"row"},[t.fetching?n("loader"):t._e(),t._v(" "),t.fetching?t._e():n("div",{staticClass:"col-xl-7 col-lg-12"},[n("div",{staticClass:"list_container"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("div",{staticClass:"form_header gray_header"},[n("a",{staticClass:"btn btn-outline-secondary theme_custom_buttons",attrs:{href:t.links.queries_list}},[t._v("Back\n              ")]),t._v(" "),n("div",{staticClass:"pull-right"},[n("button",{staticClass:"button btn btn-primary",attrs:{disabled:t.fetching},on:{click:t.update}},[t._v("Update")]),t._v(" "),n("a",{staticClass:"button btn btn-secondary",attrs:{href:t.links.get_invoice_pdf,target:"_blank"}},[t._v("Download")]),t._v(" "),n("query-exporter",{attrs:{query:t.queryData,"export-xero":t.canExportXero,"export-monday":t.canExportMonday}}),t._v(" "),n("i",{staticClass:"text-danger delete-btn",on:{click:function(e){return t.deleteQuery(t.query.id)}}})],1)])])]),t._v(" "),n("div",{staticClass:"col-12 py-3"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("div",{staticClass:"query_info_box"},[n("h4",[t._v("Bill to")]),t._v(" "),t.query_data.name?n("div",[t._v(t._s(t.query_data.name))]):t._e(),t._v(" "),t.query_data.address?n("div",[t._v(t._s(t.query_data.address))]):t._e(),t._v(" "),t.query_data.email?n("div",[t._v(t._s(t.query_data.email))]):t._e(),t._v(" "),t.query_data.phone?n("div",[t._v(t._s(t.query_data.phone))]):t._e()])]),t._v(" "),n("div",{staticClass:"col-md-6 text-right"},[t.store_data.logoPath?n("div",{staticClass:"mb-1"},[n("img",{staticStyle:{"max-width":"150px"},attrs:{src:t.store_data.logoPath}})]):t._e(),t._v(" "),t.store_data.name&&"null"!==t.store_data.name?n("div",{staticClass:"mb-1"},[t._v(t._s(t.store_data.name))]):t._e(),t._v(" "),t.store_data.address&&"null"!==t.store_data.address?n("div",{staticClass:"mb-1"},[t._v("\n                "+t._s(t.store_data.address)+"\n              ")]):t._e(),t._v(" "),t.store_data.email&&"null"!==t.store_data.email?n("div",{staticClass:"mb-1"},[t._v(t._s(t.store_data.email))]):t._e(),t._v(" "),t.store_data.phone&&"null"!==t.store_data.phone?n("div",{staticClass:"mb-1"},[t._v(t._s(t.store_data.phone))]):t._e()])])]),t._v(" "),n("div",{staticClass:"query_table"},[n("div",{staticClass:"table-responsive"},[n("table",{staticClass:"table"},[t._m(0),t._v(" "),n("tbody",[n("tr",[n("td",{directives:[{name:"show",rawName:"v-show",value:t.dragging,expression:"dragging"}],attrs:{colspan:"6"}},[n("div",{staticClass:"snap_tabs categories_tabs ",class:t.dragging?"dragging_here":""},[n("drop",{staticClass:"drop_area",class:"drag_moveable",on:{drop:t.handleDrop}},[n("div",{staticClass:"drop_container"},[n("img",{attrs:{src:"/images/drag-and-drop.svg",alt:""}}),t._v(" "),n("p",[t._v("Drag & Drop files here")])])])],1)])]),t._v(" "),n("tr",[n("td",{attrs:{colspan:"6"}},[n("table",{staticClass:"table table-sm table-borderless"},[t._m(1),t._v(" "),t._l(t.cart.general_category_items,(function(e,i){return e.quantity>0?n("tr",{staticClass:"table-active"},[n("td",[t._v(t._s(e.name))]),t._v(" "),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.quantity,expression:"item.quantity"}],staticClass:"form-control",attrs:{type:"number",min:"1",max:e.max_quantity,step:"1"},domProps:{value:e.quantity},on:{keypress:function(e){return t.validateQuantity(e)},change:function(n){return t.update_category_item_quantity(e)},input:function(n){n.target.composing||t.$set(e,"quantity",n.target.value)}}})]),t._v(" "),n("td",[t._v(t._s(t.formatPrice(e.price)))]),t._v(" "),n("td",[t._v(t._s(e.discount)+"%")]),t._v(" "),n("td",{staticClass:"text-right"},[t._v(t._s(t.formatPrice(e.total)))]),t._v(" "),n("td",{staticClass:"text-right"},[n("span",{staticClass:"delete_query",on:{click:function(n){return t.deleteGeneralItem(e)}}},[n("i",{staticClass:"fa fa-trash"})])])]):t._e()}))],2)])]),t._v(" "),t._l(t.cart.packages,(function(e,i){return n("tr",[n("td",{attrs:{colspan:"6"}},[n("table",{staticClass:"table table-sm table-borderless"},[n("tr",[n("td",[n("h4",[t._v(t._s(e.name))])]),t._v(" "),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.quantity,expression:"pack.quantity"}],staticClass:"form-control pull-right",attrs:{type:"number",min:"1",step:"1"},domProps:{value:e.quantity},on:{keypress:function(e){return t.validateQuantity(e)},change:t.calculate_total,input:function(n){n.target.composing||t.$set(e,"quantity",n.target.value)}}})]),t._v(" "),n("td",{staticClass:"pt-3"},[t._v(t._s(t.formatPrice(t.packagePrice(e))))]),t._v(" "),n("td",{staticClass:"pt-3"},[t._v(t._s(e.discount)+"%")]),t._v(" "),n("td",{staticClass:"text-right pt-3"},[t._v(t._s(t.formatPrice(t.totalPackagePrice(e))))]),t._v(" "),n("td",{staticClass:"text-right pt-3"},[n("span",{staticClass:"delete_query",on:{click:function(n){return t.deletePackage(e)}}},[n("i",{staticClass:"fa fa-trash"})])])]),t._v(" "),t._l(e.package_items,(function(i){return i.quantity>0?n("tr",{staticClass:"table-active"},[n("td",[t._v(t._s(i.item.name))]),t._v(" "),n("td",[t._v(t._s(i.quantity*e.quantity))]),t._v(" "),n("td",[t._v(t._s(t.formatPrice(i.item.price)))]),t._v(" "),n("td",[t._v(t._s(e.discount)+"%")]),t._v(" "),n("td",{staticClass:"text-right"},[t._v(t._s(t.formatPrice(i.item.total)))]),t._v(" "),n("td",{staticClass:"text-right"},[i.removeable?n("span",{staticClass:"delete_query",on:{click:function(n){return t.deletePackageItem(e,i)}}},[n("i",{staticClass:"fa fa-trash"})]):t._e()])]):t._e()}))],2)])])})),t._v(" "),t._l(t.cart.categories,(function(e,i){return e.items.length>0?n("tr",[n("td",{attrs:{colspan:"6"}},[n("table",{staticClass:"table table-sm table-borderless"},[n("tr",[n("td",{attrs:{colspan:"6"}},[n("h4",[t._v(t._s(e.name))])])]),t._v(" "),t._l(e.items,(function(r,o){return r.quantity>0?n("tr",{staticClass:"table-active"},[n("td",[t._v(t._s(r.name))]),t._v(" "),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:r.quantity,expression:"item.quantity"}],staticClass:"form-control",attrs:{type:"number",min:"1",max:t.getMaxQuantity(r),step:"1"},domProps:{value:r.quantity},on:{keypress:function(e){return t.validateQuantity(e)},change:function(e){return t.update_category_item_quantity(r)},input:function(e){e.target.composing||t.$set(r,"quantity",e.target.value)}}})]),t._v(" "),n("td",[t._v(t._s(t.formatPrice(r.price)))]),t._v(" "),n("td",[t._v(t._s(r.discount)+"%")]),t._v(" "),n("td",{staticClass:"text-right"},[t._v(t._s(t.formatPrice(r.total)))]),t._v(" "),n("td",{staticClass:"text-right"},[n("span",{staticClass:"delete_query",on:{click:function(n){return t.delete_cart_item(i,o,e,r)}}},[n("i",{staticClass:"fa fa-trash"})])])]):t._e()}))],2)])]):t._e()})),t._v(" "),t.cart.labour>0?n("tr",[n("td",{attrs:{colspan:"6"}},[n("table",{staticClass:"table table-sm table-borderless"},[t._m(2),t._v(" "),n("tr",{staticClass:"table-active"},[n("td",[t._v("Total")]),t._v(" "),n("td"),t._v(" "),n("td"),t._v(" "),n("td"),t._v(" "),n("td"),t._v(" "),n("td",{staticClass:"text-right"},[t._v(t._s(t.formatPrice(t.cart.labour)))])])])])]):t._e(),t._v(" "),t.cart.additional>0?n("tr",[n("td",{attrs:{colspan:"6"}},[n("table",{staticClass:"table table-sm table-borderless"},[t._m(3),t._v(" "),n("tr",{staticClass:"table-active"},[n("td",[t._v("Total")]),t._v(" "),n("td"),t._v(" "),n("td"),t._v(" "),n("td"),t._v(" "),n("td"),t._v(" "),n("td",{staticClass:"text-right"},[t._v(t._s(t.formatPrice(t.cart.additional)))])])])])]):t._e(),t._v(" "),n("tr",[n("td",{attrs:{colspan:"6"}},[n("table",{staticClass:"table table-sm table-borderless"},[t._m(4),t._v(" "),n("tr",{staticClass:"table-active"},[n("td",[t._v("Total")]),t._v(" "),n("td"),t._v(" "),n("td"),t._v(" "),n("td"),t._v(" "),n("td"),t._v(" "),n("td",{staticClass:"text-right"},[t._v(t._s(t.formatPrice(t.cart.transport)))])])])])]),t._v(" "),n("tr",[n("td",{attrs:{colspan:"6"}},[n("table",{staticClass:"table table-sm table-borderless"},[t._m(5),t._v(" "),n("tr",{staticClass:"table-active"},[n("td"),t._v(" "),n("td"),t._v(" "),n("td"),t._v(" "),n("td"),t._v(" "),n("td"),t._v(" "),n("td",{staticClass:"text-right"},[n("strong",[t._v(t._s(t.currency.symbol)+t._s(t.cartTotal))])])])])])])],2)])])]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12 p-5"},[t.store_data.disclaimer&&"null"!==t.store_data.disclaimer?n("span",[t._v(t._s(t.store_data.disclaimer))]):n("span",[t._v("< Place for disclaimer >")])])])])]),t._v(" "),t.fetching?t._e():n("div",{staticClass:"col-xl-5 col-lg-12  mt-lg"},[n("div",{staticClass:"form_container mb-3"},[n("div",{staticClass:"form_header gray_header"},[n("h6",{staticClass:"title_header"},[t._v("Products")]),t._v(" "),n("button",{staticClass:"button btn btn-primary pull-right",attrs:{type:"button"},on:{click:t.toggleProductsShown}},[t._v("\n            "+t._s(t.productsShown?"Collapse":"Expand")+"\n          ")])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.productsShown,expression:"productsShown"}],staticClass:"pd_form p-0"},[n("scroll",{staticStyle:{height:"calc(100vh - 200px)"}},[n("table",{staticClass:"table product-table"},[n("tbody",[t._l(t.stock_data,(function(e,i){return n("tr",{class:[t.inCart(e)?"table-active":"drag_area"],attrs:{draggable:!t.inCart(e)},on:{drag:function(n){return t.dragItem(e,"product")},dragstart:function(e){t.dragging=!0},dragend:function(e){t.dragging=!1}}},[n("td",[n("img",{staticClass:"img-fluid",attrs:{src:t.getImage(e),alt:""}})]),t._v(" "),n("td",{staticClass:"d-flex justify-content-between"},[n("span",{staticClass:"table_pro_name"},[t._v(t._s(e.name))]),t._v(" "),n("span",{staticClass:"table_pro_name"},[t.inCart(e)?n("span",{staticClass:"text-primary mr-2"},[t._v(t._s(t.inCart(e))+"\n                      "),n("i",{staticClass:"fa fa-shopping-cart"})]):t._e(),t._v(" "),e.max_quantity?n("span",[t._v("max: "+t._s(e.max_quantity))]):t._e()])])])})),t._v(" "),t.stock_data.length?t._e():n("tr",[n("td",{attrs:{colspan:"3"}},[t._v("No data found")])])],2)])])],1)]),t._v(" "),n("div",{staticClass:"form_container"},[n("div",{staticClass:"form_header gray_header"},[n("h6",{staticClass:"title_header"},[t._v("Packages")]),t._v(" "),n("button",{staticClass:"button btn btn-primary pull-right",attrs:{type:"button"},on:{click:t.togglePackagesShown}},[t._v("\n            "+t._s(t.packagesShown?"Collapse":"Expand")+"\n          ")])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.packagesShown,expression:"packagesShown"}],staticClass:"pd_form p-0"},[n("table",{staticClass:"table product-table"},[n("tbody",[t._l(t.packages_data,(function(e){return n("tr",{class:"drag_area",attrs:{draggable:!0},on:{drag:function(n){return t.dragItem(e,"package")},dragstart:function(e){t.dragging=!0},dragend:function(e){t.dragging=!1}}},[n("td",[n("img",{staticClass:"img-fluid",attrs:{src:t.getImage(e),alt:""}})]),t._v(" "),n("td",{staticClass:"d-flex justify-content-between"},[n("span",{staticClass:"table_pro_name"},[t._v(t._s(e.name))]),t._v(" "),t.inCart(e,"package")?n("span",{staticClass:"table_pro_name"},[n("span",{staticClass:"text-primary mr-2"},[t._v(t._s(t.inCart(e,"package"))+"\n                    "),n("i",{staticClass:"fa fa-shopping-cart"})])]):t._e()])])})),t._v(" "),t.packages_data.length?t._e():n("tr",[n("td",{attrs:{colspan:"2"}},[t._v("No packages found")])])],2)])])])])],1)])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("thead",[n("tr",[n("th",{attrs:{scope:"col"}},[t._v("Product")]),t._v(" "),n("th",{attrs:{scope:"col"}},[t._v("Quantity")]),t._v(" "),n("th",{attrs:{scope:"col"}},[t._v("Price")]),t._v(" "),n("th",{attrs:{scope:"col"}},[t._v("Discount")]),t._v(" "),n("th",{staticClass:"text-right",attrs:{scope:"col"}},[t._v("Total")]),t._v(" "),n("th",{attrs:{scope:"col"}})])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("tr",[n("td",{attrs:{colspan:"6"}},[n("h4",[t._v("General")])])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("tr",[n("td",{attrs:{colspan:"6"}},[n("h4",[t._v("Labour")])])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("tr",[n("td",{attrs:{colspan:"6"}},[n("h4",[t._v("Additional")])])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("tr",[n("td",{attrs:{colspan:"6"}},[n("h4",[t._v("Transport")])])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("tr",[n("td",{attrs:{colspan:"6"}},[n("h4",[t._v("Total")])])])}],!1,null,"93407478",null).exports},3314:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var i=n(7059),r=n.n(i),o=n(8858),a=n(5160),s=n.n(a);Vue.use(s(),{duration:2e3});const l={name:"un-publish-items",components:{vueCustomScrollbar:r()},mixins:[o.A],props:["links","store"],mounted:function(){this.get_drafts()},data:function(){return{settings:{maxScrollbarLength:60},fetching:!1,notice:{type:"danger",msg:""},data:[],store_data:this.store,need_subscription:this.store.need_subscription}},methods:{get_href_link:function(t){var e="filters";return"category"==t.type?e="categories":"package"==t.type&&(e="packages"),"/".concat(e,"?q=").concat(t.id)},reset:function(){},cancel:function(){this.resetStock()},get_drafts:function(){var t=this;this.fetching=!0,axios.get(this.links.get_drafts).then((function(e){t.data=e.data.data})).catch((function(e){t.alertErrors()})).finally((function(){t.fetching=!1}))},publish_all_click:function(){var t=this;this.checkSubscription()&&this.confirm((function(){t.fetching=!0,axios.post(t.links.publish_all,{}).then((function(e){t.data=[],t.successNotice("All items are published")})).catch((function(e){t.alertErrors()})).finally((function(){t.fetching=!1}))}),null,{text:"You want to publish all categories, packages and filters?",yes:"Yes, publish them!"})},publish_click:function(t,e){var n=this;this.checkSubscription()&&this.$swal({title:"Are you sure?",text:"You want to publish this",width:"360px",confirmButtonColor:"#1282a2",cancelButtonColor:"#dd1755",showCancelButton:!0,confirmButtonText:"Yes, publish it!"}).then((function(i){if(i.value){n.fetching=!0;var r=n.links.filter_edit.replace("filter_id",t.id);"category"==t.type?r=n.links.category_edit.replace("category_id",t.id):"package"==t.type&&(r=n.links.package_edit.replace("package_id",t.id)),t.status=1,axios.post(r,t).then((function(t){n.data.splice(e,1),n.successNotice("Item published")})).catch((function(t){n.alertErrors()})).finally((function(){n.fetching=!1}))}}))}}};const c=(0,n(4486).A)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"unpi_container"},[t.fetching?n("loader"):t._e(),t._v(" "),t.fetching?t._e():n("div",[n("div",{staticClass:"list_container"},[n("vue-custom-scrollbar",{staticClass:"scroll-area",style:{maxHeight:"600px"},attrs:{settings:t.settings}},[n("table",{staticClass:"table shadow-none product-table"},[n("thead",{staticClass:"table_head_snap"},[n("tr",[n("th",{staticClass:"title_header product_title_th",attrs:{scope:"col",colspan:"2"}},[t._v("Drafts")]),t._v(" "),n("th",{staticClass:"title_header product_title_th",attrs:{scope:"col"}},[t._v("Type")]),t._v(" "),n("th",{staticClass:"text-right",attrs:{scope:"col"}},[t.data.length>1?n("button",{staticClass:"button btn btn-primary",on:{click:t.publish_all_click}},[n("img",{staticClass:"button-icon",attrs:{src:"images/plus.svg"}}),t._v(" Publish All\n              ")]):t._e()])])]),t._v(" "),n("tbody",[t._l(t.data,(function(e,i){return n("tr",{key:i},[n("td",[n("img",{staticClass:"img-fluid",attrs:{src:t.getImage(e),alt:""}})]),t._v(" "),n("td",[n("span",{staticClass:"table_pro_name"},[t._v(t._s(e.name))])]),t._v(" "),n("td",[n("span",{staticClass:"table_pro_name capitalize_me"},[t._v(t._s(e.type))])]),t._v(" "),n("td",{staticClass:"text-right"},[n("a",{staticClass:"button btn btn-secondary",attrs:{href:t.get_href_link(e)}},[t._v("Edit")]),t._v(" "),n("button",{staticClass:"button btn btn-primary",on:{click:function(n){return t.publish_click(e,i)}}},[t._v("Publish\n              ")])])])})),t._v(" "),t.data.length?t._e():n("tr",[n("td",{attrs:{colspan:"3"}},[t._v("You have no Drafts")])])],2)])])],1)])],1)}),[],!1,null,null,null).exports},5557:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var i=n(8858);const r={name:"accounts",components:{User:n(3853).A},mixins:[i.A],props:["stores"],data:function(){return{}},computed:{},methods:{manage:function(t){var e=this;axios.post("/client-manager/".concat(t.user.id,"/manage")).then((function(t){t.data.data&&(window.location.href="/dashboard")})).catch((function(t){e.alertErrors(t.response.data)}))}},mounted:function(){}};var o=n(5072),a=n.n(o),s=n(1378),l={insert:"head",singleton:!1};a()(s.A,l);s.A.locals;const c=(0,n(4486).A)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("div",{staticClass:"table-responsive"},[n("table",{staticClass:"table shadow-none"},[t._m(0),t._v(" "),n("tbody",[t._l(t.stores,(function(e){return n("tr",[n("td",{staticClass:"user-name"},[t._v(t._s(e.user.name))]),t._v(" "),n("td",{staticClass:"user-email"},[t._v(t._s(e.user.email))]),t._v(" "),n("td",{staticClass:"user-store"},[n("div",[n("a",{attrs:{href:e.link,target:"_blank"}},[t._v(t._s(e.name))])])]),t._v(" "),n("td",{staticClass:"user-store-live"},[e.live?n("i",{staticClass:"fa fa-check text-success"}):n("i",{staticClass:"fa fa-times text-danger"})]),t._v(" "),n("td",{staticClass:"user-agents"},[t._v(t._s(e.agent_count))]),t._v(" "),n("td",{staticClass:"text-right"},[n("button",{staticClass:"btn btn-primary",on:{click:function(n){return t.manage(e)}}},[t._v("Manage")])])])})),t._v(" "),t.stores.length?t._e():n("tr",[n("td",{staticClass:"text-center",attrs:{colspan:"6"}},[t._v("There are no accounts yet.")])])],2)])])])])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("thead",{staticClass:"table_head_snap"},[n("tr",[n("th",{staticClass:"user-name"},[t._v("Client")]),t._v(" "),n("th",{staticClass:"user-email"},[t._v("Email")]),t._v(" "),n("th",{staticClass:"user-store"},[t._v("Store")]),t._v(" "),n("th",{staticClass:"user-store-live"},[t._v("Live")]),t._v(" "),n("th",{staticClass:"user-agents"},[t._v("Agent Count")]),t._v(" "),n("th",{staticClass:"text-right"},[t._v("Actions")])])])}],!1,null,"33db535e",null).exports},4511:(t,e,n)=>{"use strict";n.d(e,{A:()=>C});var i=n(432),r=n.n(i),o=n(204),a=n(8858),s=n(967),l=n(3853),c=n(2985),u=n(7342),d=n(5539);function h(t){return h="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},h(t)}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(){m=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var r=e&&e.prototype instanceof d?e:d,o=Object.create(r.prototype),a=new E(i||[]);return o._invoke=function(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return O()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=c(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var u={};function d(){}function p(){}function f(){}var v={};s(v,r,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==e&&n.call(b,r)&&(v=b);var y=f.prototype=d.prototype=Object.create(v);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(r,o,a,s){var l=c(t[r],t,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==h(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(d).then((function(t){u.value=t,a(u)}),(function(t){return i("throw",t,a,s)}))}s(l.arg)}var r;this._invoke=function(t,n){function o(){return new e((function(e,r){i(t,n,e,r)}))}return r=r?r.then(o,o):o()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var i=c(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,u;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function T(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=f,s(y,"constructor",f),s(f,"constructor",p),p.displayName=s(f,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,s(t,a,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},_(w.prototype),s(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new w(l(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(y),s(y,a,"Generator"),s(y,r,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return a.type="throw",a.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}function v(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function g(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){v(o,i,r,a,s,"next",t)}function s(t){v(o,i,r,a,s,"throw",t)}a(void 0)}))}}const b={name:"agent-manager",components:{draggable:r(),scroll:o.A,User:l.A,Step:c.A,Value:u.A,UserValue:d.A},mixins:[a.A],props:["store","users","links","steps","canManage","canImpersonate"],data:function(){return{agent:{id:-1,name:null,email:null},query:null,edit_agent:!1,form:!1,step_id:null,value_ids:[]}},computed:{userValuesByStep:function(){var t=this;if(!this.edit_agent)return[];var e=u.A.query().whereHas("user_values",(function(e){e.where("user_id",t.agent.id)})).with("step").orderBy("step_id").get(),n=[];return e.forEach((function(t){n[t.step_id]?n[t.step_id].values.push({id:t.id,name:t.name}):t.step&&(n[t.step_id]={id:t.step_id,name:t.step.name,values:[{id:t.id,name:t.name}]})})),n.filter((function(t){return t}))},agentList:{get:function(){var t=l.A.query().with("user_values").with("values").with("store").orderBy("order","asc").get(),e=this.query?this.query.toLowerCase():null;return e?t.filter((function(t){return t.name.toLowerCase().includes(e)||t.email.toLowerCase().includes(e)})):t},set:function(t){this.reorder(t)}},stepList:function(){var t=this;return c.A.query().get().map((function(e){return{id:e.id,label:t.capitalize(e.name)}}))},valueList:function(){var t=this;return this.step_id?u.A.query().where("step_id",this.step_id).get().map((function(e){return{id:e.id,label:t.capitalize(e.name)}})):[]},formTitle:function(){return this.edit_agent?"Edit Agent":"Create Agent"}},watch:{"agent.id":function(){this.setValueIds()},step_id:function(){this.setValueIds()}},methods:{impersonate:function(t){var e=this;s.A.impersonate(t).catch((function(t){e.alertErrors(t.response.data)}))},setValueIds:function(){var t=this;if(this.agent.id){var e=u.A.query().where("step_id",this.step_id).get().map((function(t){return t.id}));this.value_ids=d.A.query().where((function(n){return n.user_id===t.agent.id&&e.includes(n.value_id)})).get().map((function(t){return t.value_id}))}else this.value_ids=[]},reorder:function(t){var e=this,n=[];t.forEach((function(t,e){n.push({id:t.id,order:e}),l.A.update({where:t.id,data:{order:e}})})),axios.post(this.links.reorder,{order:n}).then((function(t){e.successNotice("Order updated")}))},savePermissions:function(){var t=this,e=this.links.sync_values.replace("user_id",this.agent.id);axios.post(e,{step_id:this.step_id,ids:this.value_ids}).then((function(e){d.A.query().delete((function(e){return e.user_id===t.agent.id})),e.data.data.length&&d.A.insert({data:e.data.data}),t.successNotice("Permissions updated")}))},resetForm:function(){this.value_ids=[],this.step_id=null,this.agent={id:-1,name:null,email:null}},cancel:function(){this.form=!1,this.edit_agent=!1,this.resetForm()},newAgent:function(){this.resetForm(),this.form=!0},create:function(){var t=this;this.checkClient().then((function(e){if(e)if(e.data.data.found){if(!e.data.data.can_add)return void t.alertErrors("This email belongs to a user who can't be an agent.");t.addAgent(e.data.data.found)}else t.createAgent()}))},checkClient:function(){var t=this;return this.fetching=!0,s.A.find(this.agent,"agent").catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))},addAgent:function(t){var e=this;axios.post(this.links.add_agent.replace("id",t)).then(function(){var t=g(m().mark((function t(n){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.A.insert({data:n.data.data});case 2:e.successNotice("Agent added."),e.edit(n.data.data);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.alertErrors(t.response.data)})).finally((function(){e.fetching=!1}))},createAgent:function(){var t=this;this.fetching=!0,axios.post(this.links.create_agent,this.agent).then(function(){var e=g(m().mark((function e(n){var i;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.A.insert({data:n.data.data});case 2:i=e.sent,t.successNotice("Agent created."),t.edit(i.users[0]);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))},edit:function(t){t.id===this.agent.id?this.cancel():(this.agent=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t),this.edit_agent=!0,this.form=!0)},invite:function(t){var e=this;this.confirm((function(){e.fetching=!0,axios.post(e.links.invite_agent.replace("id",t)).then((function(t){e.successNotice("Invitation sent.")})).catch((function(t){e.alertErrors(t.response.data)})).finally((function(){e.fetching=!1}))}),null,{text:"Invitation will be sent by email"})},update:function(){var t=this;this.fetching=!0,axios.post(this.links.update_agent.replace("id",this.agent.id),this.agent).then((function(e){l.A.update({where:t.agent.id,data:e.data.data}),t.cancel(),t.successNotice("Agent updated.")})).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))},deleteAgent:function(t){var e=this;this.confirm((function(){e.fetching=!0,axios.delete(e.links.delete_agent.replace("id",t.id)).then((function(n){l.A.delete(t.id),e.successNotice("Agent deleted."),e.edit_agent&&e.agent.id===t.id&&e.cancel()})).catch((function(t){e.alertErrors(t.response.data)})).finally((function(){e.fetching=!1}))}))}},mounted:function(){this.users&&l.A.insert({data:this.users}),this.steps&&c.A.insert({data:this.steps})}};var y=n(5072),_=n.n(y),w=n(852),x={insert:"head",singleton:!1};_()(w.A,x);w.A.locals;const C=(0,n(4486).A)(b,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[t.fetching?n("loader",{attrs:{preloader:t.store.preloaderPath}}):t._e(),t._v(" "),n("div",{staticClass:"col-xl-7 col-lg-12"},[n("div",{staticClass:"list_container col_height"},[n("div",{staticClass:"custom_head"},[n("table",[n("thead",{staticClass:"table_head_snap"},[n("tr",[n("th",{staticClass:"user-order"},[t._v("Order")]),t._v(" "),n("th",{staticClass:"user-name"},[t._v("Agent")]),t._v(" "),n("th",{staticClass:"user-last-login text-center"},[t._v("Last Login")]),t._v(" "),n("th",{staticClass:"user-actions text-right"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.query,expression:"query"}],staticClass:"form-control",attrs:{type:"search",placeholder:"Search"},domProps:{value:t.query},on:{input:function(e){e.target.composing||(t.query=e.target.value)}}})])])])])]),t._v(" "),n("scroll",{staticStyle:{height:"calc(100vh - 240px)"}},[n("table",{staticClass:"table shadow-none"},[n("draggable",{attrs:{tag:"tbody"},model:{value:t.agentList,callback:function(e){t.agentList=e},expression:"agentList"}},t._l(t.agentList,(function(e,i){return n("tr",{staticClass:"draggable",class:e.id===t.agent.id?"active-stock":null},[n("td",{staticClass:"user-order"},[t._v("#"+t._s(i+1))]),t._v(" "),n("td",{staticClass:"user-name"},[n("div",[t._v(t._s(e.name))]),t._v(" "),n("div",{staticClass:"text-muted"},[t._v(t._s(e.email))])]),t._v(" "),n("td",{staticClass:"user-last-login text-center"},[e.store?n("span",[t._v("N/A")]):n("span",[t._v(t._s(e.logged_at))])]),t._v(" "),n("td",{staticClass:"user-actions text-right"},[t.canManage?[t.canImpersonate?n("button",{staticClass:"button btn btn-primary",attrs:{title:"Impersonate"},on:{click:function(n){return t.impersonate(e)}}},[n("i",{staticClass:"fas fa-mask"})]):t._e(),t._v(" "),e.email_verified_at||e.store?t._e():n("button",{staticClass:"button btn btn-primary",attrs:{title:"Invite"},on:{click:function(n){return t.invite(e.id)}}},[n("i",{staticClass:"fa fa-paper-plane"})]),t._v(" "),t.agent.id===e.id?n("button",{staticClass:"button btn btn-secondary",attrs:{title:"Edit"},on:{click:function(n){return t.edit(e)}}},[n("i",{staticClass:"fa fa-times"})]):n("button",{staticClass:"button btn btn-primary",attrs:{title:"Edit"},on:{click:function(n){return t.edit(e)}}},[n("i",{staticClass:"fa fa-pencil"})]),t._v(" "),n("button",{staticClass:"button btn btn-danger",attrs:{title:"Delete"},on:{click:function(n){return t.deleteAgent(e)}}},[n("i",{staticClass:"fa fa-trash"})])]:t._e()],2)])})),0),t._v(" "),t.users.length?t._e():n("tbody",[n("tr",[n("td",{staticClass:"text-center",attrs:{colspan:"4"}},[t._v("Get started by adding your Agents")])])])],1)])],1)]),t._v(" "),t.canManage?n("div",{staticClass:"col-xl-5 col-lg-12 mt-lg"},[n("div",{staticClass:"form_container"},[n("div",{staticClass:"custom_head"},[n("table",[n("thead",{staticClass:"table_head_snap"},[n("tr",[n("th",{staticClass:"title_header product_title_th",attrs:{scope:"col"}},[t._v(t._s(t.formTitle))]),t._v(" "),n("th",{staticClass:"text-right",attrs:{scope:"col"}},[t.form?n("button",{staticClass:"btn btn_close btn-circle btn-sm",on:{click:t.cancel}},[n("img",{attrs:{src:"images/no.svg",alt:""}})]):t._e(),t._v(" "),t.form?t._e():n("button",{staticClass:"button btn btn-primary",on:{click:t.newAgent}},[t._v("\n                Add Agent\n              ")])])])])])]),t._v(" "),t.form?n("div",[n("scroll",{style:"height: calc(100vh - 300px)"},[n("div",{staticClass:"col-12 pt-2"},[t.agent.store?t._e():n("form",{staticClass:"mb-3"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v("Name:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.agent.name,expression:"agent.name"}],staticClass:"form-control",attrs:{type:"text",id:"name"},domProps:{value:t.agent.name},on:{input:function(e){e.target.composing||t.$set(t.agent,"name",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"email"}},[t._v("Email:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.agent.email,expression:"agent.email"}],staticClass:"form-control",attrs:{type:"text",id:"email"},domProps:{value:t.agent.email},on:{input:function(e){e.target.composing||t.$set(t.agent,"email",e.target.value)}}})])]),t._v(" "),t.edit_agent?n("div",{staticClass:"row mb-2"},[n("div",{staticClass:"col-4"},[n("div",{staticClass:"form-group"},[n("treeselect",{attrs:{options:t.stepList,placeholder:"Assign Step"},model:{value:t.step_id,callback:function(e){t.step_id=e},expression:"step_id"}})],1)]),t._v(" "),n("div",{staticClass:"col-6"},[n("treeselect",{attrs:{options:t.valueList,placeholder:"Assign Variation",multiple:!0},model:{value:t.value_ids,callback:function(e){t.value_ids=e},expression:"value_ids"}})],1),t._v(" "),n("div",{staticClass:"col-2"},[n("button",{staticClass:"btn btn-primary w-100",attrs:{disabled:!t.step_id},on:{click:t.savePermissions}},[t._v("Save")])])]):t._e(),t._v(" "),t._l(t.userValuesByStep,(function(e){return n("div",{staticClass:"row mb-2"},[n("div",{staticClass:"col-4"},[t._v(t._s(e.name))]),t._v(" "),n("div",{staticClass:"col-6"},t._l(e.values,(function(e){return n("div",[t._v(t._s(e.name))])})),0),t._v(" "),n("div",{staticClass:"col-2 text-right"},[n("button",{staticClass:"btn btn-primary w-100",on:{click:function(n){t.step_id=e.id}}},[t._v("Edit")])])])}))],2)]),t._v(" "),n("div",{staticClass:"product-form-footer text-right"},[t.edit_agent?[t.agent.email_verified_at||t.agent.store?t._e():n("button",{staticClass:"btn btn-primary",on:{click:function(e){return t.invite(t.agent.id)}}},[n("i",{staticClass:"fa fa-paper-plane"}),t._v(" Send Login Link\n            ")]),t._v(" "),t.agent.store?t._e():n("button",{staticClass:"btn btn-primary",on:{click:t.update}},[t._v("Update")])]:t._e(),t._v(" "),t.edit_agent?t._e():n("button",{staticClass:"btn btn-primary",on:{click:t.create}},[t._v("Create")])],2)],1):t._e()])]):t._e()],1)}),[],!1,null,"e4231096",null).exports},7918:(t,e,n)=>{"use strict";n.d(e,{A:()=>A});var i=n(432),r=n.n(i),o=n(204),a=n(8858),s=n(3019),l=n(2985),c=n(4953),u=n(2922),d=n(7342);function h(t){return h="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},h(t)}function p(){p=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var r=e&&e.prototype instanceof d?e:d,o=Object.create(r.prototype),a=new E(i||[]);return o._invoke=function(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return O()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=c(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var u={};function d(){}function f(){}function m(){}var v={};s(v,r,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==e&&n.call(b,r)&&(v=b);var y=m.prototype=d.prototype=Object.create(v);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(r,o,a,s){var l=c(t[r],t,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==h(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(d).then((function(t){u.value=t,a(u)}),(function(t){return i("throw",t,a,s)}))}s(l.arg)}var r;this._invoke=function(t,n){function o(){return new e((function(e,r){i(t,n,e,r)}))}return r=r?r.then(o,o):o()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var i=c(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,u;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function T(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return f.prototype=m,s(y,"constructor",m),s(m,"constructor",f),f.displayName=s(m,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,a,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},_(w.prototype),s(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new w(l(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(y),s(y,a,"Generator"),s(y,r,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return a.type="throw",a.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){v(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}const b={name:"step",props:{model:{type:Object},height:{type:Number,default:400},reordering:{type:Boolean,default:!1},grouping:{type:Boolean,default:!1},canManage:{type:Boolean,default:!1}},components:{scroll:o.A,Value:u.A,draggable:r()},mixins:[a.A],data:function(){return{editField:{name:!1,title:!1,image:!1},step:{name:null,title:null,image:null,order:null,parent_id:null,active:null,is_favorite:!1,autoselect:!0,show_continue:!0,display_type:"plain",description_type:"flip-y",min_values:1,max_values:1,card_width:null,card_height:null,card_scale:100},image_zoom:null,image_pitch:null,image_yaw:null,value:{step_id:null,name:null},showForm:!1,showValueForm:!1,loading:!1,uploading:!1,ready:!1,maxFav:3,viewer:null,formHeight:0}},watch:{"step.min_values":function(t,e){t>this.values.length?this.step.min_values=this.values.length||1:this.step.min_values=t<0?0:t,this.update({min_values:this.step.min_values})},"step.max_values":function(t,e){t>this.values.length?this.step.max_values=this.values.length||1:this.step.max_values=t<1?1:t,this.update({max_values:this.step.max_values})},"step.card_size":function(){var t=this;setTimeout((function(){t.$refs.form&&(t.formHeight=t.$refs.form.clientHeight)}),500)},"step.card_width":function(t,e){this.update({card_width:this.step.card_width})},"step.card_height":function(t,e){this.update({card_height:this.step.card_height})},"step.card_scale":function(t,e){this.step.card_scale=t>200?200:t<1?1:t,this.update({card_scale:this.step.card_scale})}},computed:{imagePositionChanged:function(){return null!==this.step.image_zoom||null!==this.step.image_pitch||null!==this.step.image_yaw},imagePositionTitle:function(){return this.imagePositionChanged?"Update image position":"Set image position"},canEdit:function(){return this.canManage&&!this.saving},stepModel:function(){return l.A.query().where("id",this.model.id).first()},parent:function(){return l.A.query().where("id",this.step.parent_id).with("value_images").first()},prev:function(){var t=this;return l.A.query().where((function(e){return e.order<t.model.order})).where("parent_id",null).orderBy("order","desc").first()},next:function(){var t=this;return l.A.query().where((function(e){return e.order>t.model.order})).where("parent_id",null).orderBy("order","asc").first()},values:{get:function(){return d.A.query().with("images").where("step_id",this.model.id).where("draft_id",null).orderBy("order").get()},set:function(t){this.updateValueOrder(t)}},favCount:function(){return l.A.query().where("is_favorite",!0).get().length},parentImages:function(){if(this.step.parent_id){if(this.parent.panorama)return this.parent.panorama;if(this.parent.value_images.length)return this.parent.value_images[0].panorama}return null},panorama:function(){if("panorama"===this.step.display_type){if(this.step.parent_id){if(this.parent.panorama)return this.parent.panorama;if(this.parent.value_images.length)return this.parent.value_images[0].panorama}if(this.step.panorama)return this.step.panorama;if(this.values.length){var t=this.values.find((function(t){return t.variation_images.length}));return t?t.variation_images[0].panorama:null}}return null},panoramaToggleTitle:function(){return this.step.show_panorama_tooltip?"Turn off 360 view tooltip":"Turn on 360 view tooltip"},scrollHeight:function(){return this.showForm?this.height-this.formHeight:this.height}},methods:{massCompatible:function(t){var e=this;this.confirm((function(){e.loading=!0,axios.post("/step-builder/".concat(e.model.id,"/mass-compatible"),{compatible:t}).then((function(t){window.location.reload()})).catch((function(t){e.alertErrors(t.response.data)})).finally((function(){e.loading=!1}))}))},togglePanoramaTooltip:function(){this.update({show_panorama_tooltip:!this.step.show_panorama_tooltip})},resetPosition:function(){this.image_zoom=null,this.image_pitch=null,this.image_yaw=null,this.viewer.animate({zoom:50,pitch:0,yaw:0})},savePosition:function(){this.$bvModal.hide("panorama-modal-".concat(this.model.id)),this.update({image_zoom:this.image_zoom,image_pitch:this.image_pitch,image_yaw:this.image_yaw})},showPanoramaViewer:function(){var t,e,n,i=this;this.$bvModal.show("panorama-modal-".concat(this.model.id)),this.image_zoom=null!==(t=this.step.image_zoom)&&void 0!==t?t:null,this.image_pitch=null!==(e=this.step.image_pitch)&&void 0!==e?e:null,this.image_yaw=null!==(n=this.step.image_yaw)&&void 0!==n?n:null,setTimeout((function(){i.viewer=i.initPanoramaViewer(i.$refs.panorama,i.panorama,{zoom:i.image_zoom,pitch:i.image_pitch,yaw:i.image_yaw}),i.viewer.addEventListener("position-updated",(function(t){i.image_pitch=t.position.pitch.toFixed(5),i.image_yaw=t.position.yaw.toFixed(5)})),i.viewer.addEventListener("zoom-updated",(function(t){i.image_zoom=t.zoomLevel.toFixed(0)}))}),100)},upload:function(t){var e=this,n=new FormData;n.append("image",t.target.files[0]),this.uploading=!0,axios.post("/step-builder/".concat(this.model.id,"/upload"),n).then((function(t){l.A.update({where:e.model.id,data:t.data.data}),e.step=t.data.data})).catch((function(t){e.alertErrors(t.response.data)})).finally((function(){e.uploading=!1}))},deleteImage:function(){var t=this;this.confirm((function(){axios.delete("/step-builder/".concat(t.model.id,"/image")).then((function(e){l.A.update({where:t.model.id,data:e.data.data}),t.step=e.data.data})).catch((function(e){t.alertErrors(e.response.data)}))}))},toggleShowInQuote:function(){this.update({show_in_quote:!this.step.show_in_quote})},toggleShowImageInQuote:function(){this.update({show_image_in_quote:!this.step.show_image_in_quote})},toggleShowPriceInQuote:function(){this.update({show_price_in_quote:!this.step.show_price_in_quote})},toggleAutoselect:function(){this.update({autoselect:!this.step.autoselect})},toggleFavorite:function(){this.update({is_favorite:!this.step.is_favorite})},updateValueOrder:function(t){var e=this;if(t.length){var n=[];t.forEach((function(t,e){n.push({id:t.id,order:e}),d.A.update({where:t.id,data:{order:e}})})),axios.post("/values/reorder",{order:n}).then((function(t){t.data.data.forEach((function(t){d.A.update({where:t.id,data:t})}))})).catch((function(t){e.alertErrors(t.response.data)}))}},updateDescriptionType:function(){this.update({description_type:this.step.description_type})},toggleMainImageMobile:function(t){this.step.main_image_mobile=t,this.update({main_image_mobile:t})},toggleMainImageDesktop:function(t){this.step.main_image_desktop=t,this.update({main_image_desktop:t})},toggleStatus:function(t){this.step.active=t,this.update({active:t})},update:(0,c.debounce)((function(t){this.ready&&(t&&l.A.update({where:this.model.id,data:t}),this.save(t))}),500),deleteStep:function(){var t=this;this.confirm((function(){var e=l.A.query().where((function(e){return e.order>t.model.order})).get();l.A.update({where:function(e){return e.parent_id===t.model.id},data:{parent_id:null}}),l.A.delete(t.model.id);var n=e.map((function(t){return{step_id:t.id,order:t.order-1}}));axios.delete("/step-builder/".concat(t.model.id)).then((function(e){n.length&&t.reorder(n)})).catch((function(e){t.alertErrors(e.response.data)}))}))},orderLeft:function(){var t=this,e=l.A.query().where((function(e){return e.id===t.prev.id||e.parent_id===t.prev.id})).get(),n=l.A.query().where((function(e){return e.id===t.model.id||e.parent_id===t.model.id})).get();this.changeOrder(e,n)},orderRight:function(){var t=this,e=l.A.query().where((function(e){return e.id===t.next.id||e.parent_id===t.next.id})).get(),n=l.A.query().where((function(e){return e.id===t.model.id||e.parent_id===t.model.id})).get();this.changeOrder(n,e)},changeOrder:function(t,e){var n=e.length,i=t.length,r=[];t.forEach((function(t){r.push({step_id:t.id,order:t.order+n})})),e.forEach((function(t){r.push({step_id:t.id,order:t.order-i})})),this.reorder(r)},reorder:function(t){this.$emit("reorder",t)},group:function(){var t=this,e=this.prev.parent_id?this.prev.parent_id:this.prev.id;this.save({parent_id:e},(function(){l.A.update({where:function(e){return e.parent_id===t.model.id},data:{parent_id:e}})}))},ungroup:function(){var t=this;this.save({parent_id:null},(function(){l.A.update({where:function(e){return e.parent_id===t.step.parent_id&&e.order>t.model.order},data:{parent_id:t.model.id}})}))},createValue:function(){var t,e=this;return(t=p().mark((function t(){var n;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.value.name){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,d.A.insert({data:m(m({},e.value),{prices:[{price:0}]})});case 4:n=t.sent,e.showValueForm=!1,axios.post("/values",e.value).then((function(t){d.A.insert({data:t.data.data}),d.A.delete(n.values[0].id)})).catch((function(t){e.alertErrors(t.response.data)}));case 7:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){g(o,i,r,a,s,"next",t)}function s(t){g(o,i,r,a,s,"throw",t)}a(void 0)}))})()},addValue:function(){var t=this;this.showValueForm=!0,this.resetValue(),this.$nextTick((function(){return t.$refs.valueName.focus()}))},resetValue:function(){this.value={step_id:this.model.id,name:null}},cancel:function(t){this.editField[t]=!1},edit:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.editField[t]=!0,n&&this.$nextTick((function(){return e.$refs[t].focus()}))},saveField:function(t){var e=this;this.save(null,(function(){e.editField[t]=!1}))},save:function(t,e){var n=this,i={name:this.step.name,title:this.step.title,parent_id:this.step.parent_id,order:this.model.order,active:this.step.active,main_image_mobile:this.step.main_image_mobile,main_image_desktop:this.step.main_image_desktop,display_type:this.step.display_type,description_type:this.step.description_type,is_favorite:this.step.is_favorite,autoselect:this.step.autoselect,show_continue:this.step.show_continue,show_in_quote:this.step.show_in_quote,show_image_in_quote:this.step.show_image_in_quote,show_price_in_quote:this.step.show_price_in_quote,show_panorama_tooltip:this.step.show_panorama_tooltip,min_values:this.step.min_values,max_values:this.step.max_values,card_size:this.step.card_size,card_width:this.step.card_width,card_height:this.step.card_height,card_scale:this.step.card_scale};t&&(i=m(m({},i),t)),axios.post("/step-builder/".concat(this.model.id),i).then((function(t){e&&e(),l.A.update({where:n.model.id,data:t.data.data}),n.step=t.data.data})).catch((function(t){n.alertErrors(t.response.data)})).finally((function(){}))},updateDisplayType:function(){this.update({display_type:this.step.display_type})},updateCardSize:function(){this.update({card_size:this.step.card_size})}},mounted:function(){var t=this;this.value.step_id=this.model.id,this.step=m({},this.model),setTimeout((function(){t.ready=!0}),1e3),this.$refs.form&&(this.formHeight=this.$refs.form.clientHeight)}};var y=n(5072),_=n.n(y),w=n(4108),x={insert:"head",singleton:!1};_()(w.A,x);w.A.locals;var C=n(4486);const S=(0,C.A)(b,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"step",class:[t.step.parent_id?"grouped":"",t.step.active?"":"inactive"]},[i("div",{staticClass:"step-controls step-description-type"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.step.description_type,expression:"step.description_type"}],attrs:{id:"step-"+t.model.id+"-description-y",type:"radio",name:"step_"+t.model.id+"_description_type",value:"flip-y",disabled:!t.canEdit},domProps:{checked:t._q(t.step.description_type,"flip-y")},on:{change:[function(e){return t.$set(t.step,"description_type","flip-y")},t.updateDescriptionType]}}),t._v(" "),i("label",{attrs:{for:"step-"+t.model.id+"-description-y",title:"Description display type: Horizontal flip"}},[i("i",{staticClass:"fa fa-arrows-h",attrs:{"aria-hidden":"true"}})]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.step.description_type,expression:"step.description_type"}],attrs:{id:"step-"+t.model.id+"-description-x",type:"radio",name:"step_"+t.model.id+"_description_type",value:"flip-x",disabled:!t.canEdit},domProps:{checked:t._q(t.step.description_type,"flip-x")},on:{change:[function(e){return t.$set(t.step,"description_type","flip-x")},t.updateDescriptionType]}}),t._v(" "),i("label",{attrs:{for:"step-"+t.model.id+"-description-x",title:"Description display type: Vertical flip"}},[i("i",{staticClass:"fa fa-arrows-v",attrs:{"aria-hidden":"true"}})]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.step.description_type,expression:"step.description_type"}],attrs:{id:"step-"+t.model.id+"-description-popup",type:"radio",name:"step_"+t.model.id+"_description_type",value:"popup",disabled:!t.canEdit},domProps:{checked:t._q(t.step.description_type,"popup")},on:{change:[function(e){return t.$set(t.step,"description_type","popup")},t.updateDescriptionType]}}),t._v(" "),i("label",{attrs:{for:"step-"+t.model.id+"-description-popup",title:"Description display type: Popup"}},[i("i",{staticClass:"fa fa-expand",attrs:{"aria-hidden":"true"}})])]),t._v(" "),i("div",{staticClass:"step-controls card-size"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.step.card_size,expression:"step.card_size"}],attrs:{id:"step-"+t.model.id+"-card-size-sm",type:"radio",name:"step_"+t.model.id+"_card_size",value:"sm",disabled:!t.canEdit},domProps:{checked:t._q(t.step.card_size,"sm")},on:{change:[function(e){return t.$set(t.step,"card_size","sm")},t.updateCardSize]}}),t._v(" "),i("label",{attrs:{for:"step-"+t.model.id+"-card-size-sm",title:"Variation card size: Small"}},[t._v("S")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.step.card_size,expression:"step.card_size"}],attrs:{id:"step-"+t.model.id+"-card-size-md",type:"radio",name:"step_"+t.model.id+"_card_size",value:"md",disabled:!t.canEdit},domProps:{checked:t._q(t.step.card_size,"md")},on:{change:[function(e){return t.$set(t.step,"card_size","md")},t.updateCardSize]}}),t._v(" "),i("label",{attrs:{for:"step-"+t.model.id+"-card-size-md",title:"Variation card size: Medium"}},[t._v("M")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.step.card_size,expression:"step.card_size"}],attrs:{id:"step-"+t.model.id+"-card-size-lg",type:"radio",name:"step_"+t.model.id+"_card_size",value:"lg",disabled:!t.canEdit},domProps:{checked:t._q(t.step.card_size,"lg")},on:{change:[function(e){return t.$set(t.step,"card_size","lg")},t.updateCardSize]}}),t._v(" "),i("label",{attrs:{for:"step-"+t.model.id+"-card-size-lg",title:"Variation card size: Large"}},[t._v("L")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.step.card_size,expression:"step.card_size"}],attrs:{id:"step-"+t.model.id+"-card-size-custom",type:"radio",name:"step_"+t.model.id+"_card_size",value:"cs",disabled:!t.canEdit},domProps:{checked:t._q(t.step.card_size,"cs")},on:{change:[function(e){return t.$set(t.step,"card_size","cs")},t.updateCardSize]}}),t._v(" "),i("label",{attrs:{for:"step-"+t.model.id+"-card-size-custom",title:"Variation card size: Custom"}},[t._v("C")])]),t._v(" "),i("div",{staticClass:"step-controls step-display-type"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.step.display_type,expression:"step.display_type"}],attrs:{id:"step-"+t.model.id+"-display-type-plain",type:"radio",name:"step_"+t.model.id+"_display_type",value:"plain",disabled:!t.canEdit},domProps:{checked:t._q(t.step.display_type,"plain")},on:{change:[function(e){return t.$set(t.step,"display_type","plain")},t.updateDisplayType]}}),t._v(" "),i("label",{attrs:{for:"step-"+t.model.id+"-display-type-plain",title:"Display type: plain"}},[t._v("\n      P\n    ")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.step.display_type,expression:"step.display_type"}],attrs:{id:"step-"+t.model.id+"-display-type-color",type:"radio",name:"step_"+t.model.id+"_display_type",value:"color",disabled:!t.canEdit},domProps:{checked:t._q(t.step.display_type,"color")},on:{change:[function(e){return t.$set(t.step,"display_type","color")},t.updateDisplayType]}}),t._v(" "),i("label",{attrs:{for:"step-"+t.model.id+"-display-type-color",title:"Display type: color"}},[t._v("\n      C\n    ")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.step.display_type,expression:"step.display_type"}],attrs:{id:"step-"+t.model.id+"-display-type-image",type:"radio",name:"step_"+t.model.id+"_display_type",value:"image",disabled:!t.canEdit},domProps:{checked:t._q(t.step.display_type,"image")},on:{change:[function(e){return t.$set(t.step,"display_type","image")},t.updateDisplayType]}}),t._v(" "),i("label",{attrs:{for:"step-"+t.model.id+"-display-type-image",title:"Display type: image"}},[i("i",{staticClass:"fa fa-image",attrs:{"aria-hidden":"true"}})]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.step.display_type,expression:"step.display_type"}],attrs:{id:"step-"+t.model.id+"-display-type-panorama",type:"radio",name:"step_"+t.model.id+"_display_type",value:"panorama",disabled:!t.canEdit},domProps:{checked:t._q(t.step.display_type,"panorama")},on:{change:[function(e){return t.$set(t.step,"display_type","panorama")},t.updateDisplayType]}}),t._v(" "),i("label",{attrs:{for:"step-"+t.model.id+"-display-type-panorama",title:"Display type: panorama"}},[t._v("\n      3D\n    ")]),t._v(" "),"panorama"===t.step.display_type?i("a",{staticClass:"toggle-panorama-tooltip",class:t.step.show_panorama_tooltip?"text-primary":"text-danger",attrs:{href:"#",title:t.panoramaToggleTitle},on:{click:function(e){return e.preventDefault(),t.togglePanoramaTooltip.apply(null,arguments)}}},[i("i",{staticClass:"fa fa-info"}),t._v(" "),t.step.show_panorama_tooltip?i("i",{staticClass:"fa fa-toggle-on"}):i("i",{staticClass:"fa fa-toggle-off"})]):t._e()]),t._v(" "),t.reordering&&!t.step.parent_id?i("div",{staticClass:"step-reorder"},[t.model.order>1?i("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.orderLeft.apply(null,arguments)}}},[i("i",{staticClass:"fa fa-arrow-left"})]):t._e(),t._v(" "),t.next?i("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.orderRight.apply(null,arguments)}}},[i("i",{staticClass:"fa fa-arrow-right"})]):t._e()]):t._e(),t._v(" "),t.grouping&&t.model.order>1?i("div",{staticClass:"step-group"},[t.step.parent_id?i("a",{attrs:{href:"#",title:"Ungroup"},on:{click:function(e){return e.preventDefault(),t.ungroup.apply(null,arguments)}}},[i("i",{staticClass:"fa fa-chain text-danger"})]):i("a",{attrs:{href:"#",title:"Group"},on:{click:function(e){return e.preventDefault(),t.group.apply(null,arguments)}}},[i("i",{staticClass:"fa fa-chain"})])]):t._e(),t._v(" "),t.canManage?i("div",{staticClass:"step-actions"},[t.step.main_image_mobile?i("a",{staticClass:"text-danger",attrs:{href:"#",title:"Hide main image on mobile"},on:{click:function(e){return e.preventDefault(),t.toggleMainImageMobile(0)}}},[i("i",{staticClass:"fa fa-mobile-retro",staticStyle:{"font-size":"18px"}})]):i("a",{staticClass:"text-primary",attrs:{href:"#",title:"Show main image on mobile"},on:{click:function(e){return e.preventDefault(),t.toggleMainImageMobile(1)}}},[i("i",{staticClass:"fa fa-mobile-retro",staticStyle:{"font-size":"18px"}})]),t._v(" "),t.step.main_image_desktop?i("a",{staticClass:"text-danger",attrs:{href:"#",title:"Hide main image on desktop"},on:{click:function(e){return e.preventDefault(),t.toggleMainImageDesktop(0)}}},[i("i",{staticClass:"fa fa-desktop",staticStyle:{"font-size":"14px"}})]):i("a",{staticClass:"text-primary",attrs:{href:"#",title:"Show main image on desktop"},on:{click:function(e){return e.preventDefault(),t.toggleMainImageDesktop(1)}}},[i("i",{staticClass:"fa fa-desktop",staticStyle:{"font-size":"14px"}})]),t._v(" "),t.step.active?i("a",{staticClass:"text-danger",attrs:{href:"#",title:"Make inactive"},on:{click:function(e){return e.preventDefault(),t.toggleStatus(0)}}},[i("i",{staticClass:"fa fa-eye-slash"})]):i("a",{staticClass:"text-primary",attrs:{href:"#",title:"Make active"},on:{click:function(e){return e.preventDefault(),t.toggleStatus(1)}}},[i("i",{staticClass:"fa fa-eye"})]),t._v(" "),i("a",{staticClass:"text-danger",attrs:{href:"#",title:"Delete step"},on:{click:function(e){return e.preventDefault(),t.deleteStep.apply(null,arguments)}}},[i("i",{staticClass:"fa fa-trash"})])]):t._e(),t._v(" "),t.editField.name?i("div",{staticClass:"input-group mb-1"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.step.name,expression:"step.name"}],ref:"name",staticClass:"form-control",attrs:{type:"text",placeholder:"Add the user question",disabled:!t.canEdit},domProps:{value:t.step.name},on:{keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.saveField("name")},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.cancel("name")}],input:function(e){e.target.composing||t.$set(t.step,"name",e.target.value)}}}),t._v(" "),i("div",{staticClass:"input-group-append"},[t.canManage?i("button",{staticClass:"btn btn-primary",on:{click:function(e){return t.saveField("name")}}},[t._v("OK")]):t._e()])]):i("h4",{staticClass:"step-header d-flex justify-content-between"},[i("span",{staticClass:"header"},[i("span",{staticClass:"step-name",class:{"text-info":t.model.is_draft},attrs:{title:t.step.name},on:{click:function(e){return t.edit("name")}}},[t._v(t._s(t.step.name))]),t._v(" "),i("span",{staticClass:"icons"},[t.step.is_favorite?i("i",{staticClass:"fa fa-star text-warning",attrs:{title:"Step selected as defining (max up to "+t.maxFav+")"},on:{click:t.toggleFavorite}}):t.favCount<t.maxFav?i("i",{staticClass:"fa fa-star",attrs:{title:"Make this step identifying (will be displayed in the enquiry list)"},on:{click:t.toggleFavorite}}):t._e(),t._v(" "),t.step.show_in_quote?i("i",{attrs:{title:"Hide from quote"},on:{click:t.toggleShowInQuote}},[i("img",{staticClass:"mb-1",attrs:{src:"/images/icons/invoice.png",height:"18"}})]):i("span",{staticClass:"fa-stack",attrs:{title:"Show in quote"},on:{click:t.toggleShowInQuote}},[i("img",{staticClass:"mb-1",attrs:{src:"/images/icons/invoice.png",height:"18"}}),t._v(" "),i("i",{staticClass:"fa fa-ban fa-stack-2x text-danger"})]),t._v(" "),t.step.parent_id?t._e():[t.step.show_image_in_quote?i("i",{staticClass:"fa fa-image",attrs:{title:"Hide image from quote"},on:{click:t.toggleShowImageInQuote}}):i("span",{staticClass:"fa-stack",attrs:{title:"Show image in quote"},on:{click:t.toggleShowImageInQuote}},[i("i",{staticClass:"fa fa-image fa-stack-1x"}),t._v(" "),i("i",{staticClass:"fa fa-ban fa-stack-2x text-danger"})])],t._v(" "),t.step.show_price_in_quote?i("i",{staticClass:"fa fa-dollar",attrs:{title:"Hide price on summary page and quote"},on:{click:t.toggleShowPriceInQuote}}):i("span",{staticClass:"fa-stack",attrs:{title:"Show price on summary page and quote"},on:{click:t.toggleShowPriceInQuote}},[i("i",{staticClass:"fa fa-dollar fa-stack-1x"}),t._v(" "),i("i",{staticClass:"fa fa-ban fa-stack-2x text-danger"})]),t._v(" "),t.step.autoselect?i("i",{staticClass:"fa fa-check",attrs:{title:"Do not select first variation automatically"},on:{click:t.toggleAutoselect}}):i("span",{staticClass:"fa-stack",attrs:{title:"Automatically select first variation"},on:{click:t.toggleAutoselect}},[i("i",{staticClass:"fa fa-check fa-stack-1x"}),t._v(" "),i("i",{staticClass:"fa fa-ban fa-stack-2x text-danger"})])],2)]),t._v(" "),i("span",[t.showForm?i("i",{staticClass:"fa fa-caret-down",on:{click:function(e){t.showForm=!1}}}):i("i",{staticClass:"fa fa-caret-up",on:{click:function(e){t.showForm=!0}}}),t._v(" "),i("i",{staticClass:"fa fa-edit",on:{click:function(e){return t.edit("name")}}})])]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.showForm,expression:"showForm"}],ref:"form"},[t.editField.title?i("div",{staticClass:"input-group mt-1"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.step.title,expression:"step.title"}],ref:"title",staticClass:"form-control",attrs:{type:"text",placeholder:"Add the user question",disabled:!t.canEdit},domProps:{value:t.step.title},on:{keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.saveField("title")},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.cancel("title")}],input:function(e){e.target.composing||t.$set(t.step,"title",e.target.value)}}}),t._v(" "),i("div",{staticClass:"input-group-append"},[t.canManage?i("button",{staticClass:"btn btn-primary",on:{click:function(e){return t.saveField("title")}}},[t._v("OK")]):t._e()])]):i("div",{staticClass:"step-title",on:{click:function(e){return t.edit("title")}}},[t.step.title?i("div",{staticClass:"d-flex justify-content-between"},[i("div",{staticClass:"title"},[t._v(t._s(t.step.title))]),t._v(" "),i("i",{staticClass:"fa fa-edit"})]):i("div",[i("i",{staticClass:"fa fa-plus"}),t._v(" Add the user question")])]),t._v(" "),t.editField.image?i("div",{staticClass:"step-image d-flex justify-content-between align-items-end"},[t.step.image?i("div",{staticClass:"image-wrapper"},[i("img",{attrs:{src:t.step.thumb,title:t.step.image,alt:t.step.image}}),t._v(" "),t.canManage?i("a",{staticClass:"delete-image text-danger",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.deleteImage.apply(null,arguments)}}},[i("i",{staticClass:"fa fa-trash"})]):t._e()]):[i("label",{staticClass:"upload-image",class:[t.uploading?"bg-gray rounded":""]},[i("img",{attrs:{src:n(155)}}),t._v(" "),i("input",{ref:"image",attrs:{type:"file",accept:".png, .jpg, .jpeg"},on:{change:t.upload}})]),t._v(" "),i("small",{staticClass:"align-self-baseline text-center"},[t._v("Recommended resolution for panorama: 5000x2500")])],t._v(" "),i("div",[i("button",{staticClass:"btn btn-outline-secondary",attrs:{disabled:t.uploading},on:{click:function(e){return t.cancel("image")}}},[t._v("Close")])])],2):t.canManage?i("div",{staticClass:"d-flex justify-content-between"},[t.step.parent_id?t._e():i("div",{staticClass:"step-title flex-fill",on:{click:function(e){return t.edit("image",!1)}}},[t.step.image?i("span",[i("i",{staticClass:"fa fa-edit"}),t._v(" Edit base image")]):i("span",[i("i",{staticClass:"fa fa-plus"}),t._v(" Set a base image")])]),t._v(" "),t.panorama?i("div",{staticClass:"step-title flex-fill",class:{"ml-2":!t.step.parent_id,"text-info":t.imagePositionChanged},on:{click:t.showPanoramaViewer}},[i("i",{staticClass:"fa fa-arrows-alt"}),t._v(" "+t._s(t.imagePositionTitle)+"\n      ")]):t._e()]):t._e(),t._v(" "),i("div",{staticClass:"d-flex align-items-center justify-content-between mt-2"},[i("div",{staticClass:"form-inline"},[i("div",{staticClass:"form-group mb-0"},[i("input",{directives:[{name:"model",rawName:"v-model.number",value:t.step.min_values,expression:"step.min_values",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",id:"min-"+t.model.id,step:"1",min:"0",max:"255",disabled:!t.canEdit},domProps:{value:t.step.min_values},on:{input:function(e){e.target.composing||t.$set(t.step,"min_values",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),i("label",{staticClass:"mb-0 ml-1",attrs:{for:"min-"+t.model.id}},[t._v("Min")])])]),t._v(" "),i("div",[t._v("Variation limit")]),t._v(" "),i("div",{staticClass:"form-inline"},[i("div",{staticClass:"form-group mb-0"},[i("label",{staticClass:"mb-0 mr-1",attrs:{for:"max-"+t.model.id}},[t._v("Max")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model.number",value:t.step.max_values,expression:"step.max_values",modifiers:{number:!0}}],staticClass:"form-control",attrs:{type:"number",id:"max-"+t.model.id,step:"1",min:"0",max:"255",disabled:!t.canEdit},domProps:{value:t.step.max_values},on:{input:function(e){e.target.composing||t.$set(t.step,"max_values",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])])]),t._v(" "),i("div",{staticClass:"statuses"},[i("div",{staticClass:"align-items-center border-bottom d-flex justify-content-between mb-2 pb-2"},[i("button",{staticClass:"btn btn-primary",attrs:{disabled:t.loading},on:{click:function(e){return t.massCompatible(!0)}}},[t._v("Mass Compatible\n        ")]),t._v(" "),i("i",{staticClass:"fa fa-question-circle-o",attrs:{id:"tooltip-compatible-"+t.step.id}}),t._v(" "),i("b-tooltip",{attrs:{target:"tooltip-compatible-"+t.step.id}},[t._v('\n          Make all variations from this step compatible/incompatible with subsequent steps.\n          This way you do not have to manually select ("Edit price" tab) compatibility for all subsequent steps.\n        ')]),t._v(" "),i("button",{staticClass:"btn btn-danger",attrs:{disabled:t.loading},on:{click:function(e){return t.massCompatible(!1)}}},[t._v("Mass Incompatible\n        ")])],1),t._v(" "),i("b-form-checkbox",{attrs:{size:"sm",switch:""},on:{change:t.update},model:{value:t.step.active,callback:function(e){t.$set(t.step,"active",e)},expression:"step.active"}},[t._v("\n        Active\n      ")]),t._v(" "),i("b-form-checkbox",{attrs:{size:"sm",switch:""},on:{change:t.update},model:{value:t.step.main_image_mobile,callback:function(e){t.$set(t.step,"main_image_mobile",e)},expression:"step.main_image_mobile"}},[t._v("\n        Show main image on mobile\n      ")]),t._v(" "),i("b-form-checkbox",{attrs:{size:"sm",switch:""},on:{change:t.update},model:{value:t.step.main_image_desktop,callback:function(e){t.$set(t.step,"main_image_desktop",e)},expression:"step.main_image_desktop"}},[t._v("\n        Show main image on desktop\n      ")]),t._v(" "),t.step.is_favorite||t.favCount<t.maxFav?i("b-form-checkbox",{attrs:{size:"sm",switch:""},on:{change:t.update},model:{value:t.step.is_favorite,callback:function(e){t.$set(t.step,"is_favorite",e)},expression:"step.is_favorite"}},[t._v("\n        Is identifying "),i("i",{staticClass:"fa fa-question-circle-o",attrs:{id:"tooltip-favorite-"+t.step.id}}),t._v(" "),i("b-tooltip",{attrs:{target:"tooltip-favorite-"+t.step.id}},[t._v("will be displayed in the enquiry list")])],1):t._e(),t._v(" "),i("b-form-checkbox",{attrs:{size:"sm",switch:""},on:{change:t.update},model:{value:t.step.show_in_quote,callback:function(e){t.$set(t.step,"show_in_quote",e)},expression:"step.show_in_quote"}},[t._v("\n        Show in quote\n      ")]),t._v(" "),t.step.parent_id?t._e():i("b-form-checkbox",{attrs:{size:"sm",switch:""},on:{change:t.update},model:{value:t.step.show_image_in_quote,callback:function(e){t.$set(t.step,"show_image_in_quote",e)},expression:"step.show_image_in_quote"}},[t._v("\n        Show image in quote\n      ")]),t._v(" "),i("b-form-checkbox",{attrs:{size:"sm",switch:""},on:{change:t.update},model:{value:t.step.show_price_in_quote,callback:function(e){t.$set(t.step,"show_price_in_quote",e)},expression:"step.show_price_in_quote"}},[t._v("\n        Show price on summary page and quote\n      ")]),t._v(" "),i("b-form-checkbox",{attrs:{size:"sm",switch:""},on:{change:t.update},model:{value:t.step.autoselect,callback:function(e){t.$set(t.step,"autoselect",e)},expression:"step.autoselect"}},[t._v("\n        Autoselect first variation\n      ")]),t._v(" "),t.step.autoselect?t._e():i("b-form-checkbox",{attrs:{size:"sm",switch:""},on:{change:t.update},model:{value:t.step.show_continue,callback:function(e){t.$set(t.step,"show_continue",e)},expression:"step.show_continue"}},[t._v("\n        Show continue button\n      ")]),t._v(" "),i("b-form-group",{staticClass:"mt-1",attrs:{label:"Display type"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.ariaDescribedby;return[i("b-form-radio-group",{attrs:{options:[{text:"Plain",value:"plain"},{text:"Color",value:"color"},{text:"Image",value:"image"},{text:"Panorama",value:"panorama"}],"aria-describedby":n,"button-variant":"outline-primary",buttons:""},on:{change:t.update},model:{value:t.step.display_type,callback:function(e){t.$set(t.step,"display_type",e)},expression:"step.display_type"}})]}}])}),t._v(" "),i("b-form-group",{attrs:{label:"Description display type"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.ariaDescribedby;return[i("b-form-radio-group",{attrs:{options:[{text:"Horizontal flip",value:"flip-y"},{text:"Vertical flip",value:"flip-x"},{text:"Popup",value:"popup"}],"aria-describedby":n,"button-variant":"outline-primary",buttons:""},on:{change:t.update},model:{value:t.step.description_type,callback:function(e){t.$set(t.step,"description_type",e)},expression:"step.description_type"}})]}}])}),t._v(" "),i("b-form-group",{staticClass:"mb-0",attrs:{label:"Variation card size"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.ariaDescribedby;return[i("b-form-radio-group",{attrs:{options:[{text:"Small",value:"sm"},{text:"Medium",value:"md"},{text:"Large",value:"lg"},{text:"Custom",value:"cs"}],"aria-describedby":n,"button-variant":"outline-primary",buttons:""},on:{change:t.update},model:{value:t.step.card_size,callback:function(e){t.$set(t.step,"card_size",e)},expression:"step.card_size"}})]}}])})],1),t._v(" "),"cs"===t.step.card_size?i("div",{staticClass:"custom-card-size"},[t._m(0),t._v(" "),["image","panorama","plain"].includes(t.step.display_type)?i("div",[i("div",{staticClass:"form-inline justify-content-between"},[i("div",{staticClass:"form-group mb-0"},[i("label",{attrs:{for:"custom-card-size-scale-"+t.model.id}},[t._v("Scale:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model.number",value:t.step.card_scale,expression:"step.card_scale",modifiers:{number:!0}}],staticClass:"form-control mx-1",attrs:{type:"number",id:"custom-card-size-scale-"+t.model.id,step:"1",min:"1",max:"200",disabled:!t.canEdit},domProps:{value:t.step.card_scale},on:{input:function(e){e.target.composing||t.$set(t.step,"card_scale",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}}),t._v("\n            %\n          ")])])]):i("div",[i("b",{staticClass:"text-danger"},[t._v("Not supported")])])]):t._e()]),t._v(" "),t.showValueForm?i("div",{staticClass:"input-group mt-2"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.value.name,expression:"value.name"}],ref:"valueName",staticClass:"form-control",attrs:{type:"text",placeholder:"Add Variation"},domProps:{value:t.value.name},on:{keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.createValue.apply(null,arguments)},function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"]))return null;t.showValueForm=!1}],input:function(e){e.target.composing||t.$set(t.value,"name",e.target.value)}}}),t._v(" "),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"btn btn-primary",attrs:{disabled:!t.value.name},on:{click:t.createValue}},[t._v("OK")])])]):t.canManage?i("button",{staticClass:"btn w-100 btn-outline-primary my-2",on:{click:t.addValue}},[i("i",{staticClass:"fa fa-plus"}),t._v(" Add Variation\n  ")]):t._e(),t._v(" "),t.values.length?i("scroll",{style:{height:t.scrollHeight+"px"}},[i("draggable",{model:{value:t.values,callback:function(e){t.values=e},expression:"values"}},t._l(t.values,(function(e){return i("value",{key:e.id,attrs:{model:e,step:t.step,"can-manage":t.canManage}})})),1)],1):t._e(),t._v(" "),i("b-modal",{attrs:{id:"panorama-modal-"+t.model.id,"no-close-on-esc":""},scopedSlots:t._u([{key:"modal-title",fn:function(){return[i("div",{staticClass:"text-center"},[i("h4",[t._v("Set custom image position")])])]},proxy:!0},{key:"modal-footer",fn:function(){return[i("button",{staticClass:"btn btn-danger",attrs:{type:"button"},on:{click:t.resetPosition}},[t._v("Reset")]),t._v(" "),i("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:t.savePosition}},[t._v("Save")])]},proxy:!0}])},[t._v(" "),i("div",{ref:"panorama",staticStyle:{height:"300px"}}),t._v(" "),i("div",{staticClass:"d-flex mt-2"},[i("div",{staticClass:"border flex-fill p-2"},[t._v("Zoom: "+t._s(t.image_zoom?t.image_zoom:50))]),t._v(" "),i("div",{staticClass:"border flex-fill p-2 mx-1"},[t._v("Pitch: "+t._s(t.image_pitch?t.image_pitch:0))]),t._v(" "),i("div",{staticClass:"border flex-fill p-2"},[t._v("Yaw: "+t._s(t.image_yaw?t.image_yaw:0))])])])],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",[n("b",[t._v("Custom Variation Card Size")])])}],!1,null,"11b9714c",null).exports;var E=n(8894),T=n(1414),O=n(8170);const k={components:{Value:u.A,scroll:o.A,draggable:r(),Step:S,CreateStep:E.A,BranchStep:T.default,BranchSteps:O.A},mixins:[a.A,s.A],props:["store","steps","canManage"],data:function(){return{width:null,height:null}},computed:{stepModels:{get:function(){return l.A.query().where("branch_id",null).orderBy("order").get()},set:function(t){this.reorder(t)}},branchSteps:function(){return l.A.query().where("is_branch",!0).with("values").get()},branches:function(){var t=[];return this.branchSteps.forEach((function(e){e.values.forEach((function(e){t.push({id:e.id,name:e.name})}))})),t},grouping:function(){return this.$store.state.grouping},showVariations:function(){return this.$store.state.show_variations},scrollStyles:function(){return{width:"".concat(this.width,"px"),height:"".concat(this.height,"px")}},hasPanoramas:function(){return!!this.stepModels.filter((function(t){return"panorama"===t.display_type})).length}},methods:{moveSteps:function(){var t=this.stepModels.filter((function(t){return!t.is_branch})).map((function(t){return t.id}));this.moveStepsToBranch(t)},toggleGrouping:function(){this.$store.commit("setGrouping",!this.grouping)},toggleReordering:function(){var t=this;this.$store.commit("setReordering",!this.reordering),this.reordering&&(this.checkOrder(this.stepModels),this.branchSteps.forEach((function(e){e.values.forEach((function(e){var n=l.A.query().where("branch_id",e.id).orderBy("order").get();t.checkOrder(n,e.id)}))})))},checkOrder:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=!1,i=[];t.forEach((function(t,e){i.push({id:t.id,order:e+1}),t.order!==e+1&&(console.log("need fix",t.id,t.order,e+1),n=!0)})),console.log("order",i),n&&(console.log("fix",n),this.updateOrder(i,e))},toggleVariations:function(){this.$store.commit("setShowVariations",!this.showVariations)}},mounted:function(){var t=this;this.$store.commit("setCanManage",this.canManage);var e=$("#scroll");this.height=window.innerHeight-(e.offset().top+30),this.height<400&&(this.height=600),window.addEventListener("resize",(function(){t.height=window.innerHeight-(e.offset().top+30),t.height<400&&(t.height=600)})),this.width=this.$refs.builder.clientWidth,this.steps&&l.A.insert({data:this.steps})}};const A=(0,C.A)(k,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"builder",staticClass:"row",attrs:{id:"step-builder"}},[t.canManage?n("div",{staticClass:"col-12 mb-4"},[n("div",{staticClass:"d-flex align-items-center justify-content-between"},[n("div",[t.reordering?n("ul",[n("li",[t._v("Drag & drop steps to reorder and add steps to branches.\n            To move grouped steps please ungroup them first.\n          ")]),t._v(" "),n("li",[t._v("Unreachable step - a step the user cannot get to, because there is a branch step before it.")]),t._v(" "),n("li",[t._v("To move unreachable steps from the main tree to a branch,\n            please select a branch from the list below.\n          ")])]):t._e()]),t._v(" "),n("div",{staticClass:"d-flex"},[t.reordering?t._e():[t.showVariations?n("button",{staticClass:"btn btn-primary mx-1",on:{click:t.toggleVariations}},[t._v("Hide Variations\n          ")]):n("button",{staticClass:"btn btn-primary mx-1",on:{click:t.toggleVariations}},[t._v("Show Variations")])],t._v(" "),t.reordering?n("button",{staticClass:"btn btn-primary mx-1",on:{click:t.toggleReordering}},[t._v("Lock Reordering")]):n("button",{staticClass:"btn btn-primary mx-1",on:{click:t.toggleReordering}},[t._v("Reorder")]),t._v(" "),t.grouping?n("button",{staticClass:"btn btn-primary ml-1",on:{click:t.toggleGrouping}},[t._v("Lock Grouping")]):n("button",{staticClass:"btn btn-primary ml-1",on:{click:t.toggleGrouping}},[t._v("Group")]),t._v(" "),n("a",{staticClass:"ml-2",attrs:{href:t.store.link,target:"_blank"}},[n("i",{staticClass:"fa fa-2x fa-external-link"})])],2)])]):t._e(),t._v(" "),n("div",{staticClass:"col-12"},[t.reordering&&t.branchSteps.length?n("div",{staticClass:"row"},[n("div",{staticClass:"col-3"},[n("label",{staticClass:"mb-0"},[t._v("Move unreachable steps from main branch:")]),t._v(" "),n("div",{staticClass:"input-group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.branch_id,expression:"branch_id"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.branch_id=e.target.multiple?n:n[0]}}},t._l(t.branches,(function(e){return n("option",{domProps:{value:e.id}},[t._v(t._s(e.name))])})),0),t._v(" "),n("div",{staticClass:"input-group-append"},[n("button",{staticClass:"btn btn-sm btn-primary",attrs:{disabled:null===t.branch_id},on:{click:t.moveSteps}},[t._v("Move")])])])])]):t._e(),t._v(" "),n("scroll",{style:t.scrollStyles,attrs:{id:"scroll","keep-show":!0,size:"10px"}},[n("draggable",{staticClass:"draggable d-flex mt-5",class:{dragging:t.reordering},attrs:{group:"steps",draggable:".reordering",disabled:!t.reordering},on:{start:t.startDrag,end:t.endDrag},model:{value:t.stepModels,callback:function(e){t.stepModels=e},expression:"stepModels"}},[t._l(t.stepModels,(function(t){return n("branch-step",{key:t.id,attrs:{model:t}})})),t._v(" "),n("div",{staticClass:"branch-name",attrs:{slot:"header"},slot:"header"},[t._v("Main branch")]),t._v(" "),n("div",{attrs:{slot:"footer"},slot:"footer"},[t.canManage?n("create-step",{attrs:{order:t.stepModels.length+1}}):t._e()],1)],2)],1)],1)])}),[],!1,null,"5f9f27b6",null).exports},5993:(t,e,n)=>{"use strict";n.d(e,{A:()=>m});var i=n(204),r=n(8858);const o={name:"nullable",props:{value:{}}};var a=n(4486);const s=(0,a.A)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",[t.value?[t._v(t._s(t.value))]:n("i",{staticClass:"fa fa-times text-danger"})],2)}),[],!1,null,null,null).exports;var l=n(5160),c=n.n(l);Vue.use(c(),{duration:2e3});const u={name:"drafts",components:{scroll:i.A,Nullable:s},mixins:[r.A],props:["store","drafts","canManage"],data:function(){return{settings:{maxScrollbarLength:60},fetchingModels:[],data:[],model:null}},methods:{getImage:function(t){return t&&t.model?t.model.thumb:"/images/image-placeholder.png"},getAttrTitle:function(t){return t.replaceAll("_"," ")},showDiff:function(t){this.model=t,this.$bvModal.show("changes-modal")},acceptAll:function(){var t=this;this.confirm((function(){t.fetching=!0,axios.post("/drafts/accept-all").then((function(e){t.data=e.data.data})).finally((function(){t.fetching=!1}))}))},declineAll:function(){var t=this;this.confirm((function(){t.fetching=!0,axios.post("/drafts/decline-all").then((function(e){t.data=e.data.data})).finally((function(){t.fetching=!1}))}))},accept:function(t){var e=this;this.fetching=!0,this.fetchingModels.push(t.id),axios.post("/drafts/".concat(t.id,"/accept")).then((function(t){e.data=t.data.data})).finally((function(){var n=e.fetchingModels.findIndex((function(e){return e===t.id}));e.fetchingModels.splice(n,1),e.fetching=!1}))},decline:function(t){var e=this;this.fetching=!0,this.fetchingModels.push(t.id),axios.post("/drafts/".concat(t.id,"/decline")).then((function(t){e.data=t.data.data})).finally((function(){var n=e.fetchingModels.findIndex((function(e){return e===t.id}));e.fetchingModels.splice(n,1),e.fetching=!1}))},getName:function(t){return"price"===t.type?"Price":t.model?t.model.name:null},getDrafts:function(){var t=this;axios.get("/drafts").then((function(e){t.data=e.data.data})).finally((function(){t.fetching=!1}))}},mounted:function(){var t=this;this.drafts&&(this.data=this.drafts),setInterval((function(){t.getDrafts()}),3e4)}};var d=n(5072),h=n.n(d),p=n(9055),f={insert:"head",singleton:!1};h()(p.A,f);p.A.locals;const m=(0,a.A)(u,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"unpi_container"},[t.fetching?n("loader",{attrs:{preloader:t.store.preloaderPath}}):t._e(),t._v(" "),n("div",[n("div",{staticClass:"list_container"},[n("scroll",{staticStyle:{height:"600px"},attrs:{"keep-show":!0}},[n("table",{staticClass:"table table-sm shadow-none product-table"},[n("thead",{staticClass:"table_head_snap"},[n("tr",[n("th",{staticClass:"title_header product_title_th",attrs:{scope:"col"}},[t._v("Action")]),t._v(" "),n("th",{staticClass:"title_header product_title_th",attrs:{scope:"col"}},[t._v("Type")]),t._v(" "),n("th",{staticClass:"title_header product_title_th column-draft",attrs:{scope:"col"}},[t._v("Draft")]),t._v(" "),n("th",{staticClass:"title_header product_title_th",attrs:{scope:"col"}},[t._v("Preview")]),t._v(" "),n("th",{staticClass:"title_header product_title_th",attrs:{scope:"col"}},[t._v("Date")]),t._v(" "),n("th",{staticClass:"text-right",attrs:{scope:"col"}},[t.canManage&&t.data.length>1?[n("button",{staticClass:"button btn btn-primary",attrs:{title:"Accept All"},on:{click:function(e){return t.acceptAll()}}},[n("i",{staticClass:"fa fa-check"})]),t._v(" "),n("button",{staticClass:"button btn btn-danger",attrs:{title:"Decline All"},on:{click:function(e){return t.declineAll()}}},[n("i",{staticClass:"fa fa-times"})])]:t._e()],2)])]),t._v(" "),n("tbody",[t._l(t.data,(function(e){return n("tr",[n("td",{staticClass:"table_pro_name"},["created"===e.action?n("span",{staticClass:"badge badge-success"},[t._v("Created")]):"updated"===e.action?n("span",{staticClass:"badge badge-primary"},[t._v("Updated")]):"deleted"===e.action?n("span",{staticClass:"badge badge-danger"},[t._v("Deleted")]):"updated relationships"===e.action?n("span",{staticClass:"badge badge-secondary"},["image"===e.type?n("span",[t._v("updated parent images")]):"price"===e.type?n("span",[t._v("updated parent variations")]):n("span",[t._v(t._s(e.action))])]):n("span",{staticClass:"badge badge-secondary"},[t._v(t._s(e.action))])]),t._v(" "),n("td",["image"===e.type?n("i",{staticClass:"fa fa-image text-info"}):t._e(),t._v(" "),"variation image"===e.type?n("i",{staticClass:"fa fa-image text-success"}):"price"===e.type?n("i",{staticClass:"fa fa-dollar text-success"}):"variation"===e.type?n("i",{staticClass:"fa fa-bars text-secondary"}):"step"===e.type?n("i",{staticClass:"fa fa-square text-primary"}):t._e(),t._v(" "),n("span",{staticClass:"text-capitalize"},[t._v(t._s(e.type))])]),t._v(" "),n("td",{staticClass:"column-draft"},[n("div",{staticClass:"d-flex align-items-center"},[e.step||e.value?n("div",{staticClass:"pr-2 mr-2 border-right"},[e.step?n("div",{attrs:{title:"Step"}},[n("i",{staticClass:"fa fa-square text-primary"}),t._v(" "),n("small",[t._v(t._s(e.step))])]):t._e(),t._v(" "),e.value?n("div",{attrs:{title:"Variation"}},[n("i",{staticClass:"fa fa-bars text-secondary"}),t._v(" "),n("small",[t._v(t._s(e.value))])]):t._e()]):t._e(),t._v(" "),"updated relationships"!==e.action||"image"!==e.type&&"variation image"!==e.type?n("div",[t._v(t._s(t.getName(e)))]):n("div",{},[n("img",{staticClass:"img-fluid",attrs:{src:t.getImage(e)}})])])]),t._v(" "),n("td",{staticClass:"column-preview"},["updated relationships"===e.action?n("span",[n("Nullable",{attrs:{value:e.old_values.length?e.old_values:null}}),t._v(" "),n("i",{staticClass:"fa fa-arrow-right"}),t._v(" "),n("Nullable",{attrs:{value:e.new_values.length?e.new_values:null}}),t._v(";\n              ")],1):"image"===e.type||"variation image"===e.type?n("img",{staticClass:"img-fluid",attrs:{src:t.getImage(e)}}):t._l(e.new_values,(function(i,r){return n("span",{staticClass:"mr-2"},[n("b",{staticClass:"text-capitalize"},[t._v(t._s(t.getAttrTitle(r))+":")]),t._v(" "),n("Nullable",{attrs:{value:e.old_values[r]}}),t._v(" "),n("i",{staticClass:"fa fa-arrow-right"}),t._v(" "),n("Nullable",{attrs:{value:i}}),t._v(";\n              ")],1)}))],2),t._v(" "),n("td",[t._v(t._s(e.updated_at))]),t._v(" "),n("td",{staticClass:"column-actions text-right"},[t.canManage&&e.model?["updated"===e.action&&"price"!==e.type||"updated relationships"===e.action?n("button",{staticClass:"button btn btn-primary",attrs:{title:"Show Changed Attributes"},on:{click:function(n){return t.showDiff(e)}}},[n("i",{staticClass:"fa fa-eye"})]):t._e(),t._v(" "),n("button",{staticClass:"button btn btn-primary",attrs:{title:"Accept"},on:{click:function(n){return t.accept(e)}}},[n("i",{staticClass:"fa fa-check"})]),t._v(" "),n("button",{staticClass:"button btn btn-danger",attrs:{title:"Decline"},on:{click:function(n){return t.decline(e)}}},[n("i",{staticClass:"fa fa-times"})])]:t._e()],2)])})),t._v(" "),t.data.length?t._e():n("tr",[n("td",{staticClass:"p-4 text-center",attrs:{colspan:"5"}},[t._v("You have no Drafts")])])],2)])])],1)]),t._v(" "),n("b-modal",{attrs:{id:"changes-modal","hide-footer":""},scopedSlots:t._u([{key:"modal-title",fn:function(){return[n("div",{staticClass:"text-center"},[n("h4",[t._v("Changed attributes")])])]},proxy:!0}])},[t._v(" "),n("div",{staticClass:"row"},[t.model?n("div",{staticClass:"col-12"},["updated relationships"===t.model.action?n("div",{staticClass:"d-flex justify-content-between align-items-center"},[n("div",{staticClass:"flex-fill"},[t._l(t.model.old_relationships,(function(e){return t.model.old_values.length?n("div",[t._v(t._s(e))]):t._e()})),t._v(" "),t.model.old_values.length?t._e():n("Nullable",{attrs:{value:!1}})],2),t._v(" "),n("div",{staticClass:"flex-fill"},[n("i",{staticClass:"fa fa-arrow-right"})]),t._v(" "),n("div",{staticClass:"flex-fill"},[t._l(t.model.new_relationships,(function(e){return t.model.new_values.length?n("div",[t._v(t._s(e))]):t._e()})),t._v(" "),t.model.new_values.length?t._e():n("Nullable",{attrs:{value:!1}})],2)]):t._l(t.model.new_values,(function(e,i){return n("div",{staticClass:"py-2 border-bottom"},["parent_id"===i?[n("b",{staticClass:"text-capitalize"},[t._v("Parent:")]),t._v(" "),n("Nullable",{attrs:{value:t.model.old_parent}}),t._v(" "),n("i",{staticClass:"fa fa-arrow-right"}),t._v(" "),n("Nullable",{attrs:{value:t.model.new_parent}})]:[n("b",{staticClass:"text-capitalize"},[t._v(t._s(t.getAttrTitle(i))+":")]),t._v(" "),n("Nullable",{attrs:{value:t.model.old_values[i]}}),t._v(" "),n("i",{staticClass:"fa fa-arrow-right"}),t._v(" "),n("Nullable",{attrs:{value:e}})]],2)}))],2):t._e()])])],1)}),[],!1,null,"462cfe78",null).exports},1315:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const i={name:"feedback-form",components:{},mixins:[n(8858).A],props:["type","user"],data:function(){return{successMessage:null,form:{type:this.type,name:this.user.name,title:null,description:null}}},computed:{title:function(){return"report"===this.type?"Bug title":"request"===this.type?"Feature title":"Subject"},description:function(){return"report"===this.type?"Bug description":"request"===this.type?"Feature description":"Message"}},methods:{send:function(){var t=this;this.fetching=!0,axios.post("/help",this.form).then((function(e){t.successMessage=e.data.data.message})).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))}}};const r=(0,n(4486).A)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col-xl-6 col-md-12"},[t.successMessage?n("div",{staticClass:"list_container p-2 p-lg-5 p-md-3"},[n("div",{staticClass:"p-2 p-lg-5 p-md-3 border border-success rounded"},[t._m(0),t._v(" "),n("p",{staticClass:"text-center"},[t._v(t._s(t.successMessage))])])]):n("div",{staticClass:"list_container p-2 p-lg-5 p-md-3"},["report"===t.type?n("div",[t._m(1),t._v(" "),t._m(2)]):t._e(),t._v(" "),"request"===t.type?n("div",[t._m(3),t._v(" "),t._m(4)]):t._e(),t._v(" "),"contact"===t.type?n("div",[t._m(5),t._v(" "),t._m(6)]):t._e(),t._v(" "),n("div",{staticClass:"mt-5 p-2 p-lg-5 p-md-3 border rounded"},[n("form",{on:{submit:function(e){return e.preventDefault(),t.send.apply(null,arguments)}}},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v("Name:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.name,expression:"form.name"}],staticClass:"form-control",attrs:{type:"text",id:"name",required:""},domProps:{value:t.form.name},on:{input:function(e){e.target.composing||t.$set(t.form,"name",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{staticClass:"required",attrs:{for:"title"}},[t._v(t._s(t.title)+":")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.title,expression:"form.title"}],staticClass:"form-control",attrs:{type:"text",id:"title",required:""},domProps:{value:t.form.title},on:{input:function(e){e.target.composing||t.$set(t.form,"title",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"description"}},[t._v(t._s(t.description)+":")]),t._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.description,expression:"form.description"}],staticClass:"form-control",attrs:{id:"description",rows:"4",required:""},domProps:{value:t.form.description},on:{input:function(e){e.target.composing||t.$set(t.form,"description",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"text-center mt-5"},[n("button",{staticClass:"btn btn-primary",attrs:{type:"submit",disabled:t.fetching}},[t._v("Send")])])])])])])])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h3",{staticClass:"text-center"},[n("i",{staticClass:"fa fa-check text-success"}),t._v(" Success!")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h3",{staticClass:"text-center"},[n("i",{staticClass:"fa fa-bug text-primary",staticStyle:{"font-size":"22px"}}),t._v(" Report a bug\n        ")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",{staticClass:"text-center"},[t._v("Have you found a bug? Let us know what is the issue is so we can get it\n          fixed for you asap."),n("br"),t._v("\n          Please provide as much details as possible.")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h3",{staticClass:"text-center"},[n("img",{staticStyle:{"margin-bottom":"0.4rem"},attrs:{src:"/images/icons/idea.svg",height:"19"}}),t._v(" Request a feature\n        ")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",{staticClass:"text-center"},[t._v("Anything you're missing in our software? Drop us a message and let us know."),n("br"),t._v("\n          Please provide as much details as possible.")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h3",{staticClass:"text-center"},[n("img",{staticClass:"mb-1",attrs:{src:"/images/icons/phone.svg",height:"19"}}),t._v(" Contact us\n        ")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",{staticClass:"text-center"},[t._v("Got a question? We'd love to hear from you."),n("br"),t._v("\n          Send us a message and we'll respond as soon as possible.")])}],!1,null,null,null).exports},7029:(t,e,n)=>{"use strict";n.d(e,{A:()=>_});var i=n(4953),r=n(1809),o=n(4879),a=n(7965);function s(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}const c={name:"feedback-tabs",components:{Drop:o.Drop,TabForm:a.A,BIconPencilSquare:r.ix_},props:["tabs","canManage"],data:function(){return{params:{id:null,type:""},tabForEdit:{},isTabFormOpen:!1,list:[],dragTab:null}},methods:{handleClick:function(t){this.params.id=t,this.$emit("change",this.params)},change:function(){this.$emit("change",this.params)},editTab:function(t){this.tabForEdit=t,this.isTabFormOpen=!0},formHide:function(){this.isTabFormOpen=!1,this.tabForEdit={}},updateTabs:function(t){if(t.isUpdated){var e=this.list.findIndex((function(e){return e.id===t.tab.id}));this.list[e].title=t.tab.title}else if(t.deleted){var n=this.list.findIndex((function(e){return e.id===t.tab.id}));this.list.splice(n,1),this.params.id=null,this.change()}else this.list.push(t.tab)},drop:function(t,e){var n=e.target.getAttribute("tab-id");this.dragTab=null,this.$emit("drop",{id:t.id,tabId:n})}},created:function(){this.tabs&&(this.list=s(this.tabs))}};var u=n(5072),d=n.n(u),h=n(2040),p={insert:"head",singleton:!1};d()(h.A,p);h.A.locals;var f=n(4486);function m(t){return function(t){if(Array.isArray(t))return v(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return v(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const y={name:"feedbacks",components:{FeedbackTabs:(0,f.A)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"t-tabs"},[n("div",{staticClass:"t-tab user-select-none cursor_pointer",class:{active:!t.params.id},attrs:{id:"tab"},on:{click:function(e){return t.handleClick(null)}}},[n("drop",{staticClass:"drop",class:{over:"folder"===t.dragTab},on:{dragover:function(e){t.dragTab="folder"},dragleave:function(e){t.dragTab=null},drop:t.drop}},[t._v("\n        Folder\n      ")])],1),t._v(" "),t._l(t.list,(function(e,i){return n("div",{key:i,staticClass:"t-tab user-select-none cursor_pointer custom-tab",class:{active:t.params.id===e.id},on:{click:function(n){return t.handleClick(e.id)}}},[t.canManage?n("div",{staticClass:"custom-tab-icon",on:{mousedown:function(n){return t.editTab(e)}}},[n("b-icon-pencil-square",{attrs:{title:"Edit"}})],1):t._e(),t._v(" "),n("drop",{staticClass:"drop",class:{over:t.dragTab===e.id},attrs:{"tab-id":e.id},on:{dragover:function(n){t.dragTab=e.id},dragleave:function(e){t.dragTab=null},drop:t.drop}},[t._v("\n        "+t._s(e.title)+"\n      ")])],1)})),t._v(" "),n("div",{staticClass:"t-tab user-select-none cursor_pointer",class:{active:"trash"===t.params.id},on:{click:function(e){return t.handleClick("trash")}}},[n("drop",{staticClass:"drop",class:{over:"trash"===t.dragTab},attrs:{"tab-id":"trash"},on:{dragover:function(e){t.dragTab="trash"},dragleave:function(e){t.dragTab=null},drop:t.drop}},[t._v("\n        Trash\n      ")])],1),t._v(" "),t.canManage?n("div",{staticClass:"t-tab user-select-none cursor_pointer mt-md-3",on:{click:function(e){t.isTabFormOpen=!0}}},[t._v("\n      Add New Tab\n    ")]):t._e(),t._v(" "),n("div",{staticClass:"mt-3"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.params.type,expression:"params.type"}],staticClass:"form-control pl-1",attrs:{name:"type",id:"feedback-type"},on:{change:[function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.params,"type",e.target.multiple?n:n[0])},t.change]}},[n("option",{attrs:{value:"",selected:""}},[t._v("All types")]),t._v(" "),n("option",{attrs:{value:"report"}},[t._v("Bugs")]),t._v(" "),n("option",{attrs:{value:"request"}},[t._v("Features")]),t._v(" "),n("option",{attrs:{value:"contact"}},[t._v("Contacts")])])])],2),t._v(" "),n("tab-form",{attrs:{tab:t.tabForEdit,visible:t.isTabFormOpen,"base-url":"feedback-tabs"},on:{hide:t.formHide,tabsChanged:t.updateTabs}})],1)}),[],!1,null,null,null).exports},mixins:[n(8858).A],props:["feedbacks","tabs","canManage"],data:function(){return{baseUrl:"notifications",feedback:{id:null},list:[],params:{tab_id:null,search:null,type:null}}},watch:{"params.search":(0,i.debounce)((function(t){this.fetch()}),300)},methods:{setTab:function(t,e){var n=this;axios.post("/".concat(this.baseUrl,"/").concat(t,"/tab"),{tab_id:e}).then((function(e){n.removeItem(t)}))},fetch:function(t){var e=this;t&&(this.params.tab_id=t.id,this.params.type=t.type);var n="/".concat(this.baseUrl,"?");this.params.tab_id&&(n+="tab_id=".concat(this.params.tab_id)),this.params.search&&(n+="search=".concat(this.params.search)),this.params.type&&(n+="type=".concat(this.params.type)),axios.get(n).then((function(t){e.setList(t.data.data)}))},moveToTab:function(t){"trash"===t.tabId?this.deleteFeedback(t.id):this.setTab(t.id,t.tabId)},view:function(t){this.feedback=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?g(Object(n),!0).forEach((function(e){b(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t),this.$bvModal.show("feedback-modal")},deleteFeedback:function(t){var e=this;axios.delete("/".concat(this.baseUrl,"/").concat(t)).then((function(n){e.removeItem(t)})).catch((function(){e.alertErrors()}))},removeItem:function(t){var e=this.list.findIndex((function(e){return e.id===t}));this.list.splice(e,1)},setList:function(t){this.list=m(t);var e=sessionStorage.getItem("last-seen-feedback");t.length&&t[0].id>e&&sessionStorage.setItem("last-seen-feedback",t[0].id)}},mounted:function(){this.feedbacks&&this.feedbacks.length&&this.setList(this.feedbacks)}};const _=(0,f.A)(y,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"component_container"},[n("feedback-tabs",{ref:"tabs",attrs:{id:"query-tabs",tabs:t.tabs,"can-manage":t.canManage},on:{drop:t.moveToTab,change:t.fetch}}),t._v(" "),n("div",{attrs:{id:"query-tab-content"}},[t.fetching?n("loader"):t._e(),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.fetching,expression:"!fetching"}],staticClass:"list_container"},[n("div",{staticClass:"table-responsive"},[n("table",{staticClass:"table qs-table query-table"},[n("thead",{staticClass:"table_head_snap"},[n("tr",[n("th",{},[t._v("User")]),t._v(" "),n("th",{},[t._v("Store")]),t._v(" "),n("th",{},[t._v("Type")]),t._v(" "),n("th",{},[t._v("Title")]),t._v(" "),n("th",{},[t._v("Date")]),t._v(" "),n("th",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.params.search,expression:"params.search"}],staticClass:"form-control",staticStyle:{width:"200px",float:"right"},attrs:{type:"search",name:"search",placeholder:"Search"},domProps:{value:t.params.search},on:{input:function(e){e.target.composing||t.$set(t.params,"search",e.target.value)}}})])])]),t._v(" "),n("tbody",[t._l(t.list,(function(e){return n("tr",[n("td",{},[n("drag",{staticClass:"drag_area",staticStyle:{"margin-left":"10px"},attrs:{"transfer-data":{id:e.id},draggable:t.canManage}},[t._v(t._s(e.name)+" ("+t._s(e.user.email)+")\n              ")])],1),t._v(" "),n("td",{},[t._v(t._s(e.store.name))]),t._v(" "),n("td",{},["request"===e.type?n("span",{staticClass:"badge badge-success"},[t._v("Request a feature")]):"report"===e.type?n("span",{staticClass:"badge badge-danger"},[t._v("Report a bug")]):n("span",{staticClass:"badge badge-primary"},[t._v("Contact us")])]),t._v(" "),n("td",{},[t._v(t._s(e.title))]),t._v(" "),n("td",{},[t._v(t._s(t.formatDate(e.created_at,!0)))]),t._v(" "),n("td",[n("div",{staticClass:"d-flex justify-content-end align-middle"},[n("button",{staticClass:"btn btn-primary edit-btn mr-2",attrs:{title:"View"},on:{click:function(n){return t.view(e)}}},[n("i",{staticClass:"fa fa-eye"})]),t._v(" "),t.canManage?n("a",{attrs:{href:"javascript:;",title:"Delete"},on:{click:function(n){return t.deleteFeedback(e.id)}}},[n("i",{staticClass:"text-danger delete-btn"})]):t._e()])])])})),t._v(" "),t.list.length?t._e():n("tr",[n("td",{attrs:{colspan:"6"}},[t._v("No data found")])])],2)])])])],1),t._v(" "),n("b-modal",{attrs:{id:"feedback-modal","hide-footer":""},scopedSlots:t._u([{key:"modal-title",fn:function(){return[n("div",{staticClass:"text-center"},[n("h4",["report"===t.feedback.type?n("i",{staticClass:"fa fa-bug text-primary"}):"request"===t.feedback.type?n("img",{attrs:{src:"/images/icons/idea.svg",height:"28"}}):n("img",{attrs:{src:"/images/icons/phone.svg",height:"26"}}),t._v("\n          "+t._s(t.feedback.title)+"\n        ")])])]},proxy:!0}])},[t._v(" "),n("div",{staticClass:"row"},[t.feedback.id>0?n("div",{staticClass:"col-12"},[t._v("\n        "+t._s(t.feedback.name)+" ("+t._s(t.feedback.user.email)+") from "),n("b",[t._v(t._s(t.feedback.store.name))]),t._v(" "),"report"===t.feedback.type?n("span",[t._v("reported a bug:")]):"request"===t.feedback.type?n("span",[t._v("requested a feature:")]):n("span",[t._v("asked to be contacted:")]),t._v(" "),n("div",{staticClass:"jumbotron p-3 mt-2"},[t._v(t._s(t.feedback.description))])]):t._e()])])],1)}),[],!1,null,null,null).exports},3620:(t,e,n)=>{"use strict";n.d(e,{A:()=>C});var i=n(8858),r=n(4297),o=n(7376),a=n(967);function s(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const h={name:"managed-users",props:{current:{type:Object},roles:{},stores:{},users:{}},mixins:[i.A],components:{},data:function(){return{user:{id:null,store_id:null,role:null,name:null,email:null},list:[]}},computed:{storeOptions:function(){return this.stores.map((function(t){return{id:t.id,label:t.name}}))},roleOptions:function(){return this.roles.map((function(t){return{id:t.name,label:t.display_name}}))}},methods:{edit:function(t){this.user.id===t.id?this.reset():this.user=u({},t)},submit:function(){this.user.id?this.update():this.create()},checkClient:function(){var t=this;return this.fetching=!0,a.A.find(this.user,"managed-client-user").catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))},create:function(){var t=this;this.checkClient().then((function(e){if(e)if(e.data.data.found){if(!e.data.data.can_add)return void t.alertErrors("This email belongs to a user who can't be an admin.");t.addUser(e.data.data.found)}else t.addUser()}))},addUser:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.fetching=!0,axios.post("/client-manager/managed-users",u(u({},this.user),{},{user_id:e})).then((function(e){t.list.push(e.data.data),t.successNotice("User created and invitation sent."),t.reset()})).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))},update:function(){var t=this;this.fetching=!0,axios.post("/client-manager/managed-users/".concat(this.user.id),this.user).then((function(e){var n=t.list.findIndex((function(e){return e.id===t.user.id}));t.list[n]=e.data.data,t.successNotice("User updated.")})).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))},deleteUser:function(t){var e=this;this.confirm((function(){e.fetching=!0,axios.delete("/client-manager/admins/".concat(t.id)).then((function(n){var i=e.list.findIndex((function(e){return e.id===t.id}));e.list.splice(i,1),e.user.id===t.id&&e.reset(),e.successNotice("User deleted.")})).catch((function(t){e.alertErrors(t.response.data)})).finally((function(){e.fetching=!1}))}))},invite:function(t){var e=this;this.confirm((function(){e.fetching=!0,axios.post("/client-manager/admins/".concat(t.id,"/invite")).then((function(t){e.successNotice("Invitation sent.")})).catch((function(t){e.alertErrors(t.response.data)})).finally((function(){e.fetching=!1}))}),null,{text:"Invitation will be sent by email"})},reset:function(){this.user={id:null,store_id:null,role:null,name:null,email:null}}},mounted:function(){this.list=s(this.users)}};var p=n(5072),f=n.n(p),m=n(9361),v={insert:"head",singleton:!1};f()(m.A,v);m.A.locals;var g=n(4486);const b=(0,g.A)(h,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[t.fetching?n("loader",{staticStyle:{position:"fixed"}}):t._e(),t._v(" "),n("div",{staticClass:"col-md-6"},[t.user.id?n("h4",{staticClass:"mb-4"},[t._v("Update User")]):n("h4",{staticClass:"mb-4"},[t._v("Create User")]),t._v(" "),n("form",{on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[t.user.id?t._e():[n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"client-store"}},[t._v("Store*")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("treeselect",{attrs:{id:"user-role",options:t.storeOptions,clearable:!1,placeholder:"Select Store"},model:{value:t.user.store_id,callback:function(e){t.$set(t.user,"store_id",e)},expression:"user.store_id"}})],1)]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"client-role"}},[t._v("Role*")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("treeselect",{attrs:{id:"client-role",options:t.roleOptions,clearable:!1,placeholder:"Select Role"},model:{value:t.user.role,callback:function(e){t.$set(t.user,"role",e)},expression:"user.role"}})],1)])],t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"client-name"}},[t._v("Name*")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.user.name,expression:"user.name"}],staticClass:"form-control",attrs:{type:"text",name:"name",id:"client-name",required:""},domProps:{value:t.user.name},on:{input:function(e){e.target.composing||t.$set(t.user,"name",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"client-email"}},[t._v("Email*")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.user.email,expression:"user.email"}],staticClass:"form-control",attrs:{type:"email",name:"email",id:"client-email",required:""},domProps:{value:t.user.email},on:{input:function(e){e.target.composing||t.$set(t.user,"email",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"mt-4 text-right"},[t.user.id?n("button",{staticClass:"button btn btn-secondary",attrs:{type:"button"},on:{click:function(e){return t.edit(t.user)}}},[t._v("\n          Cancel\n        ")]):t._e(),t._v(" "),n("button",{staticClass:"button btn btn-primary",attrs:{type:"submit"}},[t.user.id?[t._v("Update")]:[t._v("Create")]],2)])],2)]),t._v(" "),t.list.length?n("div",{staticClass:"col-md-6"},[n("h4",{staticClass:"mb-4"},[t._v("Users")]),t._v(" "),n("div",{staticClass:"table-responsive"},[n("table",{staticClass:"table shadow-none",attrs:{id:"managed-users"}},[t._m(0),t._v(" "),n("tbody",t._l(t.list,(function(e){return n("tr",{class:e.id===t.user.id?"active-stock":null},[n("td",[n("div",[t._v(t._s(e.name))]),t._v(" "),n("div",{staticClass:"text-black-50"},[t._v(t._s(e.email))])]),t._v(" "),n("td",[t._v(t._s(e.store_name))]),t._v(" "),n("td",{staticClass:"text-center"},[n("span",{domProps:{innerHTML:t._s(t.getRoleBadge(e.role))}})]),t._v(" "),n("td",[t._v(t._s(e.logged_at))]),t._v(" "),n("td",{staticClass:"user-actions text-right"},[e.verified?t._e():n("button",{staticClass:"button btn btn-primary",attrs:{title:"Invite"},on:{click:function(n){return t.invite(e)}}},[n("i",{staticClass:"fa fa-paper-plane"})]),t._v(" "),"client"!==e.role?n("button",{staticClass:"button btn btn-danger",attrs:{title:"Delete"},on:{click:function(n){return t.deleteUser(e)}}},[n("i",{staticClass:"fa fa-trash"})]):t._e()])])})),0)])])]):t._e()],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("thead",{staticClass:"table_head_snap"},[n("tr",[n("th",[t._v("User")]),t._v(" "),n("th",[t._v("Store")]),t._v(" "),n("th",{staticClass:"text-center"},[t._v("Role")]),t._v(" "),n("th",[t._v("Last Login")]),t._v(" "),n("th",{staticClass:"user-actions text-right"},[t._v("Actions")])])])}],!1,null,"115ace90",null).exports;function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){w(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function w(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const x={name:"master-client-settings",components:{UserDetails:r.A,Password:o.A,ManagedUsers:b},mixins:[i.A],props:["user","stores","users","roles"],data:function(){return{storeData:{client_name:null,phone:null,email:null,address:null},userData:{name:null,email:null}}},methods:{inviteClient:function(){var t=this;this.fetching=!0,axios.post("/client-manager/invite",{email:this.userData.email}).then((function(e){t.successNotice("Invitation has been sent.")})).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))}},mounted:function(){this.storeData=_({},this.store),this.userData=_({},this.user)}};const C=(0,g.A)(x,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"component_container change_password"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[t.user.logged_at?n("div",{staticClass:"list_container p-2 p-lg-5 p-md-3"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("h4",[t._v("Details")]),t._v(" "),n("user-details",{attrs:{user:t.user}})],1),t._v(" "),n("div",{staticClass:"col-md-6"},[n("h4",[t._v("Change Password")]),t._v(" "),n("password")],1)]),t._v(" "),n("hr"),t._v(" "),n("managed-users",{attrs:{roles:t.roles,stores:t.stores,users:t.users}})],1):n("div",{staticClass:"list_container p-2 p-lg-5 p-md-3"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("h4",{staticClass:"mb-4"},[t._v("Invite Client")]),t._v(" "),n("form",{on:{submit:function(e){return e.preventDefault(),t.inviteClient.apply(null,arguments)}}},[n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-md-4 col-form-label",attrs:{for:"client-email"}},[t._v("Email")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.userData.email,expression:"userData.email"}],staticClass:"form-control",attrs:{type:"email",name:"email",id:"client-email",required:""},domProps:{value:t.userData.email},on:{input:function(e){e.target.composing||t.$set(t.userData,"email",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"mt-4 text-right"},[n("button",{staticClass:"button btn btn-primary",attrs:{type:"submit",disabled:t.fetching}},[t._v("Send Login Link")])])])])])])])])])}),[],!1,null,null,null).exports},8824:(t,e,n)=>{"use strict";n.d(e,{A:()=>m});var i=n(8858),r=n(2385),o=n(2949),a=n(3969),s=n(1684),l=n(7342),c=n(2985);const u={name:"query",components:{QueryExporter:o.A},mixins:[i.A,r.A],props:["links","query","store","steps","userSettings","features"],data:function(){return{fetching:!1,cart:{}}},computed:{queryData:function(){return s.A.query().first()},userSetting:function(){return a.A.query().first()},values:function(){return l.A.query().get()},visibleSteps:function(){return c.A.query().where("show_in_quote",!0).get().map((function(t){return t.id}))}},methods:{getProductCode:function(t){if(t.sku)return t.sku;var e=this.values.find((function(e){return e.id===t.id}));return e?e.sku:null},formatPrice:function(t){return new Intl.NumberFormat("en-US",{style:"currency",currency:this.store.currency.code}).format(t)},deleteQuery:function(){var t=this;this.confirm((function(){axios.delete("/enquiry-manager/".concat(t.query.id)).then((function(t){window.location.href="/enquiry-manager"})).catch((function(e){t.alertErrors(e.response.data)}))}),null,{text:"You want do delete it! Will be moved to Trash"})}},created:function(){s.A.create({data:this.query}),this.userSettings&&a.A.create({data:this.userSettings}),this.steps&&c.A.create({data:this.steps})},mounted:function(){this.cart=this.query.query}};var d=n(5072),h=n.n(d),p=n(5914),f={insert:"head",singleton:!1};h()(p.A,f);p.A.locals;const m=(0,n(4486).A)(u,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"component_container"},[t.fetching?n("loader",{attrs:{preloader:t.store.preloaderPath}}):t._e(),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-xl-8 col-lg-12"},[n("div",{staticClass:"list_container"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("div",{staticClass:"d-flex form_header gray_header justify-content-between"},[n("div",[n("a",{staticClass:"button btn btn-primary",attrs:{href:t.links.queries_list}},[t._v("Back")]),t._v(" "),n("span",{staticClass:"store-title text-primary ml-2"},[t._v(t._s(t.store.client_name))])]),t._v(" "),n("div",[n("query-exporter",{attrs:{query:t.queryData,"export-xero":t.canExportXero,"export-monday":t.canExportMonday}}),t._v(" "),n("a",{staticClass:"button btn btn-primary",attrs:{href:t.links.get_invoice_pdf,download:"",title:"Download"}},[n("i",{staticClass:"fa fa-download"})]),t._v(" "),n("a",{staticClass:"button btn btn-danger text-white",on:{click:function(e){return e.preventDefault(),t.deleteQuery.apply(null,arguments)}}},[n("i",{staticClass:"fa fa-trash"})])],1)])])]),t._v(" "),n("div",{staticClass:"col-12 py-3"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("div",{staticClass:"query_info_box"},[n("h4",[t._v("Customer Information")]),t._v(" "),t.query.name?n("div",[t._v(t._s(t.query.name))]):t._e(),t._v(" "),t.query.address?n("div",[t._v(t._s(t.query.address))]):t._e(),t._v(" "),t.query.email?n("div",[t._v(t._s(t.query.email))]):t._e(),t._v(" "),t.query.phone?n("div",[t._v(t._s(t.query.phone))]):t._e()])]),t._v(" "),n("div",{staticClass:"col-md-6 text-right"},[t.store.logoPath?n("div",{staticClass:"mb-1"},[n("img",{staticStyle:{"max-width":"150px"},attrs:{src:t.store.logoPath}})]):t._e(),t._v(" "),t.store.name&&"null"!==t.store.name?n("div",{staticClass:"mb-1"},[t._v(t._s(t.store.name))]):t._e(),t._v(" "),t.store.address&&"null"!==t.store.address?n("div",{staticClass:"mb-1"},[t._v("\n                "+t._s(t.store.address)+"\n              ")]):t._e(),t._v(" "),t.store.email&&"null"!==t.store.email?n("div",{staticClass:"mb-1"},[t._v(t._s(t.store.email))]):t._e(),t._v(" "),t.store.phone&&"null"!==t.store.phone?n("div",{staticClass:"mb-1"},[t._v(t._s(t.store.phone))]):t._e()])])]),t._v(" "),n("div",{staticClass:"query_table query-table"},[n("div",{staticClass:"table-responsive"},[n("table",{staticClass:"table"},[t._m(0),t._v(" "),n("tbody",[n("tr",[n("td",{attrs:{colspan:"6"}},[n("table",{staticClass:"table table-sm table-borderless"},[t._l(t.cart.values,(function(e,i){return t.visibleSteps.includes(e.step_id)?[n("tr",[n("td",{attrs:{colspan:"6"}},[n("h4",[t._v(t._s(e.step_name))])])]),t._v(" "),n("tr",{staticClass:"table-active"},[n("td",{staticClass:"name"},[t._v(t._s(e.name))]),t._v(" "),n("td",{staticClass:"text-center product-code"},[t._v(t._s(t.getProductCode(e)))]),t._v(" "),n("td",{staticClass:"text-center"},[t._v("1")]),t._v(" "),n("td",{staticClass:"text-center"},[t._v(t._s(t.formatPrice(e.price)))]),t._v(" "),n("td",{staticClass:"text-center"},[t._v("0%")]),t._v(" "),n("td",{staticClass:"text-right"},[t._v(t._s(t.formatPrice(e.price)))])])]:t._e()}))],2)])]),t._v(" "),n("tr",[n("td",{attrs:{colspan:"6"}},[n("table",{staticClass:"table table-sm table-borderless"},[t._m(1),t._v(" "),n("tr",{staticClass:"table-active"},[n("td",{staticClass:"text-right",attrs:{colspan:"6"}},[n("strong",[t._v(t._s(t.formatPrice(t.cart.total)))])])])])])])])])])]),t._v(" "),t.store.disclaimer?n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12 p-5"},[t._v("\n            "+t._s(t.store.disclaimer)+"\n          ")])]):t._e()])]),t._v(" "),n("div",{staticClass:"col-xl-4 col-lg-12 mt-lg"})])],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("thead",[n("tr",[n("th",{staticClass:"name"},[t._v("Product")]),t._v(" "),n("th",{staticClass:"text-center product-code"},[t._v("Product Code")]),t._v(" "),n("th",{staticClass:"text-center"},[t._v("Quantity")]),t._v(" "),n("th",{staticClass:"text-center"},[t._v("Price")]),t._v(" "),n("th",{staticClass:"text-center"},[t._v("Discount")]),t._v(" "),n("th",{staticClass:"text-right"},[t._v("Total")])])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("tr",[n("td",{attrs:{colspan:"6"}},[n("h4",[t._v("Total")])])])}],!1,null,"1cef1093",null).exports},5981:(t,e,n)=>{"use strict";n.d(e,{A:()=>et});var i=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"col-12 text-center"},[i("i",{staticClass:"mr-1"},[i("b",[t._v("Powered by")])]),t._v(" "),i("img",{attrs:{src:n(1704),alt:"Celect",height:"20"}})])}],r=n(8568),o=n.n(r),a=n(4981),s=n.n(a),l=n(6754),c=n.n(l),u=n(2333),d=n.n(u),h=n(5262),p=n.n(h),f=n(8858),m=n(9450),v=n(7e3),g=n(4307);const b={name:"forward-form",props:["errors","store","value","queryId","disabled"],components:{},data:function(){return{form:{on:!1,text:null,rows:[{name:null,email:null}]}}},computed:{btnStyle:function(){return{backgroundColor:this.store.btn_clr}}},methods:{addForward:function(){this.form.rows.push({name:null,email:null})},removeForward:function(t){this.form.rows.splice(t,1)},update:function(){this.$emit("input",this.form)},forward:function(){this.$emit("forward",this.form)}},mounted:function(){this.form=this.value}};var y=n(5072),_=n.n(y),w=n(4598),x={insert:"head",singleton:!1};_()(w.A,x);w.A.locals;var C=n(4486);const S=(0,C.A)(b,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 text-center"},[n("label",{staticClass:"forward-label"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.on,expression:"form.on"}],attrs:{type:"checkbox",name:"forward"},domProps:{checked:Array.isArray(t.form.on)?t._i(t.form.on,null)>-1:t.form.on},on:{change:function(e){var n=t.form.on,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&t.$set(t.form,"on",n.concat([null])):o>-1&&t.$set(t.form,"on",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.form,"on",r)}}}),t._v("\n      Forward to a Friend\n    ")])]),t._v(" "),t.form.on?[t._l(t.form.rows,(function(e,i){return[n("div",{staticClass:"col-12 col-md-6"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"forward-name-"+i}},[t._v("Friend Name*")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.name,expression:"row.name"}],staticClass:"form-control",class:{"cm-error":!!t.errors["forward.rows."+i+".name"]},attrs:{type:"text",id:"forward-name-"+i},domProps:{value:e.name},on:{input:[function(n){n.target.composing||t.$set(e,"name",n.target.value)},t.update]}}),t._v(" "),t.errors["forward.rows."+i+".name"]?n("span",{staticClass:"validation-error"},[t._v("\n              "+t._s(t.errors["forward.rows."+i+".name"])+"\n          ")]):t._e()])]),t._v(" "),n("div",{staticClass:"col-12 col-md-6"},[n("label",{attrs:{for:"forward-email-"+i}},[t._v("Friend Email*")]),t._v(" "),n("div",{staticClass:"input-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.email,expression:"row.email"}],staticClass:"form-control",class:{"cm-error":!!t.errors["forward.rows."+i+".email"]},attrs:{type:"text",id:"forward-email-"+i},domProps:{value:e.email},on:{input:[function(n){n.target.composing||t.$set(e,"email",n.target.value)},t.update]}}),t._v(" "),n("div",{staticClass:"input-group-append"},[i+1===t.form.rows.length?n("a",{staticClass:"input-group-text text-black-50",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.addForward.apply(null,arguments)}}},[n("i",{staticClass:"fa fa-plus"})]):t.form.rows.length>1?n("a",{staticClass:"input-group-text text-black-50",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.removeForward(i)}}},[n("i",{staticClass:"fa fa-minus"})]):t._e()])]),t._v(" "),t.errors["forward.rows."+i+".email"]?n("span",{staticClass:"validation-error"},[t._v("\n            "+t._s(t.errors["forward.rows."+i+".email"])+"\n        ")]):t._e()])]})),t._v(" "),n("div",{staticClass:"col-12"},[n("label",{attrs:{for:"forward-text"}},[t._v("Add a message")]),t._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.text,expression:"form.text"}],staticClass:"form-control",attrs:{type:"text",id:"forward-text"},domProps:{value:t.form.text},on:{input:function(e){e.target.composing||t.$set(t.form,"text",e.target.value)}}})])]:t._e()],2)}),[],!1,null,"2e9e4b77",null).exports;const E={name:"customer-form",props:["errors","store","value"],components:{VueGoogleAutocomplete:n(7340).A},data:function(){return{countryCode:"NZ",form:{name:"",email:"",phone:"",address:""}}},methods:{isRequired:function(t){return this.store.settings.customer_requirements.includes(t)},update:function(){this.$emit("input",this.form)},getAddressData:function(t,e,n){this.form.address=e.formatted_address}},created:function(){},mounted:function(){this.form=this.value}};const T=(0,C.A)(E,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("h4",{staticClass:"text-center"},[t._v(t._s(t.store.enquiry_form_header))])]),t._v(" "),n("div",{staticClass:"col-12"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v("Name"+t._s(t.isRequired("name")?"*":""))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.name,expression:"form.name"}],staticClass:"form-control",class:{"cm-error":!!t.errors.name},attrs:{type:"text",id:"name"},domProps:{value:t.form.name},on:{input:[function(e){e.target.composing||t.$set(t.form,"name",e.target.value)},t.update]}}),t._v(" "),t.errors.name?n("span",{staticClass:"validation-error"},[t._v(t._s(t.errors.name))]):t._e()])]),t._v(" "),n("div",{staticClass:"col-12 col-md-6"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"email"}},[t._v("Email*")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.email,expression:"form.email"}],staticClass:"form-control",class:{"cm-error":!!t.errors.email},attrs:{type:"email",id:"email"},domProps:{value:t.form.email},on:{input:[function(e){e.target.composing||t.$set(t.form,"email",e.target.value)},t.update]}}),t._v(" "),t.errors.email?n("span",{staticClass:"validation-error"},[t._v(t._s(t.errors.email))]):t._e()])]),t._v(" "),n("div",{staticClass:"col-12 col-md-6"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"phone"}},[t._v("Phone"+t._s(t.isRequired("phone")?"*":""))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.phone,expression:"form.phone"}],staticClass:"form-control",class:{"cm-error":!!t.errors.phone},attrs:{type:"text",id:"phone"},domProps:{value:t.form.phone},on:{input:[function(e){e.target.composing||t.$set(t.form,"phone",e.target.value)},t.update]}}),t._v(" "),t.errors.phone?n("span",{staticClass:"validation-error"},[t._v(t._s(t.errors.phone))]):t._e()])]),t._v(" "),n("div",{staticClass:"col-12"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"address"}},[t._v("Address"+t._s(t.isRequired("address")?"*":""))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.address,expression:"form.address"}],staticClass:"form-control",class:{"cm-error":!!t.errors.address},attrs:{type:"text",id:"address"},domProps:{value:t.form.address},on:{input:[function(e){e.target.composing||t.$set(t.form,"address",e.target.value)},t.update]}}),t._v(" "),t.errors.address?n("span",{staticClass:"validation-error"},[t._v(t._s(t.errors.address))]):t._e()])])])}),[],!1,null,"cec3b282",null).exports;var O=n(6921),k=n(2821);function A(t){return A="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},A(t)}function P(){P=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var r=e&&e.prototype instanceof d?e:d,o=Object.create(r.prototype),a=new C(i||[]);return o._invoke=function(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return E()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=c(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var u={};function d(){}function h(){}function p(){}var f={};s(f,r,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(S([])));v&&v!==e&&n.call(v,r)&&(f=v);var g=p.prototype=d.prototype=Object.create(f);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){function i(r,o,a,s){var l=c(t[r],t,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==A(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(d).then((function(t){u.value=t,a(u)}),(function(t){return i("throw",t,a,s)}))}s(l.arg)}var r;this._invoke=function(t,n){function o(){return new e((function(e,r){i(t,n,e,r)}))}return r=r?r.then(o,o):o()}}function _(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var i=c(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,u;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function S(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:E}}function E(){return{value:void 0,done:!0}}return h.prototype=p,s(g,"constructor",p),s(p,"constructor",h),h.displayName=s(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,s(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(y.prototype),s(y.prototype,o,(function(){return this})),t.AsyncIterator=y,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new y(l(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,a,"Generator"),s(g,r,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=S,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return a.type="throw",a.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;x(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}function M(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}var L=n(3419);const D={name:"pano-viewer",emits:["update-scene","exit-fullscreen"],props:{height:{default:"700px"},scenes:{default:function(){return[]}},active:{default:function(){return[]}}},components:{},data:function(){return{min_fov:16*Math.PI/180,max_fov:100*Math.PI/180,viewer:null,scene:null,layers:[],fullscreen:!1,expand:!0,helper:!1,is_iphone:!1}},computed:{},methods:{updateScene:function(t){this.$emit("update-scene",t)},toggleFullScreen:function(){this.fullscreen?(this.exitFullscreen(),this.$emit("exit-fullscreen")):this.requestFullscreen(),this.fullscreen=!this.fullscreen},requestFullscreen:function(){this.is_iphone?document.dispatchEvent(new Event("fullscreenchange")):this.$refs.wrapper.requestFullscreen()},exitFullscreen:function(){this.is_iphone?document.dispatchEvent(new Event("fullscreenchange")):document.exitFullscreen()},init:function(t){this.viewer=new L.Viewer(this.$refs.pano);var e=L.RectilinearView.limit.traditional(5e3,100*Math.PI/180,120*Math.PI/180),n=new L.RectilinearView(null,e);return this.scene=this.viewer.createEmptyScene({view:n}),this.scene.switchTo(),this.update(t,!0)},update:function(t){var e,n=arguments,i=this;return(e=P().mark((function e(){var r,o,a,s,l,c;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=n.length>1&&void 0!==n[1]&&n[1],!(s=null!==(r=null===(o=t.images)||void 0===o?void 0:o.length)&&void 0!==r?r:0)){e.next=10;break}l=0;case 4:if(!(l<t.images.length)){e.next=10;break}return e.next=7,i.importLayer(t.images[l],l);case 7:l++,e.next=4;break;case 10:if(i.layers.length>s){for(c=s;c<i.layers.length;c++)i.scene.destroyLayer(i.layers[c].layer);i.layers.splice(s,i.layers.length-s)}return i.helper=!!t.helper,t.animate&&(t.animate.zoom&&(t.animate.fov=i.zoomToFov(t.animate.zoom)),t.animate.pitch&&(t.animate.pitch=-t.animate.pitch),i.scene.lookTo(t.animate,{transitionDuration:a?0:1e3})),window.dispatchEvent(new Event("resize")),e.abrupt("return",!0);case 15:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(t){M(o,i,r,a,s,"next",t)}function s(t){M(o,i,r,a,s,"throw",t)}a(void 0)}))})()},fovToZoom:function(t){var e=Math.round((t-this.config.minFov)/(this.max_fov-this.min_fov)*100);return e-2*(e-50)},zoomToFov:function(t){return this.max_fov+t/100*(this.min_fov-this.max_fov)},importLayer:function(t,e){var n=this;return new Promise((function(i,r){if(n.layers[e]&&n.layers[e].url===t)i();else{var o=new Image;o.onerror=function(t){r("Texture load error")},o.src=t;var a=L.ImageUrlSource.fromString(t),s=new L.EquirectGeometry([{width:5e3}]),l=n.scene.createLayer({source:a,geometry:s});l.textureStore().addEventListener("textureLoad",(function(t){i()})),n.setLayerEffects(l);var c={url:t,layer:l};if(n.layers[e]){var u=n.layers[e].layer;setTimeout((function(){n.scene.destroyLayer(u)}),200),n.layers[e]=c}else n.layers.push(c)}}))},setLayerEffects:function(t){var e=.2;t.setEffects({opacity:e});var n=setInterval((function(){e>=1?clearInterval(n):(e+=.2,t.setEffects({opacity:e}))}),50)}},mounted:function(){this.is_iphone=/iPhone/i.test(navigator.userAgent)}};var R=n(3013),I={insert:"head",singleton:!1};_()(R.A,I);R.A.locals;const j=(0,C.A)(D,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"wrapper",class:{"fullscreen-emulation":t.is_iphone&&t.fullscreen},attrs:{id:"pano-wrapper"}},[n("div",{ref:"pano",style:{height:t.fullscreen?"100%":t.height},attrs:{id:"pano"}}),t._v(" "),t.helper?n("div",{attrs:{id:"pano-overlay"},on:{click:function(e){t.helper=!1}}},[n("div",{staticClass:"overlay-image"},[n("svg",{staticStyle:{"enable-background":"new 0 0 122.88 65.79"},attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"40px",height:"40px",x:"0px",y:"0px",viewBox:"0 0 122.88 65.79","xml:space":"preserve"}},[n("g",[n("path",{staticClass:"st0",attrs:{d:"M13.37,31.32c-22.23,12.2,37.65,19.61,51.14,19.49v-7.44l11.21,11.2L64.51,65.79v-6.97 C37.4,59.85-26.41,42.4,11.97,27.92c0.36,1.13,0.8,2.2,1.3,3.2L13.37,31.32L13.37,31.32z M108.36,8.31c0-2.61,0.47-4.44,1.41-5.48 c0.94-1.04,2.37-1.56,4.3-1.56c0.92,0,1.69,0.12,2.28,0.34c0.59,0.23,1.08,0.52,1.45,0.89c0.38,0.36,0.67,0.75,0.89,1.15 c0.22,0.4,0.39,0.87,0.52,1.41c0.26,1.02,0.38,2.09,0.38,3.21c0,2.49-0.42,4.32-1.27,5.47c-0.84,1.15-2.29,1.73-4.36,1.73 c-1.15,0-2.09-0.19-2.8-0.55c-0.71-0.37-1.3-0.91-1.75-1.62c-0.33-0.51-0.59-1.2-0.77-2.07C108.45,10.34,108.36,9.38,108.36,8.31 L108.36,8.31z M26.47,10.49l-9-1.6c0.75-2.86,2.18-5.06,4.31-6.59C23.9,0.77,26.91,0,30.8,0c4.47,0,7.69,0.83,9.69,2.5 c1.99,1.67,2.98,3.77,2.98,6.29c0,1.48-0.41,2.82-1.21,4.01c-0.81,1.2-2.02,2.25-3.65,3.15c1.32,0.33,2.34,0.71,3.03,1.15 c1.14,0.7,2.02,1.63,2.65,2.77c0.63,1.15,0.95,2.51,0.95,4.1c0,2-0.52,3.91-1.56,5.75c-1.05,1.83-2.55,3.24-4.51,4.23 c-1.96,0.99-4.54,1.48-7.74,1.48c-3.11,0-5.57-0.37-7.36-1.1c-1.8-0.73-3.28-1.8-4.44-3.22c-1.16-1.41-2.05-3.19-2.67-5.33 l9.53-1.27c0.38,1.92,0.95,3.26,1.74,4.01c0.78,0.74,1.78,1.12,3,1.12c1.27,0,2.33-0.47,3.18-1.4c0.85-0.93,1.27-2.18,1.27-3.74 c0-1.59-0.41-2.82-1.22-3.69c-0.81-0.87-1.92-1.31-3.32-1.31c-0.74,0-1.77,0.18-3.07,0.56l0.49-6.81c0.52,0.08,0.93,0.12,1.22,0.12 c1.23,0,2.26-0.4,3.08-1.19c0.82-0.79,1.24-1.72,1.24-2.81c0-1.05-0.31-1.88-0.93-2.49c-0.62-0.62-1.48-0.93-2.55-0.93 c-1.12,0-2.02,0.34-2.72,1.01C27.19,7.62,26.72,8.8,26.47,10.49L26.47,10.49z M75.15,8.27l-9.48,1.16 c-0.25-1.32-0.66-2.24-1.24-2.78c-0.59-0.54-1.31-0.81-2.16-0.81c-1.54,0-2.74,0.77-3.59,2.33c-0.62,1.13-1.09,3.52-1.38,7.19 c1.14-1.16,2.31-2.01,3.5-2.56c1.2-0.55,2.59-0.83,4.16-0.83c3.06,0,5.64,1.09,7.75,3.27c2.11,2.19,3.17,4.96,3.17,8.31 c0,2.26-0.53,4.32-1.6,6.2c-1.07,1.87-2.55,3.29-4.44,4.25c-1.9,0.96-4.27,1.44-7.13,1.44c-3.43,0-6.18-0.58-8.25-1.76 c-2.07-1.17-3.73-3.03-4.97-5.59c-1.24-2.56-1.86-5.95-1.86-10.18c0-6.18,1.3-10.71,3.91-13.59C54.13,1.44,57.74,0,62.36,0 c2.73,0,4.88,0.31,6.46,0.94c1.58,0.63,2.9,1.56,3.94,2.76C73.81,4.92,74.61,6.44,75.15,8.27L75.15,8.27z M57.62,23.55 c0,1.86,0.47,3.31,1.4,4.36c0.94,1.05,2.08,1.58,3.44,1.58c1.25,0,2.3-0.48,3.14-1.43c0.84-0.95,1.26-2.37,1.26-4.26 c0-1.93-0.44-3.41-1.31-4.42c-0.88-1.01-1.96-1.52-3.26-1.52c-1.32,0-2.44,0.49-3.34,1.48C58.06,20.32,57.62,21.72,57.62,23.55 L57.62,23.55z M77.91,17.57c0-6.51,1.17-11.07,3.52-13.67C83.77,1.3,87.35,0,92.14,0c2.31,0,4.2,0.29,5.68,0.85 c1.48,0.57,2.69,1.31,3.62,2.22c0.94,0.91,1.68,1.87,2.21,2.87c0.54,1.01,0.97,2.18,1.3,3.52c0.64,2.55,0.96,5.22,0.96,8 c0,6.22-1.05,10.76-3.16,13.64c-2.1,2.88-5.72,4.32-10.87,4.32c-2.88,0-5.21-0.46-6.99-1.38c-1.78-0.92-3.23-2.27-4.37-4.05 c-0.82-1.26-1.47-2.98-1.93-5.17C78.14,22.64,77.91,20.22,77.91,17.57L77.91,17.57z M87.34,17.59c0,4.36,0.38,7.34,1.16,8.94 c0.77,1.6,1.89,2.39,3.36,2.39c0.97,0,1.8-0.34,2.51-1.01c0.71-0.68,1.23-1.76,1.56-3.22c0.34-1.47,0.5-3.75,0.5-6.85 c0-4.55-0.38-7.6-1.16-9.18c-0.77-1.56-1.93-2.35-3.47-2.35c-1.58,0-2.71,0.8-3.42,2.39C87.69,10.31,87.34,13.27,87.34,17.59 L87.34,17.59z M112.14,8.32c0,1.75,0.15,2.94,0.46,3.58c0.31,0.64,0.76,0.96,1.35,0.96c0.39,0,0.72-0.13,1.01-0.41 c0.28-0.27,0.49-0.7,0.63-1.29c0.13-0.59,0.2-1.5,0.2-2.74c0-1.82-0.15-3.05-0.46-3.68c-0.31-0.63-0.77-0.94-1.39-0.94 c-0.63,0-1.09,0.32-1.37,0.96C112.28,5.4,112.14,6.59,112.14,8.32L112.14,8.32z M109.3,30.23c10.56,5.37,8.04,12.99-10.66,17.62 c-5.3,1.31-11.29,2.5-17.86,2.99v6.05c7.31-0.51,14.11-2.19,20.06-3.63c28.12-6.81,27.14-18.97,9.36-25.83 C109.95,28.42,109.65,29.35,109.3,30.23L109.3,30.23z"}})])])]),t._v(" "),n("div",{staticClass:"overlay-title"},[t._v("Click and drag to look around")]),t._v(" "),n("div",{staticClass:"overlay-text"})]):t._e(),t._v(" "),t.fullscreen?n("div",{class:{enabled:t.expand},attrs:{id:"scene-list"}},[n("ul",{staticClass:"scenes"},t._l(t.scenes,(function(e){return n("a",{staticClass:"scene",class:{current:t.active&&t.active.includes(e.id)},attrs:{href:"javascript:void(0)"},on:{click:function(n){return t.updateScene(e)}}},[n("li",{staticClass:"text"},[t._v(t._s(e.name))])])})),0)]):t._e(),t._v(" "),n("div",{staticClass:"d-flex justify-content-between",attrs:{id:"controls"}},[n("div",{staticClass:"d-flex"},[t.fullscreen?n("a",{attrs:{href:"javascript:void(0)",id:"scene-listToggle"},on:{click:function(e){e.preventDefault(),t.expand=!t.expand}}},[t.expand?n("i",{staticClass:"fa fa-angle-double-left",attrs:{"aria-hidden":"true"}}):n("i",{staticClass:"fa fa-angle-double-right",attrs:{"aria-hidden":"true"}})]):t._e()]),t._v(" "),n("a",{attrs:{href:"javascript:void(0)",id:"fullscreenToggle"},on:{click:function(e){return e.preventDefault(),t.toggleFullScreen.apply(null,arguments)}}},[t.fullscreen?n("i",{staticClass:"fa fa-compress",attrs:{"aria-hidden":"true"}}):n("i",{staticClass:"fa fa-expand",attrs:{"aria-hidden":"true"}})])])])}),[],!1,null,null,null).exports;function N(t){return N="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},N(t)}function F(t){return function(t){if(Array.isArray(t))return z(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return z(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return z(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function B(){B=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var r=e&&e.prototype instanceof d?e:d,o=Object.create(r.prototype),a=new C(i||[]);return o._invoke=function(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return E()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=c(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var u={};function d(){}function h(){}function p(){}var f={};s(f,r,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(S([])));v&&v!==e&&n.call(v,r)&&(f=v);var g=p.prototype=d.prototype=Object.create(f);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){function i(r,o,a,s){var l=c(t[r],t,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==N(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(d).then((function(t){u.value=t,a(u)}),(function(t){return i("throw",t,a,s)}))}s(l.arg)}var r;this._invoke=function(t,n){function o(){return new e((function(e,r){i(t,n,e,r)}))}return r=r?r.then(o,o):o()}}function _(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var i=c(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,u;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function S(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:E}}function E(){return{value:void 0,done:!0}}return h.prototype=p,s(g,"constructor",p),s(p,"constructor",h),h.displayName=s(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,s(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(y.prototype),s(y.prototype,o,(function(){return this})),t.AsyncIterator=y,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new y(l(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,a,"Generator"),s(g,r,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=S,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return a.type="throw",a.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;x(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}function U(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function H(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){U(o,i,r,a,s,"next",t)}function s(t){U(o,i,r,a,s,"throw",t)}a(void 0)}))}}function V(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?V(Object(n),!0).forEach((function(e){q(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function q(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n(5501);const W={components:{Multiselect:p(),GetPriceInfo:g.A,FileUpload:o(),vuescroll:c(),VuePureLightbox:s(),CustomerForm:T,ForwardForm:S,ValueCard:O.A,Slider:k.A,PanZoom:d(),PanoViewer:j},mixins:[f.A,m.A,v.A],props:["links","store","steps","agents"],data:function(){return{id:null,activeValues:[],step:0,finish:!1,selected:[],finalImages:[],errors:{},panoramas:{},countryCode:null,customer:{name:"",email:"",phone:"",address:"",lat:"",lng:"",store_distance:0},forward:{on:!1,text:null,rows:[{name:null,email:null}]},mainImageMinHeight:"250px",mainImageMaxHeight:this.store.header_enabled||this.store.footer_enabled?"600px":"700px",mainImageCenterX:null,mainImageCenterY:null,scrollHeight:this.store.header_enabled||this.store.footer_enabled?"500px":"600px",windowHeight:"100%",headerHeight:0,mainSectionHeight:0,attributesOffset:0,desktopOffset:40,isMobile:!1,isFixed:!0,completed:!1,viewer:null,reachedStep:-1,viewedSteps:[],storeAgents:[],assignedAgents:[]}},computed:{agentHeading:function(){return this.store.settings.agent_heading?this.store.settings.agent_heading:"Which one of our dealership would you like a quote from?"},agentPlaceholder:function(){return this.store.settings.agent_placeholder?this.store.settings.agent_placeholder:"Please select dealership."},showContinue:function(){return!this.currentStep||this.currentStep.show_continue},isLastStep:function(){var t=this;return!!this.currentStep&&!this.steps.filter((function(e){return t.currentStep.branch_id?e.branch_id===t.currentStep.branch_id&&e.order>t.currentStep.order:t.activeValues.length&&t.activeValues[0].branch_steps.length?e.branch_id===t.activeValues[0].id&&e.values.length:!e.branch_id&&e.order>t.currentStep.order})).length},showTotal:function(){var t=!1;return this.selected.forEach((function(e){e.show_price_in_quote&&(t=!0)})),t},showPreloader:function(){return"show_preloader"in this.store.settings&&(this.store.settings.show_preloader&&this.fetching)},suitableAgents:function(){var t={};return this.selected.forEach((function(e){t[e.step_id]=e.values.map((function(t){return t.id}))})),this.storeAgents.filter((function(e){var n=!1;return Object.keys(e.values).forEach((function(i){var r=e.values[i];t[i]&&(n=r.some((function(e){return t[i].includes(e)})))})),n}))},agentSelected:function(){return!(this.suitableAgents.length>1)||this.assignedAgents.length>0},stepTitle:function(){return this.currentStep?this.currentStep.title?this.currentStep.title:this.currentStep.name:null},mobileTitle:function(){return this.finish?"Your Selections":this.stepTitle},desktopTitle:function(){return this.selected.length?this.selected[0].values[0].name:null},continueButtonText:function(){var t=this.storeData.settings.continue_btn_text||"Continue";return this.currentStep.min_values>1&&this.currentStep.min_values>this.activeValues.length?"".concat(t," ").concat(this.activeValues.length,"/").concat(this.currentStep.min_values):!this.activeValues.length&&this.canNext?"Skip":t},backButtonText:function(){return this.storeData.settings.back_btn_text||""},needScroll:function(){return this.currentStep&&this.desktopImageLayout},isFixedButton:function(){return!this.finish&&this.isFixed&&(!this.currentStep.main_image_desktop||this.isMobile)},alignPreloaderToImage:function(){return null!==this.mainImageCenterX&&!this.finish},canNext:function(){return!this.fetching&&this.activeValues.length>=this.currentStep.min_values},canSend:function(){return this.customer.email&&!this.fetching&&this.agentSelected},desktopPlainLayout:function(){return!this.isMobile&&!this.currentStep.main_image_desktop},desktopImageLayout:function(){return!this.isMobile&&this.currentStep.main_image_desktop},mobilePlainLayout:function(){return this.isMobile&&!this.currentStep.main_image_mobile},mobileImageLayout:function(){return this.isMobile&&this.currentStep.main_image_mobile},isAttribute:function(){return this.step>0||(this.isMobile?!!this.currentStep.main_image_mobile:!!this.currentStep.main_image_desktop)},descriptionType:function(){return this.isMobile?this.currentStep.description_type:this.currentStep.main_image_desktop?null:this.currentStep.description_type},modalButtonDisabled:function(){return!!this.fetching||!this.customer.email},currentStep:function(){var t;return null!==(t=this.steps[this.step])&&void 0!==t?t:null},scrollOptions:function(){var t={bar:{background:"#ccc"}};return this.needScroll?t.maxHeight=this.scrollHeight:(t.scrollingX=!1,t.scrollingY=!1),t},selectedValues:function(){var t=[];return this.selected.forEach((function(e){t=t.concat(e.values)})),t},selectedValueIdsByBranch:function(){var t={main:[]};return this.selected.forEach((function(e){var n=e.values.map((function(t){return t.id}));e.branch_id?t[e.branch_id]?t[e.branch_id]=t[e.branch_id].concat(n):t[e.branch_id]=n:t.main=t.main.concat(n)})),t},values:function(){var t=this,e=[];return this.currentStep?(this.currentStep.values.forEach((function(n){var i=t.getValuePrice(n);if(null!==i){var r=Y({},n);r.price=i,r.step_name=t.currentStep.name,r.layer_images=t.getValueImages(r),e.push(r)}})),e):e},stepBaseImage:function(){for(var t=null,e=this.step;e>=0;e--){var n=this.steps[e];if(!n.parent_id){n.image&&(t={id:"step_".concat(n.id),thumb:n.thumb,full_image:n.full_image,panorama:n.panorama});break}}return t},baseImage:function(){var t={},e=null;if(this.currentStep.parent_id){for(var n=this.step-1;n>=0;n--)if(this.selected[n]&&this.selected[n].base){e=this.selected[n].values;break}}else e=this.activeValues;if(e){var i=e.find((function(t){return t.variation_images.length}));i&&(t=this.getVariationImage(i)),t||(t=i.variation_images[0])}return!t.id&&this.stepBaseImage&&(t=this.stepBaseImage),t},layerImages:function(){var t=[];if(this.currentStep.parent_id&&this.selected.length>1){var e=this.selected[this.selected.length-1];if(e.parent_id){var n=[this.stepBaseImage?this.stepBaseImage.id:null,this.baseImage.id];t=e.images.filter((function(t){return!n.includes(t.id)}))}}return t},currentImages:function(){if(this.activeValues.length){for(var t=this.activeValues[0].layer_images.toReversed(),e=1,n=this.activeValues.length;e<n;e++)this.activeValues[e].layer_images[0]&&t.push(this.activeValues[e].layer_images[0]);return t}return[]},groupedImages:function(){var t=[],e=null;return this.selected.forEach((function(n){n.images.length?n.base?n.show_image_in_quote&&(e=t.push({images:n.images,is_panorama:n.is_panorama})):t[e-1].images=n.images:e=null})),t},bodyImage:function(){return this.store.custom_bg?this.findImage("body_image"):null},headerImage:function(){return this.store.custom_header_bg?this.store.header_bg_grouped?this.bodyImage:this.findImage("header_image"):null},footerImage:function(){return this.store.custom_footer_bg?this.store.footer_bg_grouped?this.bodyImage:this.findImage("footer_image"):null},mobileBodyImage:function(){return this.store.custom_bg?this.findImage("mobile_body_image"):null},mobileHeaderImage:function(){return this.store.custom_header_bg?this.store.header_bg_grouped?this.mobileBodyImage:this.findImage("mobile_header_image"):null},mobileFooterImage:function(){return this.store.custom_footer_bg?this.store.footer_bg_grouped?this.mobileBodyImage:this.findImage("mobile_footer_image"):null},cartTotal:function(){var t=0;return this.selected.forEach((function(e){e.values.forEach((function(e){e.price&&(t+=parseFloat(e.price))}))})),t},buttonWrapperClass:function(){return this.isFixedButton?"button-wrapper-fixed":null},headerClasses:function(){var t=[];return this.cssVars["--header-background-color"]&&t.push("custom-color"),this.cssVars["--header-background-image"]&&t.push("custom-image"),t},bodyClasses:function(){var t=[];return this.cssVars["--background-color"]&&t.push("custom-color"),this.cssVars["--background-image"]&&t.push("custom-image"),t},footerClasses:function(){var t=[];return this.cssVars["--footer-background-color"]&&t.push("custom-color"),this.cssVars["--footer-background-image"]&&t.push("custom-image"),t},storeButtonClass:function(){var t=["store-button","flex-shrink-0",this.continueButtonFont];return this.desktopImageLayout&&t.push("flex-fill"),t},mainImageClass:function(){return this.currentStep.main_image_mobile||this.currentStep.main_image_desktop?this.currentStep.main_image_desktop?this.currentStep.main_image_mobile?null:["d-none","d-sm-block"]:["d-sm-none"]:["d-none"]},mainSectionClass:function(){return"col-md-7 col-xl-8"},attributesClass:function(){return this.currentStep?this.currentStep.main_image_desktop||this.finish?"col-md-5 col-xl-4":"col-12":null},cardWrapperClass:function(){return this.currentStep?this.currentStep.main_image_desktop?this.needScroll?"card-wrapper card-wrapper-scroll":"card-wrapper":"row justify-content-center":null},attributeClass:function(){var t="mb-3";return this.currentStep.main_image_desktop||("lg"===this.currentStep.card_size?t+=" col-12 col-md-12 col-lg-6 col-xl-4":"md"===this.currentStep.card_size?t+=" col-12 col-md-6 col-lg-4 col-xl-3":"sm"===this.currentStep.card_size?t+=" col-12 col-md-4 col-lg-3 col-xl-2":"cs"===this.currentStep.card_size&&(this.currentStep.card_scale>=125?t+=" col-12 col-md-12 col-lg-6 col-xl-4":this.currentStep.card_scale<=75?t+=" col-12 col-md-4 col-lg-3 col-xl-2":t+=" col-12 col-md-6 col-lg-4 col-xl-3")),t},panoramaHeight:function(){return this.isMobile?this.mainImageMinHeight:this.mainImageMaxHeight},headerOffset:function(){return this.headerHeight+(this.isMobile?0:this.desktopOffset)},scrollWrapperStyles:function(){return{height:this.needScroll?this.scrollHeight:"auto"}},contentStyles:function(){var t={};return(this.store.header_enabled||this.store.logo_enabled)&&(t["margin-top"]=this.headerOffset+"px"),t},bodyStyles:function(){return this.store.custom_bg?{backgroundImage:this.bodyImage?"url(".concat(this.bodyImage,")"):null,backgroundColor:this.store.bg_clr}:{}},headerStyles:function(){if(this.store.custom_header_bg){if(this.store.header_bg_grouped){var t=Y({},this.bodyStyles);return t.backgroundPosition=null,t}return{backgroundImage:this.headerImage?"url(".concat(this.headerImage,")"):null,backgroundColor:this.store.header_bg_clr}}return null},footerStyles:function(){return this.store.custom_footer_bg?this.store.footer_bg_grouped?Y({},this.bodyStyles):{backgroundColor:this.store.footer_bg_clr,backgroundImage:this.footerImage?"url(".concat(this.footerImage,")"):null}:null},mobileBodyStyles:function(){return this.store.custom_bg?{backgroundImage:this.mobileBodyImage?"url(".concat(this.mobileBodyImage,")"):null,backgroundColor:this.store.bg_clr}:{}},mobileHeaderStyles:function(){if(this.store.custom_header_bg){if(this.store.header_bg_grouped){var t=Y({},this.mobileBodyStyles);return t.backgroundPosition=null,t}return{backgroundImage:this.mobileHeaderImage?"url(".concat(this.mobileHeaderImage,")"):null,backgroundColor:this.store.header_bg_clr}}return null},mobileFooterStyles:function(){return this.store.custom_footer_bg?this.store.footer_bg_grouped?Y({},this.mobileBodyStyles):{backgroundColor:this.store.footer_bg_clr,backgroundImage:this.mobileFooterImage?"url(".concat(this.mobileFooterImage,")"):null}:null},mainSectionStyles:function(){var t={};return this.isMobile&&(this.finish?(t["margin-top"]="0",t.position="relative"):t["margin-top"]=this.headerHeight+"px"),t},attributeStyles:function(){var t={};return this.isFixed&&this.needScroll,this.finish&&this.isMobile&&(t["margin-top"]="0"),t},poweredByStyles:function(){return{"margin-top":this.isFixedButton?"100px":"40px"}},preloaderWrapperStyles:function(){var t={height:this.windowHeight};return this.alignPreloaderToImage||(t["justify-content"]="center"),t},preloaderStyles:function(){var t={};return this.alignPreloaderToImage&&(t.position="absolute",t["margin-top"]=this.mainImageCenterY+"px",t["margin-left"]=this.mainImageCenterX+"px"),t},cssVars:function(){var t=Y(Y({},this.storeCssVars),{},{"--attributes-offset":this.attributesOffset+"px","--swiper-navigation-color":this.storeData.btn_clr,"--swiper-navigation-size":"50px","--fade-color":this.bodyStyles&&this.bodyStyles.backgroundColor?this.bodyStyles.backgroundColor:"#fff","--card-scale":1,"--card-height":"auto","--card-width":"auto"});return this.currentStep&&("cs"===this.currentStep.card_size?this.currentStep.card_scale&&(t["--card-scale"]=this.currentStep.card_scale/100):"lg"===this.currentStep.card_size?t["--card-scale"]=1.5:"sm"===this.currentStep.card_size&&(t["--card-scale"]=.5)),this.bodyStyles&&(this.bodyStyles.backgroundColor&&(t["--background-color"]=this.bodyStyles.backgroundColor),this.bodyStyles.backgroundImage&&(t["--background-image"]=this.bodyStyles.backgroundImage),this.mobileBodyStyles.backgroundImage&&(t["--mobile-background-image"]=this.mobileBodyStyles.backgroundImage)),this.headerStyles&&(this.headerStyles.backgroundColor&&(t["--header-background-color"]=this.headerStyles.backgroundColor),this.headerStyles.backgroundImage&&(t["--header-background-image"]=this.headerStyles.backgroundImage),this.mobileHeaderStyles.backgroundImage&&(t["--mobile-header-background-image"]=this.mobileHeaderStyles.backgroundImage)),this.footerStyles&&(this.footerStyles.backgroundColor&&(t["--footer-background-color"]=this.footerStyles.backgroundColor),this.footerStyles.backgroundImage&&(t["--footer-background-image"]=this.footerStyles.backgroundImage),this.mobileFooterStyles.backgroundImage&&(t["--mobile-footer-background-image"]=this.mobileFooterStyles.backgroundImage)),t}},methods:{selectAgent:function(){this.$refs.multiselect.deactivate()},viewImage:function(){this.finish||this.isMobile||"panorama"===this.currentStep.display_type||this.$bvModal.show("view-image-modal")},findImage:function(t){var e=this.store.images.find((function(e){return e.image_type===t}));return e?e.cropped_file_path||e.original_file_path:null},isActiveValue:function(t){return!!this.activeValues.find((function(e){return e.id===t.id}))},handleScroll:function(){var t=this.$refs.main.getBoundingClientRect(),e=this.isMobile?-120:this.desktopOffset-140;this.isFixed=t.bottom+e>window.innerHeight},set360Viewer:function(){var t=arguments,e=this;return H(B().mark((function n(){var i,r,o;return B().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=t.length>0&&void 0!==t[0]&&t[0],"panorama"===e.currentStep.display_type){n.next=3;break}return n.abrupt("return");case 3:if(e.baseImage.panorama||e.currentImages.length){n.next=5;break}return n.abrupt("return");case 5:r=e.viewedSteps.includes(e.currentStep.id),o=e.currentStep.show_panorama_tooltip&&!r,i=i&&!r,e.fetching=!0,e.viewer?e.$refs.pano.update({images:e.currentImages.map((function(t){return t.panorama})),helper:o,animate:i?e.getImagePositionOptions():{}}).finally((function(){e.fetching=!1})):e.$refs.pano.init({images:e.currentImages.map((function(t){return t.panorama})),helper:o,animate:i?e.getImagePositionOptions():{}}).finally((function(){e.viewer=!0,e.fetching=!1})),r||e.viewedSteps.push(e.currentStep.id),e.setHeights();case 12:case"end":return n.stop()}}),n)})))()},getImagePositionOptions:function(){var t={};return null!==this.currentStep.image_zoom?t.zoom=this.currentStep.image_zoom:t.zoom="0",null!==this.currentStep.image_pitch&&(t.pitch=this.currentStep.image_pitch),null!==this.currentStep.image_yaw&&(t.yaw=this.currentStep.image_yaw),t},flip:function(t,e){t.flip=e,this.$forceUpdate()},setHeights:function(){var t=this;this.isMobile=window.innerWidth<=768,setTimeout((function(){t.windowHeight=document.documentElement.scrollHeight+"px",t.headerHeight=t.$refs.storeHeader?t.$refs.storeHeader.clientHeight:0;var e=t.$refs.mainSection;if(e){t.mainSectionHeight=e.clientHeight;t.mainImageCenterX=t.$refs.main.offsetLeft+e.offsetWidth/2-65,t.mainImageCenterY=t.$refs.main.offsetTop+e.offsetHeight/2-65}else t.mainSectionHeight=0;t.isMobile?t.attributesOffset=t.mainSectionHeight+10:t.attributesOffset=0;var n=window.innerHeight-t.headerHeight-150;t.scrollHeight=(n<500?n:500)+"px",t.handleScroll()}),100)},resetSteps:function(){this.finish=!1,this.step=0,this.selected=[],this.completed&&(this.assignedAgents=[],this.customer={name:"",email:"",phone:"",address:""}),this.completed=!1,this.id=null,this.currentStep.autoselect?this.setActiveValue(this.values[0],!0):this.set360Viewer(!0),this.setHeights()},getValueImages:function(t){var e=this,n=[];if(this.currentStep.parent_id&&this.baseImage.value_id){var i=t.variation_images.find((function(t){return t.variation_image_values.map((function(t){return t.value_id})).includes(e.baseImage.value_id)}));i&&n.push(i),this.layerImages.length&&(n=n.concat(this.layerImages)),n.push(this.baseImage)}else{var r=this.getVariationImage(t);r?n.push(r):t.variation_images.length&&n.push(t.variation_images[0])}return this.stepBaseImage&&n.push(this.stepBaseImage),n},getVariationImage:function(t){var e=this.getSelectedValueIds();return t.variation_images.find((function(t){var n=t.variation_image_values.map((function(t){return t.value_id}));return n.length&&e.every((function(t){return n.includes(t)}))}))},getSelectedValueIds:function(){var t;return(t=this.currentStep.branch_id?this.selectedValueIdsByBranch[this.currentStep.branch_id]:this.selectedValueIdsByBranch.main)||(t=[]),t},getValuePrice:function(t){var e=this,n=null;return t.prices.forEach((function(t){var i=t.price_values.map((function(t){return t.value_id})),r=e.getSelectedValueIds();r.filter((function(t){return i.includes(t)})).length===r.length&&(n=t.price)})),n},setStep:function(t,e){this.activeValues=this.selected[t].values,this.selected=this.selected.slice(0,t),this.step=this.steps.findIndex((function(t){return t.id===e})),this.finish=!1,this.setHeights(),this.set360Viewer(!0)},findNextStep:function(t){var e=this;return this.steps.findIndex((function(n,i){return!(e.step>=i)&&(t.length&&t[0].branch_steps.length?r=n.branch_id===t[0].id&&n.values.length:(r=e.currentStep.branch_id?n.branch_id===e.currentStep.branch_id&&n.order>e.currentStep.order&&n.values.length:n.order>e.currentStep.order&&n.values.length)&&(r=n.values.filter((function(t){return null!==e.getValuePrice(t)})).length>0),r);var r}))},nextStep:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selected.push({is_panorama:"panorama"===this.currentStep.display_type,step_id:this.currentStep.id,step_name:this.currentStep.name,parent_id:this.currentStep.parent_id,branch_id:this.currentStep.branch_id,base:!this.currentStep.parent_id,show_image_in_quote:this.currentStep.show_image_in_quote,show_price_in_quote:this.currentStep.show_price_in_quote,values:this.activeValues,images:this.activeValues.length?this.currentImages.toReversed():[]});var e=F(this.activeValues);if(this.activeValues=[],t)this.finish=!0;else{var n=this.findNextStep(e);n>0?(this.step=n,this.preloadImages(),this.currentStep.autoselect?this.values.length&&this.setActiveValue(this.values[0],!0):this.set360Viewer(!0)):this.finish=!0}window.scrollTo(0,0),this.$refs.scroll&&this.$refs.scroll.scrollTo({y:0},0),this.setHeights(),this.finish&&(this.generateFinalImages(),this.storeData.is_hidden_price&&!this.id&&this.$bvModal.show("customer-modal"))},prevStep:function(){var t=this.selected.length-1,e=this.selected[t].values;this.selected=this.selected.slice(0,t),this.step=this.steps.findIndex((function(t){return t.id===e[0].step_id})),this.finish=!1,window.scrollTo(0,0),this.$refs.scroll&&this.$refs.scroll.scrollTo({y:0},0),this.setActiveValues(e),this.setHeights()},setActiveValue:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.activeValues.findIndex((function(e){return e.id===t.id}));n>-1?this.activeValues.length>this.currentStep.min_values&&(this.activeValues.splice(n,1),this.set360Viewer(e)):(this.currentStep.max_values===this.activeValues.length&&this.activeValues.pop(),this.activeValues.push(t),this.set360Viewer(e)),this.showContinue||this.nextStep(this.isLastStep)},setActiveValues:function(t){this.activeValues=t,this.set360Viewer(!0)},preloadImages:function(){var t=this;this.values.forEach((function(e){e.layer_images.forEach((function(e){t.preloadImage(e)}))}))},preloadImage:function(t){var e=this;if("panorama"===this.currentStep.display_type)(new Image).src=t.panorama;else{var n=new Image;n.onload=function(){e.setHeights()},n.src=t.full_image}},hideModal:function(){this.$bvModal.hide("customer-modal"),setTimeout((function(){window.scrollTo(0,0)}),200)},send:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.errors={},e&&""===this.customer.address&&this.isRequired("address"))this.errors.address="Please select fill address";else{var n=Y({},this.customer);n.query=this.prepareQuery(),n.forward=this.forward,n.completed=e,n.id=this.id,n.agents=1===this.suitableAgents.length?[this.suitableAgents[0].id]:this.assignedAgents.map((function(t){return t.id})),this.fetching=!0,axios.post(this.links.submit_query,n).then((function(n){t.id=n.data.data.id,e?(t.completed=e,t.$swal({title:t.storeData.popup_title,text:t.storeData.popup_text,confirmButtonText:t.storeData.popup_btn_text,confirmButtonColor:t.storeData.btn_clr,cancelButtonText:"Restart",cancelButtonColor:"#aaa",showCancelButton:t.storeData.settings&&t.storeData.settings.restart_btn,type:"success"}).then((function(e){e.dismiss&&"cancel"===e.dismiss&&t.resetSteps()}))):t.hideModal()})).catch((function(e){t.setErrors(e)})).finally((function(){t.fetching=!1}))}},prepareQuery:function(){var t=[];return this.selected.forEach((function(e){e.values.forEach((function(e){t.push({id:e.id,step_id:e.step_id,name:e.name,sku:e.sku,step_name:e.step_name,price:e.price})}))})),{total:this.cartTotal,images:this.finalImages,values:t}},isRequired:function(t){return this.store.settings.customer_requirements.includes(t)},resetFieldError:function(t){this.errors[t]=null},createCombinations:function(t){var e=[];t[0].forEach((function(t){e.push([t])}));for(var n=function(n){e.forEach((function(i){i.length===n&&t[n].forEach((function(t){e.push(i.concat([t]))}))}))},i=1;i<t.length;i++)n(i);return e},mergeLayers:function(t,e){var n=this;return H(B().mark((function i(){var r;return B().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,axios.post(n.links.merge_layers,{path:t,conversion:e});case 2:return r=i.sent,i.abrupt("return",r.data.data);case 4:case"end":return i.stop()}}),i)})))()},generateFinalImages:function(){var t=this;this.fetching=!0,this.finalImages=[];var e=performance.now(),n=this.groupedImages.map((function(t){return{path:t.images.toReversed().map((function(t){return t.id})).join("-"),skip:1===t.images.length&&(t.is_panorama?t.images[0].panorama:t.images[0].full_image),is_panorama:t.is_panorama}}));console.log("Generate final images",n),axios.post(this.links.merge_group_layers,{groups:n,conversion:"full_image"}).then((function(e){t.finalImages=e.data.data})).finally((function(){t.fetching=!1,console.log("Complete "+Math.round(performance.now()-e)+"ms")}))},setAgents:function(){var t=[];this.agents&&(this.agents.forEach((function(e){var n={};e.values&&e.values.forEach((function(t){n[t.step_id]?n[t.step_id].push(t.id):n[t.step_id]=[t.id]})),t.push({id:e.id,label:e.name,values:n})})),this.storeAgents=t)}},created:function(){this.setHeights()},mounted:function(){var t=this;this.values.length&&(this.currentStep.autoselect?this.setActiveValue(this.values[0],!0):this.baseImage.id&&this.set360Viewer(!0),this.preloadImages()),this.setAgents(),window.addEventListener("resize",(function(){t.setHeights()})),window.onscroll=function(){t.handleScroll()},$("body").on("click",".w-nav-button",(function(t){$(".w-nav-menu").toggleClass("open"),$(".w--current").toggleClass("w--nav-link-open")}))}},G=W;var X=n(637),K={insert:"head",singleton:!1};_()(X.A,K);X.A.locals;var Z=n(2536),J={insert:"head",singleton:!1};_()(Z.A,J);Z.A.locals;var Q=n(508),tt={insert:"head",singleton:!1};_()(Q.A,tt);Q.A.locals;const et=(0,C.A)(G,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"component_container store_home store-home-builder",class:t.bodyClasses,style:t.cssVars},[t.showPreloader?n("loader",{style:t.preloaderWrapperStyles,attrs:{preloader:t.store.preloaderPath,"preloader-styles":t.preloaderStyles}}):t._e(),t._v(" "),n("header",{staticClass:"fixed_this"},[n("div",{ref:"storeHeader",staticClass:"filter_store_header",class:t.headerClasses},[t.store.header_enabled?n("div",{class:t.headerClasses,attrs:{id:"custom-header"},domProps:{innerHTML:t._s(t.store.header)}}):t.store.logo_enabled?n("div",{staticClass:"col-xl-10 offset-xl-1 col-md-12 py-2",style:t.headerStyles},[n("div",{staticClass:"d-flex justify-content-between align-items-center"},[n("div",{},[n("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.resetSteps.apply(null,arguments)}}},[t.store.logoPath?n("img",{attrs:{src:t.store.logoPath,alt:t.store.name,height:"50"}}):n("h5",{class:t.titleFont},[t._v(t._s(t.store.name))])])]),t._v(" "),n("div",{})])]):t._e(),t._v(" "),!t.isMobile&&t.step>0?n("div",{staticClass:"breadcrumbs"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-xl-10 offset-xl-1 col-md-12"},[n("ul",{staticClass:"list-inline breadcrumbs-items",class:t.breadcrumbFont},[n("li",{staticClass:"list-inline-item"},[n("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.resetSteps.apply(null,arguments)}}},[n("i",{staticClass:"fa fa-home"})])]),t._v(" "),t._l(t.selected,(function(e,i){return n("li",{staticClass:"list-inline-item"},[n("a",{attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),t.setStep(i,e.step_id)}}},[t._v(t._s(e.step_name))])])})),t._v(" "),t.step>0&&!t.finish?n("li",{staticClass:"list-inline-item"},[n("a",{attrs:{href:"#"},on:{click:function(t){t.preventDefault()}}},[t._v(t._s(t.currentStep.name))])]):t._e(),t._v(" "),t.finish?n("li",{staticClass:"list-inline-item"},[t._v("\n                Finish\n              ")]):t._e()],2)])])]):t._e()])]),t._v(" "),t.currentStep?n("main",{ref:"main",staticClass:"main_store_sec col-xl-10 offset-xl-1 col-md-12",style:t.contentStyles,attrs:{role:"main"}},[n("div",{staticClass:"row"},[t.desktopPlainLayout&&!t.finish?n("div",{staticClass:"col-12"},[n("h4",{staticClass:"mb-lg-5 mb-md-4 mb-sm-1 text-center store-header step-title",class:t.titleFont,style:t.titleColor},[t._v(t._s(t.stepTitle)+"\n        ")])]):t._e(),t._v(" "),n("div",{ref:"mainSection",staticClass:"col-12",class:t.mainSectionClass,style:t.mainSectionStyles,attrs:{id:"main-image"}},[n("div",[t.isMobile?n("h4",{staticClass:"store-header step-title d-sm-none mt-2",class:t.titleFont,style:t.titleColor},[t._v("\n            "+t._s(t.mobileTitle)+"\n          ")]):t._e()]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.finish,expression:"!finish"}],ref:"mainImage",staticClass:"img-wrapper",class:t.mainImageClass,on:{click:t.viewImage}},[n("pano-viewer",{directives:[{name:"show",rawName:"v-show",value:"panorama"===t.currentStep.display_type,expression:"currentStep.display_type === 'panorama'"}],ref:"pano",attrs:{height:t.panoramaHeight,scenes:t.values,active:t.activeValues.map((function(t){return t.id}))},on:{"update-scene":t.setActiveValue,"exit-fullscreen":t.setHeights}}),t._v(" "),t._l(t.currentImages.toReversed(),(function(e,i){return"panorama"!==t.currentStep.display_type?n("img",{staticClass:"img-fluid cursor-zoom",class:{layer:i<t.currentImages.length-1},style:{zIndex:1e3-i,maxHeight:t.mainImageMaxHeight},attrs:{src:e.full_image}}):t._e()}))],2),t._v(" "),t.finish&&t.finalImages.length?n("slider",{style:t.cssVars,attrs:{"is-mobile":t.isMobile,images:t.finalImages,"desktop-height":1===t.finalImages.length?"700px":"500px"}}):t._e(),t._v(" "),t.activeValues.length&&t.desktopImageLayout?n("div",{staticClass:"pt-3"},t._l(t.activeValues,(function(e){return e.description?n("div",{staticClass:"mb-2"},[t._v(t._s(e.description))]):t._e()})),0):t._e()],1),t._v(" "),n("div",{ref:"attributes",staticClass:"col-12",class:t.attributesClass,style:t.attributeStyles,attrs:{id:"attributes"}},[t.desktopImageLayout&&!t.finish?n("div",[n("h4",{staticClass:"store-header step-title",class:t.titleFont},[t._v(t._s(t.stepTitle))])]):t._e(),t._v(" "),t.finish?n("div",{staticClass:"row mb-4"},[t.finish?n("div",{staticClass:"col-12 total-attributes",class:t.titleFont},[t._l(t.selected,(function(e){return t._l(e.values,(function(i){return n("div",{staticClass:"d-flex justify-content-between table-row"},[n("div",{staticClass:"attr-name"},[t._v(t._s(e.step_name)+": "+t._s(i.name))]),t._v(" "),e.show_price_in_quote?n("div",{staticClass:"attr-price"},[t._v(t._s(t.formatPrice(i.price)))]):t._e()])}))})),t._v(" "),n("div",{staticClass:"block-total d-flex justify-content-between align-items-center"},[t.showTotal?[n("div",[n("h4",{class:t.titleFont},[t._v("Total "),n("span",{staticClass:"subheading"},[t._v("Cost")])])]),t._v(" "),n("span",{staticClass:"total-price",class:t.titleFont},[t._v(t._s(t.formatPrice(t.cartTotal)))])]:t._e()],2),t._v(" "),t.completed?t._e():[n("customer-form",{attrs:{store:t.storeData,errors:t.errors},model:{value:t.customer,callback:function(e){t.customer=e},expression:"customer"}}),t._v(" "),t.suitableAgents.length?n("div",{staticClass:"mb-4"},[1===t.suitableAgents.length?n("h4",{staticClass:"text-center"},[t._v("\n                  Your enquiry will be sent to "+t._s(t.suitableAgents[0].label)+"\n                ")]):n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"agents"}},[t._v(t._s(t.agentHeading))]),t._v(" "),n("multiselect",{ref:"multiselect",attrs:{options:t.suitableAgents,multiple:!0,"close-on-select":!1,placeholder:t.agentPlaceholder,"track-by":"id",label:"label"},model:{value:t.assignedAgents,callback:function(e){t.assignedAgents=e},expression:"assignedAgents"}},[n("template",{slot:"afterList"},[n("div",{staticClass:"text-right p-2"},[n("button",{staticClass:"btn",on:{click:t.selectAgent}},[t._v("Ok")])])])],2)],1)]):t._e()]],2):t._e()]):t.currentStep?n("div",{staticClass:"row"},[t.needScroll?n("div",{staticClass:"col-12",style:t.scrollWrapperStyles},[n("vuescroll",{ref:"scroll",attrs:{ops:t.scrollOptions}},[n("div",{class:t.cardWrapperClass},t._l(t.values,(function(e){return n("ValueCard",{key:e.id,class:t.attributeClass,attrs:{value:e,price:t.formatPrice(e.price,!0),active:t.isActiveValue(e),type:t.descriptionType,step:t.currentStep,attribute:t.isAttribute,"name-font":t.itemNameFont,"plain-name-font":t.plainItemNameFont,"plain-price-font":t.plainItemPriceFont,"plain-name-active-font":t.plainItemNameActiveFont,"plain-price-active-font":t.plainItemPriceActiveFont,"price-font":t.priceFont},on:{"set-active":function(n){return t.setActiveValue(e)}}})})),1)])],1):n("div",{staticClass:"col-12"},[n("div",{class:t.cardWrapperClass},t._l(t.values,(function(e){return n("ValueCard",{key:e.id,class:t.attributeClass,attrs:{value:e,price:t.formatPrice(e.price,!0),active:t.isActiveValue(e),type:t.descriptionType,step:t.currentStep,attribute:t.isAttribute,"name-font":t.itemNameFont,"plain-name-font":t.plainItemNameFont,"plain-price-font":t.plainItemPriceFont,"plain-name-active-font":t.plainItemNameActiveFont,"plain-price-active-font":t.plainItemPriceActiveFont,"price-font":t.priceFont},on:{"set-active":function(n){return t.setActiveValue(e)}}})})),1)])]):t._e(),t._v(" "),t.completed?t._e():n("div",{ref:"buttonWrapper",staticClass:"button-wrapper d-flex justify-content-center",class:t.buttonWrapperClass},[t.step>0?n("button",{staticClass:"store-button prev mr-3",class:t.backButtonFont,on:{click:function(e){return t.prevStep()}}},[n("i"),t._v(" "),t.showContinue?n("span",[t._v(t._s(t.backButtonText))]):n("span",[t._v(t._s(t.backButtonText?t.backButtonText:"Back"))])]):t._e(),t._v(" "),t.finish?n("button",{staticClass:"finish send",class:t.storeButtonClass,attrs:{type:"button",disabled:!t.canSend},on:{click:function(e){return t.send(!0)}}},[n("span",{staticClass:"small-icon"}),t._v("\n            "+t._s(t.storeData.send_btn_text)+"\n          ")]):t.isLastStep&&t.showContinue?n("button",{staticClass:"finish",class:t.storeButtonClass,attrs:{disabled:!t.canNext},on:{click:function(e){return t.nextStep(!0)}}},[t._v("Finish\n          ")]):t.showContinue?n("button",{class:t.storeButtonClass,attrs:{disabled:!t.canNext},on:{click:function(e){return t.nextStep(!1)}}},[n("span",[t._v(t._s(t.continueButtonText))]),t._v(" "),n("i")]):t._e()]),t._v(" "),t.finish&&!t.completed?n("forward-form",{staticClass:"mt-3",attrs:{store:t.storeData,errors:t.errors,"query-id":t.id},model:{value:t.forward,callback:function(e){t.forward=e},expression:"forward"}}):t._e(),t._v(" "),n("div",{staticClass:"row",style:t.poweredByStyles},[t._m(0)])],1)])]):t._e(),t._v(" "),t.store.footer_enabled?n("div",{class:t.footerClasses,attrs:{id:"custom-footer"},domProps:{innerHTML:t._s(t.store.footer)}}):t._e(),t._v(" "),n("b-modal",{attrs:{id:"customer-modal","no-close-on-esc":"","no-close-on-backdrop":"","hide-header-close":""},scopedSlots:t._u([{key:"modal-title",fn:function(){return[n("div",{staticClass:"text-center",class:t.titleFont},[n("h4",[t._v(t._s(t.storeData.hidden_price_modal_header))]),t._v(" "),n("div",[t._v(t._s(t.storeData.hidden_price_modal_subheader))])])]},proxy:!0},{key:"modal-footer",fn:function(){return[n("button",{staticClass:"finish send",class:t.storeButtonClass,style:t.cssVars,attrs:{type:"button",disabled:t.modalButtonDisabled},on:{click:function(e){return t.send(!1)}}},[t._v("Submit\n      ")])]},proxy:!0}])},[t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"modal-email"}},[t._v("Email*")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.customer.email,expression:"customer.email"}],staticClass:"form-control",attrs:{type:"email",id:"modal-email"},domProps:{value:t.customer.email},on:{input:function(e){e.target.composing||t.$set(t.customer,"email",e.target.value)}}}),t._v(" "),t.errors.email?n("span",{staticClass:"validation-error"},[t._v(t._s(t.errors.email))]):t._e()])])])]),t._v(" "),n("b-modal",{attrs:{id:"view-image-modal",size:"lg","hide-footer":""}},[n("pan-zoom",["panorama"!==t.currentStep.display_type?n("div",{staticClass:"img-wrapper"},t._l(t.currentImages.toReversed(),(function(e,i){return n("img",{staticClass:"img-fluid",class:{layer:i<t.currentImages.length-1},style:{zIndex:1e3-i,maxHeight:t.mainImageMaxHeight},attrs:{src:e.full_image}})})),0):t._e()])],1)],1)}),i,!1,null,"4364fe3d",null).exports},96:(t,e,n)=>{"use strict";n.d(e,{A:()=>y});var i=n(6921),r=n(156),o=n(8858),a=n(5016),s=n(7e3);function l(t){return l="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},l(t)}function c(){c=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function u(t,e,n,i){var r=e&&e.prototype instanceof p?e:p,o=Object.create(r.prototype),a=new E(i||[]);return o._invoke=function(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return O()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=d(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h={};function p(){}function f(){}function m(){}var v={};s(v,r,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==e&&n.call(b,r)&&(v=b);var y=m.prototype=p.prototype=Object.create(v);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(r,o,a,s){var c=d(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==l(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(h).then((function(t){u.value=t,a(u)}),(function(t){return i("throw",t,a,s)}))}s(c.arg)}var r;this._invoke=function(t,n){function o(){return new e((function(e,r){i(t,n,e,r)}))}return r=r?r.then(o,o):o()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var i=d(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function T(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return f.prototype=m,s(y,"constructor",m),s(m,"constructor",f),f.displayName=s(m,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,a,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},_(w.prototype),s(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new w(u(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(y),s(y,a,"Generator"),s(y,r,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return a.type="throw",a.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function u(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const f={name:"store-settings",props:["fonts"],components:{ValueCard:i.A,ImageEditor:r.A},mixins:[o.A,a.A,s.A],data:function(){return{tabIndex:0,imageCard:{id:1,images:[{full_image:"/images/carlos-muza-hpjSkU2UYSU-unsplash.jpg"}],name:"Image",description:"Example description",price:10,type:"flip-y",active:!1,displayType:"image",isAttribute:!1},imageCardActive:{id:2,images:[{full_image:"/images/carlos-muza-hpjSkU2UYSU-unsplash.jpg"}],name:"Image",description:"Example description",price:10123,type:"flip-x",active:!0,displayType:"image",isAttribute:!1},plainCard:{id:3,images:[],name:"Plain",price:10,type:"flip-y",active:!1,displayType:"plain",isAttribute:!0},plainCardActive:{id:4,images:[],name:"Plain",price:10123,type:"flip-x",active:!0,displayType:"plain",isAttribute:!0},headerLock:!0,footerLock:!0,styleLock:!0,scriptLock:!0,ready:!1}},computed:{cssVars:function(){return h(h({},this.storeCssVars),{},{"--main-section-height":this.mainSectionHeight,"--table-color":this.quote.table_color,"--table-bg":this.quote.table_bg,"--info-color":this.quote.info_color,"--info-bg":this.quote.info_bg})}},methods:{uploadPreloader:function(t){var e=this;this.fetching=!0;var n=new FormData;n.append("image",t.target.files[0]),axios.post(this.links.upload_preloader,n).then((function(t){e.storeData.preloaderPath=t.data.data.preloaderPath})).catch((function(t){e.alertErrors(t.response.data)})).finally((function(){e.fetching=!1}))},deletePreloader:function(){var t=this;this.confirm((function(){t.fetching=!0,axios.delete(t.links.delete_preloader).then((function(e){t.storeData.preloaderPath=null})).catch((function(e){t.alertErrors(e.response.data)})).finally((function(){t.fetching=!1}))}))},playPreloader:function(){var t=this;this.fetching=!0,setTimeout((function(){t.fetching=!1}),3e3)}},created:function(){var t,e=this;return(t=c().mark((function t(){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.setStoreSettings().then((function(t){e.fonts&&e.$store.commit("setFonts",e.fonts)})).finally((function(){e.ready=!0}));case 2:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){u(o,i,r,a,s,"next",t)}function s(t){u(o,i,r,a,s,"throw",t)}a(void 0)}))})()}};var m=n(5072),v=n.n(m),g=n(2726),b={insert:"head",singleton:!1};v()(g.A,b);g.A.locals;const y=(0,n(4486).A)(f,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"component_container",style:t.cssVars},[t.fetching?n("loader",{attrs:{preloader:t.storeData.preloaderPath}}):t._e(),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("div",{staticClass:"d-flex"},[n("toggle-button",{staticClass:"mr-2",attrs:{value:!!t.storeData.live,height:36,width:100,"font-size":15,color:"#1282a2",labels:{checked:"Live",unchecked:"Offline"},disabled:!t.canManage},on:{change:t.toggleStatus}}),t._v(" "),n("toggle-button",{attrs:{labels:{checked:"Desktop",unchecked:"Mobile"},height:36,width:110,"font-size":15,color:"#1282a2"},model:{value:t.isDesktop,callback:function(e){t.isDesktop=e},expression:"isDesktop"}}),t._v(" "),n("a",{staticClass:"ml-2 mt-1",attrs:{href:t.storeData.link,target:"_blank"}},[n("i",{staticClass:"fa fa-2x fa-external-link"})])],1),t._v(" "),n("b-tabs",{staticClass:"fancy_tabs",attrs:{"content-class":"mt-3",align:"right"}},["builder"===t.storeData.store_type?n("b-tab",{attrs:{title:"Draft View"},on:{click:function(e){t.showDraft=!0}}},[t.showDraft?n("div",{class:t.iframeWrapperClasses},[n("iframe",{style:t.iframeStyles,attrs:{src:t.link+"?view=setting-iframe&draft=1"}})]):t._e()]):t._e(),t._v(" "),n("b-tab",{attrs:{title:"Live View"},on:{click:function(e){t.showLive=!0}}},[t.showLive?n("div",{class:t.iframeWrapperClasses},[n("iframe",{style:t.iframeStyles,attrs:{src:t.link+"?view=setting-iframe"}})]):t._e()]),t._v(" "),n("b-tab",{attrs:{title:"Settings",active:""}},[n("b-tabs",{attrs:{"content-class":""},model:{value:t.tabIndex,callback:function(e){t.tabIndex=e},expression:"tabIndex"}},[n("b-tab",{attrs:{title:"General"}},[n("div",{staticClass:"list_container p-2 p-md-3 p-xl-5"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"store-name"}},[t._v("Store Name")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.name,expression:"storeData.name"}],staticClass:"form-control",attrs:{type:"text",id:"store-name",placeholder:"Store Name",disabled:!t.canManage},domProps:{value:t.storeData.name},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.update.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.storeData,"name",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"currency"}},[t._v("Currency")]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.storeData.currency_id,expression:"storeData.currency_id"}],staticClass:"form-control",attrs:{id:"currency",name:"currency",disabled:!t.canManage},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.storeData,"currency_id",e.target.multiple?n:n[0])}}},t._l(t.currencies,(function(e){return n("option",{domProps:{value:e.id}},[t._v(t._s(e.name)+" ("+t._s(e.code)+")\n                    ")])})),0)]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"mail-from-name"}},[t._v("Send enquiry email From Name")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.settings.mail_from_name,expression:"storeData.settings.mail_from_name"}],staticClass:"form-control",attrs:{type:"text",id:"mail-from-name",disabled:!t.canManage},domProps:{value:t.storeData.settings.mail_from_name},on:{input:function(e){e.target.composing||t.$set(t.storeData.settings,"mail_from_name",e.target.value)}}})])])])]),t._v(" "),n("b-tab",{attrs:{title:"Builder"}},[n("div",{staticClass:"snap_tabs tab_gray"},[n("b-tabs",{attrs:{"content-class":"",fill:""}},[n("b-tab",{attrs:{title:"Layout"}},[n("div",{staticClass:"list_container p-2 p-md-3 p-xl-5"},[n("div",{staticClass:"form-group mb-5"},[n("label",{attrs:{for:"custom-title"}},[t._v("Store Title")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.title,expression:"storeData.title"}],staticClass:"form-control",attrs:{type:"text",id:"custom-title",disabled:!t.canManage},domProps:{value:t.storeData.title},on:{input:function(e){e.target.composing||t.$set(t.storeData,"title",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"d-flex mb-5"},[n("div",{staticClass:"mr-4"},[n("label",{attrs:{for:"custom-favicon"}},[t._v("Favicon")]),t._v(" "),n("div",{staticClass:"form-group"},[t.storeData.faviconPath?n("div",{staticClass:"align-items-center d-flex img-wrapper"},[n("img",{staticClass:"img-thumbnail mr-1",staticStyle:{"max-width":"50px"},attrs:{src:t.storeData.faviconPath,alt:"favicon"}}),t._v(" "),t.canManage?n("i",{staticClass:"fa fa-times text-danger cursor_pointer",on:{click:t.deleteFavicon}}):t._e()]):n("input",{attrs:{type:"file",id:"custom-favicon"},on:{change:t.uploadFavicon}})])]),t._v(" "),n("div",{staticClass:"mr-4"},[n("label",{attrs:{for:"enquiry-logo"}},[t._v("Enquiry email header logo")]),t._v(" "),n("image-editor",{attrs:{id:"enquiry-logo",presets:[{width:250,height:70}]},model:{value:t.storeData.emailLogo,callback:function(e){t.$set(t.storeData,"emailLogo",e)},expression:"storeData.emailLogo"}})],1),t._v(" "),n("div",[n("label",{attrs:{for:"custom-preloader"}},[t._v("Loading icon")]),t._v(" "),n("div",{staticClass:"form-group"},[t.storeData.preloaderPath?n("div",{staticClass:"align-items-center d-flex img-wrapper"},[n("img",{staticClass:"img-thumbnail bg-dark mr-1",staticStyle:{"max-width":"100px"},attrs:{src:t.storeData.preloaderPath,alt:"Loading icon"}}),t._v(" "),n("div",[n("i",{staticClass:"fa fa-play text-primary cursor_pointer mr-2",on:{click:t.playPreloader}}),t._v(" "),t.canManage?n("i",{staticClass:"fa fa-times text-danger cursor_pointer",on:{click:t.deletePreloader}}):t._e()])]):n("input",{attrs:{type:"file",id:"custom-preloader"},on:{change:t.uploadPreloader}})])])]),t._v(" "),n("div",{staticClass:"form-group"},[n("b-form-checkbox",{staticClass:"mb-2",attrs:{switch:"",disabled:!t.canManage},on:{change:t.updateSettings},model:{value:t.storeData.settings.show_preloader,callback:function(e){t.$set(t.storeData.settings,"show_preloader",e)},expression:"storeData.settings.show_preloader"}},[t._v("\n                          Show preloader "),n("i",{staticClass:"fa fa-question-circle-o",attrs:{id:"preloader-info"}}),t._v(" "),n("b-tooltip",{attrs:{target:"preloader-info"}},[t._v("\n                            Show the preloader when switching variations\n                          ")])],1)],1),t._v(" "),n("div",{staticClass:"form-group"},[n("b-form-checkbox",{staticClass:"mr-3",attrs:{switch:"",disabled:!t.canManage},on:{change:t.updateSettings},model:{value:t.storeData.logo_enabled,callback:function(e){t.$set(t.storeData,"logo_enabled",e)},expression:"storeData.logo_enabled"}},[t._v("\n                          Show logo "),n("i",{staticClass:"fa fa-question-circle-o",attrs:{id:"logo-info","aria-hidden":"true"}}),t._v(" "),n("b-tooltip",{attrs:{target:"logo-info"}},[t._v("\n                            Logo will not work with custom header\n                          ")])],1)],1),t._v(" "),n("div",{staticClass:"form-group"},[n("b-form-checkbox",{staticClass:"mr-3",attrs:{switch:"",disabled:!t.canManage},on:{change:t.updateSettings},model:{value:t.storeData.header_enabled,callback:function(e){t.$set(t.storeData,"header_enabled",e)},expression:"storeData.header_enabled"}},[t._v("\n                          Use Custom Header\n                        ")])],1),t._v(" "),t.storeData.header_enabled?[n("div",{staticClass:"form-group mb-5"},[n("label",{attrs:{for:"edit-custom-header"}},[t._v("Custom Header\n                            "),n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.headerLock=!t.headerLock}}},[t.headerLock?n("i",{staticClass:"fa fa-lock"}):n("i",{staticClass:"fa fa-unlock"})])]),t._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.storeData.header,expression:"storeData.header"}],staticClass:"form-control",attrs:{id:"edit-custom-header",rows:"5",placeholder:"Paste your html code here",disabled:!t.canManage||t.headerLock},domProps:{value:t.storeData.header},on:{input:function(e){e.target.composing||t.$set(t.storeData,"header",e.target.value)}}})])]:t._e(),t._v(" "),n("div",{staticClass:"form-group"},[n("b-form-checkbox",{staticClass:"mr-3",attrs:{switch:"",disabled:!t.canManage},on:{change:t.updateSettings},model:{value:t.storeData.footer_enabled,callback:function(e){t.$set(t.storeData,"footer_enabled",e)},expression:"storeData.footer_enabled"}},[t._v("\n                          Use Custom Footer\n                        ")])],1),t._v(" "),t.storeData.footer_enabled?[n("div",{staticClass:"form-group mb-5"},[n("label",{attrs:{for:"edit-custom-footer"}},[t._v("Custom Footer\n                            "),n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.footerLock=!t.footerLock}}},[t.footerLock?n("i",{staticClass:"fa fa-lock"}):n("i",{staticClass:"fa fa-unlock"})])]),t._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.storeData.footer,expression:"storeData.footer"}],staticClass:"form-control",attrs:{id:"edit-custom-footer",rows:"5",placeholder:"Paste your html code here",disabled:!t.canManage||t.footerLock},domProps:{value:t.storeData.footer},on:{input:function(e){e.target.composing||t.$set(t.storeData,"footer",e.target.value)}}})])]:t._e(),t._v(" "),t.storeData.header_enabled||t.storeData.footer_enabled?[n("div",{staticClass:"form-group mb-5"},[n("label",{attrs:{for:"custom-styles"}},[t._v("Custom Styles\n                            "),n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.styleLock=!t.styleLock}}},[t.styleLock?n("i",{staticClass:"fa fa-lock"}):n("i",{staticClass:"fa fa-unlock"})])]),t._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.storeData.styles,expression:"storeData.styles"}],staticClass:"form-control",attrs:{id:"custom-styles",rows:"5",placeholder:"Paste your css code here",disabled:!t.canManage||t.styleLock},domProps:{value:t.storeData.styles},on:{input:function(e){e.target.composing||t.$set(t.storeData,"styles",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group mb-5"},[n("label",{attrs:{for:"custom-styles"}},[t._v("Custom Scripts\n                            "),n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.scriptLock=!t.scriptLock}}},[t.scriptLock?n("i",{staticClass:"fa fa-lock"}):n("i",{staticClass:"fa fa-unlock"})])]),t._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.storeData.scripts,expression:"storeData.scripts"}],staticClass:"form-control",attrs:{id:"custom-styles",rows:"5",placeholder:"Paste your scripts here",disabled:!t.canManage||t.scriptLock},domProps:{value:t.storeData.scripts},on:{input:function(e){e.target.composing||t.$set(t.storeData,"scripts",e.target.value)}}})])]:t._e(),t._v(" "),n("h4",[t._v("Background")]),t._v(" "),n("background-settings",{attrs:{"can-manage":t.canManage},model:{value:t.storeData,callback:function(e){t.storeData=e},expression:"storeData"}})],2)]),t._v(" "),n("b-tab",{attrs:{title:"Breadcrumbs"}},[n("div",{staticClass:"list_container p-2 p-md-3 p-xl-5"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6 pr-md-1"},[n("label",[t._v("Font")]),t._v(" "),n("div",{staticClass:"form-group"},[n("font-select",{attrs:{disabled:!t.canManage},model:{value:t.storeData.settings.store_fonts.breadcrumb_css_class,callback:function(e){t.$set(t.storeData.settings.store_fonts,"breadcrumb_css_class",e)},expression:"storeData.settings.store_fonts.breadcrumb_css_class"}})],1)]),t._v(" "),n("div",{staticClass:"col-12 col-md-3 px-md-1"},[n("label",{attrs:{for:"breadcrumb-font-size"}},[t._v("Font Size")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.settings.breadcrumb_font_size,expression:"storeData.settings.breadcrumb_font_size"}],staticClass:"form-control",attrs:{type:"number",id:"breadcrumb-font-size",placeholder:t.cssVars["--breadcrumb-font-size"],disabled:!t.canManage},domProps:{value:t.storeData.settings.breadcrumb_font_size},on:{input:function(e){e.target.composing||t.$set(t.storeData.settings,"breadcrumb_font_size",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"col-12 col-md-3 pl-md-1"},[n("label",{attrs:{for:"breadcrumb-font-spacing"}},[t._v("Font Spacing")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.settings.breadcrumb_font_spacing,expression:"storeData.settings.breadcrumb_font_spacing"}],staticClass:"form-control",attrs:{type:"number",id:"breadcrumb-font-spacing",placeholder:t.cssVars["--breadcrumb-font-spacing"],disabled:!t.canManage},domProps:{value:t.storeData.settings.breadcrumb_font_spacing},on:{input:function(e){e.target.composing||t.$set(t.storeData.settings,"breadcrumb_font_spacing",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6"},[n("LvColorPicker",{staticClass:"mb-0",attrs:{label:"Previous",hidePalette:!0,disabled:!t.canManage,placeholder:t.cssVars["--breadcrumb-color"]},model:{value:t.storeData.settings.breadcrumb_clr,callback:function(e){t.$set(t.storeData.settings,"breadcrumb_clr",e)},expression:"storeData.settings.breadcrumb_clr"}})],1),t._v(" "),n("div",{staticClass:"col-12 col-md-6"},[n("LvColorPicker",{staticClass:"mb-0",attrs:{label:"Current",hidePalette:!0,disabled:!t.canManage,placeholder:t.cssVars["--breadcrumb-current-color"]},model:{value:t.storeData.settings.breadcrumb_current_clr,callback:function(e){t.$set(t.storeData.settings,"breadcrumb_current_clr",e)},expression:"storeData.settings.breadcrumb_current_clr"}})],1)])]),t._v(" "),n("div",{staticClass:"col-12 col-md-12 col-lg-4 text-right align-self-center px-0"},[n("div",{staticClass:"breadcrumbs"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("ul",{staticClass:"list-inline breadcrumbs-items",class:t.breadcrumbFont},[n("li",{staticClass:"list-inline-item"},[n("a",{attrs:{href:"#"}},[n("i",{staticClass:"fa fa-home"})])]),t._v(" "),n("li",{staticClass:"list-inline-item"},[n("a",{attrs:{href:"#"}},[t._v("Previous")])]),t._v(" "),n("li",{staticClass:"list-inline-item"},[n("a",{attrs:{href:"#"}},[t._v("Current")])])])])])])])])])]),t._v(" "),n("b-tab",{attrs:{title:"User Question"}},[n("div",{staticClass:"list_container p-2 p-md-3 p-xl-5"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6 pr-md-1"},[n("label",{attrs:{for:"step-title-font"}},[t._v("Font")]),t._v(" "),n("div",{staticClass:"form-group"},[n("font-select",{attrs:{id:"step-title-font",disabled:!t.canManage},model:{value:t.storeData.settings.store_fonts.category_name_css_class,callback:function(e){t.$set(t.storeData.settings.store_fonts,"category_name_css_class",e)},expression:"storeData.settings.store_fonts.category_name_css_class"}})],1)]),t._v(" "),n("div",{staticClass:"col-12 col-md-3 px-md-1"},[n("label",{attrs:{for:"title-font-size"}},[t._v("Font Size")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.settings.title_font_size,expression:"storeData.settings.title_font_size"}],staticClass:"form-control",attrs:{type:"number",id:"title-font-size",placeholder:t.cssVars["--title-font-size"],disabled:!t.canManage},domProps:{value:t.storeData.settings.title_font_size},on:{input:function(e){e.target.composing||t.$set(t.storeData.settings,"title_font_size",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"col-12 col-md-3 pl-md-1"},[n("label",{attrs:{for:"title-font-spacing"}},[t._v("Font Spacing")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.settings.title_font_spacing,expression:"storeData.settings.title_font_spacing"}],staticClass:"form-control",attrs:{type:"number",id:"title-font-spacing",placeholder:t.cssVars["--title-font-spacing"],disabled:!t.canManage},domProps:{value:t.storeData.settings.title_font_spacing},on:{input:function(e){e.target.composing||t.$set(t.storeData.settings,"title_font_spacing",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("LvColorPicker",{staticClass:"mb-0",attrs:{label:"Step Title Colour",hidePalette:!0,disabled:!t.canManage,placeholder:t.cssVars["--title-color"]},model:{value:t.storeData.title_clr,callback:function(e){t.$set(t.storeData,"title_clr",e)},expression:"storeData.title_clr"}})],1),t._v(" "),n("div",{staticClass:"col-12 col-md-12 col-lg-4 text-right"},[n("h4",{staticClass:"step-title mt-4",class:t.titleFont},[t._v("User Question/Step Title")])])])])]),t._v(" "),n("b-tab",{attrs:{title:"Buttons"}},[n("b-tabs",{staticClass:"mt-1",attrs:{"content-class":"list_container p-2 p-md-3 p-xl-5",fill:""}},[n("b-tab",{attrs:{title:"Continue Button"}},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6 pr-md-1"},[n("label",{attrs:{for:"continue-btn-text"}},[t._v("Button Text")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.settings.continue_btn_text,expression:"storeData.settings.continue_btn_text"}],staticClass:"form-control",attrs:{type:"text",id:"continue-btn-text",placeholder:"Continue",disabled:!t.canManage},domProps:{value:t.storeData.settings.continue_btn_text},on:{input:function(e){e.target.composing||t.$set(t.storeData.settings,"continue_btn_text",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"col-12 col-md-6 pl-md-1"},[n("LvColorPicker",{staticClass:"mb-0",attrs:{label:"Continue Button Colour",hidePalette:!0,disabled:!t.canManage,placeholder:t.cssVars["--button-color"]},model:{value:t.storeData.btn_clr,callback:function(e){t.$set(t.storeData,"btn_clr",e)},expression:"storeData.btn_clr"}})],1)])]),t._v(" "),n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6 pr-md-1"},[n("label",[t._v("Continue Button Font")]),t._v(" "),n("div",{staticClass:"form-group"},[n("font-select",{attrs:{disabled:!t.canManage},model:{value:t.storeData.settings.store_fonts.continue_btn_css_class,callback:function(e){t.$set(t.storeData.settings.store_fonts,"continue_btn_css_class",e)},expression:"storeData.settings.store_fonts.continue_btn_css_class"}})],1)]),t._v(" "),n("div",{staticClass:"col-12 col-md-3 pl-md-1"},[n("label",{attrs:{for:"continue-btn-font-spacing"}},[t._v("Font Spacing")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.settings.continue_btn_font_spacing,expression:"storeData.settings.continue_btn_font_spacing"}],staticClass:"form-control",attrs:{type:"number",id:"continue-btn-font-spacing",placeholder:t.cssVars["--continue-btn-font-spacing"],disabled:!t.canManage},domProps:{value:t.storeData.settings.continue_btn_font_spacing},on:{input:function(e){e.target.composing||t.$set(t.storeData.settings,"continue_btn_font_spacing",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"col-12 col-md-12 col-lg-4 text-right"},[n("button",{staticClass:"store-button",class:t.continueButtonFont},[n("span",[t._v(t._s(t.storeData.settings.continue_btn_text||"Continue"))]),t._v(" "),n("i")])])])]),t._v(" "),n("b-tab",{attrs:{title:"Back Button"}},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6 pr-md-1"},[n("label",{attrs:{for:"back-btn-text"}},[t._v("Button Text")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.settings.back_btn_text,expression:"storeData.settings.back_btn_text"}],staticClass:"form-control",attrs:{type:"text",id:"back-btn-text",disabled:!t.canManage},domProps:{value:t.storeData.settings.back_btn_text},on:{input:function(e){e.target.composing||t.$set(t.storeData.settings,"back_btn_text",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"col-12 col-md-6 pl-md-1"},[n("LvColorPicker",{staticClass:"mb-0",attrs:{label:"Back Button Colour",hidePalette:!0,disabled:!t.canManage,placeholder:t.cssVars["--back-button-color"]},model:{value:t.storeData.arrow_btns_clr,callback:function(e){t.$set(t.storeData,"arrow_btns_clr",e)},expression:"storeData.arrow_btns_clr"}})],1)])]),t._v(" "),n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6 pr-md-1"},[n("label",[t._v("Back Button Font")]),t._v(" "),n("div",{staticClass:"form-group"},[n("font-select",{attrs:{disabled:!t.canManage},model:{value:t.storeData.settings.store_fonts.back_btn_css_class,callback:function(e){t.$set(t.storeData.settings.store_fonts,"back_btn_css_class",e)},expression:"storeData.settings.store_fonts.back_btn_css_class"}})],1)]),t._v(" "),n("div",{staticClass:"col-12 col-md-3 pl-md-1"},[n("label",{attrs:{for:"back-btn-font-spacing"}},[t._v("Font Spacing")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.settings.back_btn_font_spacing,expression:"storeData.settings.back_btn_font_spacing"}],staticClass:"form-control",attrs:{type:"number",id:"back-btn-font-spacing",placeholder:t.cssVars["--back-btn-font-spacing"],disabled:!t.canManage},domProps:{value:t.storeData.settings.back_btn_font_spacing},on:{input:function(e){e.target.composing||t.$set(t.storeData.settings,"back_btn_font_spacing",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"col-12 col-md-12 col-lg-4 text-right"},[n("button",{staticClass:"store-button prev",class:t.backButtonFont},[n("i"),t._v(" "),n("span",[t._v(t._s(t.storeData.settings.back_btn_text))])])])])]),t._v(" "),n("b-tab",{attrs:{title:"Send Button"}},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6 pr-md-1"},[n("label",{attrs:{for:"send-btn-text"}},[t._v("Send Button Text")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.send_btn_text,expression:"storeData.send_btn_text"}],staticClass:"form-control",attrs:{type:"text",id:"send-btn-text",placeholder:"Send",disabled:!t.canManage},domProps:{value:t.storeData.send_btn_text},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.update.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.storeData,"send_btn_text",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"col-12 col-md-3 pl-md-1"},[n("label",{attrs:{for:"send-btn-font-spacing"}},[t._v("Font Spacing")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.settings.send_btn_font_spacing,expression:"storeData.settings.send_btn_font_spacing"}],staticClass:"form-control",attrs:{type:"number",id:"send-btn-font-spacing",placeholder:t.cssVars["--send-btn-font-spacing"],disabled:!t.canManage},domProps:{value:t.storeData.settings.send_btn_font_spacing},on:{input:function(e){e.target.composing||t.$set(t.storeData.settings,"send_btn_font_spacing",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"col-12 col-md-12 col-lg-4 text-right"},[n("button",{staticClass:"store-button send",class:t.continueButtonFont},[n("span",{staticClass:"small-icon"}),t._v("\n                              "+t._s(t.storeData.send_btn_text)+"\n                            ")])]),t._v(" "),n("div",{staticClass:"col-12 col-md-12 col-lg-4 text-right"},[n("button",{staticClass:"store-button send",class:t.continueButtonFont,attrs:{disabled:""}},[n("span",{staticClass:"small-icon"}),t._v("\n                              "+t._s(t.storeData.send_btn_text)+" (disabled)\n                            ")])])])])],1)],1),t._v(" "),n("b-tab",{attrs:{title:"Variation Cards"}},[n("b-tabs",{staticClass:"mt-1",attrs:{"content-class":"list_container p-2 p-md-3 p-xl-5",fill:""}},[n("b-tab",{attrs:{title:"Image Variation Card"}},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-sm-8 col-md-8 col-lg-9"},[n("h4",[t._v("Variation name")]),t._v(" "),n("div",{staticClass:"row mb-3"},[n("div",{staticClass:"col-12 col-md-6 col-lg-5"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6 pr-md-1"},[n("label",[t._v("Font")]),t._v(" "),n("div",{staticClass:"form-group"},[n("font-select",{attrs:{disabled:!t.canManage},model:{value:t.storeData.settings.store_fonts.item_name_css_class,callback:function(e){t.$set(t.storeData.settings.store_fonts,"item_name_css_class",e)},expression:"storeData.settings.store_fonts.item_name_css_class"}})],1)]),t._v(" "),n("div",{staticClass:"col-12 col-md-3 px-md-1"},[n("label",{attrs:{for:"item-font-size"}},[t._v("Font Size")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.settings.item_font_size,expression:"storeData.settings.item_font_size"}],staticClass:"form-control",attrs:{type:"number",id:"item-font-size",placeholder:t.cssVars["--item-font-size"],disabled:!t.canManage},domProps:{value:t.storeData.settings.item_font_size},on:{input:function(e){e.target.composing||t.$set(t.storeData.settings,"item_font_size",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"col-12 col-md-3 pl-md-1"},[n("label",{attrs:{for:"item-font-spacing"}},[t._v("Font Spacing")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.settings.item_font_spacing,expression:"storeData.settings.item_font_spacing"}],staticClass:"form-control",attrs:{type:"number",id:"item-font-spacing",placeholder:t.cssVars["--item-font-spacing"],disabled:!t.canManage},domProps:{value:t.storeData.settings.item_font_spacing},on:{input:function(e){e.target.composing||t.$set(t.storeData.settings,"item_font_spacing",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("LvColorPicker",{staticClass:"mb-0",attrs:{label:"Font Colour",hidePalette:!0,disabled:!t.canManage,placeholder:t.cssVars["--item-name-color"]},model:{value:t.storeData.settings.item_name_clr,callback:function(e){t.$set(t.storeData.settings,"item_name_clr",e)},expression:"storeData.settings.item_name_clr"}})],1)]),t._v(" "),n("h4",[t._v("Variation Price")]),t._v(" "),n("div",{staticClass:"row mb-3"},[n("div",{staticClass:"col-12 col-md-6 col-lg-5"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6 pr-md-1"},[n("label",[t._v("Font")]),t._v(" "),n("div",{staticClass:"form-group"},[n("font-select",{attrs:{disabled:!t.canManage},model:{value:t.storeData.settings.store_fonts.price_css_class,callback:function(e){t.$set(t.storeData.settings.store_fonts,"price_css_class",e)},expression:"storeData.settings.store_fonts.price_css_class"}})],1)]),t._v(" "),n("div",{staticClass:"col-12 col-md-3 px-md-1"},[n("label",{attrs:{for:"price-font-size"}},[t._v("Font Size")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.settings.price_font_size,expression:"storeData.settings.price_font_size"}],staticClass:"form-control",attrs:{type:"number",id:"price-font-size",placeholder:t.cssVars["--price-font-size"],disabled:!t.canManage},domProps:{value:t.storeData.settings.price_font_size},on:{input:function(e){e.target.composing||t.$set(t.storeData.settings,"price_font_size",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"col-12 col-md-3 pl-md-1"},[n("label",{attrs:{for:"price-font-spacing"}},[t._v("Font Spacing")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.settings.price_font_spacing,expression:"storeData.settings.price_font_spacing"}],staticClass:"form-control",attrs:{type:"number",id:"price-font-spacing",placeholder:t.cssVars["--price-font-spacing"],disabled:!t.canManage},domProps:{value:t.storeData.settings.price_font_spacing},on:{input:function(e){e.target.composing||t.$set(t.storeData.settings,"price_font_spacing",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("LvColorPicker",{staticClass:"mb-0",attrs:{label:"Font Colour",hidePalette:!0,disabled:!t.canManage,placeholder:t.cssVars["--price-color"]},model:{value:t.storeData.settings.price_clr,callback:function(e){t.$set(t.storeData.settings,"price_clr",e)},expression:"storeData.settings.price_clr"}})],1)]),t._v(" "),n("h4",[t._v("Variation Card")]),t._v(" "),n("div",{staticClass:"row mb-3"},[n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("LvColorPicker",{staticClass:"mb-0",attrs:{label:"Background Colour",hidePalette:!0,disabled:!t.canManage,placeholder:t.cssVars["--card-background-color"]},model:{value:t.storeData.settings.card_bg_clr,callback:function(e){t.$set(t.storeData.settings,"card_bg_clr",e)},expression:"storeData.settings.card_bg_clr"}})],1),t._v(" "),n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("LvColorPicker",{staticClass:"mb-0",attrs:{label:"Description Background Colour",hidePalette:!0,disabled:!t.canManage,placeholder:t.cssVars["--card-description-background-color"]},model:{value:t.storeData.settings.card_description_bg_clr,callback:function(e){t.$set(t.storeData.settings,"card_description_bg_clr",e)},expression:"storeData.settings.card_description_bg_clr"}})],1),t._v(" "),n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("LvColorPicker",{staticClass:"mb-0",attrs:{label:"Border Colour",hidePalette:!0,disabled:!t.canManage,placeholder:t.cssVars["--card-border-color"]},model:{value:t.storeData.settings.card_border_clr,callback:function(e){t.$set(t.storeData.settings,"card_border_clr",e)},expression:"storeData.settings.card_border_clr"}})],1)]),t._v(" "),n("h4",[t._v("Expand Description")]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("LvColorPicker",{staticClass:"mb-0",attrs:{label:"Button Colour",hidePalette:!0,disabled:!t.canManage,placeholder:t.cssVars["--expand-description-button-color"]},model:{value:t.storeData.settings.expand_description_btn_clr,callback:function(e){t.$set(t.storeData.settings,"expand_description_btn_clr",e)},expression:"storeData.settings.expand_description_btn_clr"}})],1),t._v(" "),n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("LvColorPicker",{staticClass:"mb-0",attrs:{label:"Icon Colour",hidePalette:!0,disabled:!t.canManage,placeholder:t.cssVars["--expand-description-icon-color"]},model:{value:t.storeData.settings.expand_description_icon_clr,callback:function(e){t.$set(t.storeData.settings,"expand_description_icon_clr",e)},expression:"storeData.settings.expand_description_icon_clr"}})],1)])]),t._v(" "),n("div",{staticClass:"col-12 col-sm-4 col-md-4 col-lg-3"},[n("div",{staticClass:"card-wrapper"},[n("ValueCard",{attrs:{value:t.imageCard,price:t.formatPrice(t.imageCard.price),active:t.imageCard.active,type:t.imageCard.type,"display-type":t.imageCard.displayType,attribute:t.imageCard.isAttribute,"name-font":t.itemNameFont,"plain-name-font":t.plainItemNameFont,"plain-price-font":t.plainItemPriceFont,"plain-name-active-font":t.plainItemNameActiveFont,"plain-price-active-font":t.plainItemPriceActiveFont,"price-font":t.priceFont}})],1)])])]),t._v(" "),n("b-tab",{attrs:{title:"Image Variation Card - Selected"}},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-sm-8 col-md-8 col-lg-9"},[n("h4",[t._v("Variation name")]),t._v(" "),n("div",{staticClass:"row mb-3"},[n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("LvColorPicker",{staticClass:"mb-0",attrs:{label:"Font Colour",hidePalette:!0,disabled:!t.canManage,placeholder:t.cssVars["--item-active-name-color"]},model:{value:t.storeData.settings.item_active_name_clr,callback:function(e){t.$set(t.storeData.settings,"item_active_name_clr",e)},expression:"storeData.settings.item_active_name_clr"}})],1)]),t._v(" "),n("h4",[t._v("Variation Price")]),t._v(" "),n("div",{staticClass:"row mb-3"},[n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("LvColorPicker",{staticClass:"mb-0",attrs:{label:"Font Colour",hidePalette:!0,disabled:!t.canManage,placeholder:t.cssVars["--price-active-color"]},model:{value:t.storeData.settings.price_active_clr,callback:function(e){t.$set(t.storeData.settings,"price_active_clr",e)},expression:"storeData.settings.price_active_clr"}})],1)]),t._v(" "),n("h4",[t._v("Variation Card")]),t._v(" "),n("div",{staticClass:"row mb-3"},[n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("LvColorPicker",{staticClass:"mb-0",attrs:{label:"Description Background Colour",hidePalette:!0,disabled:!t.canManage,placeholder:t.cssVars["--card-active-description-background-color"]},model:{value:t.storeData.settings.card_active_description_bg_clr,callback:function(e){t.$set(t.storeData.settings,"card_active_description_bg_clr",e)},expression:"storeData.settings.card_active_description_bg_clr"}})],1),t._v(" "),n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("LvColorPicker",{staticClass:"mb-0",attrs:{label:"Background Colour",hidePalette:!0,disabled:!t.canManage,placeholder:t.cssVars["--card-overlay-color"]},model:{value:t.storeData.settings.card_overlay_clr,callback:function(e){t.$set(t.storeData.settings,"card_overlay_clr",e)},expression:"storeData.settings.card_overlay_clr"}})],1),t._v(" "),n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("LvColorPicker",{staticClass:"mb-0",attrs:{label:"Border Colour",hidePalette:!0,disabled:!t.canManage,placeholder:t.cssVars["--card-active-border-color"]},model:{value:t.storeData.settings.card_active_border_clr,callback:function(e){t.$set(t.storeData.settings,"card_active_border_clr",e)},expression:"storeData.settings.card_active_border_clr"}})],1)])]),t._v(" "),n("div",{staticClass:"col-12 col-sm-4 col-md-4 col-lg-3"},[n("div",{staticClass:"card-wrapper"},[n("ValueCard",{attrs:{value:t.imageCardActive,price:t.formatPrice(t.imageCardActive.price),active:t.imageCardActive.active,type:t.imageCardActive.type,"display-type":t.imageCardActive.displayType,attribute:t.imageCardActive.isAttribute,"name-font":t.itemNameFont,"plain-name-font":t.plainItemNameFont,"plain-price-font":t.plainItemPriceFont,"plain-name-active-font":t.plainItemNameActiveFont,"plain-price-active-font":t.plainItemPriceActiveFont,"price-font":t.priceFont}})],1)])])]),t._v(" "),n("b-tab",{attrs:{title:"Plain Variation Card"}},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-sm-8 col-md-8 col-lg-9 col-xl-10"},[n("h4",[t._v("Variation Font")]),t._v(" "),n("div",{staticClass:"row mb-3"},[n("div",{staticClass:"col-12 col-md-6 col-lg-5"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6 pr-md-1"},[n("label",[t._v("Font")]),t._v(" "),n("div",{staticClass:"form-group"},[n("font-select",{attrs:{disabled:!t.canManage},model:{value:t.storeData.settings.store_fonts.plain_item_name_css_class,callback:function(e){t.$set(t.storeData.settings.store_fonts,"plain_item_name_css_class",e)},expression:"storeData.settings.store_fonts.plain_item_name_css_class"}})],1)]),t._v(" "),n("div",{staticClass:"col-12 col-md-3 px-md-1"},[n("label",{attrs:{for:"plain-item-font-size"}},[t._v("Font Size")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.settings.plain_item_font_size,expression:"storeData.settings.plain_item_font_size"}],staticClass:"form-control",attrs:{type:"number",id:"plain-item-font-size",placeholder:t.cssVars["--plain-item-font-size"],disabled:!t.canManage},domProps:{value:t.storeData.settings.plain_item_font_size},on:{input:function(e){e.target.composing||t.$set(t.storeData.settings,"plain_item_font_size",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"col-12 col-md-3 pl-md-1"},[n("label",{attrs:{for:"plain-item-font-spacing"}},[t._v("Font Spacing")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.settings.plain_item_font_spacing,expression:"storeData.settings.plain_item_font_spacing"}],staticClass:"form-control",attrs:{type:"number",id:"plain-item-font-spacing",placeholder:t.cssVars["--plain-item-font-spacing"],disabled:!t.canManage},domProps:{value:t.storeData.settings.plain_item_font_spacing},on:{input:function(e){e.target.composing||t.$set(t.storeData.settings,"plain_item_font_spacing",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("LvColorPicker",{staticClass:"mb-0",attrs:{label:"Font colour",hidePalette:!0,disabled:!t.canManage,placeholder:t.cssVars["--plain-item-name-color"]},model:{value:t.storeData.settings.plain_item_name_clr,callback:function(e){t.$set(t.storeData.settings,"plain_item_name_clr",e)},expression:"storeData.settings.plain_item_name_clr"}})],1)]),t._v(" "),n("h4",[t._v("Variation Price")]),t._v(" "),n("div",{staticClass:"row mb-3"},[n("div",{staticClass:"col-12 col-md-6 col-lg-5"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6 pr-md-1"},[n("label",[t._v("Font")]),t._v(" "),n("div",{staticClass:"form-group"},[n("font-select",{attrs:{disabled:!t.canManage},model:{value:t.storeData.settings.store_fonts.plain_item_price_css_class,callback:function(e){t.$set(t.storeData.settings.store_fonts,"plain_item_price_css_class",e)},expression:"storeData.settings.store_fonts.plain_item_price_css_class"}})],1)]),t._v(" "),n("div",{staticClass:"col-12 col-md-3 px-md-1"},[n("label",{attrs:{for:"plain-item-price-font-size"}},[t._v("Font Size")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.settings.plain_item_price_font_size,expression:"storeData.settings.plain_item_price_font_size"}],staticClass:"form-control",attrs:{type:"number",id:"plain-item-price-font-size",placeholder:t.cssVars["--plain-item-price-font-size"],disabled:!t.canManage},domProps:{value:t.storeData.settings.plain_item_price_font_size},on:{input:function(e){e.target.composing||t.$set(t.storeData.settings,"plain_item_price_font_size",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"col-12 col-md-3 pl-md-1"},[n("label",{attrs:{for:"plain-item-price-font-spacing"}},[t._v("Font Spacing")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.settings.plain_item_price_font_spacing,expression:"storeData.settings.plain_item_price_font_spacing"}],staticClass:"form-control",attrs:{type:"number",id:"plain-item-price-font-spacing",placeholder:t.cssVars["--plain-item-price-font-spacing"],disabled:!t.canManage},domProps:{value:t.storeData.settings.plain_item_price_font_spacing},on:{input:function(e){e.target.composing||t.$set(t.storeData.settings,"plain_item_price_font_spacing",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("LvColorPicker",{staticClass:"mb-0",attrs:{label:"Font colour",hidePalette:!0,disabled:!t.canManage,placeholder:t.cssVars["--plain-item-price-color"]},model:{value:t.storeData.settings.plain_item_price_clr,callback:function(e){t.$set(t.storeData.settings,"plain_item_price_clr",e)},expression:"storeData.settings.plain_item_price_clr"}})],1)]),t._v(" "),n("h4",[t._v("Variation Card")]),t._v(" "),n("div",{staticClass:"row mb-3"},[n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("LvColorPicker",{staticClass:"mb-0",attrs:{label:"Background Colour",hidePalette:!0,disabled:!t.canManage,placeholder:t.cssVars["--plain-item-background-color"]},model:{value:t.storeData.settings.plain_item_bg_clr,callback:function(e){t.$set(t.storeData.settings,"plain_item_bg_clr",e)},expression:"storeData.settings.plain_item_bg_clr"}})],1),t._v(" "),n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("LvColorPicker",{staticClass:"mb-0",attrs:{label:"Border Colour",hidePalette:!0,disabled:!t.canManage,placeholder:t.cssVars["--plain-item-border-color"]},model:{value:t.storeData.settings.plain_item_border_clr,callback:function(e){t.$set(t.storeData.settings,"plain_item_border_clr",e)},expression:"storeData.settings.plain_item_border_clr"}})],1)])]),t._v(" "),n("div",{staticClass:"col-12 col-sm-4 col-md-4 col-lg-3 col-xl-2"},[n("div",{staticClass:"card-wrapper"},[n("ValueCard",{attrs:{value:t.plainCard,price:t.formatPrice(t.plainCard.price),active:t.plainCard.active,type:t.plainCard.type,"display-type":t.plainCard.displayType,attribute:t.plainCard.isAttribute,"name-font":t.itemNameFont,"plain-name-font":t.plainItemNameFont,"plain-price-font":t.plainItemPriceFont,"plain-name-active-font":t.plainItemNameActiveFont,"plain-price-active-font":t.plainItemPriceActiveFont,"price-font":t.priceFont}})],1)])])]),t._v(" "),n("b-tab",{attrs:{title:"Plain Variation Card - Selected"}},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-sm-8 col-md-8 col-lg-9 col-xl-10"},[n("h4",[t._v("Variation Font")]),t._v(" "),n("div",{staticClass:"row mb-3"},[n("div",{staticClass:"col-12 col-md-6 col-lg-5"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6 pr-md-1"},[n("label",[t._v("Font")]),t._v(" "),n("div",{staticClass:"form-group"},[n("font-select",{attrs:{disabled:!t.canManage},model:{value:t.storeData.settings.store_fonts.plain_item_name_active_css_class,callback:function(e){t.$set(t.storeData.settings.store_fonts,"plain_item_name_active_css_class",e)},expression:"storeData.settings.store_fonts.plain_item_name_active_css_class"}})],1)]),t._v(" "),n("div",{staticClass:"col-12 col-md-3 px-md-1"},[n("label",{attrs:{for:"plain-item-active-font-size"}},[t._v("Font Size")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.settings.plain_item_active_font_size,expression:"storeData.settings.plain_item_active_font_size"}],staticClass:"form-control",attrs:{type:"number",id:"plain-item-active-font-size",placeholder:t.cssVars["--plain-item-active-font-size"],disabled:!t.canManage},domProps:{value:t.storeData.settings.plain_item_active_font_size},on:{input:function(e){e.target.composing||t.$set(t.storeData.settings,"plain_item_active_font_size",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"col-12 col-md-3 pl-md-1"},[n("label",{attrs:{for:"plain-item-active-font-spacing"}},[t._v("Font Spacing")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.settings.plain_item_active_font_spacing,expression:"storeData.settings.plain_item_active_font_spacing"}],staticClass:"form-control",attrs:{type:"number",id:"plain-item-active-font-spacing",placeholder:t.cssVars["--plain-item-active-font-spacing"],disabled:!t.canManage},domProps:{value:t.storeData.settings.plain_item_active_font_spacing},on:{input:function(e){e.target.composing||t.$set(t.storeData.settings,"plain_item_active_font_spacing",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("LvColorPicker",{staticClass:"mb-0",attrs:{label:"Font colour",hidePalette:!0,disabled:!t.canManage,placeholder:t.cssVars["--plain-item-name-active-color"]},model:{value:t.storeData.settings.plain_item_name_active_clr,callback:function(e){t.$set(t.storeData.settings,"plain_item_name_active_clr",e)},expression:"storeData.settings.plain_item_name_active_clr"}})],1)]),t._v(" "),n("h4",[t._v("Variation Price")]),t._v(" "),n("div",{staticClass:"row mb-3"},[n("div",{staticClass:"col-12 col-md-6 col-lg-5"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6 pr-md-1"},[n("label",[t._v("Font")]),t._v(" "),n("div",{staticClass:"form-group"},[n("font-select",{attrs:{disabled:!t.canManage},model:{value:t.storeData.settings.store_fonts.plain_item_price_active_css_class,callback:function(e){t.$set(t.storeData.settings.store_fonts,"plain_item_price_active_css_class",e)},expression:"storeData.settings.store_fonts.plain_item_price_active_css_class"}})],1)]),t._v(" "),n("div",{staticClass:"col-12 col-md-3 px-md-1"},[n("label",{attrs:{for:"plain-item-price-active-font-size"}},[t._v("Font Size")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.settings.plain_item_price_active_font_size,expression:"storeData.settings.plain_item_price_active_font_size"}],staticClass:"form-control",attrs:{type:"number",id:"plain-item-price-active-font-size",placeholder:t.cssVars["--plain-item-price-active-font-size"],disabled:!t.canManage},domProps:{value:t.storeData.settings.plain_item_price_active_font_size},on:{input:function(e){e.target.composing||t.$set(t.storeData.settings,"plain_item_price_active_font_size",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"col-12 col-md-3 pl-md-1"},[n("label",{attrs:{for:"plain-item-price-active-font-spacing"}},[t._v("Font Spacing")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.settings.plain_item_price_active_font_spacing,expression:"storeData.settings.plain_item_price_active_font_spacing"}],staticClass:"form-control",attrs:{type:"number",id:"plain-item-price-active-font-spacing",placeholder:t.cssVars["--plain-item-price-active-font-spacing"],disabled:!t.canManage},domProps:{value:t.storeData.settings.plain_item_price_active_font_spacing},on:{input:function(e){e.target.composing||t.$set(t.storeData.settings,"plain_item_price_active_font_spacing",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("LvColorPicker",{staticClass:"mb-0",attrs:{label:"Font colour",hidePalette:!0,disabled:!t.canManage,placeholder:t.cssVars["--plain-item-price-active-color"]},model:{value:t.storeData.settings.plain_item_price_active_clr,callback:function(e){t.$set(t.storeData.settings,"plain_item_price_active_clr",e)},expression:"storeData.settings.plain_item_price_active_clr"}})],1)]),t._v(" "),n("h4",[t._v("Variation Card")]),t._v(" "),n("div",{staticClass:"row mb-3"},[n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("LvColorPicker",{staticClass:"mb-0",attrs:{label:"Background Colour",hidePalette:!0,disabled:!t.canManage,placeholder:t.cssVars["--plain-item-active-background-color"]},model:{value:t.storeData.settings.plain_item_active_bg_clr,callback:function(e){t.$set(t.storeData.settings,"plain_item_active_bg_clr",e)},expression:"storeData.settings.plain_item_active_bg_clr"}})],1),t._v(" "),n("div",{staticClass:"col-12 col-md-6 col-lg-4"},[n("LvColorPicker",{staticClass:"mb-0",attrs:{label:"Border Colour",hidePalette:!0,disabled:!t.canManage,placeholder:t.cssVars["--plain-item-active-border-color"]},model:{value:t.storeData.settings.plain_item_active_border_clr,callback:function(e){t.$set(t.storeData.settings,"plain_item_active_border_clr",e)},expression:"storeData.settings.plain_item_active_border_clr"}})],1)])]),t._v(" "),n("div",{staticClass:"col-12 col-sm-4 col-md-4 col-lg-3 col-xl-2"},[n("div",{staticClass:"card-wrapper"},[n("ValueCard",{attrs:{value:t.plainCardActive,price:t.formatPrice(t.plainCardActive.price),active:t.plainCardActive.active,type:t.plainCardActive.type,"display-type":t.plainCardActive.displayType,attribute:t.plainCardActive.isAttribute,"name-font":t.itemNameFont,"plain-name-font":t.plainItemNameFont,"plain-price-font":t.plainItemPriceFont,"plain-name-active-font":t.plainItemNameActiveFont,"plain-price-active-font":t.plainItemPriceActiveFont,"price-font":t.priceFont}})],1)])])])],1)],1)],1)],1)]),t._v(" "),n("b-tab",{attrs:{title:"Summary Page"}},[n("div",{staticClass:"list_container p-2 p-md-3 p-xl-5"},[n("div",[n("label",[t._v("Required Customer Information")]),t._v(" "),n("i",{staticClass:"fa fa-question-circle-o",attrs:{id:"required-customer-information-info","aria-hidden":"true"}}),t._v(" "),n("b-tooltip",{attrs:{target:"required-customer-information-info"}},[t._v("\n                    You can specify exactly what information is required\n                    by your customers before they can save or send a quote\n                  ")])],1),t._v(" "),n("div",{staticClass:"input-group mb-3"},[n("b-form-checkbox",{staticClass:"mr-3",attrs:{checked:"true",disabled:"",switch:""}},[t._v("Email")]),t._v(" "),n("b-form-checkbox-group",{attrs:{options:t.customerRequirementsOptions,disabled:!t.canManage,switches:""},on:{change:t.updateSettings},model:{value:t.storeData.settings.customer_requirements,callback:function(e){t.$set(t.storeData.settings,"customer_requirements",e)},expression:"storeData.settings.customer_requirements"}})],1),t._v(" "),n("div",{staticClass:"form-group mb-3"},[n("label",{attrs:{for:"enquiry_form_header"}},[t._v("Enquiry Form Header")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.enquiry_form_header,expression:"storeData.enquiry_form_header"}],staticClass:"form-control",attrs:{id:"enquiry_form_header",type:"text",placeholder:"Enquiry Form Header",disabled:!t.canManage},domProps:{value:t.storeData.enquiry_form_header},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.update.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.storeData,"enquiry_form_header",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"row mb-3"},[n("div",{staticClass:"col-12 col-md-6"},[n("div",{staticClass:"form-group"},[n("b-form-checkbox",{staticClass:"mr-3",attrs:{switch:"",disabled:!t.canManage},on:{change:t.updateSettings},model:{value:t.storeData.is_hidden_price,callback:function(e){t.$set(t.storeData,"is_hidden_price",e)},expression:"storeData.is_hidden_price"}},[t._v("\n                        Hide price information\n                      ")]),t._v(" "),t.storeData.is_hidden_price?[n("h4",{staticClass:"d-flex justify-content-between"},[t._v('"Hidden prices" Modal\n                          '),n("button",{staticClass:"button btn btn-primary mt-0",on:{click:function(e){return e.preventDefault(),t.tryHiddenPricesModal.apply(null,arguments)}}},[t._v("Try\n                          ")])]),t._v(" "),n("label",{attrs:{for:"hidden_price_modal_header"}},[t._v("Header")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.hidden_price_modal_header,expression:"storeData.hidden_price_modal_header"}],staticClass:"form-control",attrs:{id:"hidden_price_modal_header",type:"text",title:"Header",disabled:!t.canManage},domProps:{value:t.storeData.hidden_price_modal_header},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.update.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.storeData,"hidden_price_modal_header",e.target.value)}}})]),t._v(" "),n("label",{attrs:{for:"hidden_price_modal_subheader"}},[t._v("Subheader")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.hidden_price_modal_subheader,expression:"storeData.hidden_price_modal_subheader"}],staticClass:"form-control",attrs:{id:"hidden_price_modal_subheader",type:"text",placeholder:"Subheader",disabled:!t.canManage},domProps:{value:t.storeData.hidden_price_modal_subheader},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.update.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.storeData,"hidden_price_modal_subheader",e.target.value)}}})])]:t._e()],2),t._v(" "),n("label",{attrs:{for:"agent-heading"}},[t._v("Agent Heading")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.settings.agent_heading,expression:"storeData.settings.agent_heading"}],staticClass:"form-control",attrs:{type:"text",id:"agent-heading",disabled:!t.canManage,placeholder:"Which one of our dealership would you like a quote from?"},domProps:{value:t.storeData.settings.agent_heading},on:{input:function(e){e.target.composing||t.$set(t.storeData.settings,"agent_heading",e.target.value)}}})]),t._v(" "),n("label",{attrs:{for:"agent-placeholder"}},[t._v("Agent dropdown text")]),t._v(" "),n("div",{staticClass:"form-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.settings.agent_placeholder,expression:"storeData.settings.agent_placeholder"}],staticClass:"form-control",attrs:{type:"text",id:"agent-placeholder",disabled:!t.canManage,placeholder:"Please select dealership."},domProps:{value:t.storeData.settings.agent_placeholder},on:{input:function(e){e.target.composing||t.$set(t.storeData.settings,"agent_placeholder",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"col-12 col-md-6"},[n("h4",{staticClass:"d-flex justify-content-between"},[t._v('"Success" Popup\n                      '),n("button",{staticClass:"button btn btn-primary",on:{click:function(e){return e.preventDefault(),t.tryPopup.apply(null,arguments)}}},[t._v("Try")])]),t._v(" "),n("div",{staticClass:"row mb-2"},[n("div",{staticClass:"col-md-4"},[t._v("Title")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.popup_title,expression:"storeData.popup_title"}],staticClass:"form-control",attrs:{type:"text",disabled:!t.canManage},domProps:{value:t.storeData.popup_title},on:{input:function(e){e.target.composing||t.$set(t.storeData,"popup_title",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"row mb-2"},[n("div",{staticClass:"col-md-4"},[t._v("Text")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.popup_text,expression:"storeData.popup_text"}],staticClass:"form-control",attrs:{type:"text",disabled:!t.canManage},domProps:{value:t.storeData.popup_text},on:{input:function(e){e.target.composing||t.$set(t.storeData,"popup_text",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"row mb-5"},[n("div",{staticClass:"col-md-4"},[t._v("Button Text")]),t._v(" "),n("div",{staticClass:"col-md-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.storeData.popup_btn_text,expression:"storeData.popup_btn_text"}],staticClass:"form-control",attrs:{type:"text",disabled:!t.canManage},domProps:{value:t.storeData.popup_btn_text},on:{input:function(e){e.target.composing||t.$set(t.storeData,"popup_btn_text",e.target.value)}}})])])])]),t._v(" "),n("div",{staticClass:"input-group mb-3"},[n("b-form-checkbox",{staticClass:"mr-3",attrs:{switch:"",disabled:!t.canManage},on:{change:t.updateSettings},model:{value:t.storeData.settings.restart_btn,callback:function(e){t.$set(t.storeData.settings,"restart_btn",e)},expression:"storeData.settings.restart_btn"}},[t._v("\n                    Add Restart button on success pop-up\n                  ")])],1)])]),t._v(" "),n("b-tab",{attrs:{title:"Quote Template"}},[n("div",{staticClass:"list_container p-2 p-md-3 p-xl-5"},[n("quote-template",{attrs:{ready:t.ready,store:t.storeData,quote:t.quote,"can-manage":t.canManage}})],1)])],1)],1)],1),t._v(" "),t.canManage?n("div",{staticClass:"mt-3 mb-5 text-right"},[3===t.tabIndex?n("button",{staticClass:"button btn btn-primary",attrs:{title:"Save Quote Template"},on:{click:t.updateTemplate}},[t._v("Save Quote Template\n        ")]):n("button",{staticClass:"button btn btn-primary",attrs:{title:"Save UI Settings"},on:{click:t.update}},[t._v("Save\n        ")])]):t._e()],1)]),t._v(" "),n("b-modal",{attrs:{id:"customer-modal","hide-header-close":""},scopedSlots:t._u([{key:"modal-title",fn:function(){return[n("div",{staticClass:"text-center",class:t.titleFont},[n("h4",[t._v(t._s(t.storeData.hidden_price_modal_header))]),t._v(" "),n("div",[t._v(t._s(t.storeData.hidden_price_modal_subheader))])])]},proxy:!0},{key:"modal-footer",fn:function(){return[n("button",{staticClass:"store-button w-100",style:t.cssVars,attrs:{disabled:!0}},[t._v("Submit")])]},proxy:!0}])},[t._v(" "),n("div",{staticClass:"row"},[t.isRequired("name")?n("div",{staticClass:"col-12"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"modal-name"}},[t._v("Name*")]),t._v(" "),n("input",{staticClass:"form-control",attrs:{type:"text",id:"modal-name"}})])]):t._e(),t._v(" "),n("div",{staticClass:"col-12"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"modal-email"}},[t._v("Email*")]),t._v(" "),n("input",{staticClass:"form-control",attrs:{type:"email",id:"modal-email"}})])]),t._v(" "),t.isRequired("phone")?n("div",{staticClass:"col-12"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"modal-phone"}},[t._v("Phone*")]),t._v(" "),n("input",{staticClass:"form-control",attrs:{type:"text",id:"modal-phone"}})])]):t._e()])])],1)}),[],!1,null,"2218e6d4",null).exports},4486:(t,e,n)=>{"use strict";function i(t,e,n,i,r,o,a,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}n.d(e,{A:()=>i})},5262:function(t){t.exports=function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=89)}([function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var i=n(35),r=Function.prototype,o=r.call,a=i&&r.bind.bind(o,o);t.exports=i?a:function(t){return function(){return o.apply(t,arguments)}}},function(t,e,n){var i=n(59),r=i.all;t.exports=i.IS_HTMLDDA?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},function(t,e,n){var i=n(4),r=n(43).f,o=n(30),a=n(11),s=n(33),l=n(95),c=n(66);t.exports=function(t,e){var n,u,d,h,p,f=t.target,m=t.global,v=t.stat;if(n=m?i:v?i[f]||s(f,{}):(i[f]||{}).prototype)for(u in e){if(h=e[u],d=t.dontCallGetSet?(p=r(n,u))&&p.value:n[u],!c(m?u:f+(v?".":"#")+u,t.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(t.sham||d&&d.sham)&&o(h,"sham",!0),a(n,u,h,t)}}},function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(e,n(139))},function(t,e,n){var i=n(0);t.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var i=n(8),r=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw o(r(t)+" is not an object")}},function(t,e,n){var i=n(1),r=n(14),o=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}},function(t,e,n){var i=n(2),r=n(59),o=r.all;t.exports=r.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:i(t)||t===o}:function(t){return"object"==typeof t?null!==t:i(t)}},function(t,e,n){var i=n(4),r=n(47),o=n(7),a=n(75),s=n(72),l=n(76),c=r("wks"),u=i.Symbol,d=u&&u.for,h=l?u:u&&u.withoutSetter||a;t.exports=function(t){if(!o(c,t)||!s&&"string"!=typeof c[t]){var e="Symbol."+t;s&&o(u,t)?c[t]=u[t]:c[t]=l&&d?d(e):h(e)}return c[t]}},function(t,e,n){var i=n(123);t.exports=function(t){return i(t.length)}},function(t,e,n){var i=n(2),r=n(13),o=n(104),a=n(33);t.exports=function(t,e,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:e;if(i(n)&&o(n,c,s),s.global)l?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=n:r.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},function(t,e,n){var i=n(35),r=Function.prototype.call;t.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},function(t,e,n){var i=n(5),r=n(62),o=n(77),a=n(6),s=n(50),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor;e.f=i?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var i=u(t,e);i&&i.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:i.configurable,enumerable:"enumerable"in n?n.enumerable:i.enumerable,writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=s(e),a(n),r)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var i=n(24),r=Object;t.exports=function(t){return r(i(t))}},function(t,e,n){var i=n(1),r=i({}.toString),o=i("".slice);t.exports=function(t){return o(r(t),8,-1)}},function(t,e,n){var i=n(0),r=n(9),o=n(23),a=r("species");t.exports=function(t){return o>=51||!i((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){var i=n(4),r=n(2),o=function(t){return r(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(i[t]):i[t]&&i[t][e]}},function(t,e,n){var i=n(15);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,n){var i=n(39),r=n(24);t.exports=function(t){return i(r(t))}},function(t,e,n){var i=n(29),r=String;t.exports=function(t){if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return r(t)}},function(t,e,n){var i=n(100),r=n(1),o=n(39),a=n(14),s=n(10),l=n(28),c=r([].push),u=function(t){var e=1==t,n=2==t,r=3==t,u=4==t,d=6==t,h=7==t,p=5==t||d;return function(f,m,v,g){for(var b,y,_=a(f),w=o(_),x=i(m,v),C=s(w),S=0,E=g||l,T=e?E(f,C):n||h?E(f,0):void 0;C>S;S++)if((p||S in w)&&(y=x(b=w[S],S,_),t))if(e)T[S]=y;else if(y)switch(t){case 3:return!0;case 5:return b;case 6:return S;case 2:c(T,b)}else switch(t){case 4:return!1;case 7:c(T,b)}return d?-1:r||u?u:T}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},function(t,e){var n=TypeError;t.exports=function(t){if(t>9007199254740991)throw n("Maximum allowed index exceeded");return t}},function(t,e,n){var i,r,o=n(4),a=n(97),s=o.process,l=o.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(r=(i=u.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(r=+i[1]),t.exports=r},function(t,e,n){var i=n(40),r=TypeError;t.exports=function(t){if(i(t))throw r("Can't call method on "+t);return t}},function(t,e,n){var i=n(2),r=n(74),o=TypeError;t.exports=function(t){if(i(t))return t;throw o(r(t)+" is not a function")}},function(t,e,n){"use strict";var i=n(0);t.exports=function(t,e){var n=[][t];return!!n&&i((function(){n.call(null,e||function(){return 1},1)}))}},function(t,e,n){"use strict";var i=n(5),r=n(18),o=TypeError,a=Object.getOwnPropertyDescriptor,s=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(r(t)&&!a(t,"length").writable)throw o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},function(t,e,n){var i=n(94);t.exports=function(t,e){return new(i(t))(0===e?0:e)}},function(t,e,n){var i=n(51),r=n(2),o=n(15),a=n(9)("toStringTag"),s=Object,l="Arguments"==o(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(t){}};t.exports=i?o:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=c(e=s(t),a))?n:l?o(e):"Object"==(i=o(e))&&r(e.callee)?"Arguments":i}},function(t,e,n){var i=n(5),r=n(13),o=n(31);t.exports=i?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var i=n(50),r=n(13),o=n(31);t.exports=function(t,e,n){var a=i(e);a in t?r.f(t,a,o(0,n)):t[a]=n}},function(t,e,n){var i=n(4),r=Object.defineProperty;t.exports=function(t,e){try{r(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var i=n(0);t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},function(t,e,n){var i=n(5),r=n(7),o=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=r(o,"name"),l=s&&"something"===function(){}.name,c=s&&(!i||i&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},function(t,e,n){var i=n(15),r=n(1);t.exports=function(t){if("Function"===i(t))return r(t)}},function(t,e){t.exports={}},function(t,e,n){var i=n(1),r=n(0),o=n(15),a=Object,s=i("".split);t.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?s(t,""):a(t)}:a},function(t,e){t.exports=function(t){return null==t}},function(t,e,n){var i=n(17),r=n(2),o=n(44),a=n(76),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return r(e)&&o(e.prototype,s(t))}},function(t,e,n){var i,r=n(6),o=n(107),a=n(34),s=n(38),l=n(101),c=n(60),u=n(70)("IE_PROTO"),d=function(){},h=function(t){return"<script>"+t+"<\/script>"},p=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},f=function(){var t,e=c("iframe");return e.style.display="none",l.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F},m=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}m="undefined"!=typeof document?document.domain&&i?p(i):f():p(i);for(var t=a.length;t--;)delete m.prototype[a[t]];return m()};s[u]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(d.prototype=r(t),n=new d,d.prototype=null,n[u]=t):n=m(),void 0===e?n:o.f(n,e)}},function(t,e,n){var i=n(5),r=n(12),o=n(110),a=n(31),s=n(19),l=n(50),c=n(7),u=n(62),d=Object.getOwnPropertyDescriptor;e.f=i?d:function(t,e){if(t=s(t),e=l(e),u)try{return d(t,e)}catch(t){}if(c(t,e))return a(!r(o.f,t,e),t[e])}},function(t,e,n){var i=n(1);t.exports=i({}.isPrototypeOf)},function(t,e,n){"use strict";var i=n(12),r=n(1),o=n(20),a=n(69),s=n(117),l=n(47),c=n(42),u=n(64).get,d=n(118),h=n(119),p=l("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,m=f,v=r("".charAt),g=r("".indexOf),b=r("".replace),y=r("".slice),_=function(){var t=/a/,e=/b*/g;return i(f,t,"a"),i(f,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),w=s.BROKEN_CARET,x=void 0!==/()??/.exec("")[1];(_||x||w||d||h)&&(m=function(t){var e,n,r,s,l,d,h,C=this,S=u(C),E=o(t),T=S.raw;if(T)return T.lastIndex=C.lastIndex,e=i(m,T,E),C.lastIndex=T.lastIndex,e;var O=S.groups,k=w&&C.sticky,A=i(a,C),P=C.source,M=0,L=E;if(k&&(A=b(A,"y",""),-1===g(A,"g")&&(A+="g"),L=y(E,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&"\n"!==v(E,C.lastIndex-1))&&(P="(?: "+P+")",L=" "+L,M++),n=new RegExp("^(?:"+P+")",A)),x&&(n=new RegExp("^"+P+"$(?!\\s)",A)),_&&(r=C.lastIndex),s=i(f,k?n:C,L),k?s?(s.input=y(s.input,M),s[0]=y(s[0],M),s.index=C.lastIndex,C.lastIndex+=s[0].length):C.lastIndex=0:_&&s&&(C.lastIndex=C.global?s.index+s[0].length:r),x&&s&&s.length>1&&i(p,s[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(s[l]=void 0)})),s&&O)for(s.groups=d=c(null),l=0;l<O.length;l++)d[(h=O[l])[0]]=s[h[1]];return s}),t.exports=m},function(t,e,n){var i=n(4),r=n(33),o=i["__core-js_shared__"]||r("__core-js_shared__",{});t.exports=o},function(t,e,n){var i=n(103),r=n(46);(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.26.1",mode:i?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(t,e,n){var i=n(49),r=Math.max,o=Math.min;t.exports=function(t,e){var n=i(t);return n<0?r(n+e,0):o(n,e)}},function(t,e,n){var i=n(105);t.exports=function(t){var e=+t;return e!=e||0===e?0:i(e)}},function(t,e,n){var i=n(73),r=n(41);t.exports=function(t){var e=i(t,"string");return r(e)?e:e+""}},function(t,e,n){var i={};i[n(9)("toStringTag")]="z",t.exports="[object z]"===String(i)},function(t,e,n){"use strict";var i=n(5),r=n(4),o=n(1),a=n(66),s=n(11),l=n(7),c=n(102),u=n(44),d=n(41),h=n(73),p=n(0),f=n(67).f,m=n(43).f,v=n(13).f,g=n(122),b=n(71).trim,y=r.Number,_=y.prototype,w=r.TypeError,x=o("".slice),C=o("".charCodeAt),S=function(t){var e=h(t,"number");return"bigint"==typeof e?e:E(e)},E=function(t){var e,n,i,r,o,a,s,l,c=h(t,"number");if(d(c))throw w("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=b(c),43===(e=C(c,0))||45===e){if(88===(n=C(c,2))||120===n)return NaN}else if(48===e){switch(C(c,1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+c}for(a=(o=x(c,2)).length,s=0;s<a;s++)if((l=C(o,s))<48||l>r)return NaN;return parseInt(o,i)}return+c};if(a("Number",!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var T,O=function(t){var e=arguments.length<1?0:y(S(t)),n=this;return u(_,n)&&p((function(){g(n)}))?c(Object(e),n,O):e},k=i?f(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),A=0;k.length>A;A++)l(y,T=k[A])&&!l(O,T)&&v(O,T,m(y,T));O.prototype=_,_.constructor=O,s(r,"Number",O,{constructor:!0})}},function(t,e,n){"use strict";var i=n(3),r=n(45);i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},function(t,e,n){"use strict";function i(t){return!(0===t||(!Array.isArray(t)||0!==t.length)&&t)}function r(t){return function(){return!t.apply(void 0,arguments)}}function o(t,e){return void 0===t&&(t="undefined"),null===t&&(t="null"),!1===t&&(t="false"),-1!==t.toString().toLowerCase().indexOf(e.trim())}function a(t,e,n,i){return t.filter((function(t){return o(i(t,n),e)}))}function s(t){return t.filter((function(t){return!t.$isLabel}))}function l(t,e){return function(n){return n.reduce((function(n,i){return i[t]&&i[t].length?(n.push({$groupLabel:i[e],$isLabel:!0}),n.concat(i[t])):n}),[])}}function c(t,e,i,r,o){return function(s){return s.map((function(s){var l;if(!s[i])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];var c=a(s[i],t,e,o);return c.length?(l={},n.i(d.a)(l,r,s[r]),n.i(d.a)(l,i,c),l):[]}))}}var u=n(88),d=n(87),h=n(129),p=(n.n(h),n(82)),f=(n.n(p),n(81)),m=(n.n(f),n(83)),v=(n.n(m),n(84)),g=(n.n(v),n(128)),b=(n.n(g),n(135)),y=(n.n(b),n(127)),_=(n.n(y),n(132)),w=(n.n(_),n(131)),x=(n.n(w),n(125)),C=(n.n(x),n(130)),S=(n.n(C),n(52)),E=(n.n(S),n(53)),T=(n.n(E),n(85)),O=(n.n(T),n(134)),k=(n.n(O),n(80)),A=(n.n(k),n(79)),P=(n.n(A),n(133)),M=(n.n(P),n(126)),L=(n.n(M),function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.reduce((function(t,e){return e(t)}),t)}});e.a={data:function(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},value:{type:null,default:function(){return[]}},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default:function(t,e){return i(t)?"":e?t[e]:t}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default:function(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted:function(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue:function(){return this.value||0===this.value?Array.isArray(this.value)?this.value:[this.value]:[]},filteredOptions:function(){var t=this.search||"",e=t.toLowerCase().trim(),n=this.options.concat();return n=this.internalSearch?this.groupValues?this.filterAndFlat(n,e,this.label):a(n,e,this.label,this.customLabel):this.groupValues?l(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(r(this.isSelected)):n,this.taggable&&e.length&&!this.isExistingOption(e)&&("bottom"===this.tagPosition?n.push({isTag:!0,label:t}):n.unshift({isTag:!0,label:t})),n.slice(0,this.optionsLimit)},valueKeys:function(){var t=this;return this.trackBy?this.internalValue.map((function(e){return e[t.trackBy]})):this.internalValue},optionKeys:function(){var t=this;return(this.groupValues?this.flatAndStrip(this.options):this.options).map((function(e){return t.customLabel(e,t.label).toString().toLowerCase()}))},currentOptionLabel:function(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:function(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("input",this.multiple?[]:null))},search:function(){this.$emit("search-change",this.search,this.id)}},methods:{getValue:function(){return this.multiple?this.internalValue:0===this.internalValue.length?null:this.internalValue[0]},filterAndFlat:function(t,e,n){return L(c(e,n,this.groupValues,this.groupLabel,this.customLabel),l(this.groupValues,this.groupLabel))(t)},flatAndStrip:function(t){return L(l(this.groupValues,this.groupLabel),s)(t)},updateSearch:function(t){this.search=t},isExistingOption:function(t){return!!this.options&&this.optionKeys.indexOf(t)>-1},isSelected:function(t){var e=this.trackBy?t[this.trackBy]:t;return this.valueKeys.indexOf(e)>-1},isOptionDisabled:function(t){return!!t.$isDisabled},getOptionLabel:function(t){if(i(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;var e=this.customLabel(t,this.label);return i(e)?"":e},select:function(t,e){if(t.$isLabel&&this.groupSelect)this.selectGroup(t);else if(!(-1!==this.blockKeys.indexOf(e)||this.disabled||t.$isDisabled||t.$isLabel)&&(!this.max||!this.multiple||this.internalValue.length!==this.max)&&("Tab"!==e||this.pointerDirty)){if(t.isTag)this.$emit("tag",t.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(t))return void("Tab"!==e&&this.removeElement(t));this.multiple?this.$emit("input",this.internalValue.concat([t]),this.id):this.$emit("input",t,this.id),this.$emit("select",t,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup:function(t){var e=this,n=this.options.find((function(n){return n[e.groupLabel]===t.$groupLabel}));if(n){if(this.wholeGroupSelected(n)){this.$emit("remove",n[this.groupValues],this.id);var i=this.trackBy?n[this.groupValues].map((function(t){return t[e.trackBy]})):n[this.groupValues],r=this.internalValue.filter((function(t){return-1===i.indexOf(e.trackBy?t[e.trackBy]:t)}));this.$emit("input",r,this.id)}else{var o=n[this.groupValues].filter((function(t){return!(e.isOptionDisabled(t)||e.isSelected(t))}));this.max&&o.splice(this.max-this.internalValue.length),this.$emit("select",o,this.id),this.$emit("input",this.internalValue.concat(o),this.id)}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected:function(t){var e=this;return t[this.groupValues].every((function(t){return e.isSelected(t)||e.isOptionDisabled(t)}))},wholeGroupDisabled:function(t){return t[this.groupValues].every(this.isOptionDisabled)},removeElement:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!this.disabled&&!t.$isDisabled){if(!this.allowEmpty&&this.internalValue.length<=1)return void this.deactivate();var i="object"===n.i(u.a)(t)?this.valueKeys.indexOf(t[this.trackBy]):this.valueKeys.indexOf(t);if(this.multiple){var r=this.internalValue.slice(0,i).concat(this.internalValue.slice(i+1));this.$emit("input",r,this.id)}else this.$emit("input",null,this.id);this.$emit("remove",t,this.id),this.closeOnSelect&&e&&this.deactivate()}},removeLastElement:function(){-1===this.blockKeys.indexOf("Delete")&&0===this.search.length&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate:function(){var t=this;this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&0===this.pointer&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick((function(){return t.$refs.search&&t.$refs.search.focus()}))):this.preventAutofocus||void 0!==this.$el&&this.$el.focus(),this.$emit("open",this.id))},deactivate:function(){this.isOpen&&(this.isOpen=!1,this.searchable?null!==this.$refs.search&&void 0!==this.$refs.search&&this.$refs.search.blur():void 0!==this.$el&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle:function(){this.isOpen?this.deactivate():this.activate()},adjustPosition:function(){if("undefined"!=typeof window){var t=this.$el.getBoundingClientRect().top,e=window.innerHeight-this.$el.getBoundingClientRect().bottom;e>this.maxHeight||e>t||"below"===this.openDirection||"bottom"===this.openDirection?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(e-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(t-40,this.maxHeight))}}}}},function(t,e,n){"use strict";var i=n(52),r=(n.n(i),n(53)),o=(n.n(r),n(85)),a=(n.n(o),n(82)),s=(n.n(a),n(81)),l=(n.n(s),n(83)),c=(n.n(l),n(84)),u=(n.n(c),n(79));n.n(u),e.a={data:function(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition:function(){return this.pointer*this.optionHeight},visibleElements:function(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions:function(){this.pointerAdjust()},isOpen:function(){this.pointerDirty=!1},pointer:function(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight:function(t,e){return{"multiselect__option--highlight":t===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(e)}},groupHighlight:function(t,e){var n=this;if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":e.$isLabel}];var i=this.options.find((function(t){return t[n.groupLabel]===e.$groupLabel}));return i&&!this.wholeGroupDisabled(i)?["multiselect__option--group",{"multiselect__option--highlight":t===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(i)}]:"multiselect__option--disabled"},addPointerElement:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Enter").key;this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],t),this.pointerReset()},pointerForward:function(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward:function(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset:function(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust:function(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet:function(t){this.pointer=t,this.pointerDirty=!0}}}},function(t,e,n){"use strict";var i=n(52),r=(n.n(i),n(80)),o=(n.n(r),n(54)),a=n(55);e.a={name:"vue-multiselect",mixins:[o.a,a.a],props:{name:{type:String,default:""},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:function(t){return"and ".concat(t," more")}},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup:function(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible:function(){return(this.singleValue||0===this.singleValue)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible:function(){return!(this.internalValue.length||this.searchable&&this.isOpen)},visibleValues:function(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue:function(){return this.internalValue[0]},deselectLabelText:function(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText:function(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText:function(){return this.showLabels?this.selectLabel:""},selectGroupLabelText:function(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText:function(){return this.showLabels?this.selectedLabel:""},inputStyle:function(){return this.searchable||this.multiple&&this.value&&this.value.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle:function(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove:function(){return"above"===this.openDirection||"top"===this.openDirection||"below"!==this.openDirection&&"bottom"!==this.openDirection&&"above"===this.preferredOpenDirection},showSearchInput:function(){return this.searchable&&(!this.hasSingleSelectedSlot||!this.visibleSingleValue&&0!==this.visibleSingleValue||this.isOpen)}}}},function(t,e,n){var i=n(19),r=n(48),o=n(10),a=function(t){return function(e,n,a){var s,l=i(e),c=o(l),u=r(a,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e,n){"use strict";var i=n(74),r=TypeError;t.exports=function(t,e){if(!delete t[e])throw r("Cannot delete property "+i(e)+" of "+i(t))}},function(t,e){var n="object"==typeof document&&document.all,i=void 0===n&&void 0!==n;t.exports={all:n,IS_HTMLDDA:i}},function(t,e,n){var i=n(4),r=n(8),o=i.document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,n){var i=n(25),r=n(40);t.exports=function(t,e){var n=t[e];return r(n)?void 0:i(n)}},function(t,e,n){var i=n(5),r=n(0),o=n(60);t.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var i=n(1),r=n(2),o=n(46),a=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},function(t,e,n){var i,r,o,a=n(124),s=n(4),l=n(8),c=n(30),u=n(7),d=n(46),h=n(70),p=n(38),f=s.TypeError,m=s.WeakMap,v=function(t){return o(t)?r(t):i(t,{})},g=function(t){return function(e){var n;if(!l(e)||(n=r(e)).type!==t)throw f("Incompatible receiver, "+t+" required");return n}};if(a||d.state){var b=d.state||(d.state=new m);b.get=b.get,b.has=b.has,b.set=b.set,i=function(t,e){if(b.has(t))throw f("Object already initialized");return e.facade=t,b.set(t,e),e},r=function(t){return b.get(t)||{}},o=function(t){return b.has(t)}}else{var y=h("state");p[y]=!0,i=function(t,e){if(u(t,y))throw f("Object already initialized");return e.facade=t,c(t,y,e),e},r=function(t){return u(t,y)?t[y]:{}},o=function(t){return u(t,y)}}t.exports={set:i,get:r,has:o,enforce:v,getterFor:g}},function(t,e,n){var i=n(1),r=n(0),o=n(2),a=n(29),s=n(17),l=n(63),c=function(){},u=[],d=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,p=i(h.exec),f=!h.exec(c),m=function(t){if(!o(t))return!1;try{return d(c,u,t),!0}catch(t){return!1}},v=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!p(h,l(t))}catch(t){return!0}};v.sham=!0,t.exports=!d||r((function(){var t;return m(m.call)||!m(Object)||!m((function(){t=!0}))||t}))?v:m},function(t,e,n){var i=n(0),r=n(2),o=/#|\.prototype\./,a=function(t,e){var n=l[s(t)];return n==u||n!=c&&(r(e)?i(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";t.exports=a},function(t,e,n){var i=n(68),r=n(34).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},function(t,e,n){var i=n(1),r=n(7),o=n(19),a=n(57).indexOf,s=n(38),l=i([].push);t.exports=function(t,e){var n,i=o(t),c=0,u=[];for(n in i)!r(s,n)&&r(i,n)&&l(u,n);for(;e.length>c;)r(i,n=e[c++])&&(~a(u,n)||l(u,n));return u}},function(t,e,n){"use strict";var i=n(6);t.exports=function(){var t=i(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},function(t,e,n){var i=n(47),r=n(75),o=i("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},function(t,e,n){var i=n(1),r=n(24),o=n(20),a=n(78),s=i("".replace),l="["+a+"]",c=RegExp("^"+l+l+"*"),u=RegExp(l+l+"*$"),d=function(t){return function(e){var n=o(r(e));return 1&t&&(n=s(n,c,"")),2&t&&(n=s(n,u,"")),n}};t.exports={start:d(1),end:d(2),trim:d(3)}},function(t,e,n){var i=n(23),r=n(0);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},function(t,e,n){var i=n(12),r=n(8),o=n(41),a=n(61),s=n(113),l=n(9),c=TypeError,u=l("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,l=a(t,u);if(l){if(void 0===e&&(e="default"),n=i(l,t,e),!r(n)||o(n))return n;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},function(t,e){var n=String;t.exports=function(t){try{return n(t)}catch(t){return"Object"}}},function(t,e,n){var i=n(1),r=0,o=Math.random(),a=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++r+o,36)}},function(t,e,n){var i=n(72);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var i=n(5),r=n(0);t.exports=i&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(t,e){t.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},function(t,e,n){"use strict";var i=n(3),r=n(21).find,o=n(91),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),i({target:"Array",proto:!0,forced:a},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o("find")},function(t,e,n){"use strict";var i=n(3),r=n(18),o=n(65),a=n(8),s=n(48),l=n(10),c=n(19),u=n(32),d=n(9),h=n(16),p=n(93),f=h("slice"),m=d("species"),v=Array,g=Math.max;i({target:"Array",proto:!0,forced:!f},{slice:function(t,e){var n,i,d,h=c(this),f=l(h),b=s(t,f),y=s(void 0===e?f:e,f);if(r(h)&&(n=h.constructor,(o(n)&&(n===v||r(n.prototype))||a(n)&&null===(n=n[m]))&&(n=void 0),n===v||void 0===n))return p(h,b,y);for(i=new(void 0===n?v:n)(g(y-b,0)),d=0;b<y;b++,d++)b in h&&u(i,d,h[b]);return i.length=d,i}})},function(t,e,n){var i=n(1),r=n(11),o=Date.prototype,a=i(o.toString),s=i(o.getTime);"Invalid Date"!=String(new Date(NaN))&&r(o,"toString",(function(){var t=s(this);return t==t?a(this):"Invalid Date"}))},function(t,e,n){var i=n(11),r=n(98),o=Error.prototype;o.toString!==r&&i(o,"toString",r)},function(t,e,n){var i=n(51),r=n(11),o=n(112);i||r(Object.prototype,"toString",o,{unsafe:!0})},function(t,e,n){"use strict";var i=n(36).PROPER,r=n(11),o=n(6),a=n(20),s=n(0),l=n(116),c=RegExp.prototype.toString,u=s((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),d=i&&"toString"!=c.name;(u||d)&&r(RegExp.prototype,"toString",(function(){var t=o(this);return"/"+a(t.source)+"/"+a(l(t))}),{unsafe:!0})},function(t,e,n){"use strict";var i=n(12),r=n(99),o=n(6),a=n(40),s=n(24),l=n(120),c=n(20),u=n(61),d=n(115);r("search",(function(t,e,n){return[function(e){var n=s(this),r=a(e)?void 0:u(e,t);return r?i(r,e,n):new RegExp(e)[t](c(n))},function(t){var i=o(this),r=c(t),a=n(e,i,r);if(a.done)return a.value;var s=i.lastIndex;l(s,0)||(i.lastIndex=0);var u=d(i,r);return l(i.lastIndex,s)||(i.lastIndex=s),null===u?-1:u.index}]}))},function(t,e,n){"use strict";function i(t){n(136)}var r=n(56),o=n(138),a=i,s=n(137)(r.a,o.a,!1,a,null,null);e.a=s.exports},function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e.a=i},function(t,e,n){"use strict";function i(t){return(i="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})(t)}e.a=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(86),r=n(54),o=n(55);n.d(e,"Multiselect",(function(){return i.a})),n.d(e,"multiselectMixin",(function(){return r.a})),n.d(e,"pointerMixin",(function(){return o.a})),e.default=i.a},function(t,e,n){var i=n(2),r=String,o=TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw o("Can't set "+r(t)+" as a prototype")}},function(t,e,n){var i=n(9),r=n(42),o=n(13).f,a=i("unscopables"),s=Array.prototype;null==s[a]&&o(s,a,{configurable:!0,value:r(null)}),t.exports=function(t){s[a][t]=!0}},function(t,e,n){var i=n(25),r=n(14),o=n(39),a=n(10),s=TypeError,l=function(t){return function(e,n,l,c){i(n);var u=r(e),d=o(u),h=a(u),p=t?h-1:0,f=t?-1:1;if(l<2)for(;;){if(p in d){c=d[p],p+=f;break}if(p+=f,t?p<0:h<=p)throw s("Reduce of empty array with no initial value")}for(;t?p>=0:h>p;p+=f)p in d&&(c=n(c,d[p],p,u));return c}};t.exports={left:l(!1),right:l(!0)}},function(t,e,n){var i=n(1);t.exports=i([].slice)},function(t,e,n){var i=n(18),r=n(65),o=n(8),a=n(9)("species"),s=Array;t.exports=function(t){var e;return i(t)&&(e=t.constructor,(r(e)&&(e===s||i(e.prototype))||o(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?s:e}},function(t,e,n){var i=n(7),r=n(114),o=n(43),a=n(13);t.exports=function(t,e,n){for(var s=r(e),l=a.f,c=o.f,u=0;u<s.length;u++){var d=s[u];i(t,d)||n&&i(n,d)||l(t,d,c(e,d))}}},function(t,e,n){var i=n(15),r=n(4);t.exports="process"==i(r.process)},function(t,e,n){var i=n(17);t.exports=i("navigator","userAgent")||""},function(t,e,n){"use strict";var i=n(5),r=n(0),o=n(6),a=n(42),s=n(106),l=Error.prototype.toString,c=r((function(){if(i){var t=a(Object.defineProperty({},"name",{get:function(){return this===t}}));if("true"!==l.call(t))return!0}return"2: 1"!==l.call({message:1,name:2})||"Error"!==l.call({})}));t.exports=c?function(){var t=o(this),e=s(t.name,"Error"),n=s(t.message);return e?n?e+": "+n:e:n}:l},function(t,e,n){"use strict";n(53);var i=n(37),r=n(11),o=n(45),a=n(0),s=n(9),l=n(30),c=s("species"),u=RegExp.prototype;t.exports=function(t,e,n,d){var h=s(t),p=!a((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),f=p&&!a((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return e=!0,null},n[h](""),!e}));if(!p||!f||n){var m=i(/./[h]),v=e(h,""[t],(function(t,e,n,r,a){var s=i(t),l=e.exec;return l===o||l===u.exec?p&&!a?{done:!0,value:m(e,n,r)}:{done:!0,value:s(n,e,r)}:{done:!1}}));r(String.prototype,t,v[0]),r(u,h,v[1])}d&&l(u[h],"sham",!0)}},function(t,e,n){var i=n(37),r=n(25),o=n(35),a=i(i.bind);t.exports=function(t,e){return r(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},function(t,e,n){var i=n(17);t.exports=i("document","documentElement")},function(t,e,n){var i=n(2),r=n(8),o=n(111);t.exports=function(t,e,n){var a,s;return o&&i(a=e.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},function(t,e){t.exports=!1},function(t,e,n){var i=n(0),r=n(2),o=n(7),a=n(5),s=n(36).CONFIGURABLE,l=n(63),c=n(64),u=c.enforce,d=c.get,h=Object.defineProperty,p=a&&!i((function(){return 8!==h((function(){}),"length",{value:8}).length})),f=String(String).split("String"),m=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||s&&t.name!==e)&&(a?h(t,"name",{value:e,configurable:!0}):t.name=e),p&&n&&o(n,"arity")&&t.length!==n.arity&&h(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=u(t);return o(i,"source")||(i.source=f.join("string"==typeof e?e:"")),t};Function.prototype.toString=m((function(){return r(this)&&d(this).source||l(this)}),"toString")},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?i:n)(e)}},function(t,e,n){var i=n(20);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:i(t)}},function(t,e,n){var i=n(5),r=n(77),o=n(13),a=n(6),s=n(19),l=n(109);e.f=i&&!r?Object.defineProperties:function(t,e){a(t);for(var n,i=s(e),r=l(e),c=r.length,u=0;c>u;)o.f(t,n=r[u++],i[n]);return t}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var i=n(68),r=n(34);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!i.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:i},function(t,e,n){var i=n(1),r=n(6),o=n(90);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),o(i),e?t(n,i):n.__proto__=i,n}}():void 0)},function(t,e,n){"use strict";var i=n(51),r=n(29);t.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},function(t,e,n){var i=n(12),r=n(2),o=n(8),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&r(n=t.toString)&&!o(s=i(n,t)))return s;if(r(n=t.valueOf)&&!o(s=i(n,t)))return s;if("string"!==e&&r(n=t.toString)&&!o(s=i(n,t)))return s;throw a("Can't convert object to primitive value")}},function(t,e,n){var i=n(17),r=n(1),o=n(67),a=n(108),s=n(6),l=r([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?l(e,n(t)):e}},function(t,e,n){var i=n(12),r=n(6),o=n(2),a=n(15),s=n(45),l=TypeError;t.exports=function(t,e){var n=t.exec;if(o(n)){var c=i(n,t,e);return null!==c&&r(c),c}if("RegExp"===a(t))return i(s,t,e);throw l("RegExp#exec called on incompatible receiver")}},function(t,e,n){var i=n(12),r=n(7),o=n(44),a=n(69),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||r(t,"flags")||!o(s,t)?e:i(a,t)}},function(t,e,n){var i=n(0),r=n(4).RegExp,o=i((function(){var t=r("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),a=o||i((function(){return!r("a","y").sticky})),s=o||i((function(){var t=r("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},function(t,e,n){var i=n(0),r=n(4).RegExp;t.exports=i((function(){var t=r(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},function(t,e,n){var i=n(0),r=n(4).RegExp;t.exports=i((function(){var t=r("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){var i=n(36).PROPER,r=n(0),o=n(78),a="​᠎";t.exports=function(t){return r((function(){return!!o[t]()||a[t]()!==a||i&&o[t].name!==t}))}},function(t,e,n){var i=n(1);t.exports=i(1..valueOf)},function(t,e,n){var i=n(49),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t,e,n){var i=n(4),r=n(2),o=i.WeakMap;t.exports=r(o)&&/native code/.test(String(o))},function(t,e,n){"use strict";var i=n(3),r=n(0),o=n(18),a=n(8),s=n(14),l=n(10),c=n(22),u=n(32),d=n(28),h=n(16),p=n(9),f=n(23),m=p("isConcatSpreadable"),v=f>=51||!r((function(){var t=[];return t[m]=!1,t.concat()[0]!==t})),g=h("concat"),b=function(t){if(!a(t))return!1;var e=t[m];return void 0!==e?!!e:o(t)};i({target:"Array",proto:!0,arity:1,forced:!v||!g},{concat:function(t){var e,n,i,r,o,a=s(this),h=d(a,0),p=0;for(e=-1,i=arguments.length;e<i;e++)if(b(o=-1===e?a:arguments[e]))for(r=l(o),c(p+r),n=0;n<r;n++,p++)n in o&&u(h,p,o[n]);else c(p+1),u(h,p++,o);return h.length=p,h}})},function(t,e,n){"use strict";var i=n(3),r=n(21).every;i({target:"Array",proto:!0,forced:!n(26)("every")},{every:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var i=n(3),r=n(21).filter;i({target:"Array",proto:!0,forced:!n(16)("filter")},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var i=n(3),r=n(37),o=n(57).indexOf,a=n(26),s=r([].indexOf),l=!!s&&1/s([1],1,-0)<0,c=a("indexOf");i({target:"Array",proto:!0,forced:l||!c},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return l?s(this,t,e)||0:o(this,t,e)}})},function(t,e,n){n(3)({target:"Array",stat:!0},{isArray:n(18)})},function(t,e,n){"use strict";var i=n(3),r=n(21).map;i({target:"Array",proto:!0,forced:!n(16)("map")},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var i=n(3),r=n(14),o=n(10),a=n(27),s=n(22),l=n(0)((function(){return 4294967297!==[].push.call({length:4294967296},1)})),c=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}();i({target:"Array",proto:!0,arity:1,forced:l||c},{push:function(t){var e=r(this),n=o(e),i=arguments.length;s(n+i);for(var l=0;l<i;l++)e[n]=arguments[l],n++;return a(e,n),n}})},function(t,e,n){"use strict";var i=n(3),r=n(92).left,o=n(26),a=n(23),s=n(96);i({target:"Array",proto:!0,forced:!o("reduce")||!s&&a>79&&a<83},{reduce:function(t){var e=arguments.length;return r(this,t,e,e>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var i=n(3),r=n(14),o=n(48),a=n(49),s=n(10),l=n(27),c=n(22),u=n(28),d=n(32),h=n(58),p=n(16)("splice"),f=Math.max,m=Math.min;i({target:"Array",proto:!0,forced:!p},{splice:function(t,e){var n,i,p,v,g,b,y=r(this),_=s(y),w=o(t,_),x=arguments.length;for(0===x?n=i=0:1===x?(n=0,i=_-w):(n=x-2,i=m(f(a(e),0),_-w)),c(_+n-i),p=u(y,i),v=0;v<i;v++)(g=w+v)in y&&d(p,v,y[g]);if(p.length=i,n<i){for(v=w;v<_-i;v++)b=v+n,(g=v+i)in y?y[b]=y[g]:h(y,b);for(v=_;v>_-i+n;v--)h(y,v-1)}else if(n>i)for(v=_-i;v>w;v--)b=v+n-1,(g=v+i-1)in y?y[b]=y[g]:h(y,b);for(v=0;v<n;v++)y[v+w]=arguments[v+2];return l(y,_-i+n),p}})},function(t,e,n){"use strict";var i=n(3),r=n(14),o=n(10),a=n(27),s=n(58),l=n(22),c=1!==[].unshift(0),u=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}();i({target:"Array",proto:!0,arity:1,forced:c||u},{unshift:function(t){var e=r(this),n=o(e),i=arguments.length;if(i){l(n+i);for(var c=n;c--;){var u=c+i;c in e?e[u]=e[c]:s(e,u)}for(var d=0;d<i;d++)e[d]=arguments[d]}return a(e,n+i)}})},function(t,e,n){"use strict";var i=n(3),r=n(71).trim;i({target:"String",proto:!0,forced:n(121)("trim")},{trim:function(){return r(this)}})},function(t,e){},function(t,e){t.exports=function(t,e,n,i,r,o){var a,s=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(a=t,s=t.default);var c,u="function"==typeof s?s.options:s;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),r&&(u._scopeId=r),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=c):i&&(c=i),c){var d=u.functional,h=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(t,e){return c.call(e),h(t,e)}):u.beforeCreate=h?[].concat(h,c):[c]}return{esModule:a,exports:s,options:u}}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"multiselect",class:{"multiselect--active":t.isOpen,"multiselect--disabled":t.disabled,"multiselect--above":t.isAbove,"multiselect--has-options-group":t.hasOptionGroup},attrs:{tabindex:t.searchable?-1:t.tabindex,role:"combobox","aria-owns":"listbox-"+t.id},on:{focus:function(e){return t.activate()},blur:function(e){!t.searchable&&t.deactivate()},keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])||e.target!==e.currentTarget?null:(e.preventDefault(),t.pointerForward())},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])||e.target!==e.currentTarget?null:(e.preventDefault(),t.pointerBackward())}],keypress:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")&&t._k(e.keyCode,"tab",9,e.key,"Tab")?null:(e.stopPropagation(),e.target!==e.currentTarget?null:t.addPointerElement(e))},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.deactivate()}}},[t._t("caret",(function(){return[n("div",{staticClass:"multiselect__select",on:{mousedown:function(e){return e.preventDefault(),e.stopPropagation(),t.toggle()}}})]}),{toggle:t.toggle}),t._v(" "),t._t("clear",null,{search:t.search}),t._v(" "),n("div",{ref:"tags",staticClass:"multiselect__tags"},[t._t("selection",(function(){return[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visibleValues.length>0,expression:"visibleValues.length > 0"}],staticClass:"multiselect__tags-wrap"},[t._l(t.visibleValues,(function(e,i){return[t._t("tag",(function(){return[n("span",{key:i,staticClass:"multiselect__tag"},[n("span",{domProps:{textContent:t._s(t.getOptionLabel(e))}}),t._v(" "),n("i",{staticClass:"multiselect__tag-icon",attrs:{tabindex:"1"},on:{keypress:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:(n.preventDefault(),t.removeElement(e))},mousedown:function(n){return n.preventDefault(),t.removeElement(e)}}})])]}),{option:e,search:t.search,remove:t.removeElement})]}))],2),t._v(" "),t.internalValue&&t.internalValue.length>t.limit?[t._t("limit",(function(){return[n("strong",{staticClass:"multiselect__strong",domProps:{textContent:t._s(t.limitText(t.internalValue.length-t.limit))}})]}))]:t._e()]}),{search:t.search,remove:t.removeElement,values:t.visibleValues,isOpen:t.isOpen}),t._v(" "),n("transition",{attrs:{name:"multiselect__loading"}},[t._t("loading",(function(){return[n("div",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],staticClass:"multiselect__spinner"})]}))],2),t._v(" "),t.searchable?n("input",{ref:"search",staticClass:"multiselect__input",style:t.inputStyle,attrs:{name:t.name,id:t.id,type:"text",autocomplete:"off",spellcheck:"false",placeholder:t.placeholder,disabled:t.disabled,tabindex:t.tabindex,"aria-controls":"listbox-"+t.id},domProps:{value:t.search},on:{input:function(e){return t.updateSearch(e.target.value)},focus:function(e){return e.preventDefault(),t.activate()},blur:function(e){return e.preventDefault(),t.deactivate()},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.deactivate()},keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),t.pointerForward())},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),t.pointerBackward())},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:(e.stopPropagation(),t.removeLastElement())}],keypress:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),e.stopPropagation(),e.target!==e.currentTarget?null:t.addPointerElement(e))}}}):t._e(),t._v(" "),t.isSingleLabelVisible?n("span",{staticClass:"multiselect__single",on:{mousedown:function(e){return e.preventDefault(),t.toggle.apply(null,arguments)}}},[t._t("singleLabel",(function(){return[[t._v(t._s(t.currentOptionLabel))]]}),{option:t.singleValue})],2):t._e(),t._v(" "),t.isPlaceholderVisible?n("span",{staticClass:"multiselect__placeholder",on:{mousedown:function(e){return e.preventDefault(),t.toggle.apply(null,arguments)}}},[t._t("placeholder",(function(){return[t._v("\n          "+t._s(t.placeholder)+"\n        ")]}))],2):t._e()],2),t._v(" "),n("transition",{attrs:{name:"multiselect"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isOpen,expression:"isOpen"}],ref:"list",staticClass:"multiselect__content-wrapper",style:{maxHeight:t.optimizedHeight+"px"},attrs:{tabindex:"-1"},on:{focus:t.activate,mousedown:function(t){t.preventDefault()}}},[n("ul",{staticClass:"multiselect__content",style:t.contentStyle,attrs:{role:"listbox",id:"listbox-"+t.id}},[t._t("beforeList"),t._v(" "),t.multiple&&t.max===t.internalValue.length?n("li",[n("span",{staticClass:"multiselect__option"},[t._t("maxElements",(function(){return[t._v("Maximum of "+t._s(t.max)+" options selected. First remove a selected option to select another.")]}))],2)]):t._e(),t._v(" "),!t.max||t.internalValue.length<t.max?t._l(t.filteredOptions,(function(e,i){return n("li",{key:i,staticClass:"multiselect__element",attrs:{id:t.id+"-"+i,role:e&&(e.$isLabel||e.$isDisabled)?null:"option"}},[e&&(e.$isLabel||e.$isDisabled)?t._e():n("span",{staticClass:"multiselect__option",class:t.optionHighlight(i,e),attrs:{"data-select":e&&e.isTag?t.tagPlaceholder:t.selectLabelText,"data-selected":t.selectedLabelText,"data-deselect":t.deselectLabelText},on:{click:function(n){return n.stopPropagation(),t.select(e)},mouseenter:function(e){return e.target!==e.currentTarget?null:t.pointerSet(i)}}},[t._t("option",(function(){return[n("span",[t._v(t._s(t.getOptionLabel(e)))])]}),{option:e,search:t.search,index:i})],2),t._v(" "),e&&(e.$isLabel||e.$isDisabled)?n("span",{staticClass:"multiselect__option",class:t.groupHighlight(i,e),attrs:{"data-select":t.groupSelect&&t.selectGroupLabelText,"data-deselect":t.groupSelect&&t.deselectGroupLabelText},on:{mouseenter:function(e){if(e.target!==e.currentTarget)return null;t.groupSelect&&t.pointerSet(i)},mousedown:function(n){return n.preventDefault(),t.selectGroup(e)}}},[t._t("option",(function(){return[n("span",[t._v(t._s(t.getOptionLabel(e)))])]}),{option:e,search:t.search,index:i})],2):t._e()])})):t._e(),t._v(" "),n("li",{directives:[{name:"show",rawName:"v-show",value:t.showNoResults&&0===t.filteredOptions.length&&t.search&&!t.loading,expression:"showNoResults && (filteredOptions.length === 0 && search && !loading)"}]},[n("span",{staticClass:"multiselect__option"},[t._t("noResult",(function(){return[t._v("No elements found. Consider changing the search query.")]}),{search:t.search})],2)]),t._v(" "),n("li",{directives:[{name:"show",rawName:"v-show",value:t.showNoOptions&&(0===t.options.length||!0===t.hasOptionGroup&&0===t.filteredOptions.length)&&!t.search&&!t.loading,expression:"showNoOptions && ((options.length === 0 || (hasOptionGroup === true && filteredOptions.length === 0)) && !search && !loading)"}]},[n("span",{staticClass:"multiselect__option"},[t._t("noOptions",(function(){return[t._v("List is empty.")]}))],2)]),t._v(" "),t._t("afterList")],2)])])],2)},r={render:i,staticRenderFns:[]};e.a=r},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n}])},6708:function(t){t.exports=function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=7)}([function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(6)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){(function(e){t.exports=function(t){var n=[];return n.toString=function(){return this.map((function(n){var i=function(t,n){var i,r=t[1]||"",o=t[3];if(!o)return r;if(n){var a=(i=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+new e(JSON.stringify(i)).toString("base64")+" */");return[r].concat(o.sources.map((function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"}))).concat([a]).join("\n")}return[r].join("\n")}(n,t);return n[2]?"@media "+n[2]+"{"+i+"}":i})).join("")},n.i=function(t,e){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(i[o]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&i[a[0]]||(e&&!a[2]?a[2]=e:e&&(a[2]="("+a[2]+") and ("+e+")"),n.push(a))}},n}}).call(e,n(11).Buffer)},function(t,e,n){function i(t){for(var e=0;e<t.length;e++){var n=t[e],i=c[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(o(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var a=[];for(r=0;r<n.parts.length;r++)a.push(o(n.parts[r]));c[n.id]={id:n.id,refs:1,parts:a}}}}function r(){var t=document.createElement("style");return t.type="text/css",u.appendChild(t),t}function o(t){var e,n,i=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(i){if(p)return f;i.parentNode.removeChild(i)}if(m){var o=h++;i=d||(d=r()),e=a.bind(null,i,o,!1),n=a.bind(null,i,o,!0)}else i=r(),e=function(t,e){var n=e.css,i=e.media,r=e.sourceMap;if(i&&t.setAttribute("media",i),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}function a(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=g(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}var s="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!s)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var l=n(16),c={},u=s&&(document.head||document.getElementsByTagName("head")[0]),d=null,h=0,p=!1,f=function(){},m="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,n){p=n;var r=l(t,e);return i(r),function(e){for(var n=[],o=0;o<r.length;o++){var a=r[o];(s=c[a.id]).refs--,n.push(s)}for(e?i(r=l(t,e)):r=[],o=0;o<n.length;o++){var s;if(0===(s=n[o]).refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete c[s.id]}}}};var v,g=(v=[],function(t,e){return v[t]=e,v.filter(Boolean).join("\n")})},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(8),r=function(t,e){t.component(i.a.name,i.a)};i.a.install=r,e.default=i.a},function(t,e,n){"use strict";var i=n(20),r=n(36),o=function(t){n(9),n(17)},a=n(19)(i.a,r.a,!1,o,"data-v-4015f724",null);e.a=a.exports},function(t,e,n){var i=n(10);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),n(3)("1bbd3224",i,!0)},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,"input[type=number][data-v-4015f724]::-webkit-inner-spin-button,input[type=number][data-v-4015f724]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number][data-v-4015f724]{-moz-appearance:textfield}button[data-v-4015f724]:focus{outline:none}",""])},function(t,e,n){"use strict";(function(t){function i(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function r(t,e){if(i()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=o.prototype:(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,n){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return l(this,t)}return a(this,t,e,n)}function a(t,e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,i){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i),o.TYPED_ARRAY_SUPPORT?(t=e).__proto__=o.prototype:t=c(t,e),t}(t,e,n,i):"string"==typeof e?function(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|d(e,n),a=(t=r(t,i)).write(e,n);return a!==i&&(t=t.slice(0,a)),t}(t,e,n):function(t,e){if(o.isBuffer(e)){var n=0|u(e.length);return 0===(t=r(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(i=e.length)!=i?r(t,0):c(t,e);if("Buffer"===e.type&&B(e.data))return c(t,e.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function l(t,e){if(s(e),t=r(t,e<0?0:0|u(e)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function c(t,e){var n=e.length<0?0:0|u(e.length);t=r(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function u(t){if(t>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function d(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return I(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return j(t).length;default:if(i)return I(t).length;e=(""+e).toLowerCase(),i=!0}}function h(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function p(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=o.from(e,i)),o.isBuffer(e))return 0===e.length?-1:f(t,e,n,i,r);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):f(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function f(t,e,n,i,r){function o(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}var a,s=1,l=t.length,c=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;s=2,l/=2,c/=2,n/=2}if(r){var u=-1;for(a=n;a<l;a++)if(o(t,a)===o(e,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===c)return u*s}else-1!==u&&(a-=a-u),u=-1}else for(n+c>l&&(n=l-c),a=n;a>=0;a--){for(var d=!0,h=0;h<c;h++)if(o(t,a+h)!==o(e,h)){d=!1;break}if(d)return a}return-1}function m(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i))>r&&(i=r):i=r;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function v(t,e,n,i){return N(I(e,t.length-n),t,n,i)}function g(t,e,n,i){return N(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,i)}function b(t,e,n,i){return g(t,e,n,i)}function y(t,e,n,i){return N(j(e),t,n,i)}function _(t,e,n,i){return N(function(t,e){for(var n,i,r,o=[],a=0;a<t.length&&!((e-=2)<0);++a)i=(n=t.charCodeAt(a))>>8,r=n%256,o.push(r),o.push(i);return o}(e,t.length-n),t,n,i)}function w(t,e,n){return 0===e&&n===t.length?F.fromByteArray(t):F.fromByteArray(t.slice(e,n))}function x(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r<n;){var o,a,s,l,c=t[r],u=null,d=c>239?4:c>223?3:c>191?2:1;if(r+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(o=t[r+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=t[r+1],a=t[r+2],128==(192&o)&&128==(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=t[r+1],a=t[r+2],s=t[r+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=d}return function(t){var e=t.length;if(e<=$)return String.fromCharCode.apply(String,t);for(var n="",i=0;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=$));return n}(i)}function C(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}function S(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}function E(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=e;o<n;++o)r+=R(t[o]);return r}function T(t,e,n){for(var i=t.slice(e,n),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function O(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function k(t,e,n,i,r,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<a)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function A(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-n,2);r<o;++r)t[n+r]=(e&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function P(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-n,4);r<o;++r)t[n+r]=e>>>8*(i?r:3-r)&255}function M(t,e,n,i,r,o){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(t,e,n,i,r){return r||M(t,0,n,4),z.write(t,e,n,i,23,4),n+4}function D(t,e,n,i,r){return r||M(t,0,n,8),z.write(t,e,n,i,52,8),n+8}function R(t){return t<16?"0"+t.toString(16):t.toString(16)}function I(t,e){var n;e=e||1/0;for(var i=t.length,r=null,o=[],a=0;a<i;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function j(t){return F.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(U,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function N(t,e,n,i){for(var r=0;r<i&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}var F=n(13),z=n(14),B=n(15);e.Buffer=o,e.SlowBuffer=function(t){return+t!=t&&(t=0),o.alloc(+t)},e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=i(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,n){return a(null,t,e,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,n){return function(t,e,n,i){return s(e),e<=0?r(t,e):void 0!==n?"string"==typeof i?r(t,e).fill(n,i):r(t,e).fill(n):r(t,e)}(null,t,e,n)},o.allocUnsafe=function(t){return l(null,t)},o.allocUnsafeSlow=function(t){return l(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,r=0,a=Math.min(n,i);r<a;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!B(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=o.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var a=t[n];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,r),r+=a.length}return i},o.byteLength=d,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)h(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)h(this,e,e+3),h(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)h(this,e,e+7),h(this,e+1,e+6),h(this,e+2,e+5),h(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?x(this,0,t):function(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return E(this,e,n);case"utf8":case"utf-8":return x(this,e,n);case"ascii":return C(this,e,n);case"latin1":case"binary":return S(this,e,n);case"base64":return w(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t,e,n,i,r){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(this===t)return 0;for(var a=(r>>>=0)-(i>>>=0),s=(n>>>=0)-(e>>>=0),l=Math.min(a,s),c=this.slice(i,r),u=t.slice(e,n),d=0;d<l;++d)if(c[d]!==u[d]){a=c[d],s=u[d];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},o.prototype.indexOf=function(t,e,n){return p(this,t,e,n,!0)},o.prototype.lastIndexOf=function(t,e,n){return p(this,t,e,n,!1)},o.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return m(this,t,e,n);case"utf8":case"utf-8":return v(this,t,e,n);case"ascii":return g(this,t,e,n);case"latin1":case"binary":return b(this,t,e,n);case"base64":return y(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;o.prototype.slice=function(t,e){var n,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t),o.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=o.prototype;else{var r=e-t;n=new o(r,void 0);for(var a=0;a<r;++a)n[a]=this[a+t]}return n},o.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return i},o.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var i=this[t+--e],r=1;e>0&&(r*=256);)i+=this[t+--e]*r;return i},o.prototype.readUInt8=function(t,e){return e||O(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||O(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||O(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*e)),i},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var i=e,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||O(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||O(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||O(t,4,this.length),z.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||O(t,4,this.length),z.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||O(t,8,this.length),z.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||O(t,8,this.length),z.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,i){t=+t,e|=0,n|=0,i||k(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[e]=255&t;++o<n&&(r*=256);)this[e+o]=t/r&255;return e+n},o.prototype.writeUIntBE=function(t,e,n,i){t=+t,e|=0,n|=0,i||k(this,t,e,n,Math.pow(2,8*n)-1,0);var r=n-1,o=1;for(this[e+r]=255&t;--r>=0&&(o*=256);)this[e+r]=t/o&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):A(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):A(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):P(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):P(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);k(this,t,e,n,r-1,-r)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a|0)-s&255;return e+n},o.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);k(this,t,e,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a|0)-s&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):A(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):A(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):P(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):P(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return L(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return L(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return D(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return D(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r,a=i-n;if(this===t&&n<e&&e<i)for(r=a-1;r>=0;--r)t[r+e]=this[r+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(r=0;r<a;++r)t[r+e]=this[r+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},o.prototype.fill=function(t,e,n,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!o.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var a;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(a=e;a<n;++a)this[a]=t;else{var s=o.isBuffer(t)?t:I(new o(t,i).toString()),l=s.length;for(a=0;a<n-e;++a)this[a+e]=s[a%l]}return this};var U=/[^+\/0-9A-Za-z-_]/g}).call(e,n(12))},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";function i(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function r(t,e,n){for(var i,r,a=[],s=e;s<n;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(o[(r=i)>>18&63]+o[r>>12&63]+o[r>>6&63]+o[63&r]);return a.join("")}e.byteLength=function(t){var e=i(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=i(t),o=r[0],l=r[1],c=new s(function(t,e,n){return 3*(e+n)/4-n}(0,o,l)),u=0,d=l>0?o-4:o;for(n=0;n<d;n+=4)e=a[t.charCodeAt(n)]<<18|a[t.charCodeAt(n+1)]<<12|a[t.charCodeAt(n+2)]<<6|a[t.charCodeAt(n+3)],c[u++]=e>>16&255,c[u++]=e>>8&255,c[u++]=255&e;return 2===l&&(e=a[t.charCodeAt(n)]<<2|a[t.charCodeAt(n+1)]>>4,c[u++]=255&e),1===l&&(e=a[t.charCodeAt(n)]<<10|a[t.charCodeAt(n+1)]<<4|a[t.charCodeAt(n+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e),c},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,a=[],s=0,l=n-i;s<l;s+=16383)a.push(r(t,s,s+16383>l?l:s+16383));return 1===i?(e=t[n-1],a.push(o[e>>2]+o[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],a.push(o[e>>10]+o[e>>4&63]+o[e<<2&63]+"=")),a.join("")};for(var o=[],a=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,u=l.length;c<u;++c)o[c]=l[c],a[l.charCodeAt(c)]=c;a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,i,r){var o,a,s=8*r-i-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?r-1:0,h=n?-1:1,p=t[e+d];for(d+=h,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+t[e+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=i;u>0;a=256*a+t[e+d],d+=h,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,i),o-=c}return(p?-1:1)*a*Math.pow(2,o-i)},e.write=function(t,e,n,i,r,o){var a,s,l,c=8*o-r-1,u=(1<<c)-1,d=u>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:o-1,f=i?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(e*l-1)*Math.pow(2,r),a+=d):(s=e*Math.pow(2,d-1)*Math.pow(2,r),a=0));r>=8;t[n+p]=255&s,p+=f,s/=256,r-=8);for(a=a<<r|s,c+=r;c>0;t[n+p]=255&a,p+=f,a/=256,c-=8);t[n+p-f]|=128*m}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e){t.exports=function(t,e){for(var n=[],i={},r=0;r<e.length;r++){var o=e[r],a=o[0],s={id:t+":"+r,css:o[1],media:o[2],sourceMap:o[3]};i[a]?i[a].parts.push(s):n.push(i[a]={id:a,parts:[s]})}return n}},function(t,e,n){var i=n(18);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),n(3)("ab02cf70",i,!0)},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,'.vue-numeric-input{position:relative;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box}.vue-numeric-input .numeric-input{padding-right:1.8rem;padding-left:1.8rem;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:inherit;border:1px solid #ccc;border-radius:2px;display:block;line-height:1.5rem;width:100%}.vue-numeric-input .btn,.vue-numeric-input .numeric-input{-webkit-transition:all .1s ease 0s;transition:all .1s ease 0s}.vue-numeric-input .btn{position:absolute;width:1.5rem;margin:0;cursor:default;text-align:center;background:rgba(0,0,0,.1);border:solid rgba(0,0,0,.1);-webkit-box-shadow:rgba(0,0,0,.1) -1px -1px 3px inset,hsla(0,0%,100%,.7) 1px 1px 3px inset;box-shadow:inset -1px -1px 3px rgba(0,0,0,.1),inset 1px 1px 3px hsla(0,0%,100%,.7)}.vue-numeric-input .btn:hover{background:rgba(0,0,0,.2)}.vue-numeric-input .btn:active{-webkit-box-shadow:rgba(0,0,0,.2) 0 1px 3px inset,hsla(0,0%,100%,.5) -1px -1px 4px inset;box-shadow:inset 0 1px 3px rgba(0,0,0,.2),inset -1px -1px 4px hsla(0,0%,100%,.5)}.vue-numeric-input .btn:disabled{opacity:.5;-webkit-box-shadow:none;box-shadow:none;cursor:not-allowed}.vue-numeric-input .numeric-input.no-control{padding:2px 5px}.vue-numeric-input .btn-increment{right:2px;top:2px;bottom:2px;border-radius:2px;border-width:1px}.vue-numeric-input .btn-increment .btn-icon{position:absolute;width:100%;height:100%;top:0;left:0}.vue-numeric-input .btn-increment .btn-icon:before{height:.0625rem;width:50%}.vue-numeric-input .btn-increment .btn-icon:after,.vue-numeric-input .btn-increment .btn-icon:before{position:absolute;visibility:visible;background-color:#111;content:"";left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-numeric-input .btn-increment .btn-icon:after{height:50%;width:.0625rem}.vue-numeric-input .btn-decrement{left:2px;top:2px;bottom:2px;border-radius:2px;border-width:1px}.vue-numeric-input .btn-decrement .btn-icon{position:absolute;width:100%;height:100%;top:0;left:0}.vue-numeric-input .btn-decrement .btn-icon:before{position:absolute;visibility:visible;height:.0625rem;width:50%;background-color:#111;content:"";left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-numeric-input .btn-decrement .btn-icon:after{visibility:hidden;content:"";clear:both;height:0}.vue-numeric-input.updown .numeric-input{padding-right:1.8rem;padding-left:5px}.vue-numeric-input.updown .btn-increment{right:2px;top:2px;bottom:50%;border-radius:2px 2px 0 0;border-width:1px 1px 0}.vue-numeric-input.updown .btn-increment .btn-icon{top:50%;left:50%;width:0;height:0;border-width:0 .45rem .45rem;border-color:transparent transparent #111;border-style:solid;margin:-.25rem 0 0 -.4rem}.vue-numeric-input.updown .btn-increment .btn-icon:after,.vue-numeric-input.updown .btn-increment .btn-icon:before{visibility:hidden;display:block;content:"";clear:both;height:0}.vue-numeric-input.updown .btn-decrement{right:2px;top:50%;bottom:2px;left:auto;border-radius:0 0 2px 2px;border-width:0 1px 1px}.vue-numeric-input.updown .btn-decrement .btn-icon{top:50%;left:50%;width:0;height:0;border-width:.45rem .45rem 0;border-color:#111 transparent transparent;border-style:solid;margin:-.25rem 0 0 -.4rem}',""])},function(t,e){t.exports=function(t,e,n,i,r,o){var a,s=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(a=t,s=t.default);var c,u="function"==typeof s?s.options:s;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),r&&(u._scopeId=r),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=c):i&&(c=i),c){var d=u.functional,h=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(t,e){return c.call(e),h(t,e)}):u.beforeCreate=h?[].concat(h,c):[c]}return{esModule:a,exports:s,options:u}}},function(t,e,n){"use strict";var i=n(21),r=n.n(i);e.a={name:"vue-numeric-input",props:{name:String,value:Number,placeholder:String,min:{type:Number,default:-1/0},max:{type:Number,default:1/0},step:{type:Number,default:1},align:{type:String,default:"left"},size:{type:String,default:"150px"},precision:{type:Number,validator:function(t){return t>=0&&r()(t)}},autofocus:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},controls:{type:Boolean,default:!0},controlsType:{type:String,default:"plusminus"}},data:function(){return{numericValue:null,interval:null,startTime:null,handler:Function}},watch:{value:{immediate:!0,handler:function(t){var e=t;e&&((e=this.toPrecision(e,this.precision))>=this.max&&(e=this.max),e<=this.min&&(e=this.min),e!==t&&this.$emit("input",e)),this.numericValue=e}}},methods:{toNumber:function(t){var e=parseFloat(t);return!isNaN(t)&&isFinite(t)||(e=0),e},toPrecision:function(t,e){return void 0!==e?parseFloat(t.toFixed(e)):t},increment:function(){this.readonly||this.updateValue(this.toNumber(this.numericValue)+this.step)},decrement:function(){this.readonly||this.updateValue(this.toNumber(this.numericValue)-this.step)},inputHandler:function(t){this.updateValue(this.toNumber(t),t)},updateValue:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.numericValue;(t=this.toPrecision(t,this.precision))>=this.max&&(t=this.max),t<=this.min&&(t=this.min),t!==n?(this.numericValue=t,this.$emit("input",t)):this.$refs.input.value=e&&t===this.toNumber(e)?e:t},start:function(t){document.addEventListener("mouseup",this.stop),this.startTime=new Date,this.handler=t,clearInterval(this.interval),this.interval=setInterval(t,100)},stop:function(t){document.removeEventListener(t.type,this.stop),new Date-this.startTime<100&&this.handler(),clearInterval(this.interval),this.interval=null,this.handler=null,this.startTime=null,this.value!==this.numericValue&&this.$emit("change",this.numericValue)},onBlur:function(t){this.$emit("blur",t)},onFocus:function(t){this.$emit("focus",t)},onChange:function(t){this.$emit("change",this.numericValue)},focus:function(){this.disabled||this.$refs.input.focus()},blur:function(){this.$refs.input.blur()}},beforeDestroy:function(){clearInterval(this.interval),this.interval=null,this.handler=null,this.startTime=null}}},function(t,e,n){t.exports={default:n(22),__esModule:!0}},function(t,e,n){n(23),t.exports=n(5).Number.isInteger},function(t,e,n){var i=n(24);i(i.S,"Number",{isInteger:n(35)})},function(t,e,n){var i=n(4),r=n(5),o=n(25),a=n(27),s=n(34),l=function(t,e,n){var c,u,d,h=t&l.F,p=t&l.G,f=t&l.S,m=t&l.P,v=t&l.B,g=t&l.W,b=p?r:r[e]||(r[e]={}),y=b.prototype,_=p?i:f?i[e]:(i[e]||{}).prototype;for(c in p&&(n=e),n)(u=!h&&_&&void 0!==_[c])&&s(b,c)||(d=u?_[c]:n[c],b[c]=p&&"function"!=typeof _[c]?n[c]:v&&u?o(d,i):g&&_[c]==d?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(d):m&&"function"==typeof d?o(Function.call,d):d,m&&((b.virtual||(b.virtual={}))[c]=d,t&l.R&&y&&!y[c]&&a(y,c,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e,n){var i=n(26);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var i=n(28),r=n(33);t.exports=n(1)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(29),r=n(30),o=n(32),a=Object.defineProperty;e.f=n(1)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var i=n(0);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(1)&&!n(6)((function(){return 7!=Object.defineProperty(n(31)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var i=n(0),r=n(4).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e,n){var i=n(0);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var i=n(0),r=Math.floor;t.exports=function(t){return!i(t)&&isFinite(t)&&r(t)===t}},function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["vue-numeric-input","updown"===t.controlsType?"updown":""],style:{width:t.size?""+t.size:"Inherit"}},[n("input",{ref:"input",class:["numeric-input",this.controls?"":"no-control"],style:{textAlign:this.align},attrs:{name:t.name,type:"number",placeholder:t.placeholder,max:t.max,min:t.min,autofocus:t.autofocus,disabled:t.disabled,readonly:t.readonly},domProps:{value:t.numericValue},on:{input:function(e){t.inputHandler(e.target.value)},change:t.onChange,blur:t.onBlur,focus:t.onFocus}}),t._v(" "),t.controls?n("button",{staticClass:"btn btn-decrement",attrs:{type:"button",disabled:t.disabled||t.numericValue<=t.min},on:{mousedown:function(e){t.start(t.decrement)},touchstart:function(e){e.preventDefault(),t.start(t.decrement)},touchend:function(e){e.preventDefault(),t.stop(e)}}},[n("i",{staticClass:"btn-icon"})]):t._e(),t._v(" "),t.controls?n("button",{staticClass:"btn btn-increment",attrs:{type:"button",disabled:t.disabled||t.numericValue>=t.max},on:{mousedown:function(e){t.start(t.increment)},touchstart:function(e){e.preventDefault(),t.start(t.increment)},touchend:function(e){e.preventDefault(),t.stop(e)}}},[n("i",{staticClass:"btn-icon"})]):t._e()])},staticRenderFns:[]};e.a=i}])},4981:(t,e,n)=>{t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"06cf":function(t,e,n){var i=n("83ab"),r=n("d1e7"),o=n("5c6c"),a=n("fc6a"),s=n("c04e"),l=n("5135"),c=n("0cfb"),u=Object.getOwnPropertyDescriptor;e.f=i?u:function(t,e){if(t=a(t),e=s(e,!0),c)try{return u(t,e)}catch(t){}if(l(t,e))return o(!r.f.call(t,e),t[e])}},"0cfb":function(t,e,n){var i=n("83ab"),r=n("d039"),o=n("cc12");t.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0ec0":function(t,e,n){},"1be4":function(t,e,n){var i=n("d066");t.exports=i("document","documentElement")},"1d80":function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},"23cb":function(t,e,n){var i=n("a691"),r=Math.max,o=Math.min;t.exports=function(t,e){var n=i(t);return n<0?r(n+e,0):o(n,e)}},"241c":function(t,e,n){var i=n("ca84"),r=n("7839").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},"37e8":function(t,e,n){var i=n("83ab"),r=n("9bf2"),o=n("825a"),a=n("df75");t.exports=i?Object.defineProperties:function(t,e){o(t);for(var n,i=a(e),s=i.length,l=0;s>l;)r.f(t,n=i[l++],e[n]);return t}},"3bbe":function(t,e,n){var i=n("861d");t.exports=function(t){if(!i(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"428f":function(t,e,n){var i=n("da84");t.exports=i},"44ad":function(t,e,n){var i=n("d039"),r=n("c6b6"),o="".split;t.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==r(t)?o.call(t,""):Object(t)}:Object},"4d64":function(t,e,n){var i=n("fc6a"),r=n("50c4"),o=n("23cb"),a=function(t){return function(e,n,a){var s,l=i(e),c=r(l.length),u=o(a,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"50c4":function(t,e,n){var i=n("a691"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},5135:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},5692:function(t,e,n){var i=n("c430"),r=n("c6cd");(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:i?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},5899:function(t,e){t.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},"58a8":function(t,e,n){var i=n("1d80"),r="["+n("5899")+"]",o=RegExp("^"+r+r+"*"),a=RegExp(r+r+"*$"),s=function(t){return function(e){var n=String(i(e));return 1&t&&(n=n.replace(o,"")),2&t&&(n=n.replace(a,"")),n}};t.exports={start:s(1),end:s(2),trim:s(3)}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"623a":function(t,e,n){"use strict";var i=n("fe1d");n.n(i).a},"69f3":function(t,e,n){var i,r,o,a=n("7f9a"),s=n("da84"),l=n("861d"),c=n("9112"),u=n("5135"),d=n("f772"),h=n("d012"),p=s.WeakMap;if(a){var f=new p,m=f.get,v=f.has,g=f.set;i=function(t,e){return g.call(f,t,e),e},r=function(t){return m.call(f,t)||{}},o=function(t){return v.call(f,t)}}else{var b=d("state");h[b]=!0,i=function(t,e){return c(t,b,e),e},r=function(t){return u(t,b)?t[b]:{}},o=function(t){return u(t,b)}}t.exports={set:i,get:r,has:o,enforce:function(t){return o(t)?r(t):i(t,{})},getterFor:function(t){return function(e){var n;if(!l(e)||(n=r(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},"6eeb":function(t,e,n){var i=n("da84"),r=n("9112"),o=n("5135"),a=n("ce4e"),s=n("8925"),l=n("69f3"),c=l.get,u=l.enforce,d=String(String).split("String");(t.exports=function(t,e,n,s){var l=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof e||o(n,"name")||r(n,"name",e),u(n).source=d.join("string"==typeof e?e:"")),t!==i?(l?!h&&t[e]&&(c=!0):delete t[e],c?t[e]=n:r(t,e,n)):c?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},7156:function(t,e,n){var i=n("861d"),r=n("d2bb");t.exports=function(t,e,n){var o,a;return r&&"function"==typeof(o=e.constructor)&&o!==n&&i(a=o.prototype)&&a!==n.prototype&&r(t,a),t}},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7c73":function(t,e,n){var i,r=n("825a"),o=n("37e8"),a=n("7839"),s=n("d012"),l=n("1be4"),c=n("cc12"),u=n("f772"),d="prototype",h="script",p=u("IE_PROTO"),f=function(){},m=function(t){return"<"+h+">"+t+"</"+h+">"},v=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e,n;v=i?function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e}(i):(e=c("iframe"),n="java"+h+":",e.style.display="none",l.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F);for(var r=a.length;r--;)delete v[d][a[r]];return v()};s[p]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(f[d]=r(t),n=new f,f[d]=null,n[p]=t):n=v(),void 0===e?n:o(n,e)}},"7f9a":function(t,e,n){var i=n("da84"),r=n("8925"),o=i.WeakMap;t.exports="function"==typeof o&&/native code/.test(r(o))},"825a":function(t,e,n){var i=n("861d");t.exports=function(t){if(!i(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,n){var i=n("d039");t.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"861d":function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},8875:function(t,e,n){var i,r,o;"undefined"!=typeof self&&self,r=[],void 0===(o="function"==typeof(i=function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(t){var n,i,r,o=/@([^@]*):(\d+):(\d+)\s*$/gi,a=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(t.stack)||o.exec(t.stack),s=a&&a[1]||!1,l=a&&a[2]||!1,c=document.location.href.replace(document.location.hash,""),u=document.getElementsByTagName("script");s===c&&(n=document.documentElement.outerHTML,i=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),r=n.replace(i,"$1").trim());for(var d=0;d<u.length;d++){if("interactive"===u[d].readyState)return u[d];if(u[d].src===s)return u[d];if(s===c&&u[d].innerHTML&&u[d].innerHTML.trim()===r)return u[d]}return null}}return t})?i.apply(e,r):i)||(t.exports=o)},8925:function(t,e,n){var i=n("c6cd"),r=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(t){return r.call(t)}),t.exports=i.inspectSource},"8bbf":function(t,e){t.exports=n(2893)},"8d5c":function(t,e,n){"use strict";var i=n("0ec0");n.n(i).a},"90e3":function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+i).toString(36)}},9112:function(t,e,n){var i=n("83ab"),r=n("9bf2"),o=n("5c6c");t.exports=i?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"94ca":function(t,e,n){var i=n("d039"),r=/#|\.prototype\./,o=function(t,e){var n=s[a(t)];return n==c||n!=l&&("function"==typeof e?i(e):!!e)},a=o.normalize=function(t){return String(t).replace(r,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},"9bf2":function(t,e,n){var i=n("83ab"),r=n("0cfb"),o=n("825a"),a=n("c04e"),s=Object.defineProperty;e.f=i?s:function(t,e,n){if(o(t),e=a(e,!0),o(n),r)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},a691:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},a9e3:function(t,e,n){"use strict";var i=n("83ab"),r=n("da84"),o=n("94ca"),a=n("6eeb"),s=n("5135"),l=n("c6b6"),c=n("7156"),u=n("c04e"),d=n("d039"),h=n("7c73"),p=n("241c").f,f=n("06cf").f,m=n("9bf2").f,v=n("58a8").trim,g="Number",b=r[g],y=b.prototype,_=l(h(y))==g,w=function(t){var e,n,i,r,o,a,s,l,c=u(t,!1);if("string"==typeof c&&c.length>2)if(43===(e=(c=v(c)).charCodeAt(0))||45===e){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+c}for(a=(o=c.slice(2)).length,s=0;s<a;s++)if((l=o.charCodeAt(s))<48||l>r)return NaN;return parseInt(o,i)}return+c};if(o(g,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var x,C=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof C&&(_?d((function(){y.valueOf.call(n)})):l(n)!=g)?c(new b(w(e)),n,C):w(e)},S=i?p(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),E=0;S.length>E;E++)s(b,x=S[E])&&!s(C,x)&&m(C,x,f(b,x));C.prototype=y,y.constructor=C,a(r,g,C)}},c04e:function(t,e,n){var i=n("861d");t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},c430:function(t,e){t.exports=!1},c6b6:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},c6cd:function(t,e,n){var i=n("da84"),r=n("ce4e"),o="__core-js_shared__",a=i[o]||r(o,{});t.exports=a},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){var i=n("5135"),r=n("fc6a"),o=n("4d64").indexOf,a=n("d012");t.exports=function(t,e){var n,s=r(t),l=0,c=[];for(n in s)!i(a,n)&&i(s,n)&&c.push(n);for(;e.length>l;)i(s,n=e[l++])&&(~o(c,n)||c.push(n));return c}},cc12:function(t,e,n){var i=n("da84"),r=n("861d"),o=i.document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},ce4e:function(t,e,n){var i=n("da84"),r=n("9112");t.exports=function(t,e){try{r(i,t,e)}catch(n){i[t]=e}return e}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},d066:function(t,e,n){var i=n("428f"),r=n("da84"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(i[t])||o(r[t]):i[t]&&i[t][e]||r[t]&&r[t][e]}},d1e7:function(t,e,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!i.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:i},d2bb:function(t,e,n){var i=n("825a"),r=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,o){return i(n),r(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n("c8ba"))},df75:function(t,e,n){var i=n("ca84"),r=n("7839");t.exports=Object.keys||function(t){return i(t,r)}},f772:function(t,e,n){var i=n("5692"),r=n("90e3"),o=i("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},fb15:function(t,e,n){"use strict";if(n.r(e),n.d(e,"LightboxDefaultLoader",(function(){return u})),"undefined"!=typeof window){var i=window.document.currentScript,r=n("8875");i=r(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:r});var o=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}n("a9e3");var a=n("8bbf"),s=n.n(a),l={};n("8d5c");function c(t,e,n,i,r,o,a,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}var u=c(l,(function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"lightbox__default-loader"},[e("div",{staticClass:"lightbox__default-loader__element"})])}],!1,null,null,null).exports,d={props:{thumbnail:{type:String,default:null},images:{type:Array},openAtIndex:{type:Number,default:0},alternateText:{type:String,default:""},value:{type:Boolean,default:!1}},components:{LightboxDefaultLoader:u},data:function(){return{visible:this.value,index:this.openAtIndex,displayImage:!0}},computed:{hasNext:function(){return this.index+1<this.images.length},hasPrevious:function(){return this.index-1>=0}},watch:{value:function(t){this.visible=t},visible:function(t){this.$emit("input",t)}},methods:{show:function(){this.visible=!0,this.index=this.openAtIndex},hide:function(){this.visible=!1,this.index=this.openAtIndex},previous:function(){this.hasPrevious&&(this.index-=1,this.tick())},next:function(){this.hasNext&&(this.index+=1,this.tick())},tick:function(){var t=this;this.$slots.loader&&(this.displayImage=!1,s.a.nextTick((function(){t.displayImage=!0})))},eventListener:function(t){if(this.visible)switch(t.key){case"ArrowRight":return this.next();case"ArrowLeft":return this.previous();case"ArrowDown":case"ArrowUp":case" ":return t.preventDefault();case"Escape":return this.hide()}}},mounted:function(){window.addEventListener("keydown",this.eventListener)},destroyed:function(){window.removeEventListener("keydown",this.eventListener)}},h=(n("623a"),c(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t._t("preview",[t.thumbnail?n("a",{staticClass:"lightbox__thumbnail",attrs:{href:t.images[0],target:"_blank"},on:{click:function(e){return e.preventDefault(),t.show(e)}}},[n("img",{attrs:{src:t.thumbnail,alt:t.alternateText}})]):t._e()],{show:t.show}),t.visible?n("div",{staticClass:"lightbox",on:{click:t.hide}},[n("div",{staticClass:"lightbox__close",on:{click:t.hide}},[t._t("icon-close",[t._v("×")])],2),n("div",{staticClass:"lightbox__element",on:{click:function(t){t.stopPropagation()}}},[n("div",{staticClass:"lightbox__arrow lightbox__arrow--left",class:{"lightbox__arrow--invisible":!t.hasPrevious},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.previous(e)}}},[t._t("icon-previous",[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}}),n("path",{attrs:{d:"M0-.5h24v24H0z",fill:"none"}})])])],2),n("div",{staticClass:"lightbox__image",on:{click:function(t){t.stopPropagation()}}},[t._t("loader",[n("LightboxDefaultLoader")]),t.displayImage?t._t("content",[n("img",{attrs:{src:t.images[t.index]}})],{url:t.images[t.index]}):t._e()],2),n("div",{staticClass:"lightbox__arrow lightbox__arrow--right",class:{"lightbox__arrow--invisible":!t.hasNext},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.next(e)}}},[t._t("icon-next",[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}}),n("path",{attrs:{d:"M0-.25h24v24H0z",fill:"none"}})])])],2)])]):t._e()],2)}),[],!1,null,null,null).exports);e.default=h},fc6a:function(t,e,n){var i=n("44ad"),r=n("1d80");t.exports=function(t){return i(r(t))}},fe1d:function(t,e,n){}}).default},5358:t=>{window,t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=11)}([function(t,e,n){"use strict";e.__esModule=!0;var i,r=(i=n(43))&&i.__esModule?i:{default:i};e.default=r.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){t.exports=!n(1)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n=t.exports={version:"2.5.6"};"number"==typeof __e&&(__e=n)},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e,n){var i=n(27);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e,n){var i=n(8),r=n(7);t.exports=function(t){return i(r(t))}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){"use strict";n.r(e);var i=n(0),r=n.n(i),o={basic:{swatches:["#1FBC9C","#1CA085","#2ECC70","#27AF60","#3398DB","#2980B9","#A463BF","#8E43AD","#3D556E","#222F3D","#F2C511","#F39C19","#E84B3C","#C0382B","#DDE6E8","#BDC3C8"],rowLength:4},"text-basic":{swatches:["#CC0001","#E36101","#FFCC00","#009900","#0066CB","#000000","#FFFFFF"],showBorder:!0},"text-advanced":{swatches:[["#000000","#434343","#666666","#999999","#b7b7b7","#cccccc","#d9d9d9","#efefef","#f3f3f3","#ffffff"],["#980000","#ff0000","#ff9900","#ffff00","#00ff00","#00ffff","#4a86e8","#0000ff","#9900ff","#ff00ff"],["#e6b8af","#f4cccc","#fce5cd","#fff2cc","#d9ead3","#d0e0e3","#c9daf8","#cfe2f3","#d9d2e9","#ead1dc"],["#dd7e6b","#ea9999","#f9cb9c","#ffe599","#b6d7a8","#a2c4c9","#a4c2f4","#9fc5e8","#b4a7d6","#d5a6bd"],["#cc4125","#e06666","#f6b26b","#ffd966","#93c47d","#76a5af","#6d9eeb","#6fa8dc","#8e7cc3","#c27ba0"],["#a61c00","#cc0000","#e69138","#f1c232","#6aa84f","#45818e","#3c78d8","#3d85c6","#674ea7","#a64d79"],["#85200c","#990000","#b45f06","#bf9000","#38761d","#134f5c","#1155cc","#0b5394","#351c75","#741b47"],["#5b0f00","#660000","#783f04","#7f6000","#274e13","#0c343d","#1c4587","#073763","#20124d","#4c1130"]],borderRadius:"0",rowLength:10,swatchSize:24,spacingSize:0},"material-basic":{swatches:["#F44336","#E91E63","#9C27B0","#673AB7","#3F51B5","#2196F3","#03A9F4","#00BCD4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#FF5722","#795548","#9E9E9E","#607D8B"]},"material-light":{swatches:["#EF9A9A","#F48FB1","#CE93D8","#B39DDB","#9FA8DA","#90CAF9","#81D4FA","#80DEEA","#80CBC4","#A5D6A7","#C5E1A5","#E6EE9C","#FFF59D","#FFE082","#FFCC80","#FFAB91","#BCAAA4","#EEEEEE","#B0BEC5"]},"material-dark":{swatches:["#D32F2F","#C2185B","#7B1FA2","#512DA8","#303F9F","#1976D2","#0288D1","#0097A7","#00796B","#388E3C","#689F38","#AFB42B","#FBC02D","#FFA000","#F57C00","#E64A19","#5D4037","#616161","#455A64"]}};function a(t,e,n,i,r,o,a,s){var l=typeof(t=t||{}).default;"object"!==l&&"function"!==l||(t=t.default);var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId=o),a?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):r&&(c=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),c)if(u.functional){u._injectStyles=c;var d=u.render;u.render=function(t,e){return c.call(e),d(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:u}}var s=a({name:"swatches",components:{Swatch:a({name:"swatch",components:{Check:a({name:"check",data:function(){return{}}},(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"vue-swatches__check__wrapper vue-swatches--has-children-centered"},[e("div",{staticClass:"vue-swatches__check__circle vue-swatches--has-children-centered"},[e("svg",{staticClass:"check",attrs:{version:"1.1",role:"presentation",width:"12",height:"12",viewBox:"0 0 1792 1792"}},[e("path",{staticClass:"vue-swatches__check__path",attrs:{d:"M1671 566q0 40-28 68l-724 724-136 136q-28 28-68 28t-68-28l-136-136-362-362q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 295 656-657q28-28 68-28t68 28l136 136q28 28 28 68z"}})])])])}),[],!1,(function(t){n(13)}),null,null).exports},props:{borderRadius:{type:String},disabled:{type:Boolean},exceptionMode:{type:String},isException:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},showCheckbox:{type:Boolean},showBorder:{type:Boolean},size:{type:Number},spacingSize:{type:Number},swatchColor:{type:String,default:""},swatchStyle:{type:Object}},data:function(){return{}},computed:{computedSwatchStyle:function(){return{display:this.isException&&"hidden"===this.exceptionMode?"none":"inline-block",width:this.size+"px",height:this.size+"px",marginBottom:this.spacingSize+"px",marginRight:this.spacingSize+"px",borderRadius:this.borderRadius,backgroundColor:""!==this.swatchColor?this.swatchColor:"#FFFFFF",cursor:this.cursorStyle}},cursorStyle:function(){return this.disabled||this.isException&&"disabled"===this.exceptionMode?"not-allowed":"pointer"},swatchStyles:function(){return[this.computedSwatchStyle,this.swatchStyle]}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue-swatches__swatch",class:{"vue-swatches__swatch--border":t.showBorder,"vue-swatches__swatch--selected":t.selected,"vue-swatches__swatch--is-exception":t.isException||t.disabled},style:t.swatchStyles},[""===t.swatchColor?n("div",{staticClass:"vue-swatches__diagonal--wrapper vue-swatches--has-children-centered"},[n("div",{staticClass:"vue-swatches__diagonal"})]):t._e(),t._v(" "),n("check",{directives:[{name:"show",rawName:"v-show",value:t.showCheckbox&&t.selected,expression:"showCheckbox && selected"}]})],1)}),[],!1,(function(t){n(15)}),null,null).exports},props:{backgroundColor:{type:String,default:"#ffffff"},closeOnSelect:{type:Boolean,default:!0},colors:{type:[Array,Object,String],default:"basic"},exceptions:{type:Array,default:function(){return[]}},exceptionMode:{type:String,default:"disabled"},disabled:{type:Boolean,default:!1},fallbackInputClass:{type:[Array,Object,String],default:null},fallbackOkClass:{type:[Array,Object,String],default:null},fallbackOkText:{type:String,default:"Ok"},fallbackInputType:{type:String,default:function(){return"text"},validator:function(t){return-1!==["text","color"].indexOf(t)}},inline:{type:Boolean,default:!1},maxHeight:{type:[Number,String],default:null},shapes:{type:String,default:"squares"},popoverTo:{type:String,default:"right"},rowLength:{type:[Number,String],default:null},showBorder:{type:Boolean,default:null},showFallback:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!0},swatchSize:{type:[Number,String],default:null},swatchStyle:{type:[Object,Array],default:function(){}},triggerStyle:{type:[Object,Array],default:function(){}},wrapperStyle:{type:[Object,Array],default:function(){}},value:{type:String,default:null}},data:function(){return{presetBorderRadius:null,presetMaxHeight:null,presetRowLength:null,presetShowBorder:null,presetSwatchSize:null,presetSpacingSize:null,internalValue:this.value,internalIsOpen:!1}},computed:{isNested:function(){return!!(this.computedColors&&this.computedColors.length>0&&this.computedColors[0]instanceof Array)},isOpen:function(){return!this.inline&&this.internalIsOpen},isNoColor:function(){return this.checkEquality("",this.value)},computedColors:function(){return this.colors instanceof Array?this.colors:this.extractSwatchesFromPreset(this.colors)},computedBorderRadius:function(){return null!==this.presetBorderRadius?this.presetBorderRadius:this.borderRadius},computedExceptionMode:function(){return"hidden"===this.exceptionMode||"disabled"===this.exceptionMode?this.exceptionMode:void 0},computedMaxHeight:function(){return null!==this.maxHeight?Number(this.maxHeight):null!==this.presetMaxHeight?this.presetMaxHeight:300},computedRowLength:function(){return null!==this.rowLength?Number(this.rowLength):null!==this.presetRowLength?this.presetRowLength:4},computedSwatchSize:function(){return null!==this.swatchSize?Number(this.swatchSize):null!==this.presetSwatchSize?this.presetSwatchSize:42},computedSpacingSize:function(){return null!==this.presetSpacingSize?this.presetSpacingSize:this.spacingSize},computedShowBorder:function(){return null!==this.showBorder?this.showBorder:null!==this.presetShowBorder&&this.presetShowBorder},borderRadius:function(){return"squares"===this.shapes?Math.round(.25*this.computedSwatchSize)+"px":"circles"===this.shapes?"50%":void 0},spacingSize:function(){return Math.round(.25*this.computedSwatchSize)},wrapperWidth:function(){return this.computedRowLength*(this.computedSwatchSize+this.computedSpacingSize)},computedtriggerStyle:function(){return{width:"42px",height:"42px",backgroundColor:this.value?this.value:"#ffffff",borderRadius:"circles"===this.shapes?"50%":"10px"}},triggerStyles:function(){return[this.computedtriggerStyle,this.triggerStyle]},containerStyle:function(){var t={backgroundColor:this.backgroundColor},e={};return this.inline?t:("right"===this.popoverTo?e={left:0}:"left"===this.popoverTo&&(e={right:0}),r()({},e,t,{maxHeight:this.computedMaxHeight+"px"}))},containerStyles:function(){return[this.containerStyle]},computedWrapperStyle:function(){var t={paddingTop:this.computedSpacingSize+"px",paddingLeft:this.computedSpacingSize+"px"};return this.inline?t:r()({},t,{width:this.wrapperWidth+"px"})},wrapperStyles:function(){return[this.computedWrapperStyle,this.wrapperStyle]},computedFallbackWrapperStyle:function(){var t={marginLeft:this.computedSpacingSize+"px",paddingBottom:this.computedSpacingSize+"px"};return this.inline?t:r()({},t,{width:this.wrapperWidth-this.computedSpacingSize+"px"})},computedFallbackWrapperStyles:function(){return[this.computedFallbackWrapperStyle]}},watch:{value:function(t){this.internalValue=t}},methods:{checkEquality:function(t,e){return!(!t&&""!==t||!e&&""!==e)&&t.toUpperCase()===e.toUpperCase()},checkException:function(t){return-1!==this.exceptions.map((function(t){return t.toUpperCase()})).indexOf(t.toUpperCase())},hidePopover:function(){this.internalIsOpen=!1,this.$el.blur(),this.$emit("close",this.internalValue)},onBlur:function(t){this.isOpen&&(null!==t&&this.$el.contains(t)||(this.internalIsOpen=!1,this.$emit("close",this.internalValue)))},onFallbackButtonClick:function(){this.hidePopover()},showPopover:function(){this.isOpen||this.inline||this.disabled||(this.internalIsOpen=!0,this.$el.focus(),this.$emit("open"))},togglePopover:function(){this.isOpen?this.hidePopover():this.showPopover()},updateSwatch:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).fromFallbackInput;this.checkException(t)||this.disabled||(this.internalValue=t,this.$emit("input",t),!this.closeOnSelect||this.inline||e||this.hidePopover())},extractSwatchesFromPreset:function(t){var e=null;return(e=t instanceof Object?t:o[t]).borderRadius&&(this.presetBorderRadius=e.borderRadius),e.maxHeight&&(this.presetMaxHeight=e.maxHeight),e.rowLength&&(this.presetRowLength=e.rowLength),e.showBorder&&(this.presetShowBorder=e.showBorder),e.swatchSize&&(this.presetSwatchSize=e.swatchSize),(0===e.spacingSize||e.spacingSize)&&(this.presetSpacingSize=e.spacingSize),e.swatches}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue-swatches",attrs:{tabindex:"0"},on:{blur:function(e){return e.target!==e.currentTarget?null:(n=e,t.onBlur(n.relatedTarget));var n}}},[t.inline?t._e():n("div",{ref:"trigger-wrapper",on:{click:t.togglePopover}},[t._t("trigger",[n("div",{staticClass:"vue-swatches__trigger",class:{"vue-swatches--is-empty":!t.value,"vue-swatches--is-disabled":t.disabled},style:t.triggerStyles},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isNoColor,expression:"isNoColor"}],staticClass:"vue-swatches__diagonal--wrapper vue-swatches--has-children-centered"},[n("div",{staticClass:"vue-swatches__diagonal"})])])])],2),t._v(" "),n("transition",{attrs:{name:"vue-swatches-show-hide"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.inline||t.isOpen,expression:"inline || isOpen"}],staticClass:"vue-swatches__container",class:{"vue-swatches--inline":t.inline},style:t.containerStyles},[n("div",{staticClass:"vue-swatches__wrapper",style:t.wrapperStyles},[t.isNested?t._l(t.computedColors,(function(e,i){return n("div",{key:i,staticClass:"vue-swatches__row"},t._l(e,(function(e){return n("swatch",{key:e,attrs:{"border-radius":t.computedBorderRadius,disabled:t.disabled,"exception-mode":t.computedExceptionMode,"is-exception":t.checkException(e),selected:t.checkEquality(e,t.value),size:t.computedSwatchSize,"spacing-size":t.computedSpacingSize,"show-border":t.computedShowBorder,"show-checkbox":t.showCheckbox,"swatch-color":e,"swatch-style":t.swatchStyle},nativeOn:{click:function(n){t.updateSwatch(e)}}})})))})):t._l(t.computedColors,(function(e){return n("swatch",{key:e,attrs:{"border-radius":t.computedBorderRadius,disabled:t.disabled,"exception-mode":t.computedExceptionMode,"is-exception":t.checkException(e),selected:t.checkEquality(e,t.value),size:t.computedSwatchSize,"spacing-size":t.computedSpacingSize,"show-border":t.computedShowBorder,"show-checkbox":t.showCheckbox,"swatch-color":e,"swatch-style":t.swatchStyle},nativeOn:{click:function(n){t.updateSwatch(e)}}})}))],2),t._v(" "),t.showFallback?n("div",{staticClass:"vue-swatches__fallback__wrapper",style:t.computedFallbackWrapperStyles},[n("span",{staticClass:"vue-swatches__fallback__input--wrapper"},[n("input",{ref:"fallbackInput",staticClass:"vue-swatches__fallback__input",class:t.fallbackInputClass,attrs:{type:t.fallbackInputType},domProps:{value:t.internalValue},on:{input:function(e){return t.updateSwatch(e.target.value,{fromFallbackInput:!0})}}})]),t._v(" "),n("button",{staticClass:"vue-swatches__fallback__button",class:t.fallbackOkClass,on:{click:function(e){return e.preventDefault(),t.onFallbackButtonClick(e)}}},[t._v("\n          "+t._s(t.fallbackOkText)+"\n        ")])]):t._e()])])],1)}),[],!1,(function(t){n(45)}),null,null).exports;n.d(e,"Swatches",(function(){return s})),e.default=s},,function(t,e,n){},,function(t,e,n){},function(t,e,n){var i=n(7);t.exports=function(t){return Object(i(t))}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e){t.exports=!0},function(t,e,n){var i=n(4),r=n(5),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n(21)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var i=n(22)("keys"),r=n(20);t.exports=function(t){return i[t]||(i[t]=r(t))}},function(t,e,n){var i=n(6),r=Math.max,o=Math.min;t.exports=function(t,e){return(t=i(t))<0?r(t+e,0):o(t,e)}},function(t,e,n){var i=n(6),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t,e,n){var i=n(9),r=n(25),o=n(24);t.exports=function(t){return function(e,n,a){var s,l=i(e),c=r(l.length),u=o(a,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var i=n(10),r=n(9),o=n(26)(!1),a=n(23)("IE_PROTO");t.exports=function(t,e){var n,s=r(t),l=0,c=[];for(n in s)n!=a&&i(s,n)&&c.push(n);for(;e.length>l;)i(s,n=e[l++])&&(~o(c,n)||c.push(n));return c}},function(t,e,n){var i=n(28),r=n(19);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e,n){"use strict";var i=n(29),r=n(18),o=n(17),a=n(16),s=n(8),l=Object.assign;t.exports=!l||n(1)((function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=i}))?function(t,e){for(var n=a(t),l=arguments.length,c=1,u=r.f,d=o.f;l>c;)for(var h,p=s(arguments[c++]),f=u?i(p).concat(u(p)):i(p),m=f.length,v=0;m>v;)d.call(p,h=f[v++])&&(n[h]=p[h]);return n}:l},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var i=n(3);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var i=n(3),r=n(5).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e,n){t.exports=!n(2)&&!n(1)((function(){return 7!=Object.defineProperty(n(33)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var i=n(3);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var i=n(35),r=n(34),o=n(32),a=Object.defineProperty;e.f=n(2)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var i=n(36),r=n(31);t.exports=n(2)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var i=n(38);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var i=n(5),r=n(4),o=n(39),a=n(37),s=n(10),l=function(t,e,n){var c,u,d,h=t&l.F,p=t&l.G,f=t&l.S,m=t&l.P,v=t&l.B,g=t&l.W,b=p?r:r[e]||(r[e]={}),y=b.prototype,_=p?i:f?i[e]:(i[e]||{}).prototype;for(c in p&&(n=e),n)(u=!h&&_&&void 0!==_[c])&&s(b,c)||(d=u?_[c]:n[c],b[c]=p&&"function"!=typeof _[c]?n[c]:v&&u?o(d,i):g&&_[c]==d?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(d):m&&"function"==typeof d?o(Function.call,d):d,m&&((b.virtual||(b.virtual={}))[c]=d,t&l.R&&y&&!y[c]&&a(y,c,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e,n){var i=n(40);i(i.S+i.F,"Object",{assign:n(30)})},function(t,e,n){n(41),t.exports=n(4).Object.assign},function(t,e,n){t.exports={default:n(42),__esModule:!0}},,function(t,e,n){}])},5160:function(t){t.exports=function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=6)}([function(t,e,n){"use strict";function i(){p=!1}function r(t){if(t){if(t!==d){if(t.length!==m.length)throw new Error("Custom alphabet for shortid must be "+m.length+" unique characters. You submitted "+t.length+" characters: "+t);var e=t.split("").filter((function(t,e,n){return e!==n.lastIndexOf(t)}));if(e.length)throw new Error("Custom alphabet for shortid must be "+m.length+" unique characters. These characters were not unique: "+e.join(", "));d=t,i()}}else d!==m&&(d=m,i())}function o(t){return r(t),d}function a(t){f.seed(t),h!==t&&(i(),h=t)}function s(){d||r(m);for(var t,e=d.split(""),n=[],i=f.nextValue();e.length>0;)i=f.nextValue(),t=Math.floor(i*e.length),n.push(e.splice(t,1)[0]);return n.join("")}function l(){return p||(p=s())}function c(t){return l()[t]}function u(){return d||m}var d,h,p,f=n(19),m="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";t.exports={get:u,characters:o,seed:a,lookup:c,shuffled:l}},function(t,e,n){"use strict";var i=n(5),r=n.n(i);e.a={animateIn:function(t){r()({targets:t,translateY:"-35px",opacity:1,duration:300,easing:"easeOutCubic"})},animateOut:function(t,e){r()({targets:t,opacity:0,marginTop:"-40px",duration:300,easing:"easeOutExpo",complete:e})},animateOutBottom:function(t,e){r()({targets:t,opacity:0,marginBottom:"-40px",duration:300,easing:"easeOutExpo",complete:e})},animateReset:function(t){r()({targets:t,left:0,opacity:1,duration:300,easing:"easeOutExpo"})},animatePanning:function(t,e,n){r()({targets:t,duration:10,easing:"easeOutQuad",left:e,opacity:n})},animatePanEnd:function(t,e){r()({targets:t,opacity:0,duration:300,easing:"easeOutExpo",complete:e})},clearAnimation:function(t){var e=r.a.timeline();t.forEach((function(t){e.add({targets:t.el,opacity:0,right:"-40px",duration:300,offset:"-=150",easing:"easeOutExpo",complete:function(){t.remove()}})}))}}},function(t,e,n){"use strict";t.exports=n(16)},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n(8),r=n(1),o="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},a=n(2);n(11).polyfill();var s=function t(e){var n=this;return this.id=a.generate(),this.options=e,this.cached_options={},this.global={},this.groups=[],this.toasts=[],this.container=null,u(this),c(this),this.group=function(e){e||(e={}),e.globalToasts||(e.globalToasts={}),Object.assign(e.globalToasts,n.global);var i=new t(e);return n.groups.push(i),i},this.register=function(t,e,i){return d(n,t,e,i=i||{})},this.show=function(t,e){return l(n,t,e)},this.success=function(t,e){return(e=e||{}).type="success",l(n,t,e)},this.info=function(t,e){return(e=e||{}).type="info",l(n,t,e)},this.error=function(t,e){return(e=e||{}).type="error",l(n,t,e)},this.remove=function(t){n.toasts=n.toasts.filter((function(e){return e.el.hash!==t.hash})),t.parentNode&&t.parentNode.removeChild(t)},this.clear=function(t){return r.a.clearAnimation(n.toasts,(function(){t&&t()})),n.toasts=[],!0},this},l=function(t,e,r){var a=null;if("object"!==(void 0===(r=r||{})?"undefined":o(r)))return console.error("Options should be a type of object. given : "+r),null;t.options.singleton&&t.toasts.length>0&&(t.cached_options=r,t.toasts[t.toasts.length-1].goAway(0));var s=Object.assign({},t.options);return Object.assign(s,r),a=n.i(i.a)(t,e,s),t.toasts.push(a),a},c=function(t){var e=t.options.globalToasts,n=function(e,n){return"string"==typeof n&&t[n]?t[n].apply(t,[e,{}]):l(t,e,n)};e&&(t.global={},Object.keys(e).forEach((function(i){t.global[i]=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e[i].apply(null,[t,n])}})))},u=function(t){var e=document.createElement("div");e.id=t.id,e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","false"),document.body.appendChild(e),t.container=e},d=function(t,e,n,i){t.options.globalToasts||(t.options.globalToasts={}),t.options.globalToasts[e]=function(t,e){var r=null;return"string"==typeof n&&(r=n),"function"==typeof n&&(r=n(t)),e(r,i)},c(t)}},function(t,e,n){n(22);var i=n(21)(null,null,null,null);t.exports=i.exports},function(t,e,n){(function(n){var i,r,o,a={scope:{}};a.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){if(n.get||n.set)throw new TypeError("ES3 does not support getters and setters.");t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},a.getGlobal=function(t){return"undefined"!=typeof window&&window===t?t:void 0!==n&&null!=n?n:t},a.global=a.getGlobal(this),a.SYMBOL_PREFIX="jscomp_symbol_",a.initSymbol=function(){a.initSymbol=function(){},a.global.Symbol||(a.global.Symbol=a.Symbol)},a.symbolCounter_=0,a.Symbol=function(t){return a.SYMBOL_PREFIX+(t||"")+a.symbolCounter_++},a.initSymbolIterator=function(){a.initSymbol();var t=a.global.Symbol.iterator;t||(t=a.global.Symbol.iterator=a.global.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&a.defineProperty(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return a.arrayIterator(this)}}),a.initSymbolIterator=function(){}},a.arrayIterator=function(t){var e=0;return a.iteratorPrototype((function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}))},a.iteratorPrototype=function(t){return a.initSymbolIterator(),(t={next:t})[a.global.Symbol.iterator]=function(){return this},t},a.array=a.array||{},a.iteratorFromArray=function(t,e){a.initSymbolIterator(),t instanceof String&&(t+="");var n=0,i={next:function(){if(n<t.length){var r=n++;return{value:e(r,t[r]),done:!1}}return i.next=function(){return{done:!0,value:void 0}},i.next()}};return i[Symbol.iterator]=function(){return i},i},a.polyfill=function(t,e,n,i){if(e){for(n=a.global,t=t.split("."),i=0;i<t.length-1;i++){var r=t[i];r in n||(n[r]={}),n=n[r]}(e=e(i=n[t=t[t.length-1]]))!=i&&null!=e&&a.defineProperty(n,t,{configurable:!0,writable:!0,value:e})}},a.polyfill("Array.prototype.keys",(function(t){return t||function(){return a.iteratorFromArray(this,(function(t){return t}))}}),"es6-impl","es3");var s=this;!function(n,a){r=[],void 0!==(o="function"==typeof(i=a)?i.apply(e,r):i)&&(t.exports=o)}(0,(function(){function t(t){if(!F.col(t))try{return document.querySelectorAll(t)}catch(t){}}function e(t,e){for(var n=t.length,i=2<=arguments.length?arguments[1]:void 0,r=[],o=0;o<n;o++)if(o in t){var a=t[o];e.call(i,a,o,t)&&r.push(a)}return r}function n(t){return t.reduce((function(t,e){return t.concat(F.arr(e)?n(e):e)}),[])}function i(e){return F.arr(e)?e:(F.str(e)&&(e=t(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function r(t,e){return t.some((function(t){return t===e}))}function o(t){var e,n={};for(e in t)n[e]=t[e];return n}function a(t,e){var n,i=o(t);for(n in t)i[n]=e.hasOwnProperty(n)?e[n]:t[n];return i}function l(t,e){var n,i=o(t);for(n in e)i[n]=F.und(t[n])?e[n]:t[n];return i}function c(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,i){return e+e+n+n+i+i}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+(t=parseInt(e[1],16))+","+parseInt(e[2],16)+","+(e=parseInt(e[3],16))+",1)"}function u(t){function e(t,e,n){return 0>n&&(n+=1),1<n&&--n,n<1/6?t+6*(e-t)*n:.5>n?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var n=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(t);t=parseInt(n[1])/360;var i=parseInt(n[2])/100,r=parseInt(n[3])/100;if(n=n[4]||1,0==i)r=i=t=r;else{var o=.5>r?r*(1+i):r+i-r*i,a=2*r-o;r=e(a,o,t+1/3),i=e(a,o,t),t=e(a,o,t-1/3)}return"rgba("+255*r+","+255*i+","+255*t+","+n+")"}function d(t){if(t=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t))return t[2]}function h(t){return-1<t.indexOf("translate")||"perspective"===t?"px":-1<t.indexOf("rotate")||-1<t.indexOf("skew")?"deg":void 0}function p(t,e){return F.fnc(t)?t(e.target,e.id,e.total):t}function f(t,e){if(e in t.style)return getComputedStyle(t).getPropertyValue(e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function m(t,e){return F.dom(t)&&r(N,e)?"transform":F.dom(t)&&(t.getAttribute(e)||F.svg(t)&&t[e])?"attribute":F.dom(t)&&"transform"!==e&&f(t,e)?"css":null!=t[e]?"object":void 0}function v(t,n){var i=h(n);if(i=-1<n.indexOf("scale")?1:0+i,!(t=t.style.transform))return i;for(var r=[],o=[],a=[],s=/(\w+)\((.+?)\)/g;r=s.exec(t);)o.push(r[1]),a.push(r[2]);return(t=e(a,(function(t,e){return o[e]===n}))).length?t[0]:i}function g(t,e){switch(m(t,e)){case"transform":return v(t,e);case"css":return f(t,e);case"attribute":return t.getAttribute(e)}return t[e]||0}function b(t,e){var n=/^(\*=|\+=|-=)/.exec(t);if(!n)return t;var i=d(t)||0;switch(e=parseFloat(e),t=parseFloat(t.replace(n[0],"")),n[0][0]){case"+":return e+t+i;case"-":return e-t+i;case"*":return e*t+i}}function y(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function _(t){t=t.points;for(var e,n=0,i=0;i<t.numberOfItems;i++){var r=t.getItem(i);0<i&&(n+=y(e,r)),e=r}return n}function w(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return 2*Math.PI*t.getAttribute("r");case"rect":return 2*t.getAttribute("width")+2*t.getAttribute("height");case"line":return y({x:t.getAttribute("x1"),y:t.getAttribute("y1")},{x:t.getAttribute("x2"),y:t.getAttribute("y2")});case"polyline":return _(t);case"polygon":var e=t.points;return _(t)+y(e.getItem(e.numberOfItems-1),e.getItem(0))}}function x(t,e){function n(n){return n=void 0===n?0:n,t.el.getPointAtLength(1<=e+n?e+n:0)}var i=n(),r=n(-1),o=n(1);switch(t.property){case"x":return i.x;case"y":return i.y;case"angle":return 180*Math.atan2(o.y-r.y,o.x-r.x)/Math.PI}}function C(t,e){var n,i=/-?\d*\.?\d+/g;if(n=F.pth(t)?t.totalLength:t,F.col(n))if(F.rgb(n)){var r=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(n);n=r?"rgba("+r[1]+",1)":n}else n=F.hex(n)?c(n):F.hsl(n)?u(n):void 0;else r=(r=d(n))?n.substr(0,n.length-r.length):n,n=e&&!/\s/g.test(n)?r+e:r;return{original:n+="",numbers:n.match(i)?n.match(i).map(Number):[0],strings:F.str(t)||e?n.split(i):[]}}function S(t){return e(t=t?n(F.arr(t)?t.map(i):i(t)):[],(function(t,e,n){return n.indexOf(t)===e}))}function E(t){var e=S(t);return e.map((function(t,n){return{target:t,id:n,total:e.length}}))}function T(t,e){var n=o(e);if(F.arr(t)){var r=t.length;2!==r||F.obj(t[0])?F.fnc(e.duration)||(n.duration=e.duration/r):t={value:t}}return i(t).map((function(t,n){return n=n?0:e.delay,t=F.obj(t)&&!F.pth(t)?t:{value:t},F.und(t.delay)&&(t.delay=n),t})).map((function(t){return l(t,n)}))}function O(t,e){var n,i={};for(n in t){var r=p(t[n],e);F.arr(r)&&(r=r.map((function(t){return p(t,e)})),1===r.length&&(r=r[0])),i[n]=r}return i.duration=parseFloat(i.duration),i.delay=parseFloat(i.delay),i}function k(t){return F.arr(t)?z.apply(this,t):B[t]}function A(t,e){var n;return t.tweens.map((function(i){var r=(i=O(i,e)).value,o=g(e.target,t.name),a=n?n.to.original:o,s=(a=F.arr(r)?r[0]:a,b(F.arr(r)?r[1]:r,a));return o=d(s)||d(a)||d(o),i.from=C(a,o),i.to=C(s,o),i.start=n?n.end:t.offset,i.end=i.start+i.delay+i.duration,i.easing=k(i.easing),i.elasticity=(1e3-Math.min(Math.max(i.elasticity,1),999))/1e3,i.isPath=F.pth(r),i.isColor=F.col(i.from.original),i.isColor&&(i.round=1),n=i}))}function P(t,i){return e(n(t.map((function(t){return i.map((function(e){var n=m(t.target,e.name);if(n){var i=A(e,t);e={type:n,property:e.name,animatable:t,tweens:i,duration:i[i.length-1].end,delay:i[0].delay}}else e=void 0;return e}))}))),(function(t){return!F.und(t)}))}function M(t,e,n,i){var r="delay"===t;return e.length?(r?Math.min:Math.max).apply(Math,e.map((function(e){return e[t]}))):r?i.delay:n.offset+i.delay+i.duration}function L(t){var e,n=a(I,t),i=a(j,t),r=E(t.targets),o=[],s=l(n,i);for(e in t)s.hasOwnProperty(e)||"targets"===e||o.push({name:e,offset:s.offset,tweens:T(t[e],i)});return l(n,{children:[],animatables:r,animations:t=P(r,o),duration:M("duration",t,n,i),delay:M("delay",t,n,i)})}function D(t){function n(){return window.Promise&&new Promise((function(t){return d=t}))}function i(t){return p.reversed?p.duration-t:t}function r(t){for(var n=0,i={},r=p.animations,o=r.length;n<o;){var a=r[n],s=a.animatable,l=(c=a.tweens)[h=c.length-1];h&&(l=e(c,(function(e){return t<e.end}))[0]||l);for(var c=Math.min(Math.max(t-l.start-l.delay,0),l.duration)/l.duration,u=isNaN(c)?1:l.easing(c,l.elasticity),d=(c=l.to.strings,l.round),h=[],m=void 0,v=(m=l.to.numbers.length,0);v<m;v++){var g=void 0,b=(g=l.to.numbers[v],l.from.numbers[v]);g=l.isPath?x(l.value,u*g):b+u*(g-b),d&&(l.isColor&&2<v||(g=Math.round(g*d)/d)),h.push(g)}if(l=c.length)for(m=c[0],u=0;u<l;u++)d=c[u+1],v=h[u],isNaN(v)||(m=d?m+(v+d):m+(v+" "));else m=h[0];$[a.type](s.target,a.property,m,i,s.id),a.currentValue=m,n++}if(n=Object.keys(i).length)for(r=0;r<n;r++)R||(R=f(document.body,"transform")?"transform":"-webkit-transform"),p.animatables[r].target.style[R]=i[r].join(" ");p.currentTime=t,p.progress=t/p.duration*100}function o(t){p[t]&&p[t](p)}function a(){p.remaining&&!0!==p.remaining&&p.remaining--}function s(t){var e=p.duration,s=p.offset,f=s+p.delay,m=p.currentTime,v=p.reversed,g=i(t);if(p.children.length){var b=p.children,y=b.length;if(g>=p.currentTime)for(var _=0;_<y;_++)b[_].seek(g);else for(;y--;)b[y].seek(g)}(g>=f||!e)&&(p.began||(p.began=!0,o("begin")),o("run")),g>s&&g<e?r(g):(g<=s&&0!==m&&(r(0),v&&a()),(g>=e&&m!==e||!e)&&(r(e),v||a())),o("update"),t>=e&&(p.remaining?(c=l,"alternate"===p.direction&&(p.reversed=!p.reversed)):(p.pause(),p.completed||(p.completed=!0,o("complete"),"Promise"in window&&(d(),h=n()))),u=0)}t=void 0===t?{}:t;var l,c,u=0,d=null,h=n(),p=L(t);return p.reset=function(){var t=p.direction,e=p.loop;for(p.currentTime=0,p.progress=0,p.paused=!0,p.began=!1,p.completed=!1,p.reversed="reverse"===t,p.remaining="alternate"===t&&1===e?2:e,r(0),t=p.children.length;t--;)p.children[t].reset()},p.tick=function(t){l=t,c||(c=l),s((u+l-c)*D.speed)},p.seek=function(t){s(i(t))},p.pause=function(){var t=U.indexOf(p);-1<t&&U.splice(t,1),p.paused=!0},p.play=function(){p.paused&&(p.paused=!1,c=0,u=i(p.currentTime),U.push(p),H||V())},p.reverse=function(){p.reversed=!p.reversed,c=0,u=i(p.currentTime)},p.restart=function(){p.pause(),p.reset(),p.play()},p.finished=h,p.reset(),p.autoplay&&p.play(),p}var R,I={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},j={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},N="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),F={arr:function(t){return Array.isArray(t)},obj:function(t){return-1<Object.prototype.toString.call(t).indexOf("Object")},pth:function(t){return F.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},dom:function(t){return t.nodeType||F.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return F.hex(t)||F.rgb(t)||F.hsl(t)}},z=function(){function t(t,e,n){return(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t}return function(e,n,i,r){if(0<=e&&1>=e&&0<=i&&1>=i){var o=new Float32Array(11);if(e!==n||i!==r)for(var a=0;11>a;++a)o[a]=t(.1*a,e,i);return function(a){if(e===n&&i===r)return a;if(0===a)return 0;if(1===a)return 1;for(var s=0,l=1;10!==l&&o[l]<=a;++l)s+=.1;--l,l=s+(a-o[l])/(o[l+1]-o[l])*.1;var c=3*(1-3*i+3*e)*l*l+2*(3*i-6*e)*l+3*e;if(.001<=c){for(s=0;4>s&&0!=(c=3*(1-3*i+3*e)*l*l+2*(3*i-6*e)*l+3*e);++s){var u=t(l,e,i)-a;l-=u/c}a=l}else if(0===c)a=l;else{l=s,s+=.1;var d=0;do{0<(c=t(u=l+(s-l)/2,e,i)-a)?s=u:l=u}while(1e-7<Math.abs(c)&&10>++d);a=u}return t(a,n,r)}}}}(),B=function(){function t(t,e){return 0===t||1===t?t:-Math.pow(2,10*(t-1))*Math.sin(2*(t-1-e/(2*Math.PI)*Math.asin(1))*Math.PI/e)}var e,n="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),i={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],t],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(e,n){return 1-t(1-e,n)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(e,n){return.5>e?t(2*e,n)/2:1-t(-2*e+2,n)/2}]},r={linear:z(.25,.25,.75,.75)},o={};for(e in i)o.type=e,i[o.type].forEach(function(t){return function(e,i){r["ease"+t.type+n[i]]=F.fnc(e)?e:z.apply(s,e)}}(o)),o={type:o.type};return r}(),$={css:function(t,e,n){return t.style[e]=n},attribute:function(t,e,n){return t.setAttribute(e,n)},object:function(t,e,n){return t[e]=n},transform:function(t,e,n,i,r){i[r]||(i[r]=[]),i[r].push(e+"("+n+")")}},U=[],H=0,V=function(){function t(){H=requestAnimationFrame(e)}function e(e){var n=U.length;if(n){for(var i=0;i<n;)U[i]&&U[i].tick(e),i++;t()}else cancelAnimationFrame(H),H=0}return t}();return D.version="2.2.0",D.speed=1,D.running=U,D.remove=function(t){t=S(t);for(var e=U.length;e--;)for(var n=U[e],i=n.animations,o=i.length;o--;)r(t,i[o].animatable.target)&&(i.splice(o,1),i.length||n.pause())},D.getValue=g,D.path=function(e,n){var i=F.str(e)?t(e)[0]:e,r=n||100;return function(t){return{el:i,property:t,totalLength:w(i)*(r/100)}}},D.setDashoffset=function(t){var e=w(t);return t.setAttribute("stroke-dasharray",e),e},D.bezier=z,D.easings=B,D.timeline=function(t){var e=D(t);return e.pause(),e.duration=0,e.add=function(n){return e.children.forEach((function(t){t.began=!0,t.completed=!0})),i(n).forEach((function(n){var i=l(n,a(j,t||{}));i.targets=i.targets||t.targets,n=e.duration;var r=i.offset;i.autoplay=!1,i.direction=e.direction,i.offset=F.und(r)?n:b(r,n),e.began=!0,e.completed=!0,e.seek(i.offset),(i=D(i)).began=!0,i.completed=!0,i.duration>n&&(e.duration=i.duration),e.children.push(i)})),e.seek(0),e.reset(),e.autoplay&&e.restart(),e},e},D.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},D}))}).call(e,n(25))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),r=n(4),o=n.n(r),a={install:function(t,e){e||(e={});var n=new i.a(e);t.component("toasted",o.a),t.toasted=t.prototype.$toasted=n}};"undefined"!=typeof window&&window.Vue&&(window.Toasted=a),e.default=a},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n(1),r=this,o="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},a=function(t,e,n){return setTimeout((function(){n.cached_options.position&&n.cached_options.position.includes("bottom")?i.a.animateOutBottom(t,(function(){n.remove(t)})):i.a.animateOut(t,(function(){n.remove(t)}))}),e),!0},s=function(t,e){return("object"===("undefined"==typeof HTMLElement?"undefined":o(HTMLElement))?e instanceof HTMLElement:e&&"object"===(void 0===e?"undefined":o(e))&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)?t.appendChild(e):t.innerHTML=e,r},l=function(t,e){var n=!1;return{el:t,text:function(e){return s(t,e),this},goAway:function(){return n=!0,a(t,arguments.length>0&&void 0!==arguments[0]?arguments[0]:800,e)},remove:function(){e.remove(t)},disposed:function(){return n}}}},function(t,e,n){"use strict";var i=n(12),r=n.n(i),o=n(1),a=n(7),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},l=n(2);String.prototype.includes||Object.defineProperty(String.prototype,"includes",{value:function(t,e){return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}});var c={},u=null,d=function(t){return t.className=t.className||null,t.onComplete=t.onComplete||null,t.position=t.position||"top-right",t.duration=t.duration||null,t.keepOnHover=t.keepOnHover||!1,t.theme=t.theme||"toasted-primary",t.type=t.type||"default",t.containerClass=t.containerClass||null,t.fullWidth=t.fullWidth||!1,t.icon=t.icon||null,t.action=t.action||null,t.fitToScreen=t.fitToScreen||null,t.closeOnSwipe=void 0===t.closeOnSwipe||t.closeOnSwipe,t.iconPack=t.iconPack||"material",t.className&&"string"==typeof t.className&&(t.className=t.className.split(" ")),t.className||(t.className=[]),t.theme&&t.className.push(t.theme.trim()),t.type&&t.className.push(t.type),t.containerClass&&"string"==typeof t.containerClass&&(t.containerClass=t.containerClass.split(" ")),t.containerClass||(t.containerClass=[]),t.position&&t.containerClass.push(t.position.trim()),t.fullWidth&&t.containerClass.push("full-width"),t.fitToScreen&&t.containerClass.push("fit-to-screen"),c=t,t},h=function(t,e){var i=document.createElement("div");if(i.classList.add("toasted"),i.hash=l.generate(),e.className&&e.className.forEach((function(t){i.classList.add(t)})),("object"===("undefined"==typeof HTMLElement?"undefined":s(HTMLElement))?t instanceof HTMLElement:t&&"object"===(void 0===t?"undefined":s(t))&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)?i.appendChild(t):i.innerHTML=t,p(e,i),e.closeOnSwipe){var c=new r.a(i,{prevent_default:!1});c.on("pan",(function(t){var e=t.deltaX;i.classList.contains("panning")||i.classList.add("panning");var n=1-Math.abs(e/80);n<0&&(n=0),o.a.animatePanning(i,e,n)})),c.on("panend",(function(t){var n=t.deltaX;Math.abs(n)>80?o.a.animatePanEnd(i,(function(){"function"==typeof e.onComplete&&e.onComplete(),i.parentNode&&u.remove(i)})):(i.classList.remove("panning"),o.a.animateReset(i))}))}if(Array.isArray(e.action))e.action.forEach((function(t){var e=m(t,n.i(a.a)(i,u));e&&i.appendChild(e)}));else if("object"===s(e.action)){var d=m(e.action,n.i(a.a)(i,u));d&&i.appendChild(d)}return i},p=function(t,e){if(t.icon){var n=document.createElement("i");switch(n.setAttribute("aria-hidden","true"),t.iconPack){case"fontawesome":n.classList.add("fa");var i=t.icon.name?t.icon.name:t.icon;i.includes("fa-")?n.classList.add(i.trim()):n.classList.add("fa-"+i.trim());break;case"mdi":n.classList.add("mdi");var r=t.icon.name?t.icon.name:t.icon;r.includes("mdi-")?n.classList.add(r.trim()):n.classList.add("mdi-"+r.trim());break;case"custom-class":var o=t.icon.name?t.icon.name:t.icon;"string"==typeof o?o.split(" ").forEach((function(t){n.classList.add(t)})):Array.isArray(o)&&o.forEach((function(t){n.classList.add(t.trim())}));break;case"callback":var a=t.icon&&t.icon instanceof Function?t.icon:null;a&&(n=a(n));break;default:n.classList.add("material-icons"),n.textContent=t.icon.name?t.icon.name:t.icon}t.icon.after&&n.classList.add("after"),f(t,n,e)}},f=function(t,e,n){t.icon&&(t.icon.after&&t.icon.name?n.appendChild(e):(t.icon.name,n.insertBefore(e,n.firstChild)))},m=function(t,e){if(!t)return null;var n=document.createElement("a");if(n.classList.add("action"),n.classList.add("ripple"),t.text&&(n.text=t.text),t.href&&(n.href=t.href),t.target&&(n.target=t.target),t.icon){n.classList.add("icon");var i=document.createElement("i");switch(c.iconPack){case"fontawesome":i.classList.add("fa"),t.icon.includes("fa-")?i.classList.add(t.icon.trim()):i.classList.add("fa-"+t.icon.trim());break;case"mdi":i.classList.add("mdi"),t.icon.includes("mdi-")?i.classList.add(t.icon.trim()):i.classList.add("mdi-"+t.icon.trim());break;case"custom-class":"string"==typeof t.icon?t.icon.split(" ").forEach((function(t){n.classList.add(t)})):Array.isArray(t.icon)&&t.icon.forEach((function(t){n.classList.add(t.trim())}));break;default:i.classList.add("material-icons"),i.textContent=t.icon}n.appendChild(i)}return t.class&&("string"==typeof t.class?t.class.split(" ").forEach((function(t){n.classList.add(t)})):Array.isArray(t.class)&&t.class.forEach((function(t){n.classList.add(t.trim())}))),t.push&&n.addEventListener("click",(function(n){n.preventDefault(),c.router?(c.router.push(t.push),t.push.dontClose||e.goAway(0)):console.warn("[vue-toasted] : Vue Router instance is not attached. please check the docs")})),t.onClick&&"function"==typeof t.onClick&&n.addEventListener("click",(function(n){t.onClick&&(n.preventDefault(),t.onClick(n,e))})),n};e.a=function(t,e,i){u=t,i=d(i);var r=u.container;i.containerClass.unshift("toasted-container"),r.className!==i.containerClass.join(" ")&&(r.className="",i.containerClass.forEach((function(t){r.classList.add(t)})));var s=h(e,i);e&&r.appendChild(s),s.style.opacity=0,o.a.animateIn(s);var l=i.duration,c=void 0;if(null!==l){var p=function(){return setInterval((function(){null===s.parentNode&&window.clearInterval(c),s.classList.contains("panning")||(l-=20),l<=0&&(o.a.animateOut(s,(function(){"function"==typeof i.onComplete&&i.onComplete(),s.parentNode&&u.remove(s)})),window.clearInterval(c))}),20)};c=p(),i.keepOnHover&&(s.addEventListener("mouseover",(function(){window.clearInterval(c)})),s.addEventListener("mouseout",(function(){c=p()})))}return n.i(a.a)(s,u)}},function(t,e,n){(t.exports=n(10)()).push([t.i,".toasted{padding:0 20px}.toasted.rounded{border-radius:24px}.toasted .primary,.toasted.toasted-primary{border-radius:2px;min-height:38px;line-height:1.1em;background-color:#353535;padding:6px 20px;font-size:15px;font-weight:300;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.toasted .primary.success,.toasted.toasted-primary.success{background:#4caf50}.toasted .primary.error,.toasted.toasted-primary.error{background:#f44336}.toasted .primary.info,.toasted.toasted-primary.info{background:#3f51b5}.toasted .primary .action,.toasted.toasted-primary .action{color:#a1c2fa}.toasted.bubble{border-radius:30px;min-height:38px;line-height:1.1em;background-color:#ff7043;padding:0 20px;font-size:15px;font-weight:300;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.toasted.bubble.success{background:#4caf50}.toasted.bubble.error{background:#f44336}.toasted.bubble.info{background:#3f51b5}.toasted.bubble .action{color:#8e2b0c}.toasted.outline{border-radius:30px;min-height:38px;line-height:1.1em;background-color:#fff;border:1px solid #676767;padding:0 20px;font-size:15px;color:#676767;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);font-weight:700}.toasted.outline.success{color:#4caf50;border-color:#4caf50}.toasted.outline.error{color:#f44336;border-color:#f44336}.toasted.outline.info{color:#3f51b5;border-color:#3f51b5}.toasted.outline .action{color:#607d8b}.toasted-container{position:fixed;z-index:10000}.toasted-container,.toasted-container.full-width{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.toasted-container.full-width{max-width:86%;width:100%}.toasted-container.full-width.fit-to-screen{min-width:100%}.toasted-container.full-width.fit-to-screen .toasted:first-child{margin-top:0}.toasted-container.full-width.fit-to-screen.top-right{top:0;right:0}.toasted-container.full-width.fit-to-screen.top-left{top:0;left:0}.toasted-container.full-width.fit-to-screen.top-center{top:0;left:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.full-width.fit-to-screen.bottom-right{right:0;bottom:0}.toasted-container.full-width.fit-to-screen.bottom-left{left:0;bottom:0}.toasted-container.full-width.fit-to-screen.bottom-center{left:0;bottom:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.top-right{top:10%;right:7%}.toasted-container.top-left{top:10%;left:7%}.toasted-container.top-center{top:10%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.toasted-container.bottom-right{right:5%;bottom:7%}.toasted-container.bottom-left{left:5%;bottom:7%}.toasted-container.bottom-center{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);bottom:7%}.toasted-container.bottom-left .toasted,.toasted-container.top-left .toasted{float:left}.toasted-container.bottom-right .toasted,.toasted-container.top-right .toasted{float:right}.toasted-container .toasted{top:35px;width:auto;clear:both;margin-top:10px;position:relative;max-width:100%;height:auto;word-break:normal;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;box-sizing:inherit}.toasted-container .toasted .fa,.toasted-container .toasted .fab,.toasted-container .toasted .far,.toasted-container .toasted .fas,.toasted-container .toasted .material-icons,.toasted-container .toasted .mdi{margin-right:.5rem;margin-left:-.4rem}.toasted-container .toasted .fa.after,.toasted-container .toasted .fab.after,.toasted-container .toasted .far.after,.toasted-container .toasted .fas.after,.toasted-container .toasted .material-icons.after,.toasted-container .toasted .mdi.after{margin-left:.5rem;margin-right:-.4rem}.toasted-container .toasted .action{text-decoration:none;font-size:.8rem;padding:8px;margin:5px -7px 5px 7px;border-radius:3px;text-transform:uppercase;letter-spacing:.03em;font-weight:600;cursor:pointer}.toasted-container .toasted .action.icon{padding:4px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.toasted-container .toasted .action.icon .fa,.toasted-container .toasted .action.icon .material-icons,.toasted-container .toasted .action.icon .mdi{margin-right:0;margin-left:4px}.toasted-container .toasted .action.icon:hover{text-decoration:none}.toasted-container .toasted .action:hover{text-decoration:underline}@media only screen and (max-width:600px){.toasted-container{min-width:100%}.toasted-container .toasted:first-child{margin-top:0}.toasted-container.top-right{top:0;right:0}.toasted-container.top-left{top:0;left:0}.toasted-container.top-center{top:0;left:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.bottom-right{right:0;bottom:0}.toasted-container.bottom-left{left:0;bottom:0}.toasted-container.bottom-center{left:0;bottom:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.bottom-center,.toasted-container.top-center{-ms-flex-align:stretch!important;align-items:stretch!important}.toasted-container.bottom-left .toasted,.toasted-container.bottom-right .toasted,.toasted-container.top-left .toasted,.toasted-container.top-right .toasted{float:none}.toasted-container .toasted{border-radius:0}}",""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var n=this[e];n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1])}return t.join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(i[o]=!0)}for(r=0;r<e.length;r++){var a=e[r];"number"==typeof a[0]&&i[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(t,e,n){"use strict";function i(t,e){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),i=1;i<arguments.length;i++){var r=arguments[i];if(null!=r)for(var o=Object.keys(Object(r)),a=0,s=o.length;a<s;a++){var l=o[a],c=Object.getOwnPropertyDescriptor(r,l);void 0!==c&&c.enumerable&&(n[l]=r[l])}}return n}function r(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:i})}t.exports={assign:i,polyfill:r}},function(t,e,n){var i;!function(r,o,a,s){"use strict";function l(t,e,n){return setTimeout(p(t,n),e)}function c(t,e,n){return!!Array.isArray(t)&&(u(t,n[e],n),!0)}function u(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==s)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function d(t,e,n){var i="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=r.console&&(r.console.warn||r.console.log);return o&&o.call(r.console,i,n),t.apply(this,arguments)}}function h(t,e,n){var i,r=e.prototype;(i=t.prototype=Object.create(r)).constructor=t,i._super=r,n&&ft(i,n)}function p(t,e){return function(){return t.apply(e,arguments)}}function f(t,e){return typeof t==gt?t.apply(e&&e[0]||s,e):t}function m(t,e){return t===s?e:t}function v(t,e,n){u(_(e),(function(e){t.addEventListener(e,n,!1)}))}function g(t,e,n){u(_(e),(function(e){t.removeEventListener(e,n,!1)}))}function b(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function y(t,e){return t.indexOf(e)>-1}function _(t){return t.trim().split(/\s+/g)}function w(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function x(t){return Array.prototype.slice.call(t,0)}function C(t,e,n){for(var i=[],r=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];w(r,a)<0&&i.push(t[o]),r[o]=a,o++}return n&&(i=e?i.sort((function(t,n){return t[e]>n[e]})):i.sort()),i}function S(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),o=0;o<mt.length;){if((i=(n=mt[o])?n+r:e)in t)return i;o++}return s}function E(){return Ct++}function T(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}function O(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){f(t.options.enable,[t])&&n.handler(e)},this.init()}function k(t){return new(t.options.inputClass||(Tt?U:Ot?Y:Et?W:$))(t,A)}function A(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=e&At&&i-r==0,a=e&(Mt|Lt)&&i-r==0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,P(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function P(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=D(e)),r>1&&!n.firstMultiple?n.firstMultiple=D(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,l=e.center=R(i);e.timeStamp=_t(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=F(s,l),e.distance=N(s,l),M(n,e),e.offsetDirection=j(e.deltaX,e.deltaY);var c=I(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=yt(c.x)>yt(c.y)?c.x:c.y,e.scale=a?B(a.pointers,i):1,e.rotation=a?z(a.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,L(n,e);var u=t.element;b(e.srcEvent.target,u)&&(u=e.srcEvent.target),e.target=u}function M(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==At&&o.eventType!==Mt||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}function L(t,e){var n,i,r,o,a=t.lastInterval||e,l=e.timeStamp-a.timeStamp;if(e.eventType!=Lt&&(l>kt||a.velocity===s)){var c=e.deltaX-a.deltaX,u=e.deltaY-a.deltaY,d=I(l,c,u);i=d.x,r=d.y,n=yt(d.x)>yt(d.y)?d.x:d.y,o=j(c,u),t.lastInterval=e}else n=a.velocity,i=a.velocityX,r=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}function D(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:bt(t.pointers[n].clientX),clientY:bt(t.pointers[n].clientY)},n++;return{timeStamp:_t(),pointers:e,center:R(e),deltaX:t.deltaX,deltaY:t.deltaY}}function R(t){var e=t.length;if(1===e)return{x:bt(t[0].clientX),y:bt(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:bt(n/e),y:bt(i/e)}}function I(t,e,n){return{x:e/t||0,y:n/t||0}}function j(t,e){return t===e?Dt:yt(t)>=yt(e)?t<0?Rt:It:e<0?jt:Nt}function N(t,e,n){n||(n=$t);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function F(t,e,n){n||(n=$t);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}function z(t,e){return F(e[1],e[0],Ut)+F(t[1],t[0],Ut)}function B(t,e){return N(e[0],e[1],Ut)/N(t[0],t[1],Ut)}function $(){this.evEl=Vt,this.evWin=Yt,this.pressed=!1,O.apply(this,arguments)}function U(){this.evEl=Gt,this.evWin=Xt,O.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function H(){this.evTarget=Zt,this.evWin=Jt,this.started=!1,O.apply(this,arguments)}function V(t,e){var n=x(t.touches),i=x(t.changedTouches);return e&(Mt|Lt)&&(n=C(n.concat(i),"identifier",!0)),[n,i]}function Y(){this.evTarget=te,this.targetIds={},O.apply(this,arguments)}function q(t,e){var n=x(t.touches),i=this.targetIds;if(e&(At|Pt)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,a=x(t.changedTouches),s=[],l=this.target;if(o=n.filter((function(t){return b(t.target,l)})),e===At)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;for(r=0;r<a.length;)i[a[r].identifier]&&s.push(a[r]),e&(Mt|Lt)&&delete i[a[r].identifier],r++;return s.length?[C(o.concat(s),"identifier",!0),s]:void 0}function W(){O.apply(this,arguments);var t=p(this.handler,this);this.touch=new Y(this.manager,t),this.mouse=new $(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function G(t,e){t&At?(this.primaryTouch=e.changedPointers[0].identifier,X.call(this,e)):t&(Mt|Lt)&&X.call(this,e)}function X(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches,r=function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)};setTimeout(r,ee)}}function K(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(e-r.x),a=Math.abs(n-r.y);if(o<=ne&&a<=ne)return!0}return!1}function Z(t,e){this.manager=t,this.set(e)}function J(t){if(y(t,se))return se;var e=y(t,le),n=y(t,ce);return e&&n?se:e||n?e?le:ce:y(t,ae)?ae:oe}function Q(t){this.options=ft({},this.defaults,t||{}),this.id=E(),this.manager=null,this.options.enable=m(this.options.enable,!0),this.state=de,this.simultaneous={},this.requireFail=[]}function tt(t){return t&ve?"cancel":t&fe?"end":t&pe?"move":t&he?"start":""}function et(t){return t==Nt?"down":t==jt?"up":t==Rt?"left":t==It?"right":""}function nt(t,e){var n=e.manager;return n?n.get(t):t}function it(){Q.apply(this,arguments)}function rt(){it.apply(this,arguments),this.pX=null,this.pY=null}function ot(){it.apply(this,arguments)}function at(){Q.apply(this,arguments),this._timer=null,this._input=null}function st(){it.apply(this,arguments)}function lt(){it.apply(this,arguments)}function ct(){Q.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ut(t,e){return(e=e||{}).recognizers=m(e.recognizers,ut.defaults.preset),new dt(t,e)}function dt(t,e){this.options=ft({},ut.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=k(this),this.touchAction=new Z(this,this.options.touchAction),ht(this,!0),u(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function ht(t,e){var n,i=t.element;i.style&&(u(t.options.cssProps,(function(r,o){n=S(i.style,o),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}function pt(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var ft,mt=["","webkit","Moz","MS","ms","o"],vt=o.createElement("div"),gt="function",bt=Math.round,yt=Math.abs,_t=Date.now;ft="function"!=typeof Object.assign?function(t){if(t===s||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==s&&null!==i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var wt=d((function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&t[i[r]]===s)&&(t[i[r]]=e[i[r]]),r++;return t}),"extend","Use `assign`."),xt=d((function(t,e){return wt(t,e,!0)}),"merge","Use `assign`."),Ct=1,St=/mobile|tablet|ip(ad|hone|od)|android/i,Et="ontouchstart"in r,Tt=S(r,"PointerEvent")!==s,Ot=Et&&St.test(navigator.userAgent),kt=25,At=1,Pt=2,Mt=4,Lt=8,Dt=1,Rt=2,It=4,jt=8,Nt=16,Ft=Rt|It,zt=jt|Nt,Bt=Ft|zt,$t=["x","y"],Ut=["clientX","clientY"];O.prototype={handler:function(){},init:function(){this.evEl&&v(this.element,this.evEl,this.domHandler),this.evTarget&&v(this.target,this.evTarget,this.domHandler),this.evWin&&v(T(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&g(this.element,this.evEl,this.domHandler),this.evTarget&&g(this.target,this.evTarget,this.domHandler),this.evWin&&g(T(this.element),this.evWin,this.domHandler)}};var Ht={mousedown:At,mousemove:Pt,mouseup:Mt},Vt="mousedown",Yt="mousemove mouseup";h($,O,{handler:function(t){var e=Ht[t.type];e&At&&0===t.button&&(this.pressed=!0),e&Pt&&1!==t.which&&(e=Mt),this.pressed&&(e&Mt&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var qt={pointerdown:At,pointermove:Pt,pointerup:Mt,pointercancel:Lt,pointerout:Lt},Wt={2:"touch",3:"pen",4:"mouse",5:"kinect"},Gt="pointerdown",Xt="pointermove pointerup pointercancel";r.MSPointerEvent&&!r.PointerEvent&&(Gt="MSPointerDown",Xt="MSPointerMove MSPointerUp MSPointerCancel"),h(U,O,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=qt[i],o=Wt[t.pointerType]||t.pointerType,a="touch"==o,s=w(e,t.pointerId,"pointerId");r&At&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):r&(Mt|Lt)&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var Kt={touchstart:At,touchmove:Pt,touchend:Mt,touchcancel:Lt},Zt="touchstart",Jt="touchstart touchmove touchend touchcancel";h(H,O,{handler:function(t){var e=Kt[t.type];if(e===At&&(this.started=!0),this.started){var n=V.call(this,t,e);e&(Mt|Lt)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var Qt={touchstart:At,touchmove:Pt,touchend:Mt,touchcancel:Lt},te="touchstart touchmove touchend touchcancel";h(Y,O,{handler:function(t){var e=Qt[t.type],n=q.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}});var ee=2500,ne=25;h(W,O,{handler:function(t,e,n){var i="touch"==n.pointerType,r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)G.call(this,e,n);else if(r&&K.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ie=S(vt.style,"touchAction"),re=ie!==s,oe="auto",ae="manipulation",se="none",le="pan-x",ce="pan-y",ue=function(){if(!re)return!1;var t={},e=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=!e||r.CSS.supports("touch-action",n)})),t}();Z.prototype={set:function(t){"compute"==t&&(t=this.compute()),re&&this.manager.element.style&&ue[t]&&(this.manager.element.style[ie]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return u(this.manager.recognizers,(function(e){f(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),J(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(!this.manager.session.prevented){var i=this.actions,r=y(i,se)&&!ue[se],o=y(i,ce)&&!ue[ce],a=y(i,le)&&!ue[le];if(r){var s=1===t.pointers.length,l=t.distance<2,c=t.deltaTime<250;if(s&&l&&c)return}return a&&o?void 0:r||o&&n&Ft||a&&n&zt?this.preventSrc(e):void 0}e.preventDefault()},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var de=1,he=2,pe=4,fe=8,me=fe,ve=16;Q.prototype={defaults:{},set:function(t){return ft(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(c(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=nt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return c(t,"dropRecognizeWith",this)||(t=nt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(c(t,"requireFailure",this))return this;var e=this.requireFail;return-1===w(e,t=nt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(c(t,"dropRequireFailure",this))return this;t=nt(t,this);var e=w(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){n.manager.emit(e,t)}var n=this,i=this.state;i<fe&&e(n.options.event+tt(i)),e(n.options.event),t.additionalEvent&&e(t.additionalEvent),i>=fe&&e(n.options.event+tt(i))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|de)))return!1;t++}return!0},recognize:function(t){var e=ft({},t);if(!f(this.options.enable,[this,e]))return this.reset(),void(this.state=32);this.state&(me|ve|32)&&(this.state=de),this.state=this.process(e),this.state&(he|pe|fe|ve)&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},h(it,Q,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=e&(he|pe),r=this.attrTest(t);return i&&(n&Lt||!r)?e|ve:i||r?n&Mt?e|fe:e&he?e|pe:he:32}}),h(rt,it,{defaults:{event:"pan",threshold:10,pointers:1,direction:Bt},getTouchAction:function(){var t=this.options.direction,e=[];return t&Ft&&e.push(ce),t&zt&&e.push(le),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,o=t.deltaX,a=t.deltaY;return r&e.direction||(e.direction&Ft?(r=0===o?Dt:o<0?Rt:It,n=o!=this.pX,i=Math.abs(t.deltaX)):(r=0===a?Dt:a<0?jt:Nt,n=a!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return it.prototype.attrTest.call(this,t)&&(this.state&he||!(this.state&he)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=et(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),h(ot,it,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[se]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&he)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),h(at,Q,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[oe]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||t.eventType&(Mt|Lt)&&!r)this.reset();else if(t.eventType&At)this.reset(),this._timer=l((function(){this.state=me,this.tryEmit()}),e.time,this);else if(t.eventType&Mt)return me;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===me&&(t&&t.eventType&Mt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=_t(),this.manager.emit(this.options.event,this._input)))}}),h(st,it,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[se]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&he)}}),h(lt,it,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Ft|zt,pointers:1},getTouchAction:function(){return rt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Ft|zt)?e=t.overallVelocity:n&Ft?e=t.overallVelocityX:n&zt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&yt(e)>this.options.velocity&&t.eventType&Mt},emit:function(t){var e=et(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),h(ct,Q,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ae]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&At&&0===this.count)return this.failTimeout();if(i&&r&&n){if(t.eventType!=Mt)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||N(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=l((function(){this.state=me,this.tryEmit()}),e.interval,this),he):me}return 32},failTimeout:function(){return this._timer=l((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==me&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ut.VERSION="2.0.7",ut.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[st,{enable:!1}],[ot,{enable:!1},["rotate"]],[lt,{direction:Ft}],[rt,{direction:Ft},["swipe"]],[ct],[ct,{event:"doubletap",taps:2},["tap"]],[at]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},dt.prototype={set:function(t){return ft(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var n,i=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&me)&&(r=e.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&n.state&(he|pe|fe)&&(r=e.curRecognizer=n),o++}},get:function(t){if(t instanceof Q)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(c(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(c(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=w(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==s&&e!==s){var n=this.handlers;return u(_(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(t!==s){var n=this.handlers;return u(_(t),(function(t){e?n[t]&&n[t].splice(w(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&pt(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},destroy:function(){this.element&&ht(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},ft(ut,{INPUT_START:At,INPUT_MOVE:Pt,INPUT_END:Mt,INPUT_CANCEL:Lt,STATE_POSSIBLE:de,STATE_BEGAN:he,STATE_CHANGED:pe,STATE_ENDED:fe,STATE_RECOGNIZED:me,STATE_CANCELLED:ve,STATE_FAILED:32,DIRECTION_NONE:Dt,DIRECTION_LEFT:Rt,DIRECTION_RIGHT:It,DIRECTION_UP:jt,DIRECTION_DOWN:Nt,DIRECTION_HORIZONTAL:Ft,DIRECTION_VERTICAL:zt,DIRECTION_ALL:Bt,Manager:dt,Input:O,TouchAction:Z,TouchInput:Y,MouseInput:$,PointerEventInput:U,TouchMouseInput:W,SingleTouchInput:H,Recognizer:Q,AttrRecognizer:it,Tap:ct,Pan:rt,Swipe:lt,Pinch:ot,Rotate:st,Press:at,on:v,off:g,each:u,merge:xt,extend:wt,assign:ft,inherit:h,bindFn:p,prefixed:S}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=ut,(i=function(){return ut}.call(e,n,e,t))!==s&&(t.exports=i)}(window,document)},function(t,e){t.exports=function(t,e,n){for(var i=(2<<Math.log(e.length-1)/Math.LN2)-1,r=-~(1.6*i*n/e.length),o="";;)for(var a=t(r),s=r;s--;)if((o+=e[a[s]&i]||"").length===+n)return o}},function(t,e,n){"use strict";function i(t){var e="",n=Math.floor(.001*(Date.now()-s));return n===o?r++:(r=0,o=n),e+=a(l),e+=a(t),r>0&&(e+=a(r)),e+a(n)}var r,o,a=n(15),s=(n(0),1567752802062),l=7;t.exports=i},function(t,e,n){"use strict";function i(t){for(var e,n=0,i="";!e;)i+=a(o,r.get(),1),e=t<Math.pow(16,n+1),n++;return i}var r=n(0),o=n(18),a=n(13);t.exports=i},function(t,e,n){"use strict";function i(e){return s.seed(e),t.exports}function r(e){return u=e,t.exports}function o(t){return void 0!==t&&s.characters(t),s.shuffled()}function a(){return l(u)}var s=n(0),l=n(14),c=n(17),u=n(20)||0;t.exports=a,t.exports.generate=a,t.exports.seed=i,t.exports.worker=r,t.exports.characters=o,t.exports.isValid=c},function(t,e,n){"use strict";function i(t){return!(!t||"string"!=typeof t||t.length<6||new RegExp("[^"+r.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(t))}var r=n(0);t.exports=i},function(t,e,n){"use strict";var i,r="object"==typeof window&&(window.crypto||window.msCrypto);i=r&&r.getRandomValues?function(t){return r.getRandomValues(new Uint8Array(t))}:function(t){for(var e=[],n=0;n<t;n++)e.push(Math.floor(256*Math.random()));return e},t.exports=i},function(t,e,n){"use strict";function i(){return(o=(9301*o+49297)%233280)/233280}function r(t){o=t}var o=1;t.exports={nextValue:i,seed:r}},function(t,e,n){"use strict";t.exports=0},function(t,e){t.exports=function(t,e,n,i){var r,o=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(r=t,o=t.default);var s="function"==typeof o?o.options:o;if(e&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns),n&&(s._scopeId=n),i){var l=Object.create(s.computed||null);Object.keys(i).forEach((function(t){var e=i[t];l[t]=function(){return e}})),s.computed=l}return{esModule:r,exports:o,options:s}}},function(t,e,n){var i=n(9);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),n(23)("df0682cc",i,!0,{})},function(t,e,n){function i(t){for(var e=0;e<t.length;e++){var n=t[e],i=u[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(o(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var a=[];for(r=0;r<n.parts.length;r++)a.push(o(n.parts[r]));u[n.id]={id:n.id,refs:1,parts:a}}}}function r(){var t=document.createElement("style");return t.type="text/css",d.appendChild(t),t}function o(t){var e,n,i=document.querySelector("style["+g+'~="'+t.id+'"]');if(i){if(f)return m;i.parentNode.removeChild(i)}if(b){var o=p++;i=h||(h=r()),e=a.bind(null,i,o,!1),n=a.bind(null,i,o,!0)}else i=r(),e=s.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}function a(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=y(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function s(t,e){var n=e.css,i=e.media,r=e.sourceMap;if(i&&t.setAttribute("media",i),v.ssrId&&t.setAttribute(g,e.id),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c=n(24),u={},d=l&&(document.head||document.getElementsByTagName("head")[0]),h=null,p=0,f=!1,m=function(){},v=null,g="data-vue-ssr-id",b="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,n,r){f=n,v=r||{};var o=c(t,e);return i(o),function(e){for(var n=[],r=0;r<o.length;r++){var a=o[r];(s=u[a.id]).refs--,n.push(s)}for(e?i(o=c(t,e)):o=[],r=0;r<n.length;r++){var s;if(0===(s=n[r]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete u[s.id]}}}};var y=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t,e){for(var n=[],i={},r=0;r<e.length;r++){var o=e[r],a=o[0],s={id:t+":"+r,css:o[1],media:o[2],sourceMap:o[3]};i[a]?i[a].parts.push(s):n.push(i[a]={id:a,parts:[s]})}return n}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n}])},8568:function(t){t.exports=function(){"use strict";var t=function(t){var e=new XMLHttpRequest;return e.open(t.method||"GET",t.url),e.responseType="json",t.headers&&Object.keys(t.headers).forEach((function(n){e.setRequestHeader(n,t.headers[n])})),e},e=function(t,e){return new Promise((function(n,i){t.onload=function(){if(t.status>=200&&t.status<300){var e;try{e=JSON.parse(t.response)}catch(n){e=t.response}n(e)}else i(t.response)},t.onerror=function(){return i(t.response)},t.send(JSON.stringify(e))}))},n=function(t,e){var n=new FormData;for(var i in e)n.append(i,e[i]);return new Promise((function(e,i){t.onload=function(){if(t.status>=200&&t.status<300){var n;try{n=JSON.parse(t.response)}catch(e){n=t.response}e(n)}else i(t.response)},t.onerror=function(){return i(t.response)},t.send(n)}))};function i(n){var i=t(n);return e(i,n.body)}var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(t,n){o(this,e),this.file=t,this.options=n,this.chunks=[],this.sessionId=null,this.chunkSize=null,this.speedInterval=null}return r(e,[{key:"createChunks",value:function(){this.chunks=[];for(var t=0,e=this.chunkSize;t<this.fileSize;)this.chunks.push({blob:this.file.file.slice(t,e),startOffset:t,active:!1,retries:this.maxRetries}),e=(t=e)+this.chunkSize}},{key:"updateFileProgress",value:function(){this.file.progress=this.progress}},{key:"pause",value:function(){this.file.active=!1,this.stopChunks()}},{key:"stopChunks",value:function(){this.chunksUploading.forEach((function(t){t.xhr.abort(),t.active=!1})),this.stopSpeedCalc()}},{key:"resume",value:function(){this.file.active=!0,this.startChunking()}},{key:"upload",value:function(){var t=this;return this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n})),this.start(),this.promise}},{key:"start",value:function(){var t=this;i({method:"POST",headers:Object.assign({},this.headers,{"Content-Type":"application/json"}),url:this.action,body:Object.assign(this.startBody,{phase:"start",mime_type:this.fileType,size:this.fileSize,name:this.fileName})}).then((function(e){if("success"!==e.status)return t.file.response=e,t.reject("server");t.sessionId=e.data.session_id,t.chunkSize=e.data.end_offset,t.createChunks(),t.startChunking()})).catch((function(e){t.file.response=e,t.reject("server")}))}},{key:"startChunking",value:function(){for(var t=0;t<this.maxActiveChunks;t++)this.uploadNextChunk();this.startSpeedCalc()}},{key:"uploadNextChunk",value:function(){if(this.file.active){if(this.hasChunksToUpload)return this.uploadChunk(this.chunksToUpload[0]);if(0===this.chunksUploading.length)return this.finish()}}},{key:"uploadChunk",value:function(e){var i=this;e.progress=0,e.active=!0,this.updateFileProgress(),e.xhr=t({method:"POST",headers:this.headers,url:this.action}),e.xhr.upload.addEventListener("progress",(function(t){t.lengthComputable&&(e.progress=Math.round(t.loaded/t.total*100))}),!1),n(e.xhr,Object.assign(this.uploadBody,{phase:"upload",session_id:this.sessionId,start_offset:e.startOffset,chunk:e.blob})).then((function(t){if(e.active=!1,"success"===t.status)e.uploaded=!0;else if(e.retries--<=0)return i.stopChunks(),i.reject("upload");i.uploadNextChunk()})).catch((function(){if(e.active=!1,e.retries--<=0)return i.stopChunks(),i.reject("upload");i.uploadNextChunk()}))}},{key:"finish",value:function(){var t=this;this.updateFileProgress(),this.stopSpeedCalc(),i({method:"POST",headers:Object.assign({},this.headers,{"Content-Type":"application/json"}),url:this.action,body:Object.assign(this.finishBody,{phase:"finish",session_id:this.sessionId})}).then((function(e){if(t.file.response=e,"success"!==e.status)return t.reject("server");t.resolve(e)})).catch((function(e){t.file.response=e,t.reject("server")}))}},{key:"startSpeedCalc",value:function(){var t=this;this.file.speed=0;var e=0;this.speedInterval||(this.speedInterval=window.setInterval((function(){var n=t.progress/100*t.fileSize;t.file.speed=n-e,e=n}),1e3))}},{key:"stopSpeedCalc",value:function(){this.speedInterval&&window.clearInterval(this.speedInterval),this.speedInterval=null,this.file.speed=0}},{key:"maxRetries",get:function(){return parseInt(this.options.maxRetries,10)}},{key:"maxActiveChunks",get:function(){return parseInt(this.options.maxActive,10)}},{key:"fileType",get:function(){return this.file.type}},{key:"fileSize",get:function(){return this.file.size}},{key:"fileName",get:function(){return this.file.name}},{key:"action",get:function(){return this.options.action||null}},{key:"startBody",get:function(){return this.options.startBody||{}}},{key:"uploadBody",get:function(){return this.options.uploadBody||{}}},{key:"finishBody",get:function(){return this.options.finishBody||{}}},{key:"headers",get:function(){return this.options.headers||{}}},{key:"readyToUpload",get:function(){return!!this.chunks}},{key:"progress",get:function(){var t=this,e=this.chunksUploaded.length/this.chunks.length*100,n=this.chunksUploading.reduce((function(e,n){return e+(0|n.progress)/t.chunks.length}),0);return Math.min(e+n,100)}},{key:"chunksToUpload",get:function(){return this.chunks.filter((function(t){return!t.active&&!t.uploaded}))}},{key:"hasChunksToUpload",get:function(){return this.chunksToUpload.length>0}},{key:"chunksUploading",get:function(){return this.chunks.filter((function(t){return!!t.xhr&&!!t.active}))}},{key:"chunksUploaded",get:function(){return this.chunks.filter((function(t){return!!t.uploaded}))}}]),e}();function s(t,e,n,i,r,o,a,s,l,c){"boolean"!=typeof a&&(l=s,s=a,a=!1);var u,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=u):e&&(u=a?function(){e.call(this,c(this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),u)if(d.functional){var h=d.render;d.render=function(t,e){return u.call(e),h(t,e)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,u):[u]}return n}var l=s,c=void 0,u=void 0,d=void 0,h=l({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("input",{attrs:{type:"file",name:t.$parent.name,id:t.$parent.inputId||t.$parent.name,accept:t.$parent.accept,capture:t.$parent.capture,disabled:t.$parent.disabled,webkitdirectory:t.$parent.directory&&t.$parent.features.directory,directory:t.$parent.directory&&t.$parent.features.directory,multiple:t.$parent.multiple&&t.$parent.features.html5},on:{change:t.change}})},staticRenderFns:[]},c,{methods:{change:function(t){this.$parent.addInputFile(t.target),t.target.files?(t.target.value="",t.target.files.length&&!/safari/i.test(navigator.userAgent)&&(t.target.type="",t.target.type="file")):(this.$destroy(),new this.constructor({parent:this.$parent,el:this.$el}))}}},u,!1,d,void 0,void 0),p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},f="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};function m(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var v={headers:{},action:"",minSize:1048576,maxActive:3,maxRetries:5,handler:a},g={components:{InputFile:h},props:{inputId:{type:String},name:{type:String,default:"file"},accept:{type:String},capture:{},disabled:{},multiple:{type:Boolean},maximum:{type:Number,default:function(){return this.multiple?0:1}},addIndex:{type:[Boolean,Number]},directory:{type:Boolean},postAction:{type:String},putAction:{type:String},customAction:{type:Function},headers:{type:Object,default:Object},data:{type:Object,default:Object},timeout:{type:Number,default:0},drop:{default:!1},dropDirectory:{type:Boolean,default:!0},size:{type:Number,default:0},extensions:{default:Array},value:{type:Array,default:Array},thread:{type:Number,default:1},chunkEnabled:{type:Boolean,default:!1},chunk:{type:Object,default:function(){return v}}},data:function(){return{files:this.value,features:{html5:!0,directory:!1,drop:!1},active:!1,dropActive:!1,uploading:0,destroy:!1}},mounted:function(){var t=document.createElement("input");if(t.type="file",t.multiple=!0,window.FormData&&t.files?("boolean"!=typeof t.webkitdirectory&&"boolean"!=typeof t.directory||(this.features.directory=!0),this.features.html5&&void 0!==t.ondrop&&(this.features.drop=!0)):this.features.html5=!1,this.maps={},this.files)for(var e=0;e<this.files.length;e++){var n=this.files[e];this.maps[n.id]=n}this.$nextTick((function(){var t=this;this.$parent?(this.$parent.$forceUpdate(),this.$parent.$nextTick((function(){t.watchDrop(t.drop)}))):this.watchDrop(this.drop)}))},beforeDestroy:function(){this.destroy=!0,this.active=!1,this.watchDrop(!1)},computed:{uploaded:function(){for(var t=void 0,e=0;e<this.files.length;e++)if((t=this.files[e]).fileObject&&!t.error&&!t.success)return!1;return!0},chunkOptions:function(){return Object.assign(v,this.chunk)},className:function(){return["file-uploads",this.features.html5?"file-uploads-html5":"file-uploads-html4",this.features.directory&&this.directory?"file-uploads-directory":void 0,this.features.drop&&this.drop?"file-uploads-drop":void 0,this.disabled?"file-uploads-disabled":void 0]}},watch:{active:function(t){this.watchActive(t)},dropActive:function(){this.$parent&&this.$parent.$forceUpdate()},drop:function(t){this.watchDrop(t)},value:function(t){if(this.files!==t){this.files=t;var e=this.maps;this.maps={};for(var n=0;n<this.files.length;n++){var i=this.files[n];this.maps[i.id]=i}for(var r in this.maps){var o=this.maps[r],a=e[r];o!==a&&this.emitFile(o,a)}for(var s in e)this.maps[s]||this.emitFile(void 0,e[s])}}},methods:{clear:function(){if(this.files.length){var t=this.files;this.files=[],this.maps={},this.emitInput();for(var e=0;e<t.length;e++)this.emitFile(void 0,t[e])}return!0},get:function(t){return!!t&&("object"===(void 0===t?"undefined":f(t))?this.maps[t.id]||!1:this.maps[t]||!1)},add:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.addIndex,n=t,i=n instanceof Array;i||(n=[n]);for(var r=[],o=0;o<n.length;o++){var a=n[o];this.features.html5&&a instanceof Blob&&(a={file:a,size:a.size,name:a.webkitRelativePath||a.relativePath||a.name||"unknown",type:a.type});var s=!1;if(!1===a.fileObject||(a.fileObject||"undefined"!=typeof Element&&a.el instanceof Element||"undefined"!=typeof Blob&&a.file instanceof Blob)&&(s=!0),s&&((a=p({fileObject:!0,size:-1,name:"Filename",type:"",active:!1,error:"",success:!1,putAction:this.putAction,postAction:this.postAction,timeout:this.timeout},a,{response:{},progress:"0.00",speed:0})).data=p({},this.data,a.data?a.data:{}),a.headers=p({},this.headers,a.headers?a.headers:{})),a.id||(a.id=Math.random().toString(36).substr(2)),!this.emitFilter(a,void 0)){if(this.maximum>1&&r.length+this.files.length>=this.maximum)break;if(r.push(a),1===this.maximum)break}}if(!r.length)return!1;1===this.maximum&&this.clear();var l=void 0;if(!0===e||0===e)l=r.concat(this.files);else if(e){var c;(c=l=this.files.concat([])).splice.apply(c,[e,0].concat(r))}else l=this.files.concat(r);this.files=l;for(var u=0;u<r.length;u++){var d=r[u];this.maps[d.id]=d}this.emitInput();for(var h=0;h<r.length;h++)this.emitFile(r[h],void 0);return i?r:r[0]},addInputFile:function(t){var e=[];if(t.files)for(var n=0;n<t.files.length;n++){var i=t.files[n];e.push({size:i.size,name:i.webkitRelativePath||i.relativePath||i.name,type:i.type,file:i})}else{var r=t.value.replace(/\\/g,"/").split("/");delete t.__vuex__,e.push({name:r[r.length-1],el:t})}return this.add(e)},addDataTransfer:function(t){var e=this,n=[];if(t.items&&t.items.length){for(var i=[],r=0;r<t.items.length;r++){var o=t.items[r];(o=o.getAsEntry?o.getAsEntry()||o.getAsFile():o.webkitGetAsEntry&&o.webkitGetAsEntry()||o.getAsFile())&&i.push(o)}return new Promise((function(t,r){var o=function r(o){var a=i[o];if(!a||e.maximum>0&&n.length>=e.maximum)return t(e.add(n));e.getEntry(a).then((function(t){n.push.apply(n,m(t)),r(o+1)}))};o(0)}))}if(t.files.length){for(var a=0;a<t.files.length&&(n.push(t.files[a]),!(this.maximum>0&&n.length>=this.maximum));a++);return Promise.resolve(this.add(n))}return Promise.resolve([])},getEntry:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new Promise((function(i,r){if(t.isFile)t.file((function(t){i([{size:t.size,name:n+t.name,type:t.type,file:t}])}));else if(t.isDirectory&&e.dropDirectory){var o=[],a=t.createReader();!function r(){a.readEntries((function(a){!function s(l){return!a[l]&&0===l||e.maximum>0&&o.length>=e.maximum?i(o):a[l]?void e.getEntry(a[l],n+t.name+"/").then((function(t){o.push.apply(o,m(t)),s(l+1)})):r()}(0)}))}()}else i([])}))},replace:function(t,e){var n=this.get(t),i=this.get(e);if(!n||!i||n===i)return!1;var r=this.files.concat([]),o=r.indexOf(n),a=r.indexOf(i);return-1!==o&&-1!==a&&(r[o]=i,r[a]=n,this.files=r,this.emitInput(),!0)},remove:function(t){var e=this.get(t);if(e){if(this.emitFilter(void 0,e))return!1;var n=this.files.concat([]),i=n.indexOf(e);if(-1===i)return console.error("remove",e),!1;n.splice(i,1),this.files=n,delete this.maps[e.id],this.emitInput(),this.emitFile(void 0,e)}return e},update:function(t,e){var n=this.get(t);if(n){var i=p({},n,e);if(!n.fileObject||!n.active||i.active||i.error||i.success||(i.error="abort"),this.emitFilter(i,n))return!1;var r=this.files.concat([]),o=r.indexOf(n);return-1===o?(console.error("update",n),!1):(r.splice(o,1,i),this.files=r,delete this.maps[n.id],this.maps[i.id]=i,this.emitInput(),this.emitFile(i,n),i)}return!1},emitFilter:function(t,e){var n=!1;return this.$emit("input-filter",t,e,(function(){return n=!0})),n},emitFile:function(t,e){this.$emit("input-file",t,e),!(t&&t.fileObject&&t.active)||e&&e.active?t&&t.fileObject&&t.active||!e||!e.fileObject||!e.active||this.uploading--:(this.uploading++,this.$nextTick((function(){var e=this;setTimeout((function(){e.upload(t).then((function(){(t=e.get(t))&&t.fileObject&&e.update(t,{active:!1,success:!t.error})})).catch((function(n){e.update(t,{active:!1,success:!1,error:n.code||n.error||n.message||n})}))}),parseInt(50*Math.random()+50,10))}))),!this.active||Boolean(t)===Boolean(e)&&t.active===e.active||this.watchActive(!0)},emitInput:function(){this.$emit("input",this.files)},upload:function(t){var e=this.get(t);if(!e)return Promise.reject("not_exists");if(!e.fileObject)return Promise.reject("file_object");if(e.error)return Promise.reject(e.error);if(e.success)return Promise.resolve(e);var n=this.extensions;if(n&&(n.length||void 0===n.length)&&("object"===(void 0===n?"undefined":f(n))&&n instanceof RegExp||("string"==typeof n&&(n=n.split(",").map((function(t){return t.trim()})).filter((function(t){return t}))),n=new RegExp("\\.("+n.join("|").replace(/\./g,"\\.")+")$","i")),-1===e.name.search(n)))return Promise.reject("extension");if(this.size>0&&e.size>=0&&e.size>this.size)return Promise.reject("size");if(this.customAction)return this.customAction(e,this);if(this.features.html5){if(this.shouldUseChunkUpload(e))return this.uploadChunk(e);if(e.putAction)return this.uploadPut(e);if(e.postAction)return this.uploadHtml5(e)}return e.postAction?this.uploadHtml4(e):Promise.reject("No action configured")},shouldUseChunkUpload:function(t){return this.chunkEnabled&&!!this.chunkOptions.handler&&t.size>this.chunkOptions.minSize},uploadChunk:function(t){var e=this.chunkOptions.handler;return t.chunk=new e(t,this.chunkOptions),t.chunk.upload()},uploadPut:function(t){var e=[],n=void 0;for(var i in t.data)null!=(n=t.data[i])&&e.push(encodeURIComponent(i)+"="+encodeURIComponent(n));var r=e.length?(-1===t.putAction.indexOf("?")?"?":"&")+e.join("&"):"",o=new XMLHttpRequest;return o.open("PUT",t.putAction+r),this.uploadXhr(o,t,t.file)},uploadHtml5:function(t){var e=new window.FormData,n=void 0;for(var i in t.data)(n=t.data[i])&&"object"===(void 0===n?"undefined":f(n))&&"function"!=typeof n.toString?n instanceof File?e.append(i,n,n.name):e.append(i,JSON.stringify(n)):null!=n&&e.append(i,n);e.append(this.name,t.file,t.file.filename||t.name);var r=new XMLHttpRequest;return r.open("POST",t.postAction),this.uploadXhr(r,t,e)},uploadXhr:function(t,e,n){var i=this,r=e,o=0,a=0;t.upload.onprogress=function(t){if(r=i.get(r),t.lengthComputable&&r&&r.fileObject&&r.active){var e=Math.round(Date.now()/1e3);e!==o&&(o=e,r=i.update(r,{progress:(t.loaded/t.total*100).toFixed(2),speed:t.loaded-a}),a=t.loaded)}};var s=setInterval((function(){if(!(r=i.get(r))||!r.fileObject||r.success||r.error||!r.active){s&&(clearInterval(s),s=!1);try{t.abort(),t.timeout=1}catch(t){}}}),100);return new Promise((function(e,o){var a=void 0,l=function(n){if(!a){if(a=!0,s&&(clearInterval(s),s=!1),!(r=i.get(r)))return o("not_exists");if(!r.fileObject)return o("file_object");if(r.error)return o(r.error);if(!r.active)return o("abort");if(r.success)return e(r);var l={};switch(n.type){case"timeout":case"abort":l.error=n.type;break;case"error":t.status?t.status>=500?l.error="server":t.status>=400&&(l.error="denied"):l.error="network";break;default:t.status>=500?l.error="server":t.status>=400?l.error="denied":l.progress="100.00"}if(t.responseText){var c=t.getResponseHeader("Content-Type");c&&-1!==c.indexOf("/json")?l.response=JSON.parse(t.responseText):l.response=t.responseText}return(r=i.update(r,l)).error?o(r.error):e(r)}};for(var c in t.onload=l,t.onerror=l,t.onabort=l,t.ontimeout=l,r.timeout&&(t.timeout=r.timeout),r.headers)t.setRequestHeader(c,r.headers[c]);r=i.update(r,{xhr:t}),t.send(n)}))},uploadHtml4:function(t){var e=this,n=t,i=function(t){27===t.keyCode&&t.preventDefault()},r=document.createElement("iframe");r.id="upload-iframe-"+n.id,r.name="upload-iframe-"+n.id,r.src="about:blank",r.setAttribute("style","width:1px;height:1px;top:-999em;position:absolute; margin-top:-999em;");var o=document.createElement("form");o.action=n.postAction,o.name="upload-form-"+n.id,o.setAttribute("method","POST"),o.setAttribute("target","upload-iframe-"+n.id),o.setAttribute("enctype","multipart/form-data");var a=void 0,s=void 0;for(var l in n.data)(a=n.data[l])&&"object"===(void 0===a?"undefined":f(a))&&"function"!=typeof a.toString&&(a=JSON.stringify(a)),null!=a&&((s=document.createElement("input")).type="hidden",s.name=l,s.value=a,o.appendChild(s));o.appendChild(n.el),document.body.appendChild(r).appendChild(o);var c=function(){var t=void 0;try{r.contentWindow&&(t=r.contentWindow.document)}catch(t){}if(!t)try{t=r.contentDocument?r.contentDocument:r.document}catch(e){t=r.document}return t&&t.body?t.body.innerHTML:null};return new Promise((function(t,a){setTimeout((function(){if(!(n=e.update(n,{iframe:r})))return a("not_exists");var s=setInterval((function(){(n=e.get(n))&&n.fileObject&&!n.success&&!n.error&&n.active||(s&&(clearInterval(s),s=!1),r.onabort({type:n?"abort":"not_exists"}))}),100),l=void 0,u=function(r){if(!l){if(l=!0,s&&(clearInterval(s),s=!1),document.body.removeEventListener("keydown",i),!(n=e.get(n)))return a("not_exists");if(!n.fileObject)return a("file_object");if(n.error)return a(n.error);if(!n.active)return a("abort");if(n.success)return t(n);var o=c(),u={};switch(r.type){case"abort":u.error="abort";break;case"error":n.error?u.error=n.error:u.error=null===o?"network":"denied";break;default:n.error?u.error=n.error:null===u?u.error="network":u.progress="100.00"}if(null!==o){if(o&&"{"===o.substr(0,1)&&"}"===o.substr(o.length-1,1))try{o=JSON.parse(o)}catch(t){}u.response=o}return(n=e.update(n,u)).error?a(n.error):t(n)}};r.onload=u,r.onerror=u,r.onabort=u,document.body.addEventListener("keydown",i),o.submit()}),50)})).then((function(t){return r.parentNode&&r.parentNode.removeChild(r),t})).catch((function(t){return r.parentNode&&r.parentNode.removeChild(r),t}))},watchActive:function(t){for(var e=void 0,n=0;e=this.files[n];)if(n++,e.fileObject)if(t&&!this.destroy){if(this.uploading>=this.thread||this.uploading&&!this.features.html5)break;e.active||e.error||e.success||this.update(e,{active:!0})}else e.active&&this.update(e,{active:!1});0===this.uploading&&(this.active=!1)},watchDrop:function(t){var e=t;if(this.features.drop){if(this.dropElement)try{document.removeEventListener("dragenter",this.onDragenter,!1),document.removeEventListener("dragleave",this.onDragleave,!1),document.removeEventListener("drop",this.onDocumentDrop,!1),this.dropElement.removeEventListener("dragover",this.onDragover,!1),this.dropElement.removeEventListener("drop",this.onDrop,!1)}catch(t){}e?"string"==typeof e?e=document.querySelector(e)||this.$root.$el.querySelector(e):!0===e&&(e=this.$parent.$el):e=!1,this.dropElement=e,this.dropElement&&(document.addEventListener("dragenter",this.onDragenter,!1),document.addEventListener("dragleave",this.onDragleave,!1),document.addEventListener("drop",this.onDocumentDrop,!1),this.dropElement.addEventListener("dragover",this.onDragover,!1),this.dropElement.addEventListener("drop",this.onDrop,!1))}},onDragenter:function(t){if(t.preventDefault(),!this.dropActive&&t.dataTransfer){var e=t.dataTransfer;e.files&&e.files.length?this.dropActive=!0:e.types?(e.types.indexOf&&-1!==e.types.indexOf("Files")||e.types.contains&&e.types.contains("Files"))&&(this.dropActive=!0):this.dropActive=!0}},onDragleave:function(t){t.preventDefault(),this.dropActive&&("HTML"===t.target.nodeName||t.target===t.explicitOriginalTarget||!t.fromElement&&(t.clientX<=0||t.clientY<=0||t.clientX>=window.innerWidth||t.clientY>=window.innerHeight))&&(this.dropActive=!1)},onDragover:function(t){t.preventDefault()},onDocumentDrop:function(){this.dropActive=!1},onDrop:function(t){t.preventDefault(),this.addDataTransfer(t.dataTransfer)}}},b="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function y(t){return function(t,e){return x(t,e)}}var _=document.head||document.getElementsByTagName("head")[0],w={};function x(t,e){var n=b?e.media||"default":t,i=w[n]||(w[n]={ids:new Set,styles:[]});if(!i.ids.has(t)){i.ids.add(t);var r=e.source;if(e.map&&(r+="\n/*# sourceURL="+e.map.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),i.element||(i.element=document.createElement("style"),i.element.type="text/css",e.media&&i.element.setAttribute("media",e.media),_.appendChild(i.element)),"styleSheet"in i.element)i.styles.push(r),i.element.styleSheet.cssText=i.styles.filter(Boolean).join("\n");else{var o=i.ids.size-1,a=document.createTextNode(r),s=i.element.childNodes;s[o]&&i.element.removeChild(s[o]),s.length?i.element.insertBefore(a,s[o]):i.element.appendChild(a)}}}var C=void 0,S=void 0,E=l({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{class:t.className},[t._t("default"),t._v(" "),n("label",{attrs:{for:t.inputId||t.name}}),t._v(" "),n("input-file")],2)},staticRenderFns:[]},(function(t){t&&t("data-v-76d380b6_0",{source:".file-uploads{overflow:hidden;position:relative;text-align:center;display:inline-block}.file-uploads.file-uploads-html4 input,.file-uploads.file-uploads-html5 label{background:#fff;opacity:0;font-size:20em;z-index:1;top:0;left:0;right:0;bottom:0;position:absolute;width:100%;height:100%}.file-uploads.file-uploads-html4 label,.file-uploads.file-uploads-html5 input{background:rgba(255,255,255,0);overflow:hidden;position:fixed;width:1px;height:1px;z-index:-1;opacity:0}",map:void 0,media:void 0})}),g,C,!1,S,y,void 0);function T(t){return t&&t.default||t}return T(Object.freeze({default:E}))}()},2893:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>Os});var i=Object.freeze({});function r(t){return null==t}function o(t){return null!=t}function a(t){return!0===t}function s(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function l(t){return null!==t&&"object"==typeof t}var c=Object.prototype.toString;function u(t){return"[object Object]"===c.call(t)}function d(t){return"[object RegExp]"===c.call(t)}function h(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function f(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function m(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var n=Object.create(null),i=t.split(","),r=0;r<i.length;r++)n[i[r]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}var g=v("slot,component",!0),b=v("key,ref,slot,slot-scope,is");function y(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function w(t,e){return _.call(t,e)}function x(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var C=/-(\w)/g,S=x((function(t){return t.replace(C,(function(t,e){return e?e.toUpperCase():""}))})),E=x((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),T=/\B([A-Z])/g,O=x((function(t){return t.replace(T,"-$1").toLowerCase()}));var k=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function A(t,e){e=e||0;for(var n=t.length-e,i=new Array(n);n--;)i[n]=t[n+e];return i}function P(t,e){for(var n in e)t[n]=e[n];return t}function M(t){for(var e={},n=0;n<t.length;n++)t[n]&&P(e,t[n]);return e}function L(t,e,n){}var D=function(t,e,n){return!1},R=function(t){return t};function I(t,e){if(t===e)return!0;var n=l(t),i=l(e);if(!n||!i)return!n&&!i&&String(t)===String(e);try{var r=Array.isArray(t),o=Array.isArray(e);if(r&&o)return t.length===e.length&&t.every((function(t,n){return I(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(r||o)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every((function(n){return I(t[n],e[n])}))}catch(t){return!1}}function j(t,e){for(var n=0;n<t.length;n++)if(I(t[n],e))return n;return-1}function N(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var F="data-server-rendered",z=["component","directive","filter"],B=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],$={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:D,isReservedAttr:D,isUnknownElement:D,getTagNamespace:L,parsePlatformTagName:R,mustUseProp:D,async:!0,_lifecycleHooks:B},U=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function H(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function V(t,e,n,i){Object.defineProperty(t,e,{value:n,enumerable:!!i,writable:!0,configurable:!0})}var Y=new RegExp("[^"+U.source+".$_\\d]");var q,W="__proto__"in{},G="undefined"!=typeof window,X="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,K=X&&WXEnvironment.platform.toLowerCase(),Z=G&&window.navigator.userAgent.toLowerCase(),J=Z&&/msie|trident/.test(Z),Q=Z&&Z.indexOf("msie 9.0")>0,tt=Z&&Z.indexOf("edge/")>0,et=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===K),nt=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),it={}.watch,rt=!1;if(G)try{var ot={};Object.defineProperty(ot,"passive",{get:function(){rt=!0}}),window.addEventListener("test-passive",null,ot)}catch(t){}var at=function(){return void 0===q&&(q=!G&&!X&&void 0!==n.g&&(n.g.process&&"server"===n.g.process.env.VUE_ENV)),q},st=G&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function lt(t){return"function"==typeof t&&/native code/.test(t.toString())}var ct,ut="undefined"!=typeof Symbol&&lt(Symbol)&&"undefined"!=typeof Reflect&&lt(Reflect.ownKeys);ct="undefined"!=typeof Set&&lt(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var dt=L,ht=0,pt=function(){this.id=ht++,this.subs=[]};pt.prototype.addSub=function(t){this.subs.push(t)},pt.prototype.removeSub=function(t){y(this.subs,t)},pt.prototype.depend=function(){pt.target&&pt.target.addDep(this)},pt.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e<n;e++)t[e].update()},pt.target=null;var ft=[];function mt(t){ft.push(t),pt.target=t}function vt(){ft.pop(),pt.target=ft[ft.length-1]}var gt=function(t,e,n,i,r,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=i,this.elm=r,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},bt={child:{configurable:!0}};bt.child.get=function(){return this.componentInstance},Object.defineProperties(gt.prototype,bt);var yt=function(t){void 0===t&&(t="");var e=new gt;return e.text=t,e.isComment=!0,e};function _t(t){return new gt(void 0,void 0,void 0,String(t))}function wt(t){var e=new gt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var xt=Array.prototype,Ct=Object.create(xt);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(t){var e=xt[t];V(Ct,t,(function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];var r,o=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":r=n;break;case"splice":r=n.slice(2)}return r&&a.observeArray(r),a.dep.notify(),o}))}));var St=Object.getOwnPropertyNames(Ct),Et=!0;function Tt(t){Et=t}var Ot=function(t){this.value=t,this.dep=new pt,this.vmCount=0,V(t,"__ob__",this),Array.isArray(t)?(W?function(t,e){t.__proto__=e}(t,Ct):function(t,e,n){for(var i=0,r=n.length;i<r;i++){var o=n[i];V(t,o,e[o])}}(t,Ct,St),this.observeArray(t)):this.walk(t)};function kt(t,e){var n;if(l(t)&&!(t instanceof gt))return w(t,"__ob__")&&t.__ob__ instanceof Ot?n=t.__ob__:Et&&!at()&&(Array.isArray(t)||u(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new Ot(t)),e&&n&&n.vmCount++,n}function At(t,e,n,i,r){var o=new pt,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var s=a&&a.get,l=a&&a.set;s&&!l||2!==arguments.length||(n=t[e]);var c=!r&&kt(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):n;return pt.target&&(o.depend(),c&&(c.dep.depend(),Array.isArray(e)&&Lt(e))),e},set:function(e){var i=s?s.call(t):n;e===i||e!=e&&i!=i||s&&!l||(l?l.call(t,e):n=e,c=!r&&kt(e),o.notify())}})}}function Pt(t,e,n){if(Array.isArray(t)&&h(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var i=t.__ob__;return t._isVue||i&&i.vmCount?n:i?(At(i.value,e,n),i.dep.notify(),n):(t[e]=n,n)}function Mt(t,e){if(Array.isArray(t)&&h(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||w(t,e)&&(delete t[e],n&&n.dep.notify())}}function Lt(t){for(var e=void 0,n=0,i=t.length;n<i;n++)(e=t[n])&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&Lt(e)}Ot.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)At(t,e[n])},Ot.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)kt(t[e])};var Dt=$.optionMergeStrategies;function Rt(t,e){if(!e)return t;for(var n,i,r,o=ut?Reflect.ownKeys(e):Object.keys(e),a=0;a<o.length;a++)"__ob__"!==(n=o[a])&&(i=t[n],r=e[n],w(t,n)?i!==r&&u(i)&&u(r)&&Rt(i,r):Pt(t,n,r));return t}function It(t,e,n){return n?function(){var i="function"==typeof e?e.call(n,n):e,r="function"==typeof t?t.call(n,n):t;return i?Rt(i,r):r}:e?t?function(){return Rt("function"==typeof e?e.call(this,this):e,"function"==typeof t?t.call(this,this):t)}:e:t}function jt(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(n):n}function Nt(t,e,n,i){var r=Object.create(t||null);return e?P(r,e):r}Dt.data=function(t,e,n){return n?It(t,e,n):e&&"function"!=typeof e?t:It(t,e)},B.forEach((function(t){Dt[t]=jt})),z.forEach((function(t){Dt[t+"s"]=Nt})),Dt.watch=function(t,e,n,i){if(t===it&&(t=void 0),e===it&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var r={};for(var o in P(r,t),e){var a=r[o],s=e[o];a&&!Array.isArray(a)&&(a=[a]),r[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return r},Dt.props=Dt.methods=Dt.inject=Dt.computed=function(t,e,n,i){if(!t)return e;var r=Object.create(null);return P(r,t),e&&P(r,e),r},Dt.provide=It;var Ft=function(t,e){return void 0===e?t:e};function zt(t,e,n){if("function"==typeof e&&(e=e.options),function(t,e){var n=t.props;if(n){var i,r,o={};if(Array.isArray(n))for(i=n.length;i--;)"string"==typeof(r=n[i])&&(o[S(r)]={type:null});else if(u(n))for(var a in n)r=n[a],o[S(a)]=u(r)?r:{type:r};t.props=o}}(e),function(t,e){var n=t.inject;if(n){var i=t.inject={};if(Array.isArray(n))for(var r=0;r<n.length;r++)i[n[r]]={from:n[r]};else if(u(n))for(var o in n){var a=n[o];i[o]=u(a)?P({from:o},a):{from:a}}}}(e),function(t){var e=t.directives;if(e)for(var n in e){var i=e[n];"function"==typeof i&&(e[n]={bind:i,update:i})}}(e),!e._base&&(e.extends&&(t=zt(t,e.extends,n)),e.mixins))for(var i=0,r=e.mixins.length;i<r;i++)t=zt(t,e.mixins[i],n);var o,a={};for(o in t)s(o);for(o in e)w(t,o)||s(o);function s(i){var r=Dt[i]||Ft;a[i]=r(t[i],e[i],n,i)}return a}function Bt(t,e,n,i){if("string"==typeof n){var r=t[e];if(w(r,n))return r[n];var o=S(n);if(w(r,o))return r[o];var a=E(o);return w(r,a)?r[a]:r[n]||r[o]||r[a]}}function $t(t,e,n,i){var r=e[t],o=!w(n,t),a=n[t],s=Yt(Boolean,r.type);if(s>-1)if(o&&!w(r,"default"))a=!1;else if(""===a||a===O(t)){var l=Yt(String,r.type);(l<0||s<l)&&(a=!0)}if(void 0===a){a=function(t,e,n){if(!w(e,"default"))return;var i=e.default;0;if(t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n])return t._props[n];return"function"==typeof i&&"Function"!==Ht(e.type)?i.call(t):i}(i,r,t);var c=Et;Tt(!0),kt(a),Tt(c)}return a}var Ut=/^\s*function (\w+)/;function Ht(t){var e=t&&t.toString().match(Ut);return e?e[1]:""}function Vt(t,e){return Ht(t)===Ht(e)}function Yt(t,e){if(!Array.isArray(e))return Vt(e,t)?0:-1;for(var n=0,i=e.length;n<i;n++)if(Vt(e[n],t))return n;return-1}function qt(t,e,n){mt();try{if(e)for(var i=e;i=i.$parent;){var r=i.$options.errorCaptured;if(r)for(var o=0;o<r.length;o++)try{if(!1===r[o].call(i,t,e,n))return}catch(t){Gt(t,i,"errorCaptured hook")}}Gt(t,e,n)}finally{vt()}}function Wt(t,e,n,i,r){var o;try{(o=n?t.apply(e,n):t.call(e))&&!o._isVue&&p(o)&&!o._handled&&(o.catch((function(t){return qt(t,i,r+" (Promise/async)")})),o._handled=!0)}catch(t){qt(t,i,r)}return o}function Gt(t,e,n){if($.errorHandler)try{return $.errorHandler.call(null,t,e,n)}catch(e){e!==t&&Xt(e,null,"config.errorHandler")}Xt(t,e,n)}function Xt(t,e,n){if(!G&&!X||"undefined"==typeof console)throw t;console.error(t)}var Kt,Zt=!1,Jt=[],Qt=!1;function te(){Qt=!1;var t=Jt.slice(0);Jt.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!=typeof Promise&&lt(Promise)){var ee=Promise.resolve();Kt=function(){ee.then(te),et&&setTimeout(L)},Zt=!0}else if(J||"undefined"==typeof MutationObserver||!lt(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Kt="undefined"!=typeof setImmediate&&lt(setImmediate)?function(){setImmediate(te)}:function(){setTimeout(te,0)};else{var ne=1,ie=new MutationObserver(te),re=document.createTextNode(String(ne));ie.observe(re,{characterData:!0}),Kt=function(){ne=(ne+1)%2,re.data=String(ne)},Zt=!0}function oe(t,e){var n;if(Jt.push((function(){if(t)try{t.call(e)}catch(t){qt(t,e,"nextTick")}else n&&n(e)})),Qt||(Qt=!0,Kt()),!t&&"undefined"!=typeof Promise)return new Promise((function(t){n=t}))}var ae=new ct;function se(t){le(t,ae),ae.clear()}function le(t,e){var n,i,r=Array.isArray(t);if(!(!r&&!l(t)||Object.isFrozen(t)||t instanceof gt)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(r)for(n=t.length;n--;)le(t[n],e);else for(n=(i=Object.keys(t)).length;n--;)le(t[i[n]],e)}}var ce=x((function(t){var e="&"===t.charAt(0),n="~"===(t=e?t.slice(1):t).charAt(0),i="!"===(t=n?t.slice(1):t).charAt(0);return{name:t=i?t.slice(1):t,once:n,capture:i,passive:e}}));function ue(t,e){function n(){var t=arguments,i=n.fns;if(!Array.isArray(i))return Wt(i,null,arguments,e,"v-on handler");for(var r=i.slice(),o=0;o<r.length;o++)Wt(r[o],null,t,e,"v-on handler")}return n.fns=t,n}function de(t,e,n,i,o,s){var l,c,u,d;for(l in t)c=t[l],u=e[l],d=ce(l),r(c)||(r(u)?(r(c.fns)&&(c=t[l]=ue(c,s)),a(d.once)&&(c=t[l]=o(d.name,c,d.capture)),n(d.name,c,d.capture,d.passive,d.params)):c!==u&&(u.fns=c,t[l]=u));for(l in e)r(t[l])&&i((d=ce(l)).name,e[l],d.capture)}function he(t,e,n){var i;t instanceof gt&&(t=t.data.hook||(t.data.hook={}));var s=t[e];function l(){n.apply(this,arguments),y(i.fns,l)}r(s)?i=ue([l]):o(s.fns)&&a(s.merged)?(i=s).fns.push(l):i=ue([s,l]),i.merged=!0,t[e]=i}function pe(t,e,n,i,r){if(o(e)){if(w(e,n))return t[n]=e[n],r||delete e[n],!0;if(w(e,i))return t[n]=e[i],r||delete e[i],!0}return!1}function fe(t){return s(t)?[_t(t)]:Array.isArray(t)?ve(t):void 0}function me(t){return o(t)&&o(t.text)&&!1===t.isComment}function ve(t,e){var n,i,l,c,u=[];for(n=0;n<t.length;n++)r(i=t[n])||"boolean"==typeof i||(c=u[l=u.length-1],Array.isArray(i)?i.length>0&&(me((i=ve(i,(e||"")+"_"+n))[0])&&me(c)&&(u[l]=_t(c.text+i[0].text),i.shift()),u.push.apply(u,i)):s(i)?me(c)?u[l]=_t(c.text+i):""!==i&&u.push(_t(i)):me(i)&&me(c)?u[l]=_t(c.text+i.text):(a(t._isVList)&&o(i.tag)&&r(i.key)&&o(e)&&(i.key="__vlist"+e+"_"+n+"__"),u.push(i)));return u}function ge(t,e){if(t){for(var n=Object.create(null),i=ut?Reflect.ownKeys(t):Object.keys(t),r=0;r<i.length;r++){var o=i[r];if("__ob__"!==o){for(var a=t[o].from,s=e;s;){if(s._provided&&w(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in t[o]){var l=t[o].default;n[o]="function"==typeof l?l.call(e):l}else 0}}return n}}function be(t,e){if(!t||!t.length)return{};for(var n={},i=0,r=t.length;i<r;i++){var o=t[i],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==e&&o.fnContext!==e||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,l=n[s]||(n[s]=[]);"template"===o.tag?l.push.apply(l,o.children||[]):l.push(o)}}for(var c in n)n[c].every(ye)&&delete n[c];return n}function ye(t){return t.isComment&&!t.asyncFactory||" "===t.text}function _e(t){return t.isComment&&t.asyncFactory}function we(t,e,n){var r,o=Object.keys(e).length>0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&n&&n!==i&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var l in r={},t)t[l]&&"$"!==l[0]&&(r[l]=xe(e,l,t[l]))}else r={};for(var c in e)c in r||(r[c]=Ce(e,c));return t&&Object.isExtensible(t)&&(t._normalized=r),V(r,"$stable",a),V(r,"$key",s),V(r,"$hasNormal",o),r}function xe(t,e,n){var i=function(){var t=arguments.length?n.apply(null,arguments):n({}),e=(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:fe(t))&&t[0];return t&&(!e||1===t.length&&e.isComment&&!_e(e))?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:i,enumerable:!0,configurable:!0}),i}function Ce(t,e){return function(){return t[e]}}function Se(t,e){var n,i,r,a,s;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),i=0,r=t.length;i<r;i++)n[i]=e(t[i],i);else if("number"==typeof t)for(n=new Array(t),i=0;i<t;i++)n[i]=e(i+1,i);else if(l(t))if(ut&&t[Symbol.iterator]){n=[];for(var c=t[Symbol.iterator](),u=c.next();!u.done;)n.push(e(u.value,n.length)),u=c.next()}else for(a=Object.keys(t),n=new Array(a.length),i=0,r=a.length;i<r;i++)s=a[i],n[i]=e(t[s],s,i);return o(n)||(n=[]),n._isVList=!0,n}function Ee(t,e,n,i){var r,o=this.$scopedSlots[t];o?(n=n||{},i&&(n=P(P({},i),n)),r=o(n)||("function"==typeof e?e():e)):r=this.$slots[t]||("function"==typeof e?e():e);var a=n&&n.slot;return a?this.$createElement("template",{slot:a},r):r}function Te(t){return Bt(this.$options,"filters",t)||R}function Oe(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function ke(t,e,n,i,r){var o=$.keyCodes[e]||n;return r&&i&&!$.keyCodes[e]?Oe(r,i):o?Oe(o,t):i?O(i)!==e:void 0===t}function Ae(t,e,n,i,r){if(n)if(l(n)){var o;Array.isArray(n)&&(n=M(n));var a=function(a){if("class"===a||"style"===a||b(a))o=t;else{var s=t.attrs&&t.attrs.type;o=i||$.mustUseProp(e,s,a)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var l=S(a),c=O(a);l in o||c in o||(o[a]=n[a],r&&((t.on||(t.on={}))["update:"+a]=function(t){n[a]=t}))};for(var s in n)a(s)}else;return t}function Pe(t,e){var n=this._staticTrees||(this._staticTrees=[]),i=n[t];return i&&!e||Le(i=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),"__static__"+t,!1),i}function Me(t,e,n){return Le(t,"__once__"+e+(n?"_"+n:""),!0),t}function Le(t,e,n){if(Array.isArray(t))for(var i=0;i<t.length;i++)t[i]&&"string"!=typeof t[i]&&De(t[i],e+"_"+i,n);else De(t,e,n)}function De(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function Re(t,e){if(e)if(u(e)){var n=t.on=t.on?P({},t.on):{};for(var i in e){var r=n[i],o=e[i];n[i]=r?[].concat(r,o):o}}else;return t}function Ie(t,e,n,i){e=e||{$stable:!n};for(var r=0;r<t.length;r++){var o=t[r];Array.isArray(o)?Ie(o,e,n):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return i&&(e.$key=i),e}function je(t,e){for(var n=0;n<e.length;n+=2){var i=e[n];"string"==typeof i&&i&&(t[e[n]]=e[n+1])}return t}function Ne(t,e){return"string"==typeof t?e+t:t}function Fe(t){t._o=Me,t._n=m,t._s=f,t._l=Se,t._t=Ee,t._q=I,t._i=j,t._m=Pe,t._f=Te,t._k=ke,t._b=Ae,t._v=_t,t._e=yt,t._u=Ie,t._g=Re,t._d=je,t._p=Ne}function ze(t,e,n,r,o){var s,l=this,c=o.options;w(r,"_uid")?(s=Object.create(r))._original=r:(s=r,r=r._original);var u=a(c._compiled),d=!u;this.data=t,this.props=e,this.children=n,this.parent=r,this.listeners=t.on||i,this.injections=ge(c.inject,r),this.slots=function(){return l.$slots||we(t.scopedSlots,l.$slots=be(n,r)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return we(t.scopedSlots,this.slots())}}),u&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=we(t.scopedSlots,this.$slots)),c._scopeId?this._c=function(t,e,n,i){var o=Ge(s,t,e,n,i,d);return o&&!Array.isArray(o)&&(o.fnScopeId=c._scopeId,o.fnContext=r),o}:this._c=function(t,e,n,i){return Ge(s,t,e,n,i,d)}}function Be(t,e,n,i,r){var o=wt(t);return o.fnContext=n,o.fnOptions=i,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function $e(t,e){for(var n in e)t[S(n)]=e[n]}Fe(ze.prototype);var Ue={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;Ue.prepatch(n,n)}else{(t.componentInstance=function(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},i=t.data.inlineTemplate;o(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns);return new t.componentOptions.Ctor(n)}(t,on)).$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions;!function(t,e,n,r,o){0;var a=r.data.scopedSlots,s=t.$scopedSlots,l=!!(a&&!a.$stable||s!==i&&!s.$stable||a&&t.$scopedSlots.$key!==a.$key||!a&&t.$scopedSlots.$key),c=!!(o||t.$options._renderChildren||l);t.$options._parentVnode=r,t.$vnode=r,t._vnode&&(t._vnode.parent=r);if(t.$options._renderChildren=o,t.$attrs=r.data.attrs||i,t.$listeners=n||i,e&&t.$options.props){Tt(!1);for(var u=t._props,d=t.$options._propKeys||[],h=0;h<d.length;h++){var p=d[h],f=t.$options.props;u[p]=$t(p,f,e,t)}Tt(!0),t.$options.propsData=e}n=n||i;var m=t.$options._parentListeners;t.$options._parentListeners=n,rn(t,n,m),c&&(t.$slots=be(o,r.context),t.$forceUpdate());0}(e.componentInstance=t.componentInstance,n.propsData,n.listeners,e,n.children)},insert:function(t){var e,n=t.context,i=t.componentInstance;i._isMounted||(i._isMounted=!0,un(i,"mounted")),t.data.keepAlive&&(n._isMounted?((e=i)._inactive=!1,hn.push(e)):ln(i,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?cn(e,!0):e.$destroy())}},He=Object.keys(Ue);function Ve(t,e,n,s,c){if(!r(t)){var u=n.$options._base;if(l(t)&&(t=u.extend(t)),"function"==typeof t){var d;if(r(t.cid)&&(t=function(t,e){if(a(t.error)&&o(t.errorComp))return t.errorComp;if(o(t.resolved))return t.resolved;var n=Ze;n&&o(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n);if(a(t.loading)&&o(t.loadingComp))return t.loadingComp;if(n&&!o(t.owners)){var i=t.owners=[n],s=!0,c=null,u=null;n.$on("hook:destroyed",(function(){return y(i,n)}));var d=function(t){for(var e=0,n=i.length;e<n;e++)i[e].$forceUpdate();t&&(i.length=0,null!==c&&(clearTimeout(c),c=null),null!==u&&(clearTimeout(u),u=null))},h=N((function(n){t.resolved=Je(n,e),s?i.length=0:d(!0)})),f=N((function(e){o(t.errorComp)&&(t.error=!0,d(!0))})),m=t(h,f);return l(m)&&(p(m)?r(t.resolved)&&m.then(h,f):p(m.component)&&(m.component.then(h,f),o(m.error)&&(t.errorComp=Je(m.error,e)),o(m.loading)&&(t.loadingComp=Je(m.loading,e),0===m.delay?t.loading=!0:c=setTimeout((function(){c=null,r(t.resolved)&&r(t.error)&&(t.loading=!0,d(!1))}),m.delay||200)),o(m.timeout)&&(u=setTimeout((function(){u=null,r(t.resolved)&&f(null)}),m.timeout)))),s=!1,t.loading?t.loadingComp:t.resolved}}(d=t,u),void 0===t))return function(t,e,n,i,r){var o=yt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:i,tag:r},o}(d,e,n,s,c);e=e||{},Ln(t),o(e.model)&&function(t,e){var n=t.model&&t.model.prop||"value",i=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var r=e.on||(e.on={}),a=r[i],s=e.model.callback;o(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(r[i]=[s].concat(a)):r[i]=s}(t.options,e);var h=function(t,e,n){var i=e.options.props;if(!r(i)){var a={},s=t.attrs,l=t.props;if(o(s)||o(l))for(var c in i){var u=O(c);pe(a,l,c,u,!0)||pe(a,s,c,u,!1)}return a}}(e,t);if(a(t.options.functional))return function(t,e,n,r,a){var s=t.options,l={},c=s.props;if(o(c))for(var u in c)l[u]=$t(u,c,e||i);else o(n.attrs)&&$e(l,n.attrs),o(n.props)&&$e(l,n.props);var d=new ze(n,l,a,r,t),h=s.render.call(null,d._c,d);if(h instanceof gt)return Be(h,n,d.parent,s);if(Array.isArray(h)){for(var p=fe(h)||[],f=new Array(p.length),m=0;m<p.length;m++)f[m]=Be(p[m],n,d.parent,s);return f}}(t,h,e,n,s);var f=e.on;if(e.on=e.nativeOn,a(t.options.abstract)){var m=e.slot;e={},m&&(e.slot=m)}!function(t){for(var e=t.hook||(t.hook={}),n=0;n<He.length;n++){var i=He[n],r=e[i],o=Ue[i];r===o||r&&r._merged||(e[i]=r?Ye(o,r):o)}}(e);var v=t.options.name||c;return new gt("vue-component-"+t.cid+(v?"-"+v:""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:h,listeners:f,tag:c,children:s},d)}}}function Ye(t,e){var n=function(n,i){t(n,i),e(n,i)};return n._merged=!0,n}var qe=1,We=2;function Ge(t,e,n,i,r,c){return(Array.isArray(n)||s(n))&&(r=i,i=n,n=void 0),a(c)&&(r=We),function(t,e,n,i,r){if(o(n)&&o(n.__ob__))return yt();o(n)&&o(n.is)&&(e=n.is);if(!e)return yt();0;Array.isArray(i)&&"function"==typeof i[0]&&((n=n||{}).scopedSlots={default:i[0]},i.length=0);r===We?i=fe(i):r===qe&&(i=function(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}(i));var a,s;if("string"==typeof e){var c;s=t.$vnode&&t.$vnode.ns||$.getTagNamespace(e),a=$.isReservedTag(e)?new gt($.parsePlatformTagName(e),n,i,void 0,void 0,t):n&&n.pre||!o(c=Bt(t.$options,"components",e))?new gt(e,n,i,void 0,void 0,t):Ve(c,n,t,i,e)}else a=Ve(e,n,t,i);return Array.isArray(a)?a:o(a)?(o(s)&&Xe(a,s),o(n)&&function(t){l(t.style)&&se(t.style);l(t.class)&&se(t.class)}(n),a):yt()}(t,e,n,i,r)}function Xe(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),o(t.children))for(var i=0,s=t.children.length;i<s;i++){var l=t.children[i];o(l.tag)&&(r(l.ns)||a(n)&&"svg"!==l.tag)&&Xe(l,e,n)}}var Ke,Ze=null;function Je(t,e){return(t.__esModule||ut&&"Module"===t[Symbol.toStringTag])&&(t=t.default),l(t)?e.extend(t):t}function Qe(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(o(n)&&(o(n.componentOptions)||_e(n)))return n}}function tn(t,e){Ke.$on(t,e)}function en(t,e){Ke.$off(t,e)}function nn(t,e){var n=Ke;return function i(){null!==e.apply(null,arguments)&&n.$off(t,i)}}function rn(t,e,n){Ke=t,de(e,n||{},tn,en,nn,t),Ke=void 0}var on=null;function an(t){var e=on;return on=t,function(){on=e}}function sn(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function ln(t,e){if(e){if(t._directInactive=!1,sn(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)ln(t.$children[n]);un(t,"activated")}}function cn(t,e){if(!(e&&(t._directInactive=!0,sn(t))||t._inactive)){t._inactive=!0;for(var n=0;n<t.$children.length;n++)cn(t.$children[n]);un(t,"deactivated")}}function un(t,e){mt();var n=t.$options[e],i=e+" hook";if(n)for(var r=0,o=n.length;r<o;r++)Wt(n[r],t,null,t,i);t._hasHookEvent&&t.$emit("hook:"+e),vt()}var dn=[],hn=[],pn={},fn=!1,mn=!1,vn=0;var gn=0,bn=Date.now;if(G&&!J){var yn=window.performance;yn&&"function"==typeof yn.now&&bn()>document.createEvent("Event").timeStamp&&(bn=function(){return yn.now()})}function _n(){var t,e;for(gn=bn(),mn=!0,dn.sort((function(t,e){return t.id-e.id})),vn=0;vn<dn.length;vn++)(t=dn[vn]).before&&t.before(),e=t.id,pn[e]=null,t.run();var n=hn.slice(),i=dn.slice();vn=dn.length=hn.length=0,pn={},fn=mn=!1,function(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,ln(t[e],!0)}(n),function(t){var e=t.length;for(;e--;){var n=t[e],i=n.vm;i._watcher===n&&i._isMounted&&!i._isDestroyed&&un(i,"updated")}}(i),st&&$.devtools&&st.emit("flush")}var wn=0,xn=function(t,e,n,i,r){this.vm=t,r&&(t._watcher=this),t._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++wn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ct,this.newDepIds=new ct,this.expression="","function"==typeof e?this.getter=e:(this.getter=function(t){if(!Y.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}(e),this.getter||(this.getter=L)),this.value=this.lazy?void 0:this.get()};xn.prototype.get=function(){var t;mt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;qt(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&se(t),vt(),this.cleanupDeps()}return t},xn.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},xn.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},xn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(t){var e=t.id;if(null==pn[e]){if(pn[e]=!0,mn){for(var n=dn.length-1;n>vn&&dn[n].id>t.id;)n--;dn.splice(n+1,0,t)}else dn.push(t);fn||(fn=!0,oe(_n))}}(this)},xn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user){var n='callback for watcher "'+this.expression+'"';Wt(this.cb,this.vm,[t,e],this.vm,n)}else this.cb.call(this.vm,t,e)}}},xn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},xn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},xn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var Cn={enumerable:!0,configurable:!0,get:L,set:L};function Sn(t,e,n){Cn.get=function(){return this[e][n]},Cn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,Cn)}function En(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},i=t._props={},r=t.$options._propKeys=[],o=!t.$parent;o||Tt(!1);var a=function(o){r.push(o);var a=$t(o,e,n,t);At(i,o,a),o in t||Sn(t,"_props",o)};for(var s in e)a(s);Tt(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?L:k(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;e=t._data="function"==typeof e?function(t,e){mt();try{return t.call(e,e)}catch(t){return qt(t,e,"data()"),{}}finally{vt()}}(e,t):e||{},u(e)||(e={});var n=Object.keys(e),i=t.$options.props,r=(t.$options.methods,n.length);for(;r--;){var o=n[r];0,i&&w(i,o)||H(o)||Sn(t,"_data",o)}kt(e,!0)}(t):kt(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),i=at();for(var r in e){var o=e[r],a="function"==typeof o?o:o.get;0,i||(n[r]=new xn(t,a||L,L,Tn)),r in t||On(t,r,o)}}(t,e.computed),e.watch&&e.watch!==it&&function(t,e){for(var n in e){var i=e[n];if(Array.isArray(i))for(var r=0;r<i.length;r++)Pn(t,n,i[r]);else Pn(t,n,i)}}(t,e.watch)}var Tn={lazy:!0};function On(t,e,n){var i=!at();"function"==typeof n?(Cn.get=i?kn(e):An(n),Cn.set=L):(Cn.get=n.get?i&&!1!==n.cache?kn(e):An(n.get):L,Cn.set=n.set||L),Object.defineProperty(t,e,Cn)}function kn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),pt.target&&e.depend(),e.value}}function An(t){return function(){return t.call(this,this)}}function Pn(t,e,n,i){return u(n)&&(i=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,i)}var Mn=0;function Ln(t){var e=t.options;if(t.super){var n=Ln(t.super);if(n!==t.superOptions){t.superOptions=n;var i=function(t){var e,n=t.options,i=t.sealedOptions;for(var r in n)n[r]!==i[r]&&(e||(e={}),e[r]=n[r]);return e}(t);i&&P(t.extendOptions,i),(e=t.options=zt(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function Dn(t){this._init(t)}function Rn(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,i=n.cid,r=t._Ctor||(t._Ctor={});if(r[i])return r[i];var o=t.name||n.options.name;var a=function(t){this._init(t)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=e++,a.options=zt(n.options,t),a.super=n,a.options.props&&function(t){var e=t.options.props;for(var n in e)Sn(t.prototype,"_props",n)}(a),a.options.computed&&function(t){var e=t.options.computed;for(var n in e)On(t.prototype,n,e[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,z.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=P({},a.options),r[i]=a,a}}function In(t){return t&&(t.Ctor.options.name||t.tag)}function jn(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!d(t)&&t.test(e)}function Nn(t,e){var n=t.cache,i=t.keys,r=t._vnode;for(var o in n){var a=n[o];if(a){var s=a.name;s&&!e(s)&&Fn(n,o,i,r)}}}function Fn(t,e,n,i){var r=t[e];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),t[e]=null,y(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=Mn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),i=e._parentVnode;n.parent=e.parent,n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=zt(Ln(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&rn(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,r=n&&n.context;t.$slots=be(e._renderChildren,r),t.$scopedSlots=i,t._c=function(e,n,i,r){return Ge(t,e,n,i,r,!1)},t.$createElement=function(e,n,i,r){return Ge(t,e,n,i,r,!0)};var o=n&&n.data;At(t,"$attrs",o&&o.attrs||i,null,!0),At(t,"$listeners",e._parentListeners||i,null,!0)}(e),un(e,"beforeCreate"),function(t){var e=ge(t.$options.inject,t);e&&(Tt(!1),Object.keys(e).forEach((function(n){At(t,n,e[n])})),Tt(!0))}(e),En(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),un(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(Dn),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Pt,t.prototype.$delete=Mt,t.prototype.$watch=function(t,e,n){var i=this;if(u(e))return Pn(i,t,e,n);(n=n||{}).user=!0;var r=new xn(i,t,e,n);if(n.immediate){var o='callback for immediate watcher "'+r.expression+'"';mt(),Wt(e,i,[r.value],i,o),vt()}return function(){r.teardown()}}}(Dn),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var i=this;if(Array.isArray(t))for(var r=0,o=t.length;r<o;r++)i.$on(t[r],n);else(i._events[t]||(i._events[t]=[])).push(n),e.test(t)&&(i._hasHookEvent=!0);return i},t.prototype.$once=function(t,e){var n=this;function i(){n.$off(t,i),e.apply(n,arguments)}return i.fn=e,n.$on(t,i),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var i=0,r=t.length;i<r;i++)n.$off(t[i],e);return n}var o,a=n._events[t];if(!a)return n;if(!e)return n._events[t]=null,n;for(var s=a.length;s--;)if((o=a[s])===e||o.fn===e){a.splice(s,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?A(n):n;for(var i=A(arguments,1),r='event handler for "'+t+'"',o=0,a=n.length;o<a;o++)Wt(n[o],e,i,e,r)}return e}}(Dn),function(t){t.prototype._update=function(t,e){var n=this,i=n.$el,r=n._vnode,o=an(n);n._vnode=t,n.$el=r?n.__patch__(r,t):n.__patch__(n.$el,t,e,!1),o(),i&&(i.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){un(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||y(e.$children,t),t._watcher&&t._watcher.teardown();for(var n=t._watchers.length;n--;)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),un(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(Dn),function(t){Fe(t.prototype),t.prototype.$nextTick=function(t){return oe(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,i=n.render,r=n._parentVnode;r&&(e.$scopedSlots=we(r.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=r;try{Ze=e,t=i.call(e._renderProxy,e.$createElement)}catch(n){qt(n,e,"render"),t=e._vnode}finally{Ze=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof gt||(t=yt()),t.parent=r,t}}(Dn);var zn=[String,RegExp,Array],Bn={name:"keep-alive",abstract:!0,props:{include:zn,exclude:zn,max:[String,Number]},methods:{cacheVNode:function(){var t=this,e=t.cache,n=t.keys,i=t.vnodeToCache,r=t.keyToCache;if(i){var o=i.tag,a=i.componentInstance,s=i.componentOptions;e[r]={name:In(s),tag:o,componentInstance:a},n.push(r),this.max&&n.length>parseInt(this.max)&&Fn(e,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Fn(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){Nn(t,(function(t){return jn(e,t)}))})),this.$watch("exclude",(function(e){Nn(t,(function(t){return!jn(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=Qe(t),n=e&&e.componentOptions;if(n){var i=In(n),r=this.include,o=this.exclude;if(r&&(!i||!jn(r,i))||o&&i&&jn(o,i))return e;var a=this.cache,s=this.keys,l=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;a[l]?(e.componentInstance=a[l].componentInstance,y(s,l),s.push(l)):(this.vnodeToCache=e,this.keyToCache=l),e.data.keepAlive=!0}return e||t&&t[0]}},$n={KeepAlive:Bn};!function(t){var e={get:function(){return $}};Object.defineProperty(t,"config",e),t.util={warn:dt,extend:P,mergeOptions:zt,defineReactive:At},t.set=Pt,t.delete=Mt,t.nextTick=oe,t.observable=function(t){return kt(t),t},t.options=Object.create(null),z.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,P(t.options.components,$n),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=A(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=zt(this.options,t),this}}(t),Rn(t),function(t){z.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(Dn),Object.defineProperty(Dn.prototype,"$isServer",{get:at}),Object.defineProperty(Dn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Dn,"FunctionalRenderContext",{value:ze}),Dn.version="2.6.14";var Un=v("style,class"),Hn=v("input,textarea,option,select,progress"),Vn=function(t,e,n){return"value"===n&&Hn(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Yn=v("contenteditable,draggable,spellcheck"),qn=v("events,caret,typing,plaintext-only"),Wn=function(t,e){return Jn(e)||"false"===e?"false":"contenteditable"===t&&qn(e)?e:"true"},Gn=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Xn="http://www.w3.org/1999/xlink",Kn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Zn=function(t){return Kn(t)?t.slice(6,t.length):""},Jn=function(t){return null==t||!1===t};function Qn(t){for(var e=t.data,n=t,i=t;o(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(e=ti(i.data,e));for(;o(n=n.parent);)n&&n.data&&(e=ti(e,n.data));return function(t,e){if(o(t)||o(e))return ei(t,ni(e));return""}(e.staticClass,e.class)}function ti(t,e){return{staticClass:ei(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function ei(t,e){return t?e?t+" "+e:t:e||""}function ni(t){return Array.isArray(t)?function(t){for(var e,n="",i=0,r=t.length;i<r;i++)o(e=ni(t[i]))&&""!==e&&(n&&(n+=" "),n+=e);return n}(t):l(t)?function(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}(t):"string"==typeof t?t:""}var ii={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ri=v("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),oi=v("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),ai=function(t){return ri(t)||oi(t)};function si(t){return oi(t)?"svg":"math"===t?"math":void 0}var li=Object.create(null);var ci=v("text,number,password,search,email,tel,url");function ui(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}var di=Object.freeze({createElement:function(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(t,e){return document.createElementNS(ii[t],e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},setStyleScope:function(t,e){t.setAttribute(e,"")}}),hi={create:function(t,e){pi(e)},update:function(t,e){t.data.ref!==e.data.ref&&(pi(t,!0),pi(e))},destroy:function(t){pi(t,!0)}};function pi(t,e){var n=t.data.ref;if(o(n)){var i=t.context,r=t.componentInstance||t.elm,a=i.$refs;e?Array.isArray(a[n])?y(a[n],r):a[n]===r&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(r)<0&&a[n].push(r):a[n]=[r]:a[n]=r}}var fi=new gt("",{},[]),mi=["create","activate","update","remove","destroy"];function vi(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&o(t.data)===o(e.data)&&function(t,e){if("input"!==t.tag)return!0;var n,i=o(n=t.data)&&o(n=n.attrs)&&n.type,r=o(n=e.data)&&o(n=n.attrs)&&n.type;return i===r||ci(i)&&ci(r)}(t,e)||a(t.isAsyncPlaceholder)&&r(e.asyncFactory.error))}function gi(t,e,n){var i,r,a={};for(i=e;i<=n;++i)o(r=t[i].key)&&(a[r]=i);return a}var bi={create:yi,update:yi,destroy:function(t){yi(t,fi)}};function yi(t,e){(t.data.directives||e.data.directives)&&function(t,e){var n,i,r,o=t===fi,a=e===fi,s=wi(t.data.directives,t.context),l=wi(e.data.directives,e.context),c=[],u=[];for(n in l)i=s[n],r=l[n],i?(r.oldValue=i.value,r.oldArg=i.arg,Ci(r,"update",e,t),r.def&&r.def.componentUpdated&&u.push(r)):(Ci(r,"bind",e,t),r.def&&r.def.inserted&&c.push(r));if(c.length){var d=function(){for(var n=0;n<c.length;n++)Ci(c[n],"inserted",e,t)};o?he(e,"insert",d):d()}u.length&&he(e,"postpatch",(function(){for(var n=0;n<u.length;n++)Ci(u[n],"componentUpdated",e,t)}));if(!o)for(n in s)l[n]||Ci(s[n],"unbind",t,t,a)}(t,e)}var _i=Object.create(null);function wi(t,e){var n,i,r=Object.create(null);if(!t)return r;for(n=0;n<t.length;n++)(i=t[n]).modifiers||(i.modifiers=_i),r[xi(i)]=i,i.def=Bt(e.$options,"directives",i.name);return r}function xi(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function Ci(t,e,n,i,r){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,i,r)}catch(i){qt(i,n.context,"directive "+t.name+" "+e+" hook")}}var Si=[hi,bi];function Ei(t,e){var n=e.componentOptions;if(!(o(n)&&!1===n.Ctor.options.inheritAttrs||r(t.data.attrs)&&r(e.data.attrs))){var i,a,s=e.elm,l=t.data.attrs||{},c=e.data.attrs||{};for(i in o(c.__ob__)&&(c=e.data.attrs=P({},c)),c)a=c[i],l[i]!==a&&Ti(s,i,a,e.data.pre);for(i in(J||tt)&&c.value!==l.value&&Ti(s,"value",c.value),l)r(c[i])&&(Kn(i)?s.removeAttributeNS(Xn,Zn(i)):Yn(i)||s.removeAttribute(i))}}function Ti(t,e,n,i){i||t.tagName.indexOf("-")>-1?Oi(t,e,n):Gn(e)?Jn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Yn(e)?t.setAttribute(e,Wn(e,n)):Kn(e)?Jn(n)?t.removeAttributeNS(Xn,Zn(e)):t.setAttributeNS(Xn,e,n):Oi(t,e,n)}function Oi(t,e,n){if(Jn(n))t.removeAttribute(e);else{if(J&&!Q&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var i=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",i)};t.addEventListener("input",i),t.__ieph=!0}t.setAttribute(e,n)}}var ki={create:Ei,update:Ei};function Ai(t,e){var n=e.elm,i=e.data,a=t.data;if(!(r(i.staticClass)&&r(i.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Qn(e),l=n._transitionClasses;o(l)&&(s=ei(s,ni(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Pi,Mi,Li,Di,Ri,Ii,ji={create:Ai,update:Ai},Ni=/[\w).+\-_$\]]/;function Fi(t){var e,n,i,r,o,a=!1,s=!1,l=!1,c=!1,u=0,d=0,h=0,p=0;for(i=0;i<t.length;i++)if(n=e,e=t.charCodeAt(i),a)39===e&&92!==n&&(a=!1);else if(s)34===e&&92!==n&&(s=!1);else if(l)96===e&&92!==n&&(l=!1);else if(c)47===e&&92!==n&&(c=!1);else if(124!==e||124===t.charCodeAt(i+1)||124===t.charCodeAt(i-1)||u||d||h){switch(e){case 34:s=!0;break;case 39:a=!0;break;case 96:l=!0;break;case 40:h++;break;case 41:h--;break;case 91:d++;break;case 93:d--;break;case 123:u++;break;case 125:u--}if(47===e){for(var f=i-1,m=void 0;f>=0&&" "===(m=t.charAt(f));f--);m&&Ni.test(m)||(c=!0)}}else void 0===r?(p=i+1,r=t.slice(0,i).trim()):v();function v(){(o||(o=[])).push(t.slice(p,i).trim()),p=i+1}if(void 0===r?r=t.slice(0,i).trim():0!==p&&v(),o)for(i=0;i<o.length;i++)r=zi(r,o[i]);return r}function zi(t,e){var n=e.indexOf("(");if(n<0)return'_f("'+e+'")('+t+")";var i=e.slice(0,n),r=e.slice(n+1);return'_f("'+i+'")('+t+(")"!==r?","+r:r)}function Bi(t,e){console.error("[Vue compiler]: "+t)}function $i(t,e){return t?t.map((function(t){return t[e]})).filter((function(t){return t})):[]}function Ui(t,e,n,i,r){(t.props||(t.props=[])).push(Zi({name:e,value:n,dynamic:r},i)),t.plain=!1}function Hi(t,e,n,i,r){(r?t.dynamicAttrs||(t.dynamicAttrs=[]):t.attrs||(t.attrs=[])).push(Zi({name:e,value:n,dynamic:r},i)),t.plain=!1}function Vi(t,e,n,i){t.attrsMap[e]=n,t.attrsList.push(Zi({name:e,value:n},i))}function Yi(t,e,n,i,r,o,a,s){(t.directives||(t.directives=[])).push(Zi({name:e,rawName:n,value:i,arg:r,isDynamicArg:o,modifiers:a},s)),t.plain=!1}function qi(t,e,n){return n?"_p("+e+',"'+t+'")':t+e}function Wi(t,e,n,r,o,a,s,l){var c;(r=r||i).right?l?e="("+e+")==='click'?'contextmenu':("+e+")":"click"===e&&(e="contextmenu",delete r.right):r.middle&&(l?e="("+e+")==='click'?'mouseup':("+e+")":"click"===e&&(e="mouseup")),r.capture&&(delete r.capture,e=qi("!",e,l)),r.once&&(delete r.once,e=qi("~",e,l)),r.passive&&(delete r.passive,e=qi("&",e,l)),r.native?(delete r.native,c=t.nativeEvents||(t.nativeEvents={})):c=t.events||(t.events={});var u=Zi({value:n.trim(),dynamic:l},s);r!==i&&(u.modifiers=r);var d=c[e];Array.isArray(d)?o?d.unshift(u):d.push(u):c[e]=d?o?[u,d]:[d,u]:u,t.plain=!1}function Gi(t,e,n){var i=Xi(t,":"+e)||Xi(t,"v-bind:"+e);if(null!=i)return Fi(i);if(!1!==n){var r=Xi(t,e);if(null!=r)return JSON.stringify(r)}}function Xi(t,e,n){var i;if(null!=(i=t.attrsMap[e]))for(var r=t.attrsList,o=0,a=r.length;o<a;o++)if(r[o].name===e){r.splice(o,1);break}return n&&delete t.attrsMap[e],i}function Ki(t,e){for(var n=t.attrsList,i=0,r=n.length;i<r;i++){var o=n[i];if(e.test(o.name))return n.splice(i,1),o}}function Zi(t,e){return e&&(null!=e.start&&(t.start=e.start),null!=e.end&&(t.end=e.end)),t}function Ji(t,e,n){var i=n||{},r=i.number,o="$$v",a=o;i.trim&&(a="(typeof $$v === 'string'? $$v.trim(): $$v)"),r&&(a="_n("+a+")");var s=Qi(e,a);t.model={value:"("+e+")",expression:JSON.stringify(e),callback:"function ($$v) {"+s+"}"}}function Qi(t,e){var n=function(t){if(t=t.trim(),Pi=t.length,t.indexOf("[")<0||t.lastIndexOf("]")<Pi-1)return(Di=t.lastIndexOf("."))>-1?{exp:t.slice(0,Di),key:'"'+t.slice(Di+1)+'"'}:{exp:t,key:null};Mi=t,Di=Ri=Ii=0;for(;!er();)nr(Li=tr())?rr(Li):91===Li&&ir(Li);return{exp:t.slice(0,Ri),key:t.slice(Ri+1,Ii)}}(t);return null===n.key?t+"="+e:"$set("+n.exp+", "+n.key+", "+e+")"}function tr(){return Mi.charCodeAt(++Di)}function er(){return Di>=Pi}function nr(t){return 34===t||39===t}function ir(t){var e=1;for(Ri=Di;!er();)if(nr(t=tr()))rr(t);else if(91===t&&e++,93===t&&e--,0===e){Ii=Di;break}}function rr(t){for(var e=t;!er()&&(t=tr())!==e;);}var or,ar="__r",sr="__c";function lr(t,e,n){var i=or;return function r(){null!==e.apply(null,arguments)&&dr(t,r,n,i)}}var cr=Zt&&!(nt&&Number(nt[1])<=53);function ur(t,e,n,i){if(cr){var r=gn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=r||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}or.addEventListener(t,e,rt?{capture:n,passive:i}:n)}function dr(t,e,n,i){(i||or).removeEventListener(t,e._wrapper||e,n)}function hr(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},i=t.data.on||{};or=e.elm,function(t){if(o(t[ar])){var e=J?"change":"input";t[e]=[].concat(t[ar],t[e]||[]),delete t[ar]}o(t[sr])&&(t.change=[].concat(t[sr],t.change||[]),delete t[sr])}(n),de(n,i,ur,dr,lr,e.context),or=void 0}}var pr,fr={create:hr,update:hr};function mr(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,i,a=e.elm,s=t.data.domProps||{},l=e.data.domProps||{};for(n in o(l.__ob__)&&(l=e.data.domProps=P({},l)),s)n in l||(a[n]="");for(n in l){if(i=l[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),i===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=i;var c=r(i)?"":String(i);vr(a,c)&&(a.value=c)}else if("innerHTML"===n&&oi(a.tagName)&&r(a.innerHTML)){(pr=pr||document.createElement("div")).innerHTML="<svg>"+i+"</svg>";for(var u=pr.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;u.firstChild;)a.appendChild(u.firstChild)}else if(i!==s[n])try{a[n]=i}catch(t){}}}}function vr(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,i=t._vModifiers;if(o(i)){if(i.number)return m(n)!==m(e);if(i.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var gr={create:mr,update:mr},br=x((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var i=t.split(n);i.length>1&&(e[i[0].trim()]=i[1].trim())}})),e}));function yr(t){var e=_r(t.style);return t.staticStyle?P(t.staticStyle,e):e}function _r(t){return Array.isArray(t)?M(t):"string"==typeof t?br(t):t}var wr,xr=/^--/,Cr=/\s*!important$/,Sr=function(t,e,n){if(xr.test(e))t.style.setProperty(e,n);else if(Cr.test(n))t.style.setProperty(O(e),n.replace(Cr,""),"important");else{var i=Tr(e);if(Array.isArray(n))for(var r=0,o=n.length;r<o;r++)t.style[i]=n[r];else t.style[i]=n}},Er=["Webkit","Moz","ms"],Tr=x((function(t){if(wr=wr||document.createElement("div").style,"filter"!==(t=S(t))&&t in wr)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<Er.length;n++){var i=Er[n]+e;if(i in wr)return i}}));function Or(t,e){var n=e.data,i=t.data;if(!(r(n.staticStyle)&&r(n.style)&&r(i.staticStyle)&&r(i.style))){var a,s,l=e.elm,c=i.staticStyle,u=i.normalizedStyle||i.style||{},d=c||u,h=_r(e.data.style)||{};e.data.normalizedStyle=o(h.__ob__)?P({},h):h;var p=function(t,e){var n,i={};if(e)for(var r=t;r.componentInstance;)(r=r.componentInstance._vnode)&&r.data&&(n=yr(r.data))&&P(i,n);(n=yr(t.data))&&P(i,n);for(var o=t;o=o.parent;)o.data&&(n=yr(o.data))&&P(i,n);return i}(e,!0);for(s in d)r(p[s])&&Sr(l,s,"");for(s in p)(a=p[s])!==d[s]&&Sr(l,s,null==a?"":a)}}var kr={create:Or,update:Or},Ar=/\s+/;function Pr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Ar).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Mr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Ar).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",i=" "+e+" ";n.indexOf(i)>=0;)n=n.replace(i," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function Lr(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&P(e,Dr(t.name||"v")),P(e,t),e}return"string"==typeof t?Dr(t):void 0}}var Dr=x((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Rr=G&&!Q,Ir="transition",jr="animation",Nr="transition",Fr="transitionend",zr="animation",Br="animationend";Rr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Nr="WebkitTransition",Fr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(zr="WebkitAnimation",Br="webkitAnimationEnd"));var $r=G?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Ur(t){$r((function(){$r(t)}))}function Hr(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Pr(t,e))}function Vr(t,e){t._transitionClasses&&y(t._transitionClasses,e),Mr(t,e)}function Yr(t,e,n){var i=Wr(t,e),r=i.type,o=i.timeout,a=i.propCount;if(!r)return n();var s=r===Ir?Fr:Br,l=0,c=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++l>=a&&c()};setTimeout((function(){l<a&&c()}),o+1),t.addEventListener(s,u)}var qr=/\b(transform|all)(,|$)/;function Wr(t,e){var n,i=window.getComputedStyle(t),r=(i[Nr+"Delay"]||"").split(", "),o=(i[Nr+"Duration"]||"").split(", "),a=Gr(r,o),s=(i[zr+"Delay"]||"").split(", "),l=(i[zr+"Duration"]||"").split(", "),c=Gr(s,l),u=0,d=0;return e===Ir?a>0&&(n=Ir,u=a,d=o.length):e===jr?c>0&&(n=jr,u=c,d=l.length):d=(n=(u=Math.max(a,c))>0?a>c?Ir:jr:null)?n===Ir?o.length:l.length:0,{type:n,timeout:u,propCount:d,hasTransform:n===Ir&&qr.test(i[Nr+"Property"])}}function Gr(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map((function(e,n){return Xr(e)+Xr(t[n])})))}function Xr(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function Kr(t,e){var n=t.elm;o(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var i=Lr(t.data.transition);if(!r(i)&&!o(n._enterCb)&&1===n.nodeType){for(var a=i.css,s=i.type,c=i.enterClass,u=i.enterToClass,d=i.enterActiveClass,h=i.appearClass,p=i.appearToClass,f=i.appearActiveClass,v=i.beforeEnter,g=i.enter,b=i.afterEnter,y=i.enterCancelled,_=i.beforeAppear,w=i.appear,x=i.afterAppear,C=i.appearCancelled,S=i.duration,E=on,T=on.$vnode;T&&T.parent;)E=T.context,T=T.parent;var O=!E._isMounted||!t.isRootInsert;if(!O||w||""===w){var k=O&&h?h:c,A=O&&f?f:d,P=O&&p?p:u,M=O&&_||v,L=O&&"function"==typeof w?w:g,D=O&&x||b,R=O&&C||y,I=m(l(S)?S.enter:S);0;var j=!1!==a&&!Q,F=Qr(L),z=n._enterCb=N((function(){j&&(Vr(n,P),Vr(n,A)),z.cancelled?(j&&Vr(n,k),R&&R(n)):D&&D(n),n._enterCb=null}));t.data.show||he(t,"insert",(function(){var e=n.parentNode,i=e&&e._pending&&e._pending[t.key];i&&i.tag===t.tag&&i.elm._leaveCb&&i.elm._leaveCb(),L&&L(n,z)})),M&&M(n),j&&(Hr(n,k),Hr(n,A),Ur((function(){Vr(n,k),z.cancelled||(Hr(n,P),F||(Jr(I)?setTimeout(z,I):Yr(n,s,z)))}))),t.data.show&&(e&&e(),L&&L(n,z)),j||F||z()}}}function Zr(t,e){var n=t.elm;o(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var i=Lr(t.data.transition);if(r(i)||1!==n.nodeType)return e();if(!o(n._leaveCb)){var a=i.css,s=i.type,c=i.leaveClass,u=i.leaveToClass,d=i.leaveActiveClass,h=i.beforeLeave,p=i.leave,f=i.afterLeave,v=i.leaveCancelled,g=i.delayLeave,b=i.duration,y=!1!==a&&!Q,_=Qr(p),w=m(l(b)?b.leave:b);0;var x=n._leaveCb=N((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),y&&(Vr(n,u),Vr(n,d)),x.cancelled?(y&&Vr(n,c),v&&v(n)):(e(),f&&f(n)),n._leaveCb=null}));g?g(C):C()}function C(){x.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),h&&h(n),y&&(Hr(n,c),Hr(n,d),Ur((function(){Vr(n,c),x.cancelled||(Hr(n,u),_||(Jr(w)?setTimeout(x,w):Yr(n,s,x)))}))),p&&p(n,x),y||_||x())}}function Jr(t){return"number"==typeof t&&!isNaN(t)}function Qr(t){if(r(t))return!1;var e=t.fns;return o(e)?Qr(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function to(t,e){!0!==e.data.show&&Kr(e)}var eo=function(t){var e,n,i={},l=t.modules,c=t.nodeOps;for(e=0;e<mi.length;++e)for(i[mi[e]]=[],n=0;n<l.length;++n)o(l[n][mi[e]])&&i[mi[e]].push(l[n][mi[e]]);function u(t){var e=c.parentNode(t);o(e)&&c.removeChild(e,t)}function d(t,e,n,r,s,l,u){if(o(t.elm)&&o(l)&&(t=l[u]=wt(t)),t.isRootInsert=!s,!function(t,e,n,r){var s=t.data;if(o(s)){var l=o(t.componentInstance)&&s.keepAlive;if(o(s=s.hook)&&o(s=s.init)&&s(t,!1),o(t.componentInstance))return h(t,e),p(n,t.elm,r),a(l)&&function(t,e,n,r){var a,s=t;for(;s.componentInstance;)if(o(a=(s=s.componentInstance._vnode).data)&&o(a=a.transition)){for(a=0;a<i.activate.length;++a)i.activate[a](fi,s);e.push(s);break}p(n,t.elm,r)}(t,e,n,r),!0}}(t,e,n,r)){var d=t.data,m=t.children,v=t.tag;o(v)?(t.elm=t.ns?c.createElementNS(t.ns,v):c.createElement(v,t),b(t),f(t,m,e),o(d)&&g(t,e),p(n,t.elm,r)):a(t.isComment)?(t.elm=c.createComment(t.text),p(n,t.elm,r)):(t.elm=c.createTextNode(t.text),p(n,t.elm,r))}}function h(t,e){o(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,m(t)?(g(t,e),b(t)):(pi(t),e.push(t))}function p(t,e,n){o(t)&&(o(n)?c.parentNode(n)===t&&c.insertBefore(t,e,n):c.appendChild(t,e))}function f(t,e,n){if(Array.isArray(e)){0;for(var i=0;i<e.length;++i)d(e[i],n,t.elm,null,!0,e,i)}else s(t.text)&&c.appendChild(t.elm,c.createTextNode(String(t.text)))}function m(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return o(t.tag)}function g(t,n){for(var r=0;r<i.create.length;++r)i.create[r](fi,t);o(e=t.data.hook)&&(o(e.create)&&e.create(fi,t),o(e.insert)&&n.push(t))}function b(t){var e;if(o(e=t.fnScopeId))c.setStyleScope(t.elm,e);else for(var n=t;n;)o(e=n.context)&&o(e=e.$options._scopeId)&&c.setStyleScope(t.elm,e),n=n.parent;o(e=on)&&e!==t.context&&e!==t.fnContext&&o(e=e.$options._scopeId)&&c.setStyleScope(t.elm,e)}function y(t,e,n,i,r,o){for(;i<=r;++i)d(n[i],o,t,e,!1,n,i)}function _(t){var e,n,r=t.data;if(o(r))for(o(e=r.hook)&&o(e=e.destroy)&&e(t),e=0;e<i.destroy.length;++e)i.destroy[e](t);if(o(e=t.children))for(n=0;n<t.children.length;++n)_(t.children[n])}function w(t,e,n){for(;e<=n;++e){var i=t[e];o(i)&&(o(i.tag)?(x(i),_(i)):u(i.elm))}}function x(t,e){if(o(e)||o(t.data)){var n,r=i.remove.length+1;for(o(e)?e.listeners+=r:e=function(t,e){function n(){0==--n.listeners&&u(t)}return n.listeners=e,n}(t.elm,r),o(n=t.componentInstance)&&o(n=n._vnode)&&o(n.data)&&x(n,e),n=0;n<i.remove.length;++n)i.remove[n](t,e);o(n=t.data.hook)&&o(n=n.remove)?n(t,e):e()}else u(t.elm)}function C(t,e,n,i){for(var r=n;r<i;r++){var a=e[r];if(o(a)&&vi(t,a))return r}}function S(t,e,n,s,l,u){if(t!==e){o(e.elm)&&o(s)&&(e=s[l]=wt(e));var h=e.elm=t.elm;if(a(t.isAsyncPlaceholder))o(e.asyncFactory.resolved)?O(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(a(e.isStatic)&&a(t.isStatic)&&e.key===t.key&&(a(e.isCloned)||a(e.isOnce)))e.componentInstance=t.componentInstance;else{var p,f=e.data;o(f)&&o(p=f.hook)&&o(p=p.prepatch)&&p(t,e);var v=t.children,g=e.children;if(o(f)&&m(e)){for(p=0;p<i.update.length;++p)i.update[p](t,e);o(p=f.hook)&&o(p=p.update)&&p(t,e)}r(e.text)?o(v)&&o(g)?v!==g&&function(t,e,n,i,a){var s,l,u,h=0,p=0,f=e.length-1,m=e[0],v=e[f],g=n.length-1,b=n[0],_=n[g],x=!a;for(;h<=f&&p<=g;)r(m)?m=e[++h]:r(v)?v=e[--f]:vi(m,b)?(S(m,b,i,n,p),m=e[++h],b=n[++p]):vi(v,_)?(S(v,_,i,n,g),v=e[--f],_=n[--g]):vi(m,_)?(S(m,_,i,n,g),x&&c.insertBefore(t,m.elm,c.nextSibling(v.elm)),m=e[++h],_=n[--g]):vi(v,b)?(S(v,b,i,n,p),x&&c.insertBefore(t,v.elm,m.elm),v=e[--f],b=n[++p]):(r(s)&&(s=gi(e,h,f)),r(l=o(b.key)?s[b.key]:C(b,e,h,f))?d(b,i,t,m.elm,!1,n,p):vi(u=e[l],b)?(S(u,b,i,n,p),e[l]=void 0,x&&c.insertBefore(t,u.elm,m.elm)):d(b,i,t,m.elm,!1,n,p),b=n[++p]);h>f?y(t,r(n[g+1])?null:n[g+1].elm,n,p,g,i):p>g&&w(e,h,f)}(h,v,g,n,u):o(g)?(o(t.text)&&c.setTextContent(h,""),y(h,null,g,0,g.length-1,n)):o(v)?w(v,0,v.length-1):o(t.text)&&c.setTextContent(h,""):t.text!==e.text&&c.setTextContent(h,e.text),o(f)&&o(p=f.hook)&&o(p=p.postpatch)&&p(t,e)}}}function E(t,e,n){if(a(n)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var i=0;i<e.length;++i)e[i].data.hook.insert(e[i])}var T=v("attrs,class,staticClass,staticStyle,key");function O(t,e,n,i){var r,s=e.tag,l=e.data,c=e.children;if(i=i||l&&l.pre,e.elm=t,a(e.isComment)&&o(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(o(l)&&(o(r=l.hook)&&o(r=r.init)&&r(e,!0),o(r=e.componentInstance)))return h(e,n),!0;if(o(s)){if(o(c))if(t.hasChildNodes())if(o(r=l)&&o(r=r.domProps)&&o(r=r.innerHTML)){if(r!==t.innerHTML)return!1}else{for(var u=!0,d=t.firstChild,p=0;p<c.length;p++){if(!d||!O(d,c[p],n,i)){u=!1;break}d=d.nextSibling}if(!u||d)return!1}else f(e,c,n);if(o(l)){var m=!1;for(var v in l)if(!T(v)){m=!0,g(e,n);break}!m&&l.class&&se(l.class)}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,s){if(!r(e)){var l,u=!1,h=[];if(r(t))u=!0,d(e,h);else{var p=o(t.nodeType);if(!p&&vi(t,e))S(t,e,h,null,null,s);else{if(p){if(1===t.nodeType&&t.hasAttribute(F)&&(t.removeAttribute(F),n=!0),a(n)&&O(t,e,h))return E(e,h,!0),t;l=t,t=new gt(c.tagName(l).toLowerCase(),{},[],void 0,l)}var f=t.elm,v=c.parentNode(f);if(d(e,h,f._leaveCb?null:v,c.nextSibling(f)),o(e.parent))for(var g=e.parent,b=m(e);g;){for(var y=0;y<i.destroy.length;++y)i.destroy[y](g);if(g.elm=e.elm,b){for(var x=0;x<i.create.length;++x)i.create[x](fi,g);var C=g.data.hook.insert;if(C.merged)for(var T=1;T<C.fns.length;T++)C.fns[T]()}else pi(g);g=g.parent}o(v)?w([t],0,0):o(t.tag)&&_(t)}}return E(e,h,u),e.elm}o(t)&&_(t)}}({nodeOps:di,modules:[ki,ji,fr,gr,kr,G?{create:to,activate:to,remove:function(t,e){!0!==t.data.show?Zr(t,e):e()}}:{}].concat(Si)});Q&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&co(t,"input")}));var no={inserted:function(t,e,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?he(n,"postpatch",(function(){no.componentUpdated(t,e,n)})):io(t,e,n.context),t._vOptions=[].map.call(t.options,ao)):("textarea"===n.tag||ci(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",so),t.addEventListener("compositionend",lo),t.addEventListener("change",lo),Q&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){io(t,e,n.context);var i=t._vOptions,r=t._vOptions=[].map.call(t.options,ao);if(r.some((function(t,e){return!I(t,i[e])})))(t.multiple?e.value.some((function(t){return oo(t,r)})):e.value!==e.oldValue&&oo(e.value,r))&&co(t,"change")}}};function io(t,e,n){ro(t,e,n),(J||tt)&&setTimeout((function(){ro(t,e,n)}),0)}function ro(t,e,n){var i=e.value,r=t.multiple;if(!r||Array.isArray(i)){for(var o,a,s=0,l=t.options.length;s<l;s++)if(a=t.options[s],r)o=j(i,ao(a))>-1,a.selected!==o&&(a.selected=o);else if(I(ao(a),i))return void(t.selectedIndex!==s&&(t.selectedIndex=s));r||(t.selectedIndex=-1)}}function oo(t,e){return e.every((function(e){return!I(e,t)}))}function ao(t){return"_value"in t?t._value:t.value}function so(t){t.target.composing=!0}function lo(t){t.target.composing&&(t.target.composing=!1,co(t.target,"input"))}function co(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function uo(t){return!t.componentInstance||t.data&&t.data.transition?t:uo(t.componentInstance._vnode)}var ho={bind:function(t,e,n){var i=e.value,r=(n=uo(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;i&&r?(n.data.show=!0,Kr(n,(function(){t.style.display=o}))):t.style.display=i?o:"none"},update:function(t,e,n){var i=e.value;!i!=!e.oldValue&&((n=uo(n)).data&&n.data.transition?(n.data.show=!0,i?Kr(n,(function(){t.style.display=t.__vOriginalDisplay})):Zr(n,(function(){t.style.display="none"}))):t.style.display=i?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,i,r){r||(t.style.display=t.__vOriginalDisplay)}},po={model:no,show:ho},fo={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function mo(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?mo(Qe(e.children)):t}function vo(t){var e={},n=t.$options;for(var i in n.propsData)e[i]=t[i];var r=n._parentListeners;for(var o in r)e[S(o)]=r[o];return e}function go(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var bo=function(t){return t.tag||_e(t)},yo=function(t){return"show"===t.name},_o={name:"transition",props:fo,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(bo)).length){0;var i=this.mode;0;var r=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return r;var o=mo(r);if(!o)return r;if(this._leaving)return go(t,r);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var l=(o.data||(o.data={})).transition=vo(this),c=this._vnode,u=mo(c);if(o.data.directives&&o.data.directives.some(yo)&&(o.data.show=!0),u&&u.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,u)&&!_e(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=P({},l);if("out-in"===i)return this._leaving=!0,he(d,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),go(t,r);if("in-out"===i){if(_e(o))return c;var h,p=function(){h()};he(l,"afterEnter",p),he(l,"enterCancelled",p),he(d,"delayLeave",(function(t){h=t}))}}return r}}},wo=P({tag:String,moveClass:String},fo);function xo(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Co(t){t.data.newPos=t.elm.getBoundingClientRect()}function So(t){var e=t.data.pos,n=t.data.newPos,i=e.left-n.left,r=e.top-n.top;if(i||r){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+i+"px,"+r+"px)",o.transitionDuration="0s"}}delete wo.mode;var Eo={Transition:_o,TransitionGroup:{props:wo,beforeMount:function(){var t=this,e=this._update;this._update=function(n,i){var r=an(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,r(),e.call(t,n,i)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],a=vo(this),s=0;s<r.length;s++){var l=r[s];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))o.push(l),n[l.key]=l,(l.data||(l.data={})).transition=a;else;}if(i){for(var c=[],u=[],d=0;d<i.length;d++){var h=i[d];h.data.transition=a,h.data.pos=h.elm.getBoundingClientRect(),n[h.key]?c.push(h):u.push(h)}this.kept=t(e,null,c),this.removed=u}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(xo),t.forEach(Co),t.forEach(So),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var n=t.elm,i=n.style;Hr(n,e),i.transform=i.WebkitTransform=i.transitionDuration="",n.addEventListener(Fr,n._moveCb=function t(i){i&&i.target!==n||i&&!/transform$/.test(i.propertyName)||(n.removeEventListener(Fr,t),n._moveCb=null,Vr(n,e))})}})))},methods:{hasMove:function(t,e){if(!Rr)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){Mr(n,t)})),Pr(n,e),n.style.display="none",this.$el.appendChild(n);var i=Wr(n);return this.$el.removeChild(n),this._hasMove=i.hasTransform}}}};Dn.config.mustUseProp=Vn,Dn.config.isReservedTag=ai,Dn.config.isReservedAttr=Un,Dn.config.getTagNamespace=si,Dn.config.isUnknownElement=function(t){if(!G)return!0;if(ai(t))return!1;if(t=t.toLowerCase(),null!=li[t])return li[t];var e=document.createElement(t);return t.indexOf("-")>-1?li[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:li[t]=/HTMLUnknownElement/.test(e.toString())},P(Dn.options.directives,po),P(Dn.options.components,Eo),Dn.prototype.__patch__=G?eo:L,Dn.prototype.$mount=function(t,e){return function(t,e,n){var i;return t.$el=e,t.$options.render||(t.$options.render=yt),un(t,"beforeMount"),i=function(){t._update(t._render(),n)},new xn(t,i,L,{before:function(){t._isMounted&&!t._isDestroyed&&un(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,un(t,"mounted")),t}(this,t=t&&G?ui(t):void 0,e)},G&&setTimeout((function(){$.devtools&&st&&st.emit("init",Dn)}),0);var To=/\{\{((?:.|\r?\n)+?)\}\}/g,Oo=/[-.*+?^${}()|[\]\/\\]/g,ko=x((function(t){var e=t[0].replace(Oo,"\\$&"),n=t[1].replace(Oo,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")}));var Ao={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var n=Xi(t,"class");n&&(t.staticClass=JSON.stringify(n));var i=Gi(t,"class",!1);i&&(t.classBinding=i)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}};var Po,Mo={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var n=Xi(t,"style");n&&(t.staticStyle=JSON.stringify(br(n)));var i=Gi(t,"style",!1);i&&(t.styleBinding=i)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}},Lo=function(t){return(Po=Po||document.createElement("div")).innerHTML=t,Po.textContent},Do=v("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Ro=v("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Io=v("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),jo=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,No=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Fo="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+U.source+"]*",zo="((?:"+Fo+"\\:)?"+Fo+")",Bo=new RegExp("^<"+zo),$o=/^\s*(\/?)>/,Uo=new RegExp("^<\\/"+zo+"[^>]*>"),Ho=/^<!DOCTYPE [^>]+>/i,Vo=/^<!\--/,Yo=/^<!\[/,qo=v("script,style,textarea",!0),Wo={},Go={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"},Xo=/&(?:lt|gt|quot|amp|#39);/g,Ko=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Zo=v("pre,textarea",!0),Jo=function(t,e){return t&&Zo(t)&&"\n"===e[0]};function Qo(t,e){var n=e?Ko:Xo;return t.replace(n,(function(t){return Go[t]}))}var ta,ea,na,ia,ra,oa,aa,sa,la=/^@|^v-on:/,ca=/^v-|^@|^:|^#/,ua=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,da=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,ha=/^\(|\)$/g,pa=/^\[.*\]$/,fa=/:(.*)$/,ma=/^:|^\.|^v-bind:/,va=/\.[^.\]]+(?=[^\]]*$)/g,ga=/^v-slot(:|$)|^#/,ba=/[\r\n]/,ya=/[ \f\t\r\n]+/g,_a=x(Lo),wa="_empty_";function xa(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:Aa(e),rawAttrsMap:{},parent:n,children:[]}}function Ca(t,e){ta=e.warn||Bi,oa=e.isPreTag||D,aa=e.mustUseProp||D,sa=e.getTagNamespace||D;var n=e.isReservedTag||D;(function(t){return!(!(t.component||t.attrsMap[":is"]||t.attrsMap["v-bind:is"])&&(t.attrsMap.is?n(t.attrsMap.is):n(t.tag)))}),na=$i(e.modules,"transformNode"),ia=$i(e.modules,"preTransformNode"),ra=$i(e.modules,"postTransformNode"),ea=e.delimiters;var i,r,o=[],a=!1!==e.preserveWhitespace,s=e.whitespace,l=!1,c=!1;function u(t){if(d(t),l||t.processed||(t=Sa(t,e)),o.length||t===i||i.if&&(t.elseif||t.else)&&Ta(i,{exp:t.elseif,block:t}),r&&!t.forbidden)if(t.elseif||t.else)a=t,s=function(t){for(var e=t.length;e--;){if(1===t[e].type)return t[e];t.pop()}}(r.children),s&&s.if&&Ta(s,{exp:a.elseif,block:a});else{if(t.slotScope){var n=t.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[n]=t}r.children.push(t),t.parent=r}var a,s;t.children=t.children.filter((function(t){return!t.slotScope})),d(t),t.pre&&(l=!1),oa(t.tag)&&(c=!1);for(var u=0;u<ra.length;u++)ra[u](t,e)}function d(t){if(!c)for(var e;(e=t.children[t.children.length-1])&&3===e.type&&" "===e.text;)t.children.pop()}return function(t,e){for(var n,i,r=[],o=e.expectHTML,a=e.isUnaryTag||D,s=e.canBeLeftOpenTag||D,l=0;t;){if(n=t,i&&qo(i)){var c=0,u=i.toLowerCase(),d=Wo[u]||(Wo[u]=new RegExp("([\\s\\S]*?)(</"+u+"[^>]*>)","i")),h=t.replace(d,(function(t,n,i){return c=i.length,qo(u)||"noscript"===u||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),Jo(u,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""}));l+=t.length-h.length,t=h,T(u,l-c,l)}else{var p=t.indexOf("<");if(0===p){if(Vo.test(t)){var f=t.indexOf("--\x3e");if(f>=0){e.shouldKeepComment&&e.comment(t.substring(4,f),l,l+f+3),C(f+3);continue}}if(Yo.test(t)){var m=t.indexOf("]>");if(m>=0){C(m+2);continue}}var v=t.match(Ho);if(v){C(v[0].length);continue}var g=t.match(Uo);if(g){var b=l;C(g[0].length),T(g[1],b,l);continue}var y=S();if(y){E(y),Jo(y.tagName,t)&&C(1);continue}}var _=void 0,w=void 0,x=void 0;if(p>=0){for(w=t.slice(p);!(Uo.test(w)||Bo.test(w)||Vo.test(w)||Yo.test(w)||(x=w.indexOf("<",1))<0);)p+=x,w=t.slice(p);_=t.substring(0,p)}p<0&&(_=t),_&&C(_.length),e.chars&&_&&e.chars(_,l-_.length,l)}if(t===n){e.chars&&e.chars(t);break}}function C(e){l+=e,t=t.substring(e)}function S(){var e=t.match(Bo);if(e){var n,i,r={tagName:e[1],attrs:[],start:l};for(C(e[0].length);!(n=t.match($o))&&(i=t.match(No)||t.match(jo));)i.start=l,C(i[0].length),i.end=l,r.attrs.push(i);if(n)return r.unarySlash=n[1],C(n[0].length),r.end=l,r}}function E(t){var n=t.tagName,l=t.unarySlash;o&&("p"===i&&Io(n)&&T(i),s(n)&&i===n&&T(n));for(var c=a(n)||!!l,u=t.attrs.length,d=new Array(u),h=0;h<u;h++){var p=t.attrs[h],f=p[3]||p[4]||p[5]||"",m="a"===n&&"href"===p[1]?e.shouldDecodeNewlinesForHref:e.shouldDecodeNewlines;d[h]={name:p[1],value:Qo(f,m)}}c||(r.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:d,start:t.start,end:t.end}),i=n),e.start&&e.start(n,d,c,t.start,t.end)}function T(t,n,o){var a,s;if(null==n&&(n=l),null==o&&(o=l),t)for(s=t.toLowerCase(),a=r.length-1;a>=0&&r[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var c=r.length-1;c>=a;c--)e.end&&e.end(r[c].tag,n,o);r.length=a,i=a&&r[a-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,o):"p"===s&&(e.start&&e.start(t,[],!1,n,o),e.end&&e.end(t,n,o))}T()}(t,{warn:ta,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,n,a,s,d){var h=r&&r.ns||sa(t);J&&"svg"===h&&(n=function(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];Pa.test(i.name)||(i.name=i.name.replace(Ma,""),e.push(i))}return e}(n));var p,f=xa(t,n,r);h&&(f.ns=h),"style"!==(p=f).tag&&("script"!==p.tag||p.attrsMap.type&&"text/javascript"!==p.attrsMap.type)||at()||(f.forbidden=!0);for(var m=0;m<ia.length;m++)f=ia[m](f,e)||f;l||(!function(t){null!=Xi(t,"v-pre")&&(t.pre=!0)}(f),f.pre&&(l=!0)),oa(f.tag)&&(c=!0),l?function(t){var e=t.attrsList,n=e.length;if(n)for(var i=t.attrs=new Array(n),r=0;r<n;r++)i[r]={name:e[r].name,value:JSON.stringify(e[r].value)},null!=e[r].start&&(i[r].start=e[r].start,i[r].end=e[r].end);else t.pre||(t.plain=!0)}(f):f.processed||(Ea(f),function(t){var e=Xi(t,"v-if");if(e)t.if=e,Ta(t,{exp:e,block:t});else{null!=Xi(t,"v-else")&&(t.else=!0);var n=Xi(t,"v-else-if");n&&(t.elseif=n)}}(f),function(t){var e=Xi(t,"v-once");null!=e&&(t.once=!0)}(f)),i||(i=f),a?u(f):(r=f,o.push(f))},end:function(t,e,n){var i=o[o.length-1];o.length-=1,r=o[o.length-1],u(i)},chars:function(t,e,n){if(r&&(!J||"textarea"!==r.tag||r.attrsMap.placeholder!==t)){var i,o,u,d=r.children;if(t=c||t.trim()?"script"===(i=r).tag||"style"===i.tag?t:_a(t):d.length?s?"condense"===s&&ba.test(t)?"":" ":a?" ":"":"")c||"condense"!==s||(t=t.replace(ya," ")),!l&&" "!==t&&(o=function(t,e){var n=e?ko(e):To;if(n.test(t)){for(var i,r,o,a=[],s=[],l=n.lastIndex=0;i=n.exec(t);){(r=i.index)>l&&(s.push(o=t.slice(l,r)),a.push(JSON.stringify(o)));var c=Fi(i[1].trim());a.push("_s("+c+")"),s.push({"@binding":c}),l=r+i[0].length}return l<t.length&&(s.push(o=t.slice(l)),a.push(JSON.stringify(o))),{expression:a.join("+"),tokens:s}}}(t,ea))?u={type:2,expression:o.expression,tokens:o.tokens,text:t}:" "===t&&d.length&&" "===d[d.length-1].text||(u={type:3,text:t}),u&&d.push(u)}},comment:function(t,e,n){if(r){var i={type:3,text:t,isComment:!0};0,r.children.push(i)}}}),i}function Sa(t,e){var n;!function(t){var e=Gi(t,"key");if(e){t.key=e}}(t),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,function(t){var e=Gi(t,"ref");e&&(t.ref=e,t.refInFor=function(t){var e=t;for(;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}(t))}(t),function(t){var e;"template"===t.tag?(e=Xi(t,"scope"),t.slotScope=e||Xi(t,"slot-scope")):(e=Xi(t,"slot-scope"))&&(t.slotScope=e);var n=Gi(t,"slot");n&&(t.slotTarget='""'===n?'"default"':n,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||Hi(t,"slot",n,function(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}(t,"slot")));if("template"===t.tag){var i=Ki(t,ga);if(i){0;var r=Oa(i),o=r.name,a=r.dynamic;t.slotTarget=o,t.slotTargetDynamic=a,t.slotScope=i.value||wa}}else{var s=Ki(t,ga);if(s){0;var l=t.scopedSlots||(t.scopedSlots={}),c=Oa(s),u=c.name,d=c.dynamic,h=l[u]=xa("template",[],t);h.slotTarget=u,h.slotTargetDynamic=d,h.children=t.children.filter((function(t){if(!t.slotScope)return t.parent=h,!0})),h.slotScope=s.value||wa,t.children=[],t.plain=!1}}}(t),"slot"===(n=t).tag&&(n.slotName=Gi(n,"name")),function(t){var e;(e=Gi(t,"is"))&&(t.component=e);null!=Xi(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var i=0;i<na.length;i++)t=na[i](t,e)||t;return function(t){var e,n,i,r,o,a,s,l,c=t.attrsList;for(e=0,n=c.length;e<n;e++){if(i=r=c[e].name,o=c[e].value,ca.test(i))if(t.hasBindings=!0,(a=ka(i.replace(ca,"")))&&(i=i.replace(va,"")),ma.test(i))i=i.replace(ma,""),o=Fi(o),(l=pa.test(i))&&(i=i.slice(1,-1)),a&&(a.prop&&!l&&"innerHtml"===(i=S(i))&&(i="innerHTML"),a.camel&&!l&&(i=S(i)),a.sync&&(s=Qi(o,"$event"),l?Wi(t,'"update:"+('+i+")",s,null,!1,0,c[e],!0):(Wi(t,"update:"+S(i),s,null,!1,0,c[e]),O(i)!==S(i)&&Wi(t,"update:"+O(i),s,null,!1,0,c[e])))),a&&a.prop||!t.component&&aa(t.tag,t.attrsMap.type,i)?Ui(t,i,o,c[e],l):Hi(t,i,o,c[e],l);else if(la.test(i))i=i.replace(la,""),(l=pa.test(i))&&(i=i.slice(1,-1)),Wi(t,i,o,a,!1,0,c[e],l);else{var u=(i=i.replace(ca,"")).match(fa),d=u&&u[1];l=!1,d&&(i=i.slice(0,-(d.length+1)),pa.test(d)&&(d=d.slice(1,-1),l=!0)),Yi(t,i,r,o,d,l,a,c[e])}else Hi(t,i,JSON.stringify(o),c[e]),!t.component&&"muted"===i&&aa(t.tag,t.attrsMap.type,i)&&Ui(t,i,"true",c[e])}}(t),t}function Ea(t){var e;if(e=Xi(t,"v-for")){var n=function(t){var e=t.match(ua);if(!e)return;var n={};n.for=e[2].trim();var i=e[1].trim().replace(ha,""),r=i.match(da);r?(n.alias=i.replace(da,"").trim(),n.iterator1=r[1].trim(),r[2]&&(n.iterator2=r[2].trim())):n.alias=i;return n}(e);n&&P(t,n)}}function Ta(t,e){t.ifConditions||(t.ifConditions=[]),t.ifConditions.push(e)}function Oa(t){var e=t.name.replace(ga,"");return e||"#"!==t.name[0]&&(e="default"),pa.test(e)?{name:e.slice(1,-1),dynamic:!0}:{name:'"'+e+'"',dynamic:!1}}function ka(t){var e=t.match(va);if(e){var n={};return e.forEach((function(t){n[t.slice(1)]=!0})),n}}function Aa(t){for(var e={},n=0,i=t.length;n<i;n++)e[t[n].name]=t[n].value;return e}var Pa=/^xmlns:NS\d+/,Ma=/^NS\d+:/;function La(t){return xa(t.tag,t.attrsList.slice(),t.parent)}var Da=[Ao,Mo,{preTransformNode:function(t,e){if("input"===t.tag){var n,i=t.attrsMap;if(!i["v-model"])return;if((i[":type"]||i["v-bind:type"])&&(n=Gi(t,"type")),i.type||n||!i["v-bind"]||(n="("+i["v-bind"]+").type"),n){var r=Xi(t,"v-if",!0),o=r?"&&("+r+")":"",a=null!=Xi(t,"v-else",!0),s=Xi(t,"v-else-if",!0),l=La(t);Ea(l),Vi(l,"type","checkbox"),Sa(l,e),l.processed=!0,l.if="("+n+")==='checkbox'"+o,Ta(l,{exp:l.if,block:l});var c=La(t);Xi(c,"v-for",!0),Vi(c,"type","radio"),Sa(c,e),Ta(l,{exp:"("+n+")==='radio'"+o,block:c});var u=La(t);return Xi(u,"v-for",!0),Vi(u,":type",n),Sa(u,e),Ta(l,{exp:r,block:u}),a?l.else=!0:s&&(l.elseif=s),l}}}}];var Ra,Ia,ja={model:function(t,e,n){n;var i=e.value,r=e.modifiers,o=t.tag,a=t.attrsMap.type;if(t.component)return Ji(t,i,r),!1;if("select"===o)!function(t,e,n){var i=n&&n.number,r='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(i?"_n(val)":"val")+"});";r=r+" "+Qi(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Wi(t,"change",r,null,!0)}(t,i,r);else if("input"===o&&"checkbox"===a)!function(t,e,n){var i=n&&n.number,r=Gi(t,"value")||"null",o=Gi(t,"true-value")||"true",a=Gi(t,"false-value")||"false";Ui(t,"checked","Array.isArray("+e+")?_i("+e+","+r+")>-1"+("true"===o?":("+e+")":":_q("+e+","+o+")")),Wi(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(i?"_n("+r+")":r)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Qi(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Qi(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Qi(e,"$$c")+"}",null,!0)}(t,i,r);else if("input"===o&&"radio"===a)!function(t,e,n){var i=n&&n.number,r=Gi(t,"value")||"null";Ui(t,"checked","_q("+e+","+(r=i?"_n("+r+")":r)+")"),Wi(t,"change",Qi(e,r),null,!0)}(t,i,r);else if("input"===o||"textarea"===o)!function(t,e,n){var i=t.attrsMap.type;0;var r=n||{},o=r.lazy,a=r.number,s=r.trim,l=!o&&"range"!==i,c=o?"change":"range"===i?ar:"input",u="$event.target.value";s&&(u="$event.target.value.trim()");a&&(u="_n("+u+")");var d=Qi(e,u);l&&(d="if($event.target.composing)return;"+d);Ui(t,"value","("+e+")"),Wi(t,c,d,null,!0),(s||a)&&Wi(t,"blur","$forceUpdate()")}(t,i,r);else{if(!$.isReservedTag(o))return Ji(t,i,r),!1}return!0},text:function(t,e){e.value&&Ui(t,"textContent","_s("+e.value+")",e)},html:function(t,e){e.value&&Ui(t,"innerHTML","_s("+e.value+")",e)}},Na={expectHTML:!0,modules:Da,directives:ja,isPreTag:function(t){return"pre"===t},isUnaryTag:Do,mustUseProp:Vn,canBeLeftOpenTag:Ro,isReservedTag:ai,getTagNamespace:si,staticKeys:function(t){return t.reduce((function(t,e){return t.concat(e.staticKeys||[])}),[]).join(",")}(Da)},Fa=x((function(t){return v("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}));function za(t,e){t&&(Ra=Fa(e.staticKeys||""),Ia=e.isReservedTag||D,Ba(t),$a(t,!1))}function Ba(t){if(t.static=function(t){if(2===t.type)return!1;if(3===t.type)return!0;return!(!t.pre&&(t.hasBindings||t.if||t.for||g(t.tag)||!Ia(t.tag)||function(t){for(;t.parent;){if("template"!==(t=t.parent).tag)return!1;if(t.for)return!0}return!1}(t)||!Object.keys(t).every(Ra)))}(t),1===t.type){if(!Ia(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var e=0,n=t.children.length;e<n;e++){var i=t.children[e];Ba(i),i.static||(t.static=!1)}if(t.ifConditions)for(var r=1,o=t.ifConditions.length;r<o;r++){var a=t.ifConditions[r].block;Ba(a),a.static||(t.static=!1)}}}function $a(t,e){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=e),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var n=0,i=t.children.length;n<i;n++)$a(t.children[n],e||!!t.for);if(t.ifConditions)for(var r=1,o=t.ifConditions.length;r<o;r++)$a(t.ifConditions[r].block,e)}}var Ua=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,Ha=/\([^)]*?\);*$/,Va=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Ya={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},qa={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Wa=function(t){return"if("+t+")return null;"},Ga={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Wa("$event.target !== $event.currentTarget"),ctrl:Wa("!$event.ctrlKey"),shift:Wa("!$event.shiftKey"),alt:Wa("!$event.altKey"),meta:Wa("!$event.metaKey"),left:Wa("'button' in $event && $event.button !== 0"),middle:Wa("'button' in $event && $event.button !== 1"),right:Wa("'button' in $event && $event.button !== 2")};function Xa(t,e){var n=e?"nativeOn:":"on:",i="",r="";for(var o in t){var a=Ka(t[o]);t[o]&&t[o].dynamic?r+=o+","+a+",":i+='"'+o+'":'+a+","}return i="{"+i.slice(0,-1)+"}",r?n+"_d("+i+",["+r.slice(0,-1)+"])":n+i}function Ka(t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map((function(t){return Ka(t)})).join(",")+"]";var e=Va.test(t.value),n=Ua.test(t.value),i=Va.test(t.value.replace(Ha,""));if(t.modifiers){var r="",o="",a=[];for(var s in t.modifiers)if(Ga[s])o+=Ga[s],Ya[s]&&a.push(s);else if("exact"===s){var l=t.modifiers;o+=Wa(["ctrl","shift","alt","meta"].filter((function(t){return!l[t]})).map((function(t){return"$event."+t+"Key"})).join("||"))}else a.push(s);return a.length&&(r+=function(t){return"if(!$event.type.indexOf('key')&&"+t.map(Za).join("&&")+")return null;"}(a)),o&&(r+=o),"function($event){"+r+(e?"return "+t.value+".apply(null, arguments)":n?"return ("+t.value+").apply(null, arguments)":i?"return "+t.value:t.value)+"}"}return e||n?t.value:"function($event){"+(i?"return "+t.value:t.value)+"}"}function Za(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var n=Ya[t],i=qa[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(i)+")"}var Ja={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(n){return"_b("+n+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:L},Qa=function(t){this.options=t,this.warn=t.warn||Bi,this.transforms=$i(t.modules,"transformCode"),this.dataGenFns=$i(t.modules,"genData"),this.directives=P(P({},Ja),t.directives);var e=t.isReservedTag||D;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function ts(t,e){var n=new Qa(e);return{render:"with(this){return "+(t?"script"===t.tag?"null":es(t,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function es(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return ns(t,e);if(t.once&&!t.onceProcessed)return is(t,e);if(t.for&&!t.forProcessed)return as(t,e);if(t.if&&!t.ifProcessed)return rs(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var n=t.slotName||'"default"',i=us(t,e),r="_t("+n+(i?",function(){return "+i+"}":""),o=t.attrs||t.dynamicAttrs?ps((t.attrs||[]).concat(t.dynamicAttrs||[]).map((function(t){return{name:S(t.name),value:t.value,dynamic:t.dynamic}}))):null,a=t.attrsMap["v-bind"];!o&&!a||i||(r+=",null");o&&(r+=","+o);a&&(r+=(o?"":",null")+","+a);return r+")"}(t,e);var n;if(t.component)n=function(t,e,n){var i=e.inlineTemplate?null:us(e,n,!0);return"_c("+t+","+ss(e,n)+(i?","+i:"")+")"}(t.component,t,e);else{var i;(!t.plain||t.pre&&e.maybeComponent(t))&&(i=ss(t,e));var r=t.inlineTemplate?null:us(t,e,!0);n="_c('"+t.tag+"'"+(i?","+i:"")+(r?","+r:"")+")"}for(var o=0;o<e.transforms.length;o++)n=e.transforms[o](t,n);return n}return us(t,e)||"void 0"}function ns(t,e){t.staticProcessed=!0;var n=e.pre;return t.pre&&(e.pre=t.pre),e.staticRenderFns.push("with(this){return "+es(t,e)+"}"),e.pre=n,"_m("+(e.staticRenderFns.length-1)+(t.staticInFor?",true":"")+")"}function is(t,e){if(t.onceProcessed=!0,t.if&&!t.ifProcessed)return rs(t,e);if(t.staticInFor){for(var n="",i=t.parent;i;){if(i.for){n=i.key;break}i=i.parent}return n?"_o("+es(t,e)+","+e.onceId+++","+n+")":es(t,e)}return ns(t,e)}function rs(t,e,n,i){return t.ifProcessed=!0,os(t.ifConditions.slice(),e,n,i)}function os(t,e,n,i){if(!t.length)return i||"_e()";var r=t.shift();return r.exp?"("+r.exp+")?"+o(r.block)+":"+os(t,e,n,i):""+o(r.block);function o(t){return n?n(t,e):t.once?is(t,e):es(t,e)}}function as(t,e,n,i){var r=t.for,o=t.alias,a=t.iterator1?","+t.iterator1:"",s=t.iterator2?","+t.iterator2:"";return t.forProcessed=!0,(i||"_l")+"(("+r+"),function("+o+a+s+"){return "+(n||es)(t,e)+"})"}function ss(t,e){var n="{",i=function(t,e){var n=t.directives;if(!n)return;var i,r,o,a,s="directives:[",l=!1;for(i=0,r=n.length;i<r;i++){o=n[i],a=!0;var c=e.directives[o.name];c&&(a=!!c(t,o,e.warn)),a&&(l=!0,s+='{name:"'+o.name+'",rawName:"'+o.rawName+'"'+(o.value?",value:("+o.value+"),expression:"+JSON.stringify(o.value):"")+(o.arg?",arg:"+(o.isDynamicArg?o.arg:'"'+o.arg+'"'):"")+(o.modifiers?",modifiers:"+JSON.stringify(o.modifiers):"")+"},")}if(l)return s.slice(0,-1)+"]"}(t,e);i&&(n+=i+","),t.key&&(n+="key:"+t.key+","),t.ref&&(n+="ref:"+t.ref+","),t.refInFor&&(n+="refInFor:true,"),t.pre&&(n+="pre:true,"),t.component&&(n+='tag:"'+t.tag+'",');for(var r=0;r<e.dataGenFns.length;r++)n+=e.dataGenFns[r](t);if(t.attrs&&(n+="attrs:"+ps(t.attrs)+","),t.props&&(n+="domProps:"+ps(t.props)+","),t.events&&(n+=Xa(t.events,!1)+","),t.nativeEvents&&(n+=Xa(t.nativeEvents,!0)+","),t.slotTarget&&!t.slotScope&&(n+="slot:"+t.slotTarget+","),t.scopedSlots&&(n+=function(t,e,n){var i=t.for||Object.keys(e).some((function(t){var n=e[t];return n.slotTargetDynamic||n.if||n.for||ls(n)})),r=!!t.if;if(!i)for(var o=t.parent;o;){if(o.slotScope&&o.slotScope!==wa||o.for){i=!0;break}o.if&&(r=!0),o=o.parent}var a=Object.keys(e).map((function(t){return cs(e[t],n)})).join(",");return"scopedSlots:_u(["+a+"]"+(i?",null,true":"")+(!i&&r?",null,false,"+function(t){var e=5381,n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e>>>0}(a):"")+")"}(t,t.scopedSlots,e)+","),t.model&&(n+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var o=function(t,e){var n=t.children[0];0;if(n&&1===n.type){var i=ts(n,e.options);return"inlineTemplate:{render:function(){"+i.render+"},staticRenderFns:["+i.staticRenderFns.map((function(t){return"function(){"+t+"}"})).join(",")+"]}"}}(t,e);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",t.dynamicAttrs&&(n="_b("+n+',"'+t.tag+'",'+ps(t.dynamicAttrs)+")"),t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function ls(t){return 1===t.type&&("slot"===t.tag||t.children.some(ls))}function cs(t,e){var n=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!n)return rs(t,e,cs,"null");if(t.for&&!t.forProcessed)return as(t,e,cs);var i=t.slotScope===wa?"":String(t.slotScope),r="function("+i+"){return "+("template"===t.tag?t.if&&n?"("+t.if+")?"+(us(t,e)||"undefined")+":undefined":us(t,e)||"undefined":es(t,e))+"}",o=i?"":",proxy:true";return"{key:"+(t.slotTarget||'"default"')+",fn:"+r+o+"}"}function us(t,e,n,i,r){var o=t.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?e.maybeComponent(a)?",1":",0":"";return""+(i||es)(a,e)+s}var l=n?function(t,e){for(var n=0,i=0;i<t.length;i++){var r=t[i];if(1===r.type){if(ds(r)||r.ifConditions&&r.ifConditions.some((function(t){return ds(t.block)}))){n=2;break}(e(r)||r.ifConditions&&r.ifConditions.some((function(t){return e(t.block)})))&&(n=1)}}return n}(o,e.maybeComponent):0,c=r||hs;return"["+o.map((function(t){return c(t,e)})).join(",")+"]"+(l?","+l:"")}}function ds(t){return void 0!==t.for||"template"===t.tag||"slot"===t.tag}function hs(t,e){return 1===t.type?es(t,e):3===t.type&&t.isComment?function(t){return"_e("+JSON.stringify(t.text)+")"}(t):function(t){return"_v("+(2===t.type?t.expression:fs(JSON.stringify(t.text)))+")"}(t)}function ps(t){for(var e="",n="",i=0;i<t.length;i++){var r=t[i],o=fs(r.value);r.dynamic?n+=r.name+","+o+",":e+='"'+r.name+'":'+o+","}return e="{"+e.slice(0,-1)+"}",n?"_d("+e+",["+n.slice(0,-1)+"])":e}function fs(t){return t.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");function ms(t,e){try{return new Function(t)}catch(n){return e.push({err:n,code:t}),L}}function vs(t){var e=Object.create(null);return function(n,i,r){(i=P({},i)).warn;delete i.warn;var o=i.delimiters?String(i.delimiters)+n:n;if(e[o])return e[o];var a=t(n,i);var s={},l=[];return s.render=ms(a.render,l),s.staticRenderFns=a.staticRenderFns.map((function(t){return ms(t,l)})),e[o]=s}}var gs,bs,ys=(gs=function(t,e){var n=Ca(t.trim(),e);!1!==e.optimize&&za(n,e);var i=ts(n,e);return{ast:n,render:i.render,staticRenderFns:i.staticRenderFns}},function(t){function e(e,n){var i=Object.create(t),r=[],o=[];if(n)for(var a in n.modules&&(i.modules=(t.modules||[]).concat(n.modules)),n.directives&&(i.directives=P(Object.create(t.directives||null),n.directives)),n)"modules"!==a&&"directives"!==a&&(i[a]=n[a]);i.warn=function(t,e,n){(n?o:r).push(t)};var s=gs(e.trim(),i);return s.errors=r,s.tips=o,s}return{compile:e,compileToFunctions:vs(e)}}),_s=ys(Na),ws=(_s.compile,_s.compileToFunctions);function xs(t){return(bs=bs||document.createElement("div")).innerHTML=t?'<a href="\n"/>':'<div a="\n"/>',bs.innerHTML.indexOf("&#10;")>0}var Cs=!!G&&xs(!1),Ss=!!G&&xs(!0),Es=x((function(t){var e=ui(t);return e&&e.innerHTML})),Ts=Dn.prototype.$mount;Dn.prototype.$mount=function(t,e){if((t=t&&ui(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var i=n.template;if(i)if("string"==typeof i)"#"===i.charAt(0)&&(i=Es(i));else{if(!i.nodeType)return this;i=i.innerHTML}else t&&(i=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(i){0;var r=ws(i,{outputSourceRange:!1,shouldDecodeNewlines:Cs,shouldDecodeNewlinesForHref:Ss,delimiters:n.delimiters,comments:n.comments},this),o=r.render,a=r.staticRenderFns;n.render=o,n.staticRenderFns=a}}return Ts.call(this,t,e)},Dn.compile=ws;const Os=Dn},432:function(t,e,n){var i;"undefined"!=typeof self&&self,i=function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"01f9":function(t,e,n){"use strict";var i=n("2d00"),r=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),l=n("41a0"),c=n("7f20"),u=n("38fd"),d=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),p="keys",f="values",m=function(){return this};t.exports=function(t,e,n,v,g,b,y){l(n,e,v);var _,w,x,C=function(t){if(!h&&t in O)return O[t];switch(t){case p:case f:return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",E=g==f,T=!1,O=t.prototype,k=O[d]||O["@@iterator"]||g&&O[g],A=k||C(g),P=g?E?C("entries"):A:void 0,M="Array"==e&&O.entries||k;if(M&&(x=u(M.call(new t)))!==Object.prototype&&x.next&&(c(x,S,!0),i||"function"==typeof x[d]||a(x,d,m)),E&&k&&k.name!==f&&(T=!0,A=function(){return k.call(this)}),i&&!y||!h&&!T&&O[d]||a(O,d,A),s[e]=A,s[S]=m,g)if(_={values:E?A:C(f),keys:b?A:C(p),entries:P},y)for(w in _)w in O||o(O,w,_[w]);else r(r.P+r.F*(h||T),e,_);return _}},"02f4":function(t,e,n){var i=n("4588"),r=n("be13");t.exports=function(t){return function(e,n){var o,a,s=String(r(e)),l=i(n),c=s.length;return l<0||l>=c?t?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},"0390":function(t,e,n){"use strict";var i=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},"0bfb":function(t,e,n){"use strict";var i=n("cb7c");t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,n){var i=n("ce10"),r=n("e11e");t.exports=Object.keys||function(t){return i(t,r)}},1495:function(t,e,n){var i=n("86cc"),r=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){r(t);for(var n,a=o(e),s=a.length,l=0;s>l;)i.f(t,n=a[l++],e[n]);return t}},"214f":function(t,e,n){"use strict";n("b0c5");var i=n("2aba"),r=n("32e9"),o=n("79e5"),a=n("be13"),s=n("2b4c"),l=n("520a"),c=s("species"),u=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var h=s(t),p=!o((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),f=p?!o((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[h](""),!e})):void 0;if(!p||!f||"replace"===t&&!u||"split"===t&&!d){var m=/./[h],v=n(a,h,""[t],(function(t,e,n,i,r){return e.exec===l?p&&!r?{done:!0,value:m.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}})),g=v[0],b=v[1];i(String.prototype,t,g),r(RegExp.prototype,h,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}}},"230e":function(t,e,n){var i=n("d3f4"),r=n("7726").document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},"23c6":function(t,e,n){var i=n("2d95"),r=n("2b4c")("toStringTag"),o="Arguments"==i(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),r))?n:o?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"2aba":function(t,e,n){var i=n("7726"),r=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),l="toString",c=(""+s).split(l);n("8378").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var l="function"==typeof n;l&&(o(n,"name")||r(n,"name",e)),t[e]!==n&&(l&&(o(n,a)||r(n,a,t[e]?""+t[e]:c.join(String(e)))),t===i?t[e]=n:s?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2aeb":function(t,e,n){var i=n("cb7c"),r=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},l="prototype",c=function(){var t,e=n("230e")("iframe"),i=o.length;for(e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;i--;)delete c[l][o[i]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[l]=i(t),n=new s,s[l]=null,n[a]=t):n=c(),void 0===e?n:r(n,e)}},"2b4c":function(t,e,n){var i=n("5537")("wks"),r=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o;(t.exports=function(t){return i[t]||(i[t]=a&&o[t]||(a?o:r)("Symbol."+t))}).store=i},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2fdb":function(t,e,n){"use strict";var i=n("5ca1"),r=n("d2c8"),o="includes";i(i.P+i.F*n("5147")(o),"String",{includes:function(t){return!!~r(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,e,n){var i=n("86cc"),r=n("4630");t.exports=n("9e1e")?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"38fd":function(t,e,n){var i=n("69a8"),r=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"41a0":function(t,e,n){"use strict";var i=n("2aeb"),r=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=i(a,{next:r(1,n)}),o(t,e+" Iterator")}},"456d":function(t,e,n){var i=n("4bf8"),r=n("0d58");n("5eda")("keys",(function(){return function(t){return r(i(t))}}))},4588:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"4bf8":function(t,e,n){var i=n("be13");t.exports=function(t){return Object(i(t))}},5147:function(t,e,n){var i=n("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,!"/./"[t](e)}catch(t){}}return!0}},"520a":function(t,e,n){"use strict";var i,r,o=n("0bfb"),a=RegExp.prototype.exec,s=String.prototype.replace,l=a,c="lastIndex",u=(i=/a/,r=/b*/g,a.call(i,"a"),a.call(r,"a"),0!==i[c]||0!==r[c]),d=void 0!==/()??/.exec("")[1];(u||d)&&(l=function(t){var e,n,i,r,l=this;return d&&(n=new RegExp("^"+l.source+"$(?!\\s)",o.call(l))),u&&(e=l[c]),i=a.call(l,t),u&&i&&(l[c]=l.global?i.index+i[0].length:e),d&&i&&i.length>1&&s.call(i[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)})),i}),t.exports=l},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,n){var i=n("8378"),r=n("7726"),o="__core-js_shared__",a=r[o]||(r[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,e,n){var i=n("7726"),r=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),l="prototype",c=function(t,e,n){var u,d,h,p,f=t&c.F,m=t&c.G,v=t&c.S,g=t&c.P,b=t&c.B,y=m?i:v?i[e]||(i[e]={}):(i[e]||{})[l],_=m?r:r[e]||(r[e]={}),w=_[l]||(_[l]={});for(u in m&&(n=e),n)h=((d=!f&&y&&void 0!==y[u])?y:n)[u],p=b&&d?s(h,i):g&&"function"==typeof h?s(Function.call,h):h,y&&a(y,u,h,t&c.U),_[u]!=h&&o(_,u,p),g&&w[u]!=h&&(w[u]=h)};i.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"5eda":function(t,e,n){var i=n("5ca1"),r=n("8378"),o=n("79e5");t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],a={};a[t]=e(n),i(i.S+i.F*o((function(){n(1)})),"Object",a)}},"5f1b":function(t,e,n){"use strict";var i=n("23c6"),r=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var o=n.call(t,e);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==i(t))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},"613b":function(t,e,n){var i=n("5537")("keys"),r=n("ca5a");t.exports=function(t){return i[t]||(i[t]=r(t))}},"626a":function(t,e,n){var i=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},6762:function(t,e,n){"use strict";var i=n("5ca1"),r=n("c366")(!0);i(i.P,"Array",{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(t,e,n){var i=n("626a"),r=n("be13");t.exports=function(t){return i(r(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var i=n("d3f4");t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},7333:function(t,e,n){"use strict";var i=n("0d58"),r=n("2621"),o=n("52a7"),a=n("4bf8"),s=n("626a"),l=Object.assign;t.exports=!l||n("79e5")((function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=i}))?function(t,e){for(var n=a(t),l=arguments.length,c=1,u=r.f,d=o.f;l>c;)for(var h,p=s(arguments[c++]),f=u?i(p).concat(u(p)):i(p),m=f.length,v=0;m>v;)d.call(p,h=f[v++])&&(n[h]=p[h]);return n}:l},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var i=n("4588"),r=Math.max,o=Math.min;t.exports=function(t,e){return(t=i(t))<0?r(t+e,0):o(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7f20":function(t,e,n){var i=n("86cc").f,r=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},8378:function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,n){var i=n("cb7c"),r=n("c69a"),o=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"9b43":function(t,e,n){var i=n("d8e8");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var i=n("2b4c")("unscopables"),r=Array.prototype;null==r[i]&&n("32e9")(r,i,{}),t.exports=function(t){r[i][t]=!0}},"9def":function(t,e,n){var i=n("4588"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(e,n){e.exports=t},a481:function(t,e,n){"use strict";var i=n("cb7c"),r=n("4bf8"),o=n("9def"),a=n("4588"),s=n("0390"),l=n("5f1b"),c=Math.max,u=Math.min,d=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n("214f")("replace",2,(function(t,e,n,f){return[function(i,r){var o=t(this),a=null==i?void 0:i[e];return void 0!==a?a.call(i,o,r):n.call(String(o),i,r)},function(t,e){var r=f(n,t,this,e);if(r.done)return r.value;var d=i(t),h=String(this),p="function"==typeof e;p||(e=String(e));var v=d.global;if(v){var g=d.unicode;d.lastIndex=0}for(var b=[];;){var y=l(d,h);if(null===y)break;if(b.push(y),!v)break;""===String(y[0])&&(d.lastIndex=s(h,o(d.lastIndex),g))}for(var _,w="",x=0,C=0;C<b.length;C++){y=b[C];for(var S=String(y[0]),E=c(u(a(y.index),h.length),0),T=[],O=1;O<y.length;O++)T.push(void 0===(_=y[O])?_:String(_));var k=y.groups;if(p){var A=[S].concat(T,E,h);void 0!==k&&A.push(k);var P=String(e.apply(void 0,A))}else P=m(S,h,E,T,k,e);E>=x&&(w+=h.slice(x,E)+P,x=E+S.length)}return w+h.slice(x)}];function m(t,e,i,o,a,s){var l=i+t.length,c=o.length,u=p;return void 0!==a&&(a=r(a),u=h),n.call(s,u,(function(n,r){var s;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(l);case"<":s=a[r.slice(1,-1)];break;default:var u=+r;if(0===u)return n;if(u>c){var h=d(u/10);return 0===h?n:h<=c?void 0===o[h-1]?r.charAt(1):o[h-1]+r.charAt(1):n}s=o[u-1]}return void 0===s?"":s}))}}))},aae3:function(t,e,n){var i=n("d3f4"),r=n("2d95"),o=n("2b4c")("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},ac6a:function(t,e,n){for(var i=n("cadf"),r=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),l=n("84f2"),c=n("2b4c"),u=c("iterator"),d=c("toStringTag"),h=l.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},f=r(p),m=0;m<f.length;m++){var v,g=f[m],b=p[g],y=a[g],_=y&&y.prototype;if(_&&(_[u]||s(_,u,h),_[d]||s(_,d,g),l[g]=h,b))for(v in i)_[v]||o(_,v,i[v],!0)}},b0c5:function(t,e,n){"use strict";var i=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},be13:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},c366:function(t,e,n){var i=n("6821"),r=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,a){var s,l=i(e),c=r(l.length),u=o(a,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},c649:function(t,e,n){"use strict";(function(t){n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return o})),n.d(e,"d",(function(){return l})),n("a481");var i,r,o="undefined"!=typeof window?window.console:t.console,a=/-(\w)/g,s=(i=function(t){return t.replace(a,(function(t,e){return e?e.toUpperCase():""}))},r=Object.create(null),function(t){return r[t]||(r[t]=i(t))});function l(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function c(t,e,n){var i=0===n?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,i)}}).call(this,n("c8ba"))},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},ca5a:function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},cadf:function(t,e,n){"use strict";var i=n("9c6c"),r=n("d53b"),o=n("84f2"),a=n("6821");t.exports=n("01f9")(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},cb7c:function(t,e,n){var i=n("d3f4");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,n){var i=n("69a8"),r=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,s=r(t),l=0,c=[];for(n in s)n!=a&&i(s,n)&&c.push(n);for(;e.length>l;)i(s,n=e[l++])&&(~o(c,n)||c.push(n));return c}},d2c8:function(t,e,n){var i=n("aae3"),r=n("be13");t.exports=function(t,e,n){if(i(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(t))}},d3f4:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(t,e,n){"use strict";var i=n("5ca1"),r=n("9def"),o=n("d2c8"),a="startsWith",s=""[a];i(i.P+i.F*n("5147")(a),"String",{startsWith:function(t){var e=o(this,t,a),n=r(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),i=String(t);return s?s.call(e,i,n):e.slice(n,n+i.length)===i}})},f6fd:function(t,e){!function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(i){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(i.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})}(document)},f751:function(t,e,n){var i=n("5ca1");i(i.S+i.F,"Object",{assign:n("7333")})},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var i=n("7726").document;t.exports=i&&i.documentElement},fb15:function(t,e,n){"use strict";var i;function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function o(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}}(t,e)||o(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||o(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.r(e),"undefined"!=typeof window&&(n("f6fd"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1])),n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d"),n("6762"),n("2fdb");var l=n("a352"),c=n.n(l),u=n("c649");function d(t,e){var n=this;this.$nextTick((function(){return n.$emit(t.toLowerCase(),e)}))}function h(t){var e=this;return function(n){null!==e.realList&&e["onDrag"+t](n),d.call(e,t,n)}}function p(t){return["transition-group","TransitionGroup"].includes(t)}function f(t,e,n){return t[n]||(e[n]?e[n]():void 0)}var m=["Start","Add","Remove","Update","End"],v=["Choose","Unchoose","Sort","Filter","Clone"],g=["Move"].concat(m,v).map((function(t){return"on"+t})),b=null,y={name:"draggable",inheritAttrs:!1,props:{options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(t){return t}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(t){var e=this.$slots.default;this.transitionMode=function(t){if(!t||1!==t.length)return!1;var e=a(t,1)[0].componentOptions;return!!e&&p(e.tag)}(e);var n=function(t,e,n){var i=0,r=0,o=f(e,n,"header");o&&(i=o.length,t=t?[].concat(s(o),s(t)):s(o));var a=f(e,n,"footer");return a&&(r=a.length,t=t?[].concat(s(t),s(a)):s(a)),{children:t,headerOffset:i,footerOffset:r}}(e,this.$slots,this.$scopedSlots),i=n.children,r=n.headerOffset,o=n.footerOffset;this.headerOffset=r,this.footerOffset=o;var l=function(t,e){var n=null,i=function(t,e){n=function(t,e,n){return void 0===n||((t=t||{})[e]=n),t}(n,t,e)};if(i("attrs",Object.keys(t).filter((function(t){return"id"===t||t.startsWith("data-")})).reduce((function(e,n){return e[n]=t[n],e}),{})),!e)return n;var r=e.on,o=e.props,a=e.attrs;return i("on",r),i("props",o),Object.assign(n.attrs,a),n}(this.$attrs,this.componentData);return t(this.getTag(),l,i)},created:function(){null!==this.list&&null!==this.value&&u.b.error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&u.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&u.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var t=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var e={};m.forEach((function(n){e["on"+n]=h.call(t,n)})),v.forEach((function(n){e["on"+n]=d.bind(t,n)}));var n=Object.keys(this.$attrs).reduce((function(e,n){return e[Object(u.a)(n)]=t.$attrs[n],e}),{}),i=Object.assign({},this.options,n,e,{onMove:function(e,n){return t.onDragMove(e,n)}});!("draggable"in i)&&(i.draggable=">*"),this._sortable=new c.a(this.rootContainer,i),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(t){this.updateOptions(t)},deep:!0},$attrs:{handler:function(t){this.updateOptions(t)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var t=this._vnode.fnOptions;return t&&t.functional},getTag:function(){return this.tag||this.element},updateOptions:function(t){for(var e in t){var n=Object(u.a)(e);-1===g.indexOf(n)&&this._sortable.option(n,t[e])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var t=this.$slots.default;return this.transitionMode?t[0].child.$slots.default:t},computeIndexes:function(){var t=this;this.$nextTick((function(){t.visibleIndexes=function(t,e,n,i){if(!t)return[];var r=t.map((function(t){return t.elm})),o=e.length-i,a=s(e).map((function(t,e){return e>=o?r.length:r.indexOf(t)}));return n?a.filter((function(t){return-1!==t})):a}(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode,t.footerOffset)}))},getUnderlyingVm:function(t){var e=function(t,e){return t.map((function(t){return t.elm})).indexOf(e)}(this.getChildrenNodes()||[],t);return-1===e?null:{index:e,element:this.realList[e]}},getUnderlyingPotencialDraggableComponent:function(t){var e=t.__vue__;return e&&e.$options&&p(e.$options._componentTag)?e.$parent:!("realList"in e)&&1===e.$children.length&&"realList"in e.$children[0]?e.$children[0]:e},emitChanges:function(t){var e=this;this.$nextTick((function(){e.$emit("change",t)}))},alterList:function(t){if(this.list)t(this.list);else{var e=s(this.value);t(e),this.$emit("input",e)}},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,s(t))};this.alterList(e)},updatePosition:function(t,e){var n=function(n){return n.splice(e,0,n.splice(t,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(t){var e=t.to,n=t.related,i=this.getUnderlyingPotencialDraggableComponent(e);if(!i)return{component:i};var r=i.realList,o={list:r,component:i};if(e!==n&&r&&i.getUnderlyingVm){var a=i.getUnderlyingVm(n);if(a)return Object.assign(a,o)}return o},getVmIndex:function(t){var e=this.visibleIndexes,n=e.length;return t>n-1?n:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[t].data=null;var e=this.getComponent();e.children=[],e.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),b=t.item},onDragAdd:function(t){var e=t.item._underlying_vm_;if(void 0!==e){Object(u.d)(t.item);var n=this.getVmIndex(t.newIndex);this.spliceList(n,0,e),this.computeIndexes();var i={element:e,newIndex:n};this.emitChanges({added:i})}},onDragRemove:function(t){if(Object(u.c)(this.rootContainer,t.item,t.oldIndex),"clone"!==t.pullMode){var e=this.context.index;this.spliceList(e,1);var n={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:n})}else Object(u.d)(t.clone)},onDragUpdate:function(t){Object(u.d)(t.item),Object(u.c)(t.from,t.item,t.oldIndex);var e=this.context.index,n=this.getVmIndex(t.newIndex);this.updatePosition(e,n);var i={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:i})},updateProperty:function(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},computeFutureIndex:function(t,e){if(!t.element)return 0;var n=s(e.to.children).filter((function(t){return"none"!==t.style.display})),i=n.indexOf(e.related),r=t.component.getVmIndex(i);return-1===n.indexOf(b)&&e.willInsertAfter?r+1:r},onDragMove:function(t,e){var n=this.move;if(!n||!this.realList)return!0;var i=this.getRelatedContextFromMoveEvent(t),r=this.context,o=this.computeFutureIndex(i,t);return Object.assign(r,{futureIndex:o}),n(Object.assign({},t,{relatedContext:i,draggedContext:r}),e)},onDragEnd:function(){this.computeIndexes(),b=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",y);var _=y;e.default=_}}).default},t.exports=i(n(246))},6754:function(t,e,n){t.exports=function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var e="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},n=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},a=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)};function s(){if(c())return!1;var t=navigator.userAgent.toLowerCase();return-1!==t.indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/")}var l=function(){return!c()&&!!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)},c=function(){return t.prototype.$isServer},u=function(){function t(){n(this,t)}return i(t,[{key:"getEventObject",value:function(t){return this.touchObject?this.isTouch?t.touches:[t]:null}},{key:"getTouchObject",value:function(){if(c())return null;this.isTouch=!1;var t=navigator.userAgent,e=navigator.platform,n={};switch(n.touch=!!("ontouchstart"in window&&!window.opera||"msmaxtouchpoints"in window.navigator||"maxtouchpoints"in window.navigator||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),n.nonDeskTouch=n.touch&&!/win32/i.test(e)||n.touch&&/win32/i.test(e)&&/mobile/i.test(t),n.eventType="onmousedown"in window&&!n.nonDeskTouch?"mouse":"ontouchstart"in window?"touch":"msmaxtouchpoints"in window.navigator||navigator.msMaxTouchPoints>0?"mstouchpoints":"maxtouchpoints"in window.navigator||navigator.maxTouchPoints>0?"touchpoints":"mouse",n.eventType){case"mouse":n.touchstart="mousedown",n.touchend="mouseup",n.touchmove="mousemove",n.touchenter="mouseenter",n.touchmove="mousemove",n.touchleave="mouseleave";break;case"touch":n.touchstart="touchstart",n.touchend="touchend",n.touchmove="touchmove",n.touchcancel="touchcancel",n.touchenter="touchstart",n.touchmove="touchmove",n.touchleave="touchend",this.isTouch=!0;break;case"mstouchpoints":n.touchstart="MSPointerDown",n.touchend="MSPointerUp",n.touchmove="MSPointerMove",n.touchcancel="MSPointerCancel",n.touchenter="MSPointerDown",n.touchmove="MSPointerMove",n.touchleave="MSPointerUp";break;case"touchpoints":n.touchstart="pointerdown",n.touchend="pointerup",n.touchmove="pointermove",n.touchcancel="pointercancel",n.touchenter="pointerdown",n.touchmove="pointermove",n.touchleave="pointerup"}return this.touchObject=n}}]),t}();function d(t,n,i){if(i&&O(n))return t;if(E(t))n=[],t.forEach((function(t,e){n[e]=d(t,n[e])}));else if(t){if(!T(t))return t;for(var r in n={},t)n[r]="object"===e(t[r])?d(t[r],n[r]):t[r]}return n}function h(t,n,i,r){if(r&&O(n))return t;if(n=n||{},E(t))!E(n)&&i&&(n=[]),E(n)&&t.forEach((function(t,e){n[e]=h(t,n[e],i,r)}));else if(t)if(T(t))for(var o in t)"object"===e(t[o])?O(n[o])?n[o]=d(t[o],n[o],r):h(t[o],n[o],i,r):(O(n[o])||i)&&(n[o]=t[o]);else i&&(n=t);return n}function p(t,e,n,i){(n[e]||"function"==typeof n)&&(i=i||e,Object.defineProperty(t,e,{get:function(){return n[i]},configurable:!0}))}var f=void 0;function m(){if(c())return 0;if(void 0!==f)return f;var t=document.createElement("div");t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);var e=t.offsetWidth;t.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",t.appendChild(n);var i=n.offsetWidth;return t.parentNode.removeChild(t),f=e-i}function v(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];"on"==(arguments.length>4&&void 0!==arguments[4]?arguments[4]:"on")?t.addEventListener(e,n,i):t.removeEventListener(e,n,i)}var g=function(t){console.error("[vuescroll] "+t)},b=function(t){console.warn("[vuescroll] "+t)};function y(t,e){var n=!1;if(!t||!e)return n;for(;t.parentNode!==e&&9!==t.parentNode.nodeType&&!t.parentNode._isVuescroll;)t=t.parentNode;return t.parentNode==e&&(n=!0),n}function _(t){var e,n=document.documentElement.style;return t.opera&&"[object Opera]"===Object.prototype.toString.call(opera)?e="presto":"MozAppearance"in n?e="gecko":"WebkitAppearance"in n?e="webkit":"string"==typeof navigator.cpuClass&&(e="trident"),{trident:"ms",gecko:"moz",webkit:"webkit",presto:"O"}[e]}function w(t,e){if(c())return!1;var n="-"+_(window)+"-"+e,i=document.createElement("div");return i.style[t]=n,i.style[t]==n&&n}function x(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments[4];if(e&&e.length>1)return r?[].concat(a(n),a(e)):[].concat(a(e),a(n));var o=C(e=e[0]),s=o.ch,l=o.tag;return o.isComponent&&(e.data=h({attrs:e.componentOptions.propsData},e.data,!1,!0)),s=r?[].concat(a(n),a(s)):[].concat(a(s),a(n)),delete e.data.slot,t(l,h(i,e.data,!1,!0),s)}function C(t){if(!t||t.length>1)return{};var e=!!(t=t[0]?t[0]:t).componentOptions,n=void 0,i=void 0;return e?(n=t.componentOptions.children||[],i=t.componentOptions.tag):(n=t.children||[],i=t.tag),{isComponent:e,ch:n,tag:i}}function S(t){var e=t.$parent;return!e._isVuescrollRoot&&e&&(e=e.$parent),e}var E=function(t){return Array.isArray(t)},T=function(t){return"[object Object]"==Object.prototype.toString.call(t)},O=function(t){return void 0===t};function k(t,e){var n=void 0;return n=(n=/(-?\d+(?:\.\d+?)?)%$/.exec(t))?e*(n=n[1]-0)/100:t-0}function A(t,e){if(!c()&&!document.getElementById(t)){var n=document.head||doc.getElementsByTagName("head")[0],i=document.createElement("style");i.id=t,i.type="text/css",i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e)),n.appendChild(i)}}function P(){A("vuescroll-hide-ios-bar",".__hidebar::-webkit-scrollbar {\n      width: 0;\n      height: 0;\n    }")}function M(){A("vuescroll-silde-mode-style","\n    @-webkit-keyframes loading-rotate {\n      to {\n        -webkit-transform: rotate(1turn);\n        transform: rotate(1turn);\n      }\n    }\n\n    @keyframes loading-rotate {\n      to {\n        -webkit-transform: rotate(1turn);\n        transform: rotate(1turn);\n      }\n    }\n\n    @-webkit-keyframes loading-wipe {\n      0% {\n        stroke-dasharray: 1, 200;\n        stroke-dashoffset: 0;\n      }\n      50% {\n        stroke-dasharray: 90, 150;\n        stroke-dashoffset: -40px;\n      }\n      to {\n        stroke-dasharray: 90, 150;\n        stroke-dashoffset: -120px;\n      }\n    }\n\n    @keyframes loading-wipe {\n      0% {\n        stroke-dasharray: 1, 200;\n        stroke-dashoffset: 0;\n      }\n      50% {\n        stroke-dasharray: 90, 150;\n        stroke-dashoffset: -40px;\n      }\n      to {\n        stroke-dasharray: 90, 150;\n        stroke-dashoffset: -120px;\n      }\n    }\n\n    .__vuescroll .__refresh,\n    .__vuescroll .__load {\n      position: absolute;\n      width: 100%;\n      color: black;\n      height: 50px;\n      line-height: 50px;\n      text-align: center;\n      font-size: 16px;\n    }\n    .__vuescroll .__refresh svg,\n    .__vuescroll .__load svg {\n      margin-right: 10px;\n      width: 25px;\n      height: 25px;\n      vertical-align: sub;\n    }\n    .__vuescroll .__refresh svg.active,\n    .__vuescroll .__load svg.active {\n      transition: all 0.2s;\n    }\n    .__vuescroll .__refresh svg.active.deactive,\n    .__vuescroll .__load svg.active.deactive {\n      transform: rotateZ(180deg);\n    }\n    .__vuescroll .__refresh svg path,\n    .__vuescroll .__refresh svg rect,\n    .__vuescroll .__load svg path,\n    .__vuescroll .__load svg rect {\n      fill: #20a0ff;\n    }\n    .__vuescroll .__refresh svg.start,\n    .__vuescroll .__load svg.start {\n      stroke: #343640;\n      stroke-width: 4;\n      stroke-linecap: round;\n      -webkit-animation: loading-rotate 2s linear infinite;\n      animation: loading-rotate 2s linear infinite;\n    }\n    .__vuescroll .__refresh svg.start .bg-path,\n    .__vuescroll .__load svg.start .bg-path {\n      stroke: #f2f2f2;\n      fill: none;\n    }\n    .__vuescroll .__refresh svg.start .active-path,\n    .__vuescroll .__load svg.start .active-path {\n      stroke: #20a0ff;\n      fill: none;\n      stroke-dasharray: 90, 150;\n      stroke-dashoffset: 0;\n      -webkit-animation: loading-wipe 1.5s ease-in-out infinite;\n      animation: loading-wipe 1.5s ease-in-out infinite;\n    }\n  ")}var L={mounted:function(){D[this._uid]=this},beforeDestroy:function(){delete D[this._uid]},methods:{scrollTo:function(t,e,n){var i=t.x,r=t.y;!0!==e&&void 0!==e||(e=this.mergedOptions.scrollPanel.speed),this.internalScrollTo(i,r,e,n)},scrollBy:function(t,e,n){var i=t.dx,r=void 0===i?0:i,o=t.dy,a=void 0===o?0:o,s=this.getPosition(),l=s.scrollLeft,c=void 0===l?0:l,u=s.scrollTop,d=void 0===u?0:u;r&&(c+=k(r,this.scrollPanelElm.scrollWidth-this.$el.clientWidth)),a&&(d+=k(a,this.scrollPanelElm.scrollHeight-this.$el.clientHeight)),this.internalScrollTo(c,d,e,n)},scrollIntoView:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.$el;if("string"==typeof t&&(t=n.querySelector(t)),y(t,n)){var i=this.$el.getBoundingClientRect(),r=i.left,o=i.top,a=t.getBoundingClientRect(),s=r-a.left,l=o-a.top;this.scrollBy({dx:-s,dy:-l},e)}else b("The element or selector you passed is not the element of Vuescroll, please pass the element that is in Vuescroll to scrollIntoView API. ")},refresh:function(){this.refreshInternalStatus(),this.$nextTick(this.refreshInternalStatus)}}},D={};function R(){for(var t in D)D[t].refresh()}var I={vuescroll:{sizeStrategy:"percent",detectResize:!0,locking:!0},scrollPanel:{initialScrollY:!1,initialScrollX:!1,scrollingX:!0,scrollingY:!0,speed:300,easing:void 0,verticalNativeBarPos:"right",maxHeight:void 0,maxWidth:void 0},rail:{background:"#01a99a",opacity:0,border:"none",size:"6px",specifyBorderRadius:!1,gutterOfEnds:null,gutterOfSide:"2px",keepShow:!1},bar:{showDelay:500,specifyBorderRadius:!1,onlyShowBarOnScroll:!0,keepShow:!1,background:"rgb(3, 185, 118)",opacity:1,size:"6px",minSize:0,disable:!1},scrollButton:{enable:!1,background:"rgb(3, 185, 118)",opacity:1,step:180,mousedownStep:30}};function j(t){var e=!1,n=t.scrollPanel,i=t.bar,r=i.vBar,o=i.hBar,a=t.rail,s=a.vRail,l=a.hRail,c=n.initialScrollY,u=n.initialScrollX;return c&&!String(c).match(/^\d+(\.\d+)?(%)?$/)&&b("The prop `initialScrollY` or `initialScrollX` should be a percent number like `10%` or an exact number that greater than or equal to 0 like `100`."),u&&!String(u).match(/^\d+(\.\d+)?(%)?$/)&&b("The prop `initialScrollY` or `initialScrollX` should be a percent number like `10%` or an exact number that greater than or equal to 0 like `100`."),(r||o||s||l)&&b("The options: vRail, hRail, vBar, hBar have been deprecated since v4.7.0,please use corresponing rail/bar instead!"),N&&(N=[].concat(N)).forEach((function(n){n(t)&&(e=!0)})),e}var N=null,F=function(t,e){(t=[].concat(t)).forEach((function(t){h(t,I)})),N=e},z=["slide","native"],B=function(){},$=["mergedOptions.vuescroll.pullRefresh.tips","mergedOptions.vuescroll.pushLoad.tips","mergedOptions.vuescroll.scroller.disable","mergedOptions.rail","mergedOptions.bar"],U="refreshDom",H="loadDom",V={vertical:{size:"height",opsSize:"width",posName:"top",opposName:"bottom",sidePosName:"right",page:"pageY",scroll:"scrollTop",scrollSize:"scrollHeight",offset:"offsetHeight",client:"clientY",axis:"Y",scrollButton:{start:"top",end:"bottom"}},horizontal:{size:"width",opsSize:"height",posName:"left",opposName:"right",sidePosName:"bottom",page:"pageX",scroll:"scrollLeft",scrollSize:"scrollWidth",offset:"offsetWidth",client:"clientX",axis:"X",scrollButton:{start:"left",end:"right"}}};function Y(t){var e=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame,n=!!e;if(e&&!/requestAnimationFrame\(\)\s*\{\s*\[native code\]\s*\}/i.test(e.toString())&&(n=!1),n)return function(t,n){e(t,n)};var i=60,r={},o=1,a=null,s=+new Date;return function(t){var e=o++;return r[e]=t,null===a&&(a=setInterval((function(){var t=+new Date,e=r;for(var n in r={},e)e.hasOwnProperty(n)&&(e[n](t),s=t);t-s>2500&&(clearInterval(a),a=null)}),1e3/i)),e}}var q={},W=/rgb\(/,G=/rgb\((.*)\)/;function X(t,e){var n=t+"&"+e;if(q[n])return q[n];var i=document.createElement("div");i.style.background=t,document.body.appendChild(i);var r=window.getComputedStyle(i).backgroundColor;return document.body.removeChild(i),W.test(r)?q[n]="rgba("+G.exec(r)[1]+", "+e+")":t}var K={name:"bar",props:{ops:Object,state:Object,hideBar:Boolean,otherBarHide:Boolean,type:String},computed:{bar:function(){return V[this.type]},barSize:function(){return Math.max(this.state.size,this.ops.bar.minSize)},barRatio:function(){return(1-this.barSize)/(1-this.state.size)}},render:function(t){var e,n,i,o=this,a=X(o.ops.rail.background,o.ops.rail.opacity);this.touchManager||(this.touchManager=new u);var s,l=o.ops.rail.size,c=o.otherBarHide?0:l,d=o.touchManager.getTouchObject(),h={class:"__rail-is-"+o.type,style:(e={position:"absolute","z-index":"1",borderRadius:o.ops.rail.specifyBorderRadius||l,background:a,border:o.ops.rail.border},r(e,o.bar.opsSize,l),r(e,o.bar.posName,o.ops.rail.gutterOfEnds||0),r(e,o.bar.opposName,o.ops.rail.gutterOfEnds||c),r(e,o.bar.sidePosName,o.ops.rail.gutterOfSide),e)};d&&(h.on=(r(s={},d.touchenter,(function(){o.setRailHover()})),r(s,d.touchleave,(function(){o.setRailLeave()})),s));var p=o.ops.scrollButton.enable?l:0,f={class:"__bar-wrap-is-"+o.type,style:(n={position:"absolute",borderRadius:o.ops.rail.specifyBorderRadius||l},r(n,o.bar.posName,p),r(n,o.bar.opposName,p),n),on:{}},m=o.state.posValue*o.state.size*o.barRatio/o.barSize,v=o.state.opacity;S(this).setClassHook("vertical"==this.type?"vBarVisible":"hBarVisible",!!v);var g={style:(r(i={cursor:"pointer",position:"absolute",margin:"auto",transition:"opacity 0.5s","user-select":"none","border-radius":"inherit"},o.bar.size,100*o.barSize+"%"),r(i,"background",o.ops.bar.background),r(i,o.bar.opsSize,o.ops.bar.size),r(i,"opacity",v),r(i,"transform","translate"+V[o.type].axis+"("+m+"%)"),i),class:"__bar-is-"+o.type,ref:"thumb",on:{}};"vertical"==o.type?(f.style.width="100%",g.style.left=0,g.style.right=0):(f.style.height="100%",g.style.top=0,g.style.bottom=0);var b=this.touchManager.getTouchObject();return g.on[b.touchstart]=this.createBarEvent(),f.on[b.touchstart]=this.createTrackEvent(),t("div",h,[this.createScrollbarButton(t,"start"),this.hideBar?null:t("div",f,[t("div",g)]),this.createScrollbarButton(t,"end")])},data:function(){return{isBarDragging:!1}},methods:{setRailHover:function(){var t=S(this),e=t.vuescroll.state;e.isRailHover||(e.isRailHover=!0,t.showBar())},setRailLeave:function(){var t=S(this);t.vuescroll.state.isRailHover=!1,t.hideBar()},setBarDrag:function(t){this.$emit("setBarDrag",this.isBarDragging=t),S(this).setClassHook("vertical"==this.type?"vBarDragging":"hBarDragging",!!t)},createBarEvent:function(){var t=this,e=S(t),n=t.touchManager.getTouchObject();function i(e){var i=t.touchManager.getEventObject(e);i&&(e.stopImmediatePropagation(),e.preventDefault(),i=i[0],document.onselectstart=function(){return!1},t.axisStartPos=i[t.bar.client]-t.$refs.thumb.getBoundingClientRect()[t.bar.posName],t.setBarDrag(!0),v(document,n.touchmove,o),v(document,n.touchend,a))}function o(n){if(t.axisStartPos){var i=t.touchManager.getEventObject(n);if(i){i=i[0];var o=t.$refs.thumb.parentNode,a=i[t.bar.client]-o.getBoundingClientRect()[t.bar.posName],s=((a/=t.barRatio)-t.axisStartPos)/o[t.bar.offset];e.scrollTo(r({},t.bar.axis.toLowerCase(),e.scrollPanelElm[t.bar.scrollSize]*s),!1)}}}function a(){t.setBarDrag(!1),e.hideBar(),document.onselectstart=null,t.axisStartPos=0,v(document,n.touchmove,o,!1,"off"),v(document,n.touchend,a,!1,"off")}return i},createTrackEvent:function(){var t=this;return function(e){var n=S(t),i=t.bar,o=i.client,a=i.offset,s=i.posName,l=i.axis,c=t.$refs.thumb;if(e.preventDefault(),e.stopImmediatePropagation(),c){var u=c[a],d=(t.touchManager.getEventObject(e)[0][o]-e.currentTarget.getBoundingClientRect()[s]-u/2)/(e.currentTarget[a]-u);n.scrollTo(r({},l.toLowerCase(),100*d+"%"))}}},createScrollbarButton:function(t,e){var n,i=this;if(!i.ops.scrollButton.enable)return null;var o=i.ops.rail.size,a=i.ops.scrollButton,s=a.opacity,l=X(a.background,s),c={class:["__bar-button","__bar-button-is-"+i.type+"-"+e],style:(n={},r(n,i.bar.scrollButton[e],0),r(n,"width",o),r(n,"height",o),r(n,"position","absolute"),r(n,"cursor","pointer"),r(n,"display","table"),n),ref:e},u={class:"__bar-button-inner",style:{border:"calc("+o+" / 2.5) solid transparent",width:"0",height:"0",margin:"auto",position:"absolute",top:"0",bottom:"0",right:"0",left:"0"},on:{}};"vertical"==i.type?"start"==e?(u.style["border-bottom-color"]=l,u.style.transform="translateY(-25%)"):(u.style["border-top-color"]=l,u.style.transform="translateY(25%)"):"start"==e?(u.style["border-right-color"]=l,u.style.transform="translateX(-25%)"):(u.style["border-left-color"]=l,u.style.transform="translateX(25%)");var d=this.touchManager.getTouchObject();return u.on[d.touchstart]=this.createScrollButtonEvent(e,d),t("div",c,[t("div",u)])},createScrollButtonEvent:function(t,e){var n=this,i=S(n),o=n.ops.scrollButton,a=o.step,s=o.mousedownStep,l="start"==t?-a:a,c="start"==t?-s:s,u=Y(window),d=n.type,h=!1,p=!0,f=void 0;function m(o){if(3!=o.which){if(i.setClassHook("cliking"+d+t+"Button",!0),o.stopImmediatePropagation(),o.preventDefault(),p=!1,i.scrollBy(r({},"d"+n.bar.axis.toLowerCase(),l)),v(document,e.touchend,b,!1),"mousedown"==e.touchstart){var a=n.$refs[t];v(a,"mouseenter",y,!1),v(a,"mouseleave",_,!1)}clearTimeout(f),f=setTimeout((function(){h=!0,u(g,window)}),500)}}function g(){h&&!p&&(i.scrollBy(r({},"d"+n.bar.axis.toLowerCase(),c),!1),u(g,window))}function b(){if(clearTimeout(f),h=!1,v(document,e.touchend,b,!1,"off"),"mousedown"==e.touchstart){var r=n.$refs[t];v(r,"mouseenter",y,!1,"off"),v(r,"mouseleave",_,!1,"off")}i.setClassHook("cliking"+d+t+"Button",!1)}function y(){p=!1,g()}function _(){p=!0}return m}}};function Z(t,e){var n=V[e].axis,i=e.charAt(0)+"Bar",r=!t.bar[i].state.size||!t.mergedOptions.scrollPanel["scrolling"+n]||t.refreshLoad&&"vertical"!==e||t.mergedOptions.bar.disable,o=t.mergedOptions.rail.keepShow;return r&&!o?null:{hideBar:r,props:{type:e,ops:{bar:t.mergedOptions.bar,rail:t.mergedOptions.rail,scrollButton:t.mergedOptions.scrollButton},state:t.bar[i].state,hideBar:r},on:{setBarDrag:t.setBarDrag},ref:e+"Bar",key:e}}function J(t,e){var n=Z(e,"vertical"),i=Z(e,"horizontal");return e.setClassHook("hasVBar",!(!n||n.hideBar)),e.setClassHook("hasHBar",!(!i||i.hideBar)),[n?t("bar",o({},n,{props:o({otherBarHide:!i},n.props)})):null,i?t("bar",o({},i,{props:o({otherBarHide:!n},i.props)})):null]}var Q=function(t){var e=t.render,n=t.components,i=t.mixins;return{name:"vueScroll",props:{ops:{type:Object}},components:n,mixins:[L].concat(a([].concat(i))),created:function(){var t=this,e=h(this.$vuescrollConfig||{},{}),n=h(I,e);this.$options.propsData.ops=this.$options.propsData.ops||{},Object.keys(this.$options.propsData.ops).forEach((function(e){p(t.mergedOptions,e,t.$options.propsData.ops)})),h(n,this.mergedOptions),this._isVuescrollRoot=!0,this.renderError=j(this.mergedOptions)},render:function(t){var n=this;if(n.renderError)return t("div",[[n.$slots.default]]);n.touchManager||(n.touchManager=new u);var i,s={style:{height:n.vuescroll.state.height,width:n.vuescroll.state.width,padding:0,position:"relative",overflow:"hidden"},class:o({__vuescroll:!0},n.classHooks)},l=n.touchManager.getTouchObject();l&&(s.on=(r(i={},l.touchenter,(function(){n.vuescroll.state.pointerLeave=!1,n.updateBarStateAndEmitEvent(),n.setClassHook("mouseEnter",!0)})),r(i,l.touchleave,(function(){n.vuescroll.state.pointerLeave=!0,n.hideBar(),n.setClassHook("mouseEnter",!1)})),r(i,l.touchmove,(function(){n.vuescroll.state.pointerLeave=!1,n.updateBarStateAndEmitEvent()})),i));var c=[e(t,n)].concat(a(J(t,n))),d=this.$slots["scroll-container"];return d?x(t,d,c,s):t("div",s,[c])},mounted:function(){var t=this;this.renderError||(this.initVariables(),this.initWatchOpsChange(),this.refreshInternalStatus(),this.updatedCbs.push((function(){t.scrollToAnchor(),t.updateBarStateAndEmitEvent()})))},updated:function(){var t=this;this.updatedCbs.forEach((function(e){e.call(t)})),this.updatedCbs=[]},beforeDestroy:function(){this.destroy&&this.destroy()},computed:{scrollPanelElm:function(){return this.$refs.scrollPanel._isVue?this.$refs.scrollPanel.$el:this.$refs.scrollPanel}},data:function(){return{vuescroll:{state:{isDragging:!1,pointerLeave:!0,isRailHover:!1,height:"100%",width:"100%",currentSizeStrategy:"percent",currentScrollState:null,currentScrollInfo:null}},bar:{vBar:{state:{posValue:0,size:0,opacity:0}},hBar:{state:{posValue:0,size:0,opacity:0}}},mergedOptions:{vuescroll:{},scrollPanel:{},scrollContent:{},rail:{},bar:{}},updatedCbs:[],renderError:!1,classHooks:{hasVBar:!1,hasHBar:!1,vBarVisible:!1,hBarVisible:!1,vBarDragging:!1,hBarDragging:!1,clikingVerticalStartButton:!1,clikingVerticalEndButton:!1,clikingHorizontalStartButton:!1,clikingHorizontalEndButton:!1,mouseEnter:!1}}},methods:{scrollingComplete:function(){this.updateBarStateAndEmitEvent("handle-scroll-complete")},setBarDrag:function(t){this.vuescroll.state.isDragging=t},setClassHook:function(t,e){this.classHooks[t]=e},showAndDefferedHideBar:function(t){var e=this;this.showBar(),this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0),this.timeoutId=setTimeout((function(){e.timeoutId=0,e.hideBar(t)}),this.mergedOptions.bar.showDelay)},showBar:function(){var t=this.mergedOptions.bar.opacity;this.bar.vBar.state.opacity=t,this.bar.hBar.state.opacity=t},hideBar:function(t){var e=this.vuescroll.state,n=e.isDragging,i=e.isRailHover;n||i||(t&&!this.mergedOptions.bar.keepShow&&(this.bar.hBar.state.opacity=0,this.bar.vBar.state.opacity=0),this.mergedOptions.bar.keepShow||this.vuescroll.state.isDragging||(this.bar.vBar.state.opacity=0,this.bar.hBar.state.opacity=0))},useNumbericSize:function(){this.vuescroll.state.currentSizeStrategy="number";var t=this.mergedOptions.scrollPanel,e=t.maxHeight,n=t.maxWidth,i=this.$el.parentNode,r=i.clientHeight,o=i.clientWidth,a=this.scrollPanelElm,s=a.scrollHeight,l=a.scrollWidth,c=void 0,u=void 0;e||n?(u=s<=e?void 0:e,c=l<=n?void 0:n):(u=r,c=o),this.vuescroll.state.height=u?u+"px":void 0,this.vuescroll.state.width=c?c+"px":void 0},usePercentSize:function(){this.vuescroll.state.currentSizeStrategy="percent",this.vuescroll.state.height="100%",this.vuescroll.state.width="100%"},setVsSize:function(){var t=this.mergedOptions.vuescroll.sizeStrategy,e=this.mergedOptions.scrollPanel,n=e.maxHeight,i=e.maxWidth,r=this.scrollPanelElm,o=r.clientHeight,a=r.clientWidth;"number"==t||n&&o>n||i&&a>i?this.useNumbericSize():"percent"==t&&o!=n&&a!=i&&this.usePercentSize()},initWatchOpsChange:function(){var t=this,e={deep:!0,sync:!0};this.$watch("mergedOptions",(function(){setTimeout((function(){if(t.isSmallChangeThisTick)return t.isSmallChangeThisTick=!1,void t.updateBarStateAndEmitEvent("options-change");t.refreshInternalStatus()}),0)}),e),$.forEach((function(n){t.$watch(n,(function(){t.isSmallChangeThisTick=!0}),e)}))},scrollToAnchor:function(){var t=function(t){return/^#[a-zA-Z_]\d*$/.test(t)},e=window.location.hash;if(e&&(!(e=e.slice(e.lastIndexOf("#")))||t(e))){var n=document.querySelector(e);!y(n,this.$el)||this.mergedOptions.scrollPanel.initialScrollY||this.mergedOptions.scrollPanel.initialScrollX||this.scrollIntoView(n)}}}}},tt={name:"scrollPanel",props:{ops:{type:Object,required:!0}},methods:{updateInitialScroll:function(){var t=0,e=0,n=S(this);this.ops.initialScrollX&&(t=this.ops.initialScrollX),this.ops.initialScrollY&&(e=this.ops.initialScrollY),(t||e)&&n.scrollTo({x:t,y:e})}},mounted:function(){var t=this;setTimeout((function(){t._isDestroyed||t.updateInitialScroll()}),0)},render:function(t){var e={class:["__panel"],style:{position:"relative",boxSizing:"border-box"}},n=S(this).$slots["scroll-panel"];return n?x(t,n,this.$slots.default,e):t("div",e,[[this.$slots.default]])}};function et(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=(r(n={},tt.name,tt),r(n,K.name,K),n),s={};s.components=a,s.render=e,s.mixins=t;var l=Q(s);return F(i,o),l}function nt(t,e){for(var n=t.children,i=[],r=function(t){var n=t.getBoundingClientRect(),i=n.left,r=n.top,o=n.width,a=n.height,s=e.getBoundingClientRect(),l=s.left,c=s.top,u=s.height,d=s.width;return i-l+o>0&&i-l<d&&r-c+a>0&&r-c<u},o=0;o<n.length;o++){var a=n.item(o);r(a)&&!a.isResizeElm&&i.push(a)}return i}function it(t,e){return function(n){return e(t,n)}}function rt(t,e){var n=null;return"easeInQuad"===t&&(n=e*e),"easeOutQuad"===t&&(n=e*(2-e)),"easeInOutQuad"===t&&(n=e<.5?2*e*e:(4-2*e)*e-1),"easeInCubic"===t&&(n=e*e*e),"easeOutCubic"===t&&(n=--e*e*e+1),"easeInOutCubic"===t&&(n=e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1),"easeInQuart"===t&&(n=e*e*e*e),"easeOutQuart"===t&&(n=1- --e*e*e*e),"easeInOutQuart"===t&&(n=e<.5?8*e*e*e*e:1-8*--e*e*e*e),"easeInQuint"===t&&(n=e*e*e*e*e),"easeOutQuint"===t&&(n=1+--e*e*e*e*e),"easeInOutQuint"===t&&(n=e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e),n||e}function ot(){return!0}var at=Date.now||function(){return(new Date).getTime()},st=function(){function t(){n(this,t),this.init(),this.isRunning=!1}return i(t,[{key:"pause",value:function(){this.isRunning&&(this.isPaused=!0)}},{key:"stop",value:function(){this.isStopped=!0}},{key:"continue",value:function(){this.isPaused&&(this.isPaused=!1,this.ts=at()-this.percent*this.spd,this.execScroll())}},{key:"startScroll",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ot,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:ot,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:ot,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:ot,s=e-t,l=s>0?-1:1,c=at();this.isRunning||this.init(),l!=this.dir||c-this.ts>200?(this.ts=c,this.dir=l,this.st=t,this.ed=e,this.df=s):this.df+=s,this.spd=n,this.completeCb=r,this.vertifyCb=o,this.stepCb=i,this.easingMethod=a,this.isRunning||this.execScroll()}},{key:"execScroll",value:function(){var t=this;if(this.df){var e=this.percent||0;this.percent=0,this.isRunning=!0;var n=function n(){if(t.isRunning&&t.vertifyCb(e)&&!t.isStopped){if(e=(at()-t.ts)/t.spd,t.isPaused)return t.percent=e,void(t.isRunning=!1);if(e<1){var i=t.st+t.df*t.easingMethod(e);t.stepCb(i),t.ref(n)}else t.stepCb(t.st+t.df),t.completeCb(),t.isRunning=!1}else t.isRunning=!1};this.ref(n)}}},{key:"init",value:function(){this.st=0,this.ed=0,this.df=0,this.spd=0,this.ts=0,this.dir=0,this.ref=Y(window),this.isPaused=!1,this.isStopped=!1}}]),t}();function lt(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:300,r=arguments[4],o=arguments[5],a=void 0,s=void 0,l=void 0,c=void 0,u=void 0,d=void 0,h=t.nodeType,p=new st,f=new st;if(h){9==h&&(t=t.scrollingElement);var m=t;a=m.scrollLeft,s=m.scrollTop,l=m.scrollHeight,c=m.scrollWidth,u=m.clientWidth,d=m.clientHeight,e=void 0===e?a:k(e,c-u),n=void 0===n?s:k(n,l-d);var v=it(r,rt);p.startScroll(a,e,i,(function(e){t.scrollLeft=e}),o,void 0,v),f.startScroll(s,n,i,(function(e){t.scrollTop=e}),o,void 0,v)}else b("You must pass a dom for the first param, for window scrolling, you can pass document as the first param.")}function ct(t){var e={ref:"scrollPanel",style:{height:"100%",overflowY:"scroll",overflowX:"scroll"},class:[],nativeOn:{"&scroll":t.handleScroll},props:{ops:t.mergedOptions.scrollPanel}};t.scrollYEnable=!0,t.scrollXEnable=!0,e.nativeOn.DOMMouseScroll=e.nativeOn.mousewheel=t.onMouseWheel;var n=t.mergedOptions.scrollPanel,i=n.scrollingY,r=n.scrollingX;t.bar.hBar.state.size&&r||(t.scrollXEnable=!1,e.style.overflowX="hidden"),t.bar.vBar.state.size&&i||(t.scrollYEnable=!1,e.style.overflowY="hidden");var o=m();return o?(t.bar.vBar.state.size&&t.mergedOptions.scrollPanel.scrollingY&&("right"==t.mergedOptions.scrollPanel.verticalNativeBarPos?e.style.marginRight="-"+o+"px":e.style.marginLeft="-"+o+"px"),t.bar.hBar.state.size&&t.mergedOptions.scrollPanel.scrollingX&&(e.style.height="calc(100% + "+o+"px)")):(P(),e.class.push("__hidebar"),l()&&(e.style["-webkit-overflow-scrolling"]="touch")),e.style.transformOrigin="",e.style.transform="",e}function ut(t,e){return t("scrollPanel",ct(e),[dt(t,e)])}function dt(t,e){var n={position:"relative","box-sizing":"border-box","min-width":"100%","min-height":"100%"},i={style:n,ref:"scrollContent",class:"__view"},r=e.$slots["scroll-content"];return e.mergedOptions.scrollPanel.scrollingX?n.width=w("width","fit-content"):i.style.width="100%",e.mergedOptions.scrollPanel.padding&&(i.style.paddingRight=e.mergedOptions.rail.size),r?x(t,r,e.$slots.default,i):t("div",i,[e.$slots.default])}function ht(t){var e={ref:"scrollPanel",style:{"user-select":"none","-webkit-user-select":"none","min-width":"100%","min-height":"100%"},class:[],props:{ops:t.mergedOptions.scrollPanel}};e.class.push("__slide"),l()&&(e.style=r({},"-webkit-overflow-scrolling","touch")),"transform"==t.mergedOptions.vuescroll.renderMethod&&(e.style["transform-origin"]="left top 0px");var n=t.mergedOptions.scrollPanel,i=n.scrollingX,o=n.scrollingY,a=n.padding;if(i&&!t.refreshLoad){var s=w("width","fit-content");s?e.style.width=s:e.display="inline-block"}return i||e.class.push("x-hidden"),o||e.class.push("y-hidden"),a&&(e.style.paddingRight=t.mergedOptions.rail.size),e}function pt(t,e){var n=C(e.$slots["scroll-panel"]).ch||e.$slots.default,i=[];return n||(e.$slots.default=n=[]),e.mergedOptions.vuescroll.pullRefresh.enable&&i.push(t("div",{class:"__refresh",style:{visibility:e.refrehDomVisiable?"":"hidden"},ref:U,key:U},[ft(t,e,"refresh",e.pullRefreshTip)])),i.push(n),e.mergedOptions.vuescroll.pushLoad.enable&&i.push(t("div",{ref:H,key:H,class:"__load",style:{visibility:e.loadDomVisiable?"":"hidden"}},[ft(t,e,"load",e.pushLoadTip)])),i}function ft(t,e,n,i){var r=e.vuescroll.state[n+"Stage"],o=null;if(o=e.$slots[n+"-"+r])return o;switch(r){case"deactive":case"active":var a="active";"deactive"==r&&(a+=" deactive"),o=t("svg",{class:a,attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 1000 1000","enable-background":"new 0 0 1000 1000",xmlSpace:"preserve"}},[t("metadata",[" Svg Vector Icons : http://www.sfont.cn "]),t("g",[t("g",{attrs:{transform:"matrix(1 0 0 -1 0 1008)"}},[t("path",{attrs:{d:"M10,543l490,455l490-455L885,438L570,735.5V18H430v717.5L115,438L10,543z"}})])])]);break;case"start":o=t("svg",{attrs:{viewBox:"0 0 50 50"},class:"start"},[t("circle",{attrs:{stroke:"true",cx:"25",cy:"25",r:"20"},class:"bg-path"}),t("circle",{attrs:{cx:"25",cy:"25",r:"20"},class:"active-path"})]);break;case"beforeDeactive":o=t("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3562"}},[t("path",{attrs:{d:"M512 0C229.706831 0 0 229.667446 0 512s229.667446 512 512 512c282.293169 0 512-229.667446 512-512S794.332554 0 512 0z m282.994215 353.406031L433.2544 715.145846a31.484062 31.484062 0 0 1-22.275938 9.231754h-0.4096a31.586462 31.586462 0 0 1-22.449231-9.814646L228.430769 546.327631a31.507692 31.507692 0 0 1 45.701908-43.386093l137.4208 144.785724L750.442338 308.854154a31.507692 31.507692 0 1 1 44.551877 44.551877z",fill:"","p-id":"3563"}})])}return[o,i]}function mt(t,e){return t("scrollPanel",ht(e),[pt(t,e)])}function vt(t,e){return"native"==e.mode?ut(t,e):"slide"==e.mode?mt(t,e):void 0}function gt(t,e){return bt(t,e)}function bt(t,e){if(!t.hasResized){var n="display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; padding: 0; margin: 0; opacity: 0; z-index: -1000; pointer-events: none;",i=document.createElement("div");i.style.cssText=n;var r=document.createElement("object");return r.style.cssText=n,r.type="text/html",r.tabIndex=-1,r.onload=function(){v(r.contentDocument.defaultView,"resize",e)},s()||(r.data="about:blank"),i.isResizeElm=!0,i.appendChild(r),t.appendChild(i),s()&&(r.data="about:blank"),function(){r.contentDocument&&v(r.contentDocument.defaultView,"resize",e,"off"),t.removeChild(i),t.hasResized=!1}}}var yt={methods:{slideScrollTo:function(t,e,n,i){var r=this.getPosition(),o=r.scrollLeft,a=r.scrollTop;t=k(t||o,this.scroller.__maxScrollLeft),e=k(e||a,this.scroller.__maxScrollTop),this.scroller.scrollTo(t,e,n>0,void 0,!1,n,i)},zoomBy:function(t,e,n,i,r){this.scroller?this.scroller.zoomBy(t,e,n,i,r):b("zoomBy and zoomTo are only for slide mode!")},zoomTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],i=arguments[3],r=arguments[4];this.scroller?this.scroller.zoomTo(t,e,n,i,r):b("zoomBy and zoomTo are only for slide mode!")},getCurrentPage:function(){if(this.scroller&&this.mergedOptions.vuescroll.paging)return this.scroller.getCurrentPage();b("getCurrentPage and goToPage are only for slide mode and paging is enble!")},goToPage:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.scroller&&this.mergedOptions.vuescroll.paging?this.scroller.goToPage(t,e):b("getCurrentPage and goToPage are only for slide mode and paging is enble!")},triggerRefreshOrLoad:function(t){if(this.scroller){var e=this.mergedOptions.vuescroll.pullRefresh.enable,n=this.mergedOptions.vuescroll.pushLoad.enable;if("refresh"!=t||e)if("load"!=t||n)if("refresh"===t||"load"===t){if("start"!=this.vuescroll.state[t+"Stage"])return this.scroller.triggerRefreshOrLoad(t),!0}else b("param must be one of load and refresh!");else b("load must be enabled and content's height > container's height!");else b("refresh must be enabled!")}else b("You can only use triggerRefreshOrLoad in slide mode!")},getCurrentviewDomSlide:function(){return nt(this.scrollPanelElm,this.$el)}}},_t={mixins:[yt,{mounted:function(){this.scrollX=new st,this.scrollY=new st},methods:{nativeStop:function(){this.scrollX.stop(),this.scrollY.stop()},nativePause:function(){this.scrollX.pause(),this.scrollY.pause()},nativeContinue:function(){this.scrollX.continue(),this.scrollY.continue()},nativeScrollTo:function(t,e,n,i){!1===n||void 0===n&&(n=this.mergedOptions.scrollPanel.speed);var r=this.scrollPanelElm,o=r.scrollTop,a=r.scrollLeft,s=r.scrollWidth,l=r.clientWidth,c=r.scrollHeight,u=r.clientHeight;if(t=void 0===t?a:k(t,s-l),e=void 0===e?o:k(e,c-u),n){var d=it(i=i||this.mergedOptions.scrollPanel.easing,rt);t!=a&&this.scrollX.startScroll(a,t,n,(function(t){r.scrollLeft=t}),this.scrollingComplete.bind(this),void 0,d),e!=o&&this.scrollY.startScroll(o,e,n,(function(t){r.scrollTop=t}),this.scrollingComplete.bind(this),void 0,d)}else r.scrollTop=e,r.scrollLeft=t},getCurrentviewDomNative:function(){return nt(this.scrollContentElm,this.$el)}}}],methods:{internalScrollTo:function(t,e,n,i){"native"==this.mode?this.nativeScrollTo(t,e,n,i):"slide"==this.mode&&this.slideScrollTo(t,e,n,i)},stop:function(){this.nativeStop()},pause:function(){this.nativePause()},continue:function(){this.nativeContinue()},getCurrentviewDom:function(){return"slide"==this.mode?this.getCurrentviewDomSlide():this.getCurrentviewDomNative()}}},wt=Date.now||function(){return+new Date},xt=60,Ct=1e3,St={},Et=1,Tt={effect:{}},Ot=null;Ot="undefined"!=typeof window?window:{},Tt.effect.Animate={requestAnimationFrame:Y(Ot),stop:function(t){var e=null!=St[t];return e&&(St[t]=null),e},isRunning:function(t){return null!=St[t]},start:function(t,e,n,i,r,o){var a=wt(),s=a,l=0,c=0,u=Et++;if(o||(o=document.body),u%20==0){var d={};for(var h in St)d[h]=!0;St=d}var p=function d(h){var p=!0!==h,f=wt();if(!St[u]||e&&!e(u))return St[u]=null,void(n&&n(xt-c/((f-a)/Ct),u,!1));if(p)for(var m=Math.round((f-s)/(Ct/xt))-1,v=0;v<Math.min(m,4);v++)d(!0),c++;if(St[u]){i&&(l=(f-a)/i)>1&&(l=1);var g=r?r(l):l;!1!==t(g,f,p)&&1!==l||!p?p&&(s=f,Tt.effect.Animate.requestAnimationFrame(d,o)):(St[u]=null,n&&n(xt-c/((f-a)/Ct),u,1===l||null==i))}};return St[u]=!0,Tt.effect.Animate.requestAnimationFrame(p,o),u}};var kt=null,At=null;function Pt(t,e){for(var n in this.__callback=t,this.options={scrollingX:!0,scrollingY:!0,animating:!0,animationDuration:250,bouncing:{top:100,bottom:100,left:100,right:100},locking:!0,paging:!1,snapping:!1,zooming:!1,minZoom:.5,maxZoom:3,speedMultiplier:1,scrollingComplete:B,animatingEasing:"easeOutCubic",noAnimatingEasing:"easeInOutCubic",penetrationDeceleration:.03,penetrationAcceleration:.08},e)this.options[n]=e[n];kt=it(this.options.animatingEasing,rt),At=it(this.options.noAnimatingEasing,rt)}var Mt={__isSingleTouch:!1,__isTracking:!1,__didDecelerationComplete:!1,__isGesturing:!1,__isDragging:!1,__isDecelerating:!1,__isAnimating:!1,__clientLeft:0,__clientTop:0,__clientWidth:0,__clientHeight:0,__contentWidth:0,__contentHeight:0,__snapWidth:100,__snapHeight:100,__refreshHeight:null,__loadHeight:null,__refreshActive:!1,__refreshActivate:null,__refreshBeforeDeactivate:null,__refreshDeactivate:null,__refreshStart:null,__loadActive:null,__loadActivate:null,__loadBeforeDeactivate:null,__loadDeactivate:null,__loadStart:null,__zoomLevel:1,__scrollLeft:0,__scrollTop:0,__maxScrollLeft:0,__maxScrollTop:0,__scheduledLeft:0,__scheduledTop:0,__scheduledZoom:0,__currentPageX:null,__currentPageY:null,__totalXPage:null,__totalYPage:null,__disable:!1,__lastTouchLeft:null,__lastTouchTop:null,__lastTouchMove:null,__positions:null,__minDecelerationScrollLeft:null,__minDecelerationScrollTop:null,__maxDecelerationScrollLeft:null,__maxDecelerationScrollTop:null,__decelerationVelocityX:null,__decelerationVelocityY:null,setDimensions:function(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=this;t===+t&&(a.__clientWidth=t),e===+e&&(a.__clientHeight=e),n===+n&&(a.__contentWidth=n),i===+i&&(a.__contentHeight=i),a.__computeScrollMax(),o||a.scrollTo(a.__scrollLeft,a.__scrollTop,r)},setPosition:function(t,e){var n=this;n.__clientLeft=t||0,n.__clientTop=e||0},setSnapSize:function(t,e){var n=this;n.__snapWidth=t,n.__snapHeight=e},activatePullToRefresh:function(t,e){var n=e.activateCallback,i=e.deactivateCallback,r=e.startCallback,o=e.beforeDeactivateCallback,a=e.beforeDeactiveEnd,s=this;s.__refreshHeight=t,s.__refreshActivate=n,s.__refreshBeforeDeactivate=o,s.__refreshBeforeDeactiveEnd=a,s.__refreshDeactivate=i,s.__refreshStart=r},activatePushToLoad:function(t,e){var n=e.activateCallback,i=e.deactivateCallback,r=e.startCallback,o=e.beforeDeactivateCallback,a=e.beforeDeactiveEnd,s=this;s.__loadHeight=t,s.__loadActivate=n,s.__loadBeforeDeactivate=o,s.__loadBeforeDeactiveEnd=a,s.__loadDeactivate=i,s.__loadStart=r},triggerRefreshOrLoad:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"refresh",e=this.__isDecelerating;if(e&&(Tt.effect.Animate.stop(e),this.__isDecelerating=!1),"refresh"==t){if(this.__refreshActive||this.__refreshBeforeDeactiveStarted)return;this.__publish(this.__scrollLeft,-this.__refreshHeight,this.__zoomLevel,!0),this.__refreshStart&&(this.__refreshStart(),this.__refreshActive=!0)}else if("load"==t){if(this.__loadActive||this.__loadBeforeDeactiveStarted)return;this.__publish(this.__scrollLeft,this.__maxScrollTop+this.__loadHeight,this.__zoomLevel,!0),this.__loadStart&&(this.__loadStart(),this.__loadActive=!0)}},finishRefreshOrLoad:function(){var t=this;if(t.__refreshActive){t.__refreshActive=!1;var e=function(){t.__refreshBeforeDeactiveEnd&&t.__refreshBeforeDeactiveEnd(),t.__refreshBeforeDeactiveStarted=!0,t.scrollTo(t.__scrollLeft,t.__scrollTop,!0)};t.__refreshBeforeDeactivate?t.__refreshBeforeDeactivate(e):e()}if(t.__loadActive){t.__loadActive=!1;var n=function(){t.__loadBeforeDeactiveEnd&&t.__loadBeforeDeactiveEnd(),t.__loadBeforeDeactiveStarted=!0,t.scrollTo(t.__scrollLeft,t.__scrollTop,!0)};t.__loadBeforeDeactivate?t.__loadBeforeDeactivate(n):n()}},getValues:function(){var t=this;return{left:t.__scrollLeft,top:t.__scrollTop,zoom:t.__zoomLevel}},getScrollMax:function(){var t=this;return{left:t.__maxScrollLeft,top:t.__maxScrollTop}},zoomTo:function(t,e,n,i,r){var o=this;if(!o.options.zooming)throw new Error("Zooming is not enabled!");r&&(o.__zoomComplete=r),o.__isDecelerating&&(Tt.effect.Animate.stop(o.__isDecelerating),o.__isDecelerating=!1);var a=o.__zoomLevel;null==n&&(n=o.__clientWidth/2),null==i&&(i=o.__clientHeight/2),t=Math.max(Math.min(t,o.options.maxZoom),o.options.minZoom),o.__computeScrollMax(t);var s=(n+o.__scrollLeft)*t/a-n,l=(i+o.__scrollTop)*t/a-i;s>o.__maxScrollLeft?s=o.__maxScrollLeft:s<0&&(s=0),l>o.__maxScrollTop?l=o.__maxScrollTop:l<0&&(l=0),o.__publish(s,l,t,e)},zoomBy:function(t,e,n,i,r){var o=this;o.zoomTo(o.__zoomLevel*t,e,n,i,r)},scrollTo:function(t,e,n,i,r,o,a){var s=this;if(s.__isDecelerating&&(Tt.effect.Animate.stop(s.__isDecelerating),s.__isDecelerating=!1),null!=i&&i!==s.__zoomLevel){if(!s.options.zooming)throw new Error("Zooming is not enabled!");t*=i,e*=i,s.__computeScrollMax(i)}else i=s.__zoomLevel;s.options.scrollingX||r?s.options.paging?t=Math.round(t/s.__clientWidth)*s.__clientWidth:s.options.snapping&&(t=Math.round(t/s.__snapWidth)*s.__snapWidth):t=s.__scrollLeft,s.options.scrollingY||r?s.options.paging?e=Math.round(e/s.__clientHeight)*s.__clientHeight:s.options.snapping&&(e=Math.round(e/s.__snapHeight)*s.__snapHeight):e=s.__scrollTop,r||(t=Math.max(Math.min(s.__maxScrollLeft,t),0),e=Math.max(Math.min(s.__maxScrollTop,e),0)),t===s.__scrollLeft&&e===s.__scrollTop&&(n=!1),s.__isTracking||s.__publish(t,e,i,n,o,a)},scrollBy:function(t,e,n){var i=this,r=i.__isAnimating?i.__scheduledLeft:i.__scrollLeft,o=i.__isAnimating?i.__scheduledTop:i.__scrollTop;i.scrollTo(r+(t||0),o+(e||0),n)},getCurrentPage:function(){return this.__computePage(),{x:this.__currentPageX,y:this.__currentPageY}},goToPage:function(t,e){var n=t.x,i=t.y;isNaN(n)&&(n=1),isNaN(i)&&(i=1),this.scrollTo((n-1)*this.__clientWidth,(i-1)*this.__clientHeight,e)},doMouseZoom:function(t,e,n,i){var r=this,o=t>0?.97:1.03;return r.zoomTo(r.__zoomLevel*o,!1,n-r.__clientLeft,i-r.__clientTop)},doTouchStart:function(t,e){if(null==t.length)throw new Error("Invalid touch list: "+t);if(e instanceof Date&&(e=e.valueOf()),"number"!=typeof e)throw new Error("Invalid timestamp value: "+e);var n,i,r=this;r.__interruptedAnimation=!0,r.__isDecelerating&&(Tt.effect.Animate.stop(r.__isDecelerating),r.__isDecelerating=!1,r.__interruptedAnimation=!0),r.__isAnimating&&(Tt.effect.Animate.stop(r.__isAnimating),r.__isAnimating=!1,r.__interruptedAnimation=!0);var o=1===t.length;o?(n=t[0].pageX,i=t[0].pageY):(n=Math.abs(t[0].pageX+t[1].pageX)/2,i=Math.abs(t[0].pageY+t[1].pageY)/2),r.__initialTouchLeft=n,r.__initialTouchTop=i,r.__zoomLevelStart=r.__zoomLevel,r.__lastTouchLeft=n,r.__lastTouchTop=i,r.__lastTouchMove=e,r.__lastScale=1,r.__enableScrollX=!o&&r.options.scrollingX,r.__enableScrollY=!o&&r.options.scrollingY,r.__isTracking=!0,r.__didDecelerationComplete=!1,r.__isDragging=!o,r.__isSingleTouch=o,r.__positions=[]},doTouchMove:function(t,e,n){if(null==t.length)throw new Error("Invalid touch list: "+t);if(e instanceof Date&&(e=e.valueOf()),"number"!=typeof e)throw new Error("Invalid timestamp value: "+e);var i=this;if(i.__isTracking){var r,o;2===t.length?(r=Math.abs(t[0].pageX+t[1].pageX)/2,o=Math.abs(t[0].pageY+t[1].pageY)/2):(r=t[0].pageX,o=t[0].pageY);var a=i.__positions;if(i.__isDragging){var s=r-i.__lastTouchLeft,l=o-i.__lastTouchTop,c=i.__scrollLeft,u=i.__scrollTop,d=i.__zoomLevel;if(null!=n&&i.options.zooming){var h=d;if(d=d/i.__lastScale*n,h!==(d=Math.max(Math.min(d,i.options.maxZoom),i.options.minZoom))){var p=r-i.__clientLeft,f=o-i.__clientTop;c=(p+c)*d/h-p,u=(f+u)*d/h-f,i.__computeScrollMax(d)}}var m=i.options.bouncing;if(i.__enableScrollX){c-=s*this.options.speedMultiplier;var v=i.__maxScrollLeft;(c>v||c<0)&&(c+=s/2*this.options.speedMultiplier,c=Math.min(Math.max(-m.left,c),v+m.right))}if(i.__enableScrollY){u-=l*this.options.speedMultiplier;var g=i.__maxScrollTop;(u>g||u<0)&&(u+=l/2*this.options.speedMultiplier,u=Math.min(Math.max(-m.top,u),g+m.bottom),i.__enableScrollX||null==i.__refreshHeight&&null==i.__loadHeight||(!i.__refreshActive&&u<=-i.__refreshHeight?(i.__refreshActive=!0,i.__refreshActivate&&i.__refreshActivate()):i.__refreshActive&&u>-i.__refreshHeight?(i.__refreshActive=!1,i.__refreshDeactivate&&i.__refreshDeactivate()):!i.__loadActive&&u>=i.__maxScrollTop+i.__loadHeight&&i.__loadHeight>0?(i.__loadActive=!0,i.__loadActivate&&i.__loadActivate()):i.__loadActive&&u<i.__maxScrollTop+i.__loadHeight&&(i.__loadActive=!1,i.__loadDeactivate&&i.__loadDeactivate())))}a.length>60&&a.splice(0,30),a.push(c,u,e),i.__publish(c,u,d)}else{var b=i.options.locking?3:0,y=5,_=Math.abs(r-i.__initialTouchLeft),w=Math.abs(o-i.__initialTouchTop);i.__enableScrollX=i.options.scrollingX&&_>=b,i.__enableScrollY=i.options.scrollingY&&w>=b,a.push(i.__scrollLeft,i.__scrollTop,e),i.__isDragging=(i.__enableScrollX||i.__enableScrollY)&&(_>=y||w>=y),i.__isDragging&&(i.__interruptedAnimation=!1)}i.__lastTouchLeft=r,i.__lastTouchTop=o,i.__lastTouchMove=e,i.__lastScale=n}},doTouchEnd:function(t){if(t instanceof Date&&(t=t.valueOf()),"number"!=typeof t)throw new Error("Invalid timestamp value: "+t);var e=this;if(e.__isTracking){if(e.__isTracking=!1,e.__isDragging)if(e.__isDragging=!1,e.__isSingleTouch&&e.options.animating&&t-e.__lastTouchMove<=100){for(var n=e.__positions,i=n.length-1,r=i,o=i;o>0&&n[o]>e.__lastTouchMove-100;o-=3)r=o;if(r!==i){var a=n[i]-n[r],s=e.__scrollLeft-n[r-2],l=e.__scrollTop-n[r-1];e.__decelerationVelocityX=s/a*(1e3/60),e.__decelerationVelocityY=l/a*(1e3/60);var c=e.options.paging||e.options.snapping?4:1;Math.abs(e.__decelerationVelocityX)>c||Math.abs(e.__decelerationVelocityY)>c?e.__refreshActive||e.__loadActive||e.__startDeceleration(t):e.__scrollComplete()}else e.__scrollComplete()}else t-e.__lastTouchMove>100&&e.__scrollComplete();e.__isDecelerating||(e.__refreshActive&&e.__refreshStart?(e.__publish(e.__scrollLeft,-e.__refreshHeight,e.__zoomLevel,!0),e.__refreshStart&&e.__refreshStart()):e.__loadActive&&e.__loadStart?(e.__publish(e.__scrollLeft,e.__maxScrollTop+e.__loadHeight,e.__zoomLevel,!0),e.__loadStart&&e.__loadStart()):((e.__interruptedAnimation||e.__isDragging)&&e.__scrollComplete(),e.scrollTo(e.__scrollLeft,e.__scrollTop,!0,e.__zoomLevel),e.__refreshActive?(e.__refreshActive=!1,e.__refreshDeactivate&&e.__refreshDeactivate()):e.__loadActive&&(e.__loadActive=!1,e.__loadDeactivate&&e.__loadDeactivate()))),e.__positions.length=0}},onScroll:B,stop:function(){this.__disable=!0},start:function(){this.__disable=!0},__publish:function(t,e,n,i,r,o){var a=this;if(!a.__disable){isNaN(t)&&(t=this.__scrollLeft),isNaN(e)&&(e=this.__scrollTop);var s=a.__isAnimating;if(s&&(Tt.effect.Animate.stop(s),a.__isAnimating=!1),i&&(a.options.animating||r)){a.__scheduledLeft=t,a.__scheduledTop=e,a.__scheduledZoom=n;var l=a.__scrollLeft,c=a.__scrollTop,u=a.__zoomLevel,d=t-l,h=e-c,p=n-u,f=function(t,e,n){n&&(a.__scrollLeft=l+d*t,a.__scrollTop=c+h*t,a.__zoomLevel=u+p*t,a.__callback&&(a.__callback(a.__scrollLeft,a.__scrollTop,a.__zoomLevel),a.onScroll()))},m=function(t){return a.__isAnimating===t},v=function(t,e,n){e===a.__isAnimating&&(a.__isAnimating=!1),(a.__didDecelerationComplete||n)&&a.__scrollComplete(),a.options.zooming&&(a.__computeScrollMax(),a.__zoomComplete&&(a.__zoomComplete(),a.__zoomComplete=null)),a.__refreshBeforeDeactiveStarted&&(a.__refreshBeforeDeactiveStarted=!1,a.__refreshDeactivate&&a.__refreshDeactivate()),a.__loadBeforeDeactiveStarted&&(a.__loadBeforeDeactiveStarted=!1,a.__loadDeactivate&&a.__loadDeactivate())},g=kt;o&&(g=it(o,rt)),a.__isAnimating=Tt.effect.Animate.start(f,m,v,r||a.options.animationDuration,s?g:At)}else a.__scheduledLeft=a.__scrollLeft=t,a.__scheduledTop=a.__scrollTop=e,a.__scheduledZoom=a.__zoomLevel=n,a.__callback&&(a.__callback(t,e,n),a.onScroll()),a.options.zooming&&(a.__computeScrollMax(),a.__zoomComplete&&(a.__zoomComplete(),a.__zoomComplete=null)),a.__refreshBeforeDeactiveStarted&&(a.__refreshBeforeDeactiveStarted=!1,a.__refreshDeactivate&&a.__refreshDeactivate()),a.__loadBeforeDeactiveStarted&&(a.__loadBeforeDeactiveStarted=!1,a.__loadDeactivate&&a.__loadDeactivate())}},__computeScrollMax:function(t){var e=this;null==t&&(t=e.__zoomLevel),e.__maxScrollLeft=Math.max(e.__contentWidth*t-e.__clientWidth,0),e.__maxScrollTop=Math.max(e.__contentHeight*t-e.__clientHeight,0)},__computePage:function(){var t=this,e=t.__clientWidth,n=t.__clientHeight,i=t.__scrollLeft,r=t.__scrollTop;t.__totalXPage=Math.ceil(t.__contentWidth/e),t.__currentPageX=Math.ceil(i/e+1),t.__totalYPage=Math.ceil(t.__contentHeight/n),t.__currentPageY=Math.ceil(r/n+1)},__scrollComplete:function(){this.options.scrollingComplete()},__startDeceleration:function(){var t=this;if(t.options.paging){var e=Math.max(Math.min(t.__scrollLeft,t.__maxScrollLeft),0),n=Math.max(Math.min(t.__scrollTop,t.__maxScrollTop),0),i=t.__clientWidth,r=t.__clientHeight;t.__minDecelerationScrollLeft=Math.floor(e/i)*i,t.__minDecelerationScrollTop=Math.floor(n/r)*r,t.__maxDecelerationScrollLeft=Math.ceil(e/i)*i,t.__maxDecelerationScrollTop=Math.ceil(n/r)*r}else t.__minDecelerationScrollLeft=0,t.__minDecelerationScrollTop=0,t.__maxDecelerationScrollLeft=t.__maxScrollLeft,t.__maxDecelerationScrollTop=t.__maxScrollTop;var o=function(e,n,i){t.__stepThroughDeceleration(i)},a=t.options.snapping?4:.001,s=function(){var e=Math.abs(t.__decelerationVelocityX)>=a||Math.abs(t.__decelerationVelocityY)>=a;return e||(t.__didDecelerationComplete=!0),e},l=function(){t.__isDecelerating&&(t.__isDecelerating=!1,t.__didDecelerationComplete&&t.__scrollComplete(),t.scrollTo(t.__scrollLeft,t.__scrollTop,t.options.snapping))};t.__isDecelerating=Tt.effect.Animate.start(o,s,l)},__stepThroughDeceleration:function(t){var e=this,n=e.options.bouncing,i=e.__minDecelerationScrollLeft,r=e.__maxDecelerationScrollLeft,o=e.__minDecelerationScrollTop,a=e.__maxDecelerationScrollTop,s=e.__scrollLeft+e.__decelerationVelocityX,l=e.__scrollTop+e.__decelerationVelocityY,c=s<i||s>r,u=l<o||l>a,d=Math.min(Math.max(i-n.left,s),r+n.right),h=Math.min(Math.max(o-n.top,l),a+n.bottom);if(t?e.__publish(d,h,e.__zoomLevel):(e.__scrollLeft=s,e.__scrollTop=l),!e.options.paging){var p=.95;e.__decelerationVelocityX*=p,e.__decelerationVelocityY*=p}var f=0,m=0,v=e.options.penetrationDeceleration,g=e.options.penetrationAcceleration;c&&(s<e.__minDecelerationScrollLeft?f=e.__minDecelerationScrollLeft-s:s>e.__maxDecelerationScrollLeft&&(f=e.__maxDecelerationScrollLeft-s)),u&&(l<e.__minDecelerationScrollTop?m=e.__minDecelerationScrollTop-l:l>e.__maxDecelerationScrollTop&&(m=e.__maxDecelerationScrollTop-l)),0!==f&&(f*e.__decelerationVelocityX<=0?(e.__decelerationVelocityX+=f*v,f<0&&-f>=n.right&&e.__decelerationVelocityX>0&&(e.__decelerationVelocityX=-n.right/2),f>0&&f>=n.left&&e.__decelerationVelocityX<0&&(e.__decelerationVelocityX=n.left/2)):e.__decelerationVelocityX=f*g),0!==m&&(m*e.__decelerationVelocityY<=0?(e.__decelerationVelocityY+=m*v,m<0&&-m>=n.bottom&&e.__decelerationVelocityY>0&&(e.__decelerationVelocityY=-n.bottom/2),m>0&&m>=n.top&&e.__decelerationVelocityY<0&&(e.__decelerationVelocityY=n.top/2)):e.__decelerationVelocityY=m*g/2)}};for(var Lt in Mt)Pt.prototype[Lt]=Mt[Lt];function Dt(t,e,n,i){if("position"==i)return function(e,n){t.style.left=-e+"px",t.style.top=-n+"px"};var r,o=_(e),a=document.createElement("div"),s=o+"Perspective",l="transform";return a.style[s]!==r?function(e,i,r){t.style[l]="translate3d("+-e+n+","+-i+n+",0) scale("+r+")"}:a.style[l]!==r?function(e,i,r){t.style[l]="translate("+-e+n+","+-i+n+") scale("+r+")"}:void 0}var Rt=new u;function It(t,e,n,i,r,o){var a=null,s=!1,l=Rt.getTouchObject();function c(t){var i=Rt.getEventObject(t);i[0]&&i[0].target&&i[0].target.tagName.match(/input|textarea|select/i)||e.__disable||(n("mousedown"),s=!0,e.doTouchStart(i,t.timeStamp),r&&t.preventDefault(),t.stopPropagation(),document.addEventListener(l.touchmove,u,{passive:!1}))}function u(t){if(!e.__disable&&s){var i=Rt.getEventObject(t);n("mousemove"),e.doTouchMove(i,t.timeStamp,t.scale),o&&t.preventDefault()}}function d(t){n("mouseup"),s=!1,e.doTouchEnd(t.timeStamp),document.removeEventListener(l.touchmove,u)}function h(t){e.doTouchEnd(t.timeStamp)}function p(t){e.doMouseZoom(t.detail?-120*t.detail:t.wheelDelta,t.timeStamp,t.pageX,t.pageY)}return t.addEventListener(l.touchstart,c,!1),document.addEventListener(l.touchend,d,!1),document.addEventListener(l.touchcancel,h,!1),i&&!Rt.isTouch&&t.addEventListener(navigator.userAgent.indexOf("Firefox")>-1?"DOMMouseScroll":"mousewheel",p,!1),a=function(){t.removeEventListener(l.touchstart,c,!1),document.removeEventListener(l.touchend,d,!1),document.removeEventListener(l.touchcancel,h,!1),t.removeEventListener(navigator.userAgent.indexOf("Firefox")>-1?"DOMMouseScroll":"mousewheel",p,!1)},e.onScroll=function(){n("onscroll")},a}function jt(t,e,n,i){var r=n.$listeners,o=function(){n.vuescroll.state[e]="active",n.$emit(t+"-activate",n,i)},a=function(){n.vuescroll.state[e]="deactive",n.$emit(t+"-deactivate",n,i)},s=function(){n.vuescroll.state[e]="beforeDeactiveEnd",n.$emit(t+"-before-deactivate-end",n,i)},l=function(){n.vuescroll.state[e]="start",setTimeout((function(){n.scroller.finishRefreshOrLoad()}),2e3)},c=void 0;return r[t+"-before-deactivate"]&&(c=function(r){n.vuescroll.state[e]="beforeDeactive",n.$emit(t+"-before-deactivate",n,i,r.bind(n.scroller))}),r[t+"-start"]&&(l=function(){n.vuescroll.state[e]="start",n.$emit(t+"-start",n,i,n.scroller.finishRefreshOrLoad.bind(n.scroller))}),{activateCallback:o,deactivateCallback:a,startCallback:l,beforeDeactivateCallback:c,beforeDeactiveEnd:s}}M();var Nt={mounted:function(){this.vsMounted=!0},computed:{pullRefreshTip:function(){return this.mergedOptions.vuescroll.pullRefresh.tips[this.vuescroll.state.refreshStage]},pushLoadTip:function(){return this.mergedOptions.vuescroll.pushLoad.tips[this.vuescroll.state.loadStage]},refreshLoad:function(){return this.mergedOptions.vuescroll.pullRefresh.enable||this.mergedOptions.vuescroll.pushLoad.enable},refrehDomVisiable:function(){return this.vsMounted&&this.outTheTopBoundary},loadDomVisiable:function(){return this.vsMounted&&this.outTheBottomBoundary}},data:function(){return{vuescroll:{state:{refreshStage:"deactive",loadStage:"deactive"}},vsMounted:!1,outTheTopBoundary:!1,outTheBottomBoundary:!1}},methods:{updateScroller:function(){this.updateDimesion(),this.registryRefreshLoad()},updateDimesion:function(){var t=this.$el.clientWidth,e=this.$el.clientHeight,n=this.scrollPanelElm.scrollWidth,i=this.scrollPanelElm.scrollHeight,r=0,o=0;if(this.mergedOptions.vuescroll.pullRefresh.enable&&this.vsMounted){var a=this.$refs[U].elm||this.$refs[U];r=a.offsetHeight,a.style.marginTop=-r+"px"}if(this.mergedOptions.vuescroll.pushLoad.enable&&this.vsMounted){var s=this.$refs[H].elm||this.$refs[H];i-=o=s.offsetHeight,s.style.bottom="-"+o+"px"}this.scroller&&this.scroller.setDimensions(t,e,n,i,!1)},registryRefreshLoad:function(){this.mergedOptions.vuescroll.pullRefresh.enable&&this.registryEvent("refresh"),this.mergedOptions.vuescroll.pushLoad.enable&&this.registryEvent("load")},registryScroller:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.left,i=void 0===n?0:n,r=e.top,a=void 0===r?0:r,s=e.zoom,l=void 0===s?1:s,c=this.mergedOptions.vuescroll.scroller,u=c.preventDefault,d=c.preventDefaultOnMove,h=this.mergedOptions.vuescroll,p=h.paging,f=h.snapping.enable,m=h.renderMethod,v=h.zooming,g=h.locking;v=!this.refreshLoad&&!p&&!f&&v;var b=this.mergedOptions.scrollPanel,y=b.scrollingY,_=b.scrollingX,w=this.scrollingComplete.bind(this);this.scroller=new Pt(Dt(this.scrollPanelElm,window,"px",m),o({},this.mergedOptions.vuescroll.scroller,{zooming:v,scrollingY:y,scrollingX:_&&!this.refreshLoad,animationDuration:this.mergedOptions.scrollPanel.speed,paging:p,snapping:f,scrollingComplete:w,locking:g})),this.scroller.__disable=this.mergedOptions.vuescroll.scroller.disable,this.scroller.__scrollLeft=i,this.scroller.__scrollTop=a,this.scroller.__zoomLevel=l,f&&this.scroller.setSnapSize(this.mergedOptions.vuescroll.snapping.width,this.mergedOptions.vuescroll.snapping.height);var x=this.$el.getBoundingClientRect();this.scroller.setPosition(x.left+this.$el.clientLeft,x.top+this.$el.clientTop);var C=It(this.$el,this.scroller,(function(e){switch(e){case"mousedown":t.vuescroll.state.isDragging=!0;break;case"onscroll":var n=t.vuescroll.state.loadStage,i=t.mergedOptions.vuescroll.pushLoad,r=i.enable,o=i.auto,a=i.autoLoadDistance,s=t.scroller,l=s.__scrollTop,c=s.__maxScrollTop;"start"!=n&&r&&o&&!t.lockAutoLoad&&a>=c-l&&l>0&&(t.lockAutoLoad=!0,t.triggerRefreshOrLoad("load")),a<c-l&&(t.lockAutoLoad=!1),t.handleScroll(!1);break;case"mouseup":t.vuescroll.state.isDragging=!1}}),v,u,d);return this.updateScroller(),C},updateSlideModeBarState:function(){var t=void 0,e=void 0,n=this.$el,i=this.scroller,r=0,o=0,a=this.$el,s=a.clientWidth,l=a.clientHeight,c=s+this.scroller.__maxScrollLeft,u=l+this.scroller.__maxScrollTop;i.__scrollLeft<0?r=-i.__scrollLeft:i.__scrollLeft>i.__maxScrollLeft&&(r=i.__scrollLeft-i.__maxScrollLeft),i.__scrollTop<0?(o=-i.__scrollTop,this.outTheBottomBoundary=!1,this.outTheTopBoundary=!0):i.__scrollTop>i.__maxScrollTop?(o=i.__scrollTop-i.__maxScrollTop,this.outTheTopBoundary=!1,this.outTheBottomBoundary=!0):this.outTheTopBoundary=this.outTheBottomBoundary=!1,t=l/(u+o),e=s/(c+r);var d=Math.min(Math.max(0,i.__scrollTop),i.__maxScrollTop),h=Math.min(Math.max(0,i.__scrollLeft),i.__maxScrollLeft);this.bar.vBar.state.posValue=100*(d+o)/n.clientHeight,this.bar.hBar.state.posValue=100*(h+r)/n.clientWidth,i.__scrollLeft<0&&(this.bar.hBar.state.posValue=0),i.__scrollTop<0&&(this.bar.vBar.state.posValue=0),this.bar.vBar.state.size=t<1?t:0,this.bar.hBar.state.size=e<1?e:0},registryEvent:function(t){var e="refresh"==t?U:H,n="refresh"==t?this.scroller.activatePullToRefresh:this.scroller.activatePushToLoad,i="refresh"==t?"refreshStage":"loadStage",r=this.$refs[e].elm||this.$refs[e],o=jt(t,i,this,r),a=r.offsetHeight;n.bind(this.scroller)(a,o)},getSlidePosition:function(){return{scrollLeft:this.scroller.__scrollLeft,scrollTop:this.scroller.__scrollTop}}}},Ft={mixins:[_t].concat(a([Nt,{methods:{updateNativeModeBarState:function(){var t=this.scrollPanelElm,e="percent"==this.vuescroll.state.currentSizeStrategy,n=this.vuescroll.state,i=n.width,r=n.height,o=e||!i?t.clientWidth:i.slice(0,-2),a=e||!r?t.clientHeight:r.slice(0,-2),s=a/t.scrollHeight,l=o/t.scrollWidth;this.bar.vBar.state.posValue=100*t.scrollTop/a,this.bar.hBar.state.posValue=100*t.scrollLeft/o,this.bar.vBar.state.size=s<1?s:0,this.bar.hBar.state.size=l<1?l:0},getNativePosition:function(){return{scrollTop:this.scrollPanelElm.scrollTop,scrollLeft:this.scrollPanelElm.scrollLeft}},css:function(t,e){return window.getComputedStyle(t)[e]},checkScrollable:function(t,e,n){for(var i=!1,r=t.target?t.target:t;r&&1==r.nodeType&&r!==this.scrollPanelElm.parentNode&&!/^BODY|HTML/.test(r.nodeName);){var o=this.css(r,"overflow")||"";if(/scroll|auto/.test(o)){var a=this.getScrollProcess(r),s=a.v,l=a.h,c="hidden"!==this.css(r,"overflowX"),u="hidden"!==this.css(r,"overflowY");if(c&&(e<0&&l>0||e>0&&l<1)||u&&(n<0&&s>0||n>0&&s<1)){i=r==this.scrollPanelElm;break}}r=!!r.parentNode&&r.parentNode}return i},onMouseWheel:function(t){var e=this.mergedOptions.vuescroll,n=e.wheelDirectionReverse,i=e.wheelScrollDuration,r=e.checkShiftKey,o=e.locking,a=void 0,s=void 0;t.wheelDelta?t.deltaY||t.deltaX?(a=t.deltaX,s=t.deltaY,o&&(Math.abs(t.deltaX)>Math.abs(t.deltaY)?s=0:a=0)):(a=0,s=-1*t.wheelDelta/2):t.detail&&(s=a=16*t.detail,1==t.axis?s=0:2==t.axis&&(a=0)),r&&t.shiftKey&&(a^=s,a^=s^=a),n&&(a^=s,a^=s^=a),this.checkScrollable(t,a,s)&&(t.stopPropagation(),t.preventDefault(),this.scrollBy({dx:a,dy:s},i))}},computed:{scrollContentElm:function(){return this.$refs.scrollContent._isVue?this.$refs.scrollContent.$el:this.$refs.scrollContent}}}])),mounted:function(){this._isDestroyed||this.renderError||("slide"==this.mode&&this.updatedCbs.push(this.updateScroller),this.$watch("mergedOptions.vuescroll.scroller.disable",{sync:!0,handler:function(t){this.scroller&&(this.scroller.__disable=t)}}))},computed:{mode:function(){return this.mergedOptions.vuescroll.mode}},methods:{destroy:function(){this.destroyScroller&&(this.scroller.stop(),this.destroyScroller(),this.destroyScroller=null),this.destroyResize&&this.destroyResize()},handleScroll:function(t){this.updateBarStateAndEmitEvent("handle-scroll",t)},updateBarStateAndEmitEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("native"==this.mode)this.updateNativeModeBarState();else if("slide"==this.mode){if(!this.scroller)return;this.updateSlideModeBarState()}t&&this.emitEvent(t,e),this.mergedOptions.bar.onlyShowBarOnScroll?"handle-scroll"!=t&&"handle-resize"!=t&&"refresh-status"!=t&&"window-resize"!=t&&"options-change"!=t||this.showAndDefferedHideBar(!0):this.showAndDefferedHideBar()},getScrollProcess:function(){var t=this.scrollPanelElm,e=t.scrollHeight,n=t.scrollWidth,i=t.clientHeight,r=t.clientWidth,o=t.scrollTop,a=t.scrollLeft;return"slide"==this.mode&&(e=this.scroller.__contentHeight,n=this.scroller.__contentWidth,o=this.scroller.__scrollTop,a=this.scroller.__scrollLeft,i=this.$el.clientHeight,r=this.$el.clientWidth),{v:Math.min(o/(e-i||1),1),h:Math.min(a/(n-r||1),1)}},emitEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.scrollPanelElm,i=n.scrollTop,r=n.scrollLeft,o={type:"vertical"},a={type:"horizontal"},s=this.getScrollProcess(),l=s.v,c=s.h;o.process=l,a.process=c,o.barSize=this.bar.vBar.state.size,a.barSize=this.bar.hBar.state.size,o.scrollTop=i,a.scrollLeft=r,this.$emit(t,o,a,e)},initVariables:function(){this.lastMode=this.mode,this.$el._isVuescroll=!0},refreshMode:function(){var t=void 0;this.scroller&&(t=this.scroller.getValues()),this.destroyScroller&&(this.scroller.stop(),this.destroyScroller(),this.destroyScroller=null),"slide"==this.mode?this.destroyScroller=this.registryScroller(t):"native"==this.mode&&(this.scrollPanelElm.style.transform="",this.scrollPanelElm.style.transformOrigin="")},refreshInternalStatus:function(){this.setVsSize(),this.registryResize(),this.refreshMode(),this.updateBarStateAndEmitEvent("refresh-status")},registryResize:function(){var t=this,e=this.mergedOptions.vuescroll.detectResize,n=!1;if(this.lastMode!=this.mode&&(n=!0,this.lastMode=this.mode),(!this.destroyResize||!e||n)&&(this.destroyResize&&this.destroyResize(),e)){var i=null;"slide"==this.mode?i=this.scrollPanelElm:"native"==this.mode&&(i=this.scrollContentElm);var r=this,o=function(){r.updateBarStateAndEmitEvent("window-resize"),"slide"==r.mode&&(r.updatedCbs.push(r.updateScroller),r.$forceUpdate())},a=function(){var e={};"slide"==t.mode?(e.width=t.scroller.__contentWidth,e.height=t.scroller.__contentHeight,t.updateBarStateAndEmitEvent("handle-resize",e),t.updatedCbs.push(t.updateScroller),t.$forceUpdate()):"native"==t.mode&&(e.width=t.scrollPanelElm.scrollWidth,e.height=t.scrollPanelElm.scrollHeight,t.updateBarStateAndEmitEvent("handle-resize",e)),t.setVsSize()};window.addEventListener("resize",o,!1);var s=gt(i,a),l=function(){window.removeEventListener("resize",o,!1)};this.destroyResize=function(){l(),s(),t.destroyResize=null}}},getPosition:function(){return"slide"==this.mode?this.getSlidePosition():"native"==this.mode?this.getNativePosition():void 0}}};function zt(t){var e=!1,n=t.vuescroll;return n.paging==n.snapping.enable&&n.paging&&(n.pullRefresh||n.pushLoad)&&g("paging, snapping, (pullRefresh with pushLoad) can only one of them to be true."),e}function Bt(t){var e=!1,n=t.vuescroll;return~z.indexOf(n.mode)||(g("Unknown mode: "+n.mode+',the vuescroll\'s option "mode" should be one of the '+z),e=!0),e}var $t=et(Ft,vt,[{vuescroll:{mode:"native"}},{vuescroll:{renderMethod:"transform",pullRefresh:{enable:!1,tips:{deactive:"Pull to Refresh",active:"Release to Refresh",start:"Refreshing...",beforeDeactive:"Refresh Successfully!"}},pushLoad:{enable:!1,tips:{deactive:"Push to Load",active:"Release to Load",start:"Loading...",beforeDeactive:"Load Successfully!"},auto:!1,autoLoadDistance:0},paging:!1,zooming:!0,snapping:{enable:!1,width:100,height:100},scroller:{bouncing:{top:100,bottom:100,left:100,right:100},minZoom:.5,maxZoom:3,speedMultiplier:1,penetrationDeceleration:.03,penetrationAcceleration:.08,preventDefault:!1,preventDefaultOnMove:!0,disable:!1}}},{vuescroll:{wheelScrollDuration:0,wheelDirectionReverse:!1,checkShiftKey:!0}}],[Bt,zt]);function Ut(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.component(e.name||$t.name,$t),t.prototype.$vuescrollConfig=e.ops||{}}var Ht=o({install:Ut,version:"4.17.3",refreshAll:R,scrollTo:lt},$t);return"undefined"!=typeof window&&window.Vue&&window.Vue.use(Ht),Ht}(n(2893))},5353:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>L});var i=("undefined"!=typeof window?window:void 0!==n.g?n.g:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function r(t,e){if(void 0===e&&(e=[]),null===t||"object"!=typeof t)return t;var n,i=(n=function(e){return e.original===t},e.filter(n)[0]);if(i)return i.copy;var o=Array.isArray(t)?[]:{};return e.push({original:t,copy:o}),Object.keys(t).forEach((function(n){o[n]=r(t[n],e)})),o}function o(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function a(t){return null!==t&&"object"==typeof t}var s=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},l={namespaced:{configurable:!0}};l.namespaced.get=function(){return!!this._rawModule.namespaced},s.prototype.addChild=function(t,e){this._children[t]=e},s.prototype.removeChild=function(t){delete this._children[t]},s.prototype.getChild=function(t){return this._children[t]},s.prototype.hasChild=function(t){return t in this._children},s.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},s.prototype.forEachChild=function(t){o(this._children,t)},s.prototype.forEachGetter=function(t){this._rawModule.getters&&o(this._rawModule.getters,t)},s.prototype.forEachAction=function(t){this._rawModule.actions&&o(this._rawModule.actions,t)},s.prototype.forEachMutation=function(t){this._rawModule.mutations&&o(this._rawModule.mutations,t)},Object.defineProperties(s.prototype,l);var c=function(t){this.register([],t,!1)};function u(t,e,n){if(e.update(n),n.modules)for(var i in n.modules){if(!e.getChild(i))return void 0;u(t.concat(i),e.getChild(i),n.modules[i])}}c.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},c.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return t+((e=e.getChild(n)).namespaced?n+"/":"")}),"")},c.prototype.update=function(t){u([],this.root,t)},c.prototype.register=function(t,e,n){var i=this;void 0===n&&(n=!0);var r=new s(e,n);0===t.length?this.root=r:this.get(t.slice(0,-1)).addChild(t[t.length-1],r);e.modules&&o(e.modules,(function(e,r){i.register(t.concat(r),e,n)}))},c.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],i=e.getChild(n);i&&i.runtime&&e.removeChild(n)},c.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var d;var h=function(t){var e=this;void 0===t&&(t={}),!d&&"undefined"!=typeof window&&window.Vue&&_(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new c(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new d,this._makeLocalGettersCache=Object.create(null);var o=this,a=this.dispatch,s=this.commit;this.dispatch=function(t,e){return a.call(o,t,e)},this.commit=function(t,e,n){return s.call(o,t,e,n)},this.strict=r;var l=this._modules.root.state;g(this,l,[],this._modules.root),v(this,l),n.forEach((function(t){return t(e)})),(void 0!==t.devtools?t.devtools:d.config.devtools)&&function(t){i&&(t._devtoolHook=i,i.emit("vuex:init",t),i.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){i.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){i.emit("vuex:action",t,e)}),{prepend:!0}))}(this)},p={state:{configurable:!0}};function f(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function m(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;g(t,n,[],t._modules.root,!0),v(t,n,e)}function v(t,e,n){var i=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var r=t._wrappedGetters,a={};o(r,(function(e,n){a[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var s=d.config.silent;d.config.silent=!0,t._vm=new d({data:{$$state:e},computed:a}),d.config.silent=s,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),i&&(n&&t._withCommit((function(){i._data.$$state=null})),d.nextTick((function(){return i.$destroy()})))}function g(t,e,n,i,r){var o=!n.length,a=t._modules.getNamespace(n);if(i.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=i),!o&&!r){var s=b(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit((function(){d.set(s,l,i.state)}))}var c=i.context=function(t,e,n){var i=""===e,r={dispatch:i?t.dispatch:function(n,i,r){var o=y(n,i,r),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=e+l),t.dispatch(l,a)},commit:i?t.commit:function(n,i,r){var o=y(n,i,r),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=e+l),t.commit(l,a,s)}};return Object.defineProperties(r,{getters:{get:i?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var n={},i=e.length;Object.keys(t.getters).forEach((function(r){if(r.slice(0,i)===e){var o=r.slice(i);Object.defineProperty(n,o,{get:function(){return t.getters[r]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return b(t.state,n)}}}),r}(t,a,n);i.forEachMutation((function(e,n){!function(t,e,n,i){var r=t._mutations[e]||(t._mutations[e]=[]);r.push((function(e){n.call(t,i.state,e)}))}(t,a+n,e,c)})),i.forEachAction((function(e,n){var i=e.root?n:a+n,r=e.handler||e;!function(t,e,n,i){var r=t._actions[e]||(t._actions[e]=[]);r.push((function(e){var r,o=n.call(t,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:t.getters,rootState:t.state},e);return(r=o)&&"function"==typeof r.then||(o=Promise.resolve(o)),t._devtoolHook?o.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):o}))}(t,i,r,c)})),i.forEachGetter((function(e,n){!function(t,e,n,i){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(i.state,i.getters,t.state,t.getters)}}(t,a+n,e,c)})),i.forEachChild((function(i,o){g(t,e,n.concat(o),i,r)}))}function b(t,e){return e.reduce((function(t,e){return t[e]}),t)}function y(t,e,n){return a(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function _(t){d&&t===d||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(d=t)}p.state.get=function(){return this._vm._data.$$state},p.state.set=function(t){0},h.prototype.commit=function(t,e,n){var i=this,r=y(t,e,n),o=r.type,a=r.payload,s=(r.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,i.state)})))},h.prototype.dispatch=function(t,e){var n=this,i=y(t,e),r=i.type,o=i.payload,a={type:r,payload:o},s=this._actions[r];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(t){0}var l=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return new Promise((function(t,e){l.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(t){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(t){0}e(t)}))}))}},h.prototype.subscribe=function(t,e){return f(t,this._subscribers,e)},h.prototype.subscribeAction=function(t,e){return f("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},h.prototype.watch=function(t,e,n){var i=this;return this._watcherVM.$watch((function(){return t(i.state,i.getters)}),e,n)},h.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},h.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),g(this,this.state,t,this._modules.get(t),n.preserveState),v(this,this.state)},h.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=b(e.state,t.slice(0,-1));d.delete(n,t[t.length-1])})),m(this)},h.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},h.prototype.hotUpdate=function(t){this._modules.update(t),m(this,!0)},h.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(h.prototype,p);var w=T((function(t,e){var n={};return E(e).forEach((function(e){var i=e.key,r=e.val;n[i]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var i=O(this.$store,"mapState",t);if(!i)return;e=i.context.state,n=i.context.getters}return"function"==typeof r?r.call(this,e,n):e[r]},n[i].vuex=!0})),n})),x=T((function(t,e){var n={};return E(e).forEach((function(e){var i=e.key,r=e.val;n[i]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var i=this.$store.commit;if(t){var o=O(this.$store,"mapMutations",t);if(!o)return;i=o.context.commit}return"function"==typeof r?r.apply(this,[i].concat(e)):i.apply(this.$store,[r].concat(e))}})),n})),C=T((function(t,e){var n={};return E(e).forEach((function(e){var i=e.key,r=e.val;r=t+r,n[i]=function(){if(!t||O(this.$store,"mapGetters",t))return this.$store.getters[r]},n[i].vuex=!0})),n})),S=T((function(t,e){var n={};return E(e).forEach((function(e){var i=e.key,r=e.val;n[i]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var i=this.$store.dispatch;if(t){var o=O(this.$store,"mapActions",t);if(!o)return;i=o.context.dispatch}return"function"==typeof r?r.apply(this,[i].concat(e)):i.apply(this.$store,[r].concat(e))}})),n}));function E(t){return function(t){return Array.isArray(t)||a(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function T(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function O(t,e,n){return t._modulesNamespaceMap[n]}function k(t,e,n){var i=n?t.groupCollapsed:t.group;try{i.call(t,e)}catch(n){t.log(e)}}function A(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function P(){var t=new Date;return" @ "+M(t.getHours(),2)+":"+M(t.getMinutes(),2)+":"+M(t.getSeconds(),2)+"."+M(t.getMilliseconds(),3)}function M(t,e){return n="0",i=e-t.toString().length,new Array(i+1).join(n)+t;var n,i}const L={Store:h,install:_,version:"3.6.2",mapState:w,mapMutations:x,mapGetters:C,mapActions:S,createNamespacedHelpers:function(t){return{mapState:w.bind(null,t),mapGetters:C.bind(null,t),mapMutations:x.bind(null,t),mapActions:S.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var i=t.transformer;void 0===i&&(i=function(t){return t});var o=t.mutationTransformer;void 0===o&&(o=function(t){return t});var a=t.actionFilter;void 0===a&&(a=function(t,e){return!0});var s=t.actionTransformer;void 0===s&&(s=function(t){return t});var l=t.logMutations;void 0===l&&(l=!0);var c=t.logActions;void 0===c&&(c=!0);var u=t.logger;return void 0===u&&(u=console),function(t){var d=r(t.state);void 0!==u&&(l&&t.subscribe((function(t,a){var s=r(a);if(n(t,d,s)){var l=P(),c=o(t),h="mutation "+t.type+l;k(u,h,e),u.log("%c prev state","color: #9E9E9E; font-weight: bold",i(d)),u.log("%c mutation","color: #03A9F4; font-weight: bold",c),u.log("%c next state","color: #4CAF50; font-weight: bold",i(s)),A(u)}d=s})),c&&t.subscribeAction((function(t,n){if(a(t,n)){var i=P(),r=s(t),o="action "+t.type+i;k(u,o,e),u.log("%c action","color: #03A9F4; font-weight: bold",r),A(u)}})))}}}},6161:(t,e,n)=>{t.exports=n(9459)},6277:(t,e,n)=>{var i=n(2051);t.exports=function(){return i(7,[".minLng",".minLat",".maxLng",".maxLat"])}},3580:(t,e,n)=>{var i=n(9237),r=n(6277);t.exports=function(){var t=r();return i.features.forEach((function(e){var n;switch(e.geometry.type){case"Polygon":n=[e.geometry.coordinates];break;case"MultiPolygon":n=e.geometry.coordinates;break;default:throw new Error("Unsupported geometry")}n.forEach((function(n){t.insert(function(t,e){for(var n=t[0],i=n[0][0],r=n[0][0],o=n[0][1],a=n[0][1],s=1;s<n.length;s++){var l=n[s];l[0]<i?i=l[0]:l[0]>r&&(r=l[0]),l[1]<o?o=l[1]:l[1]>a&&(a=l[1])}return{country:e,coordinates:t,minLng:i,minLat:o,maxLng:r,maxLat:a}}(n,e.id))}))})),t}},3867:(t,e,n)=>{var i=n(5934),r=n(6277);t.exports=function(){return r().fromJSON(i)}},5497:(t,e,n)=>{try{t.exports=n(3867)}catch(e){t.exports=n(3580)}},9459:(t,e,n)=>{var i=n(1476),r=n(5497)();function o(t,e){for(var n=i(e,t.coordinates[0]),r=1;n&&r<t.coordinates.length;)n=!i(e,t.coordinates[r++]);return n}t.exports=function(t){for(var e=r.search(t.concat(t)),n=0;n<e.length;n++)if(o(e[n],t))return e[n].country;return null}},79:t=>{t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i},t.exports.__esModule=!0,t.exports.default=t.exports},2987:t=>{t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},5901:(t,e,n)=>{var i=n(79);t.exports=function(t){if(Array.isArray(t))return i(t)},t.exports.__esModule=!0,t.exports.default=t.exports},3693:t=>{t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},9291:t=>{t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},1156:t=>{t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(t){s=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}},t.exports.__esModule=!0,t.exports.default=t.exports},7752:t=>{t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},1869:t=>{t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},5715:(t,e,n)=>{var i=n(2987),r=n(1156),o=n(7122),a=n(7752);t.exports=function(t,e){return i(t)||r(t,e)||o(t,e)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},1132:(t,e,n)=>{var i=n(5901),r=n(9291),o=n(7122),a=n(1869);t.exports=function(t){return i(t)||r(t)||o(t)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},3738:t=>{function e(n){return t.exports=e="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},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},7122:(t,e,n)=>{var i=n(79);t.exports=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},6020:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});const i=function(t,e){var n=document.createElement("_"),i=n.appendChild(document.createElement("_")),r=n.appendChild(document.createElement("_")),o=i.appendChild(document.createElement("_")),a=void 0,s=void 0;return i.style.cssText=n.style.cssText="height:100%;left:0;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:0;transition:0s;width:100%;z-index:-1",o.style.cssText=r.style.cssText="display:block;height:100%;transition:0s;width:100%",o.style.width=o.style.height="200%",t.appendChild(n),l(),function(){c(),t.removeChild(n)};function l(){c();var o=t.offsetWidth,u=t.offsetHeight;o===a&&u===s||(a=o,s=u,r.style.width=2*o+"px",r.style.height=2*u+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight,e({width:o,height:u})),i.addEventListener("scroll",l),n.addEventListener("scroll",l)}function c(){i.removeEventListener("scroll",l),n.removeEventListener("scroll",l)}}},5934:t=>{"use strict";t.exports=JSON.parse('{"children":[{"children":[{"children":[{"children":[{"country":"BRA","coordinates":[[[-57.625133,-30.216295],[-56.2909,-28.852761],[-55.162286,-27.881915],[-54.490725,-27.474757],[-53.648735,-26.923473],[-53.628349,-26.124865],[-54.13005,-25.547639],[-54.625291,-25.739255],[-54.428946,-25.162185],[-54.293476,-24.5708],[-54.29296,-24.021014],[-54.652834,-23.839578],[-55.027902,-24.001274],[-55.400747,-23.956935],[-55.517639,-23.571998],[-55.610683,-22.655619],[-55.797958,-22.35693],[-56.473317,-22.0863],[-56.88151,-22.282154],[-57.937156,-22.090176],[-57.870674,-20.732688],[-58.166392,-20.176701],[-57.853802,-19.969995],[-57.949997,-19.400004],[-57.676009,-18.96184],[-57.498371,-18.174188],[-57.734558,-17.552468],[-58.280804,-17.27171],[-58.388058,-16.877109],[-58.24122,-16.299573],[-60.15839,-16.258284],[-60.542966,-15.09391],[-60.251149,-15.077219],[-60.264326,-14.645979],[-60.459198,-14.354007],[-60.503304,-13.775955],[-61.084121,-13.479384],[-61.713204,-13.489202],[-62.127081,-13.198781],[-62.80306,-13.000653],[-63.196499,-12.627033],[-64.316353,-12.461978],[-65.402281,-11.56627],[-65.321899,-10.895872],[-65.444837,-10.511451],[-65.338435,-9.761988],[-66.646908,-9.931331],[-67.173801,-10.306812],[-68.048192,-10.712059],[-68.271254,-11.014521],[-68.786158,-11.03638],[-69.529678,-10.951734],[-70.093752,-11.123972],[-70.548686,-11.009147],[-70.481894,-9.490118],[-71.302412,-10.079436],[-72.184891,-10.053598],[-72.563033,-9.520194],[-73.226713,-9.462213],[-73.015383,-9.032833],[-73.571059,-8.424447],[-73.987235,-7.52383],[-73.723401,-7.340999],[-73.724487,-6.918595],[-73.120027,-6.629931],[-73.219711,-6.089189],[-72.964507,-5.741251],[-72.891928,-5.274561],[-71.748406,-4.593983],[-70.928843,-4.401591],[-70.794769,-4.251265],[-69.893635,-4.298187],[-69.444102,-1.556287],[-69.420486,-1.122619],[-69.577065,-0.549992],[-70.020656,-0.185156],[-70.015566,0.541414],[-69.452396,0.706159],[-69.252434,0.602651],[-69.218638,0.985677],[-69.804597,1.089081],[-69.816973,1.714805],[-67.868565,1.692455],[-67.53781,2.037163],[-67.259998,1.719999],[-67.065048,1.130112],[-66.876326,1.253361],[-66.325765,0.724452],[-65.548267,0.789254],[-65.354713,1.095282],[-64.611012,1.328731],[-64.199306,1.492855],[-64.083085,1.916369],[-63.368788,2.2009],[-63.422867,2.411068],[-64.269999,2.497006],[-64.408828,3.126786],[-64.368494,3.79721],[-64.816064,4.056445],[-64.628659,4.148481],[-63.888343,4.02053],[-63.093198,3.770571],[-62.804533,4.006965],[-62.08543,4.162124],[-60.966893,4.536468],[-60.601179,4.918098],[-60.733574,5.200277],[-60.213683,5.244486],[-59.980959,5.014061],[-60.111002,4.574967],[-59.767406,4.423503],[-59.53804,3.958803],[-59.815413,3.606499],[-59.974525,2.755233],[-59.718546,2.24963],[-59.646044,1.786894],[-59.030862,1.317698],[-58.540013,1.268088],[-58.429477,1.463942],[-58.11345,1.507195],[-57.660971,1.682585],[-57.335823,1.948538],[-56.782704,1.863711],[-56.539386,1.899523],[-55.995698,1.817667],[-55.9056,2.021996],[-56.073342,2.220795],[-55.973322,2.510364],[-55.569755,2.421506],[-55.097587,2.523748],[-54.524754,2.311849],[-54.088063,2.105557],[-53.778521,2.376703],[-53.554839,2.334897],[-53.418465,2.053389],[-52.939657,2.124858],[-52.556425,2.504705],[-52.249338,3.241094],[-51.657797,4.156232],[-51.317146,4.203491],[-51.069771,3.650398],[-50.508875,1.901564],[-49.974076,1.736483],[-49.947101,1.04619],[-50.699251,0.222984],[-50.388211,-0.078445],[-48.620567,-0.235489],[-48.584497,-1.237805],[-47.824956,-0.581618],[-46.566584,-0.941028],[-44.905703,-1.55174],[-44.417619,-2.13775],[-44.581589,-2.691308],[-43.418791,-2.38311],[-41.472657,-2.912018],[-39.978665,-2.873054],[-38.500383,-3.700652],[-37.223252,-4.820946],[-36.452937,-5.109404],[-35.597796,-5.149504],[-35.235389,-5.464937],[-34.89603,-6.738193],[-34.729993,-7.343221],[-35.128212,-8.996401],[-35.636967,-9.649282],[-37.046519,-11.040721],[-37.683612,-12.171195],[-38.423877,-13.038119],[-38.673887,-13.057652],[-38.953276,-13.79337],[-38.882298,-15.667054],[-39.161092,-17.208407],[-39.267339,-17.867746],[-39.583521,-18.262296],[-39.760823,-19.599113],[-40.774741,-20.904512],[-40.944756,-21.937317],[-41.754164,-22.370676],[-41.988284,-22.97007],[-43.074704,-22.967693],[-44.647812,-23.351959],[-45.352136,-23.796842],[-46.472093,-24.088969],[-47.648972,-24.885199],[-48.495458,-25.877025],[-48.641005,-26.623698],[-48.474736,-27.175912],[-48.66152,-28.186135],[-48.888457,-28.674115],[-49.587329,-29.224469],[-50.696874,-30.984465],[-51.576226,-31.777698],[-52.256081,-32.24537],[-52.7121,-33.196578],[-53.373662,-33.768378],[-53.650544,-33.202004],[-53.209589,-32.727666],[-53.787952,-32.047243],[-54.572452,-31.494511],[-55.60151,-30.853879],[-55.973245,-30.883076],[-56.976026,-30.109686],[-57.625133,-30.216295]]],"minLng":-73.987235,"minLat":-33.768378,"maxLng":-34.729993,"maxLat":5.244486},{"country":"BOL","coordinates":[[[-62.846468,-22.034985],[-63.986838,-21.993644],[-64.377021,-22.798091],[-64.964892,-22.075862],[-66.273339,-21.83231],[-67.106674,-22.735925],[-67.82818,-22.872919],[-68.219913,-21.494347],[-68.757167,-20.372658],[-68.442225,-19.405068],[-68.966818,-18.981683],[-69.100247,-18.260125],[-69.590424,-17.580012],[-68.959635,-16.500698],[-69.389764,-15.660129],[-69.160347,-15.323974],[-69.339535,-14.953195],[-68.948887,-14.453639],[-68.929224,-13.602684],[-68.88008,-12.899729],[-68.66508,-12.5613],[-69.529678,-10.951734],[-68.786158,-11.03638],[-68.271254,-11.014521],[-68.048192,-10.712059],[-67.173801,-10.306812],[-66.646908,-9.931331],[-65.338435,-9.761988],[-65.444837,-10.511451],[-65.321899,-10.895872],[-65.402281,-11.56627],[-64.316353,-12.461978],[-63.196499,-12.627033],[-62.80306,-13.000653],[-62.127081,-13.198781],[-61.713204,-13.489202],[-61.084121,-13.479384],[-60.503304,-13.775955],[-60.459198,-14.354007],[-60.264326,-14.645979],[-60.251149,-15.077219],[-60.542966,-15.09391],[-60.15839,-16.258284],[-58.24122,-16.299573],[-58.388058,-16.877109],[-58.280804,-17.27171],[-57.734558,-17.552468],[-57.498371,-18.174188],[-57.676009,-18.96184],[-57.949997,-19.400004],[-57.853802,-19.969995],[-58.166392,-20.176701],[-58.183471,-19.868399],[-59.115042,-19.356906],[-60.043565,-19.342747],[-61.786326,-19.633737],[-62.265961,-20.513735],[-62.291179,-21.051635],[-62.685057,-22.249029],[-62.846468,-22.034985]]],"minLng":-69.590424,"minLat":-22.872919,"maxLng":-57.498371,"maxLat":-9.761988},{"country":"FJI","coordinates":[[[-179.917369,-16.501783],[-180,-16.555217],[-180,-16.067133],[-179.79332,-16.020882],[-179.917369,-16.501783]]],"minLng":-180,"minLat":-16.555217,"maxLng":-179.79332,"maxLat":-16.020882},{"country":"ECU","coordinates":[[[-80.302561,-3.404856],[-79.770293,-2.657512],[-79.986559,-2.220794],[-80.368784,-2.685159],[-80.967765,-2.246943],[-80.764806,-1.965048],[-80.933659,-1.057455],[-80.58337,-0.906663],[-80.399325,-0.283703],[-80.020898,0.36034],[-80.09061,0.768429],[-79.542762,0.982938],[-78.855259,1.380924],[-77.855061,0.809925],[-77.668613,0.825893],[-77.424984,0.395687],[-76.57638,0.256936],[-76.292314,0.416047],[-75.801466,0.084801],[-75.373223,-0.152032],[-75.233723,-0.911417],[-75.544996,-1.56161],[-76.635394,-2.608678],[-77.837905,-3.003021],[-78.450684,-3.873097],[-78.639897,-4.547784],[-79.205289,-4.959129],[-79.624979,-4.454198],[-80.028908,-4.346091],[-80.442242,-4.425724],[-80.469295,-4.059287],[-80.184015,-3.821162],[-80.302561,-3.404856]]],"minLng":-80.967765,"minLat":-4.959129,"maxLng":-75.233723,"maxLat":1.380924},{"country":"PER","coordinates":[[[-69.590424,-17.580012],[-69.858444,-18.092694],[-70.372572,-18.347975],[-71.37525,-17.773799],[-71.462041,-17.363488],[-73.44453,-16.359363],[-75.237883,-15.265683],[-76.009205,-14.649286],[-76.423469,-13.823187],[-76.259242,-13.535039],[-77.106192,-12.222716],[-78.092153,-10.377712],[-79.036953,-8.386568],[-79.44592,-7.930833],[-79.760578,-7.194341],[-80.537482,-6.541668],[-81.249996,-6.136834],[-80.926347,-5.690557],[-81.410943,-4.736765],[-81.09967,-4.036394],[-80.302561,-3.404856],[-80.184015,-3.821162],[-80.469295,-4.059287],[-80.442242,-4.425724],[-80.028908,-4.346091],[-79.624979,-4.454198],[-79.205289,-4.959129],[-78.639897,-4.547784],[-78.450684,-3.873097],[-77.837905,-3.003021],[-76.635394,-2.608678],[-75.544996,-1.56161],[-75.233723,-0.911417],[-75.373223,-0.152032],[-75.106625,-0.057205],[-74.441601,-0.53082],[-74.122395,-1.002833],[-73.659504,-1.260491],[-73.070392,-2.308954],[-72.325787,-2.434218],[-71.774761,-2.16979],[-71.413646,-2.342802],[-70.813476,-2.256865],[-70.047709,-2.725156],[-70.692682,-3.742872],[-70.394044,-3.766591],[-69.893635,-4.298187],[-70.794769,-4.251265],[-70.928843,-4.401591],[-71.748406,-4.593983],[-72.891928,-5.274561],[-72.964507,-5.741251],[-73.219711,-6.089189],[-73.120027,-6.629931],[-73.724487,-6.918595],[-73.723401,-7.340999],[-73.987235,-7.52383],[-73.571059,-8.424447],[-73.015383,-9.032833],[-73.226713,-9.462213],[-72.563033,-9.520194],[-72.184891,-10.053598],[-71.302412,-10.079436],[-70.481894,-9.490118],[-70.548686,-11.009147],[-70.093752,-11.123972],[-69.529678,-10.951734],[-68.66508,-12.5613],[-68.88008,-12.899729],[-68.929224,-13.602684],[-68.948887,-14.453639],[-69.339535,-14.953195],[-69.160347,-15.323974],[-69.389764,-15.660129],[-68.959635,-16.500698],[-69.590424,-17.580012]]],"minLng":-81.410943,"minLat":-18.347975,"maxLng":-68.66508,"maxLat":-0.057205}],"height":1,"leaf":true,"bbox":[-180,-33.768378,-34.729993,5.244486]},{"children":[{"country":"ATA","coordinates":[[[-58.614143,-64.152467],[-59.045073,-64.36801],[-59.789342,-64.211223],[-60.611928,-64.309202],[-61.297416,-64.54433],[-62.0221,-64.799094],[-62.51176,-65.09303],[-62.648858,-65.484942],[-62.590128,-65.857219],[-62.120079,-66.190326],[-62.805567,-66.425505],[-63.74569,-66.503847],[-64.294106,-66.837004],[-64.881693,-67.150474],[-65.508425,-67.58161],[-65.665082,-67.953887],[-65.312545,-68.365335],[-64.783715,-68.678908],[-63.961103,-68.913984],[-63.1973,-69.227556],[-62.785955,-69.619419],[-62.570516,-69.991747],[-62.276736,-70.383661],[-61.806661,-70.716768],[-61.512906,-71.089045],[-61.375809,-72.010074],[-61.081977,-72.382351],[-61.003661,-72.774265],[-60.690269,-73.166179],[-60.827367,-73.695242],[-61.375809,-74.106742],[-61.96337,-74.439848],[-63.295201,-74.576997],[-63.74569,-74.92974],[-64.352836,-75.262847],[-65.860987,-75.635124],[-67.192818,-75.79191],[-68.446282,-76.007452],[-69.797724,-76.222995],[-70.600724,-76.634494],[-72.206776,-76.673665],[-73.969536,-76.634494],[-75.555977,-76.712887],[-77.24037,-76.712887],[-76.926979,-77.104802],[-75.399294,-77.28107],[-74.282876,-77.55542],[-73.656119,-77.908112],[-74.772536,-78.221633],[-76.4961,-78.123654],[-77.925858,-78.378419],[-77.984666,-78.789918],[-78.023785,-79.181833],[-76.848637,-79.514939],[-76.633224,-79.887216],[-75.360097,-80.259545],[-73.244852,-80.416331],[-71.442946,-80.69063],[-70.013163,-81.004151],[-68.191646,-81.317672],[-65.704279,-81.474458],[-63.25603,-81.748757],[-61.552026,-82.042692],[-59.691416,-82.37585],[-58.712121,-82.846106],[-58.222487,-83.218434],[-57.008117,-82.865691],[-55.362894,-82.571755],[-53.619771,-82.258235],[-51.543644,-82.003521],[-49.76135,-81.729171],[-47.273931,-81.709586],[-44.825708,-81.846735],[-42.808363,-82.081915],[-42.16202,-81.65083],[-40.771433,-81.356894],[-38.244818,-81.337309],[-36.26667,-81.121715],[-34.386397,-80.906172],[-32.310296,-80.769023],[-30.097098,-80.592651],[-28.549802,-80.337938],[-29.254901,-79.985195],[-29.685805,-79.632503],[-29.685805,-79.260226],[-31.624808,-79.299397],[-33.681324,-79.456132],[-35.639912,-79.456132],[-35.914107,-79.083855],[-35.77701,-78.339248],[-35.326546,-78.123654],[-33.896763,-77.888526],[-32.212369,-77.65345],[-30.998051,-77.359515],[-29.783732,-77.065579],[-28.882779,-76.673665],[-27.511752,-76.497345],[-26.160336,-76.360144],[-25.474822,-76.281803],[-23.927552,-76.24258],[-22.458598,-76.105431],[-21.224694,-75.909474],[-20.010375,-75.674346],[-18.913543,-75.439218],[-17.522982,-75.125698],[-16.641589,-74.79254],[-15.701491,-74.498604],[-15.40771,-74.106742],[-16.46532,-73.871614],[-16.112784,-73.460114],[-15.446855,-73.146542],[-14.408805,-72.950585],[-13.311973,-72.715457],[-12.293508,-72.401936],[-11.510067,-72.010074],[-11.020433,-71.539767],[-10.295774,-71.265416],[-9.101015,-71.324224],[-8.611381,-71.65733],[-7.416622,-71.696501],[-7.377451,-71.324224],[-6.868232,-70.93231],[-5.790985,-71.030289],[-5.536375,-71.402617],[-4.341667,-71.461373],[-3.048981,-71.285053],[-1.795492,-71.167438],[-0.659489,-71.226246],[-0.228637,-71.637745],[0.868195,-71.304639],[1.886686,-71.128267],[3.022638,-70.991118],[4.139055,-70.853917],[5.157546,-70.618789],[6.273912,-70.462055],[7.13572,-70.246512],[7.742866,-69.893769],[8.48711,-70.148534],[9.525135,-70.011333],[10.249845,-70.48164],[10.817821,-70.834332],[11.953824,-70.638375],[12.404287,-70.246512],[13.422778,-69.972162],[14.734998,-70.030918],[15.126757,-70.403247],[15.949342,-70.030918],[17.026589,-69.913354],[18.201711,-69.874183],[19.259373,-69.893769],[20.375739,-70.011333],[21.452985,-70.07014],[21.923034,-70.403247],[22.569403,-70.697182],[23.666184,-70.520811],[24.841357,-70.48164],[25.977309,-70.48164],[27.093726,-70.462055],[28.09258,-70.324854],[29.150242,-70.20729],[30.031583,-69.93294],[30.971733,-69.75662],[31.990172,-69.658641],[32.754053,-69.384291],[33.302443,-68.835642],[33.870419,-68.502588],[34.908495,-68.659271],[35.300202,-69.012014],[36.16201,-69.247142],[37.200035,-69.168748],[37.905108,-69.52144],[38.649404,-69.776205],[39.667894,-69.541077],[40.020431,-69.109941],[40.921358,-68.933621],[41.959434,-68.600514],[42.938702,-68.463313],[44.113876,-68.267408],[44.897291,-68.051866],[45.719928,-67.816738],[46.503343,-67.601196],[47.44344,-67.718759],[48.344419,-67.366068],[48.990736,-67.091718],[49.930885,-67.111303],[50.753471,-66.876175],[50.949325,-66.523484],[51.791547,-66.249133],[52.614133,-66.053176],[53.613038,-65.89639],[54.53355,-65.818049],[55.414943,-65.876805],[56.355041,-65.974783],[57.158093,-66.249133],[57.255968,-66.680218],[58.137361,-67.013324],[58.744508,-67.287675],[59.939318,-67.405239],[60.605221,-67.679589],[61.427806,-67.953887],[62.387489,-68.012695],[63.19049,-67.816738],[64.052349,-67.405239],[64.992447,-67.620729],[65.971715,-67.738345],[66.911864,-67.855909],[67.891133,-67.934302],[68.890038,-67.934302],[69.712624,-68.972791],[69.673453,-69.227556],[69.555941,-69.678226],[68.596258,-69.93294],[67.81274,-70.305268],[67.949889,-70.697182],[69.066307,-70.677545],[68.929157,-71.069459],[68.419989,-71.441788],[67.949889,-71.853287],[68.71377,-72.166808],[69.869307,-72.264787],[71.024895,-72.088415],[71.573285,-71.696501],[71.906288,-71.324224],[72.454627,-71.010703],[73.08141,-70.716768],[73.33602,-70.364024],[73.864877,-69.874183],[74.491557,-69.776205],[75.62756,-69.737034],[76.626465,-69.619419],[77.644904,-69.462684],[78.134539,-69.07077],[78.428371,-68.698441],[79.113859,-68.326216],[80.093127,-68.071503],[80.93535,-67.875546],[81.483792,-67.542388],[82.051767,-67.366068],[82.776426,-67.209282],[83.775331,-67.30726],[84.676206,-67.209282],[85.655527,-67.091718],[86.752359,-67.150474],[87.477017,-66.876175],[87.986289,-66.209911],[88.358411,-66.484261],[88.828408,-66.954568],[89.67063,-67.150474],[90.630365,-67.228867],[91.5901,-67.111303],[92.608539,-67.189696],[93.548637,-67.209282],[94.17542,-67.111303],[95.017591,-67.170111],[95.781472,-67.385653],[96.682399,-67.248504],[97.759646,-67.248504],[98.68021,-67.111303],[99.718182,-67.248504],[100.384188,-66.915346],[100.893356,-66.58224],[101.578896,-66.30789],[102.832411,-65.563284],[103.478676,-65.700485],[104.242557,-65.974783],[104.90846,-66.327527],[106.181561,-66.934931],[107.160881,-66.954568],[108.081393,-66.954568],[109.15864,-66.837004],[110.235835,-66.699804],[111.058472,-66.425505],[111.74396,-66.13157],[112.860378,-66.092347],[113.604673,-65.876805],[114.388088,-66.072762],[114.897308,-66.386283],[115.602381,-66.699804],[116.699161,-66.660633],[117.384701,-66.915346],[118.57946,-67.170111],[119.832924,-67.268089],[120.871,-67.189696],[121.654415,-66.876175],[122.320369,-66.562654],[123.221296,-66.484261],[124.122274,-66.621462],[125.160247,-66.719389],[126.100396,-66.562654],[127.001427,-66.562654],[127.882768,-66.660633],[128.80328,-66.758611],[129.704259,-66.58224],[130.781454,-66.425505],[131.799945,-66.386283],[132.935896,-66.386283],[133.85646,-66.288304],[134.757387,-66.209963],[135.031582,-65.72007],[135.070753,-65.308571],[135.697485,-65.582869],[135.873805,-66.033591],[136.206705,-66.44509],[136.618049,-66.778197],[137.460271,-66.954568],[138.596223,-66.895761],[139.908442,-66.876175],[140.809421,-66.817367],[142.121692,-66.817367],[143.061842,-66.797782],[144.374061,-66.837004],[145.490427,-66.915346],[146.195552,-67.228867],[145.999699,-67.601196],[146.646067,-67.895131],[147.723263,-68.130259],[148.839629,-68.385024],[150.132314,-68.561292],[151.483705,-68.71813],[152.502247,-68.874813],[153.638199,-68.894502],[154.284567,-68.561292],[155.165857,-68.835642],[155.92979,-69.149215],[156.811132,-69.384291],[158.025528,-69.482269],[159.181013,-69.599833],[159.670699,-69.991747],[160.80665,-70.226875],[161.570479,-70.579618],[162.686897,-70.736353],[163.842434,-70.716768],[164.919681,-70.775524],[166.11444,-70.755938],[167.309095,-70.834332],[168.425616,-70.971481],[169.463589,-71.20666],[170.501665,-71.402617],[171.20679,-71.696501],[171.089227,-72.088415],[170.560422,-72.441159],[170.109958,-72.891829],[169.75737,-73.24452],[169.287321,-73.65602],[167.975101,-73.812806],[167.387489,-74.165498],[166.094803,-74.38104],[165.644391,-74.772954],[164.958851,-75.145283],[164.234193,-75.458804],[163.822797,-75.870303],[163.568239,-76.24258],[163.47026,-76.693302],[163.489897,-77.065579],[164.057873,-77.457442],[164.273363,-77.82977],[164.743464,-78.182514],[166.604126,-78.319611],[166.995781,-78.750748],[165.193876,-78.907483],[163.666217,-79.123025],[161.766385,-79.162248],[160.924162,-79.730482],[160.747894,-80.200737],[160.316964,-80.573066],[159.788211,-80.945395],[161.120016,-81.278501],[161.629287,-81.690001],[162.490992,-82.062278],[163.705336,-82.395435],[165.095949,-82.708956],[166.604126,-83.022477],[168.895665,-83.335998],[169.404782,-83.825891],[172.283934,-84.041433],[172.477049,-84.117914],[173.224083,-84.41371],[175.985672,-84.158997],[178.277212,-84.472518],[180,-84.71338],[-179.942499,-84.721443],[-179.058677,-84.139412],[-177.256772,-84.452933],[-177.140807,-84.417941],[-176.084673,-84.099259],[-175.947235,-84.110449],[-175.829882,-84.117914],[-174.382503,-84.534323],[-173.116559,-84.117914],[-172.889106,-84.061019],[-169.951223,-83.884647],[-168.999989,-84.117914],[-168.530199,-84.23739],[-167.022099,-84.570497],[-164.182144,-84.82521],[-161.929775,-85.138731],[-158.07138,-85.37391],[-155.192253,-85.09956],[-150.942099,-85.295517],[-148.533073,-85.609038],[-145.888918,-85.315102],[-143.107718,-85.040752],[-142.892279,-84.570497],[-146.829068,-84.531274],[-150.060732,-84.296146],[-150.902928,-83.904232],[-153.586201,-83.68869],[-153.409907,-83.23802],[-153.037759,-82.82652],[-152.665637,-82.454192],[-152.861517,-82.042692],[-154.526299,-81.768394],[-155.29018,-81.41565],[-156.83745,-81.102129],[-154.408787,-81.160937],[-152.097662,-81.004151],[-150.648293,-81.337309],[-148.865998,-81.043373],[-147.22075,-80.671045],[-146.417749,-80.337938],[-146.770286,-79.926439],[-148.062947,-79.652089],[-149.531901,-79.358205],[-151.588416,-79.299397],[-153.390322,-79.162248],[-155.329376,-79.064269],[-155.975668,-78.69194],[-157.268302,-78.378419],[-158.051768,-78.025676],[-158.365134,-76.889207],[-157.875474,-76.987238],[-156.974573,-77.300759],[-155.329376,-77.202728],[-153.742832,-77.065579],[-152.920247,-77.496664],[-151.33378,-77.398737],[-150.00195,-77.183143],[-148.748486,-76.908845],[-147.612483,-76.575738],[-146.104409,-76.47776],[-146.143528,-76.105431],[-146.496091,-75.733154],[-146.20231,-75.380411],[-144.909624,-75.204039],[-144.322037,-75.537197],[-142.794353,-75.34124],[-141.638764,-75.086475],[-140.209007,-75.06689],[-138.85759,-74.968911],[-137.5062,-74.733783],[-136.428901,-74.518241],[-135.214583,-74.302699],[-134.431194,-74.361455],[-133.745654,-74.439848],[-132.257168,-74.302699],[-130.925311,-74.479019],[-129.554284,-74.459433],[-128.242038,-74.322284],[-126.890622,-74.420263],[-125.402082,-74.518241],[-124.011496,-74.479019],[-122.562152,-74.498604],[-121.073613,-74.518241],[-119.70256,-74.479019],[-118.684145,-74.185083],[-117.469801,-74.028348],[-116.216312,-74.243891],[-115.021552,-74.067519],[-113.944331,-73.714828],[-113.297988,-74.028348],[-112.945452,-74.38104],[-112.299083,-74.714198],[-111.261059,-74.420263],[-110.066325,-74.79254],[-108.714909,-74.910103],[-107.559346,-75.184454],[-106.149148,-75.125698],[-104.876074,-74.949326],[-103.367949,-74.988497],[-102.016507,-75.125698],[-100.645531,-75.302018],[-100.1167,-74.870933],[-100.763043,-74.537826],[-101.252703,-74.185083],[-102.545337,-74.106742],[-103.113313,-73.734413],[-103.328752,-73.362084],[-103.681289,-72.61753],[-102.917485,-72.754679],[-101.60524,-72.813436],[-100.312528,-72.754679],[-99.13738,-72.911414],[-98.118889,-73.20535],[-97.688037,-73.558041],[-96.336595,-73.616849],[-95.043961,-73.4797],[-93.672907,-73.283743],[-92.439003,-73.166179],[-91.420564,-73.401307],[-90.088733,-73.322914],[-89.226951,-72.558722],[-88.423951,-73.009393],[-87.268337,-73.185764],[-86.014822,-73.087786],[-85.192236,-73.4797],[-83.879991,-73.518871],[-82.665646,-73.636434],[-81.470913,-73.851977],[-80.687447,-73.4797],[-80.295791,-73.126956],[-79.296886,-73.518871],[-77.925858,-73.420892],[-76.907367,-73.636434],[-76.221879,-73.969541],[-74.890049,-73.871614],[-73.852024,-73.65602],[-72.833533,-73.401307],[-71.619215,-73.264157],[-70.209042,-73.146542],[-68.935916,-73.009393],[-67.956622,-72.79385],[-67.369061,-72.480329],[-67.134036,-72.049244],[-67.251548,-71.637745],[-67.56494,-71.245831],[-67.917477,-70.853917],[-68.230843,-70.462055],[-68.485452,-70.109311],[-68.544209,-69.717397],[-68.446282,-69.325535],[-67.976233,-68.953206],[-67.5845,-68.541707],[-67.427843,-68.149844],[-67.62367,-67.718759],[-67.741183,-67.326845],[-67.251548,-66.876175],[-66.703184,-66.58224],[-66.056815,-66.209963],[-65.371327,-65.89639],[-64.568276,-65.602506],[-64.176542,-65.171423],[-63.628152,-64.897073],[-63.001394,-64.642308],[-62.041686,-64.583552],[-61.414928,-64.270031],[-60.709855,-64.074074],[-59.887269,-63.95651],[-59.162585,-63.701745],[-58.594557,-63.388224],[-57.811143,-63.27066],[-57.223582,-63.525425],[-57.59573,-63.858532],[-58.614143,-64.152467]]],"minLng":-179.942499,"minLat":-85.609038,"maxLng":180,"maxLat":-63.27066},{"country":"ATA","coordinates":[[[-159.208184,-79.497059],[-161.127601,-79.634209],[-162.439847,-79.281465],[-163.027408,-78.928774],[-163.066604,-78.869966],[-163.712896,-78.595667],[-163.712896,-78.595667],[-163.105801,-78.223338],[-161.245113,-78.380176],[-160.246208,-78.693645],[-159.482405,-79.046338],[-159.208184,-79.497059]]],"minLng":-163.712896,"minLat":-79.634209,"maxLng":-159.208184,"maxLat":-78.223338},{"country":"ATA","coordinates":[[[-125.559566,-73.481353],[-124.031882,-73.873268],[-124.619469,-73.834097],[-125.912181,-73.736118],[-127.28313,-73.461769],[-127.28313,-73.461768],[-126.558472,-73.246226],[-125.559566,-73.481353]]],"minLng":-127.28313,"minLat":-73.873268,"maxLng":-124.031882,"maxLat":-73.246226},{"country":"ATA","coordinates":[[[-121.211511,-73.50099],[-119.918851,-73.657725],[-118.724143,-73.481353],[-119.292119,-73.834097],[-120.232217,-74.08881],[-121.62283,-74.010468],[-122.621735,-73.657778],[-122.621735,-73.657777],[-122.406245,-73.324619],[-121.211511,-73.50099]]],"minLng":-122.621735,"minLat":-74.08881,"maxLng":-118.724143,"maxLat":-73.324619},{"country":"ATA","coordinates":[[[-98.98155,-71.933334],[-97.884743,-72.070535],[-96.787937,-71.952971],[-96.20035,-72.521205],[-96.983765,-72.442864],[-98.198083,-72.482035],[-99.432013,-72.442864],[-100.783455,-72.50162],[-101.801868,-72.305663],[-102.330725,-71.894164],[-102.330725,-71.894164],[-101.703967,-71.717792],[-100.430919,-71.854993],[-98.98155,-71.933334]]],"minLng":-102.330725,"minLat":-72.521205,"maxLng":-96.20035,"maxLat":-71.717792}],"leaf":true,"bbox":[-179.942499,-85.609038,180,-63.27066],"height":1},{"children":[{"country":"CHL","coordinates":[[[-68.63401,-52.63637],[-68.63335,-54.8695],[-67.56244,-54.87001],[-66.95992,-54.89681],[-67.29103,-55.30124],[-68.14863,-55.61183],[-68.639991,-55.580018],[-69.2321,-55.49906],[-69.95809,-55.19843],[-71.00568,-55.05383],[-72.2639,-54.49514],[-73.2852,-53.95752],[-74.66253,-52.83749],[-73.8381,-53.04743],[-72.43418,-53.7154],[-71.10773,-54.07433],[-70.59178,-53.61583],[-70.26748,-52.93123],[-69.34565,-52.5183],[-68.63401,-52.63637]]],"minLng":-74.66253,"minLat":-55.61183,"maxLng":-66.95992,"maxLat":-52.5183},{"country":"ARG","coordinates":[[[-65.5,-55.2],[-66.45,-55.25],[-66.95992,-54.89681],[-67.56244,-54.87001],[-68.63335,-54.8695],[-68.63401,-52.63637],[-68.25,-53.1],[-67.75,-53.85],[-66.45,-54.45],[-65.05,-54.7],[-65.5,-55.2]]],"minLng":-68.63401,"minLat":-55.25,"maxLng":-65.05,"maxLat":-52.63637},{"country":"CHL","coordinates":[[[-68.219913,-21.494347],[-67.82818,-22.872919],[-67.106674,-22.735925],[-66.985234,-22.986349],[-67.328443,-24.025303],[-68.417653,-24.518555],[-68.386001,-26.185016],[-68.5948,-26.506909],[-68.295542,-26.89934],[-69.001235,-27.521214],[-69.65613,-28.459141],[-70.01355,-29.367923],[-69.919008,-30.336339],[-70.535069,-31.36501],[-70.074399,-33.09121],[-69.814777,-33.273886],[-69.817309,-34.193571],[-70.388049,-35.169688],[-70.364769,-36.005089],[-71.121881,-36.658124],[-71.118625,-37.576827],[-70.814664,-38.552995],[-71.413517,-38.916022],[-71.680761,-39.808164],[-71.915734,-40.832339],[-71.746804,-42.051386],[-72.148898,-42.254888],[-71.915424,-43.408565],[-71.464056,-43.787611],[-71.793623,-44.207172],[-71.329801,-44.407522],[-71.222779,-44.784243],[-71.659316,-44.973689],[-71.552009,-45.560733],[-71.917258,-46.884838],[-72.447355,-47.738533],[-72.331161,-48.244238],[-72.648247,-48.878618],[-73.415436,-49.318436],[-73.328051,-50.378785],[-72.975747,-50.74145],[-72.309974,-50.67701],[-72.329404,-51.425956],[-71.914804,-52.009022],[-69.498362,-52.142761],[-68.571545,-52.299444],[-69.461284,-52.291951],[-69.94278,-52.537931],[-70.845102,-52.899201],[-71.006332,-53.833252],[-71.429795,-53.856455],[-72.557943,-53.53141],[-73.702757,-52.835069],[-73.702757,-52.83507],[-74.946763,-52.262754],[-75.260026,-51.629355],[-74.976632,-51.043396],[-75.479754,-50.378372],[-75.608015,-48.673773],[-75.18277,-47.711919],[-74.126581,-46.939253],[-75.644395,-46.647643],[-74.692154,-45.763976],[-74.351709,-44.103044],[-73.240356,-44.454961],[-72.717804,-42.383356],[-73.3889,-42.117532],[-73.701336,-43.365776],[-74.331943,-43.224958],[-74.017957,-41.794813],[-73.677099,-39.942213],[-73.217593,-39.258689],[-73.505559,-38.282883],[-73.588061,-37.156285],[-73.166717,-37.12378],[-72.553137,-35.50884],[-71.861732,-33.909093],[-71.43845,-32.418899],[-71.668721,-30.920645],[-71.370083,-30.095682],[-71.489894,-28.861442],[-70.905124,-27.64038],[-70.724954,-25.705924],[-70.403966,-23.628997],[-70.091246,-21.393319],[-70.16442,-19.756468],[-70.372572,-18.347975],[-69.858444,-18.092694],[-69.590424,-17.580012],[-69.100247,-18.260125],[-68.966818,-18.981683],[-68.442225,-19.405068],[-68.757167,-20.372658],[-68.219913,-21.494347]]],"minLng":-75.644395,"minLat":-53.856455,"maxLng":-66.985234,"maxLat":-17.580012},{"country":"ARG","coordinates":[[[-64.964892,-22.075862],[-64.377021,-22.798091],[-63.986838,-21.993644],[-62.846468,-22.034985],[-62.685057,-22.249029],[-60.846565,-23.880713],[-60.028966,-24.032796],[-58.807128,-24.771459],[-57.777217,-25.16234],[-57.63366,-25.603657],[-58.618174,-27.123719],[-57.60976,-27.395899],[-56.486702,-27.548499],[-55.695846,-27.387837],[-54.788795,-26.621786],[-54.625291,-25.739255],[-54.13005,-25.547639],[-53.628349,-26.124865],[-53.648735,-26.923473],[-54.490725,-27.474757],[-55.162286,-27.881915],[-56.2909,-28.852761],[-57.625133,-30.216295],[-57.874937,-31.016556],[-58.14244,-32.044504],[-58.132648,-33.040567],[-58.349611,-33.263189],[-58.427074,-33.909454],[-58.495442,-34.43149],[-57.22583,-35.288027],[-57.362359,-35.97739],[-56.737487,-36.413126],[-56.788285,-36.901572],[-57.749157,-38.183871],[-59.231857,-38.72022],[-61.237445,-38.928425],[-62.335957,-38.827707],[-62.125763,-39.424105],[-62.330531,-40.172586],[-62.145994,-40.676897],[-62.745803,-41.028761],[-63.770495,-41.166789],[-64.73209,-40.802677],[-65.118035,-41.064315],[-64.978561,-42.058001],[-64.303408,-42.359016],[-63.755948,-42.043687],[-63.458059,-42.563138],[-64.378804,-42.873558],[-65.181804,-43.495381],[-65.328823,-44.501366],[-65.565269,-45.036786],[-66.509966,-45.039628],[-67.293794,-45.551896],[-67.580546,-46.301773],[-66.597066,-47.033925],[-65.641027,-47.236135],[-65.985088,-48.133289],[-67.166179,-48.697337],[-67.816088,-49.869669],[-68.728745,-50.264218],[-69.138539,-50.73251],[-68.815561,-51.771104],[-68.149995,-52.349983],[-68.571545,-52.299444],[-69.498362,-52.142761],[-71.914804,-52.009022],[-72.329404,-51.425956],[-72.309974,-50.67701],[-72.975747,-50.74145],[-73.328051,-50.378785],[-73.415436,-49.318436],[-72.648247,-48.878618],[-72.331161,-48.244238],[-72.447355,-47.738533],[-71.917258,-46.884838],[-71.552009,-45.560733],[-71.659316,-44.973689],[-71.222779,-44.784243],[-71.329801,-44.407522],[-71.793623,-44.207172],[-71.464056,-43.787611],[-71.915424,-43.408565],[-72.148898,-42.254888],[-71.746804,-42.051386],[-71.915734,-40.832339],[-71.680761,-39.808164],[-71.413517,-38.916022],[-70.814664,-38.552995],[-71.118625,-37.576827],[-71.121881,-36.658124],[-70.364769,-36.005089],[-70.388049,-35.169688],[-69.817309,-34.193571],[-69.814777,-33.273886],[-70.074399,-33.09121],[-70.535069,-31.36501],[-69.919008,-30.336339],[-70.01355,-29.367923],[-69.65613,-28.459141],[-69.001235,-27.521214],[-68.295542,-26.89934],[-68.5948,-26.506909],[-68.386001,-26.185016],[-68.417653,-24.518555],[-67.328443,-24.025303],[-66.985234,-22.986349],[-67.106674,-22.735925],[-66.273339,-21.83231],[-64.964892,-22.075862]]],"minLng":-73.415436,"minLat":-52.349983,"maxLng":-53.628349,"maxLat":-21.83231},{"country":"FLK","coordinates":[[[-61.2,-51.85],[-60,-51.25],[-59.15,-51.5],[-58.55,-51.1],[-57.75,-51.55],[-58.05,-51.9],[-59.4,-52.2],[-59.85,-51.85],[-60.7,-52.3],[-61.2,-51.85]]],"minLng":-61.2,"minLat":-52.3,"maxLng":-57.75,"maxLat":-51.1},{"country":"PRY","coordinates":[[[-62.685057,-22.249029],[-62.291179,-21.051635],[-62.265961,-20.513735],[-61.786326,-19.633737],[-60.043565,-19.342747],[-59.115042,-19.356906],[-58.183471,-19.868399],[-58.166392,-20.176701],[-57.870674,-20.732688],[-57.937156,-22.090176],[-56.88151,-22.282154],[-56.473317,-22.0863],[-55.797958,-22.35693],[-55.610683,-22.655619],[-55.517639,-23.571998],[-55.400747,-23.956935],[-55.027902,-24.001274],[-54.652834,-23.839578],[-54.29296,-24.021014],[-54.293476,-24.5708],[-54.428946,-25.162185],[-54.625291,-25.739255],[-54.788795,-26.621786],[-55.695846,-27.387837],[-56.486702,-27.548499],[-57.60976,-27.395899],[-58.618174,-27.123719],[-57.63366,-25.603657],[-57.777217,-25.16234],[-58.807128,-24.771459],[-60.028966,-24.032796],[-60.846565,-23.880713],[-62.685057,-22.249029]]],"minLng":-62.685057,"minLat":-27.548499,"maxLng":-54.29296,"maxLat":-19.342747},{"country":"URY","coordinates":[[[-57.625133,-30.216295],[-56.976026,-30.109686],[-55.973245,-30.883076],[-55.60151,-30.853879],[-54.572452,-31.494511],[-53.787952,-32.047243],[-53.209589,-32.727666],[-53.650544,-33.202004],[-53.373662,-33.768378],[-53.806426,-34.396815],[-54.935866,-34.952647],[-55.67409,-34.752659],[-56.215297,-34.859836],[-57.139685,-34.430456],[-57.817861,-34.462547],[-58.427074,-33.909454],[-58.349611,-33.263189],[-58.132648,-33.040567],[-58.14244,-32.044504],[-57.874937,-31.016556],[-57.625133,-30.216295]]],"minLng":-58.427074,"minLat":-34.952647,"maxLng":-53.209589,"maxLat":-30.109686}],"height":1,"leaf":true,"bbox":[-75.644395,-55.61183,-53.209589,-17.580012]},{"children":[{"country":"ATA","coordinates":[[[-68.451346,-70.955823],[-68.333834,-71.406493],[-68.510128,-71.798407],[-68.784297,-72.170736],[-69.959471,-72.307885],[-71.075889,-72.503842],[-72.388134,-72.484257],[-71.8985,-72.092343],[-73.073622,-72.229492],[-74.19004,-72.366693],[-74.953895,-72.072757],[-75.012625,-71.661258],[-73.915819,-71.269345],[-73.915819,-71.269344],[-73.230331,-71.15178],[-72.074717,-71.190951],[-71.780962,-70.681473],[-71.72218,-70.309196],[-71.741791,-69.505782],[-71.173815,-69.035475],[-70.253252,-68.87874],[-69.724447,-69.251017],[-69.489422,-69.623346],[-69.058518,-70.074016],[-68.725541,-70.505153],[-68.451346,-70.955823]]],"minLng":-75.012625,"minLat":-72.503842,"maxLng":-68.333834,"maxLat":-68.87874},{"country":"ATA","coordinates":[[[-59.572095,-80.040179],[-59.865849,-80.549657],[-60.159656,-81.000327],[-62.255393,-80.863178],[-64.488125,-80.921934],[-65.741666,-80.588827],[-65.741666,-80.549657],[-66.290031,-80.255773],[-64.037688,-80.294944],[-61.883246,-80.39287],[-61.138976,-79.981371],[-60.610119,-79.628679],[-59.572095,-80.040179]]],"minLng":-66.290031,"minLat":-81.000327,"maxLng":-59.572095,"maxLat":-79.628679},{"country":"ATA","coordinates":[[[-45.154758,-78.04707],[-43.920828,-78.478103],[-43.48995,-79.08556],[-43.372438,-79.516645],[-43.333267,-80.026123],[-44.880537,-80.339644],[-46.506174,-80.594357],[-48.386421,-80.829485],[-50.482107,-81.025442],[-52.851988,-80.966685],[-54.164259,-80.633528],[-53.987991,-80.222028],[-51.853134,-79.94773],[-50.991326,-79.614623],[-50.364595,-79.183487],[-49.914131,-78.811209],[-49.306959,-78.458569],[-48.660616,-78.047018],[-48.660616,-78.047019],[-48.151396,-78.04707],[-46.662857,-77.831476],[-45.154758,-78.04707]]],"minLng":-54.164259,"minLat":-81.025442,"maxLng":-43.333267,"maxLat":-77.831476}],"height":1,"leaf":true,"bbox":[-75.012625,-81.025442,-43.333267,-68.87874]},{"children":[{"country":"GAB","coordinates":[[[11.093773,-3.978827],[10.066135,-2.969483],[9.405245,-2.144313],[8.797996,-1.111301],[8.830087,-0.779074],[9.04842,-0.459351],[9.291351,0.268666],[9.492889,1.01012],[9.830284,1.067894],[11.285079,1.057662],[11.276449,2.261051],[11.751665,2.326758],[12.35938,2.192812],[12.951334,2.321616],[13.075822,2.267097],[13.003114,1.830896],[13.282631,1.314184],[14.026669,1.395677],[14.276266,1.19693],[13.843321,0.038758],[14.316418,-0.552627],[14.425456,-1.333407],[14.29921,-1.998276],[13.992407,-2.470805],[13.109619,-2.42874],[12.575284,-1.948511],[12.495703,-2.391688],[11.820964,-2.514161],[11.478039,-2.765619],[11.855122,-3.426871],[11.093773,-3.978827]]],"minLng":8.797996,"minLat":-3.978827,"maxLng":14.425456,"maxLat":2.326758},{"country":"GNQ","coordinates":[[[9.492889,1.01012],[9.305613,1.160911],[9.649158,2.283866],[11.276449,2.261051],[11.285079,1.057662],[9.830284,1.067894],[9.492889,1.01012]]],"minLng":9.305613,"minLat":1.01012,"maxLng":11.285079,"maxLat":2.283866},{"country":"COG","coordinates":[[[12.995517,-4.781103],[12.62076,-4.438023],[12.318608,-4.60623],[11.914963,-5.037987],[11.093773,-3.978827],[11.855122,-3.426871],[11.478039,-2.765619],[11.820964,-2.514161],[12.495703,-2.391688],[12.575284,-1.948511],[13.109619,-2.42874],[13.992407,-2.470805],[14.29921,-1.998276],[14.425456,-1.333407],[14.316418,-0.552627],[13.843321,0.038758],[14.276266,1.19693],[14.026669,1.395677],[13.282631,1.314184],[13.003114,1.830896],[13.075822,2.267097],[14.337813,2.227875],[15.146342,1.964015],[15.940919,1.727673],[16.012852,2.26764],[16.537058,3.198255],[17.133042,3.728197],[17.8099,3.560196],[18.453065,3.504386],[18.393792,2.900443],[18.094276,2.365722],[17.898835,1.741832],[17.774192,0.855659],[17.82654,0.288923],[17.663553,-0.058084],[17.638645,-0.424832],[17.523716,-0.74383],[16.865307,-1.225816],[16.407092,-1.740927],[15.972803,-2.712392],[16.00629,-3.535133],[15.75354,-3.855165],[15.170992,-4.343507],[14.582604,-4.970239],[14.209035,-4.793092],[14.144956,-4.510009],[13.600235,-4.500138],[13.25824,-4.882957],[12.995517,-4.781103]]],"minLng":11.093773,"minLat":-5.037987,"maxLng":18.453065,"maxLat":3.728197}],"height":1,"leaf":true,"bbox":[8.797996,-5.037987,18.453065,3.728197]}],"height":2,"bbox":[-180,-85.609038,180,5.244486]},{"children":[{"children":[{"country":"ZAF","coordinates":[[[31.521001,-29.257387],[31.325561,-29.401978],[30.901763,-29.909957],[30.622813,-30.423776],[30.055716,-31.140269],[28.925553,-32.172041],[28.219756,-32.771953],[27.464608,-33.226964],[26.419452,-33.61495],[25.909664,-33.66704],[25.780628,-33.944646],[25.172862,-33.796851],[24.677853,-33.987176],[23.594043,-33.794474],[22.988189,-33.916431],[22.574157,-33.864083],[21.542799,-34.258839],[20.689053,-34.417175],[20.071261,-34.795137],[19.616405,-34.819166],[19.193278,-34.462599],[18.855315,-34.444306],[18.424643,-33.997873],[18.377411,-34.136521],[18.244499,-33.867752],[18.25008,-33.281431],[17.92519,-32.611291],[18.24791,-32.429131],[18.221762,-31.661633],[17.566918,-30.725721],[17.064416,-29.878641],[17.062918,-29.875954],[16.344977,-28.576705],[16.824017,-28.082162],[17.218929,-28.355943],[17.387497,-28.783514],[17.836152,-28.856378],[18.464899,-29.045462],[19.002127,-28.972443],[19.894734,-28.461105],[19.895768,-24.76779],[20.165726,-24.917962],[20.758609,-25.868136],[20.66647,-26.477453],[20.889609,-26.828543],[21.605896,-26.726534],[22.105969,-26.280256],[22.579532,-25.979448],[22.824271,-25.500459],[23.312097,-25.26869],[23.73357,-25.390129],[24.211267,-25.670216],[25.025171,-25.71967],[25.664666,-25.486816],[25.765849,-25.174845],[25.941652,-24.696373],[26.485753,-24.616327],[26.786407,-24.240691],[27.11941,-23.574323],[28.017236,-22.827754],[29.432188,-22.091313],[29.839037,-22.102216],[30.322883,-22.271612],[30.659865,-22.151567],[31.191409,-22.25151],[31.670398,-23.658969],[31.930589,-24.369417],[31.752408,-25.484284],[31.837778,-25.843332],[31.333158,-25.660191],[31.04408,-25.731452],[30.949667,-26.022649],[30.676609,-26.398078],[30.685962,-26.743845],[31.282773,-27.285879],[31.86806,-27.177927],[32.071665,-26.73382],[32.83012,-26.742192],[32.580265,-27.470158],[32.462133,-28.301011],[32.203389,-28.752405],[31.521001,-29.257387]],[[28.978263,-28.955597],[28.5417,-28.647502],[28.074338,-28.851469],[27.532511,-29.242711],[26.999262,-29.875954],[27.749397,-30.645106],[28.107205,-30.545732],[28.291069,-30.226217],[28.8484,-30.070051],[29.018415,-29.743766],[29.325166,-29.257387],[28.978263,-28.955597]]],"minLng":16.344977,"minLat":-34.819166,"maxLng":32.83012,"maxLat":-22.091313},{"country":"LSO","coordinates":[[[28.978263,-28.955597],[29.325166,-29.257387],[29.018415,-29.743766],[28.8484,-30.070051],[28.291069,-30.226217],[28.107205,-30.545732],[27.749397,-30.645106],[26.999262,-29.875954],[27.532511,-29.242711],[28.074338,-28.851469],[28.5417,-28.647502],[28.978263,-28.955597]]],"minLng":26.999262,"minLat":-30.645106,"maxLng":29.325166,"maxLat":-28.647502},{"country":"NAM","coordinates":[[[16.344977,-28.576705],[15.601818,-27.821247],[15.210472,-27.090956],[14.989711,-26.117372],[14.743214,-25.39292],[14.408144,-23.853014],[14.385717,-22.656653],[14.257714,-22.111208],[13.868642,-21.699037],[13.352498,-20.872834],[12.826845,-19.673166],[12.608564,-19.045349],[11.794919,-18.069129],[11.734199,-17.301889],[12.215461,-17.111668],[12.814081,-16.941343],[13.462362,-16.971212],[14.058501,-17.423381],[14.209707,-17.353101],[18.263309,-17.309951],[18.956187,-17.789095],[21.377176,-17.930636],[23.215048,-17.523116],[24.033862,-17.295843],[24.682349,-17.353411],[25.07695,-17.578823],[25.084443,-17.661816],[24.520705,-17.887125],[24.217365,-17.889347],[23.579006,-18.281261],[23.196858,-17.869038],[21.65504,-18.219146],[20.910641,-18.252219],[20.881134,-21.814327],[19.895458,-21.849157],[19.895768,-24.76779],[19.894734,-28.461105],[19.002127,-28.972443],[18.464899,-29.045462],[17.836152,-28.856378],[17.387497,-28.783514],[17.218929,-28.355943],[16.824017,-28.082162],[16.344977,-28.576705]]],"minLng":11.734199,"minLat":-29.045462,"maxLng":25.084443,"maxLat":-16.941343},{"country":"BWA","coordinates":[[[25.649163,-18.536026],[25.850391,-18.714413],[26.164791,-19.293086],[27.296505,-20.39152],[27.724747,-20.499059],[27.727228,-20.851802],[28.02137,-21.485975],[28.794656,-21.639454],[29.432188,-22.091313],[28.017236,-22.827754],[27.11941,-23.574323],[26.786407,-24.240691],[26.485753,-24.616327],[25.941652,-24.696373],[25.765849,-25.174845],[25.664666,-25.486816],[25.025171,-25.71967],[24.211267,-25.670216],[23.73357,-25.390129],[23.312097,-25.26869],[22.824271,-25.500459],[22.579532,-25.979448],[22.105969,-26.280256],[21.605896,-26.726534],[20.889609,-26.828543],[20.66647,-26.477453],[20.758609,-25.868136],[20.165726,-24.917962],[19.895768,-24.76779],[19.895458,-21.849157],[20.881134,-21.814327],[20.910641,-18.252219],[21.65504,-18.219146],[23.196858,-17.869038],[23.579006,-18.281261],[24.217365,-17.889347],[24.520705,-17.887125],[25.084443,-17.661816],[25.264226,-17.73654],[25.649163,-18.536026]]],"minLng":19.895458,"minLat":-26.828543,"maxLng":29.432188,"maxLat":-17.661816},{"country":"ZWE","coordinates":[[[31.191409,-22.25151],[30.659865,-22.151567],[30.322883,-22.271612],[29.839037,-22.102216],[29.432188,-22.091313],[28.794656,-21.639454],[28.02137,-21.485975],[27.727228,-20.851802],[27.724747,-20.499059],[27.296505,-20.39152],[26.164791,-19.293086],[25.850391,-18.714413],[25.649163,-18.536026],[25.264226,-17.73654],[26.381935,-17.846042],[26.706773,-17.961229],[27.044427,-17.938026],[27.598243,-17.290831],[28.467906,-16.4684],[28.825869,-16.389749],[28.947463,-16.043051],[29.516834,-15.644678],[30.274256,-15.507787],[30.338955,-15.880839],[31.173064,-15.860944],[31.636498,-16.07199],[31.852041,-16.319417],[32.328239,-16.392074],[32.847639,-16.713398],[32.849861,-17.979057],[32.654886,-18.67209],[32.611994,-19.419383],[32.772708,-19.715592],[32.659743,-20.30429],[32.508693,-20.395292],[32.244988,-21.116489],[31.191409,-22.25151]]],"minLng":25.264226,"minLat":-22.271612,"maxLng":32.849861,"maxLat":-15.507787}],"height":1,"leaf":true,"bbox":[11.734199,-34.819166,32.849861,-15.507787]},{"children":[{"country":"BDI","coordinates":[[[29.339998,-4.499983],[29.276384,-3.293907],[29.024926,-2.839258],[29.632176,-2.917858],[29.938359,-2.348487],[30.469696,-2.413858],[30.527677,-2.807632],[30.743013,-3.034285],[30.752263,-3.35933],[30.50556,-3.568567],[30.116333,-4.090138],[29.753512,-4.452389],[29.339998,-4.499983]]],"minLng":29.024926,"minLat":-4.499983,"maxLng":30.752263,"maxLat":-2.348487},{"country":"KEN","coordinates":[[[40.993,-0.85829],[41.58513,-1.68325],[40.88477,-2.08255],[40.63785,-2.49979],[40.26304,-2.57309],[40.12119,-3.27768],[39.80006,-3.68116],[39.60489,-4.34653],[39.20222,-4.67677],[37.7669,-3.67712],[37.69869,-3.09699],[34.07262,-1.05982],[33.903711,-0.95],[33.893569,0.109814],[34.18,0.515],[34.6721,1.17694],[35.03599,1.90584],[34.59607,3.05374],[34.47913,3.5556],[34.005,4.249885],[34.620196,4.847123],[35.298007,5.506],[35.817448,5.338232],[35.817448,4.776966],[36.159079,4.447864],[36.855093,4.447864],[38.120915,3.598605],[38.43697,3.58851],[38.67114,3.61607],[38.89251,3.50074],[39.559384,3.42206],[39.85494,3.83879],[40.76848,4.25702],[41.1718,3.91909],[41.855083,3.918912],[40.98105,2.78452],[40.993,-0.85829]]],"minLng":33.893569,"minLat":-4.67677,"maxLng":41.855083,"maxLat":5.506},{"country":"MDG","coordinates":[[[49.543519,-12.469833],[49.808981,-12.895285],[50.056511,-13.555761],[50.217431,-14.758789],[50.476537,-15.226512],[50.377111,-15.706069],[50.200275,-16.000263],[49.860606,-15.414253],[49.672607,-15.710204],[49.863344,-16.451037],[49.774564,-16.875042],[49.498612,-17.106036],[49.435619,-17.953064],[49.041792,-19.118781],[48.548541,-20.496888],[47.930749,-22.391501],[47.547723,-23.781959],[47.095761,-24.94163],[46.282478,-25.178463],[45.409508,-25.601434],[44.833574,-25.346101],[44.03972,-24.988345],[43.763768,-24.460677],[43.697778,-23.574116],[43.345654,-22.776904],[43.254187,-22.057413],[43.433298,-21.336475],[43.893683,-21.163307],[43.89637,-20.830459],[44.374325,-20.072366],[44.464397,-19.435454],[44.232422,-18.961995],[44.042976,-18.331387],[43.963084,-17.409945],[44.312469,-16.850496],[44.446517,-16.216219],[44.944937,-16.179374],[45.502732,-15.974373],[45.872994,-15.793454],[46.312243,-15.780018],[46.882183,-15.210182],[47.70513,-14.594303],[48.005215,-14.091233],[47.869047,-13.663869],[48.293828,-13.784068],[48.84506,-13.089175],[48.863509,-12.487868],[49.194651,-12.040557],[49.543519,-12.469833]]],"minLng":43.254187,"minLat":-25.601434,"maxLng":50.476537,"maxLat":-12.040557},{"country":"MOZ","coordinates":[[[34.559989,-11.52002],[35.312398,-11.439146],[36.514082,-11.720938],[36.775151,-11.594537],[37.471284,-11.568751],[37.827645,-11.268769],[38.427557,-11.285202],[39.52103,-10.896854],[40.316589,-10.317096],[40.478387,-10.765441],[40.437253,-11.761711],[40.560811,-12.639177],[40.59962,-14.201975],[40.775475,-14.691764],[40.477251,-15.406294],[40.089264,-16.100774],[39.452559,-16.720891],[38.538351,-17.101023],[37.411133,-17.586368],[36.281279,-18.659688],[35.896497,-18.84226],[35.1984,-19.552811],[34.786383,-19.784012],[34.701893,-20.497043],[35.176127,-21.254361],[35.373428,-21.840837],[35.385848,-22.14],[35.562546,-22.09],[35.533935,-23.070788],[35.371774,-23.535359],[35.60747,-23.706563],[35.458746,-24.12261],[35.040735,-24.478351],[34.215824,-24.816314],[33.01321,-25.357573],[32.574632,-25.727318],[32.660363,-26.148584],[32.915955,-26.215867],[32.83012,-26.742192],[32.071665,-26.73382],[31.985779,-26.29178],[31.837778,-25.843332],[31.752408,-25.484284],[31.930589,-24.369417],[31.670398,-23.658969],[31.191409,-22.25151],[32.244988,-21.116489],[32.508693,-20.395292],[32.659743,-20.30429],[32.772708,-19.715592],[32.611994,-19.419383],[32.654886,-18.67209],[32.849861,-17.979057],[32.847639,-16.713398],[32.328239,-16.392074],[31.852041,-16.319417],[31.636498,-16.07199],[31.173064,-15.860944],[30.338955,-15.880839],[30.274256,-15.507787],[30.179481,-14.796099],[33.214025,-13.97186],[33.7897,-14.451831],[34.064825,-14.35995],[34.459633,-14.61301],[34.517666,-15.013709],[34.307291,-15.478641],[34.381292,-16.18356],[35.03381,-16.8013],[35.339063,-16.10744],[35.771905,-15.896859],[35.686845,-14.611046],[35.267956,-13.887834],[34.907151,-13.565425],[34.559989,-13.579998],[34.280006,-12.280025],[34.559989,-11.52002]]],"minLng":30.179481,"minLat":-26.742192,"maxLng":40.775475,"maxLat":-10.317096},{"country":"MWI","coordinates":[[[34.559989,-11.52002],[34.280006,-12.280025],[34.559989,-13.579998],[34.907151,-13.565425],[35.267956,-13.887834],[35.686845,-14.611046],[35.771905,-15.896859],[35.339063,-16.10744],[35.03381,-16.8013],[34.381292,-16.18356],[34.307291,-15.478641],[34.517666,-15.013709],[34.459633,-14.61301],[34.064825,-14.35995],[33.7897,-14.451831],[33.214025,-13.97186],[32.688165,-13.712858],[32.991764,-12.783871],[33.306422,-12.435778],[33.114289,-11.607198],[33.31531,-10.79655],[33.485688,-10.525559],[33.231388,-9.676722],[32.759375,-9.230599],[33.739729,-9.417151],[33.940838,-9.693674],[34.280006,-10.16],[34.559989,-11.52002]]],"minLng":32.688165,"minLat":-16.8013,"maxLng":35.771905,"maxLat":-9.230599},{"country":"SWZ","coordinates":[[[32.071665,-26.73382],[31.86806,-27.177927],[31.282773,-27.285879],[30.685962,-26.743845],[30.676609,-26.398078],[30.949667,-26.022649],[31.04408,-25.731452],[31.333158,-25.660191],[31.837778,-25.843332],[31.985779,-26.29178],[32.071665,-26.73382]]],"minLng":30.676609,"minLat":-27.285879,"maxLng":32.071665,"maxLat":-25.660191},{"country":"TZA","coordinates":[[[33.903711,-0.95],[34.07262,-1.05982],[37.69869,-3.09699],[37.7669,-3.67712],[39.20222,-4.67677],[38.74054,-5.90895],[38.79977,-6.47566],[39.44,-6.84],[39.47,-7.1],[39.19469,-7.7039],[39.25203,-8.00781],[39.18652,-8.48551],[39.53574,-9.11237],[39.9496,-10.0984],[40.31659,-10.3171],[39.521,-10.89688],[38.427557,-11.285202],[37.82764,-11.26879],[37.47129,-11.56876],[36.775151,-11.594537],[36.514082,-11.720938],[35.312398,-11.439146],[34.559989,-11.52002],[34.28,-10.16],[33.940838,-9.693674],[33.73972,-9.41715],[32.759375,-9.230599],[32.191865,-8.930359],[31.556348,-8.762049],[31.157751,-8.594579],[30.74,-8.34],[30.2,-7.08],[29.62,-6.52],[29.419993,-5.939999],[29.519987,-5.419979],[29.339998,-4.499983],[29.753512,-4.452389],[30.11632,-4.09012],[30.50554,-3.56858],[30.75224,-3.35931],[30.74301,-3.03431],[30.52766,-2.80762],[30.46967,-2.41383],[30.758309,-2.28725],[30.816135,-1.698914],[30.419105,-1.134659],[30.76986,-1.01455],[31.86617,-1.02736],[33.903711,-0.95]]],"minLng":29.339998,"minLat":-11.720938,"maxLng":40.31659,"maxLat":-0.95}],"height":1,"leaf":true,"bbox":[29.024926,-27.285879,50.476537,5.506]},{"children":[{"country":"ATF","coordinates":[[[68.935,-48.625],[69.58,-48.94],[70.525,-49.065],[70.56,-49.255],[70.28,-49.71],[68.745,-49.775],[68.72,-49.2425],[68.8675,-48.83],[68.935,-48.625]]],"minLng":68.72,"minLat":-49.775,"maxLng":70.56,"maxLat":-48.625},{"country":"AUS","coordinates":[[[143.561811,-13.763656],[143.922099,-14.548311],[144.563714,-14.171176],[144.894908,-14.594458],[145.374724,-14.984976],[145.271991,-15.428205],[145.48526,-16.285672],[145.637033,-16.784918],[145.888904,-16.906926],[146.160309,-17.761655],[146.063674,-18.280073],[146.387478,-18.958274],[147.471082,-19.480723],[148.177602,-19.955939],[148.848414,-20.39121],[148.717465,-20.633469],[149.28942,-21.260511],[149.678337,-22.342512],[150.077382,-22.122784],[150.482939,-22.556142],[150.727265,-22.402405],[150.899554,-23.462237],[151.609175,-24.076256],[152.07354,-24.457887],[152.855197,-25.267501],[153.136162,-26.071173],[153.161949,-26.641319],[153.092909,-27.2603],[153.569469,-28.110067],[153.512108,-28.995077],[153.339095,-29.458202],[153.069241,-30.35024],[153.089602,-30.923642],[152.891578,-31.640446],[152.450002,-32.550003],[151.709117,-33.041342],[151.343972,-33.816023],[151.010555,-34.31036],[150.714139,-35.17346],[150.32822,-35.671879],[150.075212,-36.420206],[149.946124,-37.109052],[149.997284,-37.425261],[149.423882,-37.772681],[148.304622,-37.809061],[147.381733,-38.219217],[146.922123,-38.606532],[146.317922,-39.035757],[145.489652,-38.593768],[144.876976,-38.417448],[145.032212,-37.896188],[144.485682,-38.085324],[143.609974,-38.809465],[142.745427,-38.538268],[142.17833,-38.380034],[141.606582,-38.308514],[140.638579,-38.019333],[139.992158,-37.402936],[139.806588,-36.643603],[139.574148,-36.138362],[139.082808,-35.732754],[138.120748,-35.612296],[138.449462,-35.127261],[138.207564,-34.384723],[137.71917,-35.076825],[136.829406,-35.260535],[137.352371,-34.707339],[137.503886,-34.130268],[137.890116,-33.640479],[137.810328,-32.900007],[136.996837,-33.752771],[136.372069,-34.094766],[135.989043,-34.890118],[135.208213,-34.47867],[135.239218,-33.947953],[134.613417,-33.222778],[134.085904,-32.848072],[134.273903,-32.617234],[132.990777,-32.011224],[132.288081,-31.982647],[131.326331,-31.495803],[129.535794,-31.590423],[128.240938,-31.948489],[127.102867,-32.282267],[126.148714,-32.215966],[125.088623,-32.728751],[124.221648,-32.959487],[124.028947,-33.483847],[123.659667,-33.890179],[122.811036,-33.914467],[122.183064,-34.003402],[121.299191,-33.821036],[120.580268,-33.930177],[119.893695,-33.976065],[119.298899,-34.509366],[119.007341,-34.464149],[118.505718,-34.746819],[118.024972,-35.064733],[117.295507,-35.025459],[116.625109,-35.025097],[115.564347,-34.386428],[115.026809,-34.196517],[115.048616,-33.623425],[115.545123,-33.487258],[115.714674,-33.259572],[115.679379,-32.900369],[115.801645,-32.205062],[115.689611,-31.612437],[115.160909,-30.601594],[114.997043,-30.030725],[115.040038,-29.461095],[114.641974,-28.810231],[114.616498,-28.516399],[114.173579,-28.118077],[114.048884,-27.334765],[113.477498,-26.543134],[113.338953,-26.116545],[113.778358,-26.549025],[113.440962,-25.621278],[113.936901,-25.911235],[114.232852,-26.298446],[114.216161,-25.786281],[113.721255,-24.998939],[113.625344,-24.683971],[113.393523,-24.384764],[113.502044,-23.80635],[113.706993,-23.560215],[113.843418,-23.059987],[113.736552,-22.475475],[114.149756,-21.755881],[114.225307,-22.517488],[114.647762,-21.82952],[115.460167,-21.495173],[115.947373,-21.068688],[116.711615,-20.701682],[117.166316,-20.623599],[117.441545,-20.746899],[118.229559,-20.374208],[118.836085,-20.263311],[118.987807,-20.044203],[119.252494,-19.952942],[119.805225,-19.976506],[120.85622,-19.683708],[121.399856,-19.239756],[121.655138,-18.705318],[122.241665,-18.197649],[122.286624,-17.798603],[122.312772,-17.254967],[123.012574,-16.4052],[123.433789,-17.268558],[123.859345,-17.069035],[123.503242,-16.596506],[123.817073,-16.111316],[124.258287,-16.327944],[124.379726,-15.56706],[124.926153,-15.0751],[125.167275,-14.680396],[125.670087,-14.51007],[125.685796,-14.230656],[126.125149,-14.347341],[126.142823,-14.095987],[126.582589,-13.952791],[127.065867,-13.817968],[127.804633,-14.276906],[128.35969,-14.86917],[128.985543,-14.875991],[129.621473,-14.969784],[129.4096,-14.42067],[129.888641,-13.618703],[130.339466,-13.357376],[130.183506,-13.10752],[130.617795,-12.536392],[131.223495,-12.183649],[131.735091,-12.302453],[132.575298,-12.114041],[132.557212,-11.603012],[131.824698,-11.273782],[132.357224,-11.128519],[133.019561,-11.376411],[133.550846,-11.786515],[134.393068,-12.042365],[134.678632,-11.941183],[135.298491,-12.248606],[135.882693,-11.962267],[136.258381,-12.049342],[136.492475,-11.857209],[136.95162,-12.351959],[136.685125,-12.887223],[136.305407,-13.29123],[135.961758,-13.324509],[136.077617,-13.724278],[135.783836,-14.223989],[135.428664,-14.715432],[135.500184,-14.997741],[136.295175,-15.550265],[137.06536,-15.870762],[137.580471,-16.215082],[138.303217,-16.807604],[138.585164,-16.806622],[139.108543,-17.062679],[139.260575,-17.371601],[140.215245,-17.710805],[140.875463,-17.369069],[141.07111,-16.832047],[141.274095,-16.38887],[141.398222,-15.840532],[141.702183,-15.044921],[141.56338,-14.561333],[141.63552,-14.270395],[141.519869,-13.698078],[141.65092,-12.944688],[141.842691,-12.741548],[141.68699,-12.407614],[141.928629,-11.877466],[142.118488,-11.328042],[142.143706,-11.042737],[142.51526,-10.668186],[142.79731,-11.157355],[142.866763,-11.784707],[143.115947,-11.90563],[143.158632,-12.325656],[143.522124,-12.834358],[143.597158,-13.400422],[143.561811,-13.763656]]],"minLng":113.338953,"minLat":-39.035757,"maxLng":153.569469,"maxLat":-10.668186},{"country":"AUS","coordinates":[[[145.397978,-40.792549],[146.364121,-41.137695],[146.908584,-41.000546],[147.689259,-40.808258],[148.289068,-40.875438],[148.359865,-42.062445],[148.017301,-42.407024],[147.914052,-43.211522],[147.564564,-42.937689],[146.870343,-43.634597],[146.663327,-43.580854],[146.048378,-43.549745],[145.43193,-42.693776],[145.29509,-42.03361],[144.718071,-41.162552],[144.743755,-40.703975],[145.397978,-40.792549]]],"minLng":144.718071,"minLat":-43.634597,"maxLng":148.359865,"maxLat":-40.703975}],"height":1,"leaf":true,"bbox":[68.72,-49.775,153.569469,-10.668186]},{"children":[{"country":"IDN","coordinates":[[[105.817655,-5.852356],[104.710384,-5.873285],[103.868213,-5.037315],[102.584261,-4.220259],[102.156173,-3.614146],[101.399113,-2.799777],[100.902503,-2.050262],[100.141981,-0.650348],[99.26374,0.183142],[98.970011,1.042882],[98.601351,1.823507],[97.699598,2.453184],[97.176942,3.308791],[96.424017,3.86886],[95.380876,4.970782],[95.293026,5.479821],[95.936863,5.439513],[97.484882,5.246321],[98.369169,4.26837],[99.142559,3.59035],[99.693998,3.174329],[100.641434,2.099381],[101.658012,2.083697],[102.498271,1.3987],[103.07684,0.561361],[103.838396,0.104542],[103.437645,-0.711946],[104.010789,-1.059212],[104.369991,-1.084843],[104.53949,-1.782372],[104.887893,-2.340425],[105.622111,-2.428844],[106.108593,-3.061777],[105.857446,-4.305525],[105.817655,-5.852356]]],"minLng":95.293026,"minLat":-5.873285,"maxLng":106.108593,"maxLat":5.479821},{"country":"IDN","coordinates":[[[108.623479,-6.777674],[110.539227,-6.877358],[110.759576,-6.465186],[112.614811,-6.946036],[112.978768,-7.594213],[114.478935,-7.776528],[115.705527,-8.370807],[114.564511,-8.751817],[113.464734,-8.348947],[112.559672,-8.376181],[111.522061,-8.302129],[110.58615,-8.122605],[109.427667,-7.740664],[108.693655,-7.6416],[108.277763,-7.766657],[106.454102,-7.3549],[106.280624,-6.9249],[105.365486,-6.851416],[106.051646,-5.895919],[107.265009,-5.954985],[108.072091,-6.345762],[108.486846,-6.421985],[108.623479,-6.777674]]],"minLng":105.365486,"minLat":-8.751817,"maxLng":115.705527,"maxLat":-5.895919},{"country":"IDN","coordinates":[[[117.875627,1.827641],[118.996747,0.902219],[117.811858,0.784242],[117.478339,0.102475],[117.521644,-0.803723],[116.560048,-1.487661],[116.533797,-2.483517],[116.148084,-4.012726],[116.000858,-3.657037],[114.864803,-4.106984],[114.468652,-3.495704],[113.755672,-3.43917],[113.256994,-3.118776],[112.068126,-3.478392],[111.703291,-2.994442],[111.04824,-3.049426],[110.223846,-2.934032],[110.070936,-1.592874],[109.571948,-1.314907],[109.091874,-0.459507],[108.952658,0.415375],[109.069136,1.341934],[109.66326,2.006467],[109.830227,1.338136],[110.514061,0.773131],[111.159138,0.976478],[111.797548,0.904441],[112.380252,1.410121],[112.859809,1.49779],[113.80585,1.217549],[114.621355,1.430688],[115.134037,2.821482],[115.519078,3.169238],[115.865517,4.306559],[117.015214,4.306094],[117.882035,4.137551],[117.313232,3.234428],[118.04833,2.28769],[117.875627,1.827641]]],"minLng":108.952658,"minLat":-4.106984,"maxLng":118.996747,"maxLat":4.306559},{"country":"BRN","coordinates":[[[114.204017,4.525874],[114.599961,4.900011],[115.45071,5.44773],[115.4057,4.955228],[115.347461,4.316636],[114.869557,4.348314],[114.659596,4.007637],[114.204017,4.525874]]],"minLng":114.204017,"minLat":4.007637,"maxLng":115.45071,"maxLat":5.44773},{"country":"IDN","coordinates":[[[117.900018,-8.095681],[118.260616,-8.362383],[118.87846,-8.280683],[119.126507,-8.705825],[117.970402,-8.906639],[117.277731,-9.040895],[116.740141,-9.032937],[117.083737,-8.457158],[117.632024,-8.449303],[117.900018,-8.095681]]],"minLng":116.740141,"minLat":-9.040895,"maxLng":119.126507,"maxLat":-8.095681},{"country":"MYS","coordinates":[[[101.075516,6.204867],[101.154219,5.691384],[101.814282,5.810808],[102.141187,6.221636],[102.371147,6.128205],[102.961705,5.524495],[103.381215,4.855001],[103.438575,4.181606],[103.332122,3.726698],[103.429429,3.382869],[103.502448,2.791019],[103.854674,2.515454],[104.247932,1.631141],[104.228811,1.293048],[103.519707,1.226334],[102.573615,1.967115],[101.390638,2.760814],[101.27354,3.270292],[100.695435,3.93914],[100.557408,4.76728],[100.196706,5.312493],[100.30626,6.040562],[100.085757,6.464489],[100.259596,6.642825],[101.075516,6.204867]]],"minLng":100.085757,"minLat":1.226334,"maxLng":104.247932,"maxLat":6.642825},{"country":"MYS","coordinates":[[[118.618321,4.478202],[117.882035,4.137551],[117.015214,4.306094],[115.865517,4.306559],[115.519078,3.169238],[115.134037,2.821482],[114.621355,1.430688],[113.80585,1.217549],[112.859809,1.49779],[112.380252,1.410121],[111.797548,0.904441],[111.159138,0.976478],[110.514061,0.773131],[109.830227,1.338136],[109.66326,2.006467],[110.396135,1.663775],[111.168853,1.850637],[111.370081,2.697303],[111.796928,2.885897],[112.995615,3.102395],[113.712935,3.893509],[114.204017,4.525874],[114.659596,4.007637],[114.869557,4.348314],[115.347461,4.316636],[115.4057,4.955228],[115.45071,5.44773],[116.220741,6.143191],[116.725103,6.924771],[117.129626,6.928053],[117.643393,6.422166],[117.689075,5.98749],[118.347691,5.708696],[119.181904,5.407836],[119.110694,5.016128],[118.439727,4.966519],[118.618321,4.478202]]],"minLng":109.66326,"minLat":0.773131,"maxLng":119.181904,"maxLat":6.928053}],"height":1,"leaf":true,"bbox":[95.293026,-9.040895,119.181904,6.928053]},{"children":[{"country":"IDN","coordinates":[[[125.240501,1.419836],[124.437035,0.427881],[123.685505,0.235593],[122.723083,0.431137],[121.056725,0.381217],[120.183083,0.237247],[120.04087,-0.519658],[120.935905,-1.408906],[121.475821,-0.955962],[123.340565,-0.615673],[123.258399,-1.076213],[122.822715,-0.930951],[122.38853,-1.516858],[121.508274,-1.904483],[122.454572,-3.186058],[122.271896,-3.5295],[123.170963,-4.683693],[123.162333,-5.340604],[122.628515,-5.634591],[122.236394,-5.282933],[122.719569,-4.464172],[121.738234,-4.851331],[121.489463,-4.574553],[121.619171,-4.188478],[120.898182,-3.602105],[120.972389,-2.627643],[120.305453,-2.931604],[120.390047,-4.097579],[120.430717,-5.528241],[119.796543,-5.6734],[119.366906,-5.379878],[119.653606,-4.459417],[119.498835,-3.494412],[119.078344,-3.487022],[118.767769,-2.801999],[119.180974,-2.147104],[119.323394,-1.353147],[119.825999,0.154254],[120.035702,0.566477],[120.885779,1.309223],[121.666817,1.013944],[122.927567,0.875192],[124.077522,0.917102],[125.065989,1.643259],[125.240501,1.419836]]],"minLng":118.767769,"minLat":-5.6734,"maxLng":125.240501,"maxLat":1.643259},{"country":"IDN","coordinates":[[[120.715609,-10.239581],[120.295014,-10.25865],[118.967808,-9.557969],[119.90031,-9.36134],[120.425756,-9.665921],[120.775502,-9.969675],[120.715609,-10.239581]]],"minLng":118.967808,"minLat":-10.25865,"maxLng":120.775502,"maxLat":-9.36134},{"country":"IDN","coordinates":[[[122.903537,-8.094234],[122.756983,-8.649808],[121.254491,-8.933666],[119.924391,-8.810418],[119.920929,-8.444859],[120.715092,-8.236965],[121.341669,-8.53674],[122.007365,-8.46062],[122.903537,-8.094234]]],"minLng":119.920929,"minLat":-8.933666,"maxLng":122.903537,"maxLat":-8.094234}],"height":1,"leaf":true,"bbox":[118.767769,-10.25865,125.240501,1.643259]},{"children":[{"country":"ZMB","coordinates":[[[32.759375,-9.230599],[33.231388,-9.676722],[33.485688,-10.525559],[33.31531,-10.79655],[33.114289,-11.607198],[33.306422,-12.435778],[32.991764,-12.783871],[32.688165,-13.712858],[33.214025,-13.97186],[30.179481,-14.796099],[30.274256,-15.507787],[29.516834,-15.644678],[28.947463,-16.043051],[28.825869,-16.389749],[28.467906,-16.4684],[27.598243,-17.290831],[27.044427,-17.938026],[26.706773,-17.961229],[26.381935,-17.846042],[25.264226,-17.73654],[25.084443,-17.661816],[25.07695,-17.578823],[24.682349,-17.353411],[24.033862,-17.295843],[23.215048,-17.523116],[22.562478,-16.898451],[21.887843,-16.08031],[21.933886,-12.898437],[24.016137,-12.911046],[23.930922,-12.565848],[24.079905,-12.191297],[23.904154,-11.722282],[24.017894,-11.237298],[23.912215,-10.926826],[24.257155,-10.951993],[24.314516,-11.262826],[24.78317,-11.238694],[25.418118,-11.330936],[25.75231,-11.784965],[26.553088,-11.92444],[27.16442,-11.608748],[27.388799,-12.132747],[28.155109,-12.272481],[28.523562,-12.698604],[28.934286,-13.248958],[29.699614,-13.257227],[29.616001,-12.178895],[29.341548,-12.360744],[28.642417,-11.971569],[28.372253,-11.793647],[28.49607,-10.789884],[28.673682,-9.605925],[28.449871,-9.164918],[28.734867,-8.526559],[29.002912,-8.407032],[30.346086,-8.238257],[30.740015,-8.340007],[31.157751,-8.594579],[31.556348,-8.762049],[32.191865,-8.930359],[32.759375,-9.230599]]],"minLng":21.887843,"minLat":-17.961229,"maxLng":33.485688,"maxLat":-8.238257},{"country":"AGO","coordinates":[[[16.326528,-5.87747],[16.57318,-6.622645],[16.860191,-7.222298],[17.089996,-7.545689],[17.47297,-8.068551],[18.134222,-7.987678],[18.464176,-7.847014],[19.016752,-7.988246],[19.166613,-7.738184],[19.417502,-7.155429],[20.037723,-7.116361],[20.091622,-6.94309],[20.601823,-6.939318],[20.514748,-7.299606],[21.728111,-7.290872],[21.746456,-7.920085],[21.949131,-8.305901],[21.801801,-8.908707],[21.875182,-9.523708],[22.208753,-9.894796],[22.155268,-11.084801],[22.402798,-10.993075],[22.837345,-11.017622],[23.456791,-10.867863],[23.912215,-10.926826],[24.017894,-11.237298],[23.904154,-11.722282],[24.079905,-12.191297],[23.930922,-12.565848],[24.016137,-12.911046],[21.933886,-12.898437],[21.887843,-16.08031],[22.562478,-16.898451],[23.215048,-17.523116],[21.377176,-17.930636],[18.956187,-17.789095],[18.263309,-17.309951],[14.209707,-17.353101],[14.058501,-17.423381],[13.462362,-16.971212],[12.814081,-16.941343],[12.215461,-17.111668],[11.734199,-17.301889],[11.640096,-16.673142],[11.778537,-15.793816],[12.123581,-14.878316],[12.175619,-14.449144],[12.500095,-13.5477],[12.738479,-13.137906],[13.312914,-12.48363],[13.633721,-12.038645],[13.738728,-11.297863],[13.686379,-10.731076],[13.387328,-10.373578],[13.120988,-9.766897],[12.87537,-9.166934],[12.929061,-8.959091],[13.236433,-8.562629],[12.93304,-7.596539],[12.728298,-6.927122],[12.227347,-6.294448],[12.322432,-6.100092],[12.735171,-5.965682],[13.024869,-5.984389],[13.375597,-5.864241],[16.326528,-5.87747]]],"minLng":11.640096,"minLat":-17.930636,"maxLng":24.079905,"maxLat":-5.864241},{"country":"COD","coordinates":[[[30.83386,3.509166],[30.773347,2.339883],[31.174149,2.204465],[30.85267,1.849396],[30.468508,1.583805],[30.086154,1.062313],[29.875779,0.59738],[29.819503,-0.20531],[29.587838,-0.587406],[29.579466,-1.341313],[29.291887,-1.620056],[29.254835,-2.21511],[29.117479,-2.292211],[29.024926,-2.839258],[29.276384,-3.293907],[29.339998,-4.499983],[29.519987,-5.419979],[29.419993,-5.939999],[29.620032,-6.520015],[30.199997,-7.079981],[30.740015,-8.340007],[30.346086,-8.238257],[29.002912,-8.407032],[28.734867,-8.526559],[28.449871,-9.164918],[28.673682,-9.605925],[28.49607,-10.789884],[28.372253,-11.793647],[28.642417,-11.971569],[29.341548,-12.360744],[29.616001,-12.178895],[29.699614,-13.257227],[28.934286,-13.248958],[28.523562,-12.698604],[28.155109,-12.272481],[27.388799,-12.132747],[27.16442,-11.608748],[26.553088,-11.92444],[25.75231,-11.784965],[25.418118,-11.330936],[24.78317,-11.238694],[24.314516,-11.262826],[24.257155,-10.951993],[23.912215,-10.926826],[23.456791,-10.867863],[22.837345,-11.017622],[22.402798,-10.993075],[22.155268,-11.084801],[22.208753,-9.894796],[21.875182,-9.523708],[21.801801,-8.908707],[21.949131,-8.305901],[21.746456,-7.920085],[21.728111,-7.290872],[20.514748,-7.299606],[20.601823,-6.939318],[20.091622,-6.94309],[20.037723,-7.116361],[19.417502,-7.155429],[19.166613,-7.738184],[19.016752,-7.988246],[18.464176,-7.847014],[18.134222,-7.987678],[17.47297,-8.068551],[17.089996,-7.545689],[16.860191,-7.222298],[16.57318,-6.622645],[16.326528,-5.87747],[13.375597,-5.864241],[13.024869,-5.984389],[12.735171,-5.965682],[12.322432,-6.100092],[12.182337,-5.789931],[12.436688,-5.684304],[12.468004,-5.248362],[12.631612,-4.991271],[12.995517,-4.781103],[13.25824,-4.882957],[13.600235,-4.500138],[14.144956,-4.510009],[14.209035,-4.793092],[14.582604,-4.970239],[15.170992,-4.343507],[15.75354,-3.855165],[16.00629,-3.535133],[15.972803,-2.712392],[16.407092,-1.740927],[16.865307,-1.225816],[17.523716,-0.74383],[17.638645,-0.424832],[17.663553,-0.058084],[17.82654,0.288923],[17.774192,0.855659],[17.898835,1.741832],[18.094276,2.365722],[18.393792,2.900443],[18.453065,3.504386],[18.542982,4.201785],[18.932312,4.709506],[19.467784,5.031528],[20.290679,4.691678],[20.927591,4.322786],[21.659123,4.224342],[22.405124,4.02916],[22.704124,4.633051],[22.84148,4.710126],[23.297214,4.609693],[24.410531,5.108784],[24.805029,4.897247],[25.128833,4.927245],[25.278798,5.170408],[25.650455,5.256088],[26.402761,5.150875],[27.044065,5.127853],[27.374226,5.233944],[27.979977,4.408413],[28.428994,4.287155],[28.696678,4.455077],[29.159078,4.389267],[29.715995,4.600805],[29.9535,4.173699],[30.83386,3.509166]]],"minLng":12.182337,"minLat":-13.257227,"maxLng":31.174149,"maxLat":5.256088},{"country":"AGO","coordinates":[[[12.436688,-5.684304],[12.182337,-5.789931],[11.914963,-5.037987],[12.318608,-4.60623],[12.62076,-4.438023],[12.995517,-4.781103],[12.631612,-4.991271],[12.468004,-5.248362],[12.436688,-5.684304]]],"minLng":11.914963,"minLat":-5.789931,"maxLng":12.995517,"maxLat":-4.438023}],"height":1,"leaf":true,"bbox":[11.640096,-17.961229,33.485688,5.256088]}],"height":2,"bbox":[11.640096,-49.775,153.569469,6.928053]},{"children":[{"children":[{"country":"IDN","coordinates":[[[124.43595,-10.140001],[123.579982,-10.359987],[123.459989,-10.239995],[123.550009,-9.900016],[123.980009,-9.290027],[124.968682,-8.89279],[125.07002,-9.089987],[125.08852,-9.393173],[124.43595,-10.140001]]],"minLng":123.459989,"minLat":-10.359987,"maxLng":125.08852,"maxLat":-8.89279},{"country":"IDN","coordinates":[[[127.249215,-3.459065],[126.874923,-3.790983],[126.183802,-3.607376],[125.989034,-3.177273],[127.000651,-3.129318],[127.249215,-3.459065]]],"minLng":125.989034,"minLat":-3.790983,"maxLng":127.249215,"maxLat":-3.129318},{"country":"IDN","coordinates":[[[128.688249,1.132386],[128.635952,0.258486],[128.12017,0.356413],[127.968034,-0.252077],[128.379999,-0.780004],[128.100016,-0.899996],[127.696475,-0.266598],[127.39949,1.011722],[127.600512,1.810691],[127.932378,2.174596],[128.004156,1.628531],[128.594559,1.540811],[128.688249,1.132386]]],"minLng":127.39949,"minLat":-0.899996,"maxLng":128.688249,"maxLat":2.174596},{"country":"IDN","coordinates":[[[130.471344,-3.093764],[130.834836,-3.858472],[129.990547,-3.446301],[129.155249,-3.362637],[128.590684,-3.428679],[127.898891,-3.393436],[128.135879,-2.84365],[129.370998,-2.802154],[130.471344,-3.093764]]],"minLng":127.898891,"minLat":-3.858472,"maxLng":130.834836,"maxLat":-2.802154},{"country":"TLS","coordinates":[[[124.968682,-8.89279],[125.086246,-8.656887],[125.947072,-8.432095],[126.644704,-8.398247],[126.957243,-8.273345],[127.335928,-8.397317],[126.967992,-8.668256],[125.925885,-9.106007],[125.08852,-9.393173],[125.07002,-9.089987],[124.968682,-8.89279]]],"minLng":124.968682,"minLat":-9.393173,"maxLng":127.335928,"maxLat":-8.273345}],"height":1,"leaf":true,"bbox":[123.459989,-10.359987,130.834836,2.174596]},{"children":[{"country":"IDN","coordinates":[[[134.143368,-1.151867],[134.422627,-2.769185],[135.457603,-3.367753],[136.293314,-2.307042],[137.440738,-1.703513],[138.329727,-1.702686],[139.184921,-2.051296],[139.926684,-2.409052],[141.00021,-2.600151],[141.017057,-5.859022],[141.033852,-9.117893],[140.143415,-8.297168],[139.127767,-8.096043],[138.881477,-8.380935],[137.614474,-8.411683],[138.039099,-7.597882],[138.668621,-7.320225],[138.407914,-6.232849],[137.92784,-5.393366],[135.98925,-4.546544],[135.164598,-4.462931],[133.66288,-3.538853],[133.367705,-4.024819],[132.983956,-4.112979],[132.756941,-3.746283],[132.753789,-3.311787],[131.989804,-2.820551],[133.066845,-2.460418],[133.780031,-2.479848],[133.696212,-2.214542],[132.232373,-2.212526],[131.836222,-1.617162],[130.94284,-1.432522],[130.519558,-0.93772],[131.867538,-0.695461],[132.380116,-0.369538],[133.985548,-0.78021],[134.143368,-1.151867]]],"minLng":130.519558,"minLat":-9.117893,"maxLng":141.033852,"maxLat":-0.369538},{"country":"IDN","coordinates":[[[134.724624,-6.214401],[134.210134,-6.895238],[134.112776,-6.142467],[134.290336,-5.783058],[134.499625,-5.445042],[134.727002,-5.737582],[134.724624,-6.214401]]],"minLng":134.112776,"minLat":-6.895238,"maxLng":134.727002,"maxLat":-5.445042},{"country":"PNG","coordinates":[[[147.191874,-7.388024],[148.084636,-8.044108],[148.734105,-9.104664],[149.306835,-9.071436],[149.266631,-9.514406],[150.038728,-9.684318],[149.738798,-9.872937],[150.801628,-10.293687],[150.690575,-10.582713],[150.028393,-10.652476],[149.78231,-10.393267],[148.923138,-10.280923],[147.913018,-10.130441],[147.135443,-9.492444],[146.567881,-8.942555],[146.048481,-8.067414],[144.744168,-7.630128],[143.897088,-7.91533],[143.286376,-8.245491],[143.413913,-8.983069],[142.628431,-9.326821],[142.068259,-9.159596],[141.033852,-9.117893],[141.017057,-5.859022],[141.00021,-2.600151],[142.735247,-3.289153],[144.583971,-3.861418],[145.27318,-4.373738],[145.829786,-4.876498],[145.981922,-5.465609],[147.648073,-6.083659],[147.891108,-6.614015],[146.970905,-6.721657],[147.191874,-7.388024]]],"minLng":141.00021,"minLat":-10.652476,"maxLng":150.801628,"maxLat":-2.600151},{"country":"PNG","coordinates":[[[151.982796,-5.478063],[151.459107,-5.56028],[151.30139,-5.840728],[150.754447,-6.083763],[150.241197,-6.317754],[149.709963,-6.316513],[148.890065,-6.02604],[148.318937,-5.747142],[148.401826,-5.437756],[149.298412,-5.583742],[149.845562,-5.505503],[149.99625,-5.026101],[150.139756,-5.001348],[150.236908,-5.53222],[150.807467,-5.455842],[151.089672,-5.113693],[151.647881,-4.757074],[151.537862,-4.167807],[152.136792,-4.14879],[152.338743,-4.312966],[152.318693,-4.867661],[151.982796,-5.478063]]],"minLng":148.318937,"minLat":-6.317754,"maxLng":152.338743,"maxLat":-4.14879},{"country":"PNG","coordinates":[[[153.140038,-4.499983],[152.827292,-4.766427],[152.638673,-4.176127],[152.406026,-3.789743],[151.953237,-3.462062],[151.384279,-3.035422],[150.66205,-2.741486],[150.939965,-2.500002],[151.479984,-2.779985],[151.820015,-2.999972],[152.239989,-3.240009],[152.640017,-3.659983],[153.019994,-3.980015],[153.140038,-4.499983]]],"minLng":150.66205,"minLat":-4.766427,"maxLng":153.140038,"maxLat":-2.500002}],"height":1,"leaf":true,"bbox":[130.519558,-10.652476,153.140038,-0.369538]},{"children":[{"country":"NCL","coordinates":[[[165.77999,-21.080005],[166.599991,-21.700019],[167.120011,-22.159991],[166.740035,-22.399976],[166.189732,-22.129708],[165.474375,-21.679607],[164.829815,-21.14982],[164.167995,-20.444747],[164.029606,-20.105646],[164.459967,-20.120012],[165.020036,-20.459991],[165.460009,-20.800022],[165.77999,-21.080005]]],"minLng":164.029606,"minLat":-22.399976,"maxLng":167.120011,"maxLat":-20.105646},{"country":"NZL","coordinates":[[[173.020375,-40.919052],[173.247234,-41.331999],[173.958405,-40.926701],[174.247587,-41.349155],[174.248517,-41.770008],[173.876447,-42.233184],[173.22274,-42.970038],[172.711246,-43.372288],[173.080113,-43.853344],[172.308584,-43.865694],[171.452925,-44.242519],[171.185138,-44.897104],[170.616697,-45.908929],[169.831422,-46.355775],[169.332331,-46.641235],[168.411354,-46.619945],[167.763745,-46.290197],[166.676886,-46.219917],[166.509144,-45.852705],[167.046424,-45.110941],[168.303763,-44.123973],[168.949409,-43.935819],[169.667815,-43.555326],[170.52492,-43.031688],[171.12509,-42.512754],[171.569714,-41.767424],[171.948709,-41.514417],[172.097227,-40.956104],[172.79858,-40.493962],[173.020375,-40.919052]]],"minLng":166.509144,"minLat":-46.641235,"maxLng":174.248517,"maxLat":-40.493962},{"country":"NZL","coordinates":[[[174.612009,-36.156397],[175.336616,-37.209098],[175.357596,-36.526194],[175.808887,-36.798942],[175.95849,-37.555382],[176.763195,-37.881253],[177.438813,-37.961248],[178.010354,-37.579825],[178.517094,-37.695373],[178.274731,-38.582813],[177.97046,-39.166343],[177.206993,-39.145776],[176.939981,-39.449736],[177.032946,-39.879943],[176.885824,-40.065978],[176.508017,-40.604808],[176.01244,-41.289624],[175.239567,-41.688308],[175.067898,-41.425895],[174.650973,-41.281821],[175.22763,-40.459236],[174.900157,-39.908933],[173.824047,-39.508854],[173.852262,-39.146602],[174.574802,-38.797683],[174.743474,-38.027808],[174.697017,-37.381129],[174.292028,-36.711092],[174.319004,-36.534824],[173.840997,-36.121981],[173.054171,-35.237125],[172.636005,-34.529107],[173.007042,-34.450662],[173.551298,-35.006183],[174.32939,-35.265496],[174.612009,-36.156397]]],"minLng":172.636005,"minLat":-41.688308,"maxLng":178.517094,"maxLat":-34.450662},{"country":"FJI","coordinates":[[[178.3736,-17.33992],[178.71806,-17.62846],[178.55271,-18.15059],[177.93266,-18.28799],[177.38146,-18.16432],[177.28504,-17.72465],[177.67087,-17.38114],[178.12557,-17.50481],[178.3736,-17.33992]]],"minLng":177.28504,"minLat":-18.28799,"maxLng":178.71806,"maxLat":-17.33992},{"country":"FJI","coordinates":[[[179.364143,-16.801354],[178.725059,-17.012042],[178.596839,-16.63915],[179.096609,-16.433984],[179.413509,-16.379054],[180,-16.067133],[180,-16.555217],[179.364143,-16.801354]]],"minLng":178.596839,"minLat":-17.012042,"maxLng":180,"maxLat":-16.067133},{"country":"VUT","coordinates":[[[167.844877,-16.466333],[167.515181,-16.59785],[167.180008,-16.159995],[167.216801,-15.891846],[167.844877,-16.466333]]],"minLng":167.180008,"minLat":-16.59785,"maxLng":167.844877,"maxLat":-15.891846},{"country":"VUT","coordinates":[[[167.107712,-14.93392],[167.270028,-15.740021],[167.001207,-15.614602],[166.793158,-15.668811],[166.649859,-15.392704],[166.629137,-14.626497],[167.107712,-14.93392]]],"minLng":166.629137,"minLat":-15.740021,"maxLng":167.270028,"maxLat":-14.626497}],"height":1,"leaf":true,"bbox":[164.029606,-46.641235,180,-14.626497]},{"children":[{"country":"PNG","coordinates":[[[155.880026,-6.819997],[155.599991,-6.919991],[155.166994,-6.535931],[154.729192,-5.900828],[154.514114,-5.139118],[154.652504,-5.042431],[154.759991,-5.339984],[155.062918,-5.566792],[155.547746,-6.200655],[156.019965,-6.540014],[155.880026,-6.819997]]],"minLng":154.514114,"minLat":-6.919991,"maxLng":156.019965,"maxLat":-5.042431},{"country":"SLB","coordinates":[[[160.852229,-9.872937],[160.462588,-9.89521],[159.849447,-9.794027],[159.640003,-9.63998],[159.702945,-9.24295],[160.362956,-9.400304],[160.688518,-9.610162],[160.852229,-9.872937]]],"minLng":159.640003,"minLat":-9.89521,"maxLng":160.852229,"maxLat":-9.24295},{"country":"SLB","coordinates":[[[162.119025,-10.482719],[162.398646,-10.826367],[161.700032,-10.820011],[161.319797,-10.204751],[161.917383,-10.446701],[162.119025,-10.482719]]],"minLng":161.319797,"minLat":-10.826367,"maxLng":162.398646,"maxLat":-10.204751},{"country":"SLB","coordinates":[[[161.679982,-9.599982],[161.529397,-9.784312],[160.788253,-8.917543],[160.579997,-8.320009],[160.920028,-8.320009],[161.280006,-9.120011],[161.679982,-9.599982]]],"minLng":160.579997,"minLat":-9.784312,"maxLng":161.679982,"maxLat":-8.320009},{"country":"SLB","coordinates":[[[159.875027,-8.33732],[159.917402,-8.53829],[159.133677,-8.114181],[158.586114,-7.754824],[158.21115,-7.421872],[158.359978,-7.320018],[158.820001,-7.560003],[159.640003,-8.020027],[159.875027,-8.33732]]],"minLng":158.21115,"minLat":-8.53829,"maxLng":159.917402,"maxLat":-7.320018},{"country":"SLB","coordinates":[[[157.538426,-7.34782],[157.33942,-7.404767],[156.90203,-7.176874],[156.491358,-6.765943],[156.542828,-6.599338],[157.14,-7.021638],[157.538426,-7.34782]]],"minLng":156.491358,"minLat":-7.404767,"maxLng":157.538426,"maxLat":-6.599338}],"height":1,"leaf":true,"bbox":[154.514114,-10.826367,162.398646,-5.042431]}],"height":2,"bbox":[123.459989,-46.641235,180,2.174596]}],"height":3,"bbox":[-180,-85.609038,180,6.928053]},{"children":[{"children":[{"children":[{"country":"CAN","coordinates":[[[-90.5471,69.49766],[-90.55151,68.47499],[-89.21515,69.25873],[-88.01966,68.61508],[-88.31749,67.87338],[-87.35017,67.19872],[-86.30607,67.92146],[-85.57664,68.78456],[-85.52197,69.88211],[-84.10081,69.80539],[-82.62258,69.65826],[-81.28043,69.16202],[-81.2202,68.66567],[-81.96436,68.13253],[-81.25928,67.59716],[-81.38653,67.11078],[-83.34456,66.41154],[-84.73542,66.2573],[-85.76943,66.55833],[-86.0676,66.05625],[-87.03143,65.21297],[-87.32324,64.77563],[-88.48296,64.09897],[-89.91444,64.03273],[-90.70398,63.61017],[-90.77004,62.96021],[-91.93342,62.83508],[-93.15698,62.02469],[-94.24153,60.89865],[-94.62931,60.11021],[-94.6846,58.94882],[-93.21502,58.78212],[-92.76462,57.84571],[-92.29703,57.08709],[-90.89769,57.28468],[-89.03953,56.85172],[-88.03978,56.47162],[-87.32421,55.99914],[-86.07121,55.72383],[-85.01181,55.3026],[-83.36055,55.24489],[-82.27285,55.14832],[-82.4362,54.28227],[-82.12502,53.27703],[-81.40075,52.15788],[-79.91289,51.20842],[-79.14301,51.53393],[-78.60191,52.56208],[-79.12421,54.14145],[-79.82958,54.66772],[-78.22874,55.13645],[-77.0956,55.83741],[-76.54137,56.53423],[-76.62319,57.20263],[-77.30226,58.05209],[-78.51688,58.80458],[-77.33676,59.85261],[-77.77272,60.75788],[-78.10687,62.31964],[-77.41067,62.55053],[-75.69621,62.2784],[-74.6682,62.18111],[-73.83988,62.4438],[-72.90853,62.10507],[-71.67708,61.52535],[-71.37369,61.13717],[-69.59042,61.06141],[-69.62033,60.22125],[-69.2879,58.95736],[-68.37455,58.80106],[-67.64976,58.21206],[-66.20178,58.76731],[-65.24517,59.87071],[-64.58352,60.33558],[-63.80475,59.4426],[-62.50236,58.16708],[-61.39655,56.96745],[-61.79866,56.33945],[-60.46853,55.77548],[-59.56962,55.20407],[-57.97508,54.94549],[-57.3332,54.6265],[-56.93689,53.78032],[-56.15811,53.64749],[-55.75632,53.27036],[-55.68338,52.14664],[-56.40916,51.7707],[-57.12691,51.41972],[-58.77482,51.0643],[-60.03309,50.24277],[-61.72366,50.08046],[-63.86251,50.29099],[-65.36331,50.2982],[-66.39905,50.22897],[-67.23631,49.51156],[-68.51114,49.06836],[-69.95362,47.74488],[-71.10458,46.82171],[-70.25522,46.98606],[-68.65,48.3],[-66.55243,49.1331],[-65.05626,49.23278],[-64.17099,48.74248],[-65.11545,48.07085],[-64.79854,46.99297],[-64.47219,46.23849],[-63.17329,45.73902],[-61.52072,45.88377],[-60.51815,47.00793],[-60.4486,46.28264],[-59.80287,45.9204],[-61.03988,45.26525],[-63.25471,44.67014],[-64.24656,44.26553],[-65.36406,43.54523],[-66.1234,43.61867],[-66.16173,44.46512],[-64.42549,45.29204],[-66.02605,45.25931],[-67.13741,45.13753],[-67.79134,45.70281],[-67.79046,47.06636],[-68.23444,47.35486],[-68.905,47.185],[-69.237216,47.447781],[-69.99997,46.69307],[-70.305,45.915],[-70.66,45.46],[-71.08482,45.30524],[-71.405,45.255],[-71.50506,45.0082],[-73.34783,45.00738],[-74.867,45.00048],[-75.31821,44.81645],[-76.375,44.09631],[-76.5,44.018459],[-76.820034,43.628784],[-77.737885,43.629056],[-78.72028,43.625089],[-79.171674,43.466339],[-79.01,43.27],[-78.92,42.965],[-78.939362,42.863611],[-80.247448,42.3662],[-81.277747,42.209026],[-82.439278,41.675105],[-82.690089,41.675105],[-83.02981,41.832796],[-83.142,41.975681],[-83.12,42.08],[-82.9,42.43],[-82.43,42.98],[-82.137642,43.571088],[-82.337763,44.44],[-82.550925,45.347517],[-83.592851,45.816894],[-83.469551,45.994686],[-83.616131,46.116927],[-83.890765,46.116927],[-84.091851,46.275419],[-84.14212,46.512226],[-84.3367,46.40877],[-84.6049,46.4396],[-84.543749,46.538684],[-84.779238,46.637102],[-84.87608,46.900083],[-85.652363,47.220219],[-86.461991,47.553338],[-87.439793,47.94],[-88.378114,48.302918],[-89.272917,48.019808],[-89.6,48.01],[-90.83,48.27],[-91.64,48.14],[-92.61,48.45],[-93.63087,48.60926],[-94.32914,48.67074],[-94.64,48.84],[-94.81758,49.38905],[-95.15609,49.38425],[-95.15907,49],[-97.22872,49.0007],[-100.65,49],[-104.04826,48.99986],[-107.05,49],[-110.05,49],[-113,49],[-116.04818,49],[-117.03121,49],[-120,49],[-122.84,49],[-122.97421,49.002538],[-124.91024,49.98456],[-125.62461,50.41656],[-127.43561,50.83061],[-127.99276,51.71583],[-127.85032,52.32961],[-129.12979,52.75538],[-129.30523,53.56159],[-130.51497,54.28757],[-130.53611,54.80278],[-129.98,55.285],[-130.00778,55.91583],[-131.70781,56.55212],[-132.73042,57.69289],[-133.35556,58.41028],[-134.27111,58.86111],[-134.945,59.27056],[-135.47583,59.78778],[-136.47972,59.46389],[-137.4525,58.905],[-138.34089,59.56211],[-139.039,60],[-140.013,60.27682],[-140.99778,60.30639],[-140.9925,66.00003],[-140.986,69.712],[-139.12052,69.47102],[-137.54636,68.99002],[-136.50358,68.89804],[-135.62576,69.31512],[-134.41464,69.62743],[-132.92925,69.50534],[-131.43136,69.94451],[-129.79471,70.19369],[-129.10773,69.77927],[-128.36156,70.01286],[-128.13817,70.48384],[-127.44712,70.37721],[-125.75632,69.48058],[-124.42483,70.1584],[-124.28968,69.39969],[-123.06108,69.56372],[-122.6835,69.85553],[-121.47226,69.79778],[-119.94288,69.37786],[-117.60268,69.01128],[-116.22643,68.84151],[-115.2469,68.90591],[-113.89794,68.3989],[-115.30489,67.90261],[-113.49727,67.68815],[-110.798,67.80612],[-109.94619,67.98104],[-108.8802,67.38144],[-107.79239,67.88736],[-108.81299,68.31164],[-108.16721,68.65392],[-106.95,68.7],[-106.15,68.8],[-105.34282,68.56122],[-104.33791,68.018],[-103.22115,68.09775],[-101.45433,67.64689],[-99.90195,67.80566],[-98.4432,67.78165],[-98.5586,68.40394],[-97.66948,68.57864],[-96.11991,68.23939],[-96.12588,67.29338],[-95.48943,68.0907],[-94.685,68.06383],[-94.23282,69.06903],[-95.30408,69.68571],[-96.47131,70.08976],[-96.39115,71.19482],[-95.2088,71.92053],[-93.88997,71.76015],[-92.87818,71.31869],[-91.51964,70.19129],[-92.40692,69.69997],[-90.5471,69.49766]]],"minLng":-140.99778,"minLat":41.675105,"maxLng":-55.68338,"maxLat":71.92053},{"country":"CAN","coordinates":[[[-123.510002,48.510011],[-124.012891,48.370846],[-125.655013,48.825005],[-125.954994,49.179996],[-126.850004,49.53],[-127.029993,49.814996],[-128.059336,49.994959],[-128.444584,50.539138],[-128.358414,50.770648],[-127.308581,50.552574],[-126.695001,50.400903],[-125.755007,50.295018],[-125.415002,49.950001],[-124.920768,49.475275],[-123.922509,49.062484],[-123.510002,48.510011]]],"minLng":-128.444584,"minLat":48.370846,"maxLng":-123.510002,"maxLat":50.770648},{"country":"CAN","coordinates":[[[-132.710008,54.040009],[-132.710009,54.040009],[-132.710008,54.040009],[-132.710008,54.040009],[-131.74999,54.120004],[-132.04948,52.984621],[-131.179043,52.180433],[-131.57783,52.182371],[-132.180428,52.639707],[-132.549992,53.100015],[-133.054611,53.411469],[-133.239664,53.85108],[-133.180004,54.169975],[-132.710008,54.040009]]],"minLng":-133.239664,"minLat":52.180433,"maxLng":-131.179043,"maxLat":54.169975},{"country":"CAN","coordinates":[[[-86.562179,73.157447],[-85.774371,72.534126],[-84.850112,73.340278],[-82.31559,73.750951],[-80.600088,72.716544],[-80.748942,72.061907],[-78.770639,72.352173],[-77.824624,72.749617],[-75.605845,72.243678],[-74.228616,71.767144],[-74.099141,71.33084],[-72.242226,71.556925],[-71.200015,70.920013],[-68.786054,70.525024],[-67.91497,70.121948],[-66.969033,69.186087],[-68.805123,68.720198],[-66.449866,68.067163],[-64.862314,67.847539],[-63.424934,66.928473],[-61.851981,66.862121],[-62.163177,66.160251],[-63.918444,64.998669],[-65.14886,65.426033],[-66.721219,66.388041],[-68.015016,66.262726],[-68.141287,65.689789],[-67.089646,65.108455],[-65.73208,64.648406],[-65.320168,64.382737],[-64.669406,63.392927],[-65.013804,62.674185],[-66.275045,62.945099],[-68.783186,63.74567],[-67.369681,62.883966],[-66.328297,62.280075],[-66.165568,61.930897],[-68.877367,62.330149],[-71.023437,62.910708],[-72.235379,63.397836],[-71.886278,63.679989],[-73.378306,64.193963],[-74.834419,64.679076],[-74.818503,64.389093],[-77.70998,64.229542],[-78.555949,64.572906],[-77.897281,65.309192],[-76.018274,65.326969],[-73.959795,65.454765],[-74.293883,65.811771],[-73.944912,66.310578],[-72.651167,67.284576],[-72.92606,67.726926],[-73.311618,68.069437],[-74.843307,68.554627],[-76.869101,68.894736],[-76.228649,69.147769],[-77.28737,69.76954],[-78.168634,69.826488],[-78.957242,70.16688],[-79.492455,69.871808],[-81.305471,69.743185],[-84.944706,69.966634],[-87.060003,70.260001],[-88.681713,70.410741],[-89.51342,70.762038],[-88.467721,71.218186],[-89.888151,71.222552],[-90.20516,72.235074],[-89.436577,73.129464],[-88.408242,73.537889],[-85.826151,73.803816],[-86.562179,73.157447]]],"minLng":-90.20516,"minLat":61.930897,"maxLng":-61.851981,"maxLat":73.803816},{"country":"CAN","coordinates":[[[-114.16717,73.12145],[-114.66634,72.65277],[-112.44102,72.9554],[-111.05039,72.4504],[-109.92035,72.96113],[-109.00654,72.63335],[-108.18835,71.65089],[-107.68599,72.06548],[-108.39639,73.08953],[-107.51645,73.23598],[-106.52259,73.07601],[-105.40246,72.67259],[-104.77484,71.6984],[-104.46476,70.99297],[-102.78537,70.49776],[-100.98078,70.02432],[-101.08929,69.58447],[-102.73116,69.50402],[-102.09329,69.11962],[-102.43024,68.75282],[-104.24,68.91],[-105.96,69.18],[-107.12254,69.11922],[-109,68.78],[-111.534149,68.630059],[-113.3132,68.53554],[-113.85496,69.00744],[-115.22,69.28],[-116.10794,69.16821],[-117.34,69.96],[-116.67473,70.06655],[-115.13112,70.2373],[-113.72141,70.19237],[-112.4161,70.36638],[-114.35,70.6],[-116.48684,70.52045],[-117.9048,70.54056],[-118.43238,70.9092],[-116.11311,71.30918],[-117.65568,71.2952],[-119.40199,71.55859],[-118.56267,72.30785],[-117.86642,72.70594],[-115.18909,73.31459],[-114.16717,73.12145]]],"minLng":-119.40199,"minLat":68.53554,"maxLng":-100.98078,"maxLat":73.31459},{"country":"USA","coordinates":[[[-153.006314,57.115842],[-154.00509,56.734677],[-154.516403,56.992749],[-154.670993,57.461196],[-153.76278,57.816575],[-153.228729,57.968968],[-152.564791,57.901427],[-152.141147,57.591059],[-153.006314,57.115842]]],"minLng":-154.670993,"minLat":56.734677,"maxLng":-152.141147,"maxLat":57.968968},{"country":"USA","coordinates":[[[-155.06779,71.147776],[-154.344165,70.696409],[-153.900006,70.889989],[-152.210006,70.829992],[-152.270002,70.600006],[-150.739992,70.430017],[-149.720003,70.53001],[-147.613362,70.214035],[-145.68999,70.12001],[-144.920011,69.989992],[-143.589446,70.152514],[-142.07251,69.851938],[-140.985988,69.711998],[-140.985988,69.711998],[-140.992499,66.000029],[-140.99777,60.306397],[-140.012998,60.276838],[-139.039,60.000007],[-138.34089,59.56211],[-137.4525,58.905],[-136.47972,59.46389],[-135.47583,59.78778],[-134.945,59.27056],[-134.27111,58.86111],[-133.355549,58.410285],[-132.73042,57.69289],[-131.70781,56.55212],[-130.00778,55.91583],[-129.979994,55.284998],[-130.53611,54.802753],[-131.085818,55.178906],[-131.967211,55.497776],[-132.250011,56.369996],[-133.539181,57.178887],[-134.078063,58.123068],[-135.038211,58.187715],[-136.628062,58.212209],[-137.800006,58.499995],[-139.867787,59.537762],[-140.825274,59.727517],[-142.574444,60.084447],[-143.958881,59.99918],[-145.925557,60.45861],[-147.114374,60.884656],[-148.224306,60.672989],[-148.018066,59.978329],[-148.570823,59.914173],[-149.727858,59.705658],[-150.608243,59.368211],[-151.716393,59.155821],[-151.859433,59.744984],[-151.409719,60.725803],[-150.346941,61.033588],[-150.621111,61.284425],[-151.895839,60.727198],[-152.57833,60.061657],[-154.019172,59.350279],[-153.287511,58.864728],[-154.232492,58.146374],[-155.307491,57.727795],[-156.308335,57.422774],[-156.556097,56.979985],[-158.117217,56.463608],[-158.433321,55.994154],[-159.603327,55.566686],[-160.28972,55.643581],[-161.223048,55.364735],[-162.237766,55.024187],[-163.069447,54.689737],[-164.785569,54.404173],[-164.942226,54.572225],[-163.84834,55.039431],[-162.870001,55.348043],[-161.804175,55.894986],[-160.563605,56.008055],[-160.07056,56.418055],[-158.684443,57.016675],[-158.461097,57.216921],[-157.72277,57.570001],[-157.550274,58.328326],[-157.041675,58.918885],[-158.194731,58.615802],[-158.517218,58.787781],[-159.058606,58.424186],[-159.711667,58.93139],[-159.981289,58.572549],[-160.355271,59.071123],[-161.355003,58.670838],[-161.968894,58.671665],[-162.054987,59.266925],[-161.874171,59.633621],[-162.518059,59.989724],[-163.818341,59.798056],[-164.662218,60.267484],[-165.346388,60.507496],[-165.350832,61.073895],[-166.121379,61.500019],[-165.734452,62.074997],[-164.919179,62.633076],[-164.562508,63.146378],[-163.753332,63.219449],[-163.067224,63.059459],[-162.260555,63.541936],[-161.53445,63.455817],[-160.772507,63.766108],[-160.958335,64.222799],[-161.518068,64.402788],[-160.777778,64.788604],[-161.391926,64.777235],[-162.45305,64.559445],[-162.757786,64.338605],[-163.546394,64.55916],[-164.96083,64.446945],[-166.425288,64.686672],[-166.845004,65.088896],[-168.11056,65.669997],[-166.705271,66.088318],[-164.47471,66.57666],[-163.652512,66.57666],[-163.788602,66.077207],[-161.677774,66.11612],[-162.489715,66.735565],[-163.719717,67.116395],[-164.430991,67.616338],[-165.390287,68.042772],[-166.764441,68.358877],[-166.204707,68.883031],[-164.430811,68.915535],[-163.168614,69.371115],[-162.930566,69.858062],[-161.908897,70.33333],[-160.934797,70.44769],[-159.039176,70.891642],[-158.119723,70.824721],[-156.580825,71.357764],[-155.06779,71.147776]]],"minLng":-168.11056,"minLat":54.404173,"maxLng":-129.979994,"maxLat":71.357764}],"height":1,"leaf":true,"bbox":[-168.11056,41.675105,-55.68338,73.803816]},{"children":[{"country":"CAN","coordinates":[[[-61.806305,49.10506],[-62.29318,49.08717],[-63.58926,49.40069],[-64.51912,49.87304],[-64.17322,49.95718],[-62.85829,49.70641],[-61.835585,49.28855],[-61.806305,49.10506]]],"minLng":-64.51912,"minLat":49.08717,"maxLng":-61.806305,"maxLat":49.95718},{"country":"CAN","coordinates":[[[-63.6645,46.55001],[-62.9393,46.41587],[-62.01208,46.44314],[-62.50391,46.03339],[-62.87433,45.96818],[-64.1428,46.39265],[-64.39261,46.72747],[-64.01486,47.03601],[-63.6645,46.55001]]],"minLng":-64.39261,"minLat":45.96818,"maxLng":-62.01208,"maxLat":47.03601},{"country":"CAN","coordinates":[[[-56.134036,50.68701],[-56.795882,49.812309],[-56.143105,50.150117],[-55.471492,49.935815],[-55.822401,49.587129],[-54.935143,49.313011],[-54.473775,49.556691],[-53.476549,49.249139],[-53.786014,48.516781],[-53.086134,48.687804],[-52.958648,48.157164],[-52.648099,47.535548],[-53.069158,46.655499],[-53.521456,46.618292],[-54.178936,46.807066],[-53.961869,47.625207],[-54.240482,47.752279],[-55.400773,46.884994],[-55.997481,46.91972],[-55.291219,47.389562],[-56.250799,47.632545],[-57.325229,47.572807],[-59.266015,47.603348],[-59.419494,47.899454],[-58.796586,48.251525],[-59.231625,48.523188],[-58.391805,49.125581],[-57.35869,50.718274],[-56.73865,51.287438],[-55.870977,51.632094],[-55.406974,51.588273],[-55.600218,51.317075],[-56.134036,50.68701]]],"minLng":-59.419494,"minLat":46.618292,"maxLng":-52.648099,"maxLat":51.632094}],"height":1,"leaf":true,"bbox":[-64.51912,45.96818,-52.648099,51.632094]},{"children":[{"country":"CAN","coordinates":[[[-81.89825,62.7108],[-83.06857,62.15922],[-83.77462,62.18231],[-83.99367,62.4528],[-83.25048,62.91409],[-81.87699,62.90458],[-81.89825,62.7108]]],"minLng":-83.99367,"minLat":62.15922,"maxLng":-81.87699,"maxLat":62.91409},{"country":"CAN","coordinates":[[[-79.26582,62.158675],[-79.65752,61.63308],[-80.09956,61.7181],[-80.36215,62.01649],[-80.315395,62.085565],[-79.92939,62.3856],[-79.52002,62.36371],[-79.26582,62.158675]]],"minLng":-80.36215,"minLat":61.63308,"maxLng":-79.26582,"maxLat":62.3856},{"country":"CAN","coordinates":[[[-75.86588,67.14886],[-76.98687,67.09873],[-77.2364,67.58809],[-76.81166,68.14856],[-75.89521,68.28721],[-75.1145,68.01036],[-75.10333,67.58202],[-75.21597,67.44425],[-75.86588,67.14886]]],"minLng":-77.2364,"minLat":67.09873,"maxLng":-75.10333,"maxLat":68.28721},{"country":"RUS","coordinates":[[[-175.01425,66.58435],[-174.33983,66.33556],[-174.57182,67.06219],[-171.85731,66.91308],[-169.89958,65.97724],[-170.89107,65.54139],[-172.53025,65.43791],[-172.555,64.46079],[-172.95533,64.25269],[-173.89184,64.2826],[-174.65392,64.63125],[-175.98353,64.92288],[-176.20716,65.35667],[-177.22266,65.52024],[-178.35993,65.39052],[-178.90332,65.74044],[-178.68611,66.11211],[-179.88377,65.87456],[-179.43268,65.40411],[-180,64.979709],[-180,68.963636],[-177.55,68.2],[-174.92825,67.20589],[-175.01425,66.58435]]],"minLng":-180,"minLat":64.25269,"maxLng":-169.89958,"maxLat":68.963636},{"country":"RUS","coordinates":[[[-178.69378,70.89302],[-180,70.832199],[-180,71.515714],[-179.871875,71.55762],[-179.02433,71.55553],[-177.577945,71.26948],[-177.663575,71.13277],[-178.69378,70.89302]]],"minLng":-180,"minLat":70.832199,"maxLng":-177.577945,"maxLat":71.55762},{"country":"USA","coordinates":[[[-165.579164,59.909987],[-166.19277,59.754441],[-166.848337,59.941406],[-167.455277,60.213069],[-166.467792,60.38417],[-165.67443,60.293607],[-165.579164,59.909987]]],"minLng":-167.455277,"minLat":59.754441,"maxLng":-165.579164,"maxLat":60.38417},{"country":"USA","coordinates":[[[-171.731657,63.782515],[-171.114434,63.592191],[-170.491112,63.694975],[-169.682505,63.431116],[-168.689439,63.297506],[-168.771941,63.188598],[-169.52944,62.976931],[-170.290556,63.194438],[-170.671386,63.375822],[-171.553063,63.317789],[-171.791111,63.405846],[-171.731657,63.782515]]],"minLng":-171.791111,"minLat":62.976931,"maxLng":-168.689439,"maxLat":63.782515}],"height":1,"leaf":true,"bbox":[-180,59.754441,-75.10333,71.55762]},{"children":[{"country":"CAN","coordinates":[[[-85.161308,65.657285],[-84.975764,65.217518],[-84.464012,65.371772],[-83.882626,65.109618],[-82.787577,64.766693],[-81.642014,64.455136],[-81.55344,63.979609],[-80.817361,64.057486],[-80.103451,63.725981],[-80.99102,63.411246],[-82.547178,63.651722],[-83.108798,64.101876],[-84.100417,63.569712],[-85.523405,63.052379],[-85.866769,63.637253],[-87.221983,63.541238],[-86.35276,64.035833],[-86.224886,64.822917],[-85.883848,65.738778],[-85.161308,65.657285]]],"minLng":-87.221983,"minLat":63.052379,"maxLng":-80.103451,"maxLat":65.738778},{"country":"CAN","coordinates":[[[-95.647681,69.10769],[-96.269521,68.75704],[-97.617401,69.06003],[-98.431801,68.9507],[-99.797401,69.40003],[-98.917401,69.71003],[-98.218261,70.14354],[-97.157401,69.86003],[-96.557401,69.68003],[-96.257401,69.49003],[-95.647681,69.10769]]],"minLng":-99.797401,"minLat":68.75704,"maxLng":-95.647681,"maxLat":70.14354},{"country":"CAN","coordinates":[[[-93.196296,72.771992],[-94.269047,72.024596],[-95.409856,72.061881],[-96.033745,72.940277],[-96.018268,73.43743],[-95.495793,73.862417],[-94.503658,74.134907],[-92.420012,74.100025],[-90.509793,73.856732],[-92.003965,72.966244],[-93.196296,72.771992]]],"minLng":-96.033745,"minLat":72.024596,"maxLng":-90.509793,"maxLat":74.134907},{"country":"CAN","coordinates":[[[-76.34,73.102685],[-76.251404,72.826385],[-77.314438,72.855545],[-78.39167,72.876656],[-79.486252,72.742203],[-79.775833,72.802902],[-80.876099,73.333183],[-80.833885,73.693184],[-80.353058,73.75972],[-78.064438,73.651932],[-76.34,73.102685]]],"minLng":-80.876099,"minLat":72.742203,"maxLng":-76.251404,"maxLat":73.75972}],"height":1,"leaf":true,"bbox":[-99.797401,63.052379,-76.251404,74.134907]}],"height":2,"bbox":[-180,41.675105,-52.648099,74.134907]},{"children":[{"children":[{"country":"SVN","coordinates":[[[13.806475,46.509306],[14.632472,46.431817],[15.137092,46.658703],[16.011664,46.683611],[16.202298,46.852386],[16.370505,46.841327],[16.564808,46.503751],[15.768733,46.238108],[15.67153,45.834154],[15.323954,45.731783],[15.327675,45.452316],[14.935244,45.471695],[14.595109,45.634941],[14.411968,45.466166],[13.71506,45.500324],[13.93763,45.591016],[13.69811,46.016778],[13.806475,46.509306]]],"minLng":13.69811,"minLat":45.452316,"maxLng":16.564808,"maxLat":46.852386},{"country":"CHE","coordinates":[[[9.594226,47.525058],[9.632932,47.347601],[9.47997,47.10281],[9.932448,46.920728],[10.442701,46.893546],[10.363378,46.483571],[9.922837,46.314899],[9.182882,46.440215],[8.966306,46.036932],[8.489952,46.005151],[8.31663,46.163642],[7.755992,45.82449],[7.273851,45.776948],[6.843593,45.991147],[6.5001,46.429673],[6.022609,46.27299],[6.037389,46.725779],[6.768714,47.287708],[6.736571,47.541801],[7.192202,47.449766],[7.466759,47.620582],[8.317301,47.61358],[8.522612,47.830828],[9.594226,47.525058]]],"minLng":6.022609,"minLat":45.776948,"maxLng":10.442701,"maxLat":47.830828},{"country":"AUT","coordinates":[[[16.979667,48.123497],[16.903754,47.714866],[16.340584,47.712902],[16.534268,47.496171],[16.202298,46.852386],[16.011664,46.683611],[15.137092,46.658703],[14.632472,46.431817],[13.806475,46.509306],[12.376485,46.767559],[12.153088,47.115393],[11.164828,46.941579],[11.048556,46.751359],[10.442701,46.893546],[9.932448,46.920728],[9.47997,47.10281],[9.632932,47.347601],[9.594226,47.525058],[9.896068,47.580197],[10.402084,47.302488],[10.544504,47.566399],[11.426414,47.523766],[12.141357,47.703083],[12.62076,47.672388],[12.932627,47.467646],[13.025851,47.637584],[12.884103,48.289146],[13.243357,48.416115],[13.595946,48.877172],[14.338898,48.555305],[14.901447,48.964402],[15.253416,49.039074],[16.029647,48.733899],[16.499283,48.785808],[16.960288,48.596982],[16.879983,48.470013],[16.979667,48.123497]]],"minLng":9.47997,"minLat":46.431817,"maxLng":16.979667,"maxLat":49.039074}],"height":1,"leaf":true,"bbox":[6.022609,45.452316,16.979667,49.039074]},{"children":[{"country":"CZE","coordinates":[[[16.960288,48.596982],[16.499283,48.785808],[16.029647,48.733899],[15.253416,49.039074],[14.901447,48.964402],[14.338898,48.555305],[13.595946,48.877172],[13.031329,49.307068],[12.521024,49.547415],[12.415191,49.969121],[12.240111,50.266338],[12.966837,50.484076],[13.338132,50.733234],[14.056228,50.926918],[14.307013,51.117268],[14.570718,51.002339],[15.016996,51.106674],[15.490972,50.78473],[16.238627,50.697733],[16.176253,50.422607],[16.719476,50.215747],[16.868769,50.473974],[17.554567,50.362146],[17.649445,50.049038],[18.392914,49.988629],[18.853144,49.49623],[18.554971,49.495015],[18.399994,49.315001],[18.170498,49.271515],[18.104973,49.043983],[17.913512,48.996493],[17.886485,48.903475],[17.545007,48.800019],[17.101985,48.816969],[16.960288,48.596982]]],"minLng":12.240111,"minLat":48.555305,"maxLng":18.853144,"maxLat":51.117268},{"country":"POL","coordinates":[[[15.016996,51.106674],[14.607098,51.745188],[14.685026,52.089947],[14.4376,52.62485],[14.074521,52.981263],[14.353315,53.248171],[14.119686,53.757029],[14.8029,54.050706],[16.363477,54.513159],[17.622832,54.851536],[18.620859,54.682606],[18.696255,54.438719],[19.66064,54.426084],[20.892245,54.312525],[22.731099,54.327537],[23.243987,54.220567],[23.484128,53.912498],[23.527536,53.470122],[23.804935,53.089731],[23.799199,52.691099],[23.199494,52.486977],[23.508002,52.023647],[23.527071,51.578454],[24.029986,50.705407],[23.922757,50.424881],[23.426508,50.308506],[22.51845,49.476774],[22.776419,49.027395],[22.558138,49.085738],[21.607808,49.470107],[20.887955,49.328772],[20.415839,49.431453],[19.825023,49.217125],[19.320713,49.571574],[18.909575,49.435846],[18.853144,49.49623],[18.392914,49.988629],[17.649445,50.049038],[17.554567,50.362146],[16.868769,50.473974],[16.719476,50.215747],[16.176253,50.422607],[16.238627,50.697733],[15.490972,50.78473],[15.016996,51.106674]]],"minLng":14.074521,"minLat":49.027395,"maxLng":24.029986,"maxLat":54.851536},{"country":"SVK","coordinates":[[[18.853144,49.49623],[18.909575,49.435846],[19.320713,49.571574],[19.825023,49.217125],[20.415839,49.431453],[20.887955,49.328772],[21.607808,49.470107],[22.558138,49.085738],[22.280842,48.825392],[22.085608,48.422264],[21.872236,48.319971],[20.801294,48.623854],[20.473562,48.56285],[20.239054,48.327567],[19.769471,48.202691],[19.661364,48.266615],[19.174365,48.111379],[18.777025,48.081768],[18.696513,47.880954],[17.857133,47.758429],[17.488473,47.867466],[16.979667,48.123497],[16.879983,48.470013],[16.960288,48.596982],[17.101985,48.816969],[17.545007,48.800019],[17.886485,48.903475],[17.913512,48.996493],[18.104973,49.043983],[18.170498,49.271515],[18.399994,49.315001],[18.554971,49.495015],[18.853144,49.49623]]],"minLng":16.879983,"minLat":47.758429,"maxLng":22.558138,"maxLat":49.571574},{"country":"RUS","coordinates":[[[22.731099,54.327537],[20.892245,54.312525],[19.66064,54.426084],[19.888481,54.86616],[21.268449,55.190482],[22.315724,55.015299],[22.757764,54.856574],[22.651052,54.582741],[22.731099,54.327537]]],"minLng":19.66064,"minLat":54.312525,"maxLng":22.757764,"maxLat":55.190482}],"height":1,"leaf":true,"bbox":[12.240111,47.758429,24.029986,55.190482]},{"children":[{"country":"GBR","coordinates":[[[-3.005005,58.635],[-4.073828,57.553025],[-3.055002,57.690019],[-1.959281,57.6848],[-2.219988,56.870017],[-3.119003,55.973793],[-2.085009,55.909998],[-2.005676,55.804903],[-1.114991,54.624986],[-0.430485,54.464376],[0.184981,53.325014],[0.469977,52.929999],[1.681531,52.73952],[1.559988,52.099998],[1.050562,51.806761],[1.449865,51.289428],[0.550334,50.765739],[-0.787517,50.774989],[-2.489998,50.500019],[-2.956274,50.69688],[-3.617448,50.228356],[-4.542508,50.341837],[-5.245023,49.96],[-5.776567,50.159678],[-4.30999,51.210001],[-3.414851,51.426009],[-3.422719,51.426848],[-4.984367,51.593466],[-5.267296,51.9914],[-4.222347,52.301356],[-4.770013,52.840005],[-4.579999,53.495004],[-3.093831,53.404547],[-3.09208,53.404441],[-2.945009,53.985],[-3.614701,54.600937],[-3.630005,54.615013],[-4.844169,54.790971],[-5.082527,55.061601],[-4.719112,55.508473],[-5.047981,55.783986],[-5.586398,55.311146],[-5.644999,56.275015],[-6.149981,56.78501],[-5.786825,57.818848],[-5.009999,58.630013],[-4.211495,58.550845],[-3.005005,58.635]]],"minLng":-6.149981,"minLat":49.96,"maxLng":1.681531,"maxLat":58.635},{"country":"IRL","coordinates":[[[-6.197885,53.867565],[-6.032985,53.153164],[-6.788857,52.260118],[-8.561617,51.669301],[-9.977086,51.820455],[-9.166283,52.864629],[-9.688525,53.881363],[-8.327987,54.664519],[-7.572168,55.131622],[-7.366031,54.595841],[-7.572168,54.059956],[-6.95373,54.073702],[-6.197885,53.867565]]],"minLng":-9.977086,"minLat":51.669301,"maxLng":-6.032985,"maxLat":55.131622},{"country":"GBR","coordinates":[[[-5.661949,54.554603],[-6.197885,53.867565],[-6.95373,54.073702],[-7.572168,54.059956],[-7.366031,54.595841],[-7.572168,55.131622],[-6.733847,55.17286],[-5.661949,54.554603]]],"minLng":-7.572168,"minLat":53.867565,"maxLng":-5.661949,"maxLat":55.17286}],"height":1,"leaf":true,"bbox":[-9.977086,49.96,1.681531,58.635]},{"children":[{"country":"SWE","coordinates":[[[22.183173,65.723741],[21.213517,65.026005],[21.369631,64.413588],[19.778876,63.609554],[17.847779,62.7494],[17.119555,61.341166],[17.831346,60.636583],[18.787722,60.081914],[17.869225,58.953766],[16.829185,58.719827],[16.44771,57.041118],[15.879786,56.104302],[14.666681,56.200885],[14.100721,55.407781],[12.942911,55.361737],[12.625101,56.30708],[11.787942,57.441817],[11.027369,58.856149],[11.468272,59.432393],[12.300366,60.117933],[12.631147,61.293572],[11.992064,61.800362],[11.930569,63.128318],[12.579935,64.066219],[13.571916,64.049114],[13.919905,64.445421],[13.55569,64.787028],[15.108411,66.193867],[16.108712,67.302456],[16.768879,68.013937],[17.729182,68.010552],[17.993868,68.567391],[19.87856,68.407194],[20.025269,69.065139],[20.645593,69.106247],[21.978535,68.616846],[23.539473,67.936009],[23.56588,66.396051],[23.903379,66.006927],[22.183173,65.723741]]],"minLng":11.027369,"minLat":55.361737,"maxLng":23.903379,"maxLat":69.106247},{"country":"SWE","coordinates":[[[17.061767,57.385783],[17.210083,57.326521],[16.430053,56.179196],[16.364135,56.556455],[17.061767,57.385783]]],"minLng":16.364135,"minLat":56.179196,"maxLng":17.210083,"maxLat":57.385783},{"country":"EST","coordinates":[[[24.312863,57.793424],[24.428928,58.383413],[24.061198,58.257375],[23.42656,58.612753],[23.339795,59.18724],[24.604214,59.465854],[25.864189,59.61109],[26.949136,59.445803],[27.981114,59.475388],[28.131699,59.300825],[27.420166,58.724581],[27.716686,57.791899],[27.288185,57.474528],[26.463532,57.476389],[25.60281,57.847529],[25.164594,57.970157],[24.312863,57.793424]]],"minLng":23.339795,"minLat":57.474528,"maxLng":28.131699,"maxLat":59.61109},{"country":"NOR","coordinates":[[[28.165547,71.185474],[31.293418,70.453788],[30.005435,70.186259],[31.101079,69.55808],[29.399581,69.156916],[28.59193,69.064777],[29.015573,69.766491],[27.732292,70.164193],[26.179622,69.825299],[25.689213,69.092114],[24.735679,68.649557],[23.66205,68.891247],[22.356238,68.841741],[21.244936,69.370443],[20.645593,69.106247],[20.025269,69.065139],[19.87856,68.407194],[17.993868,68.567391],[17.729182,68.010552],[16.768879,68.013937],[16.108712,67.302456],[15.108411,66.193867],[13.55569,64.787028],[13.919905,64.445421],[13.571916,64.049114],[12.579935,64.066219],[11.930569,63.128318],[11.992064,61.800362],[12.631147,61.293572],[12.300366,60.117933],[11.468272,59.432393],[11.027369,58.856149],[10.356557,59.469807],[8.382,58.313288],[7.048748,58.078884],[5.665835,58.588155],[5.308234,59.663232],[4.992078,61.970998],[5.9129,62.614473],[8.553411,63.454008],[10.527709,64.486038],[12.358347,65.879726],[14.761146,67.810642],[16.435927,68.563205],[19.184028,69.817444],[21.378416,70.255169],[23.023742,70.202072],[24.546543,71.030497],[26.37005,70.986262],[28.165547,71.185474]]],"minLng":4.992078,"minLat":58.078884,"maxLng":31.293418,"maxLat":71.185474},{"country":"FIN","coordinates":[[[28.59193,69.064777],[28.445944,68.364613],[29.977426,67.698297],[29.054589,66.944286],[30.21765,65.80598],[29.54443,64.948672],[30.444685,64.204453],[30.035872,63.552814],[31.516092,62.867687],[31.139991,62.357693],[30.211107,61.780028],[28.069998,60.503517],[26.255173,60.423961],[24.496624,60.057316],[22.869695,59.846373],[22.290764,60.391921],[21.322244,60.72017],[21.544866,61.705329],[21.059211,62.607393],[21.536029,63.189735],[22.442744,63.81781],[24.730512,64.902344],[25.398068,65.111427],[25.294043,65.534346],[23.903379,66.006927],[23.56588,66.396051],[23.539473,67.936009],[21.978535,68.616846],[20.645593,69.106247],[21.244936,69.370443],[22.356238,68.841741],[23.66205,68.891247],[24.735679,68.649557],[25.689213,69.092114],[26.179622,69.825299],[27.732292,70.164193],[29.015573,69.766491],[28.59193,69.064777]]],"minLng":20.645593,"minLat":59.846373,"maxLng":31.516092,"maxLat":70.164193},{"country":"SWE","coordinates":[[[19.35791,57.958588],[18.8031,57.651279],[18.825073,57.444949],[18.995361,57.441993],[18.951416,57.370976],[18.693237,57.305756],[18.709716,57.204734],[18.462524,57.127295],[18.319702,56.926992],[18.105468,56.891003],[18.187866,57.109402],[18.072509,57.267163],[18.154907,57.394664],[18.094482,57.545312],[18.660278,57.929434],[19.039306,57.941098],[19.105224,57.993543],[19.374389,57.996454],[19.35791,57.958588]]],"minLng":18.072509,"minLat":56.891003,"maxLng":19.374389,"maxLat":57.996454},{"country":"SWE","coordinates":[[[20.846557,63.82371],[21.066284,63.829768],[20.9729,63.71567],[20.824584,63.579121],[20.695495,63.59134],[20.819091,63.714454],[20.799865,63.780059],[20.846557,63.82371]]],"minLng":20.695495,"minLat":63.579121,"maxLng":21.066284,"maxLat":63.829768}],"height":1,"leaf":true,"bbox":[4.992078,55.361737,31.516092,71.185474]},{"children":[{"country":"ROU","coordinates":[[[22.710531,47.882194],[23.142236,48.096341],[23.760958,47.985598],[24.402056,47.981878],[24.866317,47.737526],[25.207743,47.891056],[25.945941,47.987149],[26.19745,48.220881],[26.619337,48.220726],[26.924176,48.123264],[27.233873,47.826771],[27.551166,47.405117],[28.12803,46.810476],[28.160018,46.371563],[28.054443,45.944586],[28.233554,45.488283],[28.679779,45.304031],[29.149725,45.464925],[29.603289,45.293308],[29.626543,45.035391],[29.141612,44.82021],[28.837858,44.913874],[28.558081,43.707462],[27.970107,43.812468],[27.2424,44.175986],[26.065159,43.943494],[25.569272,43.688445],[24.100679,43.741051],[23.332302,43.897011],[22.944832,43.823785],[22.65715,44.234923],[22.474008,44.409228],[22.705726,44.578003],[22.459022,44.702517],[22.145088,44.478422],[21.562023,44.768947],[21.483526,45.18117],[20.874313,45.416375],[20.762175,45.734573],[20.220192,46.127469],[21.021952,46.316088],[21.626515,46.994238],[22.099768,47.672439],[22.710531,47.882194]]],"minLng":20.220192,"minLat":43.688445,"maxLng":29.626543,"maxLat":48.220881},{"country":"LTU","coordinates":[[[22.731099,54.327537],[22.651052,54.582741],[22.757764,54.856574],[22.315724,55.015299],[21.268449,55.190482],[21.0558,56.031076],[22.201157,56.337802],[23.878264,56.273671],[24.860684,56.372528],[25.000934,56.164531],[25.533047,56.100297],[26.494331,55.615107],[26.588279,55.167176],[25.768433,54.846963],[25.536354,54.282423],[24.450684,53.905702],[23.484128,53.912498],[23.243987,54.220567],[22.731099,54.327537]]],"minLng":21.0558,"minLat":53.905702,"maxLng":26.588279,"maxLat":56.372528},{"country":"LVA","coordinates":[[[21.0558,56.031076],[21.090424,56.783873],[21.581866,57.411871],[22.524341,57.753374],[23.318453,57.006236],[24.12073,57.025693],[24.312863,57.793424],[25.164594,57.970157],[25.60281,57.847529],[26.463532,57.476389],[27.288185,57.474528],[27.770016,57.244258],[27.855282,56.759326],[28.176709,56.16913],[27.10246,55.783314],[26.494331,55.615107],[25.533047,56.100297],[25.000934,56.164531],[24.860684,56.372528],[23.878264,56.273671],[22.201157,56.337802],[21.0558,56.031076]]],"minLng":21.0558,"minLat":55.615107,"maxLng":28.176709,"maxLat":57.970157},{"country":"BLR","coordinates":[[[23.484128,53.912498],[24.450684,53.905702],[25.536354,54.282423],[25.768433,54.846963],[26.588279,55.167176],[26.494331,55.615107],[27.10246,55.783314],[28.176709,56.16913],[29.229513,55.918344],[29.371572,55.670091],[29.896294,55.789463],[30.873909,55.550976],[30.971836,55.081548],[30.757534,54.811771],[31.384472,54.157056],[31.791424,53.974639],[31.731273,53.794029],[32.405599,53.618045],[32.693643,53.351421],[32.304519,53.132726],[31.497644,53.167427],[31.305201,53.073996],[31.540018,52.742052],[31.785998,52.101678],[30.927549,52.042353],[30.619454,51.822806],[30.555117,51.319503],[30.157364,51.416138],[29.254938,51.368234],[28.992835,51.602044],[28.617613,51.427714],[28.241615,51.572227],[27.454066,51.592303],[26.337959,51.832289],[25.327788,51.910656],[24.553106,51.888461],[24.005078,51.617444],[23.527071,51.578454],[23.508002,52.023647],[23.199494,52.486977],[23.799199,52.691099],[23.804935,53.089731],[23.527536,53.470122],[23.484128,53.912498]]],"minLng":23.199494,"minLat":51.319503,"maxLng":32.693643,"maxLat":56.16913}],"height":1,"leaf":true,"bbox":[20.220192,43.688445,32.693643,57.970157]},{"children":[{"country":"DEU","coordinates":[[[9.921906,54.983104],[9.93958,54.596642],[10.950112,54.363607],[10.939467,54.008693],[11.956252,54.196486],[12.51844,54.470371],[13.647467,54.075511],[14.119686,53.757029],[14.353315,53.248171],[14.074521,52.981263],[14.4376,52.62485],[14.685026,52.089947],[14.607098,51.745188],[15.016996,51.106674],[14.570718,51.002339],[14.307013,51.117268],[14.056228,50.926918],[13.338132,50.733234],[12.966837,50.484076],[12.240111,50.266338],[12.415191,49.969121],[12.521024,49.547415],[13.031329,49.307068],[13.595946,48.877172],[13.243357,48.416115],[12.884103,48.289146],[13.025851,47.637584],[12.932627,47.467646],[12.62076,47.672388],[12.141357,47.703083],[11.426414,47.523766],[10.544504,47.566399],[10.402084,47.302488],[9.896068,47.580197],[9.594226,47.525058],[8.522612,47.830828],[8.317301,47.61358],[7.466759,47.620582],[7.593676,48.333019],[8.099279,49.017784],[6.65823,49.201958],[6.18632,49.463803],[6.242751,49.902226],[6.043073,50.128052],[6.156658,50.803721],[5.988658,51.851616],[6.589397,51.852029],[6.84287,52.22844],[7.092053,53.144043],[6.90514,53.482162],[7.100425,53.693932],[7.936239,53.748296],[8.121706,53.527792],[8.800734,54.020786],[8.572118,54.395646],[8.526229,54.962744],[9.282049,54.830865],[9.921906,54.983104]]],"minLng":5.988658,"minLat":47.302488,"maxLng":15.016996,"maxLat":54.983104},{"country":"LUX","coordinates":[[[6.043073,50.128052],[6.242751,49.902226],[6.18632,49.463803],[5.897759,49.442667],[5.674052,49.529484],[5.782417,50.090328],[6.043073,50.128052]]],"minLng":5.674052,"minLat":49.442667,"maxLng":6.242751,"maxLat":50.128052},{"country":"NLD","coordinates":[[[6.074183,53.510403],[6.90514,53.482162],[7.092053,53.144043],[6.84287,52.22844],[6.589397,51.852029],[5.988658,51.851616],[6.156658,50.803721],[5.606976,51.037298],[4.973991,51.475024],[4.047071,51.267259],[3.314971,51.345755],[3.830289,51.620545],[4.705997,53.091798],[6.074183,53.510403]]],"minLng":3.314971,"minLat":50.803721,"maxLng":7.092053,"maxLat":53.510403},{"country":"DNK","coordinates":[[[12.690006,55.609991],[12.089991,54.800015],[11.043543,55.364864],[10.903914,55.779955],[12.370904,56.111407],[12.690006,55.609991]]],"minLng":10.903914,"minLat":54.800015,"maxLng":12.690006,"maxLat":56.111407},{"country":"DNK","coordinates":[[[10.912182,56.458621],[10.667804,56.081383],[10.369993,56.190007],[9.649985,55.469999],[9.921906,54.983104],[9.282049,54.830865],[8.526229,54.962744],[8.120311,55.517723],[8.089977,56.540012],[8.256582,56.809969],[8.543438,57.110003],[9.424469,57.172066],[9.775559,57.447941],[10.580006,57.730017],[10.546106,57.215733],[10.25,56.890016],[10.369993,56.609982],[10.912182,56.458621]]],"minLng":8.089977,"minLat":54.830865,"maxLng":10.912182,"maxLat":57.730017}],"height":1,"leaf":true,"bbox":[3.314971,47.302488,15.016996,57.730017]},{"children":[{"country":"NOR","coordinates":[[[18.25183,79.70175],[21.54383,78.95611],[19.02737,78.5626],[18.47172,77.82669],[17.59441,77.63796],[17.1182,76.80941],[15.91315,76.77045],[13.76259,77.38035],[14.66956,77.73565],[13.1706,78.02493],[11.22231,78.8693],[10.44453,79.65239],[13.17077,80.01046],[13.71852,79.66039],[15.14282,79.67431],[15.52255,80.01608],[16.99085,80.05086],[18.25183,79.70175]]],"minLng":10.44453,"minLat":76.77045,"maxLng":21.54383,"maxLat":80.05086},{"country":"NOR","coordinates":[[[24.72412,77.85385],[22.49032,77.44493],[20.72601,77.67704],[21.41611,77.93504],[20.8119,78.25463],[22.88426,78.45494],[23.28134,78.07954],[24.72412,77.85385]]],"minLng":20.72601,"minLat":77.44493,"maxLng":24.72412,"maxLat":78.45494},{"country":"NOR","coordinates":[[[25.447625,80.40734],[27.407506,80.056406],[25.924651,79.517834],[23.024466,79.400012],[20.075188,79.566823],[19.897266,79.842362],[18.462264,79.85988],[17.368015,80.318896],[20.455992,80.598156],[21.907945,80.357679],[22.919253,80.657144],[25.447625,80.40734]]],"minLng":17.368015,"minLat":79.400012,"maxLng":27.407506,"maxLat":80.657144}],"height":1,"leaf":true,"bbox":[10.44453,76.77045,27.407506,80.657144]}],"height":2,"bbox":[-9.977086,43.688445,32.693643,80.657144]},{"children":[{"children":[{"country":"CAN","coordinates":[[[-120.46,71.383602],[-123.09219,70.90164],[-123.62,71.34],[-125.928949,71.868688],[-125.5,72.292261],[-124.80729,73.02256],[-123.94,73.68],[-124.91775,74.29275],[-121.53788,74.44893],[-120.10978,74.24135],[-117.55564,74.18577],[-116.58442,73.89607],[-115.51081,73.47519],[-116.76794,73.22292],[-119.22,72.52],[-120.46,71.82],[-120.46,71.383602]]],"minLng":-125.928949,"minLat":70.90164,"maxLng":-115.51081,"maxLat":74.44893},{"country":"CAN","coordinates":[[[-116.198587,77.645287],[-116.335813,76.876962],[-117.106051,76.530032],[-118.040412,76.481172],[-119.899318,76.053213],[-121.499995,75.900019],[-122.854924,76.116543],[-122.854925,76.116543],[-121.157535,76.864508],[-119.103939,77.51222],[-117.570131,77.498319],[-116.198587,77.645287]]],"minLng":-122.854925,"minLat":75.900019,"maxLng":-116.198587,"maxLat":77.645287},{"country":"CAN","coordinates":[[[-108.21141,76.20168],[-107.81943,75.84552],[-106.92893,76.01282],[-105.881,75.9694],[-105.70498,75.47951],[-106.31347,75.00527],[-109.7,74.85],[-112.22307,74.41696],[-113.74381,74.39427],[-113.87135,74.72029],[-111.79421,75.1625],[-116.31221,75.04343],[-117.7104,75.2222],[-116.34602,76.19903],[-115.40487,76.47887],[-112.59056,76.14134],[-110.81422,75.54919],[-109.0671,75.47321],[-110.49726,76.42982],[-109.5811,76.79417],[-108.54859,76.67832],[-108.21141,76.20168]]],"minLng":-117.7104,"minLat":74.39427,"maxLng":-105.70498,"maxLat":76.79417},{"country":"CAN","coordinates":[[[-110.186938,77.697015],[-112.051191,77.409229],[-113.534279,77.732207],[-112.724587,78.05105],[-111.264443,78.152956],[-109.854452,77.996325],[-110.186938,77.697015]]],"minLng":-113.534279,"minLat":77.409229,"maxLng":-109.854452,"maxLat":78.152956},{"country":"CAN","coordinates":[[[-109.663146,78.601973],[-110.881314,78.40692],[-112.542091,78.407902],[-112.525891,78.550555],[-111.50001,78.849994],[-110.963661,78.804441],[-109.663146,78.601973]]],"minLng":-112.542091,"minLat":78.40692,"maxLng":-109.663146,"maxLat":78.849994}],"height":1,"leaf":true,"bbox":[-125.928949,70.90164,-105.70498,78.849994]},{"children":[{"country":"CAN","coordinates":[[[-104.5,73.42],[-105.38,72.76],[-106.94,73.46],[-106.6,73.6],[-105.26,73.64],[-104.5,73.42]]],"minLng":-106.94,"minLat":72.76,"maxLng":-104.5,"maxLat":73.64},{"country":"CAN","coordinates":[[[-100.35642,73.84389],[-99.16387,73.63339],[-97.38,73.76],[-97.12,73.47],[-98.05359,72.99052],[-96.54,72.56],[-96.72,71.66],[-98.35966,71.27285],[-99.32286,71.35639],[-100.01482,71.73827],[-102.5,72.51],[-102.48,72.83],[-100.43836,72.70588],[-101.54,73.36],[-100.35642,73.84389]]],"minLng":-102.5,"minLat":71.27285,"maxLng":-96.54,"maxLat":73.84389},{"country":"CAN","coordinates":[[[-95.830295,78.056941],[-97.309843,77.850597],[-98.124289,78.082857],[-98.552868,78.458105],[-98.631984,78.87193],[-97.337231,78.831984],[-96.754399,78.765813],[-95.559278,78.418315],[-95.830295,78.056941]]],"minLng":-98.631984,"minLat":77.850597,"maxLng":-95.559278,"maxLat":78.87193},{"country":"CAN","coordinates":[[[-100.060192,78.324754],[-99.670939,77.907545],[-101.30394,78.018985],[-102.949809,78.343229],[-105.176133,78.380332],[-104.210429,78.67742],[-105.41958,78.918336],[-105.492289,79.301594],[-103.529282,79.165349],[-100.825158,78.800462],[-100.060192,78.324754]]],"minLng":-105.492289,"minLat":77.907545,"maxLng":-99.670939,"maxLat":79.301594}],"height":1,"leaf":true,"bbox":[-106.94,71.27285,-95.559278,79.301594]},{"children":[{"country":"CAN","coordinates":[[[-98.5,76.72],[-97.735585,76.25656],[-97.704415,75.74344],[-98.16,75],[-99.80874,74.89744],[-100.88366,75.05736],[-100.86292,75.64075],[-102.50209,75.5638],[-102.56552,76.3366],[-101.48973,76.30537],[-99.98349,76.64634],[-98.57699,76.58859],[-98.5,76.72]]],"minLng":-102.56552,"minLat":74.89744,"maxLng":-97.704415,"maxLat":76.72},{"country":"CAN","coordinates":[[[-94.684086,77.097878],[-93.573921,76.776296],[-91.605023,76.778518],[-90.741846,76.449597],[-90.969661,76.074013],[-89.822238,75.847774],[-89.187083,75.610166],[-87.838276,75.566189],[-86.379192,75.482421],[-84.789625,75.699204],[-82.753445,75.784315],[-81.128531,75.713983],[-80.057511,75.336849],[-79.833933,74.923127],[-80.457771,74.657304],[-81.948843,74.442459],[-83.228894,74.564028],[-86.097452,74.410032],[-88.15035,74.392307],[-89.764722,74.515555],[-92.422441,74.837758],[-92.768285,75.38682],[-92.889906,75.882655],[-93.893824,76.319244],[-95.962457,76.441381],[-97.121379,76.751078],[-96.745123,77.161389],[-94.684086,77.097878]]],"minLng":-97.121379,"minLat":74.392307,"maxLng":-79.833933,"maxLat":77.161389},{"country":"CAN","coordinates":[[[-93.612756,74.979997],[-94.156909,74.592347],[-95.608681,74.666864],[-96.820932,74.927623],[-96.288587,75.377828],[-94.85082,75.647218],[-93.977747,75.29649],[-93.612756,74.979997]]],"minLng":-96.820932,"minLat":74.592347,"maxLng":-93.612756,"maxLat":75.647218}],"height":1,"leaf":true,"bbox":[-102.56552,74.392307,-79.833933,77.161389]},{"children":[{"country":"CAN","coordinates":[[[-87.02,79.66],[-85.81435,79.3369],[-87.18756,79.0393],[-89.03535,78.28723],[-90.80436,78.21533],[-92.87669,78.34333],[-93.95116,78.75099],[-93.93574,79.11373],[-93.14524,79.3801],[-94.974,79.37248],[-96.07614,79.70502],[-96.70972,80.15777],[-96.01644,80.60233],[-95.32345,80.90729],[-94.29843,80.97727],[-94.73542,81.20646],[-92.40984,81.25739],[-91.13289,80.72345],[-89.45,80.509322],[-87.81,80.32],[-87.02,79.66]]],"minLng":-96.70972,"minLat":78.21533,"maxLng":-85.81435,"maxLat":81.25739},{"country":"CAN","coordinates":[[[-93.840003,77.519997],[-94.295608,77.491343],[-96.169654,77.555111],[-96.436304,77.834629],[-94.422577,77.820005],[-93.720656,77.634331],[-93.840003,77.519997]]],"minLng":-96.436304,"minLat":77.491343,"maxLng":-93.720656,"maxLat":77.834629},{"country":"CAN","coordinates":[[[-68.5,83.106322],[-65.82735,83.02801],[-63.68,82.9],[-61.85,82.6286],[-61.89388,82.36165],[-64.334,81.92775],[-66.75342,81.72527],[-67.65755,81.50141],[-65.48031,81.50657],[-67.84,80.9],[-69.4697,80.61683],[-71.18,79.8],[-73.2428,79.63415],[-73.88,79.430162],[-76.90773,79.32309],[-75.52924,79.19766],[-76.22046,79.01907],[-75.39345,78.52581],[-76.34354,78.18296],[-77.88851,77.89991],[-78.36269,77.50859],[-79.75951,77.20968],[-79.61965,76.98336],[-77.91089,77.022045],[-77.88911,76.777955],[-80.56125,76.17812],[-83.17439,76.45403],[-86.11184,76.29901],[-87.6,76.42],[-89.49068,76.47239],[-89.6161,76.95213],[-87.76739,77.17833],[-88.26,77.9],[-87.65,77.970222],[-84.97634,77.53873],[-86.34,78.18],[-87.96192,78.37181],[-87.15198,78.75867],[-85.37868,78.9969],[-85.09495,79.34543],[-86.50734,79.73624],[-86.93179,80.25145],[-84.19844,80.20836],[-83.408696,80.1],[-81.84823,80.46442],[-84.1,80.58],[-87.59895,80.51627],[-89.36663,80.85569],[-90.2,81.26],[-91.36786,81.5531],[-91.58702,81.89429],[-90.1,82.085],[-88.93227,82.11751],[-86.97024,82.27961],[-85.5,82.652273],[-84.260005,82.6],[-83.18,82.32],[-82.42,82.86],[-81.1,83.02],[-79.30664,83.13056],[-76.25,83.172059],[-75.71878,83.06404],[-72.83153,83.23324],[-70.665765,83.169781],[-68.5,83.106322]]],"minLng":-91.58702,"minLat":76.17812,"maxLng":-61.85,"maxLat":83.23324},{"country":"GRL","coordinates":[[[-46.76379,82.62796],[-43.40644,83.22516],[-39.89753,83.18018],[-38.62214,83.54905],[-35.08787,83.64513],[-27.10046,83.51966],[-20.84539,82.72669],[-22.69182,82.34165],[-26.51753,82.29765],[-31.9,82.2],[-31.39646,82.02154],[-27.85666,82.13178],[-24.84448,81.78697],[-22.90328,82.09317],[-22.07175,81.73449],[-23.16961,81.15271],[-20.62363,81.52462],[-15.76818,81.91245],[-12.77018,81.71885],[-12.20855,81.29154],[-16.28533,80.58004],[-16.85,80.35],[-20.04624,80.17708],[-17.73035,80.12912],[-18.9,79.4],[-19.70499,78.75128],[-19.67353,77.63859],[-18.47285,76.98565],[-20.03503,76.94434],[-21.67944,76.62795],[-19.83407,76.09808],[-19.59896,75.24838],[-20.66818,75.15585],[-19.37281,74.29561],[-21.59422,74.22382],[-20.43454,73.81713],[-20.76234,73.46436],[-22.17221,73.30955],[-23.56593,73.30663],[-22.31311,72.62928],[-22.29954,72.18409],[-24.27834,72.59788],[-24.79296,72.3302],[-23.44296,72.08016],[-22.13281,71.46898],[-21.75356,70.66369],[-23.53603,70.471],[-24.30702,70.85649],[-25.54341,71.43094],[-25.20135,70.75226],[-26.36276,70.22646],[-23.72742,70.18401],[-22.34902,70.12946],[-25.02927,69.2588],[-27.74737,68.47046],[-30.67371,68.12503],[-31.77665,68.12078],[-32.81105,67.73547],[-34.20196,66.67974],[-36.35284,65.9789],[-37.04378,65.93768],[-38.37505,65.69213],[-39.81222,65.45848],[-40.66899,64.83997],[-40.68281,64.13902],[-41.1887,63.48246],[-42.81938,62.68233],[-42.41666,61.90093],[-42.86619,61.07404],[-43.3784,60.09772],[-44.7875,60.03676],[-46.26364,60.85328],[-48.26294,60.85843],[-49.23308,61.40681],[-49.90039,62.38336],[-51.63325,63.62691],[-52.14014,64.27842],[-52.27659,65.1767],[-53.66166,66.09957],[-53.30161,66.8365],[-53.96911,67.18899],[-52.9804,68.35759],[-51.47536,68.72958],[-51.08041,69.14781],[-50.87122,69.9291],[-52.013585,69.574925],[-52.55792,69.42616],[-53.45629,69.283625],[-54.68336,69.61003],[-54.75001,70.28932],[-54.35884,70.821315],[-53.431315,70.835755],[-51.39014,70.56978],[-53.10937,71.20485],[-54.00422,71.54719],[-55,71.406537],[-55.83468,71.65444],[-54.71819,72.58625],[-55.32634,72.95861],[-56.12003,73.64977],[-57.32363,74.71026],[-58.59679,75.09861],[-58.58516,75.51727],[-61.26861,76.10238],[-63.39165,76.1752],[-66.06427,76.13486],[-68.50438,76.06141],[-69.66485,76.37975],[-71.40257,77.00857],[-68.77671,77.32312],[-66.76397,77.37595],[-71.04293,77.63595],[-73.297,78.04419],[-73.15938,78.43271],[-69.37345,78.91388],[-65.7107,79.39436],[-65.3239,79.75814],[-68.02298,80.11721],[-67.15129,80.51582],[-63.68925,81.21396],[-62.23444,81.3211],[-62.65116,81.77042],[-60.28249,82.03363],[-57.20744,82.19074],[-54.13442,82.19962],[-53.04328,81.88833],[-50.39061,82.43883],[-48.00386,82.06481],[-46.59984,81.985945],[-44.523,81.6607],[-46.9007,82.19979],[-46.76379,82.62796]]],"minLng":-73.297,"minLat":60.03676,"maxLng":-12.20855,"maxLat":83.64513},{"country":"ISL","coordinates":[[[-14.508695,66.455892],[-14.739637,65.808748],[-13.609732,65.126671],[-14.909834,64.364082],[-17.794438,63.678749],[-18.656246,63.496383],[-19.972755,63.643635],[-22.762972,63.960179],[-21.778484,64.402116],[-23.955044,64.89113],[-22.184403,65.084968],[-22.227423,65.378594],[-24.326184,65.611189],[-23.650515,66.262519],[-22.134922,66.410469],[-20.576284,65.732112],[-19.056842,66.276601],[-17.798624,65.993853],[-16.167819,66.526792],[-14.508695,66.455892]]],"minLng":-24.326184,"minLat":63.496383,"maxLng":-13.609732,"maxLat":66.526792}],"height":1,"leaf":true,"bbox":[-96.70972,60.03676,-12.20855,83.64513]},{"children":[{"country":"RUS","coordinates":[[[106.97013,76.97419],[107.24,76.48],[108.1538,76.72335],[111.07726,76.71],[113.33151,76.22224],[114.13417,75.84764],[113.88539,75.32779],[112.77918,75.03186],[110.15125,74.47673],[109.4,74.18],[110.64,74.04],[112.11919,73.78774],[113.01954,73.97693],[113.52958,73.33505],[113.96881,73.59488],[115.56782,73.75285],[118.77633,73.58772],[119.02,73.12],[123.20066,72.97122],[123.25777,73.73503],[125.38,73.56],[126.97644,73.56549],[128.59126,73.03871],[129.05157,72.39872],[128.46,71.98],[129.71599,71.19304],[131.28858,70.78699],[132.2535,71.8363],[133.85766,71.38642],[135.56193,71.65525],[137.49755,71.34763],[138.23409,71.62803],[139.86983,71.48783],[139.14791,72.41619],[140.46817,72.84941],[149.5,72.2],[150.35118,71.60643],[152.9689,70.84222],[157.00688,71.03141],[158.99779,70.86672],[159.83031,70.45324],[159.70866,69.72198],[160.94053,69.43728],[162.27907,69.64204],[164.05248,69.66823],[165.94037,69.47199],[167.83567,69.58269],[169.57763,68.6938],[170.81688,69.01363],[170.0082,69.65276],[170.45345,70.09703],[173.64391,69.81743],[175.72403,69.87725],[178.6,69.4],[180,68.963636],[180,64.979709],[179.99281,64.97433],[178.7072,64.53493],[177.41128,64.60821],[178.313,64.07593],[178.90825,63.25197],[179.37034,62.98262],[179.48636,62.56894],[179.22825,62.3041],[177.3643,62.5219],[174.56929,61.76915],[173.68013,61.65261],[172.15,60.95],[170.6985,60.33618],[170.33085,59.88177],[168.90046,60.57355],[166.29498,59.78855],[165.84,60.16],[164.87674,59.7316],[163.53929,59.86871],[163.21711,59.21101],[162.01733,58.24328],[162.05297,57.83912],[163.19191,57.61503],[163.05794,56.15924],[162.12958,56.12219],[161.70146,55.28568],[162.11749,54.85514],[160.36877,54.34433],[160.02173,53.20257],[158.53094,52.95868],[158.23118,51.94269],[156.78979,51.01105],[156.42,51.7],[155.99182,53.15895],[155.43366,55.38103],[155.91442,56.76792],[156.75815,57.3647],[156.81035,57.83204],[158.36433,58.05575],[160.15064,59.31477],[161.87204,60.343],[163.66969,61.1409],[164.47355,62.55061],[163.25842,62.46627],[162.65791,61.6425],[160.12148,60.54423],[159.30232,61.77396],[156.72068,61.43442],[154.21806,59.75818],[155.04375,59.14495],[152.81185,58.88385],[151.26573,58.78089],[151.33815,59.50396],[149.78371,59.65573],[148.54481,59.16448],[145.48722,59.33637],[142.19782,59.03998],[138.95848,57.08805],[135.12619,54.72959],[136.70171,54.60355],[137.19342,53.97732],[138.1647,53.75501],[138.80463,54.25455],[139.90151,54.18968],[141.34531,53.08957],[141.37923,52.23877],[140.59742,51.23967],[140.51308,50.04553],[140.06193,48.44671],[138.55472,46.99965],[138.21971,46.30795],[136.86232,45.1435],[135.51535,43.989],[134.86939,43.39821],[133.53687,42.81147],[132.90627,42.79849],[132.27807,43.28456],[130.93587,42.55274],[130.78,42.22],[130.64,42.395],[130.633866,42.903015],[131.144688,42.92999],[131.288555,44.11152],[131.02519,44.96796],[131.883454,45.321162],[133.09712,45.14409],[133.769644,46.116927],[134.11235,47.21248],[134.50081,47.57845],[135.026311,48.47823],[133.373596,48.183442],[132.50669,47.78896],[130.98726,47.79013],[130.582293,48.729687],[129.397818,49.4406],[127.6574,49.76027],[127.287456,50.739797],[126.939157,51.353894],[126.564399,51.784255],[125.946349,52.792799],[125.068211,53.161045],[123.57147,53.4588],[122.245748,53.431726],[121.003085,53.251401],[120.177089,52.753886],[120.725789,52.516226],[120.7382,51.96411],[120.18208,51.64355],[119.27939,50.58292],[119.288461,50.142883],[117.879244,49.510983],[116.678801,49.888531],[115.485695,49.805177],[114.96211,50.140247],[114.362456,50.248303],[112.89774,49.543565],[111.581231,49.377968],[110.662011,49.130128],[109.402449,49.292961],[108.475167,49.282548],[107.868176,49.793705],[106.888804,50.274296],[105.886591,50.406019],[104.62158,50.27532],[103.676545,50.089966],[102.25589,50.51056],[102.06521,51.25991],[100.88948,51.516856],[99.981732,51.634006],[98.861491,52.047366],[97.82574,51.010995],[98.231762,50.422401],[97.25976,49.72605],[95.81402,49.97746],[94.815949,50.013433],[94.147566,50.480537],[93.10421,50.49529],[92.234712,50.802171],[90.713667,50.331812],[88.805567,49.470521],[87.751264,49.297198],[87.35997,49.214981],[86.829357,49.826675],[85.54127,49.692859],[85.11556,50.117303],[84.416377,50.3114],[83.935115,50.889246],[83.383004,51.069183],[81.945986,50.812196],[80.568447,51.388336],[80.03556,50.864751],[77.800916,53.404415],[76.525179,54.177003],[76.8911,54.490524],[74.38482,53.54685],[73.425679,53.48981],[73.508516,54.035617],[72.22415,54.376655],[71.180131,54.133285],[70.865267,55.169734],[69.068167,55.38525],[68.1691,54.970392],[65.66687,54.60125],[65.178534,54.354228],[61.4366,54.00625],[60.978066,53.664993],[61.699986,52.979996],[60.739993,52.719986],[60.927269,52.447548],[59.967534,51.96042],[61.588003,51.272659],[61.337424,50.79907],[59.932807,50.842194],[59.642282,50.545442],[58.36332,51.06364],[56.77798,51.04355],[55.71694,50.62171],[54.532878,51.02624],[52.328724,51.718652],[50.766648,51.692762],[48.702382,50.605128],[48.577841,49.87476],[47.54948,50.454698],[46.751596,49.356006],[47.043672,49.152039],[46.466446,48.394152],[47.31524,47.71585],[48.05725,47.74377],[48.694734,47.075628],[48.59325,46.56104],[49.10116,46.39933],[48.64541,45.80629],[47.67591,45.64149],[46.68201,44.6092],[47.59094,43.66016],[47.49252,42.98658],[48.58437,41.80888],[47.987283,41.405819],[47.815666,41.151416],[47.373315,41.219732],[46.686071,41.827137],[46.404951,41.860675],[45.7764,42.09244],[45.470279,42.502781],[44.537623,42.711993],[43.93121,42.55496],[43.75599,42.74083],[42.3944,43.2203],[40.92219,43.38215],[40.076965,43.553104],[39.955009,43.434998],[38.68,44.28],[37.53912,44.65721],[37.276611328125,44.972570682240644],[36.7822265625,45.10454630976873],[36.243896484375,45.05024026979463],[35.89233398437499,45.01141864227728],[35.57373046875,45.1278045274732],[35.101318359375,44.8324999934906],[34.453125,44.72332018895825],[34.046630859375,44.44162421758805],[33.71704101562499,44.39454219215587],[33.37646484375,44.56699093657141],[33.59619140624999,44.98811302615805],[33.42041015625,45.18978009667531],[33.134765625,45.205263456162385],[32.98095703125,45.359865333959746],[32.640380859375,45.298075138707965],[32.4755859375,45.398449976304086],[32.794189453125,45.598665689820656],[33.607177734375,45.89000815866182],[33.64013671875,46.2102496001872],[34.1455078125,46.08847179577592],[34.91455078125,45.775186183521036],[35.40893554687499,45.29034662473615],[36.0791015625,45.46783598133375],[36.32080078125,45.460130637921004],[36.573486328125,45.44471679159555],[37.40317,45.40451],[38.23295,46.24087],[37.67372,46.63657],[39.14767,47.04475],[39.1212,47.26336],[38.223538,47.10219],[38.255112,47.5464],[38.77057,47.82562],[39.738278,47.898937],[39.89562,48.23241],[39.67465,48.78382],[40.080789,49.30743],[40.06904,49.60105],[38.594988,49.926462],[38.010631,49.915662],[37.39346,50.383953],[36.626168,50.225591],[35.356116,50.577197],[35.37791,50.77394],[35.022183,51.207572],[34.224816,51.255993],[34.141978,51.566413],[34.391731,51.768882],[33.7527,52.335075],[32.715761,52.238465],[32.412058,52.288695],[32.15944,52.06125],[31.78597,52.10168],[31.540018,52.742052],[31.305201,53.073996],[31.49764,53.16743],[32.304519,53.132726],[32.693643,53.351421],[32.405599,53.618045],[31.731273,53.794029],[31.791424,53.974639],[31.384472,54.157056],[30.757534,54.811771],[30.971836,55.081548],[30.873909,55.550976],[29.896294,55.789463],[29.371572,55.670091],[29.229513,55.918344],[28.176709,56.16913],[27.855282,56.759326],[27.770016,57.244258],[27.288185,57.474528],[27.716686,57.791899],[27.42015,58.72457],[28.131699,59.300825],[27.98112,59.47537],[29.1177,60.02805],[28.07,60.50352],[30.211107,61.780028],[31.139991,62.357693],[31.516092,62.867687],[30.035872,63.552814],[30.444685,64.204453],[29.54443,64.948672],[30.21765,65.80598],[29.054589,66.944286],[29.977426,67.698297],[28.445944,68.364613],[28.59193,69.064777],[29.39955,69.15692],[31.10108,69.55811],[32.13272,69.90595],[33.77547,69.30142],[36.51396,69.06342],[40.29234,67.9324],[41.05987,67.45713],[41.12595,66.79158],[40.01583,66.26618],[38.38295,65.99953],[33.91871,66.75961],[33.18444,66.63253],[34.81477,65.90015],[34.878574,65.436213],[34.94391,64.41437],[36.23129,64.10945],[37.01273,63.84983],[37.14197,64.33471],[36.539579,64.76446],[37.17604,65.14322],[39.59345,64.52079],[40.4356,64.76446],[39.7626,65.49682],[42.09309,66.47623],[43.01604,66.41858],[43.94975,66.06908],[44.53226,66.75634],[43.69839,67.35245],[44.18795,67.95051],[43.45282,68.57079],[46.25,68.25],[46.82134,67.68997],[45.55517,67.56652],[45.56202,67.01005],[46.34915,66.66767],[47.89416,66.88455],[48.13876,67.52238],[50.22766,67.99867],[53.71743,68.85738],[54.47171,68.80815],[53.48582,68.20131],[54.72628,68.09702],[55.44268,68.43866],[57.31702,68.46628],[58.802,68.88082],[59.94142,68.27844],[61.07784,68.94069],[60.03,69.52],[60.55,69.85],[63.504,69.54739],[64.888115,69.234835],[68.51216,68.09233],[69.18068,68.61563],[68.16444,69.14436],[68.13522,69.35649],[66.93008,69.45461],[67.25976,69.92873],[66.72492,70.70889],[66.69466,71.02897],[68.54006,71.9345],[69.19636,72.84336],[69.94,73.04],[72.58754,72.77629],[72.79603,72.22006],[71.84811,71.40898],[72.47011,71.09019],[72.79188,70.39114],[72.5647,69.02085],[73.66787,68.4079],[73.2387,67.7404],[71.28,66.32],[72.42301,66.17267],[72.82077,66.53267],[73.92099,66.78946],[74.18651,67.28429],[75.052,67.76047],[74.46926,68.32899],[74.93584,68.98918],[73.84236,69.07146],[73.60187,69.62763],[74.3998,70.63175],[73.1011,71.44717],[74.89082,72.12119],[74.65926,72.83227],[75.15801,72.85497],[75.68351,72.30056],[75.28898,71.33556],[76.35911,71.15287],[75.90313,71.87401],[77.57665,72.26717],[79.65202,72.32011],[81.5,71.75],[80.61071,72.58285],[80.51109,73.6482],[82.25,73.85],[84.65526,73.80591],[86.8223,73.93688],[86.00956,74.45967],[87.16682,75.11643],[88.31571,75.14393],[90.26,75.64],[92.90058,75.77333],[93.23421,76.0472],[95.86,76.14],[96.67821,75.91548],[98.92254,76.44689],[100.75967,76.43028],[101.03532,76.86189],[101.99084,77.28754],[104.3516,77.69792],[106.06664,77.37389],[104.705,77.1274],[106.97013,76.97419]]],"minLng":27.288185,"minLat":41.151416,"maxLng":180,"maxLat":77.69792},{"country":"SRB","coordinates":[[[20.874313,45.416375],[21.483526,45.18117],[21.562023,44.768947],[22.145088,44.478422],[22.459022,44.702517],[22.705726,44.578003],[22.474008,44.409228],[22.65715,44.234923],[22.410446,44.008063],[22.500157,43.642814],[22.986019,43.211161],[22.604801,42.898519],[22.436595,42.580321],[22.545012,42.461362],[22.380526,42.32026],[21.91708,42.30364],[21.576636,42.245224],[21.54332,42.32025],[21.66292,42.43922],[21.77505,42.6827],[21.63302,42.67717],[21.43866,42.86255],[21.27421,42.90959],[21.143395,43.068685],[20.95651,43.13094],[20.81448,43.27205],[20.63508,43.21671],[20.49679,42.88469],[20.25758,42.81275],[20.3398,42.89852],[19.95857,43.10604],[19.63,43.21378],[19.48389,43.35229],[19.21852,43.52384],[19.454,43.5681],[19.59976,44.03847],[19.11761,44.42307],[19.36803,44.863],[19.00548,44.86023],[19.390476,45.236516],[19.072769,45.521511],[18.82982,45.90888],[19.596045,46.17173],[20.220192,46.127469],[20.762175,45.734573],[20.874313,45.416375]]],"minLng":18.82982,"minLat":42.245224,"maxLng":22.986019,"maxLat":46.17173},{"country":"UKR","coordinates":[[[31.785998,52.101678],[32.159412,52.061267],[32.412058,52.288695],[32.715761,52.238465],[33.7527,52.335075],[34.391731,51.768882],[34.141978,51.566413],[34.224816,51.255993],[35.022183,51.207572],[35.377924,50.773955],[35.356116,50.577197],[36.626168,50.225591],[37.39346,50.383953],[38.010631,49.915662],[38.594988,49.926462],[40.069058,49.601055],[40.080789,49.30743],[39.674664,48.783818],[39.895632,48.232405],[39.738278,47.898937],[38.770585,47.825608],[38.255112,47.5464],[38.223538,47.10219],[37.425137,47.022221],[36.759855,46.6987],[35.823685,46.645964],[35.0518798828125,46.263442671779885],[34.87060546875,46.229253045075275],[34.5849609375,45.98551218814564],[34.024658203125,46.118941506107056],[33.62365722656249,46.20264638061019],[33.497314453125,46.03510927947334],[33.2061767578125,46.15319980124842],[32.4481201171875,46.07323062540838],[31.74414,46.333348],[31.675307,46.706245],[30.748749,46.5831],[30.377609,46.03241],[29.603289,45.293308],[29.149725,45.464925],[28.679779,45.304031],[28.233554,45.488283],[28.485269,45.596907],[28.659987,45.939987],[28.933717,46.25883],[28.862972,46.437889],[29.072107,46.517678],[29.170654,46.379262],[29.759972,46.349988],[30.024659,46.423937],[29.83821,46.525326],[29.908852,46.674361],[29.559674,46.928583],[29.415135,47.346645],[29.050868,47.510227],[29.122698,47.849095],[28.670891,48.118149],[28.259547,48.155562],[27.522537,48.467119],[26.857824,48.368211],[26.619337,48.220726],[26.19745,48.220881],[25.945941,47.987149],[25.207743,47.891056],[24.866317,47.737526],[24.402056,47.981878],[23.760958,47.985598],[23.142236,48.096341],[22.710531,47.882194],[22.64082,48.15024],[22.085608,48.422264],[22.280842,48.825392],[22.558138,49.085738],[22.776419,49.027395],[22.51845,49.476774],[23.426508,50.308506],[23.922757,50.424881],[24.029986,50.705407],[23.527071,51.578454],[24.005078,51.617444],[24.553106,51.888461],[25.327788,51.910656],[26.337959,51.832289],[27.454066,51.592303],[28.241615,51.572227],[28.617613,51.427714],[28.992835,51.602044],[29.254938,51.368234],[30.157364,51.416138],[30.555117,51.319503],[30.619454,51.822806],[30.927549,52.042353],[31.785998,52.101678]]],"minLng":22.085608,"minLat":45.293308,"maxLng":40.080789,"maxLat":52.335075},{"country":"RUS","coordinates":[[[57.535693,70.720464],[56.944979,70.632743],[53.677375,70.762658],[53.412017,71.206662],[51.601895,71.474759],[51.455754,72.014881],[52.478275,72.229442],[52.444169,72.774731],[54.427614,73.627548],[53.50829,73.749814],[55.902459,74.627486],[55.631933,75.081412],[57.868644,75.60939],[61.170044,76.251883],[64.498368,76.439055],[66.210977,76.809782],[68.15706,76.939697],[68.852211,76.544811],[68.180573,76.233642],[64.637326,75.737755],[61.583508,75.260885],[58.477082,74.309056],[56.986786,73.333044],[55.419336,72.371268],[55.622838,71.540595],[57.535693,70.720464]]],"minLng":51.455754,"minLat":70.632743,"maxLng":68.852211,"maxLat":76.939697},{"country":"RUS","coordinates":[[[145.086285,75.562625],[144.3,74.82],[140.61381,74.84768],[138.95544,74.61148],[136.97439,75.26167],[137.51176,75.94917],[138.831075,76.13676],[141.471615,76.09289],[145.086285,75.562625]]],"minLng":136.97439,"minLat":74.61148,"maxLng":145.086285,"maxLat":76.13676}],"height":1,"leaf":true,"bbox":[18.82982,41.151416,180,77.69792]},{"children":[{"country":"RUS","coordinates":[[[143.60385,73.21244],[142.08763,73.20544],[140.038155,73.31692],[139.86312,73.36983],[140.81171,73.76506],[142.06207,73.85758],[143.48283,73.47525],[143.60385,73.21244]]],"minLng":139.86312,"minLat":73.20544,"maxLng":143.60385,"maxLat":73.85758},{"country":"RUS","coordinates":[[[150.73167,75.08406],[149.575925,74.68892],[147.977465,74.778355],[146.11919,75.17298],[146.358485,75.49682],[148.22223,75.345845],[150.73167,75.08406]]],"minLng":146.11919,"minLat":74.68892,"maxLng":150.73167,"maxLat":75.49682},{"country":"RUS","coordinates":[[[180,70.832199],[178.903425,70.78114],[178.7253,71.0988],[180,71.515714],[180,70.832199]]],"minLng":178.7253,"minLat":70.78114,"maxLng":180,"maxLat":71.515714}],"height":1,"leaf":true,"bbox":[139.86312,70.78114,180,75.49682]},{"children":[{"country":"RUS","coordinates":[[[105.07547,78.30689],[99.43814,77.921],[101.2649,79.23399],[102.08635,79.34641],[102.837815,79.28129],[105.37243,78.71334],[105.07547,78.30689]]],"minLng":99.43814,"minLat":77.921,"maxLng":105.37243,"maxLat":79.34641},{"country":"RUS","coordinates":[[[99.93976,78.88094],[97.75794,78.7562],[94.97259,79.044745],[93.31288,79.4265],[92.5454,80.14379],[91.18107,80.34146],[93.77766,81.0246],[95.940895,81.2504],[97.88385,80.746975],[100.186655,79.780135],[99.93976,78.88094]]],"minLng":91.18107,"minLat":78.7562,"maxLng":100.186655,"maxLat":81.2504},{"country":"RUS","coordinates":[[[51.136187,80.54728],[49.793685,80.415428],[48.894411,80.339567],[48.754937,80.175468],[47.586119,80.010181],[46.502826,80.247247],[47.072455,80.559424],[44.846958,80.58981],[46.799139,80.771918],[48.318477,80.78401],[48.522806,80.514569],[49.09719,80.753986],[50.039768,80.918885],[51.522933,80.699726],[51.136187,80.54728]]],"minLng":44.846958,"minLat":80.010181,"maxLng":51.522933,"maxLat":80.918885}],"height":1,"leaf":true,"bbox":[44.846958,77.921,105.37243,81.2504]}],"height":2,"bbox":[-125.928949,41.151416,180,83.64513]}],"height":3,"bbox":[-180,41.151416,180,83.64513]},{"children":[{"children":[{"children":[{"country":"COL","coordinates":[[[-75.373223,-0.152032],[-75.801466,0.084801],[-76.292314,0.416047],[-76.57638,0.256936],[-77.424984,0.395687],[-77.668613,0.825893],[-77.855061,0.809925],[-78.855259,1.380924],[-78.990935,1.69137],[-78.617831,1.766404],[-78.662118,2.267355],[-78.42761,2.629556],[-77.931543,2.696606],[-77.510431,3.325017],[-77.12769,3.849636],[-77.496272,4.087606],[-77.307601,4.667984],[-77.533221,5.582812],[-77.318815,5.845354],[-77.476661,6.691116],[-77.881571,7.223771],[-77.753414,7.70984],[-77.431108,7.638061],[-77.242566,7.935278],[-77.474723,8.524286],[-77.353361,8.670505],[-76.836674,8.638749],[-76.086384,9.336821],[-75.6746,9.443248],[-75.664704,9.774003],[-75.480426,10.61899],[-74.906895,11.083045],[-74.276753,11.102036],[-74.197223,11.310473],[-73.414764,11.227015],[-72.627835,11.731972],[-72.238195,11.95555],[-71.75409,12.437303],[-71.399822,12.376041],[-71.137461,12.112982],[-71.331584,11.776284],[-71.973922,11.608672],[-72.227575,11.108702],[-72.614658,10.821975],[-72.905286,10.450344],[-73.027604,9.73677],[-73.304952,9.152],[-72.78873,9.085027],[-72.660495,8.625288],[-72.439862,8.405275],[-72.360901,8.002638],[-72.479679,7.632506],[-72.444487,7.423785],[-72.198352,7.340431],[-71.960176,6.991615],[-70.674234,7.087785],[-70.093313,6.960376],[-69.38948,6.099861],[-68.985319,6.206805],[-68.265052,6.153268],[-67.695087,6.267318],[-67.34144,6.095468],[-67.521532,5.55687],[-67.744697,5.221129],[-67.823012,4.503937],[-67.621836,3.839482],[-67.337564,3.542342],[-67.303173,3.318454],[-67.809938,2.820655],[-67.447092,2.600281],[-67.181294,2.250638],[-66.876326,1.253361],[-67.065048,1.130112],[-67.259998,1.719999],[-67.53781,2.037163],[-67.868565,1.692455],[-69.816973,1.714805],[-69.804597,1.089081],[-69.218638,0.985677],[-69.252434,0.602651],[-69.452396,0.706159],[-70.015566,0.541414],[-70.020656,-0.185156],[-69.577065,-0.549992],[-69.420486,-1.122619],[-69.444102,-1.556287],[-69.893635,-4.298187],[-70.394044,-3.766591],[-70.692682,-3.742872],[-70.047709,-2.725156],[-70.813476,-2.256865],[-71.413646,-2.342802],[-71.774761,-2.16979],[-72.325787,-2.434218],[-73.070392,-2.308954],[-73.659504,-1.260491],[-74.122395,-1.002833],[-74.441601,-0.53082],[-75.106625,-0.057205],[-75.373223,-0.152032]]],"minLng":-78.990935,"minLat":-4.298187,"maxLng":-66.876326,"maxLat":12.437303},{"country":"GUY","coordinates":[[[-59.758285,8.367035],[-59.101684,7.999202],[-58.482962,7.347691],[-58.454876,6.832787],[-58.078103,6.809094],[-57.542219,6.321268],[-57.147436,5.97315],[-57.307246,5.073567],[-57.914289,4.812626],[-57.86021,4.576801],[-58.044694,4.060864],[-57.601569,3.334655],[-57.281433,3.333492],[-57.150098,2.768927],[-56.539386,1.899523],[-56.782704,1.863711],[-57.335823,1.948538],[-57.660971,1.682585],[-58.11345,1.507195],[-58.429477,1.463942],[-58.540013,1.268088],[-59.030862,1.317698],[-59.646044,1.786894],[-59.718546,2.24963],[-59.974525,2.755233],[-59.815413,3.606499],[-59.53804,3.958803],[-59.767406,4.423503],[-60.111002,4.574967],[-59.980959,5.014061],[-60.213683,5.244486],[-60.733574,5.200277],[-61.410303,5.959068],[-61.139415,6.234297],[-61.159336,6.696077],[-60.543999,6.856584],[-60.295668,7.043911],[-60.637973,7.415],[-60.550588,7.779603],[-59.758285,8.367035]]],"minLng":-61.410303,"minLat":1.268088,"maxLng":-56.539386,"maxLat":8.367035},{"country":"GUF","coordinates":[[[-52.556425,2.504705],[-52.939657,2.124858],[-53.418465,2.053389],[-53.554839,2.334897],[-53.778521,2.376703],[-54.088063,2.105557],[-54.524754,2.311849],[-54.27123,2.738748],[-54.184284,3.194172],[-54.011504,3.62257],[-54.399542,4.212611],[-54.478633,4.896756],[-53.958045,5.756548],[-53.618453,5.646529],[-52.882141,5.409851],[-51.823343,4.565768],[-51.657797,4.156232],[-52.249338,3.241094],[-52.556425,2.504705]]],"minLng":-54.524754,"minLat":2.053389,"maxLng":-51.657797,"maxLat":5.756548},{"country":"PAN","coordinates":[[[-77.881571,7.223771],[-78.214936,7.512255],[-78.429161,8.052041],[-78.182096,8.319182],[-78.435465,8.387705],[-78.622121,8.718124],[-79.120307,8.996092],[-79.557877,8.932375],[-79.760578,8.584515],[-80.164481,8.333316],[-80.382659,8.298409],[-80.480689,8.090308],[-80.00369,7.547524],[-80.276671,7.419754],[-80.421158,7.271572],[-80.886401,7.220541],[-81.059543,7.817921],[-81.189716,7.647906],[-81.519515,7.70661],[-81.721311,8.108963],[-82.131441,8.175393],[-82.390934,8.292362],[-82.820081,8.290864],[-82.850958,8.073823],[-82.965783,8.225028],[-82.913176,8.423517],[-82.829771,8.626295],[-82.868657,8.807266],[-82.719183,8.925709],[-82.927155,9.07433],[-82.932891,9.476812],[-82.546196,9.566135],[-82.187123,9.207449],[-82.207586,8.995575],[-81.808567,8.950617],[-81.714154,9.031955],[-81.439287,8.786234],[-80.947302,8.858504],[-80.521901,9.111072],[-79.9146,9.312765],[-79.573303,9.61161],[-79.021192,9.552931],[-79.05845,9.454565],[-78.500888,9.420459],[-78.055928,9.24773],[-77.729514,8.946844],[-77.353361,8.670505],[-77.474723,8.524286],[-77.242566,7.935278],[-77.431108,7.638061],[-77.753414,7.70984],[-77.881571,7.223771]]],"minLng":-82.965783,"minLat":7.220541,"maxLng":-77.242566,"maxLat":9.61161},{"country":"SUR","coordinates":[[[-57.147436,5.97315],[-55.949318,5.772878],[-55.84178,5.953125],[-55.03325,6.025291],[-53.958045,5.756548],[-54.478633,4.896756],[-54.399542,4.212611],[-54.006931,3.620038],[-54.181726,3.18978],[-54.269705,2.732392],[-54.524754,2.311849],[-55.097587,2.523748],[-55.569755,2.421506],[-55.973322,2.510364],[-56.073342,2.220795],[-55.9056,2.021996],[-55.995698,1.817667],[-56.539386,1.899523],[-57.150098,2.768927],[-57.281433,3.333492],[-57.601569,3.334655],[-58.044694,4.060864],[-57.86021,4.576801],[-57.914289,4.812626],[-57.307246,5.073567],[-57.147436,5.97315]]],"minLng":-58.044694,"minLat":1.817667,"maxLng":-53.958045,"maxLat":6.025291},{"country":"TTO","coordinates":[[[-61.68,10.76],[-61.105,10.89],[-60.895,10.855],[-60.935,10.11],[-61.77,10],[-61.95,10.09],[-61.66,10.365],[-61.68,10.76]]],"minLng":-61.95,"minLat":10,"maxLng":-60.895,"maxLat":10.89},{"country":"VEN","coordinates":[[[-71.331584,11.776284],[-71.360006,11.539994],[-71.94705,11.423282],[-71.620868,10.96946],[-71.633064,10.446494],[-72.074174,9.865651],[-71.695644,9.072263],[-71.264559,9.137195],[-71.039999,9.859993],[-71.350084,10.211935],[-71.400623,10.968969],[-70.155299,11.375482],[-70.293843,11.846822],[-69.943245,12.162307],[-69.5843,11.459611],[-68.882999,11.443385],[-68.233271,10.885744],[-68.194127,10.554653],[-67.296249,10.545868],[-66.227864,10.648627],[-65.655238,10.200799],[-64.890452,10.077215],[-64.329479,10.389599],[-64.318007,10.641418],[-63.079322,10.701724],[-61.880946,10.715625],[-62.730119,10.420269],[-62.388512,9.948204],[-61.588767,9.873067],[-60.830597,9.38134],[-60.671252,8.580174],[-60.150096,8.602757],[-59.758285,8.367035],[-60.550588,7.779603],[-60.637973,7.415],[-60.295668,7.043911],[-60.543999,6.856584],[-61.159336,6.696077],[-61.139415,6.234297],[-61.410303,5.959068],[-60.733574,5.200277],[-60.601179,4.918098],[-60.966893,4.536468],[-62.08543,4.162124],[-62.804533,4.006965],[-63.093198,3.770571],[-63.888343,4.02053],[-64.628659,4.148481],[-64.816064,4.056445],[-64.368494,3.79721],[-64.408828,3.126786],[-64.269999,2.497006],[-63.422867,2.411068],[-63.368788,2.2009],[-64.083085,1.916369],[-64.199306,1.492855],[-64.611012,1.328731],[-65.354713,1.095282],[-65.548267,0.789254],[-66.325765,0.724452],[-66.876326,1.253361],[-67.181294,2.250638],[-67.447092,2.600281],[-67.809938,2.820655],[-67.303173,3.318454],[-67.337564,3.542342],[-67.621836,3.839482],[-67.823012,4.503937],[-67.744697,5.221129],[-67.521532,5.55687],[-67.34144,6.095468],[-67.695087,6.267318],[-68.265052,6.153268],[-68.985319,6.206805],[-69.38948,6.099861],[-70.093313,6.960376],[-70.674234,7.087785],[-71.960176,6.991615],[-72.198352,7.340431],[-72.444487,7.423785],[-72.479679,7.632506],[-72.360901,8.002638],[-72.439862,8.405275],[-72.660495,8.625288],[-72.78873,9.085027],[-73.304952,9.152],[-73.027604,9.73677],[-72.905286,10.450344],[-72.614658,10.821975],[-72.227575,11.108702],[-71.973922,11.608672],[-71.331584,11.776284]]],"minLng":-73.304952,"minLat":0.724452,"maxLng":-59.758285,"maxLat":12.162307}],"height":1,"leaf":true,"bbox":[-82.965783,-4.298187,-51.657797,12.437303]},{"children":[{"country":"GTM","coordinates":[[[-90.095555,13.735338],[-90.608624,13.909771],[-91.23241,13.927832],[-91.689747,14.126218],[-92.22775,14.538829],[-92.20323,14.830103],[-92.087216,15.064585],[-92.229249,15.251447],[-91.74796,16.066565],[-90.464473,16.069562],[-90.438867,16.41011],[-90.600847,16.470778],[-90.711822,16.687483],[-91.08167,16.918477],[-91.453921,17.252177],[-91.002269,17.254658],[-91.00152,17.817595],[-90.067934,17.819326],[-89.14308,17.808319],[-89.150806,17.015577],[-89.229122,15.886938],[-88.930613,15.887273],[-88.604586,15.70638],[-88.518364,15.855389],[-88.225023,15.727722],[-88.68068,15.346247],[-89.154811,15.066419],[-89.22522,14.874286],[-89.145535,14.678019],[-89.353326,14.424133],[-89.587343,14.362586],[-89.534219,14.244816],[-89.721934,14.134228],[-90.064678,13.88197],[-90.095555,13.735338]]],"minLng":-92.229249,"minLat":13.735338,"maxLng":-88.225023,"maxLat":17.819326},{"country":"BLZ","coordinates":[[[-89.14308,17.808319],[-89.150909,17.955468],[-89.029857,18.001511],[-88.848344,17.883198],[-88.490123,18.486831],[-88.300031,18.499982],[-88.296336,18.353273],[-88.106813,18.348674],[-88.123479,18.076675],[-88.285355,17.644143],[-88.197867,17.489475],[-88.302641,17.131694],[-88.239518,17.036066],[-88.355428,16.530774],[-88.551825,16.265467],[-88.732434,16.233635],[-88.930613,15.887273],[-89.229122,15.886938],[-89.150806,17.015577],[-89.14308,17.808319]]],"minLng":-89.229122,"minLat":15.886938,"maxLng":-88.106813,"maxLat":18.499982},{"country":"CRI","coordinates":[[[-82.965783,8.225028],[-83.508437,8.446927],[-83.711474,8.656836],[-83.596313,8.830443],[-83.632642,9.051386],[-83.909886,9.290803],[-84.303402,9.487354],[-84.647644,9.615537],[-84.713351,9.908052],[-84.97566,10.086723],[-84.911375,9.795992],[-85.110923,9.55704],[-85.339488,9.834542],[-85.660787,9.933347],[-85.797445,10.134886],[-85.791709,10.439337],[-85.659314,10.754331],[-85.941725,10.895278],[-85.71254,11.088445],[-85.561852,11.217119],[-84.903003,10.952303],[-84.673069,11.082657],[-84.355931,10.999226],[-84.190179,10.79345],[-83.895054,10.726839],[-83.655612,10.938764],[-83.40232,10.395438],[-83.015677,9.992982],[-82.546196,9.566135],[-82.932891,9.476812],[-82.927155,9.07433],[-82.719183,8.925709],[-82.868657,8.807266],[-82.829771,8.626295],[-82.913176,8.423517],[-82.965783,8.225028]]],"minLng":-85.941725,"minLat":8.225028,"maxLng":-82.546196,"maxLat":11.217119},{"country":"HND","coordinates":[[[-87.316654,12.984686],[-87.489409,13.297535],[-87.793111,13.38448],[-87.723503,13.78505],[-87.859515,13.893312],[-88.065343,13.964626],[-88.503998,13.845486],[-88.541231,13.980155],[-88.843073,14.140507],[-89.058512,14.340029],[-89.353326,14.424133],[-89.145535,14.678019],[-89.22522,14.874286],[-89.154811,15.066419],[-88.68068,15.346247],[-88.225023,15.727722],[-88.121153,15.688655],[-87.901813,15.864458],[-87.61568,15.878799],[-87.522921,15.797279],[-87.367762,15.84694],[-86.903191,15.756713],[-86.440946,15.782835],[-86.119234,15.893449],[-86.001954,16.005406],[-85.683317,15.953652],[-85.444004,15.885749],[-85.182444,15.909158],[-84.983722,15.995923],[-84.52698,15.857224],[-84.368256,15.835158],[-84.063055,15.648244],[-83.773977,15.424072],[-83.410381,15.270903],[-83.147219,14.995829],[-83.489989,15.016267],[-83.628585,14.880074],[-83.975721,14.749436],[-84.228342,14.748764],[-84.449336,14.621614],[-84.649582,14.666805],[-84.820037,14.819587],[-84.924501,14.790493],[-85.052787,14.551541],[-85.148751,14.560197],[-85.165365,14.35437],[-85.514413,14.079012],[-85.698665,13.960078],[-85.801295,13.836055],[-86.096264,14.038187],[-86.312142,13.771356],[-86.520708,13.778487],[-86.755087,13.754845],[-86.733822,13.263093],[-86.880557,13.254204],[-87.005769,13.025794],[-87.316654,12.984686]]],"minLng":-89.353326,"minLat":12.984686,"maxLng":-83.147219,"maxLat":16.005406},{"country":"MEX","coordinates":[[[-97.140008,25.869997],[-97.528072,24.992144],[-97.702946,24.272343],[-97.776042,22.93258],[-97.872367,22.444212],[-97.699044,21.898689],[-97.38896,21.411019],[-97.189333,20.635433],[-96.525576,19.890931],[-96.292127,19.320371],[-95.900885,18.828024],[-94.839063,18.562717],[-94.42573,18.144371],[-93.548651,18.423837],[-92.786114,18.524839],[-92.037348,18.704569],[-91.407903,18.876083],[-90.77187,19.28412],[-90.53359,19.867418],[-90.451476,20.707522],[-90.278618,20.999855],[-89.601321,21.261726],[-88.543866,21.493675],[-87.658417,21.458846],[-87.05189,21.543543],[-86.811982,21.331515],[-86.845908,20.849865],[-87.383291,20.255405],[-87.621054,19.646553],[-87.43675,19.472403],[-87.58656,19.04013],[-87.837191,18.259816],[-88.090664,18.516648],[-88.300031,18.499982],[-88.490123,18.486831],[-88.848344,17.883198],[-89.029857,18.001511],[-89.150909,17.955468],[-89.14308,17.808319],[-90.067934,17.819326],[-91.00152,17.817595],[-91.002269,17.254658],[-91.453921,17.252177],[-91.08167,16.918477],[-90.711822,16.687483],[-90.600847,16.470778],[-90.438867,16.41011],[-90.464473,16.069562],[-91.74796,16.066565],[-92.229249,15.251447],[-92.087216,15.064585],[-92.20323,14.830103],[-92.22775,14.538829],[-93.359464,15.61543],[-93.875169,15.940164],[-94.691656,16.200975],[-95.250227,16.128318],[-96.053382,15.752088],[-96.557434,15.653515],[-97.263592,15.917065],[-98.01303,16.107312],[-98.947676,16.566043],[-99.697397,16.706164],[-100.829499,17.171071],[-101.666089,17.649026],[-101.918528,17.91609],[-102.478132,17.975751],[-103.50099,18.292295],[-103.917527,18.748572],[-104.99201,19.316134],[-105.493038,19.946767],[-105.731396,20.434102],[-105.397773,20.531719],[-105.500661,20.816895],[-105.270752,21.076285],[-105.265817,21.422104],[-105.603161,21.871146],[-105.693414,22.26908],[-106.028716,22.773752],[-106.90998,23.767774],[-107.915449,24.548915],[-108.401905,25.172314],[-109.260199,25.580609],[-109.444089,25.824884],[-109.291644,26.442934],[-109.801458,26.676176],[-110.391732,27.162115],[-110.641019,27.859876],[-111.178919,27.941241],[-111.759607,28.467953],[-112.228235,28.954409],[-112.271824,29.266844],[-112.809594,30.021114],[-113.163811,30.786881],[-113.148669,31.170966],[-113.871881,31.567608],[-114.205737,31.524045],[-114.776451,31.799532],[-114.9367,31.393485],[-114.771232,30.913617],[-114.673899,30.162681],[-114.330974,29.750432],[-113.588875,29.061611],[-113.424053,28.826174],[-113.271969,28.754783],[-113.140039,28.411289],[-112.962298,28.42519],[-112.761587,27.780217],[-112.457911,27.525814],[-112.244952,27.171727],[-111.616489,26.662817],[-111.284675,25.73259],[-110.987819,25.294606],[-110.710007,24.826004],[-110.655049,24.298595],[-110.172856,24.265548],[-109.771847,23.811183],[-109.409104,23.364672],[-109.433392,23.185588],[-109.854219,22.818272],[-110.031392,22.823078],[-110.295071,23.430973],[-110.949501,24.000964],[-111.670568,24.484423],[-112.182036,24.738413],[-112.148989,25.470125],[-112.300711,26.012004],[-112.777297,26.32196],[-113.464671,26.768186],[-113.59673,26.63946],[-113.848937,26.900064],[-114.465747,27.14209],[-115.055142,27.722727],[-114.982253,27.7982],[-114.570366,27.741485],[-114.199329,28.115003],[-114.162018,28.566112],[-114.931842,29.279479],[-115.518654,29.556362],[-115.887365,30.180794],[-116.25835,30.836464],[-116.721526,31.635744],[-117.12776,32.53534],[-115.99135,32.61239],[-114.72139,32.72083],[-114.815,32.52528],[-113.30498,32.03914],[-111.02361,31.33472],[-109.035,31.34194],[-108.24194,31.34222],[-108.24,31.754854],[-106.50759,31.75452],[-106.1429,31.39995],[-105.63159,31.08383],[-105.03737,30.64402],[-104.70575,30.12173],[-104.45697,29.57196],[-103.94,29.27],[-103.11,28.97],[-102.48,29.76],[-101.6624,29.7793],[-100.9576,29.38071],[-100.45584,28.69612],[-100.11,28.11],[-99.52,27.54],[-99.3,26.84],[-99.02,26.37],[-98.24,26.06],[-97.53,25.84],[-97.140008,25.869997]]],"minLng":-117.12776,"minLat":14.538829,"maxLng":-86.811982,"maxLat":32.72083},{"country":"NIC","coordinates":[[[-85.71254,11.088445],[-86.058488,11.403439],[-86.52585,11.806877],[-86.745992,12.143962],[-87.167516,12.458258],[-87.668493,12.90991],[-87.557467,13.064552],[-87.392386,12.914018],[-87.316654,12.984686],[-87.005769,13.025794],[-86.880557,13.254204],[-86.733822,13.263093],[-86.755087,13.754845],[-86.520708,13.778487],[-86.312142,13.771356],[-86.096264,14.038187],[-85.801295,13.836055],[-85.698665,13.960078],[-85.514413,14.079012],[-85.165365,14.35437],[-85.148751,14.560197],[-85.052787,14.551541],[-84.924501,14.790493],[-84.820037,14.819587],[-84.649582,14.666805],[-84.449336,14.621614],[-84.228342,14.748764],[-83.975721,14.749436],[-83.628585,14.880074],[-83.489989,15.016267],[-83.147219,14.995829],[-83.233234,14.899866],[-83.284162,14.676624],[-83.182126,14.310703],[-83.4125,13.970078],[-83.519832,13.567699],[-83.552207,13.127054],[-83.498515,12.869292],[-83.473323,12.419087],[-83.626104,12.32085],[-83.719613,11.893124],[-83.650858,11.629032],[-83.85547,11.373311],[-83.808936,11.103044],[-83.655612,10.938764],[-83.895054,10.726839],[-84.190179,10.79345],[-84.355931,10.999226],[-84.673069,11.082657],[-84.903003,10.952303],[-85.561852,11.217119],[-85.71254,11.088445]]],"minLng":-87.668493,"minLat":10.726839,"maxLng":-83.147219,"maxLat":15.016267},{"country":"SLV","coordinates":[[[-87.793111,13.38448],[-87.904112,13.149017],[-88.483302,13.163951],[-88.843228,13.259734],[-89.256743,13.458533],[-89.812394,13.520622],[-90.095555,13.735338],[-90.064678,13.88197],[-89.721934,14.134228],[-89.534219,14.244816],[-89.587343,14.362586],[-89.353326,14.424133],[-89.058512,14.340029],[-88.843073,14.140507],[-88.541231,13.980155],[-88.503998,13.845486],[-88.065343,13.964626],[-87.859515,13.893312],[-87.723503,13.78505],[-87.793111,13.38448]]],"minLng":-90.095555,"minLat":13.149017,"maxLng":-87.723503,"maxLat":14.424133}],"height":1,"leaf":true,"bbox":[-117.12776,8.225028,-82.546196,32.72083]},{"children":[{"country":"USA","coordinates":[[[-156.75824,21.17684],[-156.78933,21.06873],[-157.32521,21.09777],[-157.25027,21.21958],[-156.75824,21.17684]]],"minLng":-157.32521,"minLat":21.06873,"maxLng":-156.75824,"maxLat":21.21958},{"country":"USA","coordinates":[[[-156.07926,20.64397],[-156.41445,20.57241],[-156.58673,20.783],[-156.70167,20.8643],[-156.71055,20.92676],[-156.61258,21.01249],[-156.25711,20.91745],[-155.99566,20.76404],[-156.07926,20.64397]]],"minLng":-156.71055,"minLat":20.57241,"maxLng":-155.99566,"maxLat":21.01249},{"country":"USA","coordinates":[[[-155.54211,19.08348],[-155.68817,18.91619],[-155.93665,19.05939],[-155.90806,19.33888],[-156.07347,19.70294],[-156.02368,19.81422],[-155.85008,19.97729],[-155.91907,20.17395],[-155.86108,20.26721],[-155.78505,20.2487],[-155.40214,20.07975],[-155.22452,19.99302],[-155.06226,19.8591],[-154.80741,19.50871],[-154.83147,19.45328],[-155.22217,19.23972],[-155.54211,19.08348]]],"minLng":-156.07347,"minLat":18.91619,"maxLng":-154.80741,"maxLat":20.26721},{"country":"USA","coordinates":[[[-157.65283,21.32217],[-157.70703,21.26442],[-157.7786,21.27729],[-158.12667,21.31244],[-158.2538,21.53919],[-158.29265,21.57912],[-158.0252,21.71696],[-157.94161,21.65272],[-157.65283,21.32217]]],"minLng":-158.29265,"minLat":21.26442,"maxLng":-157.65283,"maxLat":21.71696},{"country":"USA","coordinates":[[[-159.34512,21.982],[-159.46372,21.88299],[-159.80051,22.06533],[-159.74877,22.1382],[-159.5962,22.23618],[-159.36569,22.21494],[-159.34512,21.982]]],"minLng":-159.80051,"minLat":21.88299,"maxLng":-159.34512,"maxLat":22.23618}],"height":1,"leaf":true,"bbox":[-159.80051,18.91619,-154.80741,22.23618]},{"children":[{"country":"BHS","coordinates":[[[-77.53466,23.75975],[-77.78,23.71],[-78.03405,24.28615],[-78.40848,24.57564],[-78.19087,25.2103],[-77.89,25.17],[-77.54,24.34],[-77.53466,23.75975]]],"minLng":-78.40848,"minLat":23.71,"maxLng":-77.53466,"maxLat":25.2103},{"country":"BHS","coordinates":[[[-77,26.59],[-77.17255,25.87918],[-77.35641,26.00735],[-77.34,26.53],[-77.78802,26.92516],[-77.79,27.04],[-77,26.59]]],"minLng":-77.79,"minLat":25.87918,"maxLng":-77,"maxLat":27.04},{"country":"BHS","coordinates":[[[-77.82,26.58],[-78.91,26.42],[-78.98,26.79],[-78.51,26.87],[-77.85,26.84],[-77.82,26.58]]],"minLng":-78.98,"minLat":26.42,"maxLng":-77.82,"maxLat":26.87},{"country":"BMU","coordinates":[[[-64.7799734332998,32.3072000581802],[-64.7873319183061,32.3039237143428],[-64.7946942710173,32.3032682700388],[-64.8094297981283,32.3098175728414],[-64.8167896352437,32.3058845718466],[-64.8101968029642,32.3022833180511],[-64.7962291465484,32.2934409732427],[-64.7815086336978,32.2868973114514],[-64.7997025513437,32.2796896417328],[-64.8066707691087,32.2747767569465],[-64.8225587873683,32.2669111289395],[-64.8287548840306,32.2669075473817],[-64.8306732143498,32.2583944840235],[-64.8399924854972,32.254782282336],[-64.8566090462354,32.2547740387514],[-64.8682296789446,32.2616393614322],[-64.8628241459563,32.2724481933959],[-64.8748651338951,32.2757120264753],[-64.8717752856644,32.2819371582026],[-64.8671422127295,32.2930760547989],[-64.8559068764437,32.2960321186471],[-64.8597429072279,32.3015842021933],[-64.8439233486717,32.3140553852543],[-64.8350242329311,32.3242161760006],[-64.8338690593672,32.3294587561557],[-64.8520298651164,32.3110911879954],[-64.8635922932573,32.3048469433363],[-64.8686668994079,32.30910745083],[-64.8721354593415,32.3041908606301],[-64.8779667328485,32.3038632800462],[-64.8780046844321,32.2907757831692],[-64.8849776658292,32.2819261366004],[-64.8783230004629,32.2613001418681],[-64.863194968877,32.2465799485801],[-64.8519819555722,32.2485519134663],[-64.842311980074,32.2492123317296],[-64.8388242605209,32.2475773472534],[-64.8334002575532,32.2462714714698],[-64.8256389530584,32.2472637398594],[-64.8205697556026,32.2531698880328],[-64.8105087275579,32.2561208974156],[-64.7900177727338,32.2659446936992],[-64.7745415970416,32.2718413023427],[-64.7644742436426,32.2855931353214],[-64.7551803442276,32.2908326702531],[-64.7423982971436,32.2996734994024],[-64.7206991797682,32.3137542201258],[-64.7117851247134,32.3176823360806],[-64.6962778813133,32.3275029115532],[-64.6768921127452,32.3324095397555],[-64.6567136927777,32.3451776458469],[-64.6532168823499,32.3494356627941],[-64.6605720384429,32.3589423487763],[-64.65125819471,32.3615600906466],[-64.6462011670816,32.36975169749],[-64.6613227512832,32.3763135008721],[-64.6690666074397,32.388444543924],[-64.6834270548595,32.3854968316788],[-64.6954617672714,32.3763221285869],[-64.70438689565,32.3704254760469],[-64.7117569982798,32.368132600249],[-64.7061764744404,32.3600110593559],[-64.700531552697,32.3590601356818],[-64.6940348033967,32.3640708659835],[-64.6895164826082,32.3633598579866],[-64.6864150099255,32.3547797587266],[-64.6824635995504,32.3540628176846],[-64.6835876652835,32.3626447677968],[-64.6801998697415,32.3631199096979],[-64.6672170444687,32.3597751617473],[-64.6598811264978,32.3497625771755],[-64.6737331235384,32.3390281851635],[-64.6887090648183,32.3342439408053],[-64.706732854446,32.3429010723036],[-64.7149301576112,32.3552188753513],[-64.7185967666669,32.3552239212394],[-64.7214189847314,32.3518830231342],[-64.7270616067222,32.3466461715475],[-64.734962460882,32.3442819830499],[-64.7383521549094,32.3407216514918],[-64.7411729976333,32.3311790864627],[-64.7423019216485,32.323311561213],[-64.7462482354281,32.318538611581],[-64.7566773739613,32.3130509130175],[-64.768738200563,32.3088369816572],[-64.7799734332998,32.3072000581802]]],"minLng":-64.8849776658292,"minLat":32.2462714714698,"maxLng":-64.6462011670816,"maxLat":32.388444543924},{"country":"USA","coordinates":[[[-94.81758,49.38905],[-94.64,48.84],[-94.32914,48.67074],[-93.63087,48.60926],[-92.61,48.45],[-91.64,48.14],[-90.83,48.27],[-89.6,48.01],[-89.272917,48.019808],[-88.378114,48.302918],[-87.439793,47.94],[-86.461991,47.553338],[-85.652363,47.220219],[-84.87608,46.900083],[-84.779238,46.637102],[-84.543749,46.538684],[-84.6049,46.4396],[-84.3367,46.40877],[-84.14212,46.512226],[-84.091851,46.275419],[-83.890765,46.116927],[-83.616131,46.116927],[-83.469551,45.994686],[-83.592851,45.816894],[-82.550925,45.347517],[-82.337763,44.44],[-82.137642,43.571088],[-82.43,42.98],[-82.9,42.43],[-83.12,42.08],[-83.142,41.975681],[-83.02981,41.832796],[-82.690089,41.675105],[-82.439278,41.675105],[-81.277747,42.209026],[-80.247448,42.3662],[-78.939362,42.863611],[-78.92,42.965],[-79.01,43.27],[-79.171674,43.466339],[-78.72028,43.625089],[-77.737885,43.629056],[-76.820034,43.628784],[-76.5,44.018459],[-76.375,44.09631],[-75.31821,44.81645],[-74.867,45.00048],[-73.34783,45.00738],[-71.50506,45.0082],[-71.405,45.255],[-71.08482,45.30524],[-70.66,45.46],[-70.305,45.915],[-69.99997,46.69307],[-69.237216,47.447781],[-68.905,47.185],[-68.23444,47.35486],[-67.79046,47.06636],[-67.79134,45.70281],[-67.13741,45.13753],[-66.96466,44.8097],[-68.03252,44.3252],[-69.06,43.98],[-70.11617,43.68405],[-70.645476,43.090238],[-70.81489,42.8653],[-70.825,42.335],[-70.495,41.805],[-70.08,41.78],[-70.185,42.145],[-69.88497,41.92283],[-69.96503,41.63717],[-70.64,41.475],[-71.12039,41.49445],[-71.86,41.32],[-72.295,41.27],[-72.87643,41.22065],[-73.71,40.931102],[-72.24126,41.11948],[-71.945,40.93],[-73.345,40.63],[-73.982,40.628],[-73.952325,40.75075],[-74.25671,40.47351],[-73.96244,40.42763],[-74.17838,39.70926],[-74.90604,38.93954],[-74.98041,39.1964],[-75.20002,39.24845],[-75.52805,39.4985],[-75.32,38.96],[-75.071835,38.782032],[-75.05673,38.40412],[-75.37747,38.01551],[-75.94023,37.21689],[-76.03127,37.2566],[-75.72205,37.93705],[-76.23287,38.319215],[-76.35,39.15],[-76.542725,38.717615],[-76.32933,38.08326],[-76.989998,38.239992],[-76.30162,37.917945],[-76.25874,36.9664],[-75.9718,36.89726],[-75.86804,36.55125],[-75.72749,35.55074],[-76.36318,34.80854],[-77.397635,34.51201],[-78.05496,33.92547],[-78.55435,33.86133],[-79.06067,33.49395],[-79.20357,33.15839],[-80.301325,32.509355],[-80.86498,32.0333],[-81.33629,31.44049],[-81.49042,30.72999],[-81.31371,30.03552],[-80.98,29.18],[-80.535585,28.47213],[-80.53,28.04],[-80.056539,26.88],[-80.088015,26.205765],[-80.13156,25.816775],[-80.38103,25.20616],[-80.68,25.08],[-81.17213,25.20126],[-81.33,25.64],[-81.71,25.87],[-82.24,26.73],[-82.70515,27.49504],[-82.85526,27.88624],[-82.65,28.55],[-82.93,29.1],[-83.70959,29.93656],[-84.1,30.09],[-85.10882,29.63615],[-85.28784,29.68612],[-85.7731,30.15261],[-86.4,30.4],[-87.53036,30.27433],[-88.41782,30.3849],[-89.18049,30.31598],[-89.593831,30.159994],[-89.413735,29.89419],[-89.43,29.48864],[-89.21767,29.29108],[-89.40823,29.15961],[-89.77928,29.30714],[-90.15463,29.11743],[-90.880225,29.148535],[-91.626785,29.677],[-92.49906,29.5523],[-93.22637,29.78375],[-93.84842,29.71363],[-94.69,29.48],[-95.60026,28.73863],[-96.59404,28.30748],[-97.14,27.83],[-97.37,27.38],[-97.38,26.69],[-97.33,26.21],[-97.14,25.87],[-97.53,25.84],[-98.24,26.06],[-99.02,26.37],[-99.3,26.84],[-99.52,27.54],[-100.11,28.11],[-100.45584,28.69612],[-100.9576,29.38071],[-101.6624,29.7793],[-102.48,29.76],[-103.11,28.97],[-103.94,29.27],[-104.45697,29.57196],[-104.70575,30.12173],[-105.03737,30.64402],[-105.63159,31.08383],[-106.1429,31.39995],[-106.50759,31.75452],[-108.24,31.754854],[-108.24194,31.34222],[-109.035,31.34194],[-111.02361,31.33472],[-113.30498,32.03914],[-114.815,32.52528],[-114.72139,32.72083],[-115.99135,32.61239],[-117.12776,32.53534],[-117.295938,33.046225],[-117.944,33.621236],[-118.410602,33.740909],[-118.519895,34.027782],[-119.081,34.078],[-119.438841,34.348477],[-120.36778,34.44711],[-120.62286,34.60855],[-120.74433,35.15686],[-121.71457,36.16153],[-122.54747,37.55176],[-122.51201,37.78339],[-122.95319,38.11371],[-123.7272,38.95166],[-123.86517,39.76699],[-124.39807,40.3132],[-124.17886,41.14202],[-124.2137,41.99964],[-124.53284,42.76599],[-124.14214,43.70838],[-124.020535,44.615895],[-123.89893,45.52341],[-124.079635,46.86475],[-124.39567,47.72017],[-124.68721,48.184433],[-124.566101,48.379715],[-123.12,48.04],[-122.58736,47.096],[-122.34,47.36],[-122.5,48.18],[-122.84,49],[-120,49],[-117.03121,49],[-116.04818,49],[-113,49],[-110.05,49],[-107.05,49],[-104.04826,48.99986],[-100.65,49],[-97.22872,49.0007],[-95.15907,49],[-95.15609,49.38425],[-94.81758,49.38905]]],"minLng":-124.68721,"minLat":25.08,"maxLng":-66.96466,"maxLat":49.38905}],"height":1,"leaf":true,"bbox":[-124.68721,23.71,-64.6462011670816,49.38905]},{"children":[{"country":"CUB","coordinates":[[[-82.268151,23.188611],[-81.404457,23.117271],[-80.618769,23.10598],[-79.679524,22.765303],[-79.281486,22.399202],[-78.347434,22.512166],[-77.993296,22.277194],[-77.146422,21.657851],[-76.523825,21.20682],[-76.19462,21.220565],[-75.598222,21.016624],[-75.67106,20.735091],[-74.933896,20.693905],[-74.178025,20.284628],[-74.296648,20.050379],[-74.961595,19.923435],[-75.63468,19.873774],[-76.323656,19.952891],[-77.755481,19.855481],[-77.085108,20.413354],[-77.492655,20.673105],[-78.137292,20.739949],[-78.482827,21.028613],[-78.719867,21.598114],[-79.285,21.559175],[-80.217475,21.827324],[-80.517535,22.037079],[-81.820943,22.192057],[-82.169992,22.387109],[-81.795002,22.636965],[-82.775898,22.68815],[-83.494459,22.168518],[-83.9088,22.154565],[-84.052151,21.910575],[-84.54703,21.801228],[-84.974911,21.896028],[-84.447062,22.20495],[-84.230357,22.565755],[-83.77824,22.788118],[-83.267548,22.983042],[-82.510436,23.078747],[-82.268151,23.188611]]],"minLng":-84.974911,"minLat":19.855481,"maxLng":-74.178025,"maxLat":23.188611},{"country":"JAM","coordinates":[[[-77.569601,18.490525],[-76.896619,18.400867],[-76.365359,18.160701],[-76.199659,17.886867],[-76.902561,17.868238],[-77.206341,17.701116],[-77.766023,17.861597],[-78.337719,18.225968],[-78.217727,18.454533],[-77.797365,18.524218],[-77.569601,18.490525]]],"minLng":-78.337719,"minLat":17.701116,"maxLng":-76.199659,"maxLat":18.524218},{"country":"HTI","coordinates":[[[-73.189791,19.915684],[-72.579673,19.871501],[-71.712361,19.714456],[-71.624873,19.169838],[-71.701303,18.785417],[-71.945112,18.6169],[-71.687738,18.31666],[-71.708305,18.044997],[-72.372476,18.214961],[-72.844411,18.145611],[-73.454555,18.217906],[-73.922433,18.030993],[-74.458034,18.34255],[-74.369925,18.664908],[-73.449542,18.526053],[-72.694937,18.445799],[-72.334882,18.668422],[-72.79165,19.101625],[-72.784105,19.483591],[-73.415022,19.639551],[-73.189791,19.915684]]],"minLng":-74.458034,"minLat":18.030993,"maxLng":-71.624873,"maxLat":19.915684},{"country":"DOM","coordinates":[[[-71.712361,19.714456],[-71.587304,19.884911],[-70.806706,19.880286],[-70.214365,19.622885],[-69.950815,19.648],[-69.76925,19.293267],[-69.222126,19.313214],[-69.254346,19.015196],[-68.809412,18.979074],[-68.317943,18.612198],[-68.689316,18.205142],[-69.164946,18.422648],[-69.623988,18.380713],[-69.952934,18.428307],[-70.133233,18.245915],[-70.517137,18.184291],[-70.669298,18.426886],[-70.99995,18.283329],[-71.40021,17.598564],[-71.657662,17.757573],[-71.708305,18.044997],[-71.687738,18.31666],[-71.945112,18.6169],[-71.701303,18.785417],[-71.624873,19.169838],[-71.712361,19.714456]]],"minLng":-71.945112,"minLat":17.598564,"maxLng":-68.317943,"maxLat":19.884911},{"country":"PRI","coordinates":[[[-66.282434,18.514762],[-65.771303,18.426679],[-65.591004,18.228035],[-65.847164,17.975906],[-66.599934,17.981823],[-67.184162,17.946553],[-67.242428,18.37446],[-67.100679,18.520601],[-66.282434,18.514762]]],"minLng":-67.242428,"minLat":17.946553,"maxLng":-65.591004,"maxLat":18.520601}],"height":1,"leaf":true,"bbox":[-84.974911,17.598564,-65.591004,23.188611]}],"height":2,"bbox":[-159.80051,-4.298187,-51.657797,49.38905]},{"children":[{"children":[{"country":"RWA","coordinates":[[[30.419105,-1.134659],[30.816135,-1.698914],[30.758309,-2.28725],[30.469696,-2.413858],[29.938359,-2.348487],[29.632176,-2.917858],[29.024926,-2.839258],[29.117479,-2.292211],[29.254835,-2.21511],[29.291887,-1.620056],[29.579466,-1.341313],[29.821519,-1.443322],[30.419105,-1.134659]]],"minLng":29.024926,"minLat":-2.917858,"maxLng":30.816135,"maxLat":-1.134659},{"country":"CMR","coordinates":[[[13.075822,2.267097],[12.951334,2.321616],[12.35938,2.192812],[11.751665,2.326758],[11.276449,2.261051],[9.649158,2.283866],[9.795196,3.073404],[9.404367,3.734527],[8.948116,3.904129],[8.744924,4.352215],[8.488816,4.495617],[8.500288,4.771983],[8.757533,5.479666],[9.233163,6.444491],[9.522706,6.453482],[10.118277,7.03877],[10.497375,7.055358],[11.058788,6.644427],[11.745774,6.981383],[11.839309,7.397042],[12.063946,7.799808],[12.218872,8.305824],[12.753672,8.717763],[12.955468,9.417772],[13.1676,9.640626],[13.308676,10.160362],[13.57295,10.798566],[14.415379,11.572369],[14.468192,11.904752],[14.577178,12.085361],[14.181336,12.483657],[14.213531,12.802035],[14.495787,12.859396],[14.893386,12.219048],[14.960152,11.555574],[14.923565,10.891325],[15.467873,9.982337],[14.909354,9.992129],[14.627201,9.920919],[14.171466,10.021378],[13.954218,9.549495],[14.544467,8.965861],[14.979996,8.796104],[15.120866,8.38215],[15.436092,7.692812],[15.27946,7.421925],[14.776545,6.408498],[14.53656,6.226959],[14.459407,5.451761],[14.558936,5.030598],[14.478372,4.732605],[14.950953,4.210389],[15.03622,3.851367],[15.405396,3.335301],[15.862732,3.013537],[15.907381,2.557389],[16.012852,2.26764],[15.940919,1.727673],[15.146342,1.964015],[14.337813,2.227875],[13.075822,2.267097]]],"minLng":8.488816,"minLat":1.727673,"maxLng":16.012852,"maxLat":12.859396},{"country":"CAF","coordinates":[[[15.27946,7.421925],[16.106232,7.497088],[16.290562,7.754307],[16.456185,7.734774],[16.705988,7.508328],[17.96493,7.890914],[18.389555,8.281304],[18.911022,8.630895],[18.81201,8.982915],[19.094008,9.074847],[20.059685,9.012706],[21.000868,9.475985],[21.723822,10.567056],[22.231129,10.971889],[22.864165,11.142395],[22.977544,10.714463],[23.554304,10.089255],[23.55725,9.681218],[23.394779,9.265068],[23.459013,8.954286],[23.805813,8.666319],[24.567369,8.229188],[25.114932,7.825104],[25.124131,7.500085],[25.796648,6.979316],[26.213418,6.546603],[26.465909,5.946717],[27.213409,5.550953],[27.374226,5.233944],[27.044065,5.127853],[26.402761,5.150875],[25.650455,5.256088],[25.278798,5.170408],[25.128833,4.927245],[24.805029,4.897247],[24.410531,5.108784],[23.297214,4.609693],[22.84148,4.710126],[22.704124,4.633051],[22.405124,4.02916],[21.659123,4.224342],[20.927591,4.322786],[20.290679,4.691678],[19.467784,5.031528],[18.932312,4.709506],[18.542982,4.201785],[18.453065,3.504386],[17.8099,3.560196],[17.133042,3.728197],[16.537058,3.198255],[16.012852,2.26764],[15.907381,2.557389],[15.862732,3.013537],[15.405396,3.335301],[15.03622,3.851367],[14.950953,4.210389],[14.478372,4.732605],[14.558936,5.030598],[14.459407,5.451761],[14.53656,6.226959],[14.776545,6.408498],[15.27946,7.421925]]],"minLng":14.459407,"minLat":2.26764,"maxLng":27.374226,"maxLat":11.142395},{"country":"TCD","coordinates":[[[14.495787,12.859396],[14.595781,13.330427],[13.954477,13.353449],[13.956699,13.996691],[13.540394,14.367134],[13.97217,15.68437],[15.247731,16.627306],[15.300441,17.92795],[15.685741,19.95718],[15.903247,20.387619],[15.487148,20.730415],[15.47106,21.04845],[15.096888,21.308519],[14.8513,22.86295],[15.86085,23.40972],[19.84926,21.49509],[23.83766,19.58047],[23.88689,15.61084],[23.02459,15.68072],[22.56795,14.94429],[22.30351,14.32682],[22.51202,14.09318],[22.18329,13.78648],[22.29658,13.37232],[22.03759,12.95546],[21.93681,12.58818],[22.28801,12.64605],[22.49762,12.26024],[22.50869,11.67936],[22.87622,11.38461],[22.864165,11.142395],[22.231129,10.971889],[21.723822,10.567056],[21.000868,9.475985],[20.059685,9.012706],[19.094008,9.074847],[18.81201,8.982915],[18.911022,8.630895],[18.389555,8.281304],[17.96493,7.890914],[16.705988,7.508328],[16.456185,7.734774],[16.290562,7.754307],[16.106232,7.497088],[15.27946,7.421925],[15.436092,7.692812],[15.120866,8.38215],[14.979996,8.796104],[14.544467,8.965861],[13.954218,9.549495],[14.171466,10.021378],[14.627201,9.920919],[14.909354,9.992129],[15.467873,9.982337],[14.923565,10.891325],[14.960152,11.555574],[14.89336,12.21905],[14.495787,12.859396]]],"minLng":13.540394,"minLat":7.421925,"maxLng":23.88689,"maxLat":23.40972},{"country":"LBY","coordinates":[[[14.8513,22.86295],[14.143871,22.491289],[13.581425,23.040506],[11.999506,23.471668],[11.560669,24.097909],[10.771364,24.562532],[10.303847,24.379313],[9.948261,24.936954],[9.910693,25.365455],[9.319411,26.094325],[9.716286,26.512206],[9.629056,27.140953],[9.756128,27.688259],[9.683885,28.144174],[9.859998,28.95999],[9.805634,29.424638],[9.48214,30.307556],[9.970017,30.539325],[10.056575,30.961831],[9.950225,31.37607],[10.636901,31.761421],[10.94479,32.081815],[11.432253,32.368903],[11.488787,33.136996],[12.66331,32.79278],[13.08326,32.87882],[13.91868,32.71196],[15.24563,32.26508],[15.71394,31.37626],[16.61162,31.18218],[18.02109,30.76357],[19.08641,30.26639],[19.57404,30.52582],[20.05335,30.98576],[19.82033,31.75179],[20.13397,32.2382],[20.85452,32.7068],[21.54298,32.8432],[22.89576,32.63858],[23.2368,32.19149],[23.60913,32.18726],[23.9275,32.01667],[24.92114,31.89936],[25.16482,31.56915],[24.80287,31.08929],[24.95762,30.6616],[24.70007,30.04419],[25,29.238655],[25,25.6825],[25,22],[25,20.00304],[23.85,20],[23.83766,19.58047],[19.84926,21.49509],[15.86085,23.40972],[14.8513,22.86295]]],"minLng":9.319411,"minLat":19.58047,"maxLng":25.16482,"maxLat":33.136996}],"height":1,"leaf":true,"bbox":[8.488816,-2.917858,30.816135,33.136996]},{"children":[{"country":"MLI","coordinates":[[[-12.17075,14.616834],[-11.834208,14.799097],[-11.666078,15.388208],[-11.349095,15.411256],[-10.650791,15.132746],[-10.086846,15.330486],[-9.700255,15.264107],[-9.550238,15.486497],[-5.537744,15.50169],[-5.315277,16.201854],[-5.488523,16.325102],[-5.971129,20.640833],[-6.453787,24.956591],[-4.923337,24.974574],[-1.550055,22.792666],[1.823228,20.610809],[2.060991,20.142233],[2.683588,19.85623],[3.146661,19.693579],[3.158133,19.057364],[4.267419,19.155265],[4.27021,16.852227],[3.723422,16.184284],[3.638259,15.56812],[2.749993,15.409525],[1.385528,15.323561],[1.015783,14.968182],[0.374892,14.928908],[-0.266257,14.924309],[-0.515854,15.116158],[-1.066363,14.973815],[-2.001035,14.559008],[-2.191825,14.246418],[-2.967694,13.79815],[-3.103707,13.541267],[-3.522803,13.337662],[-4.006391,13.472485],[-4.280405,13.228444],[-4.427166,12.542646],[-5.220942,11.713859],[-5.197843,11.375146],[-5.470565,10.95127],[-5.404342,10.370737],[-5.816926,10.222555],[-6.050452,10.096361],[-6.205223,10.524061],[-6.493965,10.411303],[-6.666461,10.430811],[-6.850507,10.138994],[-7.622759,10.147236],[-7.89959,10.297382],[-8.029944,10.206535],[-8.335377,10.494812],[-8.282357,10.792597],[-8.407311,10.909257],[-8.620321,10.810891],[-8.581305,11.136246],[-8.376305,11.393646],[-8.786099,11.812561],[-8.905265,12.088358],[-9.127474,12.30806],[-9.327616,12.334286],[-9.567912,12.194243],[-9.890993,12.060479],[-10.165214,11.844084],[-10.593224,11.923975],[-10.87083,12.177887],[-11.036556,12.211245],[-11.297574,12.077971],[-11.456169,12.076834],[-11.513943,12.442988],[-11.467899,12.754519],[-11.553398,13.141214],[-11.927716,13.422075],[-12.124887,13.994727],[-12.17075,14.616834]]],"minLng":-12.17075,"minLat":10.096361,"maxLng":4.27021,"maxLat":24.974574},{"country":"CIV","coordinates":[[[-2.856125,4.994476],[-3.311084,4.984296],[-4.00882,5.179813],[-4.649917,5.168264],[-5.834496,4.993701],[-6.528769,4.705088],[-7.518941,4.338288],[-7.712159,4.364566],[-7.635368,5.188159],[-7.539715,5.313345],[-7.570153,5.707352],[-7.993693,6.12619],[-8.311348,6.193033],[-8.60288,6.467564],[-8.385452,6.911801],[-8.485446,7.395208],[-8.439298,7.686043],[-8.280703,7.68718],[-8.221792,8.123329],[-8.299049,8.316444],[-8.203499,8.455453],[-7.8321,8.575704],[-8.079114,9.376224],[-8.309616,9.789532],[-8.229337,10.12902],[-8.029944,10.206535],[-7.89959,10.297382],[-7.622759,10.147236],[-6.850507,10.138994],[-6.666461,10.430811],[-6.493965,10.411303],[-6.205223,10.524061],[-6.050452,10.096361],[-5.816926,10.222555],[-5.404342,10.370737],[-4.954653,10.152714],[-4.779884,9.821985],[-4.330247,9.610835],[-3.980449,9.862344],[-3.511899,9.900326],[-2.827496,9.642461],[-2.56219,8.219628],[-2.983585,7.379705],[-3.24437,6.250472],[-2.810701,5.389051],[-2.856125,4.994476]]],"minLng":-8.60288,"minLat":4.338288,"maxLng":-2.56219,"maxLat":10.524061},{"country":"BFA","coordinates":[[[-2.827496,9.642461],[-3.511899,9.900326],[-3.980449,9.862344],[-4.330247,9.610835],[-4.779884,9.821985],[-4.954653,10.152714],[-5.404342,10.370737],[-5.470565,10.95127],[-5.197843,11.375146],[-5.220942,11.713859],[-4.427166,12.542646],[-4.280405,13.228444],[-4.006391,13.472485],[-3.522803,13.337662],[-3.103707,13.541267],[-2.967694,13.79815],[-2.191825,14.246418],[-2.001035,14.559008],[-1.066363,14.973815],[-0.515854,15.116158],[-0.266257,14.924309],[0.374892,14.928908],[0.295646,14.444235],[0.429928,13.988733],[0.993046,13.33575],[1.024103,12.851826],[2.177108,12.625018],[2.154474,11.94015],[1.935986,11.64115],[1.447178,11.547719],[1.24347,11.110511],[0.899563,10.997339],[0.023803,11.018682],[-0.438702,11.098341],[-0.761576,10.93693],[-1.203358,11.009819],[-2.940409,10.96269],[-2.963896,10.395335],[-2.827496,9.642461]]],"minLng":-5.470565,"minLat":9.610835,"maxLng":2.177108,"maxLat":15.116158},{"country":"GHA","coordinates":[[[1.060122,5.928837],[-0.507638,5.343473],[-1.063625,5.000548],[-1.964707,4.710462],[-2.856125,4.994476],[-2.810701,5.389051],[-3.24437,6.250472],[-2.983585,7.379705],[-2.56219,8.219628],[-2.827496,9.642461],[-2.963896,10.395335],[-2.940409,10.96269],[-1.203358,11.009819],[-0.761576,10.93693],[-0.438702,11.098341],[0.023803,11.018682],[-0.049785,10.706918],[0.36758,10.191213],[0.365901,9.465004],[0.461192,8.677223],[0.712029,8.312465],[0.490957,7.411744],[0.570384,6.914359],[0.836931,6.279979],[1.060122,5.928837]]],"minLng":-3.24437,"minLat":4.710462,"maxLng":1.060122,"maxLat":11.098341},{"country":"TGO","coordinates":[[[1.865241,6.142158],[1.060122,5.928837],[0.836931,6.279979],[0.570384,6.914359],[0.490957,7.411744],[0.712029,8.312465],[0.461192,8.677223],[0.365901,9.465004],[0.36758,10.191213],[-0.049785,10.706918],[0.023803,11.018682],[0.899563,10.997339],[0.772336,10.470808],[1.077795,10.175607],[1.425061,9.825395],[1.463043,9.334624],[1.664478,9.12859],[1.618951,6.832038],[1.865241,6.142158]]],"minLng":-0.049785,"minLat":5.928837,"maxLng":1.865241,"maxLat":11.018682}],"height":1,"leaf":true,"bbox":[-12.17075,4.338288,4.27021,24.974574]},{"children":[{"country":"GMB","coordinates":[[[-16.841525,13.151394],[-16.713729,13.594959],[-15.624596,13.623587],[-15.39877,13.860369],[-15.081735,13.876492],[-14.687031,13.630357],[-14.376714,13.62568],[-14.046992,13.794068],[-13.844963,13.505042],[-14.277702,13.280585],[-14.712197,13.298207],[-15.141163,13.509512],[-15.511813,13.27857],[-15.691001,13.270353],[-15.931296,13.130284],[-16.841525,13.151394]]],"minLng":-16.841525,"minLat":13.130284,"maxLng":-13.844963,"maxLat":13.876492},{"country":"GNB","coordinates":[[[-15.130311,11.040412],[-15.66418,11.458474],[-16.085214,11.524594],[-16.314787,11.806515],[-16.308947,11.958702],[-16.613838,12.170911],[-16.677452,12.384852],[-16.147717,12.547762],[-15.816574,12.515567],[-15.548477,12.62817],[-13.700476,12.586183],[-13.718744,12.247186],[-13.828272,12.142644],[-13.743161,11.811269],[-13.9008,11.678719],[-14.121406,11.677117],[-14.382192,11.509272],[-14.685687,11.527824],[-15.130311,11.040412]]],"minLng":-16.677452,"minLat":11.040412,"maxLng":-13.700476,"maxLat":12.62817},{"country":"GIN","coordinates":[[[-8.439298,7.686043],[-8.722124,7.711674],[-8.926065,7.309037],[-9.208786,7.313921],[-9.403348,7.526905],[-9.33728,7.928534],[-9.755342,8.541055],[-10.016567,8.428504],[-10.230094,8.406206],[-10.505477,8.348896],[-10.494315,8.715541],[-10.65477,8.977178],[-10.622395,9.26791],[-10.839152,9.688246],[-11.117481,10.045873],[-11.917277,10.046984],[-12.150338,9.858572],[-12.425929,9.835834],[-12.596719,9.620188],[-12.711958,9.342712],[-13.24655,8.903049],[-13.685154,9.494744],[-14.074045,9.886167],[-14.330076,10.01572],[-14.579699,10.214467],[-14.693232,10.656301],[-14.839554,10.876572],[-15.130311,11.040412],[-14.685687,11.527824],[-14.382192,11.509272],[-14.121406,11.677117],[-13.9008,11.678719],[-13.743161,11.811269],[-13.828272,12.142644],[-13.718744,12.247186],[-13.700476,12.586183],[-13.217818,12.575874],[-12.499051,12.33209],[-12.278599,12.35444],[-12.203565,12.465648],[-11.658301,12.386583],[-11.513943,12.442988],[-11.456169,12.076834],[-11.297574,12.077971],[-11.036556,12.211245],[-10.87083,12.177887],[-10.593224,11.923975],[-10.165214,11.844084],[-9.890993,12.060479],[-9.567912,12.194243],[-9.327616,12.334286],[-9.127474,12.30806],[-8.905265,12.088358],[-8.786099,11.812561],[-8.376305,11.393646],[-8.581305,11.136246],[-8.620321,10.810891],[-8.407311,10.909257],[-8.282357,10.792597],[-8.335377,10.494812],[-8.029944,10.206535],[-8.229337,10.12902],[-8.309616,9.789532],[-8.079114,9.376224],[-7.8321,8.575704],[-8.203499,8.455453],[-8.299049,8.316444],[-8.221792,8.123329],[-8.280703,7.68718],[-8.439298,7.686043]]],"minLng":-15.130311,"minLat":7.309037,"maxLng":-7.8321,"maxLat":12.586183},{"country":"LBR","coordinates":[[[-7.712159,4.364566],[-7.974107,4.355755],[-9.004794,4.832419],[-9.91342,5.593561],[-10.765384,6.140711],[-11.438779,6.785917],[-11.199802,7.105846],[-11.146704,7.396706],[-10.695595,7.939464],[-10.230094,8.406206],[-10.016567,8.428504],[-9.755342,8.541055],[-9.33728,7.928534],[-9.403348,7.526905],[-9.208786,7.313921],[-8.926065,7.309037],[-8.722124,7.711674],[-8.439298,7.686043],[-8.485446,7.395208],[-8.385452,6.911801],[-8.60288,6.467564],[-8.311348,6.193033],[-7.993693,6.12619],[-7.570153,5.707352],[-7.539715,5.313345],[-7.635368,5.188159],[-7.712159,4.364566]]],"minLng":-11.438779,"minLat":4.355755,"maxLng":-7.539715,"maxLat":8.541055},{"country":"SEN","coordinates":[[[-16.713729,13.594959],[-17.126107,14.373516],[-17.625043,14.729541],[-17.185173,14.919477],[-16.700706,15.621527],[-16.463098,16.135036],[-16.12069,16.455663],[-15.623666,16.369337],[-15.135737,16.587282],[-14.577348,16.598264],[-14.099521,16.304302],[-13.435738,16.039383],[-12.830658,15.303692],[-12.17075,14.616834],[-12.124887,13.994727],[-11.927716,13.422075],[-11.553398,13.141214],[-11.467899,12.754519],[-11.513943,12.442988],[-11.658301,12.386583],[-12.203565,12.465648],[-12.278599,12.35444],[-12.499051,12.33209],[-13.217818,12.575874],[-13.700476,12.586183],[-15.548477,12.62817],[-15.816574,12.515567],[-16.147717,12.547762],[-16.677452,12.384852],[-16.841525,13.151394],[-15.931296,13.130284],[-15.691001,13.270353],[-15.511813,13.27857],[-15.141163,13.509512],[-14.712197,13.298207],[-14.277702,13.280585],[-13.844963,13.505042],[-14.046992,13.794068],[-14.376714,13.62568],[-14.687031,13.630357],[-15.081735,13.876492],[-15.39877,13.860369],[-15.624596,13.623587],[-16.713729,13.594959]]],"minLng":-17.625043,"minLat":12.33209,"maxLng":-11.467899,"maxLat":16.598264},{"country":"SLE","coordinates":[[[-11.438779,6.785917],[-11.708195,6.860098],[-12.428099,7.262942],[-12.949049,7.798646],[-13.124025,8.163946],[-13.24655,8.903049],[-12.711958,9.342712],[-12.596719,9.620188],[-12.425929,9.835834],[-12.150338,9.858572],[-11.917277,10.046984],[-11.117481,10.045873],[-10.839152,9.688246],[-10.622395,9.26791],[-10.65477,8.977178],[-10.494315,8.715541],[-10.505477,8.348896],[-10.230094,8.406206],[-10.695595,7.939464],[-11.146704,7.396706],[-11.199802,7.105846],[-11.438779,6.785917]]],"minLng":-13.24655,"minLat":6.785917,"maxLng":-10.230094,"maxLat":10.046984}],"height":1,"leaf":true,"bbox":[-17.625043,4.355755,-7.539715,16.598264]},{"children":[{"country":"MRT","coordinates":[[[-12.17075,14.616834],[-12.830658,15.303692],[-13.435738,16.039383],[-14.099521,16.304302],[-14.577348,16.598264],[-15.135737,16.587282],[-15.623666,16.369337],[-16.12069,16.455663],[-16.463098,16.135036],[-16.549708,16.673892],[-16.270552,17.166963],[-16.146347,18.108482],[-16.256883,19.096716],[-16.377651,19.593817],[-16.277838,20.092521],[-16.536324,20.567866],[-17.063423,20.999752],[-16.845194,21.333323],[-12.929102,21.327071],[-13.118754,22.77122],[-12.874222,23.284832],[-11.937224,23.374594],[-11.969419,25.933353],[-8.687294,25.881056],[-8.6844,27.395744],[-4.923337,24.974574],[-6.453787,24.956591],[-5.971129,20.640833],[-5.488523,16.325102],[-5.315277,16.201854],[-5.537744,15.50169],[-9.550238,15.486497],[-9.700255,15.264107],[-10.086846,15.330486],[-10.650791,15.132746],[-11.349095,15.411256],[-11.666078,15.388208],[-11.834208,14.799097],[-12.17075,14.616834]]],"minLng":-17.063423,"minLat":14.616834,"maxLng":-4.923337,"maxLat":27.395744},{"country":"DZA","coordinates":[[[11.999506,23.471668],[8.572893,21.565661],[5.677566,19.601207],[4.267419,19.155265],[3.158133,19.057364],[3.146661,19.693579],[2.683588,19.85623],[2.060991,20.142233],[1.823228,20.610809],[-1.550055,22.792666],[-4.923337,24.974574],[-8.6844,27.395744],[-8.665124,27.589479],[-8.66559,27.656426],[-8.674116,28.841289],[-7.059228,29.579228],[-6.060632,29.7317],[-5.242129,30.000443],[-4.859646,30.501188],[-3.690441,30.896952],[-3.647498,31.637294],[-3.06898,31.724498],[-2.616605,32.094346],[-1.307899,32.262889],[-1.124551,32.651522],[-1.388049,32.864015],[-1.733455,33.919713],[-1.792986,34.527919],[-2.169914,35.168396],[-1.208603,35.714849],[-0.127454,35.888662],[0.503877,36.301273],[1.466919,36.605647],[3.161699,36.783905],[4.815758,36.865037],[5.32012,36.716519],[6.26182,37.110655],[7.330385,37.118381],[7.737078,36.885708],[8.420964,36.946427],[8.217824,36.433177],[8.376368,35.479876],[8.140981,34.655146],[7.524482,34.097376],[7.612642,33.344115],[8.430473,32.748337],[8.439103,32.506285],[9.055603,32.102692],[9.48214,30.307556],[9.805634,29.424638],[9.859998,28.95999],[9.683885,28.144174],[9.756128,27.688259],[9.629056,27.140953],[9.716286,26.512206],[9.319411,26.094325],[9.910693,25.365455],[9.948261,24.936954],[10.303847,24.379313],[10.771364,24.562532],[11.560669,24.097909],[11.999506,23.471668]]],"minLng":-8.6844,"minLat":19.057364,"maxLng":11.999506,"maxLat":37.118381},{"country":"MAR","coordinates":[[[-5.193863,35.755182],[-4.591006,35.330712],[-3.640057,35.399855],[-2.604306,35.179093],[-2.169914,35.168396],[-1.792986,34.527919],[-1.733455,33.919713],[-1.388049,32.864015],[-1.124551,32.651522],[-1.307899,32.262889],[-2.616605,32.094346],[-3.06898,31.724498],[-3.647498,31.637294],[-3.690441,30.896952],[-4.859646,30.501188],[-5.242129,30.000443],[-6.060632,29.7317],[-7.059228,29.579228],[-8.674116,28.841289],[-8.66559,27.656426],[-8.817809,27.656426],[-8.817828,27.656426],[-8.794884,27.120696],[-9.413037,27.088476],[-9.735343,26.860945],[-10.189424,26.860945],[-10.551263,26.990808],[-11.392555,26.883424],[-11.71822,26.104092],[-12.030759,26.030866],[-12.500963,24.770116],[-13.89111,23.691009],[-14.221168,22.310163],[-14.630833,21.86094],[-14.750955,21.5006],[-17.002962,21.420734],[-17.020428,21.42231],[-16.973248,21.885745],[-16.589137,22.158234],[-16.261922,22.67934],[-16.326414,23.017768],[-15.982611,23.723358],[-15.426004,24.359134],[-15.089332,24.520261],[-14.824645,25.103533],[-14.800926,25.636265],[-14.43994,26.254418],[-13.773805,26.618892],[-13.139942,27.640148],[-13.121613,27.654148],[-12.618837,28.038186],[-11.688919,28.148644],[-10.900957,28.832142],[-10.399592,29.098586],[-9.564811,29.933574],[-9.814718,31.177736],[-9.434793,32.038096],[-9.300693,32.564679],[-8.657476,33.240245],[-7.654178,33.697065],[-6.912544,34.110476],[-6.244342,35.145865],[-5.929994,35.759988],[-5.193863,35.755182]]],"minLng":-17.020428,"minLat":21.420734,"maxLng":-1.124551,"maxLat":35.759988},{"country":"ESH","coordinates":[[[-8.794884,27.120696],[-8.817828,27.656426],[-8.66559,27.656426],[-8.665124,27.589479],[-8.6844,27.395744],[-8.687294,25.881056],[-11.969419,25.933353],[-11.937224,23.374594],[-12.874222,23.284832],[-13.118754,22.77122],[-12.929102,21.327071],[-16.845194,21.333323],[-17.063423,20.999752],[-17.020428,21.42231],[-17.002962,21.420734],[-14.750955,21.5006],[-14.630833,21.86094],[-14.221168,22.310163],[-13.89111,23.691009],[-12.500963,24.770116],[-12.030759,26.030866],[-11.71822,26.104092],[-11.392555,26.883424],[-10.551263,26.990808],[-10.189424,26.860945],[-9.735343,26.860945],[-9.413037,27.088476],[-8.794884,27.120696]]],"minLng":-17.063423,"minLat":20.999752,"maxLng":-8.665124,"maxLat":27.656426},{"country":"TUN","coordinates":[[[9.48214,30.307556],[9.055603,32.102692],[8.439103,32.506285],[8.430473,32.748337],[7.612642,33.344115],[7.524482,34.097376],[8.140981,34.655146],[8.376368,35.479876],[8.217824,36.433177],[8.420964,36.946427],[9.509994,37.349994],[10.210002,37.230002],[10.18065,36.724038],[11.028867,37.092103],[11.100026,36.899996],[10.600005,36.41],[10.593287,35.947444],[10.939519,35.698984],[10.807847,34.833507],[10.149593,34.330773],[10.339659,33.785742],[10.856836,33.76874],[11.108501,33.293343],[11.488787,33.136996],[11.432253,32.368903],[10.94479,32.081815],[10.636901,31.761421],[9.950225,31.37607],[10.056575,30.961831],[9.970017,30.539325],[9.48214,30.307556]]],"minLng":7.524482,"minLat":30.307556,"maxLng":11.488787,"maxLat":37.349994}],"height":1,"leaf":true,"bbox":[-17.063423,14.616834,11.999506,37.349994]},{"children":[{"country":"MLT","coordinates":[[[14.566171,35.852721],[14.532684,35.820191],[14.436463,35.821664],[14.352334,35.872281],[14.3513,35.978399],[14.448348,35.957444],[14.537025,35.886285],[14.566171,35.852721]]],"minLng":14.3513,"minLat":35.820191,"maxLng":14.566171,"maxLat":35.978399},{"country":"MLT","coordinates":[[[14.313473,36.027569],[14.253632,36.012143],[14.194204,36.042245],[14.180354,36.060383],[14.263243,36.075809],[14.303758,36.062295],[14.320914,36.03625],[14.313473,36.027569]]],"minLng":14.180354,"minLat":36.012143,"maxLng":14.320914,"maxLat":36.075809},{"country":"ITA","coordinates":[[[15.520376,38.231155],[15.160243,37.444046],[15.309898,37.134219],[15.099988,36.619987],[14.335229,36.996631],[13.826733,37.104531],[12.431004,37.61295],[12.570944,38.126381],[13.741156,38.034966],[14.761249,38.143874],[15.520376,38.231155]]],"minLng":12.431004,"minLat":36.619987,"maxLng":15.520376,"maxLat":38.231155}],"height":1,"leaf":true,"bbox":[12.431004,35.820191,15.520376,38.231155]},{"children":[{"country":"NER","coordinates":[[[2.154474,11.94015],[2.177108,12.625018],[1.024103,12.851826],[0.993046,13.33575],[0.429928,13.988733],[0.295646,14.444235],[0.374892,14.928908],[1.015783,14.968182],[1.385528,15.323561],[2.749993,15.409525],[3.638259,15.56812],[3.723422,16.184284],[4.27021,16.852227],[4.267419,19.155265],[5.677566,19.601207],[8.572893,21.565661],[11.999506,23.471668],[13.581425,23.040506],[14.143871,22.491289],[14.8513,22.86295],[15.096888,21.308519],[15.471077,21.048457],[15.487148,20.730415],[15.903247,20.387619],[15.685741,19.95718],[15.300441,17.92795],[15.247731,16.627306],[13.972202,15.684366],[13.540394,14.367134],[13.956699,13.996691],[13.954477,13.353449],[14.595781,13.330427],[14.495787,12.859396],[14.213531,12.802035],[14.181336,12.483657],[13.995353,12.461565],[13.318702,13.556356],[13.083987,13.596147],[12.302071,13.037189],[11.527803,13.32898],[10.989593,13.387323],[10.701032,13.246918],[10.114814,13.277252],[9.524928,12.851102],[9.014933,12.826659],[7.804671,13.343527],[7.330747,13.098038],[6.820442,13.115091],[6.445426,13.492768],[5.443058,13.865924],[4.368344,13.747482],[4.107946,13.531216],[3.967283,12.956109],[3.680634,12.552903],[3.61118,11.660167],[2.848643,12.235636],[2.490164,12.233052],[2.154474,11.94015]]],"minLng":0.295646,"minLat":11.660167,"maxLng":15.903247,"maxLat":23.471668},{"country":"BEN","coordinates":[[[2.691702,6.258817],[1.865241,6.142158],[1.618951,6.832038],[1.664478,9.12859],[1.463043,9.334624],[1.425061,9.825395],[1.077795,10.175607],[0.772336,10.470808],[0.899563,10.997339],[1.24347,11.110511],[1.447178,11.547719],[1.935986,11.64115],[2.154474,11.94015],[2.490164,12.233052],[2.848643,12.235636],[3.61118,11.660167],[3.572216,11.327939],[3.797112,10.734746],[3.60007,10.332186],[3.705438,10.06321],[3.220352,9.444153],[2.912308,9.137608],[2.723793,8.506845],[2.749063,7.870734],[2.691702,6.258817]]],"minLng":0.772336,"minLat":6.142158,"maxLng":3.797112,"maxLat":12.235636},{"country":"NGA","coordinates":[[[8.500288,4.771983],[7.462108,4.412108],[7.082596,4.464689],[6.698072,4.240594],[5.898173,4.262453],[5.362805,4.887971],[5.033574,5.611802],[4.325607,6.270651],[3.57418,6.2583],[2.691702,6.258817],[2.749063,7.870734],[2.723793,8.506845],[2.912308,9.137608],[3.220352,9.444153],[3.705438,10.06321],[3.60007,10.332186],[3.797112,10.734746],[3.572216,11.327939],[3.61118,11.660167],[3.680634,12.552903],[3.967283,12.956109],[4.107946,13.531216],[4.368344,13.747482],[5.443058,13.865924],[6.445426,13.492768],[6.820442,13.115091],[7.330747,13.098038],[7.804671,13.343527],[9.014933,12.826659],[9.524928,12.851102],[10.114814,13.277252],[10.701032,13.246918],[10.989593,13.387323],[11.527803,13.32898],[12.302071,13.037189],[13.083987,13.596147],[13.318702,13.556356],[13.995353,12.461565],[14.181336,12.483657],[14.577178,12.085361],[14.468192,11.904752],[14.415379,11.572369],[13.57295,10.798566],[13.308676,10.160362],[13.1676,9.640626],[12.955468,9.417772],[12.753672,8.717763],[12.218872,8.305824],[12.063946,7.799808],[11.839309,7.397042],[11.745774,6.981383],[11.058788,6.644427],[10.497375,7.055358],[10.118277,7.03877],[9.522706,6.453482],[9.233163,6.444491],[8.757533,5.479666],[8.500288,4.771983]]],"minLng":2.691702,"minLat":4.240594,"maxLng":14.577178,"maxLat":13.865924}],"height":1,"leaf":true,"bbox":[0.295646,4.240594,15.903247,23.471668]}],"height":2,"bbox":[-17.625043,-2.917858,30.816135,38.231155]},{"children":[{"children":[{"country":"SOM","coordinates":[[[49.72862,11.5789],[50.25878,11.67957],[50.73202,12.0219],[51.1112,12.02464],[51.13387,11.74815],[51.04153,11.16651],[51.04531,10.6409],[50.83418,10.27972],[50.55239,9.19874],[50.07092,8.08173],[49.4527,6.80466],[48.59455,5.33911],[47.74079,4.2194],[46.56476,2.85529],[45.56399,2.04576],[44.06815,1.05283],[43.13597,0.2922],[42.04157,-0.91916],[41.81095,-1.44647],[41.58513,-1.68325],[40.993,-0.85829],[40.98105,2.78452],[41.855083,3.918912],[42.12861,4.23413],[42.76967,4.25259],[43.66087,4.95755],[44.9636,5.00162],[47.78942,8.003],[48.486736,8.837626],[48.93813,9.451749],[48.938233,9.9735],[48.938491,10.982327],[48.942005,11.394266],[48.948205,11.410617],[49.26776,11.43033],[49.72862,11.5789]]],"minLng":40.98105,"minLat":-1.68325,"maxLng":51.13387,"maxLat":12.02464},{"country":"DJI","coordinates":[[[43.081226,12.699639],[43.317852,12.390148],[43.286381,11.974928],[42.715874,11.735641],[43.145305,11.46204],[42.776852,10.926879],[42.55493,11.10511],[42.31414,11.0342],[41.75557,11.05091],[41.73959,11.35511],[41.66176,11.6312],[42,12.1],[42.35156,12.54223],[42.779642,12.455416],[43.081226,12.699639]]],"minLng":41.66176,"minLat":10.926879,"maxLng":43.317852,"maxLat":12.699639},{"country":"SOM","coordinates":[[[48.93813,9.451749],[48.486736,8.837626],[47.78942,8.003],[46.948328,7.996877],[43.67875,9.18358],[43.296975,9.540477],[42.92812,10.02194],[42.55876,10.57258],[42.776852,10.926879],[43.145305,11.46204],[43.47066,11.27771],[43.666668,10.864169],[44.117804,10.445538],[44.614259,10.442205],[45.556941,10.698029],[46.645401,10.816549],[47.525658,11.127228],[48.021596,11.193064],[48.378784,11.375482],[48.948206,11.410622],[48.942005,11.394266],[48.938491,10.982327],[48.938233,9.9735],[48.93813,9.451749]]],"minLng":42.55876,"minLat":7.996877,"maxLng":48.948206,"maxLat":11.46204},{"country":"YEM","coordinates":[[[53.108573,16.651051],[52.385206,16.382411],[52.191729,15.938433],[52.168165,15.59742],[51.172515,15.17525],[49.574576,14.708767],[48.679231,14.003202],[48.238947,13.94809],[47.938914,14.007233],[47.354454,13.59222],[46.717076,13.399699],[45.877593,13.347764],[45.62505,13.290946],[45.406459,13.026905],[45.144356,12.953938],[44.989533,12.699587],[44.494576,12.721653],[44.175113,12.58595],[43.482959,12.6368],[43.222871,13.22095],[43.251448,13.767584],[43.087944,14.06263],[42.892245,14.802249],[42.604873,15.213335],[42.805015,15.261963],[42.702438,15.718886],[42.823671,15.911742],[42.779332,16.347891],[43.218375,16.66689],[43.115798,17.08844],[43.380794,17.579987],[43.791519,17.319977],[44.062613,17.410359],[45.216651,17.433329],[45.399999,17.333335],[46.366659,17.233315],[46.749994,17.283338],[47.000005,16.949999],[47.466695,17.116682],[48.183344,18.166669],[49.116672,18.616668],[52.00001,19.000003],[52.782184,17.349742],[53.108573,16.651051]]],"minLng":42.604873,"minLat":12.58595,"maxLng":53.108573,"maxLat":19.000003}],"height":1,"leaf":true,"bbox":[40.98105,-1.68325,53.108573,19.000003]},{"children":[{"country":"SDN","coordinates":[[[33.963393,9.464285],[33.824963,9.484061],[33.842131,9.981915],[33.721959,10.325262],[33.206938,10.720112],[33.086766,11.441141],[33.206938,12.179338],[32.743419,12.248008],[32.67475,12.024832],[32.073892,11.97333],[32.314235,11.681484],[32.400072,11.080626],[31.850716,10.531271],[31.352862,9.810241],[30.837841,9.707237],[29.996639,10.290927],[29.618957,10.084919],[29.515953,9.793074],[29.000932,9.604232],[28.966597,9.398224],[27.97089,9.398224],[27.833551,9.604232],[27.112521,9.638567],[26.752006,9.466893],[26.477328,9.55273],[25.962307,10.136421],[25.790633,10.411099],[25.069604,10.27376],[24.794926,9.810241],[24.537415,8.917538],[24.194068,8.728696],[23.88698,8.61973],[23.805813,8.666319],[23.459013,8.954286],[23.394779,9.265068],[23.55725,9.681218],[23.554304,10.089255],[22.977544,10.714463],[22.864165,11.142395],[22.87622,11.38461],[22.50869,11.67936],[22.49762,12.26024],[22.28801,12.64605],[21.93681,12.58818],[22.03759,12.95546],[22.29658,13.37232],[22.18329,13.78648],[22.51202,14.09318],[22.30351,14.32682],[22.56795,14.94429],[23.02459,15.68072],[23.88689,15.61084],[23.83766,19.58047],[23.85,20],[25,20.00304],[25,22],[29.02,22],[32.9,22],[36.86623,22],[37.18872,21.01885],[36.96941,20.83744],[37.1147,19.80796],[37.48179,18.61409],[37.86276,18.36786],[38.41009,17.998307],[37.904,17.42754],[37.16747,17.26314],[36.85253,16.95655],[36.75389,16.29186],[36.32322,14.82249],[36.42951,14.42211],[36.27022,13.56333],[35.86363,12.57828],[35.26049,12.08286],[34.83163,11.31896],[34.73115,10.91017],[34.25745,10.63009],[33.96162,9.58358],[33.963393,9.464285]]],"minLng":21.93681,"minLat":8.61973,"maxLng":38.41009,"maxLat":22},{"country":"SSD","coordinates":[[[33.963393,9.464285],[33.97498,8.68456],[33.8255,8.37916],[33.2948,8.35458],[32.95418,7.78497],[33.56829,7.71334],[34.0751,7.22595],[34.25032,6.82607],[34.70702,6.59422],[35.298007,5.506],[34.620196,4.847123],[34.005,4.249885],[33.39,3.79],[32.68642,3.79232],[31.88145,3.55827],[31.24556,3.7819],[30.83385,3.50917],[29.95349,4.1737],[29.715995,4.600805],[29.159078,4.389267],[28.696678,4.455077],[28.428994,4.287155],[27.979977,4.408413],[27.374226,5.233944],[27.213409,5.550953],[26.465909,5.946717],[26.213418,6.546603],[25.796648,6.979316],[25.124131,7.500085],[25.114932,7.825104],[24.567369,8.229188],[23.88698,8.61973],[24.194068,8.728696],[24.537415,8.917538],[24.794926,9.810241],[25.069604,10.27376],[25.790633,10.411099],[25.962307,10.136421],[26.477328,9.55273],[26.752006,9.466893],[27.112521,9.638567],[27.833551,9.604232],[27.97089,9.398224],[28.966597,9.398224],[29.000932,9.604232],[29.515953,9.793074],[29.618957,10.084919],[29.996639,10.290927],[30.837841,9.707237],[31.352862,9.810241],[31.850716,10.531271],[32.400072,11.080626],[32.314235,11.681484],[32.073892,11.97333],[32.67475,12.024832],[32.743419,12.248008],[33.206938,12.179338],[33.086766,11.441141],[33.206938,10.720112],[33.721959,10.325262],[33.842131,9.981915],[33.824963,9.484061],[33.963393,9.464285]]],"minLng":23.88698,"minLat":3.50917,"maxLng":35.298007,"maxLat":12.248008},{"country":"UGA","coordinates":[[[31.86617,-1.02736],[30.76986,-1.01455],[30.419105,-1.134659],[29.821519,-1.443322],[29.579466,-1.341313],[29.587838,-0.587406],[29.8195,-0.2053],[29.875779,0.59738],[30.086154,1.062313],[30.468508,1.583805],[30.85267,1.849396],[31.174149,2.204465],[30.77332,2.33989],[30.83385,3.50917],[31.24556,3.7819],[31.88145,3.55827],[32.68642,3.79232],[33.39,3.79],[34.005,4.249885],[34.47913,3.5556],[34.59607,3.05374],[35.03599,1.90584],[34.6721,1.17694],[34.18,0.515],[33.893569,0.109814],[33.903711,-0.95],[31.86617,-1.02736]]],"minLng":29.579466,"minLat":-1.443322,"maxLng":35.03599,"maxLat":4.249885},{"country":"ETH","coordinates":[[[37.90607,14.95943],[38.51295,14.50547],[39.0994,14.74064],[39.34061,14.53155],[40.02625,14.51959],[40.8966,14.11864],[41.1552,13.77333],[41.59856,13.45209],[42.00975,12.86582],[42.35156,12.54223],[42,12.1],[41.66176,11.6312],[41.73959,11.35511],[41.75557,11.05091],[42.31414,11.0342],[42.55493,11.10511],[42.776852,10.926879],[42.55876,10.57258],[42.92812,10.02194],[43.29699,9.54048],[43.67875,9.18358],[46.94834,7.99688],[47.78942,8.003],[44.9636,5.00162],[43.66087,4.95755],[42.76967,4.25259],[42.12861,4.23413],[41.855083,3.918912],[41.1718,3.91909],[40.76848,4.25702],[39.85494,3.83879],[39.559384,3.42206],[38.89251,3.50074],[38.67114,3.61607],[38.43697,3.58851],[38.120915,3.598605],[36.855093,4.447864],[36.159079,4.447864],[35.817448,4.776966],[35.817448,5.338232],[35.298007,5.506],[34.70702,6.59422],[34.25032,6.82607],[34.0751,7.22595],[33.56829,7.71334],[32.95418,7.78497],[33.2948,8.35458],[33.8255,8.37916],[33.97498,8.68456],[33.96162,9.58358],[34.25745,10.63009],[34.73115,10.91017],[34.83163,11.31896],[35.26049,12.08286],[35.86363,12.57828],[36.27022,13.56333],[36.42951,14.42211],[37.59377,14.2131],[37.90607,14.95943]]],"minLng":32.95418,"minLat":3.42206,"maxLng":47.78942,"maxLat":14.95943},{"country":"ERI","coordinates":[[[42.35156,12.54223],[42.00975,12.86582],[41.59856,13.45209],[41.155194,13.77332],[40.8966,14.11864],[40.026219,14.519579],[39.34061,14.53155],[39.0994,14.74064],[38.51295,14.50547],[37.90607,14.95943],[37.59377,14.2131],[36.42951,14.42211],[36.323189,14.822481],[36.75386,16.291874],[36.85253,16.95655],[37.16747,17.26314],[37.904,17.42754],[38.41009,17.998307],[38.990623,16.840626],[39.26611,15.922723],[39.814294,15.435647],[41.179275,14.49108],[41.734952,13.921037],[42.276831,13.343992],[42.589576,13.000421],[43.081226,12.699639],[42.779642,12.455416],[42.35156,12.54223]]],"minLng":36.323189,"minLat":12.455416,"maxLng":43.081226,"maxLat":17.998307}],"height":1,"leaf":true,"bbox":[21.93681,-1.443322,47.78942,22]},{"children":[{"country":"IRN","coordinates":[[[53.921598,37.198918],[54.800304,37.392421],[55.511578,37.964117],[56.180375,37.935127],[56.619366,38.121394],[57.330434,38.029229],[58.436154,37.522309],[59.234762,37.412988],[60.377638,36.527383],[61.123071,36.491597],[61.210817,35.650072],[60.803193,34.404102],[60.52843,33.676446],[60.9637,33.528832],[60.536078,32.981269],[60.863655,32.18292],[60.941945,31.548075],[61.699314,31.379506],[61.781222,30.73585],[60.874248,29.829239],[61.369309,29.303276],[61.771868,28.699334],[62.72783,28.259645],[62.755426,27.378923],[63.233898,27.217047],[63.316632,26.756532],[61.874187,26.239975],[61.497363,25.078237],[59.616134,25.380157],[58.525761,25.609962],[57.397251,25.739902],[56.970766,26.966106],[56.492139,27.143305],[55.72371,26.964633],[54.71509,26.480658],[53.493097,26.812369],[52.483598,27.580849],[51.520763,27.86569],[50.852948,28.814521],[50.115009,30.147773],[49.57685,29.985715],[48.941333,30.31709],[48.567971,29.926778],[48.014568,30.452457],[48.004698,30.985137],[47.685286,30.984853],[47.849204,31.709176],[47.334661,32.469155],[46.109362,33.017287],[45.416691,33.967798],[45.64846,34.748138],[46.151788,35.093259],[46.07634,35.677383],[45.420618,35.977546],[44.77267,37.17045],[44.225756,37.971584],[44.421403,38.281281],[44.109225,39.428136],[44.79399,39.713003],[44.952688,39.335765],[45.457722,38.874139],[46.143623,38.741201],[46.50572,38.770605],[47.685079,39.508364],[48.060095,39.582235],[48.355529,39.288765],[48.010744,38.794015],[48.634375,38.270378],[48.883249,38.320245],[49.199612,37.582874],[50.147771,37.374567],[50.842354,36.872814],[52.264025,36.700422],[53.82579,36.965031],[53.921598,37.198918]]],"minLng":44.109225,"minLat":25.078237,"maxLng":63.316632,"maxLat":39.713003},{"country":"KWT","coordinates":[[[47.974519,29.975819],[48.183189,29.534477],[48.093943,29.306299],[48.416094,28.552004],[47.708851,28.526063],[47.459822,29.002519],[46.568713,29.099025],[47.302622,30.05907],[47.974519,29.975819]]],"minLng":46.568713,"minLat":28.526063,"maxLng":48.416094,"maxLat":30.05907},{"country":"QAT","coordinates":[[[50.810108,24.754743],[50.743911,25.482424],[51.013352,26.006992],[51.286462,26.114582],[51.589079,25.801113],[51.6067,25.21567],[51.389608,24.627386],[51.112415,24.556331],[50.810108,24.754743]]],"minLng":50.743911,"minLat":24.556331,"maxLng":51.6067,"maxLat":26.114582},{"country":"ARE","coordinates":[[[51.579519,24.245497],[51.757441,24.294073],[51.794389,24.019826],[52.577081,24.177439],[53.404007,24.151317],[54.008001,24.121758],[54.693024,24.797892],[55.439025,25.439145],[56.070821,26.055464],[56.261042,25.714606],[56.396847,24.924732],[55.886233,24.920831],[55.804119,24.269604],[55.981214,24.130543],[55.528632,23.933604],[55.525841,23.524869],[55.234489,23.110993],[55.208341,22.70833],[55.006803,22.496948],[52.000733,23.001154],[51.617708,24.014219],[51.579519,24.245497]]],"minLng":51.579519,"minLat":22.496948,"maxLng":56.396847,"maxLat":26.055464},{"country":"OMN","coordinates":[[[58.861141,21.114035],[58.487986,20.428986],[58.034318,20.481437],[57.826373,20.243002],[57.665762,19.736005],[57.7887,19.06757],[57.694391,18.94471],[57.234264,18.947991],[56.609651,18.574267],[56.512189,18.087113],[56.283521,17.876067],[55.661492,17.884128],[55.269939,17.632309],[55.2749,17.228354],[54.791002,16.950697],[54.239253,17.044981],[53.570508,16.707663],[53.108573,16.651051],[52.782184,17.349742],[52.00001,19.000003],[54.999982,19.999994],[55.666659,22.000001],[55.208341,22.70833],[55.234489,23.110993],[55.525841,23.524869],[55.528632,23.933604],[55.981214,24.130543],[55.804119,24.269604],[55.886233,24.920831],[56.396847,24.924732],[56.84514,24.241673],[57.403453,23.878594],[58.136948,23.747931],[58.729211,23.565668],[59.180502,22.992395],[59.450098,22.660271],[59.80806,22.533612],[59.806148,22.310525],[59.442191,21.714541],[59.282408,21.433886],[58.861141,21.114035]]],"minLng":52.00001,"minLat":16.651051,"maxLng":59.80806,"maxLat":24.924732},{"country":"SAU","coordinates":[[[42.779332,16.347891],[42.649573,16.774635],[42.347989,17.075806],[42.270888,17.474722],[41.754382,17.833046],[41.221391,18.6716],[40.939341,19.486485],[40.247652,20.174635],[39.801685,20.338862],[39.139399,21.291905],[39.023696,21.986875],[39.066329,22.579656],[38.492772,23.688451],[38.02386,24.078686],[37.483635,24.285495],[37.154818,24.858483],[37.209491,25.084542],[36.931627,25.602959],[36.639604,25.826228],[36.249137,26.570136],[35.640182,27.37652],[35.130187,28.063352],[34.632336,28.058546],[34.787779,28.607427],[34.83222,28.957483],[34.956037,29.356555],[36.068941,29.197495],[36.501214,29.505254],[36.740528,29.865283],[37.503582,30.003776],[37.66812,30.338665],[37.998849,30.5085],[37.002166,31.508413],[39.004886,32.010217],[39.195468,32.161009],[40.399994,31.889992],[41.889981,31.190009],[44.709499,29.178891],[46.568713,29.099025],[47.459822,29.002519],[47.708851,28.526063],[48.416094,28.552004],[48.807595,27.689628],[49.299554,27.461218],[49.470914,27.109999],[50.152422,26.689663],[50.212935,26.277027],[50.113303,25.943972],[50.239859,25.60805],[50.527387,25.327808],[50.660557,24.999896],[50.810108,24.754743],[51.112415,24.556331],[51.389608,24.627386],[51.579519,24.245497],[51.617708,24.014219],[52.000733,23.001154],[55.006803,22.496948],[55.208341,22.70833],[55.666659,22.000001],[54.999982,19.999994],[52.00001,19.000003],[49.116672,18.616668],[48.183344,18.166669],[47.466695,17.116682],[47.000005,16.949999],[46.749994,17.283338],[46.366659,17.233315],[45.399999,17.333335],[45.216651,17.433329],[44.062613,17.410359],[43.791519,17.319977],[43.380794,17.579987],[43.115798,17.08844],[43.218375,16.66689],[42.779332,16.347891]]],"minLng":34.632336,"minLat":16.347891,"maxLng":55.666659,"maxLat":32.161009},{"country":"PSE","coordinates":[[[35.545665,32.393992],[35.545252,31.782505],[35.397561,31.489086],[34.927408,31.353435],[34.970507,31.616778],[35.225892,31.754341],[34.974641,31.866582],[35.18393,32.532511],[35.545665,32.393992]]],"minLng":34.927408,"minLat":31.353435,"maxLng":35.545665,"maxLat":32.532511}],"height":1,"leaf":true,"bbox":[34.632336,16.347891,63.316632,39.713003]},{"children":[{"country":"EGY","coordinates":[[[34.9226,29.50133],[34.64174,29.09942],[34.42655,28.34399],[34.15451,27.8233],[33.92136,27.6487],[33.58811,27.97136],[33.13676,28.41765],[32.42323,29.85108],[32.32046,29.76043],[32.73482,28.70523],[33.34876,27.69989],[34.10455,26.14227],[34.47387,25.59856],[34.79507,25.03375],[35.69241,23.92671],[35.49372,23.75237],[35.52598,23.10244],[36.69069,22.20485],[36.86623,22],[32.9,22],[29.02,22],[25,22],[25,25.6825],[25,29.238655],[24.70007,30.04419],[24.95762,30.6616],[24.80287,31.08929],[25.16482,31.56915],[26.49533,31.58568],[27.45762,31.32126],[28.45048,31.02577],[28.91353,30.87005],[29.68342,31.18686],[30.09503,31.4734],[30.97693,31.55586],[31.68796,31.4296],[31.96041,30.9336],[32.19247,31.26034],[32.99392,31.02407],[33.7734,30.96746],[34.26544,31.21936],[34.9226,29.50133]]],"minLng":24.70007,"minLat":22,"maxLng":36.86623,"maxLat":31.58568},{"country":"CYP","coordinates":[[[33.973617,35.058506],[34.004881,34.978098],[32.979827,34.571869],[32.490296,34.701655],[32.256667,35.103232],[32.73178,35.140026],[32.919572,35.087833],[33.190977,35.173125],[33.383833,35.162712],[33.455922,35.101424],[33.475817,35.000345],[33.525685,35.038688],[33.675392,35.017863],[33.86644,35.093595],[33.973617,35.058506]]],"minLng":32.256667,"minLat":34.571869,"maxLng":34.004881,"maxLat":35.173125},{"country":"CYP","coordinates":[[[32.73178,35.140026],[32.802474,35.145504],[32.946961,35.386703],[33.667227,35.373216],[34.576474,35.671596],[33.900804,35.245756],[33.973617,35.058506],[33.86644,35.093595],[33.675392,35.017863],[33.525685,35.038688],[33.475817,35.000345],[33.455922,35.101424],[33.383833,35.162712],[33.190977,35.173125],[32.919572,35.087833],[32.73178,35.140026]]],"minLng":32.73178,"minLat":35.000345,"maxLng":34.576474,"maxLat":35.671596},{"country":"ISR","coordinates":[[[35.719918,32.709192],[35.545665,32.393992],[35.18393,32.532511],[34.974641,31.866582],[35.225892,31.754341],[34.970507,31.616778],[34.927408,31.353435],[35.397561,31.489086],[35.420918,31.100066],[34.922603,29.501326],[34.265433,31.219361],[34.556372,31.548824],[34.488107,31.605539],[34.752587,32.072926],[34.955417,32.827376],[35.098457,33.080539],[35.126053,33.0909],[35.460709,33.08904],[35.552797,33.264275],[35.821101,33.277426],[35.836397,32.868123],[35.700798,32.716014],[35.719918,32.709192]]],"minLng":34.265433,"minLat":29.501326,"maxLng":35.836397,"maxLat":33.277426}],"height":1,"leaf":true,"bbox":[24.70007,22,36.86623,35.671596]}],"height":2,"bbox":[21.93681,-1.68325,63.316632,39.713003]},{"children":[{"children":[{"country":"IND","coordinates":[[[77.837451,35.49401],[78.912269,34.321936],[78.811086,33.506198],[79.208892,32.994395],[79.176129,32.48378],[78.458446,32.618164],[78.738894,31.515906],[79.721367,30.882715],[81.111256,30.183481],[80.476721,29.729865],[80.088425,28.79447],[81.057203,28.416095],[81.999987,27.925479],[83.304249,27.364506],[84.675018,27.234901],[85.251779,26.726198],[86.024393,26.630985],[87.227472,26.397898],[88.060238,26.414615],[88.174804,26.810405],[88.043133,27.445819],[88.120441,27.876542],[88.730326,28.086865],[88.814248,27.299316],[88.835643,27.098966],[89.744528,26.719403],[90.373275,26.875724],[91.217513,26.808648],[92.033484,26.83831],[92.103712,27.452614],[91.696657,27.771742],[92.503119,27.896876],[93.413348,28.640629],[94.56599,29.277438],[95.404802,29.031717],[96.117679,29.452802],[96.586591,28.83098],[96.248833,28.411031],[97.327114,28.261583],[97.402561,27.882536],[97.051989,27.699059],[97.133999,27.083774],[96.419366,27.264589],[95.124768,26.573572],[95.155153,26.001307],[94.603249,25.162495],[94.552658,24.675238],[94.106742,23.850741],[93.325188,24.078556],[93.286327,23.043658],[93.060294,22.703111],[93.166128,22.27846],[92.672721,22.041239],[92.146035,23.627499],[91.869928,23.624346],[91.706475,22.985264],[91.158963,23.503527],[91.46773,24.072639],[91.915093,24.130414],[92.376202,24.976693],[91.799596,25.147432],[90.872211,25.132601],[89.920693,25.26975],[89.832481,25.965082],[89.355094,26.014407],[88.563049,26.446526],[88.209789,25.768066],[88.931554,25.238692],[88.306373,24.866079],[88.084422,24.501657],[88.69994,24.233715],[88.52977,23.631142],[88.876312,22.879146],[89.031961,22.055708],[88.888766,21.690588],[88.208497,21.703172],[86.975704,21.495562],[87.033169,20.743308],[86.499351,20.151638],[85.060266,19.478579],[83.941006,18.30201],[83.189217,17.671221],[82.192792,17.016636],[82.191242,16.556664],[81.692719,16.310219],[80.791999,15.951972],[80.324896,15.899185],[80.025069,15.136415],[80.233274,13.835771],[80.286294,13.006261],[79.862547,12.056215],[79.857999,10.357275],[79.340512,10.308854],[78.885345,9.546136],[79.18972,9.216544],[78.277941,8.933047],[77.941165,8.252959],[77.539898,7.965535],[76.592979,8.899276],[76.130061,10.29963],[75.746467,11.308251],[75.396101,11.781245],[74.864816,12.741936],[74.616717,13.992583],[74.443859,14.617222],[73.534199,15.990652],[73.119909,17.92857],[72.820909,19.208234],[72.824475,20.419503],[72.630533,21.356009],[71.175273,20.757441],[70.470459,20.877331],[69.16413,22.089298],[69.644928,22.450775],[69.349597,22.84318],[68.176645,23.691965],[68.842599,24.359134],[71.04324,24.356524],[70.844699,25.215102],[70.282873,25.722229],[70.168927,26.491872],[69.514393,26.940966],[70.616496,27.989196],[71.777666,27.91318],[72.823752,28.961592],[73.450638,29.976413],[74.42138,30.979815],[74.405929,31.692639],[75.258642,32.271105],[74.451559,32.7649],[74.104294,33.441473],[73.749948,34.317699],[74.240203,34.748887],[75.757061,34.504923],[76.871722,34.653544],[77.837451,35.49401]]],"minLng":68.176645,"minLat":7.965535,"maxLng":97.402561,"maxLat":35.49401},{"country":"LKA","coordinates":[[[81.787959,7.523055],[81.637322,6.481775],[81.21802,6.197141],[80.348357,5.96837],[79.872469,6.763463],[79.695167,8.200843],[80.147801,9.824078],[80.838818,9.268427],[81.304319,8.564206],[81.787959,7.523055]]],"minLng":79.695167,"minLat":5.96837,"maxLng":81.787959,"maxLat":9.824078},{"country":"NPL","coordinates":[[[88.120441,27.876542],[88.043133,27.445819],[88.174804,26.810405],[88.060238,26.414615],[87.227472,26.397898],[86.024393,26.630985],[85.251779,26.726198],[84.675018,27.234901],[83.304249,27.364506],[81.999987,27.925479],[81.057203,28.416095],[80.088425,28.79447],[80.476721,29.729865],[81.111256,30.183481],[81.525804,30.422717],[82.327513,30.115268],[83.337115,29.463732],[83.898993,29.320226],[84.23458,28.839894],[85.011638,28.642774],[85.82332,28.203576],[86.954517,27.974262],[88.120441,27.876542]]],"minLng":80.088425,"minLat":26.397898,"maxLng":88.174804,"maxLat":30.422717},{"country":"MMR","coordinates":[[[99.543309,20.186598],[98.959676,19.752981],[98.253724,19.708203],[97.797783,18.62708],[97.375896,18.445438],[97.859123,17.567946],[98.493761,16.837836],[98.903348,16.177824],[98.537376,15.308497],[98.192074,15.123703],[98.430819,14.622028],[99.097755,13.827503],[99.212012,13.269294],[99.196354,12.804748],[99.587286,11.892763],[99.038121,10.960546],[98.553551,9.93296],[98.457174,10.675266],[98.764546,11.441292],[98.428339,12.032987],[98.509574,13.122378],[98.103604,13.64046],[97.777732,14.837286],[97.597072,16.100568],[97.16454,16.928734],[96.505769,16.427241],[95.369352,15.71439],[94.808405,15.803454],[94.188804,16.037936],[94.533486,17.27724],[94.324817,18.213514],[93.540988,19.366493],[93.663255,19.726962],[93.078278,19.855145],[92.368554,20.670883],[92.303234,21.475485],[92.652257,21.324048],[92.672721,22.041239],[93.166128,22.27846],[93.060294,22.703111],[93.286327,23.043658],[93.325188,24.078556],[94.106742,23.850741],[94.552658,24.675238],[94.603249,25.162495],[95.155153,26.001307],[95.124768,26.573572],[96.419366,27.264589],[97.133999,27.083774],[97.051989,27.699059],[97.402561,27.882536],[97.327114,28.261583],[97.911988,28.335945],[98.246231,27.747221],[98.68269,27.508812],[98.712094,26.743536],[98.671838,25.918703],[97.724609,25.083637],[97.60472,23.897405],[98.660262,24.063286],[98.898749,23.142722],[99.531992,22.949039],[99.240899,22.118314],[99.983489,21.742937],[100.416538,21.558839],[101.150033,21.849984],[101.180005,21.436573],[100.329101,20.786122],[100.115988,20.41785],[99.543309,20.186598]]],"minLng":92.303234,"minLat":9.93296,"maxLng":101.180005,"maxLat":28.335945}],"height":1,"leaf":true,"bbox":[68.176645,5.96837,101.180005,35.49401]},{"children":[{"country":"CHN","coordinates":[[[127.657407,49.76027],[129.397818,49.4406],[130.582293,48.729687],[130.987282,47.790132],[132.506672,47.78897],[133.373596,48.183442],[135.026311,48.47823],[134.500814,47.57844],[134.112362,47.212467],[133.769644,46.116927],[133.097127,45.144066],[131.883454,45.321162],[131.025212,44.967953],[131.288555,44.11152],[131.144688,42.92999],[130.633866,42.903015],[130.640016,42.395009],[129.994267,42.985387],[129.596669,42.424982],[128.052215,41.994285],[128.208433,41.466772],[127.343783,41.503152],[126.869083,41.816569],[126.182045,41.107336],[125.079942,40.569824],[124.265625,39.928493],[122.86757,39.637788],[122.131388,39.170452],[121.054554,38.897471],[121.585995,39.360854],[121.376757,39.750261],[122.168595,40.422443],[121.640359,40.94639],[120.768629,40.593388],[119.639602,39.898056],[119.023464,39.252333],[118.042749,39.204274],[117.532702,38.737636],[118.059699,38.061476],[118.87815,37.897325],[118.911636,37.448464],[119.702802,37.156389],[120.823457,37.870428],[121.711259,37.481123],[122.357937,37.454484],[122.519995,36.930614],[121.104164,36.651329],[120.637009,36.11144],[119.664562,35.609791],[119.151208,34.909859],[120.227525,34.360332],[120.620369,33.376723],[121.229014,32.460319],[121.908146,31.692174],[121.891919,30.949352],[121.264257,30.676267],[121.503519,30.142915],[122.092114,29.83252],[121.938428,29.018022],[121.684439,28.225513],[121.125661,28.135673],[120.395473,27.053207],[119.585497,25.740781],[118.656871,24.547391],[117.281606,23.624501],[115.890735,22.782873],[114.763827,22.668074],[114.152547,22.22376],[113.80678,22.54834],[113.241078,22.051367],[111.843592,21.550494],[110.785466,21.397144],[110.444039,20.341033],[109.889861,20.282457],[109.627655,21.008227],[109.864488,21.395051],[108.522813,21.715212],[108.05018,21.55238],[107.04342,21.811899],[106.567273,22.218205],[106.725403,22.794268],[105.811247,22.976892],[105.329209,23.352063],[104.476858,22.81915],[103.504515,22.703757],[102.706992,22.708795],[102.170436,22.464753],[101.652018,22.318199],[101.80312,21.174367],[101.270026,21.201652],[101.180005,21.436573],[101.150033,21.849984],[100.416538,21.558839],[99.983489,21.742937],[99.240899,22.118314],[99.531992,22.949039],[98.898749,23.142722],[98.660262,24.063286],[97.60472,23.897405],[97.724609,25.083637],[98.671838,25.918703],[98.712094,26.743536],[98.68269,27.508812],[98.246231,27.747221],[97.911988,28.335945],[97.327114,28.261583],[96.248833,28.411031],[96.586591,28.83098],[96.117679,29.452802],[95.404802,29.031717],[94.56599,29.277438],[93.413348,28.640629],[92.503119,27.896876],[91.696657,27.771742],[91.258854,28.040614],[90.730514,28.064954],[90.015829,28.296439],[89.47581,28.042759],[88.814248,27.299316],[88.730326,28.086865],[88.120441,27.876542],[86.954517,27.974262],[85.82332,28.203576],[85.011638,28.642774],[84.23458,28.839894],[83.898993,29.320226],[83.337115,29.463732],[82.327513,30.115268],[81.525804,30.422717],[81.111256,30.183481],[79.721367,30.882715],[78.738894,31.515906],[78.458446,32.618164],[79.176129,32.48378],[79.208892,32.994395],[78.811086,33.506198],[78.912269,34.321936],[77.837451,35.49401],[76.192848,35.898403],[75.896897,36.666806],[75.158028,37.133031],[74.980002,37.41999],[74.829986,37.990007],[74.864816,38.378846],[74.257514,38.606507],[73.928852,38.505815],[73.675379,39.431237],[73.960013,39.660008],[73.822244,39.893973],[74.776862,40.366425],[75.467828,40.562072],[76.526368,40.427946],[76.904484,41.066486],[78.187197,41.185316],[78.543661,41.582243],[80.11943,42.123941],[80.25999,42.349999],[80.18015,42.920068],[80.866206,43.180362],[79.966106,44.917517],[81.947071,45.317027],[82.458926,45.53965],[83.180484,47.330031],[85.16429,47.000956],[85.720484,47.452969],[85.768233,48.455751],[86.598776,48.549182],[87.35997,49.214981],[87.751264,49.297198],[88.013832,48.599463],[88.854298,48.069082],[90.280826,47.693549],[90.970809,46.888146],[90.585768,45.719716],[90.94554,45.286073],[92.133891,45.115076],[93.480734,44.975472],[94.688929,44.352332],[95.306875,44.241331],[95.762455,43.319449],[96.349396,42.725635],[97.451757,42.74889],[99.515817,42.524691],[100.845866,42.663804],[101.83304,42.514873],[103.312278,41.907468],[104.522282,41.908347],[104.964994,41.59741],[106.129316,42.134328],[107.744773,42.481516],[109.243596,42.519446],[110.412103,42.871234],[111.129682,43.406834],[111.829588,43.743118],[111.667737,44.073176],[111.348377,44.457442],[111.873306,45.102079],[112.436062,45.011646],[113.463907,44.808893],[114.460332,45.339817],[115.985096,45.727235],[116.717868,46.388202],[117.421701,46.672733],[118.874326,46.805412],[119.66327,46.69268],[119.772824,47.048059],[118.866574,47.74706],[118.064143,48.06673],[117.295507,47.697709],[116.308953,47.85341],[115.742837,47.726545],[115.485282,48.135383],[116.191802,49.134598],[116.678801,49.888531],[117.879244,49.510983],[119.288461,50.142883],[119.279366,50.582908],[120.18205,51.643566],[120.738191,51.964115],[120.725789,52.516226],[120.177089,52.753886],[121.003085,53.251401],[122.245748,53.431726],[123.571507,53.458804],[125.068211,53.161045],[125.946349,52.792799],[126.564399,51.784255],[126.939157,51.353894],[127.287456,50.739797],[127.657407,49.76027]]],"minLng":73.675379,"minLat":20.282457,"maxLng":135.026311,"maxLat":53.458804},{"country":"BGD","coordinates":[[[92.672721,22.041239],[92.652257,21.324048],[92.303234,21.475485],[92.368554,20.670883],[92.082886,21.192195],[92.025215,21.70157],[91.834891,22.182936],[91.417087,22.765019],[90.496006,22.805017],[90.586957,22.392794],[90.272971,21.836368],[89.847467,22.039146],[89.70205,21.857116],[89.418863,21.966179],[89.031961,22.055708],[88.876312,22.879146],[88.52977,23.631142],[88.69994,24.233715],[88.084422,24.501657],[88.306373,24.866079],[88.931554,25.238692],[88.209789,25.768066],[88.563049,26.446526],[89.355094,26.014407],[89.832481,25.965082],[89.920693,25.26975],[90.872211,25.132601],[91.799596,25.147432],[92.376202,24.976693],[91.915093,24.130414],[91.46773,24.072639],[91.158963,23.503527],[91.706475,22.985264],[91.869928,23.624346],[92.146035,23.627499],[92.672721,22.041239]]],"minLng":88.084422,"minLat":20.670883,"maxLng":92.672721,"maxLat":26.446526},{"country":"BTN","coordinates":[[[91.696657,27.771742],[92.103712,27.452614],[92.033484,26.83831],[91.217513,26.808648],[90.373275,26.875724],[89.744528,26.719403],[88.835643,27.098966],[88.814248,27.299316],[89.47581,28.042759],[90.015829,28.296439],[90.730514,28.064954],[91.258854,28.040614],[91.696657,27.771742]]],"minLng":88.814248,"minLat":26.719403,"maxLng":92.103712,"maxLat":28.296439},{"country":"KOR","coordinates":[[[128.349716,38.612243],[129.21292,37.432392],[129.46045,36.784189],[129.468304,35.632141],[129.091377,35.082484],[128.18585,34.890377],[127.386519,34.475674],[126.485748,34.390046],[126.37392,34.93456],[126.559231,35.684541],[126.117398,36.725485],[126.860143,36.893924],[126.174759,37.749686],[126.237339,37.840378],[126.68372,37.804773],[127.073309,38.256115],[127.780035,38.304536],[128.205746,38.370397],[128.349716,38.612243]]],"minLng":126.117398,"minLat":34.390046,"maxLng":129.468304,"maxLat":38.612243},{"country":"MNG","coordinates":[[[87.751264,49.297198],[88.805567,49.470521],[90.713667,50.331812],[92.234712,50.802171],[93.104219,50.49529],[94.147566,50.480537],[94.815949,50.013433],[95.814028,49.977467],[97.259728,49.726061],[98.231762,50.422401],[97.82574,51.010995],[98.861491,52.047366],[99.981732,51.634006],[100.88948,51.516856],[102.065223,51.259921],[102.255909,50.510561],[103.676545,50.089966],[104.621552,50.275329],[105.886591,50.406019],[106.888804,50.274296],[107.868176,49.793705],[108.475167,49.282548],[109.402449,49.292961],[110.662011,49.130128],[111.581231,49.377968],[112.89774,49.543565],[114.362456,50.248303],[114.96211,50.140247],[115.485695,49.805177],[116.678801,49.888531],[116.191802,49.134598],[115.485282,48.135383],[115.742837,47.726545],[116.308953,47.85341],[117.295507,47.697709],[118.064143,48.06673],[118.866574,47.74706],[119.772824,47.048059],[119.66327,46.69268],[118.874326,46.805412],[117.421701,46.672733],[116.717868,46.388202],[115.985096,45.727235],[114.460332,45.339817],[113.463907,44.808893],[112.436062,45.011646],[111.873306,45.102079],[111.348377,44.457442],[111.667737,44.073176],[111.829588,43.743118],[111.129682,43.406834],[110.412103,42.871234],[109.243596,42.519446],[107.744773,42.481516],[106.129316,42.134328],[104.964994,41.59741],[104.522282,41.908347],[103.312278,41.907468],[101.83304,42.514873],[100.845866,42.663804],[99.515817,42.524691],[97.451757,42.74889],[96.349396,42.725635],[95.762455,43.319449],[95.306875,44.241331],[94.688929,44.352332],[93.480734,44.975472],[92.133891,45.115076],[90.94554,45.286073],[90.585768,45.719716],[90.970809,46.888146],[90.280826,47.693549],[88.854298,48.069082],[88.013832,48.599463],[87.751264,49.297198]]],"minLng":87.751264,"minLat":41.59741,"maxLng":119.772824,"maxLat":52.047366},{"country":"PRK","coordinates":[[[130.640016,42.395009],[130.780007,42.220007],[130.400031,42.280004],[129.965949,41.941368],[129.667362,41.601104],[129.705189,40.882828],[129.188115,40.661808],[129.0104,40.485436],[128.633368,40.189847],[127.967414,40.025413],[127.533436,39.75685],[127.50212,39.323931],[127.385434,39.213472],[127.783343,39.050898],[128.349716,38.612243],[128.205746,38.370397],[127.780035,38.304536],[127.073309,38.256115],[126.68372,37.804773],[126.237339,37.840378],[126.174759,37.749686],[125.689104,37.94001],[125.568439,37.752089],[125.27533,37.669071],[125.240087,37.857224],[124.981033,37.948821],[124.712161,38.108346],[124.985994,38.548474],[125.221949,38.665857],[125.132859,38.848559],[125.38659,39.387958],[125.321116,39.551385],[124.737482,39.660344],[124.265625,39.928493],[125.079942,40.569824],[126.182045,41.107336],[126.869083,41.816569],[127.343783,41.503152],[128.208433,41.466772],[128.052215,41.994285],[129.596669,42.424982],[129.994267,42.985387],[130.640016,42.395009]]],"minLng":124.265625,"minLat":37.669071,"maxLng":130.780007,"maxLat":42.985387},{"country":"TWN","coordinates":[[[121.777818,24.394274],[121.175632,22.790857],[120.74708,21.970571],[120.220083,22.814861],[120.106189,23.556263],[120.69468,24.538451],[121.495044,25.295459],[121.951244,24.997596],[121.777818,24.394274]]],"minLng":120.106189,"minLat":21.970571,"maxLng":121.951244,"maxLat":25.295459}],"height":1,"leaf":true,"bbox":[73.675379,20.282457,135.026311,53.458804]},{"children":[{"country":"LAO","coordinates":[[[105.218777,14.273212],[105.544338,14.723934],[105.589039,15.570316],[104.779321,16.441865],[104.716947,17.428859],[103.956477,18.240954],[103.200192,18.309632],[102.998706,17.961695],[102.413005,17.932782],[102.113592,18.109102],[101.059548,17.512497],[101.035931,18.408928],[101.282015,19.462585],[100.606294,19.508344],[100.548881,20.109238],[100.115988,20.41785],[100.329101,20.786122],[101.180005,21.436573],[101.270026,21.201652],[101.80312,21.174367],[101.652018,22.318199],[102.170436,22.464753],[102.754896,21.675137],[103.203861,20.766562],[104.435,20.758733],[104.822574,19.886642],[104.183388,19.624668],[103.896532,19.265181],[105.094598,18.666975],[105.925762,17.485315],[106.556008,16.604284],[107.312706,15.908538],[107.564525,15.202173],[107.382727,14.202441],[106.496373,14.570584],[106.043946,13.881091],[105.218777,14.273212]]],"minLng":100.115988,"minLat":13.881091,"maxLng":107.564525,"maxLat":22.464753},{"country":"KHM","coordinates":[[[103.49728,10.632555],[103.09069,11.153661],[102.584932,12.186595],[102.348099,13.394247],[102.988422,14.225721],[104.281418,14.416743],[105.218777,14.273212],[106.043946,13.881091],[106.496373,14.570584],[107.382727,14.202441],[107.614548,13.535531],[107.491403,12.337206],[105.810524,11.567615],[106.24967,10.961812],[105.199915,10.88931],[104.334335,10.486544],[103.49728,10.632555]]],"minLng":102.348099,"minLat":10.486544,"maxLng":107.614548,"maxLat":14.570584},{"country":"CHN","coordinates":[[[110.339188,18.678395],[109.47521,18.197701],[108.655208,18.507682],[108.626217,19.367888],[109.119056,19.821039],[110.211599,20.101254],[110.786551,20.077534],[111.010051,19.69593],[110.570647,19.255879],[110.339188,18.678395]]],"minLng":108.626217,"minLat":18.197701,"maxLng":111.010051,"maxLat":20.101254},{"country":"THA","coordinates":[[[102.584932,12.186595],[101.687158,12.64574],[100.83181,12.627085],[100.978467,13.412722],[100.097797,13.406856],[100.018733,12.307001],[99.478921,10.846367],[99.153772,9.963061],[99.222399,9.239255],[99.873832,9.207862],[100.279647,8.295153],[100.459274,7.429573],[101.017328,6.856869],[101.623079,6.740622],[102.141187,6.221636],[101.814282,5.810808],[101.154219,5.691384],[101.075516,6.204867],[100.259596,6.642825],[100.085757,6.464489],[99.690691,6.848213],[99.519642,7.343454],[98.988253,7.907993],[98.503786,8.382305],[98.339662,7.794512],[98.150009,8.350007],[98.25915,8.973923],[98.553551,9.93296],[99.038121,10.960546],[99.587286,11.892763],[99.196354,12.804748],[99.212012,13.269294],[99.097755,13.827503],[98.430819,14.622028],[98.192074,15.123703],[98.537376,15.308497],[98.903348,16.177824],[98.493761,16.837836],[97.859123,17.567946],[97.375896,18.445438],[97.797783,18.62708],[98.253724,19.708203],[98.959676,19.752981],[99.543309,20.186598],[100.115988,20.41785],[100.548881,20.109238],[100.606294,19.508344],[101.282015,19.462585],[101.035931,18.408928],[101.059548,17.512497],[102.113592,18.109102],[102.413005,17.932782],[102.998706,17.961695],[103.200192,18.309632],[103.956477,18.240954],[104.716947,17.428859],[104.779321,16.441865],[105.589039,15.570316],[105.544338,14.723934],[105.218777,14.273212],[104.281418,14.416743],[102.988422,14.225721],[102.348099,13.394247],[102.584932,12.186595]]],"minLng":97.375896,"minLat":5.691384,"maxLng":105.589039,"maxLat":20.41785},{"country":"VNM","coordinates":[[[108.05018,21.55238],[106.715068,20.696851],[105.881682,19.75205],[105.662006,19.058165],[106.426817,18.004121],[107.361954,16.697457],[108.269495,16.079742],[108.877107,15.276691],[109.33527,13.426028],[109.200136,11.666859],[108.36613,11.008321],[107.220929,10.364484],[106.405113,9.53084],[105.158264,8.59976],[104.795185,9.241038],[105.076202,9.918491],[104.334335,10.486544],[105.199915,10.88931],[106.24967,10.961812],[105.810524,11.567615],[107.491403,12.337206],[107.614548,13.535531],[107.382727,14.202441],[107.564525,15.202173],[107.312706,15.908538],[106.556008,16.604284],[105.925762,17.485315],[105.094598,18.666975],[103.896532,19.265181],[104.183388,19.624668],[104.822574,19.886642],[104.435,20.758733],[103.203861,20.766562],[102.754896,21.675137],[102.170436,22.464753],[102.706992,22.708795],[103.504515,22.703757],[104.476858,22.81915],[105.329209,23.352063],[105.811247,22.976892],[106.725403,22.794268],[106.567273,22.218205],[107.04342,21.811899],[108.05018,21.55238]]],"minLng":102.170436,"minLat":8.59976,"maxLng":109.33527,"maxLat":23.352063}],"height":1,"leaf":true,"bbox":[97.375896,5.691384,111.010051,23.352063]},{"children":[{"country":"JPN","coordinates":[[[140.976388,37.142074],[140.59977,36.343983],[140.774074,35.842877],[140.253279,35.138114],[138.975528,34.6676],[137.217599,34.606286],[135.792983,33.464805],[135.120983,33.849071],[135.079435,34.596545],[133.340316,34.375938],[132.156771,33.904933],[130.986145,33.885761],[132.000036,33.149992],[131.33279,31.450355],[130.686318,31.029579],[130.20242,31.418238],[130.447676,32.319475],[129.814692,32.61031],[129.408463,33.296056],[130.353935,33.604151],[130.878451,34.232743],[131.884229,34.749714],[132.617673,35.433393],[134.608301,35.731618],[135.677538,35.527134],[136.723831,37.304984],[137.390612,36.827391],[138.857602,37.827485],[139.426405,38.215962],[140.05479,39.438807],[139.883379,40.563312],[140.305783,41.195005],[141.368973,41.37856],[141.914263,39.991616],[141.884601,39.180865],[140.959489,38.174001],[140.976388,37.142074]]],"minLng":129.408463,"minLat":31.029579,"maxLng":141.914263,"maxLat":41.37856},{"country":"JPN","coordinates":[[[134.638428,34.149234],[134.766379,33.806335],[134.203416,33.201178],[133.79295,33.521985],[133.280268,33.28957],[133.014858,32.704567],[132.363115,32.989382],[132.371176,33.463642],[132.924373,34.060299],[133.492968,33.944621],[133.904106,34.364931],[134.638428,34.149234]]],"minLng":132.363115,"minLat":32.704567,"maxLng":134.766379,"maxLat":34.364931},{"country":"JPN","coordinates":[[[143.910162,44.1741],[144.613427,43.960883],[145.320825,44.384733],[145.543137,43.262088],[144.059662,42.988358],[143.18385,41.995215],[141.611491,42.678791],[141.067286,41.584594],[139.955106,41.569556],[139.817544,42.563759],[140.312087,43.333273],[141.380549,43.388825],[141.671952,44.772125],[141.967645,45.551483],[143.14287,44.510358],[143.910162,44.1741]]],"minLng":139.817544,"minLat":41.569556,"maxLng":145.543137,"maxLat":45.551483},{"country":"RUS","coordinates":[[[143.648007,50.7476],[144.654148,48.976391],[143.173928,49.306551],[142.558668,47.861575],[143.533492,46.836728],[143.505277,46.137908],[142.747701,46.740765],[142.09203,45.966755],[141.906925,46.805929],[142.018443,47.780133],[141.904445,48.859189],[142.1358,49.615163],[142.179983,50.952342],[141.594076,51.935435],[141.682546,53.301966],[142.606934,53.762145],[142.209749,54.225476],[142.654786,54.365881],[142.914616,53.704578],[143.260848,52.74076],[143.235268,51.75666],[143.648007,50.7476]]],"minLng":141.594076,"minLat":45.966755,"maxLng":144.654148,"maxLat":54.365881}],"height":1,"leaf":true,"bbox":[129.408463,31.029579,145.543137,54.365881]},{"children":[{"country":"PHL","coordinates":[[[118.504581,9.316383],[117.174275,8.3675],[117.664477,9.066889],[118.386914,9.6845],[118.987342,10.376292],[119.511496,11.369668],[119.689677,10.554291],[119.029458,10.003653],[118.504581,9.316383]]],"minLng":117.174275,"minLat":8.3675,"maxLng":119.689677,"maxLat":11.369668},{"country":"PHL","coordinates":[[[121.883548,11.891755],[122.483821,11.582187],[123.120217,11.58366],[123.100838,11.165934],[122.637714,10.741308],[122.00261,10.441017],[121.967367,10.905691],[122.03837,11.415841],[121.883548,11.891755]]],"minLng":121.883548,"minLat":10.441017,"maxLng":123.120217,"maxLat":11.891755},{"country":"PHL","coordinates":[[[126.376814,8.414706],[126.478513,7.750354],[126.537424,7.189381],[126.196773,6.274294],[125.831421,7.293715],[125.363852,6.786485],[125.683161,6.049657],[125.396512,5.581003],[124.219788,6.161355],[123.93872,6.885136],[124.243662,7.36061],[123.610212,7.833527],[123.296071,7.418876],[122.825506,7.457375],[122.085499,6.899424],[121.919928,7.192119],[122.312359,8.034962],[122.942398,8.316237],[123.487688,8.69301],[123.841154,8.240324],[124.60147,8.514158],[124.764612,8.960409],[125.471391,8.986997],[125.412118,9.760335],[126.222714,9.286074],[126.306637,8.782487],[126.376814,8.414706]]],"minLng":121.919928,"minLat":5.581003,"maxLng":126.537424,"maxLat":9.760335},{"country":"PHL","coordinates":[[[123.982438,10.278779],[123.623183,9.950091],[123.309921,9.318269],[122.995883,9.022189],[122.380055,9.713361],[122.586089,9.981045],[122.837081,10.261157],[122.947411,10.881868],[123.49885,10.940624],[123.337774,10.267384],[124.077936,11.232726],[123.982438,10.278779]]],"minLng":122.380055,"minLat":9.022189,"maxLng":124.077936,"maxLat":11.232726},{"country":"PHL","coordinates":[[[125.502552,12.162695],[125.783465,11.046122],[125.011884,11.311455],[125.032761,10.975816],[125.277449,10.358722],[124.801819,10.134679],[124.760168,10.837995],[124.459101,10.88993],[124.302522,11.495371],[124.891013,11.415583],[124.87799,11.79419],[124.266762,12.557761],[125.227116,12.535721],[125.502552,12.162695]]],"minLng":124.266762,"minLat":10.134679,"maxLng":125.783465,"maxLat":12.557761},{"country":"PHL","coordinates":[[[121.527394,13.06959],[121.26219,12.20556],[120.833896,12.704496],[120.323436,13.466413],[121.180128,13.429697],[121.527394,13.06959]]],"minLng":120.323436,"minLat":12.20556,"maxLng":121.527394,"maxLat":13.466413},{"country":"PHL","coordinates":[[[121.321308,18.504065],[121.937601,18.218552],[122.246006,18.47895],[122.336957,18.224883],[122.174279,17.810283],[122.515654,17.093505],[122.252311,16.262444],[121.662786,15.931018],[121.50507,15.124814],[121.728829,14.328376],[122.258925,14.218202],[122.701276,14.336541],[123.950295,13.782131],[123.855107,13.237771],[124.181289,12.997527],[124.077419,12.536677],[123.298035,13.027526],[122.928652,13.55292],[122.671355,13.185836],[122.03465,13.784482],[121.126385,13.636687],[120.628637,13.857656],[120.679384,14.271016],[120.991819,14.525393],[120.693336,14.756671],[120.564145,14.396279],[120.070429,14.970869],[119.920929,15.406347],[119.883773,16.363704],[120.286488,16.034629],[120.390047,17.599081],[120.715867,18.505227],[121.321308,18.504065]]],"minLng":119.883773,"minLat":12.536677,"maxLng":124.181289,"maxLat":18.505227}],"height":1,"leaf":true,"bbox":[117.174275,5.581003,126.537424,18.505227]}],"height":2,"bbox":[68.176645,5.581003,145.543137,54.365881]},{"children":[{"children":[{"country":"GRC","coordinates":[[[26.604196,41.562115],[26.294602,40.936261],[26.056942,40.824123],[25.447677,40.852545],[24.925848,40.947062],[23.714811,40.687129],[24.407999,40.124993],[23.899968,39.962006],[23.342999,39.960998],[22.813988,40.476005],[22.626299,40.256561],[22.849748,39.659311],[23.350027,39.190011],[22.973099,38.970903],[23.530016,38.510001],[24.025025,38.219993],[24.040011,37.655015],[23.115003,37.920011],[23.409972,37.409991],[22.774972,37.30501],[23.154225,36.422506],[22.490028,36.41],[21.670026,36.844986],[21.295011,37.644989],[21.120034,38.310323],[20.730032,38.769985],[20.217712,39.340235],[20.150016,39.624998],[20.615,40.110007],[20.674997,40.435],[20.99999,40.580004],[21.02004,40.842727],[21.674161,40.931275],[22.055378,41.149866],[22.597308,41.130487],[22.76177,41.3048],[22.952377,41.337994],[23.692074,41.309081],[24.492645,41.583896],[25.197201,41.234486],[26.106138,41.328899],[26.117042,41.826905],[26.604196,41.562115]]],"minLng":20.150016,"minLat":36.41,"maxLng":26.604196,"maxLat":41.826905},{"country":"BGR","coordinates":[[[22.65715,44.234923],[22.944832,43.823785],[23.332302,43.897011],[24.100679,43.741051],[25.569272,43.688445],[26.065159,43.943494],[27.2424,44.175986],[27.970107,43.812468],[28.558081,43.707462],[28.039095,43.293172],[27.673898,42.577892],[27.99672,42.007359],[27.135739,42.141485],[26.117042,41.826905],[26.106138,41.328899],[25.197201,41.234486],[24.492645,41.583896],[23.692074,41.309081],[22.952377,41.337994],[22.881374,41.999297],[22.380526,42.32026],[22.545012,42.461362],[22.436595,42.580321],[22.604801,42.898519],[22.986019,43.211161],[22.500157,43.642814],[22.410446,44.008063],[22.65715,44.234923]]],"minLng":22.380526,"minLat":41.234486,"maxLng":28.558081,"maxLat":44.234923},{"country":"GRC","coordinates":[[[23.69998,35.705004],[24.246665,35.368022],[25.025015,35.424996],[25.769208,35.354018],[25.745023,35.179998],[26.290003,35.29999],[26.164998,35.004995],[24.724982,34.919988],[24.735007,35.084991],[23.514978,35.279992],[23.69998,35.705004]]],"minLng":23.514978,"minLat":34.919988,"maxLng":26.290003,"maxLat":35.705004},{"country":"MKD","coordinates":[[[20.59023,41.85541],[20.71731,41.84711],[20.76216,42.05186],[21.3527,42.2068],[21.576636,42.245224],[21.91708,42.30364],[22.380526,42.32026],[22.881374,41.999297],[22.952377,41.337994],[22.76177,41.3048],[22.597308,41.130487],[22.055378,41.149866],[21.674161,40.931275],[21.02004,40.842727],[20.60518,41.08622],[20.46315,41.51509],[20.59023,41.85541]]],"minLng":20.46315,"minLat":40.842727,"maxLng":22.952377,"maxLat":42.32026}],"height":1,"leaf":true,"bbox":[20.150016,34.919988,28.558081,44.234923]},{"children":[{"country":"ESP","coordinates":[[[-9.034818,41.880571],[-8.984433,42.592775],[-9.392884,43.026625],[-7.97819,43.748338],[-6.754492,43.567909],[-5.411886,43.57424],[-4.347843,43.403449],[-3.517532,43.455901],[-1.901351,43.422802],[-1.502771,43.034014],[0.338047,42.579546],[0.701591,42.795734],[1.826793,42.343385],[2.985999,42.473015],[3.039484,41.89212],[2.091842,41.226089],[0.810525,41.014732],[0.721331,40.678318],[0.106692,40.123934],[-0.278711,39.309978],[0.111291,38.738514],[-0.467124,38.292366],[-0.683389,37.642354],[-1.438382,37.443064],[-2.146453,36.674144],[-3.415781,36.6589],[-4.368901,36.677839],[-4.995219,36.324708],[-5.37716,35.94685],[-5.866432,36.029817],[-6.236694,36.367677],[-6.520191,36.942913],[-7.453726,37.097788],[-7.537105,37.428904],[-7.166508,37.803894],[-7.029281,38.075764],[-7.374092,38.373059],[-7.098037,39.030073],[-7.498632,39.629571],[-7.066592,39.711892],[-7.026413,40.184524],[-6.86402,40.330872],[-6.851127,41.111083],[-6.389088,41.381815],[-6.668606,41.883387],[-7.251309,41.918346],[-7.422513,41.792075],[-8.013175,41.790886],[-8.263857,42.280469],[-8.671946,42.134689],[-9.034818,41.880571]]],"minLng":-9.392884,"minLat":35.94685,"maxLng":3.039484,"maxLat":43.748338},{"country":"PRT","coordinates":[[[-9.034818,41.880571],[-8.671946,42.134689],[-8.263857,42.280469],[-8.013175,41.790886],[-7.422513,41.792075],[-7.251309,41.918346],[-6.668606,41.883387],[-6.389088,41.381815],[-6.851127,41.111083],[-6.86402,40.330872],[-7.026413,40.184524],[-7.066592,39.711892],[-7.498632,39.629571],[-7.098037,39.030073],[-7.374092,38.373059],[-7.029281,38.075764],[-7.166508,37.803894],[-7.537105,37.428904],[-7.453726,37.097788],[-7.855613,36.838269],[-8.382816,36.97888],[-8.898857,36.868809],[-8.746101,37.651346],[-8.839998,38.266243],[-9.287464,38.358486],[-9.526571,38.737429],[-9.446989,39.392066],[-9.048305,39.755093],[-8.977353,40.159306],[-8.768684,40.760639],[-8.790853,41.184334],[-8.990789,41.543459],[-9.034818,41.880571]]],"minLng":-9.526571,"minLat":36.838269,"maxLng":-6.389088,"maxLat":42.280469},{"country":"ITA","coordinates":[[[9.210012,41.209991],[9.809975,40.500009],[9.669519,39.177376],[9.214818,39.240473],[8.806936,38.906618],[8.428302,39.171847],[8.388253,40.378311],[8.159998,40.950007],[8.709991,40.899984],[9.210012,41.209991]]],"minLng":8.159998,"minLat":38.906618,"maxLng":9.809975,"maxLat":41.209991},{"country":"FRA","coordinates":[[[3.588184,50.378992],[4.286023,49.907497],[4.799222,49.985373],[5.674052,49.529484],[5.897759,49.442667],[6.18632,49.463803],[6.65823,49.201958],[8.099279,49.017784],[7.593676,48.333019],[7.466759,47.620582],[7.192202,47.449766],[6.736571,47.541801],[6.768714,47.287708],[6.037389,46.725779],[6.022609,46.27299],[6.5001,46.429673],[6.843593,45.991147],[6.802355,45.70858],[7.096652,45.333099],[6.749955,45.028518],[7.007562,44.254767],[7.549596,44.127901],[7.435185,43.693845],[6.529245,43.128892],[4.556963,43.399651],[3.100411,43.075201],[2.985999,42.473015],[1.826793,42.343385],[0.701591,42.795734],[0.338047,42.579546],[-1.502771,43.034014],[-1.901351,43.422802],[-1.384225,44.02261],[-1.193798,46.014918],[-2.225724,47.064363],[-2.963276,47.570327],[-4.491555,47.954954],[-4.59235,48.68416],[-3.295814,48.901692],[-1.616511,48.644421],[-1.933494,49.776342],[-0.989469,49.347376],[1.338761,50.127173],[1.639001,50.946606],[2.513573,51.148506],[2.658422,50.796848],[3.123252,50.780363],[3.588184,50.378992]]],"minLng":-4.59235,"minLat":42.343385,"maxLng":8.099279,"maxLat":51.148506},{"country":"BEL","coordinates":[[[3.314971,51.345781],[4.047071,51.267259],[4.973991,51.475024],[5.606976,51.037298],[6.156658,50.803721],[6.043073,50.128052],[5.782417,50.090328],[5.674052,49.529484],[4.799222,49.985373],[4.286023,49.907497],[3.588184,50.378992],[3.123252,50.780363],[2.658422,50.796848],[2.513573,51.148506],[3.314971,51.345781]]],"minLng":2.513573,"minLat":49.529484,"maxLng":6.156658,"maxLat":51.475024}],"height":1,"leaf":true,"bbox":[-9.526571,35.94685,9.809975,51.475024]},{"children":[{"country":"ITA","coordinates":[[[12.376485,46.767559],[13.806475,46.509306],[13.69811,46.016778],[13.93763,45.591016],[13.141606,45.736692],[12.328581,45.381778],[12.383875,44.885374],[12.261453,44.600482],[12.589237,44.091366],[13.526906,43.587727],[14.029821,42.761008],[15.14257,41.95514],[15.926191,41.961315],[16.169897,41.740295],[15.889346,41.541082],[16.785002,41.179606],[17.519169,40.877143],[18.376687,40.355625],[18.480247,40.168866],[18.293385,39.810774],[17.73838,40.277671],[16.869596,40.442235],[16.448743,39.795401],[17.17149,39.4247],[17.052841,38.902871],[16.635088,38.843572],[16.100961,37.985899],[15.684087,37.908849],[15.687963,38.214593],[15.891981,38.750942],[16.109332,38.964547],[15.718814,39.544072],[15.413613,40.048357],[14.998496,40.172949],[14.703268,40.60455],[14.060672,40.786348],[13.627985,41.188287],[12.888082,41.25309],[12.106683,41.704535],[11.191906,42.355425],[10.511948,42.931463],[10.200029,43.920007],[9.702488,44.036279],[8.888946,44.366336],[8.428561,44.231228],[7.850767,43.767148],[7.435185,43.693845],[7.549596,44.127901],[7.007562,44.254767],[6.749955,45.028518],[7.096652,45.333099],[6.802355,45.70858],[6.843593,45.991147],[7.273851,45.776948],[7.755992,45.82449],[8.31663,46.163642],[8.489952,46.005151],[8.966306,46.036932],[9.182882,46.440215],[9.922837,46.314899],[10.363378,46.483571],[10.442701,46.893546],[11.048556,46.751359],[11.164828,46.941579],[12.153088,47.115393],[12.376485,46.767559]]],"minLng":6.749955,"minLat":37.908849,"maxLng":18.480247,"maxLat":47.115393},{"country":"FRA","coordinates":[[[9.560016,42.152492],[9.229752,41.380007],[8.775723,41.583612],[8.544213,42.256517],[8.746009,42.628122],[9.390001,43.009985],[9.560016,42.152492]]],"minLng":8.544213,"minLat":41.380007,"maxLng":9.560016,"maxLat":43.009985},{"country":"HRV","coordinates":[[[18.829838,45.908878],[19.072769,45.521511],[19.390476,45.236516],[19.005486,44.860234],[18.553214,45.08159],[17.861783,45.06774],[17.002146,45.233777],[16.534939,45.211608],[16.318157,45.004127],[15.959367,45.233777],[15.750026,44.818712],[16.23966,44.351143],[16.456443,44.04124],[16.916156,43.667722],[17.297373,43.446341],[17.674922,43.028563],[18.56,42.65],[18.450016,42.479991],[17.50997,42.849995],[16.930006,43.209998],[16.015385,43.507215],[15.174454,44.243191],[15.37625,44.317915],[14.920309,44.738484],[14.901602,45.07606],[14.258748,45.233777],[13.952255,44.802124],[13.656976,45.136935],[13.679403,45.484149],[13.71506,45.500324],[14.411968,45.466166],[14.595109,45.634941],[14.935244,45.471695],[15.327675,45.452316],[15.323954,45.731783],[15.67153,45.834154],[15.768733,46.238108],[16.564808,46.503751],[16.882515,46.380632],[17.630066,45.951769],[18.456062,45.759481],[18.829838,45.908878]]],"minLng":13.656976,"minLat":42.479991,"maxLng":19.390476,"maxLat":46.503751},{"country":"BIH","coordinates":[[[19.005486,44.860234],[19.36803,44.863],[19.11761,44.42307],[19.59976,44.03847],[19.454,43.5681],[19.21852,43.52384],[19.03165,43.43253],[18.70648,43.20011],[18.56,42.65],[17.674922,43.028563],[17.297373,43.446341],[16.916156,43.667722],[16.456443,44.04124],[16.23966,44.351143],[15.750026,44.818712],[15.959367,45.233777],[16.318157,45.004127],[16.534939,45.211608],[17.002146,45.233777],[17.861783,45.06774],[18.553214,45.08159],[19.005486,44.860234]]],"minLng":15.750026,"minLat":42.65,"maxLng":19.59976,"maxLat":45.233777},{"country":"HUN","coordinates":[[[16.202298,46.852386],[16.534268,47.496171],[16.340584,47.712902],[16.903754,47.714866],[16.979667,48.123497],[17.488473,47.867466],[17.857133,47.758429],[18.696513,47.880954],[18.777025,48.081768],[19.174365,48.111379],[19.661364,48.266615],[19.769471,48.202691],[20.239054,48.327567],[20.473562,48.56285],[20.801294,48.623854],[21.872236,48.319971],[22.085608,48.422264],[22.64082,48.15024],[22.710531,47.882194],[22.099768,47.672439],[21.626515,46.994238],[21.021952,46.316088],[20.220192,46.127469],[19.596045,46.17173],[18.829838,45.908878],[18.456062,45.759481],[17.630066,45.951769],[16.882515,46.380632],[16.564808,46.503751],[16.370505,46.841327],[16.202298,46.852386]]],"minLng":16.202298,"minLat":45.759481,"maxLng":22.710531,"maxLat":48.623854}],"height":1,"leaf":true,"bbox":[6.749955,37.908849,22.710531,48.623854]},{"children":[{"country":"MNE","coordinates":[[[19.801613,42.500093],[19.738051,42.688247],[19.30449,42.19574],[19.37177,41.87755],[19.16246,41.95502],[18.88214,42.28151],[18.45,42.48],[18.56,42.65],[18.70648,43.20011],[19.03165,43.43253],[19.21852,43.52384],[19.48389,43.35229],[19.63,43.21378],[19.95857,43.10604],[20.3398,42.89852],[20.25758,42.81275],[20.0707,42.58863],[19.801613,42.500093]]],"minLng":18.45,"minLat":41.87755,"maxLng":20.3398,"maxLat":43.52384},{"country":"ALB","coordinates":[[[20.590247,41.855404],[20.463175,41.515089],[20.605182,41.086226],[21.02004,40.842727],[20.99999,40.580004],[20.674997,40.435],[20.615,40.110007],[20.150016,39.624998],[19.98,39.694993],[19.960002,39.915006],[19.406082,40.250773],[19.319059,40.72723],[19.40355,41.409566],[19.540027,41.719986],[19.371769,41.877548],[19.304486,42.195745],[19.738051,42.688247],[19.801613,42.500093],[20.0707,42.58863],[20.283755,42.32026],[20.52295,42.21787],[20.590247,41.855404]]],"minLng":19.304486,"minLat":39.624998,"maxLng":21.02004,"maxLat":42.688247},{"country":"RKS","coordinates":[[[20.76216,42.05186],[20.71731,41.84711],[20.59023,41.85541],[20.52295,42.21787],[20.28374,42.32025],[20.0707,42.58863],[20.25758,42.81275],[20.49679,42.88469],[20.63508,43.21671],[20.81448,43.27205],[20.95651,43.13094],[21.143395,43.068685],[21.27421,42.90959],[21.43866,42.86255],[21.63302,42.67717],[21.77505,42.6827],[21.66292,42.43922],[21.54332,42.32025],[21.576636,42.245224],[21.3527,42.2068],[20.76216,42.05186]]],"minLng":20.0707,"minLat":41.84711,"maxLng":21.77505,"maxLat":43.27205}],"height":1,"leaf":true,"bbox":[18.45,39.624998,21.77505,43.52384]}],"height":2,"bbox":[-9.526571,34.919988,28.558081,51.475024]},{"children":[{"children":[{"country":"OMN","coordinates":[[[56.391421,25.895991],[56.261042,25.714606],[56.070821,26.055464],[56.362017,26.395934],[56.485679,26.309118],[56.391421,25.895991]]],"minLng":56.070821,"minLat":25.714606,"maxLng":56.485679,"maxLat":26.395934},{"country":"AFG","coordinates":[[[61.210817,35.650072],[62.230651,35.270664],[62.984662,35.404041],[63.193538,35.857166],[63.982896,36.007957],[64.546479,36.312073],[64.746105,37.111818],[65.588948,37.305217],[65.745631,37.661164],[66.217385,37.39379],[66.518607,37.362784],[67.075782,37.356144],[67.83,37.144994],[68.135562,37.023115],[68.859446,37.344336],[69.196273,37.151144],[69.518785,37.608997],[70.116578,37.588223],[70.270574,37.735165],[70.376304,38.138396],[70.806821,38.486282],[71.348131,38.258905],[71.239404,37.953265],[71.541918,37.905774],[71.448693,37.065645],[71.844638,36.738171],[72.193041,36.948288],[72.63689,37.047558],[73.260056,37.495257],[73.948696,37.421566],[74.980002,37.41999],[75.158028,37.133031],[74.575893,37.020841],[74.067552,36.836176],[72.920025,36.720007],[71.846292,36.509942],[71.262348,36.074388],[71.498768,35.650563],[71.613076,35.153203],[71.115019,34.733126],[71.156773,34.348911],[70.881803,33.988856],[69.930543,34.02012],[70.323594,33.358533],[69.687147,33.105499],[69.262522,32.501944],[69.317764,31.901412],[68.926677,31.620189],[68.556932,31.71331],[67.792689,31.58293],[67.683394,31.303154],[66.938891,31.304911],[66.381458,30.738899],[66.346473,29.887943],[65.046862,29.472181],[64.350419,29.560031],[64.148002,29.340819],[63.550261,29.468331],[62.549857,29.318572],[60.874248,29.829239],[61.781222,30.73585],[61.699314,31.379506],[60.941945,31.548075],[60.863655,32.18292],[60.536078,32.981269],[60.9637,33.528832],[60.52843,33.676446],[60.803193,34.404102],[61.210817,35.650072]]],"minLng":60.52843,"minLat":29.318572,"maxLng":75.158028,"maxLat":38.486282},{"country":"PAK","coordinates":[[[75.158028,37.133031],[75.896897,36.666806],[76.192848,35.898403],[77.837451,35.49401],[76.871722,34.653544],[75.757061,34.504923],[74.240203,34.748887],[73.749948,34.317699],[74.104294,33.441473],[74.451559,32.7649],[75.258642,32.271105],[74.405929,31.692639],[74.42138,30.979815],[73.450638,29.976413],[72.823752,28.961592],[71.777666,27.91318],[70.616496,27.989196],[69.514393,26.940966],[70.168927,26.491872],[70.282873,25.722229],[70.844699,25.215102],[71.04324,24.356524],[68.842599,24.359134],[68.176645,23.691965],[67.443667,23.944844],[67.145442,24.663611],[66.372828,25.425141],[64.530408,25.237039],[62.905701,25.218409],[61.497363,25.078237],[61.874187,26.239975],[63.316632,26.756532],[63.233898,27.217047],[62.755426,27.378923],[62.72783,28.259645],[61.771868,28.699334],[61.369309,29.303276],[60.874248,29.829239],[62.549857,29.318572],[63.550261,29.468331],[64.148002,29.340819],[64.350419,29.560031],[65.046862,29.472181],[66.346473,29.887943],[66.381458,30.738899],[66.938891,31.304911],[67.683394,31.303154],[67.792689,31.58293],[68.556932,31.71331],[68.926677,31.620189],[69.317764,31.901412],[69.262522,32.501944],[69.687147,33.105499],[70.323594,33.358533],[69.930543,34.02012],[70.881803,33.988856],[71.156773,34.348911],[71.115019,34.733126],[71.613076,35.153203],[71.498768,35.650563],[71.262348,36.074388],[71.846292,36.509942],[72.920025,36.720007],[74.067552,36.836176],[74.575893,37.020841],[75.158028,37.133031]]],"minLng":60.874248,"minLat":23.691965,"maxLng":77.837451,"maxLat":37.133031},{"country":"TJK","coordinates":[[[71.014198,40.244366],[70.648019,39.935754],[69.55961,40.103211],[69.464887,39.526683],[70.549162,39.604198],[71.784694,39.279463],[73.675379,39.431237],[73.928852,38.505815],[74.257514,38.606507],[74.864816,38.378846],[74.829986,37.990007],[74.980002,37.41999],[73.948696,37.421566],[73.260056,37.495257],[72.63689,37.047558],[72.193041,36.948288],[71.844638,36.738171],[71.448693,37.065645],[71.541918,37.905774],[71.239404,37.953265],[71.348131,38.258905],[70.806821,38.486282],[70.376304,38.138396],[70.270574,37.735165],[70.116578,37.588223],[69.518785,37.608997],[69.196273,37.151144],[68.859446,37.344336],[68.135562,37.023115],[67.83,37.144994],[68.392033,38.157025],[68.176025,38.901553],[67.44222,39.140144],[67.701429,39.580478],[68.536416,39.533453],[69.011633,40.086158],[69.329495,40.727824],[70.666622,40.960213],[70.45816,40.496495],[70.601407,40.218527],[71.014198,40.244366]]],"minLng":67.44222,"minLat":36.738171,"maxLng":74.980002,"maxLat":40.960213},{"country":"TKM","coordinates":[[[61.210817,35.650072],[61.123071,36.491597],[60.377638,36.527383],[59.234762,37.412988],[58.436154,37.522309],[57.330434,38.029229],[56.619366,38.121394],[56.180375,37.935127],[55.511578,37.964117],[54.800304,37.392421],[53.921598,37.198918],[53.735511,37.906136],[53.880929,38.952093],[53.101028,39.290574],[53.357808,39.975286],[52.693973,40.033629],[52.915251,40.876523],[53.858139,40.631034],[54.736845,40.951015],[54.008311,41.551211],[53.721713,42.123191],[52.91675,41.868117],[52.814689,41.135371],[52.50246,41.783316],[52.944293,42.116034],[54.079418,42.324109],[54.755345,42.043971],[55.455251,41.259859],[55.968191,41.308642],[57.096391,41.32231],[56.932215,41.826026],[57.78653,42.170553],[58.629011,42.751551],[59.976422,42.223082],[60.083341,41.425146],[60.465953,41.220327],[61.547179,41.26637],[61.882714,41.084857],[62.37426,40.053886],[63.518015,39.363257],[64.170223,38.892407],[65.215999,38.402695],[66.54615,37.974685],[66.518607,37.362784],[66.217385,37.39379],[65.745631,37.661164],[65.588948,37.305217],[64.746105,37.111818],[64.546479,36.312073],[63.982896,36.007957],[63.193538,35.857166],[62.984662,35.404041],[62.230651,35.270664],[61.210817,35.650072]]],"minLng":52.50246,"minLat":35.270664,"maxLng":66.54615,"maxLat":42.751551}],"height":1,"leaf":true,"bbox":[52.50246,23.691965,77.837451,42.751551]},{"children":[{"country":"JOR","coordinates":[[[35.545665,32.393992],[35.719918,32.709192],[36.834062,32.312938],[38.792341,33.378686],[39.195468,32.161009],[39.004886,32.010217],[37.002166,31.508413],[37.998849,30.5085],[37.66812,30.338665],[37.503582,30.003776],[36.740528,29.865283],[36.501214,29.505254],[36.068941,29.197495],[34.956037,29.356555],[34.922603,29.501326],[35.420918,31.100066],[35.397561,31.489086],[35.545252,31.782505],[35.545665,32.393992]]],"minLng":34.922603,"minLat":29.197495,"maxLng":39.195468,"maxLat":33.378686},{"country":"LBN","coordinates":[[[35.821101,33.277426],[35.552797,33.264275],[35.460709,33.08904],[35.126053,33.0909],[35.482207,33.90545],[35.979592,34.610058],[35.998403,34.644914],[36.448194,34.593935],[36.61175,34.201789],[36.06646,33.824912],[35.821101,33.277426]]],"minLng":35.126053,"minLat":33.08904,"maxLng":36.61175,"maxLat":34.644914},{"country":"SYR","coordinates":[[[38.792341,33.378686],[36.834062,32.312938],[35.719918,32.709192],[35.700798,32.716014],[35.836397,32.868123],[35.821101,33.277426],[36.06646,33.824912],[36.61175,34.201789],[36.448194,34.593935],[35.998403,34.644914],[35.905023,35.410009],[36.149763,35.821535],[36.41755,36.040617],[36.685389,36.259699],[36.739494,36.81752],[37.066761,36.623036],[38.167727,36.90121],[38.699891,36.712927],[39.52258,36.716054],[40.673259,37.091276],[41.212089,37.074352],[42.349591,37.229873],[41.837064,36.605854],[41.289707,36.358815],[41.383965,35.628317],[41.006159,34.419372],[38.792341,33.378686]]],"minLng":35.700798,"minLat":32.312938,"maxLng":42.349591,"maxLat":37.229873},{"country":"IRQ","coordinates":[[[45.420618,35.977546],[46.07634,35.677383],[46.151788,35.093259],[45.64846,34.748138],[45.416691,33.967798],[46.109362,33.017287],[47.334661,32.469155],[47.849204,31.709176],[47.685286,30.984853],[48.004698,30.985137],[48.014568,30.452457],[48.567971,29.926778],[47.974519,29.975819],[47.302622,30.05907],[46.568713,29.099025],[44.709499,29.178891],[41.889981,31.190009],[40.399994,31.889992],[39.195468,32.161009],[38.792341,33.378686],[41.006159,34.419372],[41.383965,35.628317],[41.289707,36.358815],[41.837064,36.605854],[42.349591,37.229873],[42.779126,37.385264],[43.942259,37.256228],[44.293452,37.001514],[44.772699,37.170445],[45.420618,35.977546]]],"minLng":38.792341,"minLat":29.099025,"maxLng":48.567971,"maxLat":37.385264}],"height":1,"leaf":true,"bbox":[34.922603,29.099025,48.567971,37.385264]},{"children":[{"country":"TUR","coordinates":[[[36.913127,41.335358],[38.347665,40.948586],[39.512607,41.102763],[40.373433,41.013673],[41.554084,41.535656],[42.619549,41.583173],[43.582746,41.092143],[43.752658,40.740201],[43.656436,40.253564],[44.400009,40.005],[44.79399,39.713003],[44.109225,39.428136],[44.421403,38.281281],[44.225756,37.971584],[44.772699,37.170445],[44.293452,37.001514],[43.942259,37.256228],[42.779126,37.385264],[42.349591,37.229873],[41.212089,37.074352],[40.673259,37.091276],[39.52258,36.716054],[38.699891,36.712927],[38.167727,36.90121],[37.066761,36.623036],[36.739494,36.81752],[36.685389,36.259699],[36.41755,36.040617],[36.149763,35.821535],[35.782085,36.274995],[36.160822,36.650606],[35.550936,36.565443],[34.714553,36.795532],[34.026895,36.21996],[32.509158,36.107564],[31.699595,36.644275],[30.621625,36.677865],[30.391096,36.262981],[29.699976,36.144357],[28.732903,36.676831],[27.641187,36.658822],[27.048768,37.653361],[26.318218,38.208133],[26.8047,38.98576],[26.170785,39.463612],[27.28002,40.420014],[28.819978,40.460011],[29.240004,41.219991],[31.145934,41.087622],[32.347979,41.736264],[33.513283,42.01896],[35.167704,42.040225],[36.913127,41.335358]]],"minLng":26.170785,"minLat":35.821535,"maxLng":44.79399,"maxLat":42.040225},{"country":"MDA","coordinates":[[[26.619337,48.220726],[26.857824,48.368211],[27.522537,48.467119],[28.259547,48.155562],[28.670891,48.118149],[29.122698,47.849095],[29.050868,47.510227],[29.415135,47.346645],[29.559674,46.928583],[29.908852,46.674361],[29.83821,46.525326],[30.024659,46.423937],[29.759972,46.349988],[29.170654,46.379262],[29.072107,46.517678],[28.862972,46.437889],[28.933717,46.25883],[28.659987,45.939987],[28.485269,45.596907],[28.233554,45.488283],[28.054443,45.944586],[28.160018,46.371563],[28.12803,46.810476],[27.551166,47.405117],[27.233873,47.826771],[26.924176,48.123264],[26.619337,48.220726]]],"minLng":26.619337,"minLat":45.488283,"maxLng":30.024659,"maxLat":48.467119},{"country":"GEO","coordinates":[[[41.554084,41.535656],[41.703171,41.962943],[41.45347,42.645123],[40.875469,43.013628],[40.321394,43.128634],[39.955009,43.434998],[40.076965,43.553104],[40.922185,43.382159],[42.394395,43.220308],[43.756017,42.740828],[43.9312,42.554974],[44.537623,42.711993],[45.470279,42.502781],[45.77641,42.092444],[46.404951,41.860675],[46.145432,41.722802],[46.637908,41.181673],[46.501637,41.064445],[45.962601,41.123873],[45.217426,41.411452],[44.97248,41.248129],[43.582746,41.092143],[42.619549,41.583173],[41.554084,41.535656]]],"minLng":39.955009,"minLat":41.064445,"maxLng":46.637908,"maxLat":43.553104},{"country":"ARM","coordinates":[[[43.582746,41.092143],[44.97248,41.248129],[45.179496,40.985354],[45.560351,40.81229],[45.359175,40.561504],[45.891907,40.218476],[45.610012,39.899994],[46.034534,39.628021],[46.483499,39.464155],[46.50572,38.770605],[46.143623,38.741201],[45.735379,39.319719],[45.739978,39.473999],[45.298145,39.471751],[45.001987,39.740004],[44.79399,39.713003],[44.400009,40.005],[43.656436,40.253564],[43.752658,40.740201],[43.582746,41.092143]]],"minLng":43.582746,"minLat":38.741201,"maxLng":46.50572,"maxLat":41.248129},{"country":"AZE","coordinates":[[[45.001987,39.740004],[45.298145,39.471751],[45.739978,39.473999],[45.735379,39.319719],[46.143623,38.741201],[45.457722,38.874139],[44.952688,39.335765],[44.79399,39.713003],[45.001987,39.740004]]],"minLng":44.79399,"minLat":38.741201,"maxLng":46.143623,"maxLat":39.740004},{"country":"TUR","coordinates":[[[27.192377,40.690566],[26.358009,40.151994],[26.043351,40.617754],[26.056942,40.824123],[26.294602,40.936261],[26.604196,41.562115],[26.117042,41.826905],[27.135739,42.141485],[27.99672,42.007359],[28.115525,41.622886],[28.988443,41.299934],[28.806438,41.054962],[27.619017,40.999823],[27.192377,40.690566]]],"minLng":26.043351,"minLat":40.151994,"maxLng":28.988443,"maxLat":42.141485}],"height":1,"leaf":true,"bbox":[26.043351,35.821535,46.637908,48.467119]},{"children":[{"country":"AZE","coordinates":[[[47.373315,41.219732],[47.815666,41.151416],[47.987283,41.405819],[48.584353,41.80887],[49.110264,41.282287],[49.618915,40.572924],[50.08483,40.526157],[50.392821,40.256561],[49.569202,40.176101],[49.395259,39.399482],[49.223228,39.049219],[48.856532,38.815486],[48.883249,38.320245],[48.634375,38.270378],[48.010744,38.794015],[48.355529,39.288765],[48.060095,39.582235],[47.685079,39.508364],[46.50572,38.770605],[46.483499,39.464155],[46.034534,39.628021],[45.610012,39.899994],[45.891907,40.218476],[45.359175,40.561504],[45.560351,40.81229],[45.179496,40.985354],[44.97248,41.248129],[45.217426,41.411452],[45.962601,41.123873],[46.501637,41.064445],[46.637908,41.181673],[46.145432,41.722802],[46.404951,41.860675],[46.686071,41.827137],[47.373315,41.219732]]],"minLng":44.97248,"minLat":38.270378,"maxLng":50.392821,"maxLat":41.860675},{"country":"KAZ","coordinates":[[[70.962315,42.266154],[70.388965,42.081308],[69.070027,41.384244],[68.632483,40.668681],[68.259896,40.662325],[67.985856,41.135991],[66.714047,41.168444],[66.510649,41.987644],[66.023392,41.994646],[66.098012,42.99766],[64.900824,43.728081],[63.185787,43.650075],[62.0133,43.504477],[61.05832,44.405817],[60.239972,44.784037],[58.689989,45.500014],[58.503127,45.586804],[55.928917,44.995858],[55.968191,41.308642],[55.455251,41.259859],[54.755345,42.043971],[54.079418,42.324109],[52.944293,42.116034],[52.50246,41.783316],[52.446339,42.027151],[52.692112,42.443895],[52.501426,42.792298],[51.342427,43.132975],[50.891292,44.031034],[50.339129,44.284016],[50.305643,44.609836],[51.278503,44.514854],[51.316899,45.245998],[52.16739,45.408391],[53.040876,45.259047],[53.220866,46.234646],[53.042737,46.853006],[52.042023,46.804637],[51.191945,47.048705],[50.034083,46.60899],[49.10116,46.39933],[48.593241,46.561034],[48.694734,47.075628],[48.057253,47.743753],[47.315231,47.715847],[46.466446,48.394152],[47.043672,49.152039],[46.751596,49.356006],[47.54948,50.454698],[48.577841,49.87476],[48.702382,50.605128],[50.766648,51.692762],[52.328724,51.718652],[54.532878,51.02624],[55.716941,50.621717],[56.777961,51.043551],[58.363291,51.063653],[59.642282,50.545442],[59.932807,50.842194],[61.337424,50.79907],[61.588003,51.272659],[59.967534,51.96042],[60.927269,52.447548],[60.739993,52.719986],[61.699986,52.979996],[60.978066,53.664993],[61.436591,54.006265],[65.178534,54.354228],[65.666876,54.601267],[68.1691,54.970392],[69.068167,55.38525],[70.865267,55.169734],[71.180131,54.133285],[72.22415,54.376655],[73.508516,54.035617],[73.425679,53.48981],[74.384845,53.546861],[76.8911,54.490524],[76.525179,54.177003],[77.800916,53.404415],[80.03556,50.864751],[80.568447,51.388336],[81.945986,50.812196],[83.383004,51.069183],[83.935115,50.889246],[84.416377,50.3114],[85.11556,50.117303],[85.54127,49.692859],[86.829357,49.826675],[87.35997,49.214981],[86.598776,48.549182],[85.768233,48.455751],[85.720484,47.452969],[85.16429,47.000956],[83.180484,47.330031],[82.458926,45.53965],[81.947071,45.317027],[79.966106,44.917517],[80.866206,43.180362],[80.18015,42.920068],[80.25999,42.349999],[79.643645,42.496683],[79.142177,42.856092],[77.658392,42.960686],[76.000354,42.988022],[75.636965,42.8779],[74.212866,43.298339],[73.645304,43.091272],[73.489758,42.500894],[71.844638,42.845395],[71.186281,42.704293],[70.962315,42.266154]]],"minLng":46.466446,"minLat":40.662325,"maxLng":87.35997,"maxLat":55.38525},{"country":"KGZ","coordinates":[[[70.962315,42.266154],[71.186281,42.704293],[71.844638,42.845395],[73.489758,42.500894],[73.645304,43.091272],[74.212866,43.298339],[75.636965,42.8779],[76.000354,42.988022],[77.658392,42.960686],[79.142177,42.856092],[79.643645,42.496683],[80.25999,42.349999],[80.11943,42.123941],[78.543661,41.582243],[78.187197,41.185316],[76.904484,41.066486],[76.526368,40.427946],[75.467828,40.562072],[74.776862,40.366425],[73.822244,39.893973],[73.960013,39.660008],[73.675379,39.431237],[71.784694,39.279463],[70.549162,39.604198],[69.464887,39.526683],[69.55961,40.103211],[70.648019,39.935754],[71.014198,40.244366],[71.774875,40.145844],[73.055417,40.866033],[71.870115,41.3929],[71.157859,41.143587],[70.420022,41.519998],[71.259248,42.167711],[70.962315,42.266154]]],"minLng":69.464887,"minLat":39.279463,"maxLng":80.25999,"maxLat":43.298339},{"country":"UZB","coordinates":[[[66.518607,37.362784],[66.54615,37.974685],[65.215999,38.402695],[64.170223,38.892407],[63.518015,39.363257],[62.37426,40.053886],[61.882714,41.084857],[61.547179,41.26637],[60.465953,41.220327],[60.083341,41.425146],[59.976422,42.223082],[58.629011,42.751551],[57.78653,42.170553],[56.932215,41.826026],[57.096391,41.32231],[55.968191,41.308642],[55.928917,44.995858],[58.503127,45.586804],[58.689989,45.500014],[60.239972,44.784037],[61.05832,44.405817],[62.0133,43.504477],[63.185787,43.650075],[64.900824,43.728081],[66.098012,42.99766],[66.023392,41.994646],[66.510649,41.987644],[66.714047,41.168444],[67.985856,41.135991],[68.259896,40.662325],[68.632483,40.668681],[69.070027,41.384244],[70.388965,42.081308],[70.962315,42.266154],[71.259248,42.167711],[70.420022,41.519998],[71.157859,41.143587],[71.870115,41.3929],[73.055417,40.866033],[71.774875,40.145844],[71.014198,40.244366],[70.601407,40.218527],[70.45816,40.496495],[70.666622,40.960213],[69.329495,40.727824],[69.011633,40.086158],[68.536416,39.533453],[67.701429,39.580478],[67.44222,39.140144],[68.176025,38.901553],[68.392033,38.157025],[67.83,37.144994],[67.075782,37.356144],[66.518607,37.362784]]],"minLng":55.928917,"minLat":37.144994,"maxLng":73.055417,"maxLat":45.586804}],"height":1,"leaf":true,"bbox":[44.97248,37.144994,87.35997,55.38525]}],"height":2,"bbox":[26.043351,23.691965,87.35997,55.38525]}],"height":3,"bbox":[-159.80051,-4.298187,145.543137,55.38525]}],"height":4,"bbox":[-180,-85.609038,180,83.64513]}')},9237:t=>{"use strict";t.exports=JSON.parse('{"type":"FeatureCollection","features":[{"type":"Feature","id":"AFG","properties":{"name":"Afghanistan"},"geometry":{"type":"Polygon","coordinates":[[[61.210817,35.650072],[62.230651,35.270664],[62.984662,35.404041],[63.193538,35.857166],[63.982896,36.007957],[64.546479,36.312073],[64.746105,37.111818],[65.588948,37.305217],[65.745631,37.661164],[66.217385,37.39379],[66.518607,37.362784],[67.075782,37.356144],[67.83,37.144994],[68.135562,37.023115],[68.859446,37.344336],[69.196273,37.151144],[69.518785,37.608997],[70.116578,37.588223],[70.270574,37.735165],[70.376304,38.138396],[70.806821,38.486282],[71.348131,38.258905],[71.239404,37.953265],[71.541918,37.905774],[71.448693,37.065645],[71.844638,36.738171],[72.193041,36.948288],[72.63689,37.047558],[73.260056,37.495257],[73.948696,37.421566],[74.980002,37.41999],[75.158028,37.133031],[74.575893,37.020841],[74.067552,36.836176],[72.920025,36.720007],[71.846292,36.509942],[71.262348,36.074388],[71.498768,35.650563],[71.613076,35.153203],[71.115019,34.733126],[71.156773,34.348911],[70.881803,33.988856],[69.930543,34.02012],[70.323594,33.358533],[69.687147,33.105499],[69.262522,32.501944],[69.317764,31.901412],[68.926677,31.620189],[68.556932,31.71331],[67.792689,31.58293],[67.683394,31.303154],[66.938891,31.304911],[66.381458,30.738899],[66.346473,29.887943],[65.046862,29.472181],[64.350419,29.560031],[64.148002,29.340819],[63.550261,29.468331],[62.549857,29.318572],[60.874248,29.829239],[61.781222,30.73585],[61.699314,31.379506],[60.941945,31.548075],[60.863655,32.18292],[60.536078,32.981269],[60.9637,33.528832],[60.52843,33.676446],[60.803193,34.404102],[61.210817,35.650072]]]}},{"type":"Feature","id":"AGO","properties":{"name":"Angola"},"geometry":{"type":"MultiPolygon","coordinates":[[[[16.326528,-5.87747],[16.57318,-6.622645],[16.860191,-7.222298],[17.089996,-7.545689],[17.47297,-8.068551],[18.134222,-7.987678],[18.464176,-7.847014],[19.016752,-7.988246],[19.166613,-7.738184],[19.417502,-7.155429],[20.037723,-7.116361],[20.091622,-6.94309],[20.601823,-6.939318],[20.514748,-7.299606],[21.728111,-7.290872],[21.746456,-7.920085],[21.949131,-8.305901],[21.801801,-8.908707],[21.875182,-9.523708],[22.208753,-9.894796],[22.155268,-11.084801],[22.402798,-10.993075],[22.837345,-11.017622],[23.456791,-10.867863],[23.912215,-10.926826],[24.017894,-11.237298],[23.904154,-11.722282],[24.079905,-12.191297],[23.930922,-12.565848],[24.016137,-12.911046],[21.933886,-12.898437],[21.887843,-16.08031],[22.562478,-16.898451],[23.215048,-17.523116],[21.377176,-17.930636],[18.956187,-17.789095],[18.263309,-17.309951],[14.209707,-17.353101],[14.058501,-17.423381],[13.462362,-16.971212],[12.814081,-16.941343],[12.215461,-17.111668],[11.734199,-17.301889],[11.640096,-16.673142],[11.778537,-15.793816],[12.123581,-14.878316],[12.175619,-14.449144],[12.500095,-13.5477],[12.738479,-13.137906],[13.312914,-12.48363],[13.633721,-12.038645],[13.738728,-11.297863],[13.686379,-10.731076],[13.387328,-10.373578],[13.120988,-9.766897],[12.87537,-9.166934],[12.929061,-8.959091],[13.236433,-8.562629],[12.93304,-7.596539],[12.728298,-6.927122],[12.227347,-6.294448],[12.322432,-6.100092],[12.735171,-5.965682],[13.024869,-5.984389],[13.375597,-5.864241],[16.326528,-5.87747]]],[[[12.436688,-5.684304],[12.182337,-5.789931],[11.914963,-5.037987],[12.318608,-4.60623],[12.62076,-4.438023],[12.995517,-4.781103],[12.631612,-4.991271],[12.468004,-5.248362],[12.436688,-5.684304]]]]}},{"type":"Feature","id":"ALB","properties":{"name":"Albania"},"geometry":{"type":"Polygon","coordinates":[[[20.590247,41.855404],[20.463175,41.515089],[20.605182,41.086226],[21.02004,40.842727],[20.99999,40.580004],[20.674997,40.435],[20.615,40.110007],[20.150016,39.624998],[19.98,39.694993],[19.960002,39.915006],[19.406082,40.250773],[19.319059,40.72723],[19.40355,41.409566],[19.540027,41.719986],[19.371769,41.877548],[19.304486,42.195745],[19.738051,42.688247],[19.801613,42.500093],[20.0707,42.58863],[20.283755,42.32026],[20.52295,42.21787],[20.590247,41.855404]]]}},{"type":"Feature","id":"ARE","properties":{"name":"United Arab Emirates"},"geometry":{"type":"Polygon","coordinates":[[[51.579519,24.245497],[51.757441,24.294073],[51.794389,24.019826],[52.577081,24.177439],[53.404007,24.151317],[54.008001,24.121758],[54.693024,24.797892],[55.439025,25.439145],[56.070821,26.055464],[56.261042,25.714606],[56.396847,24.924732],[55.886233,24.920831],[55.804119,24.269604],[55.981214,24.130543],[55.528632,23.933604],[55.525841,23.524869],[55.234489,23.110993],[55.208341,22.70833],[55.006803,22.496948],[52.000733,23.001154],[51.617708,24.014219],[51.579519,24.245497]]]}},{"type":"Feature","id":"ARG","properties":{"name":"Argentina"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-65.5,-55.2],[-66.45,-55.25],[-66.95992,-54.89681],[-67.56244,-54.87001],[-68.63335,-54.8695],[-68.63401,-52.63637],[-68.25,-53.1],[-67.75,-53.85],[-66.45,-54.45],[-65.05,-54.7],[-65.5,-55.2]]],[[[-64.964892,-22.075862],[-64.377021,-22.798091],[-63.986838,-21.993644],[-62.846468,-22.034985],[-62.685057,-22.249029],[-60.846565,-23.880713],[-60.028966,-24.032796],[-58.807128,-24.771459],[-57.777217,-25.16234],[-57.63366,-25.603657],[-58.618174,-27.123719],[-57.60976,-27.395899],[-56.486702,-27.548499],[-55.695846,-27.387837],[-54.788795,-26.621786],[-54.625291,-25.739255],[-54.13005,-25.547639],[-53.628349,-26.124865],[-53.648735,-26.923473],[-54.490725,-27.474757],[-55.162286,-27.881915],[-56.2909,-28.852761],[-57.625133,-30.216295],[-57.874937,-31.016556],[-58.14244,-32.044504],[-58.132648,-33.040567],[-58.349611,-33.263189],[-58.427074,-33.909454],[-58.495442,-34.43149],[-57.22583,-35.288027],[-57.362359,-35.97739],[-56.737487,-36.413126],[-56.788285,-36.901572],[-57.749157,-38.183871],[-59.231857,-38.72022],[-61.237445,-38.928425],[-62.335957,-38.827707],[-62.125763,-39.424105],[-62.330531,-40.172586],[-62.145994,-40.676897],[-62.745803,-41.028761],[-63.770495,-41.166789],[-64.73209,-40.802677],[-65.118035,-41.064315],[-64.978561,-42.058001],[-64.303408,-42.359016],[-63.755948,-42.043687],[-63.458059,-42.563138],[-64.378804,-42.873558],[-65.181804,-43.495381],[-65.328823,-44.501366],[-65.565269,-45.036786],[-66.509966,-45.039628],[-67.293794,-45.551896],[-67.580546,-46.301773],[-66.597066,-47.033925],[-65.641027,-47.236135],[-65.985088,-48.133289],[-67.166179,-48.697337],[-67.816088,-49.869669],[-68.728745,-50.264218],[-69.138539,-50.73251],[-68.815561,-51.771104],[-68.149995,-52.349983],[-68.571545,-52.299444],[-69.498362,-52.142761],[-71.914804,-52.009022],[-72.329404,-51.425956],[-72.309974,-50.67701],[-72.975747,-50.74145],[-73.328051,-50.378785],[-73.415436,-49.318436],[-72.648247,-48.878618],[-72.331161,-48.244238],[-72.447355,-47.738533],[-71.917258,-46.884838],[-71.552009,-45.560733],[-71.659316,-44.973689],[-71.222779,-44.784243],[-71.329801,-44.407522],[-71.793623,-44.207172],[-71.464056,-43.787611],[-71.915424,-43.408565],[-72.148898,-42.254888],[-71.746804,-42.051386],[-71.915734,-40.832339],[-71.680761,-39.808164],[-71.413517,-38.916022],[-70.814664,-38.552995],[-71.118625,-37.576827],[-71.121881,-36.658124],[-70.364769,-36.005089],[-70.388049,-35.169688],[-69.817309,-34.193571],[-69.814777,-33.273886],[-70.074399,-33.09121],[-70.535069,-31.36501],[-69.919008,-30.336339],[-70.01355,-29.367923],[-69.65613,-28.459141],[-69.001235,-27.521214],[-68.295542,-26.89934],[-68.5948,-26.506909],[-68.386001,-26.185016],[-68.417653,-24.518555],[-67.328443,-24.025303],[-66.985234,-22.986349],[-67.106674,-22.735925],[-66.273339,-21.83231],[-64.964892,-22.075862]]]]}},{"type":"Feature","id":"ARM","properties":{"name":"Armenia"},"geometry":{"type":"Polygon","coordinates":[[[43.582746,41.092143],[44.97248,41.248129],[45.179496,40.985354],[45.560351,40.81229],[45.359175,40.561504],[45.891907,40.218476],[45.610012,39.899994],[46.034534,39.628021],[46.483499,39.464155],[46.50572,38.770605],[46.143623,38.741201],[45.735379,39.319719],[45.739978,39.473999],[45.298145,39.471751],[45.001987,39.740004],[44.79399,39.713003],[44.400009,40.005],[43.656436,40.253564],[43.752658,40.740201],[43.582746,41.092143]]]}},{"type":"Feature","id":"ATA","properties":{"name":"Antarctica"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-59.572095,-80.040179],[-59.865849,-80.549657],[-60.159656,-81.000327],[-62.255393,-80.863178],[-64.488125,-80.921934],[-65.741666,-80.588827],[-65.741666,-80.549657],[-66.290031,-80.255773],[-64.037688,-80.294944],[-61.883246,-80.39287],[-61.138976,-79.981371],[-60.610119,-79.628679],[-59.572095,-80.040179]]],[[[-159.208184,-79.497059],[-161.127601,-79.634209],[-162.439847,-79.281465],[-163.027408,-78.928774],[-163.066604,-78.869966],[-163.712896,-78.595667],[-163.712896,-78.595667],[-163.105801,-78.223338],[-161.245113,-78.380176],[-160.246208,-78.693645],[-159.482405,-79.046338],[-159.208184,-79.497059]]],[[[-45.154758,-78.04707],[-43.920828,-78.478103],[-43.48995,-79.08556],[-43.372438,-79.516645],[-43.333267,-80.026123],[-44.880537,-80.339644],[-46.506174,-80.594357],[-48.386421,-80.829485],[-50.482107,-81.025442],[-52.851988,-80.966685],[-54.164259,-80.633528],[-53.987991,-80.222028],[-51.853134,-79.94773],[-50.991326,-79.614623],[-50.364595,-79.183487],[-49.914131,-78.811209],[-49.306959,-78.458569],[-48.660616,-78.047018],[-48.660616,-78.047019],[-48.151396,-78.04707],[-46.662857,-77.831476],[-45.154758,-78.04707]]],[[[-121.211511,-73.50099],[-119.918851,-73.657725],[-118.724143,-73.481353],[-119.292119,-73.834097],[-120.232217,-74.08881],[-121.62283,-74.010468],[-122.621735,-73.657778],[-122.621735,-73.657777],[-122.406245,-73.324619],[-121.211511,-73.50099]]],[[[-125.559566,-73.481353],[-124.031882,-73.873268],[-124.619469,-73.834097],[-125.912181,-73.736118],[-127.28313,-73.461769],[-127.28313,-73.461768],[-126.558472,-73.246226],[-125.559566,-73.481353]]],[[[-98.98155,-71.933334],[-97.884743,-72.070535],[-96.787937,-71.952971],[-96.20035,-72.521205],[-96.983765,-72.442864],[-98.198083,-72.482035],[-99.432013,-72.442864],[-100.783455,-72.50162],[-101.801868,-72.305663],[-102.330725,-71.894164],[-102.330725,-71.894164],[-101.703967,-71.717792],[-100.430919,-71.854993],[-98.98155,-71.933334]]],[[[-68.451346,-70.955823],[-68.333834,-71.406493],[-68.510128,-71.798407],[-68.784297,-72.170736],[-69.959471,-72.307885],[-71.075889,-72.503842],[-72.388134,-72.484257],[-71.8985,-72.092343],[-73.073622,-72.229492],[-74.19004,-72.366693],[-74.953895,-72.072757],[-75.012625,-71.661258],[-73.915819,-71.269345],[-73.915819,-71.269344],[-73.230331,-71.15178],[-72.074717,-71.190951],[-71.780962,-70.681473],[-71.72218,-70.309196],[-71.741791,-69.505782],[-71.173815,-69.035475],[-70.253252,-68.87874],[-69.724447,-69.251017],[-69.489422,-69.623346],[-69.058518,-70.074016],[-68.725541,-70.505153],[-68.451346,-70.955823]]],[[[-58.614143,-64.152467],[-59.045073,-64.36801],[-59.789342,-64.211223],[-60.611928,-64.309202],[-61.297416,-64.54433],[-62.0221,-64.799094],[-62.51176,-65.09303],[-62.648858,-65.484942],[-62.590128,-65.857219],[-62.120079,-66.190326],[-62.805567,-66.425505],[-63.74569,-66.503847],[-64.294106,-66.837004],[-64.881693,-67.150474],[-65.508425,-67.58161],[-65.665082,-67.953887],[-65.312545,-68.365335],[-64.783715,-68.678908],[-63.961103,-68.913984],[-63.1973,-69.227556],[-62.785955,-69.619419],[-62.570516,-69.991747],[-62.276736,-70.383661],[-61.806661,-70.716768],[-61.512906,-71.089045],[-61.375809,-72.010074],[-61.081977,-72.382351],[-61.003661,-72.774265],[-60.690269,-73.166179],[-60.827367,-73.695242],[-61.375809,-74.106742],[-61.96337,-74.439848],[-63.295201,-74.576997],[-63.74569,-74.92974],[-64.352836,-75.262847],[-65.860987,-75.635124],[-67.192818,-75.79191],[-68.446282,-76.007452],[-69.797724,-76.222995],[-70.600724,-76.634494],[-72.206776,-76.673665],[-73.969536,-76.634494],[-75.555977,-76.712887],[-77.24037,-76.712887],[-76.926979,-77.104802],[-75.399294,-77.28107],[-74.282876,-77.55542],[-73.656119,-77.908112],[-74.772536,-78.221633],[-76.4961,-78.123654],[-77.925858,-78.378419],[-77.984666,-78.789918],[-78.023785,-79.181833],[-76.848637,-79.514939],[-76.633224,-79.887216],[-75.360097,-80.259545],[-73.244852,-80.416331],[-71.442946,-80.69063],[-70.013163,-81.004151],[-68.191646,-81.317672],[-65.704279,-81.474458],[-63.25603,-81.748757],[-61.552026,-82.042692],[-59.691416,-82.37585],[-58.712121,-82.846106],[-58.222487,-83.218434],[-57.008117,-82.865691],[-55.362894,-82.571755],[-53.619771,-82.258235],[-51.543644,-82.003521],[-49.76135,-81.729171],[-47.273931,-81.709586],[-44.825708,-81.846735],[-42.808363,-82.081915],[-42.16202,-81.65083],[-40.771433,-81.356894],[-38.244818,-81.337309],[-36.26667,-81.121715],[-34.386397,-80.906172],[-32.310296,-80.769023],[-30.097098,-80.592651],[-28.549802,-80.337938],[-29.254901,-79.985195],[-29.685805,-79.632503],[-29.685805,-79.260226],[-31.624808,-79.299397],[-33.681324,-79.456132],[-35.639912,-79.456132],[-35.914107,-79.083855],[-35.77701,-78.339248],[-35.326546,-78.123654],[-33.896763,-77.888526],[-32.212369,-77.65345],[-30.998051,-77.359515],[-29.783732,-77.065579],[-28.882779,-76.673665],[-27.511752,-76.497345],[-26.160336,-76.360144],[-25.474822,-76.281803],[-23.927552,-76.24258],[-22.458598,-76.105431],[-21.224694,-75.909474],[-20.010375,-75.674346],[-18.913543,-75.439218],[-17.522982,-75.125698],[-16.641589,-74.79254],[-15.701491,-74.498604],[-15.40771,-74.106742],[-16.46532,-73.871614],[-16.112784,-73.460114],[-15.446855,-73.146542],[-14.408805,-72.950585],[-13.311973,-72.715457],[-12.293508,-72.401936],[-11.510067,-72.010074],[-11.020433,-71.539767],[-10.295774,-71.265416],[-9.101015,-71.324224],[-8.611381,-71.65733],[-7.416622,-71.696501],[-7.377451,-71.324224],[-6.868232,-70.93231],[-5.790985,-71.030289],[-5.536375,-71.402617],[-4.341667,-71.461373],[-3.048981,-71.285053],[-1.795492,-71.167438],[-0.659489,-71.226246],[-0.228637,-71.637745],[0.868195,-71.304639],[1.886686,-71.128267],[3.022638,-70.991118],[4.139055,-70.853917],[5.157546,-70.618789],[6.273912,-70.462055],[7.13572,-70.246512],[7.742866,-69.893769],[8.48711,-70.148534],[9.525135,-70.011333],[10.249845,-70.48164],[10.817821,-70.834332],[11.953824,-70.638375],[12.404287,-70.246512],[13.422778,-69.972162],[14.734998,-70.030918],[15.126757,-70.403247],[15.949342,-70.030918],[17.026589,-69.913354],[18.201711,-69.874183],[19.259373,-69.893769],[20.375739,-70.011333],[21.452985,-70.07014],[21.923034,-70.403247],[22.569403,-70.697182],[23.666184,-70.520811],[24.841357,-70.48164],[25.977309,-70.48164],[27.093726,-70.462055],[28.09258,-70.324854],[29.150242,-70.20729],[30.031583,-69.93294],[30.971733,-69.75662],[31.990172,-69.658641],[32.754053,-69.384291],[33.302443,-68.835642],[33.870419,-68.502588],[34.908495,-68.659271],[35.300202,-69.012014],[36.16201,-69.247142],[37.200035,-69.168748],[37.905108,-69.52144],[38.649404,-69.776205],[39.667894,-69.541077],[40.020431,-69.109941],[40.921358,-68.933621],[41.959434,-68.600514],[42.938702,-68.463313],[44.113876,-68.267408],[44.897291,-68.051866],[45.719928,-67.816738],[46.503343,-67.601196],[47.44344,-67.718759],[48.344419,-67.366068],[48.990736,-67.091718],[49.930885,-67.111303],[50.753471,-66.876175],[50.949325,-66.523484],[51.791547,-66.249133],[52.614133,-66.053176],[53.613038,-65.89639],[54.53355,-65.818049],[55.414943,-65.876805],[56.355041,-65.974783],[57.158093,-66.249133],[57.255968,-66.680218],[58.137361,-67.013324],[58.744508,-67.287675],[59.939318,-67.405239],[60.605221,-67.679589],[61.427806,-67.953887],[62.387489,-68.012695],[63.19049,-67.816738],[64.052349,-67.405239],[64.992447,-67.620729],[65.971715,-67.738345],[66.911864,-67.855909],[67.891133,-67.934302],[68.890038,-67.934302],[69.712624,-68.972791],[69.673453,-69.227556],[69.555941,-69.678226],[68.596258,-69.93294],[67.81274,-70.305268],[67.949889,-70.697182],[69.066307,-70.677545],[68.929157,-71.069459],[68.419989,-71.441788],[67.949889,-71.853287],[68.71377,-72.166808],[69.869307,-72.264787],[71.024895,-72.088415],[71.573285,-71.696501],[71.906288,-71.324224],[72.454627,-71.010703],[73.08141,-70.716768],[73.33602,-70.364024],[73.864877,-69.874183],[74.491557,-69.776205],[75.62756,-69.737034],[76.626465,-69.619419],[77.644904,-69.462684],[78.134539,-69.07077],[78.428371,-68.698441],[79.113859,-68.326216],[80.093127,-68.071503],[80.93535,-67.875546],[81.483792,-67.542388],[82.051767,-67.366068],[82.776426,-67.209282],[83.775331,-67.30726],[84.676206,-67.209282],[85.655527,-67.091718],[86.752359,-67.150474],[87.477017,-66.876175],[87.986289,-66.209911],[88.358411,-66.484261],[88.828408,-66.954568],[89.67063,-67.150474],[90.630365,-67.228867],[91.5901,-67.111303],[92.608539,-67.189696],[93.548637,-67.209282],[94.17542,-67.111303],[95.017591,-67.170111],[95.781472,-67.385653],[96.682399,-67.248504],[97.759646,-67.248504],[98.68021,-67.111303],[99.718182,-67.248504],[100.384188,-66.915346],[100.893356,-66.58224],[101.578896,-66.30789],[102.832411,-65.563284],[103.478676,-65.700485],[104.242557,-65.974783],[104.90846,-66.327527],[106.181561,-66.934931],[107.160881,-66.954568],[108.081393,-66.954568],[109.15864,-66.837004],[110.235835,-66.699804],[111.058472,-66.425505],[111.74396,-66.13157],[112.860378,-66.092347],[113.604673,-65.876805],[114.388088,-66.072762],[114.897308,-66.386283],[115.602381,-66.699804],[116.699161,-66.660633],[117.384701,-66.915346],[118.57946,-67.170111],[119.832924,-67.268089],[120.871,-67.189696],[121.654415,-66.876175],[122.320369,-66.562654],[123.221296,-66.484261],[124.122274,-66.621462],[125.160247,-66.719389],[126.100396,-66.562654],[127.001427,-66.562654],[127.882768,-66.660633],[128.80328,-66.758611],[129.704259,-66.58224],[130.781454,-66.425505],[131.799945,-66.386283],[132.935896,-66.386283],[133.85646,-66.288304],[134.757387,-66.209963],[135.031582,-65.72007],[135.070753,-65.308571],[135.697485,-65.582869],[135.873805,-66.033591],[136.206705,-66.44509],[136.618049,-66.778197],[137.460271,-66.954568],[138.596223,-66.895761],[139.908442,-66.876175],[140.809421,-66.817367],[142.121692,-66.817367],[143.061842,-66.797782],[144.374061,-66.837004],[145.490427,-66.915346],[146.195552,-67.228867],[145.999699,-67.601196],[146.646067,-67.895131],[147.723263,-68.130259],[148.839629,-68.385024],[150.132314,-68.561292],[151.483705,-68.71813],[152.502247,-68.874813],[153.638199,-68.894502],[154.284567,-68.561292],[155.165857,-68.835642],[155.92979,-69.149215],[156.811132,-69.384291],[158.025528,-69.482269],[159.181013,-69.599833],[159.670699,-69.991747],[160.80665,-70.226875],[161.570479,-70.579618],[162.686897,-70.736353],[163.842434,-70.716768],[164.919681,-70.775524],[166.11444,-70.755938],[167.309095,-70.834332],[168.425616,-70.971481],[169.463589,-71.20666],[170.501665,-71.402617],[171.20679,-71.696501],[171.089227,-72.088415],[170.560422,-72.441159],[170.109958,-72.891829],[169.75737,-73.24452],[169.287321,-73.65602],[167.975101,-73.812806],[167.387489,-74.165498],[166.094803,-74.38104],[165.644391,-74.772954],[164.958851,-75.145283],[164.234193,-75.458804],[163.822797,-75.870303],[163.568239,-76.24258],[163.47026,-76.693302],[163.489897,-77.065579],[164.057873,-77.457442],[164.273363,-77.82977],[164.743464,-78.182514],[166.604126,-78.319611],[166.995781,-78.750748],[165.193876,-78.907483],[163.666217,-79.123025],[161.766385,-79.162248],[160.924162,-79.730482],[160.747894,-80.200737],[160.316964,-80.573066],[159.788211,-80.945395],[161.120016,-81.278501],[161.629287,-81.690001],[162.490992,-82.062278],[163.705336,-82.395435],[165.095949,-82.708956],[166.604126,-83.022477],[168.895665,-83.335998],[169.404782,-83.825891],[172.283934,-84.041433],[172.477049,-84.117914],[173.224083,-84.41371],[175.985672,-84.158997],[178.277212,-84.472518],[180,-84.71338],[-179.942499,-84.721443],[-179.058677,-84.139412],[-177.256772,-84.452933],[-177.140807,-84.417941],[-176.084673,-84.099259],[-175.947235,-84.110449],[-175.829882,-84.117914],[-174.382503,-84.534323],[-173.116559,-84.117914],[-172.889106,-84.061019],[-169.951223,-83.884647],[-168.999989,-84.117914],[-168.530199,-84.23739],[-167.022099,-84.570497],[-164.182144,-84.82521],[-161.929775,-85.138731],[-158.07138,-85.37391],[-155.192253,-85.09956],[-150.942099,-85.295517],[-148.533073,-85.609038],[-145.888918,-85.315102],[-143.107718,-85.040752],[-142.892279,-84.570497],[-146.829068,-84.531274],[-150.060732,-84.296146],[-150.902928,-83.904232],[-153.586201,-83.68869],[-153.409907,-83.23802],[-153.037759,-82.82652],[-152.665637,-82.454192],[-152.861517,-82.042692],[-154.526299,-81.768394],[-155.29018,-81.41565],[-156.83745,-81.102129],[-154.408787,-81.160937],[-152.097662,-81.004151],[-150.648293,-81.337309],[-148.865998,-81.043373],[-147.22075,-80.671045],[-146.417749,-80.337938],[-146.770286,-79.926439],[-148.062947,-79.652089],[-149.531901,-79.358205],[-151.588416,-79.299397],[-153.390322,-79.162248],[-155.329376,-79.064269],[-155.975668,-78.69194],[-157.268302,-78.378419],[-158.051768,-78.025676],[-158.365134,-76.889207],[-157.875474,-76.987238],[-156.974573,-77.300759],[-155.329376,-77.202728],[-153.742832,-77.065579],[-152.920247,-77.496664],[-151.33378,-77.398737],[-150.00195,-77.183143],[-148.748486,-76.908845],[-147.612483,-76.575738],[-146.104409,-76.47776],[-146.143528,-76.105431],[-146.496091,-75.733154],[-146.20231,-75.380411],[-144.909624,-75.204039],[-144.322037,-75.537197],[-142.794353,-75.34124],[-141.638764,-75.086475],[-140.209007,-75.06689],[-138.85759,-74.968911],[-137.5062,-74.733783],[-136.428901,-74.518241],[-135.214583,-74.302699],[-134.431194,-74.361455],[-133.745654,-74.439848],[-132.257168,-74.302699],[-130.925311,-74.479019],[-129.554284,-74.459433],[-128.242038,-74.322284],[-126.890622,-74.420263],[-125.402082,-74.518241],[-124.011496,-74.479019],[-122.562152,-74.498604],[-121.073613,-74.518241],[-119.70256,-74.479019],[-118.684145,-74.185083],[-117.469801,-74.028348],[-116.216312,-74.243891],[-115.021552,-74.067519],[-113.944331,-73.714828],[-113.297988,-74.028348],[-112.945452,-74.38104],[-112.299083,-74.714198],[-111.261059,-74.420263],[-110.066325,-74.79254],[-108.714909,-74.910103],[-107.559346,-75.184454],[-106.149148,-75.125698],[-104.876074,-74.949326],[-103.367949,-74.988497],[-102.016507,-75.125698],[-100.645531,-75.302018],[-100.1167,-74.870933],[-100.763043,-74.537826],[-101.252703,-74.185083],[-102.545337,-74.106742],[-103.113313,-73.734413],[-103.328752,-73.362084],[-103.681289,-72.61753],[-102.917485,-72.754679],[-101.60524,-72.813436],[-100.312528,-72.754679],[-99.13738,-72.911414],[-98.118889,-73.20535],[-97.688037,-73.558041],[-96.336595,-73.616849],[-95.043961,-73.4797],[-93.672907,-73.283743],[-92.439003,-73.166179],[-91.420564,-73.401307],[-90.088733,-73.322914],[-89.226951,-72.558722],[-88.423951,-73.009393],[-87.268337,-73.185764],[-86.014822,-73.087786],[-85.192236,-73.4797],[-83.879991,-73.518871],[-82.665646,-73.636434],[-81.470913,-73.851977],[-80.687447,-73.4797],[-80.295791,-73.126956],[-79.296886,-73.518871],[-77.925858,-73.420892],[-76.907367,-73.636434],[-76.221879,-73.969541],[-74.890049,-73.871614],[-73.852024,-73.65602],[-72.833533,-73.401307],[-71.619215,-73.264157],[-70.209042,-73.146542],[-68.935916,-73.009393],[-67.956622,-72.79385],[-67.369061,-72.480329],[-67.134036,-72.049244],[-67.251548,-71.637745],[-67.56494,-71.245831],[-67.917477,-70.853917],[-68.230843,-70.462055],[-68.485452,-70.109311],[-68.544209,-69.717397],[-68.446282,-69.325535],[-67.976233,-68.953206],[-67.5845,-68.541707],[-67.427843,-68.149844],[-67.62367,-67.718759],[-67.741183,-67.326845],[-67.251548,-66.876175],[-66.703184,-66.58224],[-66.056815,-66.209963],[-65.371327,-65.89639],[-64.568276,-65.602506],[-64.176542,-65.171423],[-63.628152,-64.897073],[-63.001394,-64.642308],[-62.041686,-64.583552],[-61.414928,-64.270031],[-60.709855,-64.074074],[-59.887269,-63.95651],[-59.162585,-63.701745],[-58.594557,-63.388224],[-57.811143,-63.27066],[-57.223582,-63.525425],[-57.59573,-63.858532],[-58.614143,-64.152467]]]]}},{"type":"Feature","id":"ATF","properties":{"name":"French Southern and Antarctic Lands"},"geometry":{"type":"Polygon","coordinates":[[[68.935,-48.625],[69.58,-48.94],[70.525,-49.065],[70.56,-49.255],[70.28,-49.71],[68.745,-49.775],[68.72,-49.2425],[68.8675,-48.83],[68.935,-48.625]]]}},{"type":"Feature","id":"AUS","properties":{"name":"Australia"},"geometry":{"type":"MultiPolygon","coordinates":[[[[145.397978,-40.792549],[146.364121,-41.137695],[146.908584,-41.000546],[147.689259,-40.808258],[148.289068,-40.875438],[148.359865,-42.062445],[148.017301,-42.407024],[147.914052,-43.211522],[147.564564,-42.937689],[146.870343,-43.634597],[146.663327,-43.580854],[146.048378,-43.549745],[145.43193,-42.693776],[145.29509,-42.03361],[144.718071,-41.162552],[144.743755,-40.703975],[145.397978,-40.792549]]],[[[143.561811,-13.763656],[143.922099,-14.548311],[144.563714,-14.171176],[144.894908,-14.594458],[145.374724,-14.984976],[145.271991,-15.428205],[145.48526,-16.285672],[145.637033,-16.784918],[145.888904,-16.906926],[146.160309,-17.761655],[146.063674,-18.280073],[146.387478,-18.958274],[147.471082,-19.480723],[148.177602,-19.955939],[148.848414,-20.39121],[148.717465,-20.633469],[149.28942,-21.260511],[149.678337,-22.342512],[150.077382,-22.122784],[150.482939,-22.556142],[150.727265,-22.402405],[150.899554,-23.462237],[151.609175,-24.076256],[152.07354,-24.457887],[152.855197,-25.267501],[153.136162,-26.071173],[153.161949,-26.641319],[153.092909,-27.2603],[153.569469,-28.110067],[153.512108,-28.995077],[153.339095,-29.458202],[153.069241,-30.35024],[153.089602,-30.923642],[152.891578,-31.640446],[152.450002,-32.550003],[151.709117,-33.041342],[151.343972,-33.816023],[151.010555,-34.31036],[150.714139,-35.17346],[150.32822,-35.671879],[150.075212,-36.420206],[149.946124,-37.109052],[149.997284,-37.425261],[149.423882,-37.772681],[148.304622,-37.809061],[147.381733,-38.219217],[146.922123,-38.606532],[146.317922,-39.035757],[145.489652,-38.593768],[144.876976,-38.417448],[145.032212,-37.896188],[144.485682,-38.085324],[143.609974,-38.809465],[142.745427,-38.538268],[142.17833,-38.380034],[141.606582,-38.308514],[140.638579,-38.019333],[139.992158,-37.402936],[139.806588,-36.643603],[139.574148,-36.138362],[139.082808,-35.732754],[138.120748,-35.612296],[138.449462,-35.127261],[138.207564,-34.384723],[137.71917,-35.076825],[136.829406,-35.260535],[137.352371,-34.707339],[137.503886,-34.130268],[137.890116,-33.640479],[137.810328,-32.900007],[136.996837,-33.752771],[136.372069,-34.094766],[135.989043,-34.890118],[135.208213,-34.47867],[135.239218,-33.947953],[134.613417,-33.222778],[134.085904,-32.848072],[134.273903,-32.617234],[132.990777,-32.011224],[132.288081,-31.982647],[131.326331,-31.495803],[129.535794,-31.590423],[128.240938,-31.948489],[127.102867,-32.282267],[126.148714,-32.215966],[125.088623,-32.728751],[124.221648,-32.959487],[124.028947,-33.483847],[123.659667,-33.890179],[122.811036,-33.914467],[122.183064,-34.003402],[121.299191,-33.821036],[120.580268,-33.930177],[119.893695,-33.976065],[119.298899,-34.509366],[119.007341,-34.464149],[118.505718,-34.746819],[118.024972,-35.064733],[117.295507,-35.025459],[116.625109,-35.025097],[115.564347,-34.386428],[115.026809,-34.196517],[115.048616,-33.623425],[115.545123,-33.487258],[115.714674,-33.259572],[115.679379,-32.900369],[115.801645,-32.205062],[115.689611,-31.612437],[115.160909,-30.601594],[114.997043,-30.030725],[115.040038,-29.461095],[114.641974,-28.810231],[114.616498,-28.516399],[114.173579,-28.118077],[114.048884,-27.334765],[113.477498,-26.543134],[113.338953,-26.116545],[113.778358,-26.549025],[113.440962,-25.621278],[113.936901,-25.911235],[114.232852,-26.298446],[114.216161,-25.786281],[113.721255,-24.998939],[113.625344,-24.683971],[113.393523,-24.384764],[113.502044,-23.80635],[113.706993,-23.560215],[113.843418,-23.059987],[113.736552,-22.475475],[114.149756,-21.755881],[114.225307,-22.517488],[114.647762,-21.82952],[115.460167,-21.495173],[115.947373,-21.068688],[116.711615,-20.701682],[117.166316,-20.623599],[117.441545,-20.746899],[118.229559,-20.374208],[118.836085,-20.263311],[118.987807,-20.044203],[119.252494,-19.952942],[119.805225,-19.976506],[120.85622,-19.683708],[121.399856,-19.239756],[121.655138,-18.705318],[122.241665,-18.197649],[122.286624,-17.798603],[122.312772,-17.254967],[123.012574,-16.4052],[123.433789,-17.268558],[123.859345,-17.069035],[123.503242,-16.596506],[123.817073,-16.111316],[124.258287,-16.327944],[124.379726,-15.56706],[124.926153,-15.0751],[125.167275,-14.680396],[125.670087,-14.51007],[125.685796,-14.230656],[126.125149,-14.347341],[126.142823,-14.095987],[126.582589,-13.952791],[127.065867,-13.817968],[127.804633,-14.276906],[128.35969,-14.86917],[128.985543,-14.875991],[129.621473,-14.969784],[129.4096,-14.42067],[129.888641,-13.618703],[130.339466,-13.357376],[130.183506,-13.10752],[130.617795,-12.536392],[131.223495,-12.183649],[131.735091,-12.302453],[132.575298,-12.114041],[132.557212,-11.603012],[131.824698,-11.273782],[132.357224,-11.128519],[133.019561,-11.376411],[133.550846,-11.786515],[134.393068,-12.042365],[134.678632,-11.941183],[135.298491,-12.248606],[135.882693,-11.962267],[136.258381,-12.049342],[136.492475,-11.857209],[136.95162,-12.351959],[136.685125,-12.887223],[136.305407,-13.29123],[135.961758,-13.324509],[136.077617,-13.724278],[135.783836,-14.223989],[135.428664,-14.715432],[135.500184,-14.997741],[136.295175,-15.550265],[137.06536,-15.870762],[137.580471,-16.215082],[138.303217,-16.807604],[138.585164,-16.806622],[139.108543,-17.062679],[139.260575,-17.371601],[140.215245,-17.710805],[140.875463,-17.369069],[141.07111,-16.832047],[141.274095,-16.38887],[141.398222,-15.840532],[141.702183,-15.044921],[141.56338,-14.561333],[141.63552,-14.270395],[141.519869,-13.698078],[141.65092,-12.944688],[141.842691,-12.741548],[141.68699,-12.407614],[141.928629,-11.877466],[142.118488,-11.328042],[142.143706,-11.042737],[142.51526,-10.668186],[142.79731,-11.157355],[142.866763,-11.784707],[143.115947,-11.90563],[143.158632,-12.325656],[143.522124,-12.834358],[143.597158,-13.400422],[143.561811,-13.763656]]]]}},{"type":"Feature","id":"AUT","properties":{"name":"Austria"},"geometry":{"type":"Polygon","coordinates":[[[16.979667,48.123497],[16.903754,47.714866],[16.340584,47.712902],[16.534268,47.496171],[16.202298,46.852386],[16.011664,46.683611],[15.137092,46.658703],[14.632472,46.431817],[13.806475,46.509306],[12.376485,46.767559],[12.153088,47.115393],[11.164828,46.941579],[11.048556,46.751359],[10.442701,46.893546],[9.932448,46.920728],[9.47997,47.10281],[9.632932,47.347601],[9.594226,47.525058],[9.896068,47.580197],[10.402084,47.302488],[10.544504,47.566399],[11.426414,47.523766],[12.141357,47.703083],[12.62076,47.672388],[12.932627,47.467646],[13.025851,47.637584],[12.884103,48.289146],[13.243357,48.416115],[13.595946,48.877172],[14.338898,48.555305],[14.901447,48.964402],[15.253416,49.039074],[16.029647,48.733899],[16.499283,48.785808],[16.960288,48.596982],[16.879983,48.470013],[16.979667,48.123497]]]}},{"type":"Feature","id":"AZE","properties":{"name":"Azerbaijan"},"geometry":{"type":"MultiPolygon","coordinates":[[[[45.001987,39.740004],[45.298145,39.471751],[45.739978,39.473999],[45.735379,39.319719],[46.143623,38.741201],[45.457722,38.874139],[44.952688,39.335765],[44.79399,39.713003],[45.001987,39.740004]]],[[[47.373315,41.219732],[47.815666,41.151416],[47.987283,41.405819],[48.584353,41.80887],[49.110264,41.282287],[49.618915,40.572924],[50.08483,40.526157],[50.392821,40.256561],[49.569202,40.176101],[49.395259,39.399482],[49.223228,39.049219],[48.856532,38.815486],[48.883249,38.320245],[48.634375,38.270378],[48.010744,38.794015],[48.355529,39.288765],[48.060095,39.582235],[47.685079,39.508364],[46.50572,38.770605],[46.483499,39.464155],[46.034534,39.628021],[45.610012,39.899994],[45.891907,40.218476],[45.359175,40.561504],[45.560351,40.81229],[45.179496,40.985354],[44.97248,41.248129],[45.217426,41.411452],[45.962601,41.123873],[46.501637,41.064445],[46.637908,41.181673],[46.145432,41.722802],[46.404951,41.860675],[46.686071,41.827137],[47.373315,41.219732]]]]}},{"type":"Feature","id":"BDI","properties":{"name":"Burundi"},"geometry":{"type":"Polygon","coordinates":[[[29.339998,-4.499983],[29.276384,-3.293907],[29.024926,-2.839258],[29.632176,-2.917858],[29.938359,-2.348487],[30.469696,-2.413858],[30.527677,-2.807632],[30.743013,-3.034285],[30.752263,-3.35933],[30.50556,-3.568567],[30.116333,-4.090138],[29.753512,-4.452389],[29.339998,-4.499983]]]}},{"type":"Feature","id":"BEL","properties":{"name":"Belgium"},"geometry":{"type":"Polygon","coordinates":[[[3.314971,51.345781],[4.047071,51.267259],[4.973991,51.475024],[5.606976,51.037298],[6.156658,50.803721],[6.043073,50.128052],[5.782417,50.090328],[5.674052,49.529484],[4.799222,49.985373],[4.286023,49.907497],[3.588184,50.378992],[3.123252,50.780363],[2.658422,50.796848],[2.513573,51.148506],[3.314971,51.345781]]]}},{"type":"Feature","id":"BEN","properties":{"name":"Benin"},"geometry":{"type":"Polygon","coordinates":[[[2.691702,6.258817],[1.865241,6.142158],[1.618951,6.832038],[1.664478,9.12859],[1.463043,9.334624],[1.425061,9.825395],[1.077795,10.175607],[0.772336,10.470808],[0.899563,10.997339],[1.24347,11.110511],[1.447178,11.547719],[1.935986,11.64115],[2.154474,11.94015],[2.490164,12.233052],[2.848643,12.235636],[3.61118,11.660167],[3.572216,11.327939],[3.797112,10.734746],[3.60007,10.332186],[3.705438,10.06321],[3.220352,9.444153],[2.912308,9.137608],[2.723793,8.506845],[2.749063,7.870734],[2.691702,6.258817]]]}},{"type":"Feature","id":"BFA","properties":{"name":"Burkina Faso"},"geometry":{"type":"Polygon","coordinates":[[[-2.827496,9.642461],[-3.511899,9.900326],[-3.980449,9.862344],[-4.330247,9.610835],[-4.779884,9.821985],[-4.954653,10.152714],[-5.404342,10.370737],[-5.470565,10.95127],[-5.197843,11.375146],[-5.220942,11.713859],[-4.427166,12.542646],[-4.280405,13.228444],[-4.006391,13.472485],[-3.522803,13.337662],[-3.103707,13.541267],[-2.967694,13.79815],[-2.191825,14.246418],[-2.001035,14.559008],[-1.066363,14.973815],[-0.515854,15.116158],[-0.266257,14.924309],[0.374892,14.928908],[0.295646,14.444235],[0.429928,13.988733],[0.993046,13.33575],[1.024103,12.851826],[2.177108,12.625018],[2.154474,11.94015],[1.935986,11.64115],[1.447178,11.547719],[1.24347,11.110511],[0.899563,10.997339],[0.023803,11.018682],[-0.438702,11.098341],[-0.761576,10.93693],[-1.203358,11.009819],[-2.940409,10.96269],[-2.963896,10.395335],[-2.827496,9.642461]]]}},{"type":"Feature","id":"BGD","properties":{"name":"Bangladesh"},"geometry":{"type":"Polygon","coordinates":[[[92.672721,22.041239],[92.652257,21.324048],[92.303234,21.475485],[92.368554,20.670883],[92.082886,21.192195],[92.025215,21.70157],[91.834891,22.182936],[91.417087,22.765019],[90.496006,22.805017],[90.586957,22.392794],[90.272971,21.836368],[89.847467,22.039146],[89.70205,21.857116],[89.418863,21.966179],[89.031961,22.055708],[88.876312,22.879146],[88.52977,23.631142],[88.69994,24.233715],[88.084422,24.501657],[88.306373,24.866079],[88.931554,25.238692],[88.209789,25.768066],[88.563049,26.446526],[89.355094,26.014407],[89.832481,25.965082],[89.920693,25.26975],[90.872211,25.132601],[91.799596,25.147432],[92.376202,24.976693],[91.915093,24.130414],[91.46773,24.072639],[91.158963,23.503527],[91.706475,22.985264],[91.869928,23.624346],[92.146035,23.627499],[92.672721,22.041239]]]}},{"type":"Feature","id":"BGR","properties":{"name":"Bulgaria"},"geometry":{"type":"Polygon","coordinates":[[[22.65715,44.234923],[22.944832,43.823785],[23.332302,43.897011],[24.100679,43.741051],[25.569272,43.688445],[26.065159,43.943494],[27.2424,44.175986],[27.970107,43.812468],[28.558081,43.707462],[28.039095,43.293172],[27.673898,42.577892],[27.99672,42.007359],[27.135739,42.141485],[26.117042,41.826905],[26.106138,41.328899],[25.197201,41.234486],[24.492645,41.583896],[23.692074,41.309081],[22.952377,41.337994],[22.881374,41.999297],[22.380526,42.32026],[22.545012,42.461362],[22.436595,42.580321],[22.604801,42.898519],[22.986019,43.211161],[22.500157,43.642814],[22.410446,44.008063],[22.65715,44.234923]]]}},{"type":"Feature","id":"BHS","properties":{"name":"The Bahamas"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-77.53466,23.75975],[-77.78,23.71],[-78.03405,24.28615],[-78.40848,24.57564],[-78.19087,25.2103],[-77.89,25.17],[-77.54,24.34],[-77.53466,23.75975]]],[[[-77.82,26.58],[-78.91,26.42],[-78.98,26.79],[-78.51,26.87],[-77.85,26.84],[-77.82,26.58]]],[[[-77,26.59],[-77.17255,25.87918],[-77.35641,26.00735],[-77.34,26.53],[-77.78802,26.92516],[-77.79,27.04],[-77,26.59]]]]}},{"type":"Feature","id":"BIH","properties":{"name":"Bosnia and Herzegovina"},"geometry":{"type":"Polygon","coordinates":[[[19.005486,44.860234],[19.36803,44.863],[19.11761,44.42307],[19.59976,44.03847],[19.454,43.5681],[19.21852,43.52384],[19.03165,43.43253],[18.70648,43.20011],[18.56,42.65],[17.674922,43.028563],[17.297373,43.446341],[16.916156,43.667722],[16.456443,44.04124],[16.23966,44.351143],[15.750026,44.818712],[15.959367,45.233777],[16.318157,45.004127],[16.534939,45.211608],[17.002146,45.233777],[17.861783,45.06774],[18.553214,45.08159],[19.005486,44.860234]]]}},{"type":"Feature","id":"BLR","properties":{"name":"Belarus"},"geometry":{"type":"Polygon","coordinates":[[[23.484128,53.912498],[24.450684,53.905702],[25.536354,54.282423],[25.768433,54.846963],[26.588279,55.167176],[26.494331,55.615107],[27.10246,55.783314],[28.176709,56.16913],[29.229513,55.918344],[29.371572,55.670091],[29.896294,55.789463],[30.873909,55.550976],[30.971836,55.081548],[30.757534,54.811771],[31.384472,54.157056],[31.791424,53.974639],[31.731273,53.794029],[32.405599,53.618045],[32.693643,53.351421],[32.304519,53.132726],[31.497644,53.167427],[31.305201,53.073996],[31.540018,52.742052],[31.785998,52.101678],[30.927549,52.042353],[30.619454,51.822806],[30.555117,51.319503],[30.157364,51.416138],[29.254938,51.368234],[28.992835,51.602044],[28.617613,51.427714],[28.241615,51.572227],[27.454066,51.592303],[26.337959,51.832289],[25.327788,51.910656],[24.553106,51.888461],[24.005078,51.617444],[23.527071,51.578454],[23.508002,52.023647],[23.199494,52.486977],[23.799199,52.691099],[23.804935,53.089731],[23.527536,53.470122],[23.484128,53.912498]]]}},{"type":"Feature","id":"BLZ","properties":{"name":"Belize"},"geometry":{"type":"Polygon","coordinates":[[[-89.14308,17.808319],[-89.150909,17.955468],[-89.029857,18.001511],[-88.848344,17.883198],[-88.490123,18.486831],[-88.300031,18.499982],[-88.296336,18.353273],[-88.106813,18.348674],[-88.123479,18.076675],[-88.285355,17.644143],[-88.197867,17.489475],[-88.302641,17.131694],[-88.239518,17.036066],[-88.355428,16.530774],[-88.551825,16.265467],[-88.732434,16.233635],[-88.930613,15.887273],[-89.229122,15.886938],[-89.150806,17.015577],[-89.14308,17.808319]]]}},{"type":"Feature","id":"BMU","properties":{"name":"Bermuda"},"geometry":{"type":"Polygon","coordinates":[[[-64.7799734332998,32.3072000581802],[-64.7873319183061,32.3039237143428],[-64.7946942710173,32.3032682700388],[-64.8094297981283,32.3098175728414],[-64.8167896352437,32.3058845718466],[-64.8101968029642,32.3022833180511],[-64.7962291465484,32.2934409732427],[-64.7815086336978,32.2868973114514],[-64.7997025513437,32.2796896417328],[-64.8066707691087,32.2747767569465],[-64.8225587873683,32.2669111289395],[-64.8287548840306,32.2669075473817],[-64.8306732143498,32.2583944840235],[-64.8399924854972,32.254782282336],[-64.8566090462354,32.2547740387514],[-64.8682296789446,32.2616393614322],[-64.8628241459563,32.2724481933959],[-64.8748651338951,32.2757120264753],[-64.8717752856644,32.2819371582026],[-64.8671422127295,32.2930760547989],[-64.8559068764437,32.2960321186471],[-64.8597429072279,32.3015842021933],[-64.8439233486717,32.3140553852543],[-64.8350242329311,32.3242161760006],[-64.8338690593672,32.3294587561557],[-64.8520298651164,32.3110911879954],[-64.8635922932573,32.3048469433363],[-64.8686668994079,32.30910745083],[-64.8721354593415,32.3041908606301],[-64.8779667328485,32.3038632800462],[-64.8780046844321,32.2907757831692],[-64.8849776658292,32.2819261366004],[-64.8783230004629,32.2613001418681],[-64.863194968877,32.2465799485801],[-64.8519819555722,32.2485519134663],[-64.842311980074,32.2492123317296],[-64.8388242605209,32.2475773472534],[-64.8334002575532,32.2462714714698],[-64.8256389530584,32.2472637398594],[-64.8205697556026,32.2531698880328],[-64.8105087275579,32.2561208974156],[-64.7900177727338,32.2659446936992],[-64.7745415970416,32.2718413023427],[-64.7644742436426,32.2855931353214],[-64.7551803442276,32.2908326702531],[-64.7423982971436,32.2996734994024],[-64.7206991797682,32.3137542201258],[-64.7117851247134,32.3176823360806],[-64.6962778813133,32.3275029115532],[-64.6768921127452,32.3324095397555],[-64.6567136927777,32.3451776458469],[-64.6532168823499,32.3494356627941],[-64.6605720384429,32.3589423487763],[-64.65125819471,32.3615600906466],[-64.6462011670816,32.36975169749],[-64.6613227512832,32.3763135008721],[-64.6690666074397,32.388444543924],[-64.6834270548595,32.3854968316788],[-64.6954617672714,32.3763221285869],[-64.70438689565,32.3704254760469],[-64.7117569982798,32.368132600249],[-64.7061764744404,32.3600110593559],[-64.700531552697,32.3590601356818],[-64.6940348033967,32.3640708659835],[-64.6895164826082,32.3633598579866],[-64.6864150099255,32.3547797587266],[-64.6824635995504,32.3540628176846],[-64.6835876652835,32.3626447677968],[-64.6801998697415,32.3631199096979],[-64.6672170444687,32.3597751617473],[-64.6598811264978,32.3497625771755],[-64.6737331235384,32.3390281851635],[-64.6887090648183,32.3342439408053],[-64.706732854446,32.3429010723036],[-64.7149301576112,32.3552188753513],[-64.7185967666669,32.3552239212394],[-64.7214189847314,32.3518830231342],[-64.7270616067222,32.3466461715475],[-64.734962460882,32.3442819830499],[-64.7383521549094,32.3407216514918],[-64.7411729976333,32.3311790864627],[-64.7423019216485,32.323311561213],[-64.7462482354281,32.318538611581],[-64.7566773739613,32.3130509130175],[-64.768738200563,32.3088369816572],[-64.7799734332998,32.3072000581802]]]}},{"type":"Feature","id":"BOL","properties":{"name":"Bolivia"},"geometry":{"type":"Polygon","coordinates":[[[-62.846468,-22.034985],[-63.986838,-21.993644],[-64.377021,-22.798091],[-64.964892,-22.075862],[-66.273339,-21.83231],[-67.106674,-22.735925],[-67.82818,-22.872919],[-68.219913,-21.494347],[-68.757167,-20.372658],[-68.442225,-19.405068],[-68.966818,-18.981683],[-69.100247,-18.260125],[-69.590424,-17.580012],[-68.959635,-16.500698],[-69.389764,-15.660129],[-69.160347,-15.323974],[-69.339535,-14.953195],[-68.948887,-14.453639],[-68.929224,-13.602684],[-68.88008,-12.899729],[-68.66508,-12.5613],[-69.529678,-10.951734],[-68.786158,-11.03638],[-68.271254,-11.014521],[-68.048192,-10.712059],[-67.173801,-10.306812],[-66.646908,-9.931331],[-65.338435,-9.761988],[-65.444837,-10.511451],[-65.321899,-10.895872],[-65.402281,-11.56627],[-64.316353,-12.461978],[-63.196499,-12.627033],[-62.80306,-13.000653],[-62.127081,-13.198781],[-61.713204,-13.489202],[-61.084121,-13.479384],[-60.503304,-13.775955],[-60.459198,-14.354007],[-60.264326,-14.645979],[-60.251149,-15.077219],[-60.542966,-15.09391],[-60.15839,-16.258284],[-58.24122,-16.299573],[-58.388058,-16.877109],[-58.280804,-17.27171],[-57.734558,-17.552468],[-57.498371,-18.174188],[-57.676009,-18.96184],[-57.949997,-19.400004],[-57.853802,-19.969995],[-58.166392,-20.176701],[-58.183471,-19.868399],[-59.115042,-19.356906],[-60.043565,-19.342747],[-61.786326,-19.633737],[-62.265961,-20.513735],[-62.291179,-21.051635],[-62.685057,-22.249029],[-62.846468,-22.034985]]]}},{"type":"Feature","id":"BRA","properties":{"name":"Brazil"},"geometry":{"type":"Polygon","coordinates":[[[-57.625133,-30.216295],[-56.2909,-28.852761],[-55.162286,-27.881915],[-54.490725,-27.474757],[-53.648735,-26.923473],[-53.628349,-26.124865],[-54.13005,-25.547639],[-54.625291,-25.739255],[-54.428946,-25.162185],[-54.293476,-24.5708],[-54.29296,-24.021014],[-54.652834,-23.839578],[-55.027902,-24.001274],[-55.400747,-23.956935],[-55.517639,-23.571998],[-55.610683,-22.655619],[-55.797958,-22.35693],[-56.473317,-22.0863],[-56.88151,-22.282154],[-57.937156,-22.090176],[-57.870674,-20.732688],[-58.166392,-20.176701],[-57.853802,-19.969995],[-57.949997,-19.400004],[-57.676009,-18.96184],[-57.498371,-18.174188],[-57.734558,-17.552468],[-58.280804,-17.27171],[-58.388058,-16.877109],[-58.24122,-16.299573],[-60.15839,-16.258284],[-60.542966,-15.09391],[-60.251149,-15.077219],[-60.264326,-14.645979],[-60.459198,-14.354007],[-60.503304,-13.775955],[-61.084121,-13.479384],[-61.713204,-13.489202],[-62.127081,-13.198781],[-62.80306,-13.000653],[-63.196499,-12.627033],[-64.316353,-12.461978],[-65.402281,-11.56627],[-65.321899,-10.895872],[-65.444837,-10.511451],[-65.338435,-9.761988],[-66.646908,-9.931331],[-67.173801,-10.306812],[-68.048192,-10.712059],[-68.271254,-11.014521],[-68.786158,-11.03638],[-69.529678,-10.951734],[-70.093752,-11.123972],[-70.548686,-11.009147],[-70.481894,-9.490118],[-71.302412,-10.079436],[-72.184891,-10.053598],[-72.563033,-9.520194],[-73.226713,-9.462213],[-73.015383,-9.032833],[-73.571059,-8.424447],[-73.987235,-7.52383],[-73.723401,-7.340999],[-73.724487,-6.918595],[-73.120027,-6.629931],[-73.219711,-6.089189],[-72.964507,-5.741251],[-72.891928,-5.274561],[-71.748406,-4.593983],[-70.928843,-4.401591],[-70.794769,-4.251265],[-69.893635,-4.298187],[-69.444102,-1.556287],[-69.420486,-1.122619],[-69.577065,-0.549992],[-70.020656,-0.185156],[-70.015566,0.541414],[-69.452396,0.706159],[-69.252434,0.602651],[-69.218638,0.985677],[-69.804597,1.089081],[-69.816973,1.714805],[-67.868565,1.692455],[-67.53781,2.037163],[-67.259998,1.719999],[-67.065048,1.130112],[-66.876326,1.253361],[-66.325765,0.724452],[-65.548267,0.789254],[-65.354713,1.095282],[-64.611012,1.328731],[-64.199306,1.492855],[-64.083085,1.916369],[-63.368788,2.2009],[-63.422867,2.411068],[-64.269999,2.497006],[-64.408828,3.126786],[-64.368494,3.79721],[-64.816064,4.056445],[-64.628659,4.148481],[-63.888343,4.02053],[-63.093198,3.770571],[-62.804533,4.006965],[-62.08543,4.162124],[-60.966893,4.536468],[-60.601179,4.918098],[-60.733574,5.200277],[-60.213683,5.244486],[-59.980959,5.014061],[-60.111002,4.574967],[-59.767406,4.423503],[-59.53804,3.958803],[-59.815413,3.606499],[-59.974525,2.755233],[-59.718546,2.24963],[-59.646044,1.786894],[-59.030862,1.317698],[-58.540013,1.268088],[-58.429477,1.463942],[-58.11345,1.507195],[-57.660971,1.682585],[-57.335823,1.948538],[-56.782704,1.863711],[-56.539386,1.899523],[-55.995698,1.817667],[-55.9056,2.021996],[-56.073342,2.220795],[-55.973322,2.510364],[-55.569755,2.421506],[-55.097587,2.523748],[-54.524754,2.311849],[-54.088063,2.105557],[-53.778521,2.376703],[-53.554839,2.334897],[-53.418465,2.053389],[-52.939657,2.124858],[-52.556425,2.504705],[-52.249338,3.241094],[-51.657797,4.156232],[-51.317146,4.203491],[-51.069771,3.650398],[-50.508875,1.901564],[-49.974076,1.736483],[-49.947101,1.04619],[-50.699251,0.222984],[-50.388211,-0.078445],[-48.620567,-0.235489],[-48.584497,-1.237805],[-47.824956,-0.581618],[-46.566584,-0.941028],[-44.905703,-1.55174],[-44.417619,-2.13775],[-44.581589,-2.691308],[-43.418791,-2.38311],[-41.472657,-2.912018],[-39.978665,-2.873054],[-38.500383,-3.700652],[-37.223252,-4.820946],[-36.452937,-5.109404],[-35.597796,-5.149504],[-35.235389,-5.464937],[-34.89603,-6.738193],[-34.729993,-7.343221],[-35.128212,-8.996401],[-35.636967,-9.649282],[-37.046519,-11.040721],[-37.683612,-12.171195],[-38.423877,-13.038119],[-38.673887,-13.057652],[-38.953276,-13.79337],[-38.882298,-15.667054],[-39.161092,-17.208407],[-39.267339,-17.867746],[-39.583521,-18.262296],[-39.760823,-19.599113],[-40.774741,-20.904512],[-40.944756,-21.937317],[-41.754164,-22.370676],[-41.988284,-22.97007],[-43.074704,-22.967693],[-44.647812,-23.351959],[-45.352136,-23.796842],[-46.472093,-24.088969],[-47.648972,-24.885199],[-48.495458,-25.877025],[-48.641005,-26.623698],[-48.474736,-27.175912],[-48.66152,-28.186135],[-48.888457,-28.674115],[-49.587329,-29.224469],[-50.696874,-30.984465],[-51.576226,-31.777698],[-52.256081,-32.24537],[-52.7121,-33.196578],[-53.373662,-33.768378],[-53.650544,-33.202004],[-53.209589,-32.727666],[-53.787952,-32.047243],[-54.572452,-31.494511],[-55.60151,-30.853879],[-55.973245,-30.883076],[-56.976026,-30.109686],[-57.625133,-30.216295]]]}},{"type":"Feature","id":"BRN","properties":{"name":"Brunei"},"geometry":{"type":"Polygon","coordinates":[[[114.204017,4.525874],[114.599961,4.900011],[115.45071,5.44773],[115.4057,4.955228],[115.347461,4.316636],[114.869557,4.348314],[114.659596,4.007637],[114.204017,4.525874]]]}},{"type":"Feature","id":"BTN","properties":{"name":"Bhutan"},"geometry":{"type":"Polygon","coordinates":[[[91.696657,27.771742],[92.103712,27.452614],[92.033484,26.83831],[91.217513,26.808648],[90.373275,26.875724],[89.744528,26.719403],[88.835643,27.098966],[88.814248,27.299316],[89.47581,28.042759],[90.015829,28.296439],[90.730514,28.064954],[91.258854,28.040614],[91.696657,27.771742]]]}},{"type":"Feature","id":"BWA","properties":{"name":"Botswana"},"geometry":{"type":"Polygon","coordinates":[[[25.649163,-18.536026],[25.850391,-18.714413],[26.164791,-19.293086],[27.296505,-20.39152],[27.724747,-20.499059],[27.727228,-20.851802],[28.02137,-21.485975],[28.794656,-21.639454],[29.432188,-22.091313],[28.017236,-22.827754],[27.11941,-23.574323],[26.786407,-24.240691],[26.485753,-24.616327],[25.941652,-24.696373],[25.765849,-25.174845],[25.664666,-25.486816],[25.025171,-25.71967],[24.211267,-25.670216],[23.73357,-25.390129],[23.312097,-25.26869],[22.824271,-25.500459],[22.579532,-25.979448],[22.105969,-26.280256],[21.605896,-26.726534],[20.889609,-26.828543],[20.66647,-26.477453],[20.758609,-25.868136],[20.165726,-24.917962],[19.895768,-24.76779],[19.895458,-21.849157],[20.881134,-21.814327],[20.910641,-18.252219],[21.65504,-18.219146],[23.196858,-17.869038],[23.579006,-18.281261],[24.217365,-17.889347],[24.520705,-17.887125],[25.084443,-17.661816],[25.264226,-17.73654],[25.649163,-18.536026]]]}},{"type":"Feature","id":"CAF","properties":{"name":"Central African Republic"},"geometry":{"type":"Polygon","coordinates":[[[15.27946,7.421925],[16.106232,7.497088],[16.290562,7.754307],[16.456185,7.734774],[16.705988,7.508328],[17.96493,7.890914],[18.389555,8.281304],[18.911022,8.630895],[18.81201,8.982915],[19.094008,9.074847],[20.059685,9.012706],[21.000868,9.475985],[21.723822,10.567056],[22.231129,10.971889],[22.864165,11.142395],[22.977544,10.714463],[23.554304,10.089255],[23.55725,9.681218],[23.394779,9.265068],[23.459013,8.954286],[23.805813,8.666319],[24.567369,8.229188],[25.114932,7.825104],[25.124131,7.500085],[25.796648,6.979316],[26.213418,6.546603],[26.465909,5.946717],[27.213409,5.550953],[27.374226,5.233944],[27.044065,5.127853],[26.402761,5.150875],[25.650455,5.256088],[25.278798,5.170408],[25.128833,4.927245],[24.805029,4.897247],[24.410531,5.108784],[23.297214,4.609693],[22.84148,4.710126],[22.704124,4.633051],[22.405124,4.02916],[21.659123,4.224342],[20.927591,4.322786],[20.290679,4.691678],[19.467784,5.031528],[18.932312,4.709506],[18.542982,4.201785],[18.453065,3.504386],[17.8099,3.560196],[17.133042,3.728197],[16.537058,3.198255],[16.012852,2.26764],[15.907381,2.557389],[15.862732,3.013537],[15.405396,3.335301],[15.03622,3.851367],[14.950953,4.210389],[14.478372,4.732605],[14.558936,5.030598],[14.459407,5.451761],[14.53656,6.226959],[14.776545,6.408498],[15.27946,7.421925]]]}},{"type":"Feature","id":"CAN","properties":{"name":"Canada"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-63.6645,46.55001],[-62.9393,46.41587],[-62.01208,46.44314],[-62.50391,46.03339],[-62.87433,45.96818],[-64.1428,46.39265],[-64.39261,46.72747],[-64.01486,47.03601],[-63.6645,46.55001]]],[[[-61.806305,49.10506],[-62.29318,49.08717],[-63.58926,49.40069],[-64.51912,49.87304],[-64.17322,49.95718],[-62.85829,49.70641],[-61.835585,49.28855],[-61.806305,49.10506]]],[[[-123.510002,48.510011],[-124.012891,48.370846],[-125.655013,48.825005],[-125.954994,49.179996],[-126.850004,49.53],[-127.029993,49.814996],[-128.059336,49.994959],[-128.444584,50.539138],[-128.358414,50.770648],[-127.308581,50.552574],[-126.695001,50.400903],[-125.755007,50.295018],[-125.415002,49.950001],[-124.920768,49.475275],[-123.922509,49.062484],[-123.510002,48.510011]]],[[[-56.134036,50.68701],[-56.795882,49.812309],[-56.143105,50.150117],[-55.471492,49.935815],[-55.822401,49.587129],[-54.935143,49.313011],[-54.473775,49.556691],[-53.476549,49.249139],[-53.786014,48.516781],[-53.086134,48.687804],[-52.958648,48.157164],[-52.648099,47.535548],[-53.069158,46.655499],[-53.521456,46.618292],[-54.178936,46.807066],[-53.961869,47.625207],[-54.240482,47.752279],[-55.400773,46.884994],[-55.997481,46.91972],[-55.291219,47.389562],[-56.250799,47.632545],[-57.325229,47.572807],[-59.266015,47.603348],[-59.419494,47.899454],[-58.796586,48.251525],[-59.231625,48.523188],[-58.391805,49.125581],[-57.35869,50.718274],[-56.73865,51.287438],[-55.870977,51.632094],[-55.406974,51.588273],[-55.600218,51.317075],[-56.134036,50.68701]]],[[[-132.710008,54.040009],[-132.710009,54.040009],[-132.710008,54.040009],[-132.710008,54.040009],[-131.74999,54.120004],[-132.04948,52.984621],[-131.179043,52.180433],[-131.57783,52.182371],[-132.180428,52.639707],[-132.549992,53.100015],[-133.054611,53.411469],[-133.239664,53.85108],[-133.180004,54.169975],[-132.710008,54.040009]]],[[[-79.26582,62.158675],[-79.65752,61.63308],[-80.09956,61.7181],[-80.36215,62.01649],[-80.315395,62.085565],[-79.92939,62.3856],[-79.52002,62.36371],[-79.26582,62.158675]]],[[[-81.89825,62.7108],[-83.06857,62.15922],[-83.77462,62.18231],[-83.99367,62.4528],[-83.25048,62.91409],[-81.87699,62.90458],[-81.89825,62.7108]]],[[[-85.161308,65.657285],[-84.975764,65.217518],[-84.464012,65.371772],[-83.882626,65.109618],[-82.787577,64.766693],[-81.642014,64.455136],[-81.55344,63.979609],[-80.817361,64.057486],[-80.103451,63.725981],[-80.99102,63.411246],[-82.547178,63.651722],[-83.108798,64.101876],[-84.100417,63.569712],[-85.523405,63.052379],[-85.866769,63.637253],[-87.221983,63.541238],[-86.35276,64.035833],[-86.224886,64.822917],[-85.883848,65.738778],[-85.161308,65.657285]]],[[[-75.86588,67.14886],[-76.98687,67.09873],[-77.2364,67.58809],[-76.81166,68.14856],[-75.89521,68.28721],[-75.1145,68.01036],[-75.10333,67.58202],[-75.21597,67.44425],[-75.86588,67.14886]]],[[[-95.647681,69.10769],[-96.269521,68.75704],[-97.617401,69.06003],[-98.431801,68.9507],[-99.797401,69.40003],[-98.917401,69.71003],[-98.218261,70.14354],[-97.157401,69.86003],[-96.557401,69.68003],[-96.257401,69.49003],[-95.647681,69.10769]]],[[[-90.5471,69.49766],[-90.55151,68.47499],[-89.21515,69.25873],[-88.01966,68.61508],[-88.31749,67.87338],[-87.35017,67.19872],[-86.30607,67.92146],[-85.57664,68.78456],[-85.52197,69.88211],[-84.10081,69.80539],[-82.62258,69.65826],[-81.28043,69.16202],[-81.2202,68.66567],[-81.96436,68.13253],[-81.25928,67.59716],[-81.38653,67.11078],[-83.34456,66.41154],[-84.73542,66.2573],[-85.76943,66.55833],[-86.0676,66.05625],[-87.03143,65.21297],[-87.32324,64.77563],[-88.48296,64.09897],[-89.91444,64.03273],[-90.70398,63.61017],[-90.77004,62.96021],[-91.93342,62.83508],[-93.15698,62.02469],[-94.24153,60.89865],[-94.62931,60.11021],[-94.6846,58.94882],[-93.21502,58.78212],[-92.76462,57.84571],[-92.29703,57.08709],[-90.89769,57.28468],[-89.03953,56.85172],[-88.03978,56.47162],[-87.32421,55.99914],[-86.07121,55.72383],[-85.01181,55.3026],[-83.36055,55.24489],[-82.27285,55.14832],[-82.4362,54.28227],[-82.12502,53.27703],[-81.40075,52.15788],[-79.91289,51.20842],[-79.14301,51.53393],[-78.60191,52.56208],[-79.12421,54.14145],[-79.82958,54.66772],[-78.22874,55.13645],[-77.0956,55.83741],[-76.54137,56.53423],[-76.62319,57.20263],[-77.30226,58.05209],[-78.51688,58.80458],[-77.33676,59.85261],[-77.77272,60.75788],[-78.10687,62.31964],[-77.41067,62.55053],[-75.69621,62.2784],[-74.6682,62.18111],[-73.83988,62.4438],[-72.90853,62.10507],[-71.67708,61.52535],[-71.37369,61.13717],[-69.59042,61.06141],[-69.62033,60.22125],[-69.2879,58.95736],[-68.37455,58.80106],[-67.64976,58.21206],[-66.20178,58.76731],[-65.24517,59.87071],[-64.58352,60.33558],[-63.80475,59.4426],[-62.50236,58.16708],[-61.39655,56.96745],[-61.79866,56.33945],[-60.46853,55.77548],[-59.56962,55.20407],[-57.97508,54.94549],[-57.3332,54.6265],[-56.93689,53.78032],[-56.15811,53.64749],[-55.75632,53.27036],[-55.68338,52.14664],[-56.40916,51.7707],[-57.12691,51.41972],[-58.77482,51.0643],[-60.03309,50.24277],[-61.72366,50.08046],[-63.86251,50.29099],[-65.36331,50.2982],[-66.39905,50.22897],[-67.23631,49.51156],[-68.51114,49.06836],[-69.95362,47.74488],[-71.10458,46.82171],[-70.25522,46.98606],[-68.65,48.3],[-66.55243,49.1331],[-65.05626,49.23278],[-64.17099,48.74248],[-65.11545,48.07085],[-64.79854,46.99297],[-64.47219,46.23849],[-63.17329,45.73902],[-61.52072,45.88377],[-60.51815,47.00793],[-60.4486,46.28264],[-59.80287,45.9204],[-61.03988,45.26525],[-63.25471,44.67014],[-64.24656,44.26553],[-65.36406,43.54523],[-66.1234,43.61867],[-66.16173,44.46512],[-64.42549,45.29204],[-66.02605,45.25931],[-67.13741,45.13753],[-67.79134,45.70281],[-67.79046,47.06636],[-68.23444,47.35486],[-68.905,47.185],[-69.237216,47.447781],[-69.99997,46.69307],[-70.305,45.915],[-70.66,45.46],[-71.08482,45.30524],[-71.405,45.255],[-71.50506,45.0082],[-73.34783,45.00738],[-74.867,45.00048],[-75.31821,44.81645],[-76.375,44.09631],[-76.5,44.018459],[-76.820034,43.628784],[-77.737885,43.629056],[-78.72028,43.625089],[-79.171674,43.466339],[-79.01,43.27],[-78.92,42.965],[-78.939362,42.863611],[-80.247448,42.3662],[-81.277747,42.209026],[-82.439278,41.675105],[-82.690089,41.675105],[-83.02981,41.832796],[-83.142,41.975681],[-83.12,42.08],[-82.9,42.43],[-82.43,42.98],[-82.137642,43.571088],[-82.337763,44.44],[-82.550925,45.347517],[-83.592851,45.816894],[-83.469551,45.994686],[-83.616131,46.116927],[-83.890765,46.116927],[-84.091851,46.275419],[-84.14212,46.512226],[-84.3367,46.40877],[-84.6049,46.4396],[-84.543749,46.538684],[-84.779238,46.637102],[-84.87608,46.900083],[-85.652363,47.220219],[-86.461991,47.553338],[-87.439793,47.94],[-88.378114,48.302918],[-89.272917,48.019808],[-89.6,48.01],[-90.83,48.27],[-91.64,48.14],[-92.61,48.45],[-93.63087,48.60926],[-94.32914,48.67074],[-94.64,48.84],[-94.81758,49.38905],[-95.15609,49.38425],[-95.15907,49],[-97.22872,49.0007],[-100.65,49],[-104.04826,48.99986],[-107.05,49],[-110.05,49],[-113,49],[-116.04818,49],[-117.03121,49],[-120,49],[-122.84,49],[-122.97421,49.002538],[-124.91024,49.98456],[-125.62461,50.41656],[-127.43561,50.83061],[-127.99276,51.71583],[-127.85032,52.32961],[-129.12979,52.75538],[-129.30523,53.56159],[-130.51497,54.28757],[-130.53611,54.80278],[-129.98,55.285],[-130.00778,55.91583],[-131.70781,56.55212],[-132.73042,57.69289],[-133.35556,58.41028],[-134.27111,58.86111],[-134.945,59.27056],[-135.47583,59.78778],[-136.47972,59.46389],[-137.4525,58.905],[-138.34089,59.56211],[-139.039,60],[-140.013,60.27682],[-140.99778,60.30639],[-140.9925,66.00003],[-140.986,69.712],[-139.12052,69.47102],[-137.54636,68.99002],[-136.50358,68.89804],[-135.62576,69.31512],[-134.41464,69.62743],[-132.92925,69.50534],[-131.43136,69.94451],[-129.79471,70.19369],[-129.10773,69.77927],[-128.36156,70.01286],[-128.13817,70.48384],[-127.44712,70.37721],[-125.75632,69.48058],[-124.42483,70.1584],[-124.28968,69.39969],[-123.06108,69.56372],[-122.6835,69.85553],[-121.47226,69.79778],[-119.94288,69.37786],[-117.60268,69.01128],[-116.22643,68.84151],[-115.2469,68.90591],[-113.89794,68.3989],[-115.30489,67.90261],[-113.49727,67.68815],[-110.798,67.80612],[-109.94619,67.98104],[-108.8802,67.38144],[-107.79239,67.88736],[-108.81299,68.31164],[-108.16721,68.65392],[-106.95,68.7],[-106.15,68.8],[-105.34282,68.56122],[-104.33791,68.018],[-103.22115,68.09775],[-101.45433,67.64689],[-99.90195,67.80566],[-98.4432,67.78165],[-98.5586,68.40394],[-97.66948,68.57864],[-96.11991,68.23939],[-96.12588,67.29338],[-95.48943,68.0907],[-94.685,68.06383],[-94.23282,69.06903],[-95.30408,69.68571],[-96.47131,70.08976],[-96.39115,71.19482],[-95.2088,71.92053],[-93.88997,71.76015],[-92.87818,71.31869],[-91.51964,70.19129],[-92.40692,69.69997],[-90.5471,69.49766]]],[[[-114.16717,73.12145],[-114.66634,72.65277],[-112.44102,72.9554],[-111.05039,72.4504],[-109.92035,72.96113],[-109.00654,72.63335],[-108.18835,71.65089],[-107.68599,72.06548],[-108.39639,73.08953],[-107.51645,73.23598],[-106.52259,73.07601],[-105.40246,72.67259],[-104.77484,71.6984],[-104.46476,70.99297],[-102.78537,70.49776],[-100.98078,70.02432],[-101.08929,69.58447],[-102.73116,69.50402],[-102.09329,69.11962],[-102.43024,68.75282],[-104.24,68.91],[-105.96,69.18],[-107.12254,69.11922],[-109,68.78],[-111.534149,68.630059],[-113.3132,68.53554],[-113.85496,69.00744],[-115.22,69.28],[-116.10794,69.16821],[-117.34,69.96],[-116.67473,70.06655],[-115.13112,70.2373],[-113.72141,70.19237],[-112.4161,70.36638],[-114.35,70.6],[-116.48684,70.52045],[-117.9048,70.54056],[-118.43238,70.9092],[-116.11311,71.30918],[-117.65568,71.2952],[-119.40199,71.55859],[-118.56267,72.30785],[-117.86642,72.70594],[-115.18909,73.31459],[-114.16717,73.12145]]],[[[-104.5,73.42],[-105.38,72.76],[-106.94,73.46],[-106.6,73.6],[-105.26,73.64],[-104.5,73.42]]],[[[-76.34,73.102685],[-76.251404,72.826385],[-77.314438,72.855545],[-78.39167,72.876656],[-79.486252,72.742203],[-79.775833,72.802902],[-80.876099,73.333183],[-80.833885,73.693184],[-80.353058,73.75972],[-78.064438,73.651932],[-76.34,73.102685]]],[[[-86.562179,73.157447],[-85.774371,72.534126],[-84.850112,73.340278],[-82.31559,73.750951],[-80.600088,72.716544],[-80.748942,72.061907],[-78.770639,72.352173],[-77.824624,72.749617],[-75.605845,72.243678],[-74.228616,71.767144],[-74.099141,71.33084],[-72.242226,71.556925],[-71.200015,70.920013],[-68.786054,70.525024],[-67.91497,70.121948],[-66.969033,69.186087],[-68.805123,68.720198],[-66.449866,68.067163],[-64.862314,67.847539],[-63.424934,66.928473],[-61.851981,66.862121],[-62.163177,66.160251],[-63.918444,64.998669],[-65.14886,65.426033],[-66.721219,66.388041],[-68.015016,66.262726],[-68.141287,65.689789],[-67.089646,65.108455],[-65.73208,64.648406],[-65.320168,64.382737],[-64.669406,63.392927],[-65.013804,62.674185],[-66.275045,62.945099],[-68.783186,63.74567],[-67.369681,62.883966],[-66.328297,62.280075],[-66.165568,61.930897],[-68.877367,62.330149],[-71.023437,62.910708],[-72.235379,63.397836],[-71.886278,63.679989],[-73.378306,64.193963],[-74.834419,64.679076],[-74.818503,64.389093],[-77.70998,64.229542],[-78.555949,64.572906],[-77.897281,65.309192],[-76.018274,65.326969],[-73.959795,65.454765],[-74.293883,65.811771],[-73.944912,66.310578],[-72.651167,67.284576],[-72.92606,67.726926],[-73.311618,68.069437],[-74.843307,68.554627],[-76.869101,68.894736],[-76.228649,69.147769],[-77.28737,69.76954],[-78.168634,69.826488],[-78.957242,70.16688],[-79.492455,69.871808],[-81.305471,69.743185],[-84.944706,69.966634],[-87.060003,70.260001],[-88.681713,70.410741],[-89.51342,70.762038],[-88.467721,71.218186],[-89.888151,71.222552],[-90.20516,72.235074],[-89.436577,73.129464],[-88.408242,73.537889],[-85.826151,73.803816],[-86.562179,73.157447]]],[[[-100.35642,73.84389],[-99.16387,73.63339],[-97.38,73.76],[-97.12,73.47],[-98.05359,72.99052],[-96.54,72.56],[-96.72,71.66],[-98.35966,71.27285],[-99.32286,71.35639],[-100.01482,71.73827],[-102.5,72.51],[-102.48,72.83],[-100.43836,72.70588],[-101.54,73.36],[-100.35642,73.84389]]],[[[-93.196296,72.771992],[-94.269047,72.024596],[-95.409856,72.061881],[-96.033745,72.940277],[-96.018268,73.43743],[-95.495793,73.862417],[-94.503658,74.134907],[-92.420012,74.100025],[-90.509793,73.856732],[-92.003965,72.966244],[-93.196296,72.771992]]],[[[-120.46,71.383602],[-123.09219,70.90164],[-123.62,71.34],[-125.928949,71.868688],[-125.5,72.292261],[-124.80729,73.02256],[-123.94,73.68],[-124.91775,74.29275],[-121.53788,74.44893],[-120.10978,74.24135],[-117.55564,74.18577],[-116.58442,73.89607],[-115.51081,73.47519],[-116.76794,73.22292],[-119.22,72.52],[-120.46,71.82],[-120.46,71.383602]]],[[[-93.612756,74.979997],[-94.156909,74.592347],[-95.608681,74.666864],[-96.820932,74.927623],[-96.288587,75.377828],[-94.85082,75.647218],[-93.977747,75.29649],[-93.612756,74.979997]]],[[[-98.5,76.72],[-97.735585,76.25656],[-97.704415,75.74344],[-98.16,75],[-99.80874,74.89744],[-100.88366,75.05736],[-100.86292,75.64075],[-102.50209,75.5638],[-102.56552,76.3366],[-101.48973,76.30537],[-99.98349,76.64634],[-98.57699,76.58859],[-98.5,76.72]]],[[[-108.21141,76.20168],[-107.81943,75.84552],[-106.92893,76.01282],[-105.881,75.9694],[-105.70498,75.47951],[-106.31347,75.00527],[-109.7,74.85],[-112.22307,74.41696],[-113.74381,74.39427],[-113.87135,74.72029],[-111.79421,75.1625],[-116.31221,75.04343],[-117.7104,75.2222],[-116.34602,76.19903],[-115.40487,76.47887],[-112.59056,76.14134],[-110.81422,75.54919],[-109.0671,75.47321],[-110.49726,76.42982],[-109.5811,76.79417],[-108.54859,76.67832],[-108.21141,76.20168]]],[[[-94.684086,77.097878],[-93.573921,76.776296],[-91.605023,76.778518],[-90.741846,76.449597],[-90.969661,76.074013],[-89.822238,75.847774],[-89.187083,75.610166],[-87.838276,75.566189],[-86.379192,75.482421],[-84.789625,75.699204],[-82.753445,75.784315],[-81.128531,75.713983],[-80.057511,75.336849],[-79.833933,74.923127],[-80.457771,74.657304],[-81.948843,74.442459],[-83.228894,74.564028],[-86.097452,74.410032],[-88.15035,74.392307],[-89.764722,74.515555],[-92.422441,74.837758],[-92.768285,75.38682],[-92.889906,75.882655],[-93.893824,76.319244],[-95.962457,76.441381],[-97.121379,76.751078],[-96.745123,77.161389],[-94.684086,77.097878]]],[[[-116.198587,77.645287],[-116.335813,76.876962],[-117.106051,76.530032],[-118.040412,76.481172],[-119.899318,76.053213],[-121.499995,75.900019],[-122.854924,76.116543],[-122.854925,76.116543],[-121.157535,76.864508],[-119.103939,77.51222],[-117.570131,77.498319],[-116.198587,77.645287]]],[[[-93.840003,77.519997],[-94.295608,77.491343],[-96.169654,77.555111],[-96.436304,77.834629],[-94.422577,77.820005],[-93.720656,77.634331],[-93.840003,77.519997]]],[[[-110.186938,77.697015],[-112.051191,77.409229],[-113.534279,77.732207],[-112.724587,78.05105],[-111.264443,78.152956],[-109.854452,77.996325],[-110.186938,77.697015]]],[[[-109.663146,78.601973],[-110.881314,78.40692],[-112.542091,78.407902],[-112.525891,78.550555],[-111.50001,78.849994],[-110.963661,78.804441],[-109.663146,78.601973]]],[[[-95.830295,78.056941],[-97.309843,77.850597],[-98.124289,78.082857],[-98.552868,78.458105],[-98.631984,78.87193],[-97.337231,78.831984],[-96.754399,78.765813],[-95.559278,78.418315],[-95.830295,78.056941]]],[[[-100.060192,78.324754],[-99.670939,77.907545],[-101.30394,78.018985],[-102.949809,78.343229],[-105.176133,78.380332],[-104.210429,78.67742],[-105.41958,78.918336],[-105.492289,79.301594],[-103.529282,79.165349],[-100.825158,78.800462],[-100.060192,78.324754]]],[[[-87.02,79.66],[-85.81435,79.3369],[-87.18756,79.0393],[-89.03535,78.28723],[-90.80436,78.21533],[-92.87669,78.34333],[-93.95116,78.75099],[-93.93574,79.11373],[-93.14524,79.3801],[-94.974,79.37248],[-96.07614,79.70502],[-96.70972,80.15777],[-96.01644,80.60233],[-95.32345,80.90729],[-94.29843,80.97727],[-94.73542,81.20646],[-92.40984,81.25739],[-91.13289,80.72345],[-89.45,80.509322],[-87.81,80.32],[-87.02,79.66]]],[[[-68.5,83.106322],[-65.82735,83.02801],[-63.68,82.9],[-61.85,82.6286],[-61.89388,82.36165],[-64.334,81.92775],[-66.75342,81.72527],[-67.65755,81.50141],[-65.48031,81.50657],[-67.84,80.9],[-69.4697,80.61683],[-71.18,79.8],[-73.2428,79.63415],[-73.88,79.430162],[-76.90773,79.32309],[-75.52924,79.19766],[-76.22046,79.01907],[-75.39345,78.52581],[-76.34354,78.18296],[-77.88851,77.89991],[-78.36269,77.50859],[-79.75951,77.20968],[-79.61965,76.98336],[-77.91089,77.022045],[-77.88911,76.777955],[-80.56125,76.17812],[-83.17439,76.45403],[-86.11184,76.29901],[-87.6,76.42],[-89.49068,76.47239],[-89.6161,76.95213],[-87.76739,77.17833],[-88.26,77.9],[-87.65,77.970222],[-84.97634,77.53873],[-86.34,78.18],[-87.96192,78.37181],[-87.15198,78.75867],[-85.37868,78.9969],[-85.09495,79.34543],[-86.50734,79.73624],[-86.93179,80.25145],[-84.19844,80.20836],[-83.408696,80.1],[-81.84823,80.46442],[-84.1,80.58],[-87.59895,80.51627],[-89.36663,80.85569],[-90.2,81.26],[-91.36786,81.5531],[-91.58702,81.89429],[-90.1,82.085],[-88.93227,82.11751],[-86.97024,82.27961],[-85.5,82.652273],[-84.260005,82.6],[-83.18,82.32],[-82.42,82.86],[-81.1,83.02],[-79.30664,83.13056],[-76.25,83.172059],[-75.71878,83.06404],[-72.83153,83.23324],[-70.665765,83.169781],[-68.5,83.106322]]]]}},{"type":"Feature","id":"CHE","properties":{"name":"Switzerland"},"geometry":{"type":"Polygon","coordinates":[[[9.594226,47.525058],[9.632932,47.347601],[9.47997,47.10281],[9.932448,46.920728],[10.442701,46.893546],[10.363378,46.483571],[9.922837,46.314899],[9.182882,46.440215],[8.966306,46.036932],[8.489952,46.005151],[8.31663,46.163642],[7.755992,45.82449],[7.273851,45.776948],[6.843593,45.991147],[6.5001,46.429673],[6.022609,46.27299],[6.037389,46.725779],[6.768714,47.287708],[6.736571,47.541801],[7.192202,47.449766],[7.466759,47.620582],[8.317301,47.61358],[8.522612,47.830828],[9.594226,47.525058]]]}},{"type":"Feature","id":"CHL","properties":{"name":"Chile"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-68.63401,-52.63637],[-68.63335,-54.8695],[-67.56244,-54.87001],[-66.95992,-54.89681],[-67.29103,-55.30124],[-68.14863,-55.61183],[-68.639991,-55.580018],[-69.2321,-55.49906],[-69.95809,-55.19843],[-71.00568,-55.05383],[-72.2639,-54.49514],[-73.2852,-53.95752],[-74.66253,-52.83749],[-73.8381,-53.04743],[-72.43418,-53.7154],[-71.10773,-54.07433],[-70.59178,-53.61583],[-70.26748,-52.93123],[-69.34565,-52.5183],[-68.63401,-52.63637]]],[[[-68.219913,-21.494347],[-67.82818,-22.872919],[-67.106674,-22.735925],[-66.985234,-22.986349],[-67.328443,-24.025303],[-68.417653,-24.518555],[-68.386001,-26.185016],[-68.5948,-26.506909],[-68.295542,-26.89934],[-69.001235,-27.521214],[-69.65613,-28.459141],[-70.01355,-29.367923],[-69.919008,-30.336339],[-70.535069,-31.36501],[-70.074399,-33.09121],[-69.814777,-33.273886],[-69.817309,-34.193571],[-70.388049,-35.169688],[-70.364769,-36.005089],[-71.121881,-36.658124],[-71.118625,-37.576827],[-70.814664,-38.552995],[-71.413517,-38.916022],[-71.680761,-39.808164],[-71.915734,-40.832339],[-71.746804,-42.051386],[-72.148898,-42.254888],[-71.915424,-43.408565],[-71.464056,-43.787611],[-71.793623,-44.207172],[-71.329801,-44.407522],[-71.222779,-44.784243],[-71.659316,-44.973689],[-71.552009,-45.560733],[-71.917258,-46.884838],[-72.447355,-47.738533],[-72.331161,-48.244238],[-72.648247,-48.878618],[-73.415436,-49.318436],[-73.328051,-50.378785],[-72.975747,-50.74145],[-72.309974,-50.67701],[-72.329404,-51.425956],[-71.914804,-52.009022],[-69.498362,-52.142761],[-68.571545,-52.299444],[-69.461284,-52.291951],[-69.94278,-52.537931],[-70.845102,-52.899201],[-71.006332,-53.833252],[-71.429795,-53.856455],[-72.557943,-53.53141],[-73.702757,-52.835069],[-73.702757,-52.83507],[-74.946763,-52.262754],[-75.260026,-51.629355],[-74.976632,-51.043396],[-75.479754,-50.378372],[-75.608015,-48.673773],[-75.18277,-47.711919],[-74.126581,-46.939253],[-75.644395,-46.647643],[-74.692154,-45.763976],[-74.351709,-44.103044],[-73.240356,-44.454961],[-72.717804,-42.383356],[-73.3889,-42.117532],[-73.701336,-43.365776],[-74.331943,-43.224958],[-74.017957,-41.794813],[-73.677099,-39.942213],[-73.217593,-39.258689],[-73.505559,-38.282883],[-73.588061,-37.156285],[-73.166717,-37.12378],[-72.553137,-35.50884],[-71.861732,-33.909093],[-71.43845,-32.418899],[-71.668721,-30.920645],[-71.370083,-30.095682],[-71.489894,-28.861442],[-70.905124,-27.64038],[-70.724954,-25.705924],[-70.403966,-23.628997],[-70.091246,-21.393319],[-70.16442,-19.756468],[-70.372572,-18.347975],[-69.858444,-18.092694],[-69.590424,-17.580012],[-69.100247,-18.260125],[-68.966818,-18.981683],[-68.442225,-19.405068],[-68.757167,-20.372658],[-68.219913,-21.494347]]]]}},{"type":"Feature","id":"CHN","properties":{"name":"China"},"geometry":{"type":"MultiPolygon","coordinates":[[[[110.339188,18.678395],[109.47521,18.197701],[108.655208,18.507682],[108.626217,19.367888],[109.119056,19.821039],[110.211599,20.101254],[110.786551,20.077534],[111.010051,19.69593],[110.570647,19.255879],[110.339188,18.678395]]],[[[127.657407,49.76027],[129.397818,49.4406],[130.582293,48.729687],[130.987282,47.790132],[132.506672,47.78897],[133.373596,48.183442],[135.026311,48.47823],[134.500814,47.57844],[134.112362,47.212467],[133.769644,46.116927],[133.097127,45.144066],[131.883454,45.321162],[131.025212,44.967953],[131.288555,44.11152],[131.144688,42.92999],[130.633866,42.903015],[130.640016,42.395009],[129.994267,42.985387],[129.596669,42.424982],[128.052215,41.994285],[128.208433,41.466772],[127.343783,41.503152],[126.869083,41.816569],[126.182045,41.107336],[125.079942,40.569824],[124.265625,39.928493],[122.86757,39.637788],[122.131388,39.170452],[121.054554,38.897471],[121.585995,39.360854],[121.376757,39.750261],[122.168595,40.422443],[121.640359,40.94639],[120.768629,40.593388],[119.639602,39.898056],[119.023464,39.252333],[118.042749,39.204274],[117.532702,38.737636],[118.059699,38.061476],[118.87815,37.897325],[118.911636,37.448464],[119.702802,37.156389],[120.823457,37.870428],[121.711259,37.481123],[122.357937,37.454484],[122.519995,36.930614],[121.104164,36.651329],[120.637009,36.11144],[119.664562,35.609791],[119.151208,34.909859],[120.227525,34.360332],[120.620369,33.376723],[121.229014,32.460319],[121.908146,31.692174],[121.891919,30.949352],[121.264257,30.676267],[121.503519,30.142915],[122.092114,29.83252],[121.938428,29.018022],[121.684439,28.225513],[121.125661,28.135673],[120.395473,27.053207],[119.585497,25.740781],[118.656871,24.547391],[117.281606,23.624501],[115.890735,22.782873],[114.763827,22.668074],[114.152547,22.22376],[113.80678,22.54834],[113.241078,22.051367],[111.843592,21.550494],[110.785466,21.397144],[110.444039,20.341033],[109.889861,20.282457],[109.627655,21.008227],[109.864488,21.395051],[108.522813,21.715212],[108.05018,21.55238],[107.04342,21.811899],[106.567273,22.218205],[106.725403,22.794268],[105.811247,22.976892],[105.329209,23.352063],[104.476858,22.81915],[103.504515,22.703757],[102.706992,22.708795],[102.170436,22.464753],[101.652018,22.318199],[101.80312,21.174367],[101.270026,21.201652],[101.180005,21.436573],[101.150033,21.849984],[100.416538,21.558839],[99.983489,21.742937],[99.240899,22.118314],[99.531992,22.949039],[98.898749,23.142722],[98.660262,24.063286],[97.60472,23.897405],[97.724609,25.083637],[98.671838,25.918703],[98.712094,26.743536],[98.68269,27.508812],[98.246231,27.747221],[97.911988,28.335945],[97.327114,28.261583],[96.248833,28.411031],[96.586591,28.83098],[96.117679,29.452802],[95.404802,29.031717],[94.56599,29.277438],[93.413348,28.640629],[92.503119,27.896876],[91.696657,27.771742],[91.258854,28.040614],[90.730514,28.064954],[90.015829,28.296439],[89.47581,28.042759],[88.814248,27.299316],[88.730326,28.086865],[88.120441,27.876542],[86.954517,27.974262],[85.82332,28.203576],[85.011638,28.642774],[84.23458,28.839894],[83.898993,29.320226],[83.337115,29.463732],[82.327513,30.115268],[81.525804,30.422717],[81.111256,30.183481],[79.721367,30.882715],[78.738894,31.515906],[78.458446,32.618164],[79.176129,32.48378],[79.208892,32.994395],[78.811086,33.506198],[78.912269,34.321936],[77.837451,35.49401],[76.192848,35.898403],[75.896897,36.666806],[75.158028,37.133031],[74.980002,37.41999],[74.829986,37.990007],[74.864816,38.378846],[74.257514,38.606507],[73.928852,38.505815],[73.675379,39.431237],[73.960013,39.660008],[73.822244,39.893973],[74.776862,40.366425],[75.467828,40.562072],[76.526368,40.427946],[76.904484,41.066486],[78.187197,41.185316],[78.543661,41.582243],[80.11943,42.123941],[80.25999,42.349999],[80.18015,42.920068],[80.866206,43.180362],[79.966106,44.917517],[81.947071,45.317027],[82.458926,45.53965],[83.180484,47.330031],[85.16429,47.000956],[85.720484,47.452969],[85.768233,48.455751],[86.598776,48.549182],[87.35997,49.214981],[87.751264,49.297198],[88.013832,48.599463],[88.854298,48.069082],[90.280826,47.693549],[90.970809,46.888146],[90.585768,45.719716],[90.94554,45.286073],[92.133891,45.115076],[93.480734,44.975472],[94.688929,44.352332],[95.306875,44.241331],[95.762455,43.319449],[96.349396,42.725635],[97.451757,42.74889],[99.515817,42.524691],[100.845866,42.663804],[101.83304,42.514873],[103.312278,41.907468],[104.522282,41.908347],[104.964994,41.59741],[106.129316,42.134328],[107.744773,42.481516],[109.243596,42.519446],[110.412103,42.871234],[111.129682,43.406834],[111.829588,43.743118],[111.667737,44.073176],[111.348377,44.457442],[111.873306,45.102079],[112.436062,45.011646],[113.463907,44.808893],[114.460332,45.339817],[115.985096,45.727235],[116.717868,46.388202],[117.421701,46.672733],[118.874326,46.805412],[119.66327,46.69268],[119.772824,47.048059],[118.866574,47.74706],[118.064143,48.06673],[117.295507,47.697709],[116.308953,47.85341],[115.742837,47.726545],[115.485282,48.135383],[116.191802,49.134598],[116.678801,49.888531],[117.879244,49.510983],[119.288461,50.142883],[119.279366,50.582908],[120.18205,51.643566],[120.738191,51.964115],[120.725789,52.516226],[120.177089,52.753886],[121.003085,53.251401],[122.245748,53.431726],[123.571507,53.458804],[125.068211,53.161045],[125.946349,52.792799],[126.564399,51.784255],[126.939157,51.353894],[127.287456,50.739797],[127.657407,49.76027]]]]}},{"type":"Feature","id":"CIV","properties":{"name":"Ivory Coast"},"geometry":{"type":"Polygon","coordinates":[[[-2.856125,4.994476],[-3.311084,4.984296],[-4.00882,5.179813],[-4.649917,5.168264],[-5.834496,4.993701],[-6.528769,4.705088],[-7.518941,4.338288],[-7.712159,4.364566],[-7.635368,5.188159],[-7.539715,5.313345],[-7.570153,5.707352],[-7.993693,6.12619],[-8.311348,6.193033],[-8.60288,6.467564],[-8.385452,6.911801],[-8.485446,7.395208],[-8.439298,7.686043],[-8.280703,7.68718],[-8.221792,8.123329],[-8.299049,8.316444],[-8.203499,8.455453],[-7.8321,8.575704],[-8.079114,9.376224],[-8.309616,9.789532],[-8.229337,10.12902],[-8.029944,10.206535],[-7.89959,10.297382],[-7.622759,10.147236],[-6.850507,10.138994],[-6.666461,10.430811],[-6.493965,10.411303],[-6.205223,10.524061],[-6.050452,10.096361],[-5.816926,10.222555],[-5.404342,10.370737],[-4.954653,10.152714],[-4.779884,9.821985],[-4.330247,9.610835],[-3.980449,9.862344],[-3.511899,9.900326],[-2.827496,9.642461],[-2.56219,8.219628],[-2.983585,7.379705],[-3.24437,6.250472],[-2.810701,5.389051],[-2.856125,4.994476]]]}},{"type":"Feature","id":"CMR","properties":{"name":"Cameroon"},"geometry":{"type":"Polygon","coordinates":[[[13.075822,2.267097],[12.951334,2.321616],[12.35938,2.192812],[11.751665,2.326758],[11.276449,2.261051],[9.649158,2.283866],[9.795196,3.073404],[9.404367,3.734527],[8.948116,3.904129],[8.744924,4.352215],[8.488816,4.495617],[8.500288,4.771983],[8.757533,5.479666],[9.233163,6.444491],[9.522706,6.453482],[10.118277,7.03877],[10.497375,7.055358],[11.058788,6.644427],[11.745774,6.981383],[11.839309,7.397042],[12.063946,7.799808],[12.218872,8.305824],[12.753672,8.717763],[12.955468,9.417772],[13.1676,9.640626],[13.308676,10.160362],[13.57295,10.798566],[14.415379,11.572369],[14.468192,11.904752],[14.577178,12.085361],[14.181336,12.483657],[14.213531,12.802035],[14.495787,12.859396],[14.893386,12.219048],[14.960152,11.555574],[14.923565,10.891325],[15.467873,9.982337],[14.909354,9.992129],[14.627201,9.920919],[14.171466,10.021378],[13.954218,9.549495],[14.544467,8.965861],[14.979996,8.796104],[15.120866,8.38215],[15.436092,7.692812],[15.27946,7.421925],[14.776545,6.408498],[14.53656,6.226959],[14.459407,5.451761],[14.558936,5.030598],[14.478372,4.732605],[14.950953,4.210389],[15.03622,3.851367],[15.405396,3.335301],[15.862732,3.013537],[15.907381,2.557389],[16.012852,2.26764],[15.940919,1.727673],[15.146342,1.964015],[14.337813,2.227875],[13.075822,2.267097]]]}},{"type":"Feature","id":"COD","properties":{"name":"Democratic Republic of the Congo"},"geometry":{"type":"Polygon","coordinates":[[[30.83386,3.509166],[30.773347,2.339883],[31.174149,2.204465],[30.85267,1.849396],[30.468508,1.583805],[30.086154,1.062313],[29.875779,0.59738],[29.819503,-0.20531],[29.587838,-0.587406],[29.579466,-1.341313],[29.291887,-1.620056],[29.254835,-2.21511],[29.117479,-2.292211],[29.024926,-2.839258],[29.276384,-3.293907],[29.339998,-4.499983],[29.519987,-5.419979],[29.419993,-5.939999],[29.620032,-6.520015],[30.199997,-7.079981],[30.740015,-8.340007],[30.346086,-8.238257],[29.002912,-8.407032],[28.734867,-8.526559],[28.449871,-9.164918],[28.673682,-9.605925],[28.49607,-10.789884],[28.372253,-11.793647],[28.642417,-11.971569],[29.341548,-12.360744],[29.616001,-12.178895],[29.699614,-13.257227],[28.934286,-13.248958],[28.523562,-12.698604],[28.155109,-12.272481],[27.388799,-12.132747],[27.16442,-11.608748],[26.553088,-11.92444],[25.75231,-11.784965],[25.418118,-11.330936],[24.78317,-11.238694],[24.314516,-11.262826],[24.257155,-10.951993],[23.912215,-10.926826],[23.456791,-10.867863],[22.837345,-11.017622],[22.402798,-10.993075],[22.155268,-11.084801],[22.208753,-9.894796],[21.875182,-9.523708],[21.801801,-8.908707],[21.949131,-8.305901],[21.746456,-7.920085],[21.728111,-7.290872],[20.514748,-7.299606],[20.601823,-6.939318],[20.091622,-6.94309],[20.037723,-7.116361],[19.417502,-7.155429],[19.166613,-7.738184],[19.016752,-7.988246],[18.464176,-7.847014],[18.134222,-7.987678],[17.47297,-8.068551],[17.089996,-7.545689],[16.860191,-7.222298],[16.57318,-6.622645],[16.326528,-5.87747],[13.375597,-5.864241],[13.024869,-5.984389],[12.735171,-5.965682],[12.322432,-6.100092],[12.182337,-5.789931],[12.436688,-5.684304],[12.468004,-5.248362],[12.631612,-4.991271],[12.995517,-4.781103],[13.25824,-4.882957],[13.600235,-4.500138],[14.144956,-4.510009],[14.209035,-4.793092],[14.582604,-4.970239],[15.170992,-4.343507],[15.75354,-3.855165],[16.00629,-3.535133],[15.972803,-2.712392],[16.407092,-1.740927],[16.865307,-1.225816],[17.523716,-0.74383],[17.638645,-0.424832],[17.663553,-0.058084],[17.82654,0.288923],[17.774192,0.855659],[17.898835,1.741832],[18.094276,2.365722],[18.393792,2.900443],[18.453065,3.504386],[18.542982,4.201785],[18.932312,4.709506],[19.467784,5.031528],[20.290679,4.691678],[20.927591,4.322786],[21.659123,4.224342],[22.405124,4.02916],[22.704124,4.633051],[22.84148,4.710126],[23.297214,4.609693],[24.410531,5.108784],[24.805029,4.897247],[25.128833,4.927245],[25.278798,5.170408],[25.650455,5.256088],[26.402761,5.150875],[27.044065,5.127853],[27.374226,5.233944],[27.979977,4.408413],[28.428994,4.287155],[28.696678,4.455077],[29.159078,4.389267],[29.715995,4.600805],[29.9535,4.173699],[30.83386,3.509166]]]}},{"type":"Feature","id":"COG","properties":{"name":"Republic of the Congo"},"geometry":{"type":"Polygon","coordinates":[[[12.995517,-4.781103],[12.62076,-4.438023],[12.318608,-4.60623],[11.914963,-5.037987],[11.093773,-3.978827],[11.855122,-3.426871],[11.478039,-2.765619],[11.820964,-2.514161],[12.495703,-2.391688],[12.575284,-1.948511],[13.109619,-2.42874],[13.992407,-2.470805],[14.29921,-1.998276],[14.425456,-1.333407],[14.316418,-0.552627],[13.843321,0.038758],[14.276266,1.19693],[14.026669,1.395677],[13.282631,1.314184],[13.003114,1.830896],[13.075822,2.267097],[14.337813,2.227875],[15.146342,1.964015],[15.940919,1.727673],[16.012852,2.26764],[16.537058,3.198255],[17.133042,3.728197],[17.8099,3.560196],[18.453065,3.504386],[18.393792,2.900443],[18.094276,2.365722],[17.898835,1.741832],[17.774192,0.855659],[17.82654,0.288923],[17.663553,-0.058084],[17.638645,-0.424832],[17.523716,-0.74383],[16.865307,-1.225816],[16.407092,-1.740927],[15.972803,-2.712392],[16.00629,-3.535133],[15.75354,-3.855165],[15.170992,-4.343507],[14.582604,-4.970239],[14.209035,-4.793092],[14.144956,-4.510009],[13.600235,-4.500138],[13.25824,-4.882957],[12.995517,-4.781103]]]}},{"type":"Feature","id":"COL","properties":{"name":"Colombia"},"geometry":{"type":"Polygon","coordinates":[[[-75.373223,-0.152032],[-75.801466,0.084801],[-76.292314,0.416047],[-76.57638,0.256936],[-77.424984,0.395687],[-77.668613,0.825893],[-77.855061,0.809925],[-78.855259,1.380924],[-78.990935,1.69137],[-78.617831,1.766404],[-78.662118,2.267355],[-78.42761,2.629556],[-77.931543,2.696606],[-77.510431,3.325017],[-77.12769,3.849636],[-77.496272,4.087606],[-77.307601,4.667984],[-77.533221,5.582812],[-77.318815,5.845354],[-77.476661,6.691116],[-77.881571,7.223771],[-77.753414,7.70984],[-77.431108,7.638061],[-77.242566,7.935278],[-77.474723,8.524286],[-77.353361,8.670505],[-76.836674,8.638749],[-76.086384,9.336821],[-75.6746,9.443248],[-75.664704,9.774003],[-75.480426,10.61899],[-74.906895,11.083045],[-74.276753,11.102036],[-74.197223,11.310473],[-73.414764,11.227015],[-72.627835,11.731972],[-72.238195,11.95555],[-71.75409,12.437303],[-71.399822,12.376041],[-71.137461,12.112982],[-71.331584,11.776284],[-71.973922,11.608672],[-72.227575,11.108702],[-72.614658,10.821975],[-72.905286,10.450344],[-73.027604,9.73677],[-73.304952,9.152],[-72.78873,9.085027],[-72.660495,8.625288],[-72.439862,8.405275],[-72.360901,8.002638],[-72.479679,7.632506],[-72.444487,7.423785],[-72.198352,7.340431],[-71.960176,6.991615],[-70.674234,7.087785],[-70.093313,6.960376],[-69.38948,6.099861],[-68.985319,6.206805],[-68.265052,6.153268],[-67.695087,6.267318],[-67.34144,6.095468],[-67.521532,5.55687],[-67.744697,5.221129],[-67.823012,4.503937],[-67.621836,3.839482],[-67.337564,3.542342],[-67.303173,3.318454],[-67.809938,2.820655],[-67.447092,2.600281],[-67.181294,2.250638],[-66.876326,1.253361],[-67.065048,1.130112],[-67.259998,1.719999],[-67.53781,2.037163],[-67.868565,1.692455],[-69.816973,1.714805],[-69.804597,1.089081],[-69.218638,0.985677],[-69.252434,0.602651],[-69.452396,0.706159],[-70.015566,0.541414],[-70.020656,-0.185156],[-69.577065,-0.549992],[-69.420486,-1.122619],[-69.444102,-1.556287],[-69.893635,-4.298187],[-70.394044,-3.766591],[-70.692682,-3.742872],[-70.047709,-2.725156],[-70.813476,-2.256865],[-71.413646,-2.342802],[-71.774761,-2.16979],[-72.325787,-2.434218],[-73.070392,-2.308954],[-73.659504,-1.260491],[-74.122395,-1.002833],[-74.441601,-0.53082],[-75.106625,-0.057205],[-75.373223,-0.152032]]]}},{"type":"Feature","id":"CRI","properties":{"name":"Costa Rica"},"geometry":{"type":"Polygon","coordinates":[[[-82.965783,8.225028],[-83.508437,8.446927],[-83.711474,8.656836],[-83.596313,8.830443],[-83.632642,9.051386],[-83.909886,9.290803],[-84.303402,9.487354],[-84.647644,9.615537],[-84.713351,9.908052],[-84.97566,10.086723],[-84.911375,9.795992],[-85.110923,9.55704],[-85.339488,9.834542],[-85.660787,9.933347],[-85.797445,10.134886],[-85.791709,10.439337],[-85.659314,10.754331],[-85.941725,10.895278],[-85.71254,11.088445],[-85.561852,11.217119],[-84.903003,10.952303],[-84.673069,11.082657],[-84.355931,10.999226],[-84.190179,10.79345],[-83.895054,10.726839],[-83.655612,10.938764],[-83.40232,10.395438],[-83.015677,9.992982],[-82.546196,9.566135],[-82.932891,9.476812],[-82.927155,9.07433],[-82.719183,8.925709],[-82.868657,8.807266],[-82.829771,8.626295],[-82.913176,8.423517],[-82.965783,8.225028]]]}},{"type":"Feature","id":"CUB","properties":{"name":"Cuba"},"geometry":{"type":"Polygon","coordinates":[[[-82.268151,23.188611],[-81.404457,23.117271],[-80.618769,23.10598],[-79.679524,22.765303],[-79.281486,22.399202],[-78.347434,22.512166],[-77.993296,22.277194],[-77.146422,21.657851],[-76.523825,21.20682],[-76.19462,21.220565],[-75.598222,21.016624],[-75.67106,20.735091],[-74.933896,20.693905],[-74.178025,20.284628],[-74.296648,20.050379],[-74.961595,19.923435],[-75.63468,19.873774],[-76.323656,19.952891],[-77.755481,19.855481],[-77.085108,20.413354],[-77.492655,20.673105],[-78.137292,20.739949],[-78.482827,21.028613],[-78.719867,21.598114],[-79.285,21.559175],[-80.217475,21.827324],[-80.517535,22.037079],[-81.820943,22.192057],[-82.169992,22.387109],[-81.795002,22.636965],[-82.775898,22.68815],[-83.494459,22.168518],[-83.9088,22.154565],[-84.052151,21.910575],[-84.54703,21.801228],[-84.974911,21.896028],[-84.447062,22.20495],[-84.230357,22.565755],[-83.77824,22.788118],[-83.267548,22.983042],[-82.510436,23.078747],[-82.268151,23.188611]]]}},{"type":"Feature","id":"CYP","properties":{"name":"Cyprus"},"geometry":{"type":"MultiPolygon","coordinates":[[[[33.973617,35.058506],[34.004881,34.978098],[32.979827,34.571869],[32.490296,34.701655],[32.256667,35.103232],[32.73178,35.140026],[32.919572,35.087833],[33.190977,35.173125],[33.383833,35.162712],[33.455922,35.101424],[33.475817,35.000345],[33.525685,35.038688],[33.675392,35.017863],[33.86644,35.093595],[33.973617,35.058506]]],[[[32.73178,35.140026],[32.802474,35.145504],[32.946961,35.386703],[33.667227,35.373216],[34.576474,35.671596],[33.900804,35.245756],[33.973617,35.058506],[33.86644,35.093595],[33.675392,35.017863],[33.525685,35.038688],[33.475817,35.000345],[33.455922,35.101424],[33.383833,35.162712],[33.190977,35.173125],[32.919572,35.087833],[32.73178,35.140026]]]]}},{"type":"Feature","id":"CZE","properties":{"name":"Czech Republic"},"geometry":{"type":"Polygon","coordinates":[[[16.960288,48.596982],[16.499283,48.785808],[16.029647,48.733899],[15.253416,49.039074],[14.901447,48.964402],[14.338898,48.555305],[13.595946,48.877172],[13.031329,49.307068],[12.521024,49.547415],[12.415191,49.969121],[12.240111,50.266338],[12.966837,50.484076],[13.338132,50.733234],[14.056228,50.926918],[14.307013,51.117268],[14.570718,51.002339],[15.016996,51.106674],[15.490972,50.78473],[16.238627,50.697733],[16.176253,50.422607],[16.719476,50.215747],[16.868769,50.473974],[17.554567,50.362146],[17.649445,50.049038],[18.392914,49.988629],[18.853144,49.49623],[18.554971,49.495015],[18.399994,49.315001],[18.170498,49.271515],[18.104973,49.043983],[17.913512,48.996493],[17.886485,48.903475],[17.545007,48.800019],[17.101985,48.816969],[16.960288,48.596982]]]}},{"type":"Feature","id":"DEU","properties":{"name":"Germany"},"geometry":{"type":"Polygon","coordinates":[[[9.921906,54.983104],[9.93958,54.596642],[10.950112,54.363607],[10.939467,54.008693],[11.956252,54.196486],[12.51844,54.470371],[13.647467,54.075511],[14.119686,53.757029],[14.353315,53.248171],[14.074521,52.981263],[14.4376,52.62485],[14.685026,52.089947],[14.607098,51.745188],[15.016996,51.106674],[14.570718,51.002339],[14.307013,51.117268],[14.056228,50.926918],[13.338132,50.733234],[12.966837,50.484076],[12.240111,50.266338],[12.415191,49.969121],[12.521024,49.547415],[13.031329,49.307068],[13.595946,48.877172],[13.243357,48.416115],[12.884103,48.289146],[13.025851,47.637584],[12.932627,47.467646],[12.62076,47.672388],[12.141357,47.703083],[11.426414,47.523766],[10.544504,47.566399],[10.402084,47.302488],[9.896068,47.580197],[9.594226,47.525058],[8.522612,47.830828],[8.317301,47.61358],[7.466759,47.620582],[7.593676,48.333019],[8.099279,49.017784],[6.65823,49.201958],[6.18632,49.463803],[6.242751,49.902226],[6.043073,50.128052],[6.156658,50.803721],[5.988658,51.851616],[6.589397,51.852029],[6.84287,52.22844],[7.092053,53.144043],[6.90514,53.482162],[7.100425,53.693932],[7.936239,53.748296],[8.121706,53.527792],[8.800734,54.020786],[8.572118,54.395646],[8.526229,54.962744],[9.282049,54.830865],[9.921906,54.983104]]]}},{"type":"Feature","id":"DJI","properties":{"name":"Djibouti"},"geometry":{"type":"Polygon","coordinates":[[[43.081226,12.699639],[43.317852,12.390148],[43.286381,11.974928],[42.715874,11.735641],[43.145305,11.46204],[42.776852,10.926879],[42.55493,11.10511],[42.31414,11.0342],[41.75557,11.05091],[41.73959,11.35511],[41.66176,11.6312],[42,12.1],[42.35156,12.54223],[42.779642,12.455416],[43.081226,12.699639]]]}},{"type":"Feature","id":"DNK","properties":{"name":"Denmark"},"geometry":{"type":"MultiPolygon","coordinates":[[[[12.690006,55.609991],[12.089991,54.800015],[11.043543,55.364864],[10.903914,55.779955],[12.370904,56.111407],[12.690006,55.609991]]],[[[10.912182,56.458621],[10.667804,56.081383],[10.369993,56.190007],[9.649985,55.469999],[9.921906,54.983104],[9.282049,54.830865],[8.526229,54.962744],[8.120311,55.517723],[8.089977,56.540012],[8.256582,56.809969],[8.543438,57.110003],[9.424469,57.172066],[9.775559,57.447941],[10.580006,57.730017],[10.546106,57.215733],[10.25,56.890016],[10.369993,56.609982],[10.912182,56.458621]]]]}},{"type":"Feature","id":"DOM","properties":{"name":"Dominican Republic"},"geometry":{"type":"Polygon","coordinates":[[[-71.712361,19.714456],[-71.587304,19.884911],[-70.806706,19.880286],[-70.214365,19.622885],[-69.950815,19.648],[-69.76925,19.293267],[-69.222126,19.313214],[-69.254346,19.015196],[-68.809412,18.979074],[-68.317943,18.612198],[-68.689316,18.205142],[-69.164946,18.422648],[-69.623988,18.380713],[-69.952934,18.428307],[-70.133233,18.245915],[-70.517137,18.184291],[-70.669298,18.426886],[-70.99995,18.283329],[-71.40021,17.598564],[-71.657662,17.757573],[-71.708305,18.044997],[-71.687738,18.31666],[-71.945112,18.6169],[-71.701303,18.785417],[-71.624873,19.169838],[-71.712361,19.714456]]]}},{"type":"Feature","id":"DZA","properties":{"name":"Algeria"},"geometry":{"type":"Polygon","coordinates":[[[11.999506,23.471668],[8.572893,21.565661],[5.677566,19.601207],[4.267419,19.155265],[3.158133,19.057364],[3.146661,19.693579],[2.683588,19.85623],[2.060991,20.142233],[1.823228,20.610809],[-1.550055,22.792666],[-4.923337,24.974574],[-8.6844,27.395744],[-8.665124,27.589479],[-8.66559,27.656426],[-8.674116,28.841289],[-7.059228,29.579228],[-6.060632,29.7317],[-5.242129,30.000443],[-4.859646,30.501188],[-3.690441,30.896952],[-3.647498,31.637294],[-3.06898,31.724498],[-2.616605,32.094346],[-1.307899,32.262889],[-1.124551,32.651522],[-1.388049,32.864015],[-1.733455,33.919713],[-1.792986,34.527919],[-2.169914,35.168396],[-1.208603,35.714849],[-0.127454,35.888662],[0.503877,36.301273],[1.466919,36.605647],[3.161699,36.783905],[4.815758,36.865037],[5.32012,36.716519],[6.26182,37.110655],[7.330385,37.118381],[7.737078,36.885708],[8.420964,36.946427],[8.217824,36.433177],[8.376368,35.479876],[8.140981,34.655146],[7.524482,34.097376],[7.612642,33.344115],[8.430473,32.748337],[8.439103,32.506285],[9.055603,32.102692],[9.48214,30.307556],[9.805634,29.424638],[9.859998,28.95999],[9.683885,28.144174],[9.756128,27.688259],[9.629056,27.140953],[9.716286,26.512206],[9.319411,26.094325],[9.910693,25.365455],[9.948261,24.936954],[10.303847,24.379313],[10.771364,24.562532],[11.560669,24.097909],[11.999506,23.471668]]]}},{"type":"Feature","id":"ECU","properties":{"name":"Ecuador"},"geometry":{"type":"Polygon","coordinates":[[[-80.302561,-3.404856],[-79.770293,-2.657512],[-79.986559,-2.220794],[-80.368784,-2.685159],[-80.967765,-2.246943],[-80.764806,-1.965048],[-80.933659,-1.057455],[-80.58337,-0.906663],[-80.399325,-0.283703],[-80.020898,0.36034],[-80.09061,0.768429],[-79.542762,0.982938],[-78.855259,1.380924],[-77.855061,0.809925],[-77.668613,0.825893],[-77.424984,0.395687],[-76.57638,0.256936],[-76.292314,0.416047],[-75.801466,0.084801],[-75.373223,-0.152032],[-75.233723,-0.911417],[-75.544996,-1.56161],[-76.635394,-2.608678],[-77.837905,-3.003021],[-78.450684,-3.873097],[-78.639897,-4.547784],[-79.205289,-4.959129],[-79.624979,-4.454198],[-80.028908,-4.346091],[-80.442242,-4.425724],[-80.469295,-4.059287],[-80.184015,-3.821162],[-80.302561,-3.404856]]]}},{"type":"Feature","id":"EGY","properties":{"name":"Egypt"},"geometry":{"type":"Polygon","coordinates":[[[34.9226,29.50133],[34.64174,29.09942],[34.42655,28.34399],[34.15451,27.8233],[33.92136,27.6487],[33.58811,27.97136],[33.13676,28.41765],[32.42323,29.85108],[32.32046,29.76043],[32.73482,28.70523],[33.34876,27.69989],[34.10455,26.14227],[34.47387,25.59856],[34.79507,25.03375],[35.69241,23.92671],[35.49372,23.75237],[35.52598,23.10244],[36.69069,22.20485],[36.86623,22],[32.9,22],[29.02,22],[25,22],[25,25.6825],[25,29.238655],[24.70007,30.04419],[24.95762,30.6616],[24.80287,31.08929],[25.16482,31.56915],[26.49533,31.58568],[27.45762,31.32126],[28.45048,31.02577],[28.91353,30.87005],[29.68342,31.18686],[30.09503,31.4734],[30.97693,31.55586],[31.68796,31.4296],[31.96041,30.9336],[32.19247,31.26034],[32.99392,31.02407],[33.7734,30.96746],[34.26544,31.21936],[34.9226,29.50133]]]}},{"type":"Feature","id":"ERI","properties":{"name":"Eritrea"},"geometry":{"type":"Polygon","coordinates":[[[42.35156,12.54223],[42.00975,12.86582],[41.59856,13.45209],[41.155194,13.77332],[40.8966,14.11864],[40.026219,14.519579],[39.34061,14.53155],[39.0994,14.74064],[38.51295,14.50547],[37.90607,14.95943],[37.59377,14.2131],[36.42951,14.42211],[36.323189,14.822481],[36.75386,16.291874],[36.85253,16.95655],[37.16747,17.26314],[37.904,17.42754],[38.41009,17.998307],[38.990623,16.840626],[39.26611,15.922723],[39.814294,15.435647],[41.179275,14.49108],[41.734952,13.921037],[42.276831,13.343992],[42.589576,13.000421],[43.081226,12.699639],[42.779642,12.455416],[42.35156,12.54223]]]}},{"type":"Feature","id":"ESP","properties":{"name":"Spain"},"geometry":{"type":"Polygon","coordinates":[[[-9.034818,41.880571],[-8.984433,42.592775],[-9.392884,43.026625],[-7.97819,43.748338],[-6.754492,43.567909],[-5.411886,43.57424],[-4.347843,43.403449],[-3.517532,43.455901],[-1.901351,43.422802],[-1.502771,43.034014],[0.338047,42.579546],[0.701591,42.795734],[1.826793,42.343385],[2.985999,42.473015],[3.039484,41.89212],[2.091842,41.226089],[0.810525,41.014732],[0.721331,40.678318],[0.106692,40.123934],[-0.278711,39.309978],[0.111291,38.738514],[-0.467124,38.292366],[-0.683389,37.642354],[-1.438382,37.443064],[-2.146453,36.674144],[-3.415781,36.6589],[-4.368901,36.677839],[-4.995219,36.324708],[-5.37716,35.94685],[-5.866432,36.029817],[-6.236694,36.367677],[-6.520191,36.942913],[-7.453726,37.097788],[-7.537105,37.428904],[-7.166508,37.803894],[-7.029281,38.075764],[-7.374092,38.373059],[-7.098037,39.030073],[-7.498632,39.629571],[-7.066592,39.711892],[-7.026413,40.184524],[-6.86402,40.330872],[-6.851127,41.111083],[-6.389088,41.381815],[-6.668606,41.883387],[-7.251309,41.918346],[-7.422513,41.792075],[-8.013175,41.790886],[-8.263857,42.280469],[-8.671946,42.134689],[-9.034818,41.880571]]]}},{"type":"Feature","id":"EST","properties":{"name":"Estonia"},"geometry":{"type":"Polygon","coordinates":[[[24.312863,57.793424],[24.428928,58.383413],[24.061198,58.257375],[23.42656,58.612753],[23.339795,59.18724],[24.604214,59.465854],[25.864189,59.61109],[26.949136,59.445803],[27.981114,59.475388],[28.131699,59.300825],[27.420166,58.724581],[27.716686,57.791899],[27.288185,57.474528],[26.463532,57.476389],[25.60281,57.847529],[25.164594,57.970157],[24.312863,57.793424]]]}},{"type":"Feature","id":"ETH","properties":{"name":"Ethiopia"},"geometry":{"type":"Polygon","coordinates":[[[37.90607,14.95943],[38.51295,14.50547],[39.0994,14.74064],[39.34061,14.53155],[40.02625,14.51959],[40.8966,14.11864],[41.1552,13.77333],[41.59856,13.45209],[42.00975,12.86582],[42.35156,12.54223],[42,12.1],[41.66176,11.6312],[41.73959,11.35511],[41.75557,11.05091],[42.31414,11.0342],[42.55493,11.10511],[42.776852,10.926879],[42.55876,10.57258],[42.92812,10.02194],[43.29699,9.54048],[43.67875,9.18358],[46.94834,7.99688],[47.78942,8.003],[44.9636,5.00162],[43.66087,4.95755],[42.76967,4.25259],[42.12861,4.23413],[41.855083,3.918912],[41.1718,3.91909],[40.76848,4.25702],[39.85494,3.83879],[39.559384,3.42206],[38.89251,3.50074],[38.67114,3.61607],[38.43697,3.58851],[38.120915,3.598605],[36.855093,4.447864],[36.159079,4.447864],[35.817448,4.776966],[35.817448,5.338232],[35.298007,5.506],[34.70702,6.59422],[34.25032,6.82607],[34.0751,7.22595],[33.56829,7.71334],[32.95418,7.78497],[33.2948,8.35458],[33.8255,8.37916],[33.97498,8.68456],[33.96162,9.58358],[34.25745,10.63009],[34.73115,10.91017],[34.83163,11.31896],[35.26049,12.08286],[35.86363,12.57828],[36.27022,13.56333],[36.42951,14.42211],[37.59377,14.2131],[37.90607,14.95943]]]}},{"type":"Feature","id":"FIN","properties":{"name":"Finland"},"geometry":{"type":"Polygon","coordinates":[[[28.59193,69.064777],[28.445944,68.364613],[29.977426,67.698297],[29.054589,66.944286],[30.21765,65.80598],[29.54443,64.948672],[30.444685,64.204453],[30.035872,63.552814],[31.516092,62.867687],[31.139991,62.357693],[30.211107,61.780028],[28.069998,60.503517],[26.255173,60.423961],[24.496624,60.057316],[22.869695,59.846373],[22.290764,60.391921],[21.322244,60.72017],[21.544866,61.705329],[21.059211,62.607393],[21.536029,63.189735],[22.442744,63.81781],[24.730512,64.902344],[25.398068,65.111427],[25.294043,65.534346],[23.903379,66.006927],[23.56588,66.396051],[23.539473,67.936009],[21.978535,68.616846],[20.645593,69.106247],[21.244936,69.370443],[22.356238,68.841741],[23.66205,68.891247],[24.735679,68.649557],[25.689213,69.092114],[26.179622,69.825299],[27.732292,70.164193],[29.015573,69.766491],[28.59193,69.064777]]]}},{"type":"Feature","id":"FJI","properties":{"name":"Fiji"},"geometry":{"type":"MultiPolygon","coordinates":[[[[178.3736,-17.33992],[178.71806,-17.62846],[178.55271,-18.15059],[177.93266,-18.28799],[177.38146,-18.16432],[177.28504,-17.72465],[177.67087,-17.38114],[178.12557,-17.50481],[178.3736,-17.33992]]],[[[179.364143,-16.801354],[178.725059,-17.012042],[178.596839,-16.63915],[179.096609,-16.433984],[179.413509,-16.379054],[180,-16.067133],[180,-16.555217],[179.364143,-16.801354]]],[[[-179.917369,-16.501783],[-180,-16.555217],[-180,-16.067133],[-179.79332,-16.020882],[-179.917369,-16.501783]]]]}},{"type":"Feature","id":"FLK","properties":{"name":"Falkland Islands"},"geometry":{"type":"Polygon","coordinates":[[[-61.2,-51.85],[-60,-51.25],[-59.15,-51.5],[-58.55,-51.1],[-57.75,-51.55],[-58.05,-51.9],[-59.4,-52.2],[-59.85,-51.85],[-60.7,-52.3],[-61.2,-51.85]]]}},{"type":"Feature","id":"FRA","properties":{"name":"France"},"geometry":{"type":"MultiPolygon","coordinates":[[[[9.560016,42.152492],[9.229752,41.380007],[8.775723,41.583612],[8.544213,42.256517],[8.746009,42.628122],[9.390001,43.009985],[9.560016,42.152492]]],[[[3.588184,50.378992],[4.286023,49.907497],[4.799222,49.985373],[5.674052,49.529484],[5.897759,49.442667],[6.18632,49.463803],[6.65823,49.201958],[8.099279,49.017784],[7.593676,48.333019],[7.466759,47.620582],[7.192202,47.449766],[6.736571,47.541801],[6.768714,47.287708],[6.037389,46.725779],[6.022609,46.27299],[6.5001,46.429673],[6.843593,45.991147],[6.802355,45.70858],[7.096652,45.333099],[6.749955,45.028518],[7.007562,44.254767],[7.549596,44.127901],[7.435185,43.693845],[6.529245,43.128892],[4.556963,43.399651],[3.100411,43.075201],[2.985999,42.473015],[1.826793,42.343385],[0.701591,42.795734],[0.338047,42.579546],[-1.502771,43.034014],[-1.901351,43.422802],[-1.384225,44.02261],[-1.193798,46.014918],[-2.225724,47.064363],[-2.963276,47.570327],[-4.491555,47.954954],[-4.59235,48.68416],[-3.295814,48.901692],[-1.616511,48.644421],[-1.933494,49.776342],[-0.989469,49.347376],[1.338761,50.127173],[1.639001,50.946606],[2.513573,51.148506],[2.658422,50.796848],[3.123252,50.780363],[3.588184,50.378992]]]]}},{"type":"Feature","id":"GAB","properties":{"name":"Gabon"},"geometry":{"type":"Polygon","coordinates":[[[11.093773,-3.978827],[10.066135,-2.969483],[9.405245,-2.144313],[8.797996,-1.111301],[8.830087,-0.779074],[9.04842,-0.459351],[9.291351,0.268666],[9.492889,1.01012],[9.830284,1.067894],[11.285079,1.057662],[11.276449,2.261051],[11.751665,2.326758],[12.35938,2.192812],[12.951334,2.321616],[13.075822,2.267097],[13.003114,1.830896],[13.282631,1.314184],[14.026669,1.395677],[14.276266,1.19693],[13.843321,0.038758],[14.316418,-0.552627],[14.425456,-1.333407],[14.29921,-1.998276],[13.992407,-2.470805],[13.109619,-2.42874],[12.575284,-1.948511],[12.495703,-2.391688],[11.820964,-2.514161],[11.478039,-2.765619],[11.855122,-3.426871],[11.093773,-3.978827]]]}},{"type":"Feature","id":"GBR","properties":{"name":"United Kingdom"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-5.661949,54.554603],[-6.197885,53.867565],[-6.95373,54.073702],[-7.572168,54.059956],[-7.366031,54.595841],[-7.572168,55.131622],[-6.733847,55.17286],[-5.661949,54.554603]]],[[[-3.005005,58.635],[-4.073828,57.553025],[-3.055002,57.690019],[-1.959281,57.6848],[-2.219988,56.870017],[-3.119003,55.973793],[-2.085009,55.909998],[-2.005676,55.804903],[-1.114991,54.624986],[-0.430485,54.464376],[0.184981,53.325014],[0.469977,52.929999],[1.681531,52.73952],[1.559988,52.099998],[1.050562,51.806761],[1.449865,51.289428],[0.550334,50.765739],[-0.787517,50.774989],[-2.489998,50.500019],[-2.956274,50.69688],[-3.617448,50.228356],[-4.542508,50.341837],[-5.245023,49.96],[-5.776567,50.159678],[-4.30999,51.210001],[-3.414851,51.426009],[-3.422719,51.426848],[-4.984367,51.593466],[-5.267296,51.9914],[-4.222347,52.301356],[-4.770013,52.840005],[-4.579999,53.495004],[-3.093831,53.404547],[-3.09208,53.404441],[-2.945009,53.985],[-3.614701,54.600937],[-3.630005,54.615013],[-4.844169,54.790971],[-5.082527,55.061601],[-4.719112,55.508473],[-5.047981,55.783986],[-5.586398,55.311146],[-5.644999,56.275015],[-6.149981,56.78501],[-5.786825,57.818848],[-5.009999,58.630013],[-4.211495,58.550845],[-3.005005,58.635]]]]}},{"type":"Feature","id":"GEO","properties":{"name":"Georgia"},"geometry":{"type":"Polygon","coordinates":[[[41.554084,41.535656],[41.703171,41.962943],[41.45347,42.645123],[40.875469,43.013628],[40.321394,43.128634],[39.955009,43.434998],[40.076965,43.553104],[40.922185,43.382159],[42.394395,43.220308],[43.756017,42.740828],[43.9312,42.554974],[44.537623,42.711993],[45.470279,42.502781],[45.77641,42.092444],[46.404951,41.860675],[46.145432,41.722802],[46.637908,41.181673],[46.501637,41.064445],[45.962601,41.123873],[45.217426,41.411452],[44.97248,41.248129],[43.582746,41.092143],[42.619549,41.583173],[41.554084,41.535656]]]}},{"type":"Feature","id":"GHA","properties":{"name":"Ghana"},"geometry":{"type":"Polygon","coordinates":[[[1.060122,5.928837],[-0.507638,5.343473],[-1.063625,5.000548],[-1.964707,4.710462],[-2.856125,4.994476],[-2.810701,5.389051],[-3.24437,6.250472],[-2.983585,7.379705],[-2.56219,8.219628],[-2.827496,9.642461],[-2.963896,10.395335],[-2.940409,10.96269],[-1.203358,11.009819],[-0.761576,10.93693],[-0.438702,11.098341],[0.023803,11.018682],[-0.049785,10.706918],[0.36758,10.191213],[0.365901,9.465004],[0.461192,8.677223],[0.712029,8.312465],[0.490957,7.411744],[0.570384,6.914359],[0.836931,6.279979],[1.060122,5.928837]]]}},{"type":"Feature","id":"GIN","properties":{"name":"Guinea"},"geometry":{"type":"Polygon","coordinates":[[[-8.439298,7.686043],[-8.722124,7.711674],[-8.926065,7.309037],[-9.208786,7.313921],[-9.403348,7.526905],[-9.33728,7.928534],[-9.755342,8.541055],[-10.016567,8.428504],[-10.230094,8.406206],[-10.505477,8.348896],[-10.494315,8.715541],[-10.65477,8.977178],[-10.622395,9.26791],[-10.839152,9.688246],[-11.117481,10.045873],[-11.917277,10.046984],[-12.150338,9.858572],[-12.425929,9.835834],[-12.596719,9.620188],[-12.711958,9.342712],[-13.24655,8.903049],[-13.685154,9.494744],[-14.074045,9.886167],[-14.330076,10.01572],[-14.579699,10.214467],[-14.693232,10.656301],[-14.839554,10.876572],[-15.130311,11.040412],[-14.685687,11.527824],[-14.382192,11.509272],[-14.121406,11.677117],[-13.9008,11.678719],[-13.743161,11.811269],[-13.828272,12.142644],[-13.718744,12.247186],[-13.700476,12.586183],[-13.217818,12.575874],[-12.499051,12.33209],[-12.278599,12.35444],[-12.203565,12.465648],[-11.658301,12.386583],[-11.513943,12.442988],[-11.456169,12.076834],[-11.297574,12.077971],[-11.036556,12.211245],[-10.87083,12.177887],[-10.593224,11.923975],[-10.165214,11.844084],[-9.890993,12.060479],[-9.567912,12.194243],[-9.327616,12.334286],[-9.127474,12.30806],[-8.905265,12.088358],[-8.786099,11.812561],[-8.376305,11.393646],[-8.581305,11.136246],[-8.620321,10.810891],[-8.407311,10.909257],[-8.282357,10.792597],[-8.335377,10.494812],[-8.029944,10.206535],[-8.229337,10.12902],[-8.309616,9.789532],[-8.079114,9.376224],[-7.8321,8.575704],[-8.203499,8.455453],[-8.299049,8.316444],[-8.221792,8.123329],[-8.280703,7.68718],[-8.439298,7.686043]]]}},{"type":"Feature","id":"GMB","properties":{"name":"Gambia"},"geometry":{"type":"Polygon","coordinates":[[[-16.841525,13.151394],[-16.713729,13.594959],[-15.624596,13.623587],[-15.39877,13.860369],[-15.081735,13.876492],[-14.687031,13.630357],[-14.376714,13.62568],[-14.046992,13.794068],[-13.844963,13.505042],[-14.277702,13.280585],[-14.712197,13.298207],[-15.141163,13.509512],[-15.511813,13.27857],[-15.691001,13.270353],[-15.931296,13.130284],[-16.841525,13.151394]]]}},{"type":"Feature","id":"GNB","properties":{"name":"Guinea Bissau"},"geometry":{"type":"Polygon","coordinates":[[[-15.130311,11.040412],[-15.66418,11.458474],[-16.085214,11.524594],[-16.314787,11.806515],[-16.308947,11.958702],[-16.613838,12.170911],[-16.677452,12.384852],[-16.147717,12.547762],[-15.816574,12.515567],[-15.548477,12.62817],[-13.700476,12.586183],[-13.718744,12.247186],[-13.828272,12.142644],[-13.743161,11.811269],[-13.9008,11.678719],[-14.121406,11.677117],[-14.382192,11.509272],[-14.685687,11.527824],[-15.130311,11.040412]]]}},{"type":"Feature","id":"GNQ","properties":{"name":"Equatorial Guinea"},"geometry":{"type":"Polygon","coordinates":[[[9.492889,1.01012],[9.305613,1.160911],[9.649158,2.283866],[11.276449,2.261051],[11.285079,1.057662],[9.830284,1.067894],[9.492889,1.01012]]]}},{"type":"Feature","id":"GRC","properties":{"name":"Greece"},"geometry":{"type":"MultiPolygon","coordinates":[[[[23.69998,35.705004],[24.246665,35.368022],[25.025015,35.424996],[25.769208,35.354018],[25.745023,35.179998],[26.290003,35.29999],[26.164998,35.004995],[24.724982,34.919988],[24.735007,35.084991],[23.514978,35.279992],[23.69998,35.705004]]],[[[26.604196,41.562115],[26.294602,40.936261],[26.056942,40.824123],[25.447677,40.852545],[24.925848,40.947062],[23.714811,40.687129],[24.407999,40.124993],[23.899968,39.962006],[23.342999,39.960998],[22.813988,40.476005],[22.626299,40.256561],[22.849748,39.659311],[23.350027,39.190011],[22.973099,38.970903],[23.530016,38.510001],[24.025025,38.219993],[24.040011,37.655015],[23.115003,37.920011],[23.409972,37.409991],[22.774972,37.30501],[23.154225,36.422506],[22.490028,36.41],[21.670026,36.844986],[21.295011,37.644989],[21.120034,38.310323],[20.730032,38.769985],[20.217712,39.340235],[20.150016,39.624998],[20.615,40.110007],[20.674997,40.435],[20.99999,40.580004],[21.02004,40.842727],[21.674161,40.931275],[22.055378,41.149866],[22.597308,41.130487],[22.76177,41.3048],[22.952377,41.337994],[23.692074,41.309081],[24.492645,41.583896],[25.197201,41.234486],[26.106138,41.328899],[26.117042,41.826905],[26.604196,41.562115]]]]}},{"type":"Feature","id":"GRL","properties":{"name":"Greenland"},"geometry":{"type":"Polygon","coordinates":[[[-46.76379,82.62796],[-43.40644,83.22516],[-39.89753,83.18018],[-38.62214,83.54905],[-35.08787,83.64513],[-27.10046,83.51966],[-20.84539,82.72669],[-22.69182,82.34165],[-26.51753,82.29765],[-31.9,82.2],[-31.39646,82.02154],[-27.85666,82.13178],[-24.84448,81.78697],[-22.90328,82.09317],[-22.07175,81.73449],[-23.16961,81.15271],[-20.62363,81.52462],[-15.76818,81.91245],[-12.77018,81.71885],[-12.20855,81.29154],[-16.28533,80.58004],[-16.85,80.35],[-20.04624,80.17708],[-17.73035,80.12912],[-18.9,79.4],[-19.70499,78.75128],[-19.67353,77.63859],[-18.47285,76.98565],[-20.03503,76.94434],[-21.67944,76.62795],[-19.83407,76.09808],[-19.59896,75.24838],[-20.66818,75.15585],[-19.37281,74.29561],[-21.59422,74.22382],[-20.43454,73.81713],[-20.76234,73.46436],[-22.17221,73.30955],[-23.56593,73.30663],[-22.31311,72.62928],[-22.29954,72.18409],[-24.27834,72.59788],[-24.79296,72.3302],[-23.44296,72.08016],[-22.13281,71.46898],[-21.75356,70.66369],[-23.53603,70.471],[-24.30702,70.85649],[-25.54341,71.43094],[-25.20135,70.75226],[-26.36276,70.22646],[-23.72742,70.18401],[-22.34902,70.12946],[-25.02927,69.2588],[-27.74737,68.47046],[-30.67371,68.12503],[-31.77665,68.12078],[-32.81105,67.73547],[-34.20196,66.67974],[-36.35284,65.9789],[-37.04378,65.93768],[-38.37505,65.69213],[-39.81222,65.45848],[-40.66899,64.83997],[-40.68281,64.13902],[-41.1887,63.48246],[-42.81938,62.68233],[-42.41666,61.90093],[-42.86619,61.07404],[-43.3784,60.09772],[-44.7875,60.03676],[-46.26364,60.85328],[-48.26294,60.85843],[-49.23308,61.40681],[-49.90039,62.38336],[-51.63325,63.62691],[-52.14014,64.27842],[-52.27659,65.1767],[-53.66166,66.09957],[-53.30161,66.8365],[-53.96911,67.18899],[-52.9804,68.35759],[-51.47536,68.72958],[-51.08041,69.14781],[-50.87122,69.9291],[-52.013585,69.574925],[-52.55792,69.42616],[-53.45629,69.283625],[-54.68336,69.61003],[-54.75001,70.28932],[-54.35884,70.821315],[-53.431315,70.835755],[-51.39014,70.56978],[-53.10937,71.20485],[-54.00422,71.54719],[-55,71.406537],[-55.83468,71.65444],[-54.71819,72.58625],[-55.32634,72.95861],[-56.12003,73.64977],[-57.32363,74.71026],[-58.59679,75.09861],[-58.58516,75.51727],[-61.26861,76.10238],[-63.39165,76.1752],[-66.06427,76.13486],[-68.50438,76.06141],[-69.66485,76.37975],[-71.40257,77.00857],[-68.77671,77.32312],[-66.76397,77.37595],[-71.04293,77.63595],[-73.297,78.04419],[-73.15938,78.43271],[-69.37345,78.91388],[-65.7107,79.39436],[-65.3239,79.75814],[-68.02298,80.11721],[-67.15129,80.51582],[-63.68925,81.21396],[-62.23444,81.3211],[-62.65116,81.77042],[-60.28249,82.03363],[-57.20744,82.19074],[-54.13442,82.19962],[-53.04328,81.88833],[-50.39061,82.43883],[-48.00386,82.06481],[-46.59984,81.985945],[-44.523,81.6607],[-46.9007,82.19979],[-46.76379,82.62796]]]}},{"type":"Feature","id":"GTM","properties":{"name":"Guatemala"},"geometry":{"type":"Polygon","coordinates":[[[-90.095555,13.735338],[-90.608624,13.909771],[-91.23241,13.927832],[-91.689747,14.126218],[-92.22775,14.538829],[-92.20323,14.830103],[-92.087216,15.064585],[-92.229249,15.251447],[-91.74796,16.066565],[-90.464473,16.069562],[-90.438867,16.41011],[-90.600847,16.470778],[-90.711822,16.687483],[-91.08167,16.918477],[-91.453921,17.252177],[-91.002269,17.254658],[-91.00152,17.817595],[-90.067934,17.819326],[-89.14308,17.808319],[-89.150806,17.015577],[-89.229122,15.886938],[-88.930613,15.887273],[-88.604586,15.70638],[-88.518364,15.855389],[-88.225023,15.727722],[-88.68068,15.346247],[-89.154811,15.066419],[-89.22522,14.874286],[-89.145535,14.678019],[-89.353326,14.424133],[-89.587343,14.362586],[-89.534219,14.244816],[-89.721934,14.134228],[-90.064678,13.88197],[-90.095555,13.735338]]]}},{"type":"Feature","id":"GUF","properties":{"name":"French Guiana"},"geometry":{"type":"Polygon","coordinates":[[[-52.556425,2.504705],[-52.939657,2.124858],[-53.418465,2.053389],[-53.554839,2.334897],[-53.778521,2.376703],[-54.088063,2.105557],[-54.524754,2.311849],[-54.27123,2.738748],[-54.184284,3.194172],[-54.011504,3.62257],[-54.399542,4.212611],[-54.478633,4.896756],[-53.958045,5.756548],[-53.618453,5.646529],[-52.882141,5.409851],[-51.823343,4.565768],[-51.657797,4.156232],[-52.249338,3.241094],[-52.556425,2.504705]]]}},{"type":"Feature","id":"GUY","properties":{"name":"Guyana"},"geometry":{"type":"Polygon","coordinates":[[[-59.758285,8.367035],[-59.101684,7.999202],[-58.482962,7.347691],[-58.454876,6.832787],[-58.078103,6.809094],[-57.542219,6.321268],[-57.147436,5.97315],[-57.307246,5.073567],[-57.914289,4.812626],[-57.86021,4.576801],[-58.044694,4.060864],[-57.601569,3.334655],[-57.281433,3.333492],[-57.150098,2.768927],[-56.539386,1.899523],[-56.782704,1.863711],[-57.335823,1.948538],[-57.660971,1.682585],[-58.11345,1.507195],[-58.429477,1.463942],[-58.540013,1.268088],[-59.030862,1.317698],[-59.646044,1.786894],[-59.718546,2.24963],[-59.974525,2.755233],[-59.815413,3.606499],[-59.53804,3.958803],[-59.767406,4.423503],[-60.111002,4.574967],[-59.980959,5.014061],[-60.213683,5.244486],[-60.733574,5.200277],[-61.410303,5.959068],[-61.139415,6.234297],[-61.159336,6.696077],[-60.543999,6.856584],[-60.295668,7.043911],[-60.637973,7.415],[-60.550588,7.779603],[-59.758285,8.367035]]]}},{"type":"Feature","id":"HND","properties":{"name":"Honduras"},"geometry":{"type":"Polygon","coordinates":[[[-87.316654,12.984686],[-87.489409,13.297535],[-87.793111,13.38448],[-87.723503,13.78505],[-87.859515,13.893312],[-88.065343,13.964626],[-88.503998,13.845486],[-88.541231,13.980155],[-88.843073,14.140507],[-89.058512,14.340029],[-89.353326,14.424133],[-89.145535,14.678019],[-89.22522,14.874286],[-89.154811,15.066419],[-88.68068,15.346247],[-88.225023,15.727722],[-88.121153,15.688655],[-87.901813,15.864458],[-87.61568,15.878799],[-87.522921,15.797279],[-87.367762,15.84694],[-86.903191,15.756713],[-86.440946,15.782835],[-86.119234,15.893449],[-86.001954,16.005406],[-85.683317,15.953652],[-85.444004,15.885749],[-85.182444,15.909158],[-84.983722,15.995923],[-84.52698,15.857224],[-84.368256,15.835158],[-84.063055,15.648244],[-83.773977,15.424072],[-83.410381,15.270903],[-83.147219,14.995829],[-83.489989,15.016267],[-83.628585,14.880074],[-83.975721,14.749436],[-84.228342,14.748764],[-84.449336,14.621614],[-84.649582,14.666805],[-84.820037,14.819587],[-84.924501,14.790493],[-85.052787,14.551541],[-85.148751,14.560197],[-85.165365,14.35437],[-85.514413,14.079012],[-85.698665,13.960078],[-85.801295,13.836055],[-86.096264,14.038187],[-86.312142,13.771356],[-86.520708,13.778487],[-86.755087,13.754845],[-86.733822,13.263093],[-86.880557,13.254204],[-87.005769,13.025794],[-87.316654,12.984686]]]}},{"type":"Feature","id":"HRV","properties":{"name":"Croatia"},"geometry":{"type":"Polygon","coordinates":[[[18.829838,45.908878],[19.072769,45.521511],[19.390476,45.236516],[19.005486,44.860234],[18.553214,45.08159],[17.861783,45.06774],[17.002146,45.233777],[16.534939,45.211608],[16.318157,45.004127],[15.959367,45.233777],[15.750026,44.818712],[16.23966,44.351143],[16.456443,44.04124],[16.916156,43.667722],[17.297373,43.446341],[17.674922,43.028563],[18.56,42.65],[18.450016,42.479991],[17.50997,42.849995],[16.930006,43.209998],[16.015385,43.507215],[15.174454,44.243191],[15.37625,44.317915],[14.920309,44.738484],[14.901602,45.07606],[14.258748,45.233777],[13.952255,44.802124],[13.656976,45.136935],[13.679403,45.484149],[13.71506,45.500324],[14.411968,45.466166],[14.595109,45.634941],[14.935244,45.471695],[15.327675,45.452316],[15.323954,45.731783],[15.67153,45.834154],[15.768733,46.238108],[16.564808,46.503751],[16.882515,46.380632],[17.630066,45.951769],[18.456062,45.759481],[18.829838,45.908878]]]}},{"type":"Feature","id":"HTI","properties":{"name":"Haiti"},"geometry":{"type":"Polygon","coordinates":[[[-73.189791,19.915684],[-72.579673,19.871501],[-71.712361,19.714456],[-71.624873,19.169838],[-71.701303,18.785417],[-71.945112,18.6169],[-71.687738,18.31666],[-71.708305,18.044997],[-72.372476,18.214961],[-72.844411,18.145611],[-73.454555,18.217906],[-73.922433,18.030993],[-74.458034,18.34255],[-74.369925,18.664908],[-73.449542,18.526053],[-72.694937,18.445799],[-72.334882,18.668422],[-72.79165,19.101625],[-72.784105,19.483591],[-73.415022,19.639551],[-73.189791,19.915684]]]}},{"type":"Feature","id":"HUN","properties":{"name":"Hungary"},"geometry":{"type":"Polygon","coordinates":[[[16.202298,46.852386],[16.534268,47.496171],[16.340584,47.712902],[16.903754,47.714866],[16.979667,48.123497],[17.488473,47.867466],[17.857133,47.758429],[18.696513,47.880954],[18.777025,48.081768],[19.174365,48.111379],[19.661364,48.266615],[19.769471,48.202691],[20.239054,48.327567],[20.473562,48.56285],[20.801294,48.623854],[21.872236,48.319971],[22.085608,48.422264],[22.64082,48.15024],[22.710531,47.882194],[22.099768,47.672439],[21.626515,46.994238],[21.021952,46.316088],[20.220192,46.127469],[19.596045,46.17173],[18.829838,45.908878],[18.456062,45.759481],[17.630066,45.951769],[16.882515,46.380632],[16.564808,46.503751],[16.370505,46.841327],[16.202298,46.852386]]]}},{"type":"Feature","id":"IDN","properties":{"name":"Indonesia"},"geometry":{"type":"MultiPolygon","coordinates":[[[[120.715609,-10.239581],[120.295014,-10.25865],[118.967808,-9.557969],[119.90031,-9.36134],[120.425756,-9.665921],[120.775502,-9.969675],[120.715609,-10.239581]]],[[[124.43595,-10.140001],[123.579982,-10.359987],[123.459989,-10.239995],[123.550009,-9.900016],[123.980009,-9.290027],[124.968682,-8.89279],[125.07002,-9.089987],[125.08852,-9.393173],[124.43595,-10.140001]]],[[[117.900018,-8.095681],[118.260616,-8.362383],[118.87846,-8.280683],[119.126507,-8.705825],[117.970402,-8.906639],[117.277731,-9.040895],[116.740141,-9.032937],[117.083737,-8.457158],[117.632024,-8.449303],[117.900018,-8.095681]]],[[[122.903537,-8.094234],[122.756983,-8.649808],[121.254491,-8.933666],[119.924391,-8.810418],[119.920929,-8.444859],[120.715092,-8.236965],[121.341669,-8.53674],[122.007365,-8.46062],[122.903537,-8.094234]]],[[[108.623479,-6.777674],[110.539227,-6.877358],[110.759576,-6.465186],[112.614811,-6.946036],[112.978768,-7.594213],[114.478935,-7.776528],[115.705527,-8.370807],[114.564511,-8.751817],[113.464734,-8.348947],[112.559672,-8.376181],[111.522061,-8.302129],[110.58615,-8.122605],[109.427667,-7.740664],[108.693655,-7.6416],[108.277763,-7.766657],[106.454102,-7.3549],[106.280624,-6.9249],[105.365486,-6.851416],[106.051646,-5.895919],[107.265009,-5.954985],[108.072091,-6.345762],[108.486846,-6.421985],[108.623479,-6.777674]]],[[[134.724624,-6.214401],[134.210134,-6.895238],[134.112776,-6.142467],[134.290336,-5.783058],[134.499625,-5.445042],[134.727002,-5.737582],[134.724624,-6.214401]]],[[[127.249215,-3.459065],[126.874923,-3.790983],[126.183802,-3.607376],[125.989034,-3.177273],[127.000651,-3.129318],[127.249215,-3.459065]]],[[[130.471344,-3.093764],[130.834836,-3.858472],[129.990547,-3.446301],[129.155249,-3.362637],[128.590684,-3.428679],[127.898891,-3.393436],[128.135879,-2.84365],[129.370998,-2.802154],[130.471344,-3.093764]]],[[[134.143368,-1.151867],[134.422627,-2.769185],[135.457603,-3.367753],[136.293314,-2.307042],[137.440738,-1.703513],[138.329727,-1.702686],[139.184921,-2.051296],[139.926684,-2.409052],[141.00021,-2.600151],[141.017057,-5.859022],[141.033852,-9.117893],[140.143415,-8.297168],[139.127767,-8.096043],[138.881477,-8.380935],[137.614474,-8.411683],[138.039099,-7.597882],[138.668621,-7.320225],[138.407914,-6.232849],[137.92784,-5.393366],[135.98925,-4.546544],[135.164598,-4.462931],[133.66288,-3.538853],[133.367705,-4.024819],[132.983956,-4.112979],[132.756941,-3.746283],[132.753789,-3.311787],[131.989804,-2.820551],[133.066845,-2.460418],[133.780031,-2.479848],[133.696212,-2.214542],[132.232373,-2.212526],[131.836222,-1.617162],[130.94284,-1.432522],[130.519558,-0.93772],[131.867538,-0.695461],[132.380116,-0.369538],[133.985548,-0.78021],[134.143368,-1.151867]]],[[[125.240501,1.419836],[124.437035,0.427881],[123.685505,0.235593],[122.723083,0.431137],[121.056725,0.381217],[120.183083,0.237247],[120.04087,-0.519658],[120.935905,-1.408906],[121.475821,-0.955962],[123.340565,-0.615673],[123.258399,-1.076213],[122.822715,-0.930951],[122.38853,-1.516858],[121.508274,-1.904483],[122.454572,-3.186058],[122.271896,-3.5295],[123.170963,-4.683693],[123.162333,-5.340604],[122.628515,-5.634591],[122.236394,-5.282933],[122.719569,-4.464172],[121.738234,-4.851331],[121.489463,-4.574553],[121.619171,-4.188478],[120.898182,-3.602105],[120.972389,-2.627643],[120.305453,-2.931604],[120.390047,-4.097579],[120.430717,-5.528241],[119.796543,-5.6734],[119.366906,-5.379878],[119.653606,-4.459417],[119.498835,-3.494412],[119.078344,-3.487022],[118.767769,-2.801999],[119.180974,-2.147104],[119.323394,-1.353147],[119.825999,0.154254],[120.035702,0.566477],[120.885779,1.309223],[121.666817,1.013944],[122.927567,0.875192],[124.077522,0.917102],[125.065989,1.643259],[125.240501,1.419836]]],[[[128.688249,1.132386],[128.635952,0.258486],[128.12017,0.356413],[127.968034,-0.252077],[128.379999,-0.780004],[128.100016,-0.899996],[127.696475,-0.266598],[127.39949,1.011722],[127.600512,1.810691],[127.932378,2.174596],[128.004156,1.628531],[128.594559,1.540811],[128.688249,1.132386]]],[[[117.875627,1.827641],[118.996747,0.902219],[117.811858,0.784242],[117.478339,0.102475],[117.521644,-0.803723],[116.560048,-1.487661],[116.533797,-2.483517],[116.148084,-4.012726],[116.000858,-3.657037],[114.864803,-4.106984],[114.468652,-3.495704],[113.755672,-3.43917],[113.256994,-3.118776],[112.068126,-3.478392],[111.703291,-2.994442],[111.04824,-3.049426],[110.223846,-2.934032],[110.070936,-1.592874],[109.571948,-1.314907],[109.091874,-0.459507],[108.952658,0.415375],[109.069136,1.341934],[109.66326,2.006467],[109.830227,1.338136],[110.514061,0.773131],[111.159138,0.976478],[111.797548,0.904441],[112.380252,1.410121],[112.859809,1.49779],[113.80585,1.217549],[114.621355,1.430688],[115.134037,2.821482],[115.519078,3.169238],[115.865517,4.306559],[117.015214,4.306094],[117.882035,4.137551],[117.313232,3.234428],[118.04833,2.28769],[117.875627,1.827641]]],[[[105.817655,-5.852356],[104.710384,-5.873285],[103.868213,-5.037315],[102.584261,-4.220259],[102.156173,-3.614146],[101.399113,-2.799777],[100.902503,-2.050262],[100.141981,-0.650348],[99.26374,0.183142],[98.970011,1.042882],[98.601351,1.823507],[97.699598,2.453184],[97.176942,3.308791],[96.424017,3.86886],[95.380876,4.970782],[95.293026,5.479821],[95.936863,5.439513],[97.484882,5.246321],[98.369169,4.26837],[99.142559,3.59035],[99.693998,3.174329],[100.641434,2.099381],[101.658012,2.083697],[102.498271,1.3987],[103.07684,0.561361],[103.838396,0.104542],[103.437645,-0.711946],[104.010789,-1.059212],[104.369991,-1.084843],[104.53949,-1.782372],[104.887893,-2.340425],[105.622111,-2.428844],[106.108593,-3.061777],[105.857446,-4.305525],[105.817655,-5.852356]]]]}},{"type":"Feature","id":"IND","properties":{"name":"India"},"geometry":{"type":"Polygon","coordinates":[[[77.837451,35.49401],[78.912269,34.321936],[78.811086,33.506198],[79.208892,32.994395],[79.176129,32.48378],[78.458446,32.618164],[78.738894,31.515906],[79.721367,30.882715],[81.111256,30.183481],[80.476721,29.729865],[80.088425,28.79447],[81.057203,28.416095],[81.999987,27.925479],[83.304249,27.364506],[84.675018,27.234901],[85.251779,26.726198],[86.024393,26.630985],[87.227472,26.397898],[88.060238,26.414615],[88.174804,26.810405],[88.043133,27.445819],[88.120441,27.876542],[88.730326,28.086865],[88.814248,27.299316],[88.835643,27.098966],[89.744528,26.719403],[90.373275,26.875724],[91.217513,26.808648],[92.033484,26.83831],[92.103712,27.452614],[91.696657,27.771742],[92.503119,27.896876],[93.413348,28.640629],[94.56599,29.277438],[95.404802,29.031717],[96.117679,29.452802],[96.586591,28.83098],[96.248833,28.411031],[97.327114,28.261583],[97.402561,27.882536],[97.051989,27.699059],[97.133999,27.083774],[96.419366,27.264589],[95.124768,26.573572],[95.155153,26.001307],[94.603249,25.162495],[94.552658,24.675238],[94.106742,23.850741],[93.325188,24.078556],[93.286327,23.043658],[93.060294,22.703111],[93.166128,22.27846],[92.672721,22.041239],[92.146035,23.627499],[91.869928,23.624346],[91.706475,22.985264],[91.158963,23.503527],[91.46773,24.072639],[91.915093,24.130414],[92.376202,24.976693],[91.799596,25.147432],[90.872211,25.132601],[89.920693,25.26975],[89.832481,25.965082],[89.355094,26.014407],[88.563049,26.446526],[88.209789,25.768066],[88.931554,25.238692],[88.306373,24.866079],[88.084422,24.501657],[88.69994,24.233715],[88.52977,23.631142],[88.876312,22.879146],[89.031961,22.055708],[88.888766,21.690588],[88.208497,21.703172],[86.975704,21.495562],[87.033169,20.743308],[86.499351,20.151638],[85.060266,19.478579],[83.941006,18.30201],[83.189217,17.671221],[82.192792,17.016636],[82.191242,16.556664],[81.692719,16.310219],[80.791999,15.951972],[80.324896,15.899185],[80.025069,15.136415],[80.233274,13.835771],[80.286294,13.006261],[79.862547,12.056215],[79.857999,10.357275],[79.340512,10.308854],[78.885345,9.546136],[79.18972,9.216544],[78.277941,8.933047],[77.941165,8.252959],[77.539898,7.965535],[76.592979,8.899276],[76.130061,10.29963],[75.746467,11.308251],[75.396101,11.781245],[74.864816,12.741936],[74.616717,13.992583],[74.443859,14.617222],[73.534199,15.990652],[73.119909,17.92857],[72.820909,19.208234],[72.824475,20.419503],[72.630533,21.356009],[71.175273,20.757441],[70.470459,20.877331],[69.16413,22.089298],[69.644928,22.450775],[69.349597,22.84318],[68.176645,23.691965],[68.842599,24.359134],[71.04324,24.356524],[70.844699,25.215102],[70.282873,25.722229],[70.168927,26.491872],[69.514393,26.940966],[70.616496,27.989196],[71.777666,27.91318],[72.823752,28.961592],[73.450638,29.976413],[74.42138,30.979815],[74.405929,31.692639],[75.258642,32.271105],[74.451559,32.7649],[74.104294,33.441473],[73.749948,34.317699],[74.240203,34.748887],[75.757061,34.504923],[76.871722,34.653544],[77.837451,35.49401]]]}},{"type":"Feature","id":"IRL","properties":{"name":"Ireland"},"geometry":{"type":"Polygon","coordinates":[[[-6.197885,53.867565],[-6.032985,53.153164],[-6.788857,52.260118],[-8.561617,51.669301],[-9.977086,51.820455],[-9.166283,52.864629],[-9.688525,53.881363],[-8.327987,54.664519],[-7.572168,55.131622],[-7.366031,54.595841],[-7.572168,54.059956],[-6.95373,54.073702],[-6.197885,53.867565]]]}},{"type":"Feature","id":"IRN","properties":{"name":"Iran"},"geometry":{"type":"Polygon","coordinates":[[[53.921598,37.198918],[54.800304,37.392421],[55.511578,37.964117],[56.180375,37.935127],[56.619366,38.121394],[57.330434,38.029229],[58.436154,37.522309],[59.234762,37.412988],[60.377638,36.527383],[61.123071,36.491597],[61.210817,35.650072],[60.803193,34.404102],[60.52843,33.676446],[60.9637,33.528832],[60.536078,32.981269],[60.863655,32.18292],[60.941945,31.548075],[61.699314,31.379506],[61.781222,30.73585],[60.874248,29.829239],[61.369309,29.303276],[61.771868,28.699334],[62.72783,28.259645],[62.755426,27.378923],[63.233898,27.217047],[63.316632,26.756532],[61.874187,26.239975],[61.497363,25.078237],[59.616134,25.380157],[58.525761,25.609962],[57.397251,25.739902],[56.970766,26.966106],[56.492139,27.143305],[55.72371,26.964633],[54.71509,26.480658],[53.493097,26.812369],[52.483598,27.580849],[51.520763,27.86569],[50.852948,28.814521],[50.115009,30.147773],[49.57685,29.985715],[48.941333,30.31709],[48.567971,29.926778],[48.014568,30.452457],[48.004698,30.985137],[47.685286,30.984853],[47.849204,31.709176],[47.334661,32.469155],[46.109362,33.017287],[45.416691,33.967798],[45.64846,34.748138],[46.151788,35.093259],[46.07634,35.677383],[45.420618,35.977546],[44.77267,37.17045],[44.225756,37.971584],[44.421403,38.281281],[44.109225,39.428136],[44.79399,39.713003],[44.952688,39.335765],[45.457722,38.874139],[46.143623,38.741201],[46.50572,38.770605],[47.685079,39.508364],[48.060095,39.582235],[48.355529,39.288765],[48.010744,38.794015],[48.634375,38.270378],[48.883249,38.320245],[49.199612,37.582874],[50.147771,37.374567],[50.842354,36.872814],[52.264025,36.700422],[53.82579,36.965031],[53.921598,37.198918]]]}},{"type":"Feature","id":"IRQ","properties":{"name":"Iraq"},"geometry":{"type":"Polygon","coordinates":[[[45.420618,35.977546],[46.07634,35.677383],[46.151788,35.093259],[45.64846,34.748138],[45.416691,33.967798],[46.109362,33.017287],[47.334661,32.469155],[47.849204,31.709176],[47.685286,30.984853],[48.004698,30.985137],[48.014568,30.452457],[48.567971,29.926778],[47.974519,29.975819],[47.302622,30.05907],[46.568713,29.099025],[44.709499,29.178891],[41.889981,31.190009],[40.399994,31.889992],[39.195468,32.161009],[38.792341,33.378686],[41.006159,34.419372],[41.383965,35.628317],[41.289707,36.358815],[41.837064,36.605854],[42.349591,37.229873],[42.779126,37.385264],[43.942259,37.256228],[44.293452,37.001514],[44.772699,37.170445],[45.420618,35.977546]]]}},{"type":"Feature","id":"ISL","properties":{"name":"Iceland"},"geometry":{"type":"Polygon","coordinates":[[[-14.508695,66.455892],[-14.739637,65.808748],[-13.609732,65.126671],[-14.909834,64.364082],[-17.794438,63.678749],[-18.656246,63.496383],[-19.972755,63.643635],[-22.762972,63.960179],[-21.778484,64.402116],[-23.955044,64.89113],[-22.184403,65.084968],[-22.227423,65.378594],[-24.326184,65.611189],[-23.650515,66.262519],[-22.134922,66.410469],[-20.576284,65.732112],[-19.056842,66.276601],[-17.798624,65.993853],[-16.167819,66.526792],[-14.508695,66.455892]]]}},{"type":"Feature","id":"ISR","properties":{"name":"Israel"},"geometry":{"type":"Polygon","coordinates":[[[35.719918,32.709192],[35.545665,32.393992],[35.18393,32.532511],[34.974641,31.866582],[35.225892,31.754341],[34.970507,31.616778],[34.927408,31.353435],[35.397561,31.489086],[35.420918,31.100066],[34.922603,29.501326],[34.265433,31.219361],[34.556372,31.548824],[34.488107,31.605539],[34.752587,32.072926],[34.955417,32.827376],[35.098457,33.080539],[35.126053,33.0909],[35.460709,33.08904],[35.552797,33.264275],[35.821101,33.277426],[35.836397,32.868123],[35.700798,32.716014],[35.719918,32.709192]]]}},{"type":"Feature","id":"ITA","properties":{"name":"Italy"},"geometry":{"type":"MultiPolygon","coordinates":[[[[15.520376,38.231155],[15.160243,37.444046],[15.309898,37.134219],[15.099988,36.619987],[14.335229,36.996631],[13.826733,37.104531],[12.431004,37.61295],[12.570944,38.126381],[13.741156,38.034966],[14.761249,38.143874],[15.520376,38.231155]]],[[[9.210012,41.209991],[9.809975,40.500009],[9.669519,39.177376],[9.214818,39.240473],[8.806936,38.906618],[8.428302,39.171847],[8.388253,40.378311],[8.159998,40.950007],[8.709991,40.899984],[9.210012,41.209991]]],[[[12.376485,46.767559],[13.806475,46.509306],[13.69811,46.016778],[13.93763,45.591016],[13.141606,45.736692],[12.328581,45.381778],[12.383875,44.885374],[12.261453,44.600482],[12.589237,44.091366],[13.526906,43.587727],[14.029821,42.761008],[15.14257,41.95514],[15.926191,41.961315],[16.169897,41.740295],[15.889346,41.541082],[16.785002,41.179606],[17.519169,40.877143],[18.376687,40.355625],[18.480247,40.168866],[18.293385,39.810774],[17.73838,40.277671],[16.869596,40.442235],[16.448743,39.795401],[17.17149,39.4247],[17.052841,38.902871],[16.635088,38.843572],[16.100961,37.985899],[15.684087,37.908849],[15.687963,38.214593],[15.891981,38.750942],[16.109332,38.964547],[15.718814,39.544072],[15.413613,40.048357],[14.998496,40.172949],[14.703268,40.60455],[14.060672,40.786348],[13.627985,41.188287],[12.888082,41.25309],[12.106683,41.704535],[11.191906,42.355425],[10.511948,42.931463],[10.200029,43.920007],[9.702488,44.036279],[8.888946,44.366336],[8.428561,44.231228],[7.850767,43.767148],[7.435185,43.693845],[7.549596,44.127901],[7.007562,44.254767],[6.749955,45.028518],[7.096652,45.333099],[6.802355,45.70858],[6.843593,45.991147],[7.273851,45.776948],[7.755992,45.82449],[8.31663,46.163642],[8.489952,46.005151],[8.966306,46.036932],[9.182882,46.440215],[9.922837,46.314899],[10.363378,46.483571],[10.442701,46.893546],[11.048556,46.751359],[11.164828,46.941579],[12.153088,47.115393],[12.376485,46.767559]]]]}},{"type":"Feature","id":"JAM","properties":{"name":"Jamaica"},"geometry":{"type":"Polygon","coordinates":[[[-77.569601,18.490525],[-76.896619,18.400867],[-76.365359,18.160701],[-76.199659,17.886867],[-76.902561,17.868238],[-77.206341,17.701116],[-77.766023,17.861597],[-78.337719,18.225968],[-78.217727,18.454533],[-77.797365,18.524218],[-77.569601,18.490525]]]}},{"type":"Feature","id":"JOR","properties":{"name":"Jordan"},"geometry":{"type":"Polygon","coordinates":[[[35.545665,32.393992],[35.719918,32.709192],[36.834062,32.312938],[38.792341,33.378686],[39.195468,32.161009],[39.004886,32.010217],[37.002166,31.508413],[37.998849,30.5085],[37.66812,30.338665],[37.503582,30.003776],[36.740528,29.865283],[36.501214,29.505254],[36.068941,29.197495],[34.956037,29.356555],[34.922603,29.501326],[35.420918,31.100066],[35.397561,31.489086],[35.545252,31.782505],[35.545665,32.393992]]]}},{"type":"Feature","id":"JPN","properties":{"name":"Japan"},"geometry":{"type":"MultiPolygon","coordinates":[[[[134.638428,34.149234],[134.766379,33.806335],[134.203416,33.201178],[133.79295,33.521985],[133.280268,33.28957],[133.014858,32.704567],[132.363115,32.989382],[132.371176,33.463642],[132.924373,34.060299],[133.492968,33.944621],[133.904106,34.364931],[134.638428,34.149234]]],[[[140.976388,37.142074],[140.59977,36.343983],[140.774074,35.842877],[140.253279,35.138114],[138.975528,34.6676],[137.217599,34.606286],[135.792983,33.464805],[135.120983,33.849071],[135.079435,34.596545],[133.340316,34.375938],[132.156771,33.904933],[130.986145,33.885761],[132.000036,33.149992],[131.33279,31.450355],[130.686318,31.029579],[130.20242,31.418238],[130.447676,32.319475],[129.814692,32.61031],[129.408463,33.296056],[130.353935,33.604151],[130.878451,34.232743],[131.884229,34.749714],[132.617673,35.433393],[134.608301,35.731618],[135.677538,35.527134],[136.723831,37.304984],[137.390612,36.827391],[138.857602,37.827485],[139.426405,38.215962],[140.05479,39.438807],[139.883379,40.563312],[140.305783,41.195005],[141.368973,41.37856],[141.914263,39.991616],[141.884601,39.180865],[140.959489,38.174001],[140.976388,37.142074]]],[[[143.910162,44.1741],[144.613427,43.960883],[145.320825,44.384733],[145.543137,43.262088],[144.059662,42.988358],[143.18385,41.995215],[141.611491,42.678791],[141.067286,41.584594],[139.955106,41.569556],[139.817544,42.563759],[140.312087,43.333273],[141.380549,43.388825],[141.671952,44.772125],[141.967645,45.551483],[143.14287,44.510358],[143.910162,44.1741]]]]}},{"type":"Feature","id":"KAZ","properties":{"name":"Kazakhstan"},"geometry":{"type":"Polygon","coordinates":[[[70.962315,42.266154],[70.388965,42.081308],[69.070027,41.384244],[68.632483,40.668681],[68.259896,40.662325],[67.985856,41.135991],[66.714047,41.168444],[66.510649,41.987644],[66.023392,41.994646],[66.098012,42.99766],[64.900824,43.728081],[63.185787,43.650075],[62.0133,43.504477],[61.05832,44.405817],[60.239972,44.784037],[58.689989,45.500014],[58.503127,45.586804],[55.928917,44.995858],[55.968191,41.308642],[55.455251,41.259859],[54.755345,42.043971],[54.079418,42.324109],[52.944293,42.116034],[52.50246,41.783316],[52.446339,42.027151],[52.692112,42.443895],[52.501426,42.792298],[51.342427,43.132975],[50.891292,44.031034],[50.339129,44.284016],[50.305643,44.609836],[51.278503,44.514854],[51.316899,45.245998],[52.16739,45.408391],[53.040876,45.259047],[53.220866,46.234646],[53.042737,46.853006],[52.042023,46.804637],[51.191945,47.048705],[50.034083,46.60899],[49.10116,46.39933],[48.593241,46.561034],[48.694734,47.075628],[48.057253,47.743753],[47.315231,47.715847],[46.466446,48.394152],[47.043672,49.152039],[46.751596,49.356006],[47.54948,50.454698],[48.577841,49.87476],[48.702382,50.605128],[50.766648,51.692762],[52.328724,51.718652],[54.532878,51.02624],[55.716941,50.621717],[56.777961,51.043551],[58.363291,51.063653],[59.642282,50.545442],[59.932807,50.842194],[61.337424,50.79907],[61.588003,51.272659],[59.967534,51.96042],[60.927269,52.447548],[60.739993,52.719986],[61.699986,52.979996],[60.978066,53.664993],[61.436591,54.006265],[65.178534,54.354228],[65.666876,54.601267],[68.1691,54.970392],[69.068167,55.38525],[70.865267,55.169734],[71.180131,54.133285],[72.22415,54.376655],[73.508516,54.035617],[73.425679,53.48981],[74.384845,53.546861],[76.8911,54.490524],[76.525179,54.177003],[77.800916,53.404415],[80.03556,50.864751],[80.568447,51.388336],[81.945986,50.812196],[83.383004,51.069183],[83.935115,50.889246],[84.416377,50.3114],[85.11556,50.117303],[85.54127,49.692859],[86.829357,49.826675],[87.35997,49.214981],[86.598776,48.549182],[85.768233,48.455751],[85.720484,47.452969],[85.16429,47.000956],[83.180484,47.330031],[82.458926,45.53965],[81.947071,45.317027],[79.966106,44.917517],[80.866206,43.180362],[80.18015,42.920068],[80.25999,42.349999],[79.643645,42.496683],[79.142177,42.856092],[77.658392,42.960686],[76.000354,42.988022],[75.636965,42.8779],[74.212866,43.298339],[73.645304,43.091272],[73.489758,42.500894],[71.844638,42.845395],[71.186281,42.704293],[70.962315,42.266154]]]}},{"type":"Feature","id":"KEN","properties":{"name":"Kenya"},"geometry":{"type":"Polygon","coordinates":[[[40.993,-0.85829],[41.58513,-1.68325],[40.88477,-2.08255],[40.63785,-2.49979],[40.26304,-2.57309],[40.12119,-3.27768],[39.80006,-3.68116],[39.60489,-4.34653],[39.20222,-4.67677],[37.7669,-3.67712],[37.69869,-3.09699],[34.07262,-1.05982],[33.903711,-0.95],[33.893569,0.109814],[34.18,0.515],[34.6721,1.17694],[35.03599,1.90584],[34.59607,3.05374],[34.47913,3.5556],[34.005,4.249885],[34.620196,4.847123],[35.298007,5.506],[35.817448,5.338232],[35.817448,4.776966],[36.159079,4.447864],[36.855093,4.447864],[38.120915,3.598605],[38.43697,3.58851],[38.67114,3.61607],[38.89251,3.50074],[39.559384,3.42206],[39.85494,3.83879],[40.76848,4.25702],[41.1718,3.91909],[41.855083,3.918912],[40.98105,2.78452],[40.993,-0.85829]]]}},{"type":"Feature","id":"KGZ","properties":{"name":"Kyrgyzstan"},"geometry":{"type":"Polygon","coordinates":[[[70.962315,42.266154],[71.186281,42.704293],[71.844638,42.845395],[73.489758,42.500894],[73.645304,43.091272],[74.212866,43.298339],[75.636965,42.8779],[76.000354,42.988022],[77.658392,42.960686],[79.142177,42.856092],[79.643645,42.496683],[80.25999,42.349999],[80.11943,42.123941],[78.543661,41.582243],[78.187197,41.185316],[76.904484,41.066486],[76.526368,40.427946],[75.467828,40.562072],[74.776862,40.366425],[73.822244,39.893973],[73.960013,39.660008],[73.675379,39.431237],[71.784694,39.279463],[70.549162,39.604198],[69.464887,39.526683],[69.55961,40.103211],[70.648019,39.935754],[71.014198,40.244366],[71.774875,40.145844],[73.055417,40.866033],[71.870115,41.3929],[71.157859,41.143587],[70.420022,41.519998],[71.259248,42.167711],[70.962315,42.266154]]]}},{"type":"Feature","id":"KHM","properties":{"name":"Cambodia"},"geometry":{"type":"Polygon","coordinates":[[[103.49728,10.632555],[103.09069,11.153661],[102.584932,12.186595],[102.348099,13.394247],[102.988422,14.225721],[104.281418,14.416743],[105.218777,14.273212],[106.043946,13.881091],[106.496373,14.570584],[107.382727,14.202441],[107.614548,13.535531],[107.491403,12.337206],[105.810524,11.567615],[106.24967,10.961812],[105.199915,10.88931],[104.334335,10.486544],[103.49728,10.632555]]]}},{"type":"Feature","id":"KOR","properties":{"name":"South Korea"},"geometry":{"type":"Polygon","coordinates":[[[128.349716,38.612243],[129.21292,37.432392],[129.46045,36.784189],[129.468304,35.632141],[129.091377,35.082484],[128.18585,34.890377],[127.386519,34.475674],[126.485748,34.390046],[126.37392,34.93456],[126.559231,35.684541],[126.117398,36.725485],[126.860143,36.893924],[126.174759,37.749686],[126.237339,37.840378],[126.68372,37.804773],[127.073309,38.256115],[127.780035,38.304536],[128.205746,38.370397],[128.349716,38.612243]]]}},{"type":"Feature","id":"RKS","properties":{"name":"Kosovo"},"geometry":{"type":"Polygon","coordinates":[[[20.76216,42.05186],[20.71731,41.84711],[20.59023,41.85541],[20.52295,42.21787],[20.28374,42.32025],[20.0707,42.58863],[20.25758,42.81275],[20.49679,42.88469],[20.63508,43.21671],[20.81448,43.27205],[20.95651,43.13094],[21.143395,43.068685],[21.27421,42.90959],[21.43866,42.86255],[21.63302,42.67717],[21.77505,42.6827],[21.66292,42.43922],[21.54332,42.32025],[21.576636,42.245224],[21.3527,42.2068],[20.76216,42.05186]]]}},{"type":"Feature","id":"KWT","properties":{"name":"Kuwait"},"geometry":{"type":"Polygon","coordinates":[[[47.974519,29.975819],[48.183189,29.534477],[48.093943,29.306299],[48.416094,28.552004],[47.708851,28.526063],[47.459822,29.002519],[46.568713,29.099025],[47.302622,30.05907],[47.974519,29.975819]]]}},{"type":"Feature","id":"LAO","properties":{"name":"Laos"},"geometry":{"type":"Polygon","coordinates":[[[105.218777,14.273212],[105.544338,14.723934],[105.589039,15.570316],[104.779321,16.441865],[104.716947,17.428859],[103.956477,18.240954],[103.200192,18.309632],[102.998706,17.961695],[102.413005,17.932782],[102.113592,18.109102],[101.059548,17.512497],[101.035931,18.408928],[101.282015,19.462585],[100.606294,19.508344],[100.548881,20.109238],[100.115988,20.41785],[100.329101,20.786122],[101.180005,21.436573],[101.270026,21.201652],[101.80312,21.174367],[101.652018,22.318199],[102.170436,22.464753],[102.754896,21.675137],[103.203861,20.766562],[104.435,20.758733],[104.822574,19.886642],[104.183388,19.624668],[103.896532,19.265181],[105.094598,18.666975],[105.925762,17.485315],[106.556008,16.604284],[107.312706,15.908538],[107.564525,15.202173],[107.382727,14.202441],[106.496373,14.570584],[106.043946,13.881091],[105.218777,14.273212]]]}},{"type":"Feature","id":"LBN","properties":{"name":"Lebanon"},"geometry":{"type":"Polygon","coordinates":[[[35.821101,33.277426],[35.552797,33.264275],[35.460709,33.08904],[35.126053,33.0909],[35.482207,33.90545],[35.979592,34.610058],[35.998403,34.644914],[36.448194,34.593935],[36.61175,34.201789],[36.06646,33.824912],[35.821101,33.277426]]]}},{"type":"Feature","id":"LBR","properties":{"name":"Liberia"},"geometry":{"type":"Polygon","coordinates":[[[-7.712159,4.364566],[-7.974107,4.355755],[-9.004794,4.832419],[-9.91342,5.593561],[-10.765384,6.140711],[-11.438779,6.785917],[-11.199802,7.105846],[-11.146704,7.396706],[-10.695595,7.939464],[-10.230094,8.406206],[-10.016567,8.428504],[-9.755342,8.541055],[-9.33728,7.928534],[-9.403348,7.526905],[-9.208786,7.313921],[-8.926065,7.309037],[-8.722124,7.711674],[-8.439298,7.686043],[-8.485446,7.395208],[-8.385452,6.911801],[-8.60288,6.467564],[-8.311348,6.193033],[-7.993693,6.12619],[-7.570153,5.707352],[-7.539715,5.313345],[-7.635368,5.188159],[-7.712159,4.364566]]]}},{"type":"Feature","id":"LBY","properties":{"name":"Libya"},"geometry":{"type":"Polygon","coordinates":[[[14.8513,22.86295],[14.143871,22.491289],[13.581425,23.040506],[11.999506,23.471668],[11.560669,24.097909],[10.771364,24.562532],[10.303847,24.379313],[9.948261,24.936954],[9.910693,25.365455],[9.319411,26.094325],[9.716286,26.512206],[9.629056,27.140953],[9.756128,27.688259],[9.683885,28.144174],[9.859998,28.95999],[9.805634,29.424638],[9.48214,30.307556],[9.970017,30.539325],[10.056575,30.961831],[9.950225,31.37607],[10.636901,31.761421],[10.94479,32.081815],[11.432253,32.368903],[11.488787,33.136996],[12.66331,32.79278],[13.08326,32.87882],[13.91868,32.71196],[15.24563,32.26508],[15.71394,31.37626],[16.61162,31.18218],[18.02109,30.76357],[19.08641,30.26639],[19.57404,30.52582],[20.05335,30.98576],[19.82033,31.75179],[20.13397,32.2382],[20.85452,32.7068],[21.54298,32.8432],[22.89576,32.63858],[23.2368,32.19149],[23.60913,32.18726],[23.9275,32.01667],[24.92114,31.89936],[25.16482,31.56915],[24.80287,31.08929],[24.95762,30.6616],[24.70007,30.04419],[25,29.238655],[25,25.6825],[25,22],[25,20.00304],[23.85,20],[23.83766,19.58047],[19.84926,21.49509],[15.86085,23.40972],[14.8513,22.86295]]]}},{"type":"Feature","id":"LKA","properties":{"name":"Sri Lanka"},"geometry":{"type":"Polygon","coordinates":[[[81.787959,7.523055],[81.637322,6.481775],[81.21802,6.197141],[80.348357,5.96837],[79.872469,6.763463],[79.695167,8.200843],[80.147801,9.824078],[80.838818,9.268427],[81.304319,8.564206],[81.787959,7.523055]]]}},{"type":"Feature","id":"LSO","properties":{"name":"Lesotho"},"geometry":{"type":"Polygon","coordinates":[[[28.978263,-28.955597],[29.325166,-29.257387],[29.018415,-29.743766],[28.8484,-30.070051],[28.291069,-30.226217],[28.107205,-30.545732],[27.749397,-30.645106],[26.999262,-29.875954],[27.532511,-29.242711],[28.074338,-28.851469],[28.5417,-28.647502],[28.978263,-28.955597]]]}},{"type":"Feature","id":"LTU","properties":{"name":"Lithuania"},"geometry":{"type":"Polygon","coordinates":[[[22.731099,54.327537],[22.651052,54.582741],[22.757764,54.856574],[22.315724,55.015299],[21.268449,55.190482],[21.0558,56.031076],[22.201157,56.337802],[23.878264,56.273671],[24.860684,56.372528],[25.000934,56.164531],[25.533047,56.100297],[26.494331,55.615107],[26.588279,55.167176],[25.768433,54.846963],[25.536354,54.282423],[24.450684,53.905702],[23.484128,53.912498],[23.243987,54.220567],[22.731099,54.327537]]]}},{"type":"Feature","id":"LUX","properties":{"name":"Luxembourg"},"geometry":{"type":"Polygon","coordinates":[[[6.043073,50.128052],[6.242751,49.902226],[6.18632,49.463803],[5.897759,49.442667],[5.674052,49.529484],[5.782417,50.090328],[6.043073,50.128052]]]}},{"type":"Feature","id":"LVA","properties":{"name":"Latvia"},"geometry":{"type":"Polygon","coordinates":[[[21.0558,56.031076],[21.090424,56.783873],[21.581866,57.411871],[22.524341,57.753374],[23.318453,57.006236],[24.12073,57.025693],[24.312863,57.793424],[25.164594,57.970157],[25.60281,57.847529],[26.463532,57.476389],[27.288185,57.474528],[27.770016,57.244258],[27.855282,56.759326],[28.176709,56.16913],[27.10246,55.783314],[26.494331,55.615107],[25.533047,56.100297],[25.000934,56.164531],[24.860684,56.372528],[23.878264,56.273671],[22.201157,56.337802],[21.0558,56.031076]]]}},{"type":"Feature","id":"MAR","properties":{"name":"Morocco"},"geometry":{"type":"Polygon","coordinates":[[[-5.193863,35.755182],[-4.591006,35.330712],[-3.640057,35.399855],[-2.604306,35.179093],[-2.169914,35.168396],[-1.792986,34.527919],[-1.733455,33.919713],[-1.388049,32.864015],[-1.124551,32.651522],[-1.307899,32.262889],[-2.616605,32.094346],[-3.06898,31.724498],[-3.647498,31.637294],[-3.690441,30.896952],[-4.859646,30.501188],[-5.242129,30.000443],[-6.060632,29.7317],[-7.059228,29.579228],[-8.674116,28.841289],[-8.66559,27.656426],[-8.817809,27.656426],[-8.817828,27.656426],[-8.794884,27.120696],[-9.413037,27.088476],[-9.735343,26.860945],[-10.189424,26.860945],[-10.551263,26.990808],[-11.392555,26.883424],[-11.71822,26.104092],[-12.030759,26.030866],[-12.500963,24.770116],[-13.89111,23.691009],[-14.221168,22.310163],[-14.630833,21.86094],[-14.750955,21.5006],[-17.002962,21.420734],[-17.020428,21.42231],[-16.973248,21.885745],[-16.589137,22.158234],[-16.261922,22.67934],[-16.326414,23.017768],[-15.982611,23.723358],[-15.426004,24.359134],[-15.089332,24.520261],[-14.824645,25.103533],[-14.800926,25.636265],[-14.43994,26.254418],[-13.773805,26.618892],[-13.139942,27.640148],[-13.121613,27.654148],[-12.618837,28.038186],[-11.688919,28.148644],[-10.900957,28.832142],[-10.399592,29.098586],[-9.564811,29.933574],[-9.814718,31.177736],[-9.434793,32.038096],[-9.300693,32.564679],[-8.657476,33.240245],[-7.654178,33.697065],[-6.912544,34.110476],[-6.244342,35.145865],[-5.929994,35.759988],[-5.193863,35.755182]]]}},{"type":"Feature","id":"MDA","properties":{"name":"Moldova"},"geometry":{"type":"Polygon","coordinates":[[[26.619337,48.220726],[26.857824,48.368211],[27.522537,48.467119],[28.259547,48.155562],[28.670891,48.118149],[29.122698,47.849095],[29.050868,47.510227],[29.415135,47.346645],[29.559674,46.928583],[29.908852,46.674361],[29.83821,46.525326],[30.024659,46.423937],[29.759972,46.349988],[29.170654,46.379262],[29.072107,46.517678],[28.862972,46.437889],[28.933717,46.25883],[28.659987,45.939987],[28.485269,45.596907],[28.233554,45.488283],[28.054443,45.944586],[28.160018,46.371563],[28.12803,46.810476],[27.551166,47.405117],[27.233873,47.826771],[26.924176,48.123264],[26.619337,48.220726]]]}},{"type":"Feature","id":"MDG","properties":{"name":"Madagascar"},"geometry":{"type":"Polygon","coordinates":[[[49.543519,-12.469833],[49.808981,-12.895285],[50.056511,-13.555761],[50.217431,-14.758789],[50.476537,-15.226512],[50.377111,-15.706069],[50.200275,-16.000263],[49.860606,-15.414253],[49.672607,-15.710204],[49.863344,-16.451037],[49.774564,-16.875042],[49.498612,-17.106036],[49.435619,-17.953064],[49.041792,-19.118781],[48.548541,-20.496888],[47.930749,-22.391501],[47.547723,-23.781959],[47.095761,-24.94163],[46.282478,-25.178463],[45.409508,-25.601434],[44.833574,-25.346101],[44.03972,-24.988345],[43.763768,-24.460677],[43.697778,-23.574116],[43.345654,-22.776904],[43.254187,-22.057413],[43.433298,-21.336475],[43.893683,-21.163307],[43.89637,-20.830459],[44.374325,-20.072366],[44.464397,-19.435454],[44.232422,-18.961995],[44.042976,-18.331387],[43.963084,-17.409945],[44.312469,-16.850496],[44.446517,-16.216219],[44.944937,-16.179374],[45.502732,-15.974373],[45.872994,-15.793454],[46.312243,-15.780018],[46.882183,-15.210182],[47.70513,-14.594303],[48.005215,-14.091233],[47.869047,-13.663869],[48.293828,-13.784068],[48.84506,-13.089175],[48.863509,-12.487868],[49.194651,-12.040557],[49.543519,-12.469833]]]}},{"type":"Feature","id":"MEX","properties":{"name":"Mexico"},"geometry":{"type":"Polygon","coordinates":[[[-97.140008,25.869997],[-97.528072,24.992144],[-97.702946,24.272343],[-97.776042,22.93258],[-97.872367,22.444212],[-97.699044,21.898689],[-97.38896,21.411019],[-97.189333,20.635433],[-96.525576,19.890931],[-96.292127,19.320371],[-95.900885,18.828024],[-94.839063,18.562717],[-94.42573,18.144371],[-93.548651,18.423837],[-92.786114,18.524839],[-92.037348,18.704569],[-91.407903,18.876083],[-90.77187,19.28412],[-90.53359,19.867418],[-90.451476,20.707522],[-90.278618,20.999855],[-89.601321,21.261726],[-88.543866,21.493675],[-87.658417,21.458846],[-87.05189,21.543543],[-86.811982,21.331515],[-86.845908,20.849865],[-87.383291,20.255405],[-87.621054,19.646553],[-87.43675,19.472403],[-87.58656,19.04013],[-87.837191,18.259816],[-88.090664,18.516648],[-88.300031,18.499982],[-88.490123,18.486831],[-88.848344,17.883198],[-89.029857,18.001511],[-89.150909,17.955468],[-89.14308,17.808319],[-90.067934,17.819326],[-91.00152,17.817595],[-91.002269,17.254658],[-91.453921,17.252177],[-91.08167,16.918477],[-90.711822,16.687483],[-90.600847,16.470778],[-90.438867,16.41011],[-90.464473,16.069562],[-91.74796,16.066565],[-92.229249,15.251447],[-92.087216,15.064585],[-92.20323,14.830103],[-92.22775,14.538829],[-93.359464,15.61543],[-93.875169,15.940164],[-94.691656,16.200975],[-95.250227,16.128318],[-96.053382,15.752088],[-96.557434,15.653515],[-97.263592,15.917065],[-98.01303,16.107312],[-98.947676,16.566043],[-99.697397,16.706164],[-100.829499,17.171071],[-101.666089,17.649026],[-101.918528,17.91609],[-102.478132,17.975751],[-103.50099,18.292295],[-103.917527,18.748572],[-104.99201,19.316134],[-105.493038,19.946767],[-105.731396,20.434102],[-105.397773,20.531719],[-105.500661,20.816895],[-105.270752,21.076285],[-105.265817,21.422104],[-105.603161,21.871146],[-105.693414,22.26908],[-106.028716,22.773752],[-106.90998,23.767774],[-107.915449,24.548915],[-108.401905,25.172314],[-109.260199,25.580609],[-109.444089,25.824884],[-109.291644,26.442934],[-109.801458,26.676176],[-110.391732,27.162115],[-110.641019,27.859876],[-111.178919,27.941241],[-111.759607,28.467953],[-112.228235,28.954409],[-112.271824,29.266844],[-112.809594,30.021114],[-113.163811,30.786881],[-113.148669,31.170966],[-113.871881,31.567608],[-114.205737,31.524045],[-114.776451,31.799532],[-114.9367,31.393485],[-114.771232,30.913617],[-114.673899,30.162681],[-114.330974,29.750432],[-113.588875,29.061611],[-113.424053,28.826174],[-113.271969,28.754783],[-113.140039,28.411289],[-112.962298,28.42519],[-112.761587,27.780217],[-112.457911,27.525814],[-112.244952,27.171727],[-111.616489,26.662817],[-111.284675,25.73259],[-110.987819,25.294606],[-110.710007,24.826004],[-110.655049,24.298595],[-110.172856,24.265548],[-109.771847,23.811183],[-109.409104,23.364672],[-109.433392,23.185588],[-109.854219,22.818272],[-110.031392,22.823078],[-110.295071,23.430973],[-110.949501,24.000964],[-111.670568,24.484423],[-112.182036,24.738413],[-112.148989,25.470125],[-112.300711,26.012004],[-112.777297,26.32196],[-113.464671,26.768186],[-113.59673,26.63946],[-113.848937,26.900064],[-114.465747,27.14209],[-115.055142,27.722727],[-114.982253,27.7982],[-114.570366,27.741485],[-114.199329,28.115003],[-114.162018,28.566112],[-114.931842,29.279479],[-115.518654,29.556362],[-115.887365,30.180794],[-116.25835,30.836464],[-116.721526,31.635744],[-117.12776,32.53534],[-115.99135,32.61239],[-114.72139,32.72083],[-114.815,32.52528],[-113.30498,32.03914],[-111.02361,31.33472],[-109.035,31.34194],[-108.24194,31.34222],[-108.24,31.754854],[-106.50759,31.75452],[-106.1429,31.39995],[-105.63159,31.08383],[-105.03737,30.64402],[-104.70575,30.12173],[-104.45697,29.57196],[-103.94,29.27],[-103.11,28.97],[-102.48,29.76],[-101.6624,29.7793],[-100.9576,29.38071],[-100.45584,28.69612],[-100.11,28.11],[-99.52,27.54],[-99.3,26.84],[-99.02,26.37],[-98.24,26.06],[-97.53,25.84],[-97.140008,25.869997]]]}},{"type":"Feature","id":"MKD","properties":{"name":"Macedonia"},"geometry":{"type":"Polygon","coordinates":[[[20.59023,41.85541],[20.71731,41.84711],[20.76216,42.05186],[21.3527,42.2068],[21.576636,42.245224],[21.91708,42.30364],[22.380526,42.32026],[22.881374,41.999297],[22.952377,41.337994],[22.76177,41.3048],[22.597308,41.130487],[22.055378,41.149866],[21.674161,40.931275],[21.02004,40.842727],[20.60518,41.08622],[20.46315,41.51509],[20.59023,41.85541]]]}},{"type":"Feature","id":"MLI","properties":{"name":"Mali"},"geometry":{"type":"Polygon","coordinates":[[[-12.17075,14.616834],[-11.834208,14.799097],[-11.666078,15.388208],[-11.349095,15.411256],[-10.650791,15.132746],[-10.086846,15.330486],[-9.700255,15.264107],[-9.550238,15.486497],[-5.537744,15.50169],[-5.315277,16.201854],[-5.488523,16.325102],[-5.971129,20.640833],[-6.453787,24.956591],[-4.923337,24.974574],[-1.550055,22.792666],[1.823228,20.610809],[2.060991,20.142233],[2.683588,19.85623],[3.146661,19.693579],[3.158133,19.057364],[4.267419,19.155265],[4.27021,16.852227],[3.723422,16.184284],[3.638259,15.56812],[2.749993,15.409525],[1.385528,15.323561],[1.015783,14.968182],[0.374892,14.928908],[-0.266257,14.924309],[-0.515854,15.116158],[-1.066363,14.973815],[-2.001035,14.559008],[-2.191825,14.246418],[-2.967694,13.79815],[-3.103707,13.541267],[-3.522803,13.337662],[-4.006391,13.472485],[-4.280405,13.228444],[-4.427166,12.542646],[-5.220942,11.713859],[-5.197843,11.375146],[-5.470565,10.95127],[-5.404342,10.370737],[-5.816926,10.222555],[-6.050452,10.096361],[-6.205223,10.524061],[-6.493965,10.411303],[-6.666461,10.430811],[-6.850507,10.138994],[-7.622759,10.147236],[-7.89959,10.297382],[-8.029944,10.206535],[-8.335377,10.494812],[-8.282357,10.792597],[-8.407311,10.909257],[-8.620321,10.810891],[-8.581305,11.136246],[-8.376305,11.393646],[-8.786099,11.812561],[-8.905265,12.088358],[-9.127474,12.30806],[-9.327616,12.334286],[-9.567912,12.194243],[-9.890993,12.060479],[-10.165214,11.844084],[-10.593224,11.923975],[-10.87083,12.177887],[-11.036556,12.211245],[-11.297574,12.077971],[-11.456169,12.076834],[-11.513943,12.442988],[-11.467899,12.754519],[-11.553398,13.141214],[-11.927716,13.422075],[-12.124887,13.994727],[-12.17075,14.616834]]]}},{"type":"Feature","id":"MLT","properties":{"name":"Malta"},"geometry":{"type":"MultiPolygon","coordinates":[[[[14.566171,35.852721],[14.532684,35.820191],[14.436463,35.821664],[14.352334,35.872281],[14.3513,35.978399],[14.448348,35.957444],[14.537025,35.886285],[14.566171,35.852721]]],[[[14.313473,36.027569],[14.253632,36.012143],[14.194204,36.042245],[14.180354,36.060383],[14.263243,36.075809],[14.303758,36.062295],[14.320914,36.03625],[14.313473,36.027569]]]]}},{"type":"Feature","id":"MMR","properties":{"name":"Myanmar"},"geometry":{"type":"Polygon","coordinates":[[[99.543309,20.186598],[98.959676,19.752981],[98.253724,19.708203],[97.797783,18.62708],[97.375896,18.445438],[97.859123,17.567946],[98.493761,16.837836],[98.903348,16.177824],[98.537376,15.308497],[98.192074,15.123703],[98.430819,14.622028],[99.097755,13.827503],[99.212012,13.269294],[99.196354,12.804748],[99.587286,11.892763],[99.038121,10.960546],[98.553551,9.93296],[98.457174,10.675266],[98.764546,11.441292],[98.428339,12.032987],[98.509574,13.122378],[98.103604,13.64046],[97.777732,14.837286],[97.597072,16.100568],[97.16454,16.928734],[96.505769,16.427241],[95.369352,15.71439],[94.808405,15.803454],[94.188804,16.037936],[94.533486,17.27724],[94.324817,18.213514],[93.540988,19.366493],[93.663255,19.726962],[93.078278,19.855145],[92.368554,20.670883],[92.303234,21.475485],[92.652257,21.324048],[92.672721,22.041239],[93.166128,22.27846],[93.060294,22.703111],[93.286327,23.043658],[93.325188,24.078556],[94.106742,23.850741],[94.552658,24.675238],[94.603249,25.162495],[95.155153,26.001307],[95.124768,26.573572],[96.419366,27.264589],[97.133999,27.083774],[97.051989,27.699059],[97.402561,27.882536],[97.327114,28.261583],[97.911988,28.335945],[98.246231,27.747221],[98.68269,27.508812],[98.712094,26.743536],[98.671838,25.918703],[97.724609,25.083637],[97.60472,23.897405],[98.660262,24.063286],[98.898749,23.142722],[99.531992,22.949039],[99.240899,22.118314],[99.983489,21.742937],[100.416538,21.558839],[101.150033,21.849984],[101.180005,21.436573],[100.329101,20.786122],[100.115988,20.41785],[99.543309,20.186598]]]}},{"type":"Feature","id":"MNE","properties":{"name":"Montenegro"},"geometry":{"type":"Polygon","coordinates":[[[19.801613,42.500093],[19.738051,42.688247],[19.30449,42.19574],[19.37177,41.87755],[19.16246,41.95502],[18.88214,42.28151],[18.45,42.48],[18.56,42.65],[18.70648,43.20011],[19.03165,43.43253],[19.21852,43.52384],[19.48389,43.35229],[19.63,43.21378],[19.95857,43.10604],[20.3398,42.89852],[20.25758,42.81275],[20.0707,42.58863],[19.801613,42.500093]]]}},{"type":"Feature","id":"MNG","properties":{"name":"Mongolia"},"geometry":{"type":"Polygon","coordinates":[[[87.751264,49.297198],[88.805567,49.470521],[90.713667,50.331812],[92.234712,50.802171],[93.104219,50.49529],[94.147566,50.480537],[94.815949,50.013433],[95.814028,49.977467],[97.259728,49.726061],[98.231762,50.422401],[97.82574,51.010995],[98.861491,52.047366],[99.981732,51.634006],[100.88948,51.516856],[102.065223,51.259921],[102.255909,50.510561],[103.676545,50.089966],[104.621552,50.275329],[105.886591,50.406019],[106.888804,50.274296],[107.868176,49.793705],[108.475167,49.282548],[109.402449,49.292961],[110.662011,49.130128],[111.581231,49.377968],[112.89774,49.543565],[114.362456,50.248303],[114.96211,50.140247],[115.485695,49.805177],[116.678801,49.888531],[116.191802,49.134598],[115.485282,48.135383],[115.742837,47.726545],[116.308953,47.85341],[117.295507,47.697709],[118.064143,48.06673],[118.866574,47.74706],[119.772824,47.048059],[119.66327,46.69268],[118.874326,46.805412],[117.421701,46.672733],[116.717868,46.388202],[115.985096,45.727235],[114.460332,45.339817],[113.463907,44.808893],[112.436062,45.011646],[111.873306,45.102079],[111.348377,44.457442],[111.667737,44.073176],[111.829588,43.743118],[111.129682,43.406834],[110.412103,42.871234],[109.243596,42.519446],[107.744773,42.481516],[106.129316,42.134328],[104.964994,41.59741],[104.522282,41.908347],[103.312278,41.907468],[101.83304,42.514873],[100.845866,42.663804],[99.515817,42.524691],[97.451757,42.74889],[96.349396,42.725635],[95.762455,43.319449],[95.306875,44.241331],[94.688929,44.352332],[93.480734,44.975472],[92.133891,45.115076],[90.94554,45.286073],[90.585768,45.719716],[90.970809,46.888146],[90.280826,47.693549],[88.854298,48.069082],[88.013832,48.599463],[87.751264,49.297198]]]}},{"type":"Feature","id":"MOZ","properties":{"name":"Mozambique"},"geometry":{"type":"Polygon","coordinates":[[[34.559989,-11.52002],[35.312398,-11.439146],[36.514082,-11.720938],[36.775151,-11.594537],[37.471284,-11.568751],[37.827645,-11.268769],[38.427557,-11.285202],[39.52103,-10.896854],[40.316589,-10.317096],[40.478387,-10.765441],[40.437253,-11.761711],[40.560811,-12.639177],[40.59962,-14.201975],[40.775475,-14.691764],[40.477251,-15.406294],[40.089264,-16.100774],[39.452559,-16.720891],[38.538351,-17.101023],[37.411133,-17.586368],[36.281279,-18.659688],[35.896497,-18.84226],[35.1984,-19.552811],[34.786383,-19.784012],[34.701893,-20.497043],[35.176127,-21.254361],[35.373428,-21.840837],[35.385848,-22.14],[35.562546,-22.09],[35.533935,-23.070788],[35.371774,-23.535359],[35.60747,-23.706563],[35.458746,-24.12261],[35.040735,-24.478351],[34.215824,-24.816314],[33.01321,-25.357573],[32.574632,-25.727318],[32.660363,-26.148584],[32.915955,-26.215867],[32.83012,-26.742192],[32.071665,-26.73382],[31.985779,-26.29178],[31.837778,-25.843332],[31.752408,-25.484284],[31.930589,-24.369417],[31.670398,-23.658969],[31.191409,-22.25151],[32.244988,-21.116489],[32.508693,-20.395292],[32.659743,-20.30429],[32.772708,-19.715592],[32.611994,-19.419383],[32.654886,-18.67209],[32.849861,-17.979057],[32.847639,-16.713398],[32.328239,-16.392074],[31.852041,-16.319417],[31.636498,-16.07199],[31.173064,-15.860944],[30.338955,-15.880839],[30.274256,-15.507787],[30.179481,-14.796099],[33.214025,-13.97186],[33.7897,-14.451831],[34.064825,-14.35995],[34.459633,-14.61301],[34.517666,-15.013709],[34.307291,-15.478641],[34.381292,-16.18356],[35.03381,-16.8013],[35.339063,-16.10744],[35.771905,-15.896859],[35.686845,-14.611046],[35.267956,-13.887834],[34.907151,-13.565425],[34.559989,-13.579998],[34.280006,-12.280025],[34.559989,-11.52002]]]}},{"type":"Feature","id":"MRT","properties":{"name":"Mauritania"},"geometry":{"type":"Polygon","coordinates":[[[-12.17075,14.616834],[-12.830658,15.303692],[-13.435738,16.039383],[-14.099521,16.304302],[-14.577348,16.598264],[-15.135737,16.587282],[-15.623666,16.369337],[-16.12069,16.455663],[-16.463098,16.135036],[-16.549708,16.673892],[-16.270552,17.166963],[-16.146347,18.108482],[-16.256883,19.096716],[-16.377651,19.593817],[-16.277838,20.092521],[-16.536324,20.567866],[-17.063423,20.999752],[-16.845194,21.333323],[-12.929102,21.327071],[-13.118754,22.77122],[-12.874222,23.284832],[-11.937224,23.374594],[-11.969419,25.933353],[-8.687294,25.881056],[-8.6844,27.395744],[-4.923337,24.974574],[-6.453787,24.956591],[-5.971129,20.640833],[-5.488523,16.325102],[-5.315277,16.201854],[-5.537744,15.50169],[-9.550238,15.486497],[-9.700255,15.264107],[-10.086846,15.330486],[-10.650791,15.132746],[-11.349095,15.411256],[-11.666078,15.388208],[-11.834208,14.799097],[-12.17075,14.616834]]]}},{"type":"Feature","id":"MWI","properties":{"name":"Malawi"},"geometry":{"type":"Polygon","coordinates":[[[34.559989,-11.52002],[34.280006,-12.280025],[34.559989,-13.579998],[34.907151,-13.565425],[35.267956,-13.887834],[35.686845,-14.611046],[35.771905,-15.896859],[35.339063,-16.10744],[35.03381,-16.8013],[34.381292,-16.18356],[34.307291,-15.478641],[34.517666,-15.013709],[34.459633,-14.61301],[34.064825,-14.35995],[33.7897,-14.451831],[33.214025,-13.97186],[32.688165,-13.712858],[32.991764,-12.783871],[33.306422,-12.435778],[33.114289,-11.607198],[33.31531,-10.79655],[33.485688,-10.525559],[33.231388,-9.676722],[32.759375,-9.230599],[33.739729,-9.417151],[33.940838,-9.693674],[34.280006,-10.16],[34.559989,-11.52002]]]}},{"type":"Feature","id":"MYS","properties":{"name":"Malaysia"},"geometry":{"type":"MultiPolygon","coordinates":[[[[101.075516,6.204867],[101.154219,5.691384],[101.814282,5.810808],[102.141187,6.221636],[102.371147,6.128205],[102.961705,5.524495],[103.381215,4.855001],[103.438575,4.181606],[103.332122,3.726698],[103.429429,3.382869],[103.502448,2.791019],[103.854674,2.515454],[104.247932,1.631141],[104.228811,1.293048],[103.519707,1.226334],[102.573615,1.967115],[101.390638,2.760814],[101.27354,3.270292],[100.695435,3.93914],[100.557408,4.76728],[100.196706,5.312493],[100.30626,6.040562],[100.085757,6.464489],[100.259596,6.642825],[101.075516,6.204867]]],[[[118.618321,4.478202],[117.882035,4.137551],[117.015214,4.306094],[115.865517,4.306559],[115.519078,3.169238],[115.134037,2.821482],[114.621355,1.430688],[113.80585,1.217549],[112.859809,1.49779],[112.380252,1.410121],[111.797548,0.904441],[111.159138,0.976478],[110.514061,0.773131],[109.830227,1.338136],[109.66326,2.006467],[110.396135,1.663775],[111.168853,1.850637],[111.370081,2.697303],[111.796928,2.885897],[112.995615,3.102395],[113.712935,3.893509],[114.204017,4.525874],[114.659596,4.007637],[114.869557,4.348314],[115.347461,4.316636],[115.4057,4.955228],[115.45071,5.44773],[116.220741,6.143191],[116.725103,6.924771],[117.129626,6.928053],[117.643393,6.422166],[117.689075,5.98749],[118.347691,5.708696],[119.181904,5.407836],[119.110694,5.016128],[118.439727,4.966519],[118.618321,4.478202]]]]}},{"type":"Feature","id":"NAM","properties":{"name":"Namibia"},"geometry":{"type":"Polygon","coordinates":[[[16.344977,-28.576705],[15.601818,-27.821247],[15.210472,-27.090956],[14.989711,-26.117372],[14.743214,-25.39292],[14.408144,-23.853014],[14.385717,-22.656653],[14.257714,-22.111208],[13.868642,-21.699037],[13.352498,-20.872834],[12.826845,-19.673166],[12.608564,-19.045349],[11.794919,-18.069129],[11.734199,-17.301889],[12.215461,-17.111668],[12.814081,-16.941343],[13.462362,-16.971212],[14.058501,-17.423381],[14.209707,-17.353101],[18.263309,-17.309951],[18.956187,-17.789095],[21.377176,-17.930636],[23.215048,-17.523116],[24.033862,-17.295843],[24.682349,-17.353411],[25.07695,-17.578823],[25.084443,-17.661816],[24.520705,-17.887125],[24.217365,-17.889347],[23.579006,-18.281261],[23.196858,-17.869038],[21.65504,-18.219146],[20.910641,-18.252219],[20.881134,-21.814327],[19.895458,-21.849157],[19.895768,-24.76779],[19.894734,-28.461105],[19.002127,-28.972443],[18.464899,-29.045462],[17.836152,-28.856378],[17.387497,-28.783514],[17.218929,-28.355943],[16.824017,-28.082162],[16.344977,-28.576705]]]}},{"type":"Feature","id":"NCL","properties":{"name":"New Caledonia"},"geometry":{"type":"Polygon","coordinates":[[[165.77999,-21.080005],[166.599991,-21.700019],[167.120011,-22.159991],[166.740035,-22.399976],[166.189732,-22.129708],[165.474375,-21.679607],[164.829815,-21.14982],[164.167995,-20.444747],[164.029606,-20.105646],[164.459967,-20.120012],[165.020036,-20.459991],[165.460009,-20.800022],[165.77999,-21.080005]]]}},{"type":"Feature","id":"NER","properties":{"name":"Niger"},"geometry":{"type":"Polygon","coordinates":[[[2.154474,11.94015],[2.177108,12.625018],[1.024103,12.851826],[0.993046,13.33575],[0.429928,13.988733],[0.295646,14.444235],[0.374892,14.928908],[1.015783,14.968182],[1.385528,15.323561],[2.749993,15.409525],[3.638259,15.56812],[3.723422,16.184284],[4.27021,16.852227],[4.267419,19.155265],[5.677566,19.601207],[8.572893,21.565661],[11.999506,23.471668],[13.581425,23.040506],[14.143871,22.491289],[14.8513,22.86295],[15.096888,21.308519],[15.471077,21.048457],[15.487148,20.730415],[15.903247,20.387619],[15.685741,19.95718],[15.300441,17.92795],[15.247731,16.627306],[13.972202,15.684366],[13.540394,14.367134],[13.956699,13.996691],[13.954477,13.353449],[14.595781,13.330427],[14.495787,12.859396],[14.213531,12.802035],[14.181336,12.483657],[13.995353,12.461565],[13.318702,13.556356],[13.083987,13.596147],[12.302071,13.037189],[11.527803,13.32898],[10.989593,13.387323],[10.701032,13.246918],[10.114814,13.277252],[9.524928,12.851102],[9.014933,12.826659],[7.804671,13.343527],[7.330747,13.098038],[6.820442,13.115091],[6.445426,13.492768],[5.443058,13.865924],[4.368344,13.747482],[4.107946,13.531216],[3.967283,12.956109],[3.680634,12.552903],[3.61118,11.660167],[2.848643,12.235636],[2.490164,12.233052],[2.154474,11.94015]]]}},{"type":"Feature","id":"NGA","properties":{"name":"Nigeria"},"geometry":{"type":"Polygon","coordinates":[[[8.500288,4.771983],[7.462108,4.412108],[7.082596,4.464689],[6.698072,4.240594],[5.898173,4.262453],[5.362805,4.887971],[5.033574,5.611802],[4.325607,6.270651],[3.57418,6.2583],[2.691702,6.258817],[2.749063,7.870734],[2.723793,8.506845],[2.912308,9.137608],[3.220352,9.444153],[3.705438,10.06321],[3.60007,10.332186],[3.797112,10.734746],[3.572216,11.327939],[3.61118,11.660167],[3.680634,12.552903],[3.967283,12.956109],[4.107946,13.531216],[4.368344,13.747482],[5.443058,13.865924],[6.445426,13.492768],[6.820442,13.115091],[7.330747,13.098038],[7.804671,13.343527],[9.014933,12.826659],[9.524928,12.851102],[10.114814,13.277252],[10.701032,13.246918],[10.989593,13.387323],[11.527803,13.32898],[12.302071,13.037189],[13.083987,13.596147],[13.318702,13.556356],[13.995353,12.461565],[14.181336,12.483657],[14.577178,12.085361],[14.468192,11.904752],[14.415379,11.572369],[13.57295,10.798566],[13.308676,10.160362],[13.1676,9.640626],[12.955468,9.417772],[12.753672,8.717763],[12.218872,8.305824],[12.063946,7.799808],[11.839309,7.397042],[11.745774,6.981383],[11.058788,6.644427],[10.497375,7.055358],[10.118277,7.03877],[9.522706,6.453482],[9.233163,6.444491],[8.757533,5.479666],[8.500288,4.771983]]]}},{"type":"Feature","id":"NIC","properties":{"name":"Nicaragua"},"geometry":{"type":"Polygon","coordinates":[[[-85.71254,11.088445],[-86.058488,11.403439],[-86.52585,11.806877],[-86.745992,12.143962],[-87.167516,12.458258],[-87.668493,12.90991],[-87.557467,13.064552],[-87.392386,12.914018],[-87.316654,12.984686],[-87.005769,13.025794],[-86.880557,13.254204],[-86.733822,13.263093],[-86.755087,13.754845],[-86.520708,13.778487],[-86.312142,13.771356],[-86.096264,14.038187],[-85.801295,13.836055],[-85.698665,13.960078],[-85.514413,14.079012],[-85.165365,14.35437],[-85.148751,14.560197],[-85.052787,14.551541],[-84.924501,14.790493],[-84.820037,14.819587],[-84.649582,14.666805],[-84.449336,14.621614],[-84.228342,14.748764],[-83.975721,14.749436],[-83.628585,14.880074],[-83.489989,15.016267],[-83.147219,14.995829],[-83.233234,14.899866],[-83.284162,14.676624],[-83.182126,14.310703],[-83.4125,13.970078],[-83.519832,13.567699],[-83.552207,13.127054],[-83.498515,12.869292],[-83.473323,12.419087],[-83.626104,12.32085],[-83.719613,11.893124],[-83.650858,11.629032],[-83.85547,11.373311],[-83.808936,11.103044],[-83.655612,10.938764],[-83.895054,10.726839],[-84.190179,10.79345],[-84.355931,10.999226],[-84.673069,11.082657],[-84.903003,10.952303],[-85.561852,11.217119],[-85.71254,11.088445]]]}},{"type":"Feature","id":"NLD","properties":{"name":"Netherlands"},"geometry":{"type":"Polygon","coordinates":[[[6.074183,53.510403],[6.90514,53.482162],[7.092053,53.144043],[6.84287,52.22844],[6.589397,51.852029],[5.988658,51.851616],[6.156658,50.803721],[5.606976,51.037298],[4.973991,51.475024],[4.047071,51.267259],[3.314971,51.345755],[3.830289,51.620545],[4.705997,53.091798],[6.074183,53.510403]]]}},{"type":"Feature","id":"NOR","properties":{"name":"Norway"},"geometry":{"type":"MultiPolygon","coordinates":[[[[28.165547,71.185474],[31.293418,70.453788],[30.005435,70.186259],[31.101079,69.55808],[29.399581,69.156916],[28.59193,69.064777],[29.015573,69.766491],[27.732292,70.164193],[26.179622,69.825299],[25.689213,69.092114],[24.735679,68.649557],[23.66205,68.891247],[22.356238,68.841741],[21.244936,69.370443],[20.645593,69.106247],[20.025269,69.065139],[19.87856,68.407194],[17.993868,68.567391],[17.729182,68.010552],[16.768879,68.013937],[16.108712,67.302456],[15.108411,66.193867],[13.55569,64.787028],[13.919905,64.445421],[13.571916,64.049114],[12.579935,64.066219],[11.930569,63.128318],[11.992064,61.800362],[12.631147,61.293572],[12.300366,60.117933],[11.468272,59.432393],[11.027369,58.856149],[10.356557,59.469807],[8.382,58.313288],[7.048748,58.078884],[5.665835,58.588155],[5.308234,59.663232],[4.992078,61.970998],[5.9129,62.614473],[8.553411,63.454008],[10.527709,64.486038],[12.358347,65.879726],[14.761146,67.810642],[16.435927,68.563205],[19.184028,69.817444],[21.378416,70.255169],[23.023742,70.202072],[24.546543,71.030497],[26.37005,70.986262],[28.165547,71.185474]]],[[[24.72412,77.85385],[22.49032,77.44493],[20.72601,77.67704],[21.41611,77.93504],[20.8119,78.25463],[22.88426,78.45494],[23.28134,78.07954],[24.72412,77.85385]]],[[[18.25183,79.70175],[21.54383,78.95611],[19.02737,78.5626],[18.47172,77.82669],[17.59441,77.63796],[17.1182,76.80941],[15.91315,76.77045],[13.76259,77.38035],[14.66956,77.73565],[13.1706,78.02493],[11.22231,78.8693],[10.44453,79.65239],[13.17077,80.01046],[13.71852,79.66039],[15.14282,79.67431],[15.52255,80.01608],[16.99085,80.05086],[18.25183,79.70175]]],[[[25.447625,80.40734],[27.407506,80.056406],[25.924651,79.517834],[23.024466,79.400012],[20.075188,79.566823],[19.897266,79.842362],[18.462264,79.85988],[17.368015,80.318896],[20.455992,80.598156],[21.907945,80.357679],[22.919253,80.657144],[25.447625,80.40734]]]]}},{"type":"Feature","id":"NPL","properties":{"name":"Nepal"},"geometry":{"type":"Polygon","coordinates":[[[88.120441,27.876542],[88.043133,27.445819],[88.174804,26.810405],[88.060238,26.414615],[87.227472,26.397898],[86.024393,26.630985],[85.251779,26.726198],[84.675018,27.234901],[83.304249,27.364506],[81.999987,27.925479],[81.057203,28.416095],[80.088425,28.79447],[80.476721,29.729865],[81.111256,30.183481],[81.525804,30.422717],[82.327513,30.115268],[83.337115,29.463732],[83.898993,29.320226],[84.23458,28.839894],[85.011638,28.642774],[85.82332,28.203576],[86.954517,27.974262],[88.120441,27.876542]]]}},{"type":"Feature","id":"NZL","properties":{"name":"New Zealand"},"geometry":{"type":"MultiPolygon","coordinates":[[[[173.020375,-40.919052],[173.247234,-41.331999],[173.958405,-40.926701],[174.247587,-41.349155],[174.248517,-41.770008],[173.876447,-42.233184],[173.22274,-42.970038],[172.711246,-43.372288],[173.080113,-43.853344],[172.308584,-43.865694],[171.452925,-44.242519],[171.185138,-44.897104],[170.616697,-45.908929],[169.831422,-46.355775],[169.332331,-46.641235],[168.411354,-46.619945],[167.763745,-46.290197],[166.676886,-46.219917],[166.509144,-45.852705],[167.046424,-45.110941],[168.303763,-44.123973],[168.949409,-43.935819],[169.667815,-43.555326],[170.52492,-43.031688],[171.12509,-42.512754],[171.569714,-41.767424],[171.948709,-41.514417],[172.097227,-40.956104],[172.79858,-40.493962],[173.020375,-40.919052]]],[[[174.612009,-36.156397],[175.336616,-37.209098],[175.357596,-36.526194],[175.808887,-36.798942],[175.95849,-37.555382],[176.763195,-37.881253],[177.438813,-37.961248],[178.010354,-37.579825],[178.517094,-37.695373],[178.274731,-38.582813],[177.97046,-39.166343],[177.206993,-39.145776],[176.939981,-39.449736],[177.032946,-39.879943],[176.885824,-40.065978],[176.508017,-40.604808],[176.01244,-41.289624],[175.239567,-41.688308],[175.067898,-41.425895],[174.650973,-41.281821],[175.22763,-40.459236],[174.900157,-39.908933],[173.824047,-39.508854],[173.852262,-39.146602],[174.574802,-38.797683],[174.743474,-38.027808],[174.697017,-37.381129],[174.292028,-36.711092],[174.319004,-36.534824],[173.840997,-36.121981],[173.054171,-35.237125],[172.636005,-34.529107],[173.007042,-34.450662],[173.551298,-35.006183],[174.32939,-35.265496],[174.612009,-36.156397]]]]}},{"type":"Feature","id":"OMN","properties":{"name":"Oman"},"geometry":{"type":"MultiPolygon","coordinates":[[[[58.861141,21.114035],[58.487986,20.428986],[58.034318,20.481437],[57.826373,20.243002],[57.665762,19.736005],[57.7887,19.06757],[57.694391,18.94471],[57.234264,18.947991],[56.609651,18.574267],[56.512189,18.087113],[56.283521,17.876067],[55.661492,17.884128],[55.269939,17.632309],[55.2749,17.228354],[54.791002,16.950697],[54.239253,17.044981],[53.570508,16.707663],[53.108573,16.651051],[52.782184,17.349742],[52.00001,19.000003],[54.999982,19.999994],[55.666659,22.000001],[55.208341,22.70833],[55.234489,23.110993],[55.525841,23.524869],[55.528632,23.933604],[55.981214,24.130543],[55.804119,24.269604],[55.886233,24.920831],[56.396847,24.924732],[56.84514,24.241673],[57.403453,23.878594],[58.136948,23.747931],[58.729211,23.565668],[59.180502,22.992395],[59.450098,22.660271],[59.80806,22.533612],[59.806148,22.310525],[59.442191,21.714541],[59.282408,21.433886],[58.861141,21.114035]]],[[[56.391421,25.895991],[56.261042,25.714606],[56.070821,26.055464],[56.362017,26.395934],[56.485679,26.309118],[56.391421,25.895991]]]]}},{"type":"Feature","id":"PAK","properties":{"name":"Pakistan"},"geometry":{"type":"Polygon","coordinates":[[[75.158028,37.133031],[75.896897,36.666806],[76.192848,35.898403],[77.837451,35.49401],[76.871722,34.653544],[75.757061,34.504923],[74.240203,34.748887],[73.749948,34.317699],[74.104294,33.441473],[74.451559,32.7649],[75.258642,32.271105],[74.405929,31.692639],[74.42138,30.979815],[73.450638,29.976413],[72.823752,28.961592],[71.777666,27.91318],[70.616496,27.989196],[69.514393,26.940966],[70.168927,26.491872],[70.282873,25.722229],[70.844699,25.215102],[71.04324,24.356524],[68.842599,24.359134],[68.176645,23.691965],[67.443667,23.944844],[67.145442,24.663611],[66.372828,25.425141],[64.530408,25.237039],[62.905701,25.218409],[61.497363,25.078237],[61.874187,26.239975],[63.316632,26.756532],[63.233898,27.217047],[62.755426,27.378923],[62.72783,28.259645],[61.771868,28.699334],[61.369309,29.303276],[60.874248,29.829239],[62.549857,29.318572],[63.550261,29.468331],[64.148002,29.340819],[64.350419,29.560031],[65.046862,29.472181],[66.346473,29.887943],[66.381458,30.738899],[66.938891,31.304911],[67.683394,31.303154],[67.792689,31.58293],[68.556932,31.71331],[68.926677,31.620189],[69.317764,31.901412],[69.262522,32.501944],[69.687147,33.105499],[70.323594,33.358533],[69.930543,34.02012],[70.881803,33.988856],[71.156773,34.348911],[71.115019,34.733126],[71.613076,35.153203],[71.498768,35.650563],[71.262348,36.074388],[71.846292,36.509942],[72.920025,36.720007],[74.067552,36.836176],[74.575893,37.020841],[75.158028,37.133031]]]}},{"type":"Feature","id":"PAN","properties":{"name":"Panama"},"geometry":{"type":"Polygon","coordinates":[[[-77.881571,7.223771],[-78.214936,7.512255],[-78.429161,8.052041],[-78.182096,8.319182],[-78.435465,8.387705],[-78.622121,8.718124],[-79.120307,8.996092],[-79.557877,8.932375],[-79.760578,8.584515],[-80.164481,8.333316],[-80.382659,8.298409],[-80.480689,8.090308],[-80.00369,7.547524],[-80.276671,7.419754],[-80.421158,7.271572],[-80.886401,7.220541],[-81.059543,7.817921],[-81.189716,7.647906],[-81.519515,7.70661],[-81.721311,8.108963],[-82.131441,8.175393],[-82.390934,8.292362],[-82.820081,8.290864],[-82.850958,8.073823],[-82.965783,8.225028],[-82.913176,8.423517],[-82.829771,8.626295],[-82.868657,8.807266],[-82.719183,8.925709],[-82.927155,9.07433],[-82.932891,9.476812],[-82.546196,9.566135],[-82.187123,9.207449],[-82.207586,8.995575],[-81.808567,8.950617],[-81.714154,9.031955],[-81.439287,8.786234],[-80.947302,8.858504],[-80.521901,9.111072],[-79.9146,9.312765],[-79.573303,9.61161],[-79.021192,9.552931],[-79.05845,9.454565],[-78.500888,9.420459],[-78.055928,9.24773],[-77.729514,8.946844],[-77.353361,8.670505],[-77.474723,8.524286],[-77.242566,7.935278],[-77.431108,7.638061],[-77.753414,7.70984],[-77.881571,7.223771]]]}},{"type":"Feature","id":"PER","properties":{"name":"Peru"},"geometry":{"type":"Polygon","coordinates":[[[-69.590424,-17.580012],[-69.858444,-18.092694],[-70.372572,-18.347975],[-71.37525,-17.773799],[-71.462041,-17.363488],[-73.44453,-16.359363],[-75.237883,-15.265683],[-76.009205,-14.649286],[-76.423469,-13.823187],[-76.259242,-13.535039],[-77.106192,-12.222716],[-78.092153,-10.377712],[-79.036953,-8.386568],[-79.44592,-7.930833],[-79.760578,-7.194341],[-80.537482,-6.541668],[-81.249996,-6.136834],[-80.926347,-5.690557],[-81.410943,-4.736765],[-81.09967,-4.036394],[-80.302561,-3.404856],[-80.184015,-3.821162],[-80.469295,-4.059287],[-80.442242,-4.425724],[-80.028908,-4.346091],[-79.624979,-4.454198],[-79.205289,-4.959129],[-78.639897,-4.547784],[-78.450684,-3.873097],[-77.837905,-3.003021],[-76.635394,-2.608678],[-75.544996,-1.56161],[-75.233723,-0.911417],[-75.373223,-0.152032],[-75.106625,-0.057205],[-74.441601,-0.53082],[-74.122395,-1.002833],[-73.659504,-1.260491],[-73.070392,-2.308954],[-72.325787,-2.434218],[-71.774761,-2.16979],[-71.413646,-2.342802],[-70.813476,-2.256865],[-70.047709,-2.725156],[-70.692682,-3.742872],[-70.394044,-3.766591],[-69.893635,-4.298187],[-70.794769,-4.251265],[-70.928843,-4.401591],[-71.748406,-4.593983],[-72.891928,-5.274561],[-72.964507,-5.741251],[-73.219711,-6.089189],[-73.120027,-6.629931],[-73.724487,-6.918595],[-73.723401,-7.340999],[-73.987235,-7.52383],[-73.571059,-8.424447],[-73.015383,-9.032833],[-73.226713,-9.462213],[-72.563033,-9.520194],[-72.184891,-10.053598],[-71.302412,-10.079436],[-70.481894,-9.490118],[-70.548686,-11.009147],[-70.093752,-11.123972],[-69.529678,-10.951734],[-68.66508,-12.5613],[-68.88008,-12.899729],[-68.929224,-13.602684],[-68.948887,-14.453639],[-69.339535,-14.953195],[-69.160347,-15.323974],[-69.389764,-15.660129],[-68.959635,-16.500698],[-69.590424,-17.580012]]]}},{"type":"Feature","id":"PHL","properties":{"name":"Philippines"},"geometry":{"type":"MultiPolygon","coordinates":[[[[126.376814,8.414706],[126.478513,7.750354],[126.537424,7.189381],[126.196773,6.274294],[125.831421,7.293715],[125.363852,6.786485],[125.683161,6.049657],[125.396512,5.581003],[124.219788,6.161355],[123.93872,6.885136],[124.243662,7.36061],[123.610212,7.833527],[123.296071,7.418876],[122.825506,7.457375],[122.085499,6.899424],[121.919928,7.192119],[122.312359,8.034962],[122.942398,8.316237],[123.487688,8.69301],[123.841154,8.240324],[124.60147,8.514158],[124.764612,8.960409],[125.471391,8.986997],[125.412118,9.760335],[126.222714,9.286074],[126.306637,8.782487],[126.376814,8.414706]]],[[[123.982438,10.278779],[123.623183,9.950091],[123.309921,9.318269],[122.995883,9.022189],[122.380055,9.713361],[122.586089,9.981045],[122.837081,10.261157],[122.947411,10.881868],[123.49885,10.940624],[123.337774,10.267384],[124.077936,11.232726],[123.982438,10.278779]]],[[[118.504581,9.316383],[117.174275,8.3675],[117.664477,9.066889],[118.386914,9.6845],[118.987342,10.376292],[119.511496,11.369668],[119.689677,10.554291],[119.029458,10.003653],[118.504581,9.316383]]],[[[121.883548,11.891755],[122.483821,11.582187],[123.120217,11.58366],[123.100838,11.165934],[122.637714,10.741308],[122.00261,10.441017],[121.967367,10.905691],[122.03837,11.415841],[121.883548,11.891755]]],[[[125.502552,12.162695],[125.783465,11.046122],[125.011884,11.311455],[125.032761,10.975816],[125.277449,10.358722],[124.801819,10.134679],[124.760168,10.837995],[124.459101,10.88993],[124.302522,11.495371],[124.891013,11.415583],[124.87799,11.79419],[124.266762,12.557761],[125.227116,12.535721],[125.502552,12.162695]]],[[[121.527394,13.06959],[121.26219,12.20556],[120.833896,12.704496],[120.323436,13.466413],[121.180128,13.429697],[121.527394,13.06959]]],[[[121.321308,18.504065],[121.937601,18.218552],[122.246006,18.47895],[122.336957,18.224883],[122.174279,17.810283],[122.515654,17.093505],[122.252311,16.262444],[121.662786,15.931018],[121.50507,15.124814],[121.728829,14.328376],[122.258925,14.218202],[122.701276,14.336541],[123.950295,13.782131],[123.855107,13.237771],[124.181289,12.997527],[124.077419,12.536677],[123.298035,13.027526],[122.928652,13.55292],[122.671355,13.185836],[122.03465,13.784482],[121.126385,13.636687],[120.628637,13.857656],[120.679384,14.271016],[120.991819,14.525393],[120.693336,14.756671],[120.564145,14.396279],[120.070429,14.970869],[119.920929,15.406347],[119.883773,16.363704],[120.286488,16.034629],[120.390047,17.599081],[120.715867,18.505227],[121.321308,18.504065]]]]}},{"type":"Feature","id":"PNG","properties":{"name":"Papua New Guinea"},"geometry":{"type":"MultiPolygon","coordinates":[[[[155.880026,-6.819997],[155.599991,-6.919991],[155.166994,-6.535931],[154.729192,-5.900828],[154.514114,-5.139118],[154.652504,-5.042431],[154.759991,-5.339984],[155.062918,-5.566792],[155.547746,-6.200655],[156.019965,-6.540014],[155.880026,-6.819997]]],[[[151.982796,-5.478063],[151.459107,-5.56028],[151.30139,-5.840728],[150.754447,-6.083763],[150.241197,-6.317754],[149.709963,-6.316513],[148.890065,-6.02604],[148.318937,-5.747142],[148.401826,-5.437756],[149.298412,-5.583742],[149.845562,-5.505503],[149.99625,-5.026101],[150.139756,-5.001348],[150.236908,-5.53222],[150.807467,-5.455842],[151.089672,-5.113693],[151.647881,-4.757074],[151.537862,-4.167807],[152.136792,-4.14879],[152.338743,-4.312966],[152.318693,-4.867661],[151.982796,-5.478063]]],[[[147.191874,-7.388024],[148.084636,-8.044108],[148.734105,-9.104664],[149.306835,-9.071436],[149.266631,-9.514406],[150.038728,-9.684318],[149.738798,-9.872937],[150.801628,-10.293687],[150.690575,-10.582713],[150.028393,-10.652476],[149.78231,-10.393267],[148.923138,-10.280923],[147.913018,-10.130441],[147.135443,-9.492444],[146.567881,-8.942555],[146.048481,-8.067414],[144.744168,-7.630128],[143.897088,-7.91533],[143.286376,-8.245491],[143.413913,-8.983069],[142.628431,-9.326821],[142.068259,-9.159596],[141.033852,-9.117893],[141.017057,-5.859022],[141.00021,-2.600151],[142.735247,-3.289153],[144.583971,-3.861418],[145.27318,-4.373738],[145.829786,-4.876498],[145.981922,-5.465609],[147.648073,-6.083659],[147.891108,-6.614015],[146.970905,-6.721657],[147.191874,-7.388024]]],[[[153.140038,-4.499983],[152.827292,-4.766427],[152.638673,-4.176127],[152.406026,-3.789743],[151.953237,-3.462062],[151.384279,-3.035422],[150.66205,-2.741486],[150.939965,-2.500002],[151.479984,-2.779985],[151.820015,-2.999972],[152.239989,-3.240009],[152.640017,-3.659983],[153.019994,-3.980015],[153.140038,-4.499983]]]]}},{"type":"Feature","id":"POL","properties":{"name":"Poland"},"geometry":{"type":"Polygon","coordinates":[[[15.016996,51.106674],[14.607098,51.745188],[14.685026,52.089947],[14.4376,52.62485],[14.074521,52.981263],[14.353315,53.248171],[14.119686,53.757029],[14.8029,54.050706],[16.363477,54.513159],[17.622832,54.851536],[18.620859,54.682606],[18.696255,54.438719],[19.66064,54.426084],[20.892245,54.312525],[22.731099,54.327537],[23.243987,54.220567],[23.484128,53.912498],[23.527536,53.470122],[23.804935,53.089731],[23.799199,52.691099],[23.199494,52.486977],[23.508002,52.023647],[23.527071,51.578454],[24.029986,50.705407],[23.922757,50.424881],[23.426508,50.308506],[22.51845,49.476774],[22.776419,49.027395],[22.558138,49.085738],[21.607808,49.470107],[20.887955,49.328772],[20.415839,49.431453],[19.825023,49.217125],[19.320713,49.571574],[18.909575,49.435846],[18.853144,49.49623],[18.392914,49.988629],[17.649445,50.049038],[17.554567,50.362146],[16.868769,50.473974],[16.719476,50.215747],[16.176253,50.422607],[16.238627,50.697733],[15.490972,50.78473],[15.016996,51.106674]]]}},{"type":"Feature","id":"PRI","properties":{"name":"Puerto Rico"},"geometry":{"type":"Polygon","coordinates":[[[-66.282434,18.514762],[-65.771303,18.426679],[-65.591004,18.228035],[-65.847164,17.975906],[-66.599934,17.981823],[-67.184162,17.946553],[-67.242428,18.37446],[-67.100679,18.520601],[-66.282434,18.514762]]]}},{"type":"Feature","id":"PRK","properties":{"name":"North Korea"},"geometry":{"type":"Polygon","coordinates":[[[130.640016,42.395009],[130.780007,42.220007],[130.400031,42.280004],[129.965949,41.941368],[129.667362,41.601104],[129.705189,40.882828],[129.188115,40.661808],[129.0104,40.485436],[128.633368,40.189847],[127.967414,40.025413],[127.533436,39.75685],[127.50212,39.323931],[127.385434,39.213472],[127.783343,39.050898],[128.349716,38.612243],[128.205746,38.370397],[127.780035,38.304536],[127.073309,38.256115],[126.68372,37.804773],[126.237339,37.840378],[126.174759,37.749686],[125.689104,37.94001],[125.568439,37.752089],[125.27533,37.669071],[125.240087,37.857224],[124.981033,37.948821],[124.712161,38.108346],[124.985994,38.548474],[125.221949,38.665857],[125.132859,38.848559],[125.38659,39.387958],[125.321116,39.551385],[124.737482,39.660344],[124.265625,39.928493],[125.079942,40.569824],[126.182045,41.107336],[126.869083,41.816569],[127.343783,41.503152],[128.208433,41.466772],[128.052215,41.994285],[129.596669,42.424982],[129.994267,42.985387],[130.640016,42.395009]]]}},{"type":"Feature","id":"PRT","properties":{"name":"Portugal"},"geometry":{"type":"Polygon","coordinates":[[[-9.034818,41.880571],[-8.671946,42.134689],[-8.263857,42.280469],[-8.013175,41.790886],[-7.422513,41.792075],[-7.251309,41.918346],[-6.668606,41.883387],[-6.389088,41.381815],[-6.851127,41.111083],[-6.86402,40.330872],[-7.026413,40.184524],[-7.066592,39.711892],[-7.498632,39.629571],[-7.098037,39.030073],[-7.374092,38.373059],[-7.029281,38.075764],[-7.166508,37.803894],[-7.537105,37.428904],[-7.453726,37.097788],[-7.855613,36.838269],[-8.382816,36.97888],[-8.898857,36.868809],[-8.746101,37.651346],[-8.839998,38.266243],[-9.287464,38.358486],[-9.526571,38.737429],[-9.446989,39.392066],[-9.048305,39.755093],[-8.977353,40.159306],[-8.768684,40.760639],[-8.790853,41.184334],[-8.990789,41.543459],[-9.034818,41.880571]]]}},{"type":"Feature","id":"PRY","properties":{"name":"Paraguay"},"geometry":{"type":"Polygon","coordinates":[[[-62.685057,-22.249029],[-62.291179,-21.051635],[-62.265961,-20.513735],[-61.786326,-19.633737],[-60.043565,-19.342747],[-59.115042,-19.356906],[-58.183471,-19.868399],[-58.166392,-20.176701],[-57.870674,-20.732688],[-57.937156,-22.090176],[-56.88151,-22.282154],[-56.473317,-22.0863],[-55.797958,-22.35693],[-55.610683,-22.655619],[-55.517639,-23.571998],[-55.400747,-23.956935],[-55.027902,-24.001274],[-54.652834,-23.839578],[-54.29296,-24.021014],[-54.293476,-24.5708],[-54.428946,-25.162185],[-54.625291,-25.739255],[-54.788795,-26.621786],[-55.695846,-27.387837],[-56.486702,-27.548499],[-57.60976,-27.395899],[-58.618174,-27.123719],[-57.63366,-25.603657],[-57.777217,-25.16234],[-58.807128,-24.771459],[-60.028966,-24.032796],[-60.846565,-23.880713],[-62.685057,-22.249029]]]}},{"type":"Feature","id":"QAT","properties":{"name":"Qatar"},"geometry":{"type":"Polygon","coordinates":[[[50.810108,24.754743],[50.743911,25.482424],[51.013352,26.006992],[51.286462,26.114582],[51.589079,25.801113],[51.6067,25.21567],[51.389608,24.627386],[51.112415,24.556331],[50.810108,24.754743]]]}},{"type":"Feature","id":"ROU","properties":{"name":"Romania"},"geometry":{"type":"Polygon","coordinates":[[[22.710531,47.882194],[23.142236,48.096341],[23.760958,47.985598],[24.402056,47.981878],[24.866317,47.737526],[25.207743,47.891056],[25.945941,47.987149],[26.19745,48.220881],[26.619337,48.220726],[26.924176,48.123264],[27.233873,47.826771],[27.551166,47.405117],[28.12803,46.810476],[28.160018,46.371563],[28.054443,45.944586],[28.233554,45.488283],[28.679779,45.304031],[29.149725,45.464925],[29.603289,45.293308],[29.626543,45.035391],[29.141612,44.82021],[28.837858,44.913874],[28.558081,43.707462],[27.970107,43.812468],[27.2424,44.175986],[26.065159,43.943494],[25.569272,43.688445],[24.100679,43.741051],[23.332302,43.897011],[22.944832,43.823785],[22.65715,44.234923],[22.474008,44.409228],[22.705726,44.578003],[22.459022,44.702517],[22.145088,44.478422],[21.562023,44.768947],[21.483526,45.18117],[20.874313,45.416375],[20.762175,45.734573],[20.220192,46.127469],[21.021952,46.316088],[21.626515,46.994238],[22.099768,47.672439],[22.710531,47.882194]]]}},{"type":"Feature","id":"RUS","properties":{"name":"Russia"},"geometry":{"type":"MultiPolygon","coordinates":[[[[143.648007,50.7476],[144.654148,48.976391],[143.173928,49.306551],[142.558668,47.861575],[143.533492,46.836728],[143.505277,46.137908],[142.747701,46.740765],[142.09203,45.966755],[141.906925,46.805929],[142.018443,47.780133],[141.904445,48.859189],[142.1358,49.615163],[142.179983,50.952342],[141.594076,51.935435],[141.682546,53.301966],[142.606934,53.762145],[142.209749,54.225476],[142.654786,54.365881],[142.914616,53.704578],[143.260848,52.74076],[143.235268,51.75666],[143.648007,50.7476]]],[[[22.731099,54.327537],[20.892245,54.312525],[19.66064,54.426084],[19.888481,54.86616],[21.268449,55.190482],[22.315724,55.015299],[22.757764,54.856574],[22.651052,54.582741],[22.731099,54.327537]]],[[[-175.01425,66.58435],[-174.33983,66.33556],[-174.57182,67.06219],[-171.85731,66.91308],[-169.89958,65.97724],[-170.89107,65.54139],[-172.53025,65.43791],[-172.555,64.46079],[-172.95533,64.25269],[-173.89184,64.2826],[-174.65392,64.63125],[-175.98353,64.92288],[-176.20716,65.35667],[-177.22266,65.52024],[-178.35993,65.39052],[-178.90332,65.74044],[-178.68611,66.11211],[-179.88377,65.87456],[-179.43268,65.40411],[-180,64.979709],[-180,68.963636],[-177.55,68.2],[-174.92825,67.20589],[-175.01425,66.58435]]],[[[180,70.832199],[178.903425,70.78114],[178.7253,71.0988],[180,71.515714],[180,70.832199]]],[[[-178.69378,70.89302],[-180,70.832199],[-180,71.515714],[-179.871875,71.55762],[-179.02433,71.55553],[-177.577945,71.26948],[-177.663575,71.13277],[-178.69378,70.89302]]],[[[143.60385,73.21244],[142.08763,73.20544],[140.038155,73.31692],[139.86312,73.36983],[140.81171,73.76506],[142.06207,73.85758],[143.48283,73.47525],[143.60385,73.21244]]],[[[150.73167,75.08406],[149.575925,74.68892],[147.977465,74.778355],[146.11919,75.17298],[146.358485,75.49682],[148.22223,75.345845],[150.73167,75.08406]]],[[[145.086285,75.562625],[144.3,74.82],[140.61381,74.84768],[138.95544,74.61148],[136.97439,75.26167],[137.51176,75.94917],[138.831075,76.13676],[141.471615,76.09289],[145.086285,75.562625]]],[[[57.535693,70.720464],[56.944979,70.632743],[53.677375,70.762658],[53.412017,71.206662],[51.601895,71.474759],[51.455754,72.014881],[52.478275,72.229442],[52.444169,72.774731],[54.427614,73.627548],[53.50829,73.749814],[55.902459,74.627486],[55.631933,75.081412],[57.868644,75.60939],[61.170044,76.251883],[64.498368,76.439055],[66.210977,76.809782],[68.15706,76.939697],[68.852211,76.544811],[68.180573,76.233642],[64.637326,75.737755],[61.583508,75.260885],[58.477082,74.309056],[56.986786,73.333044],[55.419336,72.371268],[55.622838,71.540595],[57.535693,70.720464]]],[[[106.97013,76.97419],[107.24,76.48],[108.1538,76.72335],[111.07726,76.71],[113.33151,76.22224],[114.13417,75.84764],[113.88539,75.32779],[112.77918,75.03186],[110.15125,74.47673],[109.4,74.18],[110.64,74.04],[112.11919,73.78774],[113.01954,73.97693],[113.52958,73.33505],[113.96881,73.59488],[115.56782,73.75285],[118.77633,73.58772],[119.02,73.12],[123.20066,72.97122],[123.25777,73.73503],[125.38,73.56],[126.97644,73.56549],[128.59126,73.03871],[129.05157,72.39872],[128.46,71.98],[129.71599,71.19304],[131.28858,70.78699],[132.2535,71.8363],[133.85766,71.38642],[135.56193,71.65525],[137.49755,71.34763],[138.23409,71.62803],[139.86983,71.48783],[139.14791,72.41619],[140.46817,72.84941],[149.5,72.2],[150.35118,71.60643],[152.9689,70.84222],[157.00688,71.03141],[158.99779,70.86672],[159.83031,70.45324],[159.70866,69.72198],[160.94053,69.43728],[162.27907,69.64204],[164.05248,69.66823],[165.94037,69.47199],[167.83567,69.58269],[169.57763,68.6938],[170.81688,69.01363],[170.0082,69.65276],[170.45345,70.09703],[173.64391,69.81743],[175.72403,69.87725],[178.6,69.4],[180,68.963636],[180,64.979709],[179.99281,64.97433],[178.7072,64.53493],[177.41128,64.60821],[178.313,64.07593],[178.90825,63.25197],[179.37034,62.98262],[179.48636,62.56894],[179.22825,62.3041],[177.3643,62.5219],[174.56929,61.76915],[173.68013,61.65261],[172.15,60.95],[170.6985,60.33618],[170.33085,59.88177],[168.90046,60.57355],[166.29498,59.78855],[165.84,60.16],[164.87674,59.7316],[163.53929,59.86871],[163.21711,59.21101],[162.01733,58.24328],[162.05297,57.83912],[163.19191,57.61503],[163.05794,56.15924],[162.12958,56.12219],[161.70146,55.28568],[162.11749,54.85514],[160.36877,54.34433],[160.02173,53.20257],[158.53094,52.95868],[158.23118,51.94269],[156.78979,51.01105],[156.42,51.7],[155.99182,53.15895],[155.43366,55.38103],[155.91442,56.76792],[156.75815,57.3647],[156.81035,57.83204],[158.36433,58.05575],[160.15064,59.31477],[161.87204,60.343],[163.66969,61.1409],[164.47355,62.55061],[163.25842,62.46627],[162.65791,61.6425],[160.12148,60.54423],[159.30232,61.77396],[156.72068,61.43442],[154.21806,59.75818],[155.04375,59.14495],[152.81185,58.88385],[151.26573,58.78089],[151.33815,59.50396],[149.78371,59.65573],[148.54481,59.16448],[145.48722,59.33637],[142.19782,59.03998],[138.95848,57.08805],[135.12619,54.72959],[136.70171,54.60355],[137.19342,53.97732],[138.1647,53.75501],[138.80463,54.25455],[139.90151,54.18968],[141.34531,53.08957],[141.37923,52.23877],[140.59742,51.23967],[140.51308,50.04553],[140.06193,48.44671],[138.55472,46.99965],[138.21971,46.30795],[136.86232,45.1435],[135.51535,43.989],[134.86939,43.39821],[133.53687,42.81147],[132.90627,42.79849],[132.27807,43.28456],[130.93587,42.55274],[130.78,42.22],[130.64,42.395],[130.633866,42.903015],[131.144688,42.92999],[131.288555,44.11152],[131.02519,44.96796],[131.883454,45.321162],[133.09712,45.14409],[133.769644,46.116927],[134.11235,47.21248],[134.50081,47.57845],[135.026311,48.47823],[133.373596,48.183442],[132.50669,47.78896],[130.98726,47.79013],[130.582293,48.729687],[129.397818,49.4406],[127.6574,49.76027],[127.287456,50.739797],[126.939157,51.353894],[126.564399,51.784255],[125.946349,52.792799],[125.068211,53.161045],[123.57147,53.4588],[122.245748,53.431726],[121.003085,53.251401],[120.177089,52.753886],[120.725789,52.516226],[120.7382,51.96411],[120.18208,51.64355],[119.27939,50.58292],[119.288461,50.142883],[117.879244,49.510983],[116.678801,49.888531],[115.485695,49.805177],[114.96211,50.140247],[114.362456,50.248303],[112.89774,49.543565],[111.581231,49.377968],[110.662011,49.130128],[109.402449,49.292961],[108.475167,49.282548],[107.868176,49.793705],[106.888804,50.274296],[105.886591,50.406019],[104.62158,50.27532],[103.676545,50.089966],[102.25589,50.51056],[102.06521,51.25991],[100.88948,51.516856],[99.981732,51.634006],[98.861491,52.047366],[97.82574,51.010995],[98.231762,50.422401],[97.25976,49.72605],[95.81402,49.97746],[94.815949,50.013433],[94.147566,50.480537],[93.10421,50.49529],[92.234712,50.802171],[90.713667,50.331812],[88.805567,49.470521],[87.751264,49.297198],[87.35997,49.214981],[86.829357,49.826675],[85.54127,49.692859],[85.11556,50.117303],[84.416377,50.3114],[83.935115,50.889246],[83.383004,51.069183],[81.945986,50.812196],[80.568447,51.388336],[80.03556,50.864751],[77.800916,53.404415],[76.525179,54.177003],[76.8911,54.490524],[74.38482,53.54685],[73.425679,53.48981],[73.508516,54.035617],[72.22415,54.376655],[71.180131,54.133285],[70.865267,55.169734],[69.068167,55.38525],[68.1691,54.970392],[65.66687,54.60125],[65.178534,54.354228],[61.4366,54.00625],[60.978066,53.664993],[61.699986,52.979996],[60.739993,52.719986],[60.927269,52.447548],[59.967534,51.96042],[61.588003,51.272659],[61.337424,50.79907],[59.932807,50.842194],[59.642282,50.545442],[58.36332,51.06364],[56.77798,51.04355],[55.71694,50.62171],[54.532878,51.02624],[52.328724,51.718652],[50.766648,51.692762],[48.702382,50.605128],[48.577841,49.87476],[47.54948,50.454698],[46.751596,49.356006],[47.043672,49.152039],[46.466446,48.394152],[47.31524,47.71585],[48.05725,47.74377],[48.694734,47.075628],[48.59325,46.56104],[49.10116,46.39933],[48.64541,45.80629],[47.67591,45.64149],[46.68201,44.6092],[47.59094,43.66016],[47.49252,42.98658],[48.58437,41.80888],[47.987283,41.405819],[47.815666,41.151416],[47.373315,41.219732],[46.686071,41.827137],[46.404951,41.860675],[45.7764,42.09244],[45.470279,42.502781],[44.537623,42.711993],[43.93121,42.55496],[43.75599,42.74083],[42.3944,43.2203],[40.92219,43.38215],[40.076965,43.553104],[39.955009,43.434998],[38.68,44.28],[37.53912,44.65721],[37.276611328125,44.972570682240644],[36.7822265625,45.10454630976873],[36.243896484375,45.05024026979463],[35.89233398437499,45.01141864227728],[35.57373046875,45.1278045274732],[35.101318359375,44.8324999934906],[34.453125,44.72332018895825],[34.046630859375,44.44162421758805],[33.71704101562499,44.39454219215587],[33.37646484375,44.56699093657141],[33.59619140624999,44.98811302615805],[33.42041015625,45.18978009667531],[33.134765625,45.205263456162385],[32.98095703125,45.359865333959746],[32.640380859375,45.298075138707965],[32.4755859375,45.398449976304086],[32.794189453125,45.598665689820656],[33.607177734375,45.89000815866182],[33.64013671875,46.2102496001872],[34.1455078125,46.08847179577592],[34.91455078125,45.775186183521036],[35.40893554687499,45.29034662473615],[36.0791015625,45.46783598133375],[36.32080078125,45.460130637921004],[36.573486328125,45.44471679159555],[37.40317,45.40451],[38.23295,46.24087],[37.67372,46.63657],[39.14767,47.04475],[39.1212,47.26336],[38.223538,47.10219],[38.255112,47.5464],[38.77057,47.82562],[39.738278,47.898937],[39.89562,48.23241],[39.67465,48.78382],[40.080789,49.30743],[40.06904,49.60105],[38.594988,49.926462],[38.010631,49.915662],[37.39346,50.383953],[36.626168,50.225591],[35.356116,50.577197],[35.37791,50.77394],[35.022183,51.207572],[34.224816,51.255993],[34.141978,51.566413],[34.391731,51.768882],[33.7527,52.335075],[32.715761,52.238465],[32.412058,52.288695],[32.15944,52.06125],[31.78597,52.10168],[31.540018,52.742052],[31.305201,53.073996],[31.49764,53.16743],[32.304519,53.132726],[32.693643,53.351421],[32.405599,53.618045],[31.731273,53.794029],[31.791424,53.974639],[31.384472,54.157056],[30.757534,54.811771],[30.971836,55.081548],[30.873909,55.550976],[29.896294,55.789463],[29.371572,55.670091],[29.229513,55.918344],[28.176709,56.16913],[27.855282,56.759326],[27.770016,57.244258],[27.288185,57.474528],[27.716686,57.791899],[27.42015,58.72457],[28.131699,59.300825],[27.98112,59.47537],[29.1177,60.02805],[28.07,60.50352],[30.211107,61.780028],[31.139991,62.357693],[31.516092,62.867687],[30.035872,63.552814],[30.444685,64.204453],[29.54443,64.948672],[30.21765,65.80598],[29.054589,66.944286],[29.977426,67.698297],[28.445944,68.364613],[28.59193,69.064777],[29.39955,69.15692],[31.10108,69.55811],[32.13272,69.90595],[33.77547,69.30142],[36.51396,69.06342],[40.29234,67.9324],[41.05987,67.45713],[41.12595,66.79158],[40.01583,66.26618],[38.38295,65.99953],[33.91871,66.75961],[33.18444,66.63253],[34.81477,65.90015],[34.878574,65.436213],[34.94391,64.41437],[36.23129,64.10945],[37.01273,63.84983],[37.14197,64.33471],[36.539579,64.76446],[37.17604,65.14322],[39.59345,64.52079],[40.4356,64.76446],[39.7626,65.49682],[42.09309,66.47623],[43.01604,66.41858],[43.94975,66.06908],[44.53226,66.75634],[43.69839,67.35245],[44.18795,67.95051],[43.45282,68.57079],[46.25,68.25],[46.82134,67.68997],[45.55517,67.56652],[45.56202,67.01005],[46.34915,66.66767],[47.89416,66.88455],[48.13876,67.52238],[50.22766,67.99867],[53.71743,68.85738],[54.47171,68.80815],[53.48582,68.20131],[54.72628,68.09702],[55.44268,68.43866],[57.31702,68.46628],[58.802,68.88082],[59.94142,68.27844],[61.07784,68.94069],[60.03,69.52],[60.55,69.85],[63.504,69.54739],[64.888115,69.234835],[68.51216,68.09233],[69.18068,68.61563],[68.16444,69.14436],[68.13522,69.35649],[66.93008,69.45461],[67.25976,69.92873],[66.72492,70.70889],[66.69466,71.02897],[68.54006,71.9345],[69.19636,72.84336],[69.94,73.04],[72.58754,72.77629],[72.79603,72.22006],[71.84811,71.40898],[72.47011,71.09019],[72.79188,70.39114],[72.5647,69.02085],[73.66787,68.4079],[73.2387,67.7404],[71.28,66.32],[72.42301,66.17267],[72.82077,66.53267],[73.92099,66.78946],[74.18651,67.28429],[75.052,67.76047],[74.46926,68.32899],[74.93584,68.98918],[73.84236,69.07146],[73.60187,69.62763],[74.3998,70.63175],[73.1011,71.44717],[74.89082,72.12119],[74.65926,72.83227],[75.15801,72.85497],[75.68351,72.30056],[75.28898,71.33556],[76.35911,71.15287],[75.90313,71.87401],[77.57665,72.26717],[79.65202,72.32011],[81.5,71.75],[80.61071,72.58285],[80.51109,73.6482],[82.25,73.85],[84.65526,73.80591],[86.8223,73.93688],[86.00956,74.45967],[87.16682,75.11643],[88.31571,75.14393],[90.26,75.64],[92.90058,75.77333],[93.23421,76.0472],[95.86,76.14],[96.67821,75.91548],[98.92254,76.44689],[100.75967,76.43028],[101.03532,76.86189],[101.99084,77.28754],[104.3516,77.69792],[106.06664,77.37389],[104.705,77.1274],[106.97013,76.97419]]],[[[105.07547,78.30689],[99.43814,77.921],[101.2649,79.23399],[102.08635,79.34641],[102.837815,79.28129],[105.37243,78.71334],[105.07547,78.30689]]],[[[51.136187,80.54728],[49.793685,80.415428],[48.894411,80.339567],[48.754937,80.175468],[47.586119,80.010181],[46.502826,80.247247],[47.072455,80.559424],[44.846958,80.58981],[46.799139,80.771918],[48.318477,80.78401],[48.522806,80.514569],[49.09719,80.753986],[50.039768,80.918885],[51.522933,80.699726],[51.136187,80.54728]]],[[[99.93976,78.88094],[97.75794,78.7562],[94.97259,79.044745],[93.31288,79.4265],[92.5454,80.14379],[91.18107,80.34146],[93.77766,81.0246],[95.940895,81.2504],[97.88385,80.746975],[100.186655,79.780135],[99.93976,78.88094]]]]}},{"type":"Feature","id":"RWA","properties":{"name":"Rwanda"},"geometry":{"type":"Polygon","coordinates":[[[30.419105,-1.134659],[30.816135,-1.698914],[30.758309,-2.28725],[30.469696,-2.413858],[29.938359,-2.348487],[29.632176,-2.917858],[29.024926,-2.839258],[29.117479,-2.292211],[29.254835,-2.21511],[29.291887,-1.620056],[29.579466,-1.341313],[29.821519,-1.443322],[30.419105,-1.134659]]]}},{"type":"Feature","id":"ESH","properties":{"name":"Western Sahara"},"geometry":{"type":"Polygon","coordinates":[[[-8.794884,27.120696],[-8.817828,27.656426],[-8.66559,27.656426],[-8.665124,27.589479],[-8.6844,27.395744],[-8.687294,25.881056],[-11.969419,25.933353],[-11.937224,23.374594],[-12.874222,23.284832],[-13.118754,22.77122],[-12.929102,21.327071],[-16.845194,21.333323],[-17.063423,20.999752],[-17.020428,21.42231],[-17.002962,21.420734],[-14.750955,21.5006],[-14.630833,21.86094],[-14.221168,22.310163],[-13.89111,23.691009],[-12.500963,24.770116],[-12.030759,26.030866],[-11.71822,26.104092],[-11.392555,26.883424],[-10.551263,26.990808],[-10.189424,26.860945],[-9.735343,26.860945],[-9.413037,27.088476],[-8.794884,27.120696]]]}},{"type":"Feature","id":"SAU","properties":{"name":"Saudi Arabia"},"geometry":{"type":"Polygon","coordinates":[[[42.779332,16.347891],[42.649573,16.774635],[42.347989,17.075806],[42.270888,17.474722],[41.754382,17.833046],[41.221391,18.6716],[40.939341,19.486485],[40.247652,20.174635],[39.801685,20.338862],[39.139399,21.291905],[39.023696,21.986875],[39.066329,22.579656],[38.492772,23.688451],[38.02386,24.078686],[37.483635,24.285495],[37.154818,24.858483],[37.209491,25.084542],[36.931627,25.602959],[36.639604,25.826228],[36.249137,26.570136],[35.640182,27.37652],[35.130187,28.063352],[34.632336,28.058546],[34.787779,28.607427],[34.83222,28.957483],[34.956037,29.356555],[36.068941,29.197495],[36.501214,29.505254],[36.740528,29.865283],[37.503582,30.003776],[37.66812,30.338665],[37.998849,30.5085],[37.002166,31.508413],[39.004886,32.010217],[39.195468,32.161009],[40.399994,31.889992],[41.889981,31.190009],[44.709499,29.178891],[46.568713,29.099025],[47.459822,29.002519],[47.708851,28.526063],[48.416094,28.552004],[48.807595,27.689628],[49.299554,27.461218],[49.470914,27.109999],[50.152422,26.689663],[50.212935,26.277027],[50.113303,25.943972],[50.239859,25.60805],[50.527387,25.327808],[50.660557,24.999896],[50.810108,24.754743],[51.112415,24.556331],[51.389608,24.627386],[51.579519,24.245497],[51.617708,24.014219],[52.000733,23.001154],[55.006803,22.496948],[55.208341,22.70833],[55.666659,22.000001],[54.999982,19.999994],[52.00001,19.000003],[49.116672,18.616668],[48.183344,18.166669],[47.466695,17.116682],[47.000005,16.949999],[46.749994,17.283338],[46.366659,17.233315],[45.399999,17.333335],[45.216651,17.433329],[44.062613,17.410359],[43.791519,17.319977],[43.380794,17.579987],[43.115798,17.08844],[43.218375,16.66689],[42.779332,16.347891]]]}},{"type":"Feature","id":"SDN","properties":{"name":"Sudan"},"geometry":{"type":"Polygon","coordinates":[[[33.963393,9.464285],[33.824963,9.484061],[33.842131,9.981915],[33.721959,10.325262],[33.206938,10.720112],[33.086766,11.441141],[33.206938,12.179338],[32.743419,12.248008],[32.67475,12.024832],[32.073892,11.97333],[32.314235,11.681484],[32.400072,11.080626],[31.850716,10.531271],[31.352862,9.810241],[30.837841,9.707237],[29.996639,10.290927],[29.618957,10.084919],[29.515953,9.793074],[29.000932,9.604232],[28.966597,9.398224],[27.97089,9.398224],[27.833551,9.604232],[27.112521,9.638567],[26.752006,9.466893],[26.477328,9.55273],[25.962307,10.136421],[25.790633,10.411099],[25.069604,10.27376],[24.794926,9.810241],[24.537415,8.917538],[24.194068,8.728696],[23.88698,8.61973],[23.805813,8.666319],[23.459013,8.954286],[23.394779,9.265068],[23.55725,9.681218],[23.554304,10.089255],[22.977544,10.714463],[22.864165,11.142395],[22.87622,11.38461],[22.50869,11.67936],[22.49762,12.26024],[22.28801,12.64605],[21.93681,12.58818],[22.03759,12.95546],[22.29658,13.37232],[22.18329,13.78648],[22.51202,14.09318],[22.30351,14.32682],[22.56795,14.94429],[23.02459,15.68072],[23.88689,15.61084],[23.83766,19.58047],[23.85,20],[25,20.00304],[25,22],[29.02,22],[32.9,22],[36.86623,22],[37.18872,21.01885],[36.96941,20.83744],[37.1147,19.80796],[37.48179,18.61409],[37.86276,18.36786],[38.41009,17.998307],[37.904,17.42754],[37.16747,17.26314],[36.85253,16.95655],[36.75389,16.29186],[36.32322,14.82249],[36.42951,14.42211],[36.27022,13.56333],[35.86363,12.57828],[35.26049,12.08286],[34.83163,11.31896],[34.73115,10.91017],[34.25745,10.63009],[33.96162,9.58358],[33.963393,9.464285]]]}},{"type":"Feature","id":"SSD","properties":{"name":"South Sudan"},"geometry":{"type":"Polygon","coordinates":[[[33.963393,9.464285],[33.97498,8.68456],[33.8255,8.37916],[33.2948,8.35458],[32.95418,7.78497],[33.56829,7.71334],[34.0751,7.22595],[34.25032,6.82607],[34.70702,6.59422],[35.298007,5.506],[34.620196,4.847123],[34.005,4.249885],[33.39,3.79],[32.68642,3.79232],[31.88145,3.55827],[31.24556,3.7819],[30.83385,3.50917],[29.95349,4.1737],[29.715995,4.600805],[29.159078,4.389267],[28.696678,4.455077],[28.428994,4.287155],[27.979977,4.408413],[27.374226,5.233944],[27.213409,5.550953],[26.465909,5.946717],[26.213418,6.546603],[25.796648,6.979316],[25.124131,7.500085],[25.114932,7.825104],[24.567369,8.229188],[23.88698,8.61973],[24.194068,8.728696],[24.537415,8.917538],[24.794926,9.810241],[25.069604,10.27376],[25.790633,10.411099],[25.962307,10.136421],[26.477328,9.55273],[26.752006,9.466893],[27.112521,9.638567],[27.833551,9.604232],[27.97089,9.398224],[28.966597,9.398224],[29.000932,9.604232],[29.515953,9.793074],[29.618957,10.084919],[29.996639,10.290927],[30.837841,9.707237],[31.352862,9.810241],[31.850716,10.531271],[32.400072,11.080626],[32.314235,11.681484],[32.073892,11.97333],[32.67475,12.024832],[32.743419,12.248008],[33.206938,12.179338],[33.086766,11.441141],[33.206938,10.720112],[33.721959,10.325262],[33.842131,9.981915],[33.824963,9.484061],[33.963393,9.464285]]]}},{"type":"Feature","id":"SEN","properties":{"name":"Senegal"},"geometry":{"type":"Polygon","coordinates":[[[-16.713729,13.594959],[-17.126107,14.373516],[-17.625043,14.729541],[-17.185173,14.919477],[-16.700706,15.621527],[-16.463098,16.135036],[-16.12069,16.455663],[-15.623666,16.369337],[-15.135737,16.587282],[-14.577348,16.598264],[-14.099521,16.304302],[-13.435738,16.039383],[-12.830658,15.303692],[-12.17075,14.616834],[-12.124887,13.994727],[-11.927716,13.422075],[-11.553398,13.141214],[-11.467899,12.754519],[-11.513943,12.442988],[-11.658301,12.386583],[-12.203565,12.465648],[-12.278599,12.35444],[-12.499051,12.33209],[-13.217818,12.575874],[-13.700476,12.586183],[-15.548477,12.62817],[-15.816574,12.515567],[-16.147717,12.547762],[-16.677452,12.384852],[-16.841525,13.151394],[-15.931296,13.130284],[-15.691001,13.270353],[-15.511813,13.27857],[-15.141163,13.509512],[-14.712197,13.298207],[-14.277702,13.280585],[-13.844963,13.505042],[-14.046992,13.794068],[-14.376714,13.62568],[-14.687031,13.630357],[-15.081735,13.876492],[-15.39877,13.860369],[-15.624596,13.623587],[-16.713729,13.594959]]]}},{"type":"Feature","id":"SLB","properties":{"name":"Solomon Islands"},"geometry":{"type":"MultiPolygon","coordinates":[[[[162.119025,-10.482719],[162.398646,-10.826367],[161.700032,-10.820011],[161.319797,-10.204751],[161.917383,-10.446701],[162.119025,-10.482719]]],[[[160.852229,-9.872937],[160.462588,-9.89521],[159.849447,-9.794027],[159.640003,-9.63998],[159.702945,-9.24295],[160.362956,-9.400304],[160.688518,-9.610162],[160.852229,-9.872937]]],[[[161.679982,-9.599982],[161.529397,-9.784312],[160.788253,-8.917543],[160.579997,-8.320009],[160.920028,-8.320009],[161.280006,-9.120011],[161.679982,-9.599982]]],[[[159.875027,-8.33732],[159.917402,-8.53829],[159.133677,-8.114181],[158.586114,-7.754824],[158.21115,-7.421872],[158.359978,-7.320018],[158.820001,-7.560003],[159.640003,-8.020027],[159.875027,-8.33732]]],[[[157.538426,-7.34782],[157.33942,-7.404767],[156.90203,-7.176874],[156.491358,-6.765943],[156.542828,-6.599338],[157.14,-7.021638],[157.538426,-7.34782]]]]}},{"type":"Feature","id":"SLE","properties":{"name":"Sierra Leone"},"geometry":{"type":"Polygon","coordinates":[[[-11.438779,6.785917],[-11.708195,6.860098],[-12.428099,7.262942],[-12.949049,7.798646],[-13.124025,8.163946],[-13.24655,8.903049],[-12.711958,9.342712],[-12.596719,9.620188],[-12.425929,9.835834],[-12.150338,9.858572],[-11.917277,10.046984],[-11.117481,10.045873],[-10.839152,9.688246],[-10.622395,9.26791],[-10.65477,8.977178],[-10.494315,8.715541],[-10.505477,8.348896],[-10.230094,8.406206],[-10.695595,7.939464],[-11.146704,7.396706],[-11.199802,7.105846],[-11.438779,6.785917]]]}},{"type":"Feature","id":"SLV","properties":{"name":"El Salvador"},"geometry":{"type":"Polygon","coordinates":[[[-87.793111,13.38448],[-87.904112,13.149017],[-88.483302,13.163951],[-88.843228,13.259734],[-89.256743,13.458533],[-89.812394,13.520622],[-90.095555,13.735338],[-90.064678,13.88197],[-89.721934,14.134228],[-89.534219,14.244816],[-89.587343,14.362586],[-89.353326,14.424133],[-89.058512,14.340029],[-88.843073,14.140507],[-88.541231,13.980155],[-88.503998,13.845486],[-88.065343,13.964626],[-87.859515,13.893312],[-87.723503,13.78505],[-87.793111,13.38448]]]}},{"type":"Feature","id":"SOM","properties":{"name":"Somalia"},"geometry":{"type":"MultiPolygon","coordinates":[[[[49.72862,11.5789],[50.25878,11.67957],[50.73202,12.0219],[51.1112,12.02464],[51.13387,11.74815],[51.04153,11.16651],[51.04531,10.6409],[50.83418,10.27972],[50.55239,9.19874],[50.07092,8.08173],[49.4527,6.80466],[48.59455,5.33911],[47.74079,4.2194],[46.56476,2.85529],[45.56399,2.04576],[44.06815,1.05283],[43.13597,0.2922],[42.04157,-0.91916],[41.81095,-1.44647],[41.58513,-1.68325],[40.993,-0.85829],[40.98105,2.78452],[41.855083,3.918912],[42.12861,4.23413],[42.76967,4.25259],[43.66087,4.95755],[44.9636,5.00162],[47.78942,8.003],[48.486736,8.837626],[48.93813,9.451749],[48.938233,9.9735],[48.938491,10.982327],[48.942005,11.394266],[48.948205,11.410617],[49.26776,11.43033],[49.72862,11.5789]]],[[[48.93813,9.451749],[48.486736,8.837626],[47.78942,8.003],[46.948328,7.996877],[43.67875,9.18358],[43.296975,9.540477],[42.92812,10.02194],[42.55876,10.57258],[42.776852,10.926879],[43.145305,11.46204],[43.47066,11.27771],[43.666668,10.864169],[44.117804,10.445538],[44.614259,10.442205],[45.556941,10.698029],[46.645401,10.816549],[47.525658,11.127228],[48.021596,11.193064],[48.378784,11.375482],[48.948206,11.410622],[48.942005,11.394266],[48.938491,10.982327],[48.938233,9.9735],[48.93813,9.451749]]]]}},{"type":"Feature","id":"SRB","properties":{"name":"Republic of Serbia"},"geometry":{"type":"Polygon","coordinates":[[[20.874313,45.416375],[21.483526,45.18117],[21.562023,44.768947],[22.145088,44.478422],[22.459022,44.702517],[22.705726,44.578003],[22.474008,44.409228],[22.65715,44.234923],[22.410446,44.008063],[22.500157,43.642814],[22.986019,43.211161],[22.604801,42.898519],[22.436595,42.580321],[22.545012,42.461362],[22.380526,42.32026],[21.91708,42.30364],[21.576636,42.245224],[21.54332,42.32025],[21.66292,42.43922],[21.77505,42.6827],[21.63302,42.67717],[21.43866,42.86255],[21.27421,42.90959],[21.143395,43.068685],[20.95651,43.13094],[20.81448,43.27205],[20.63508,43.21671],[20.49679,42.88469],[20.25758,42.81275],[20.3398,42.89852],[19.95857,43.10604],[19.63,43.21378],[19.48389,43.35229],[19.21852,43.52384],[19.454,43.5681],[19.59976,44.03847],[19.11761,44.42307],[19.36803,44.863],[19.00548,44.86023],[19.390476,45.236516],[19.072769,45.521511],[18.82982,45.90888],[19.596045,46.17173],[20.220192,46.127469],[20.762175,45.734573],[20.874313,45.416375]]]}},{"type":"Feature","id":"SUR","properties":{"name":"Suriname"},"geometry":{"type":"Polygon","coordinates":[[[-57.147436,5.97315],[-55.949318,5.772878],[-55.84178,5.953125],[-55.03325,6.025291],[-53.958045,5.756548],[-54.478633,4.896756],[-54.399542,4.212611],[-54.006931,3.620038],[-54.181726,3.18978],[-54.269705,2.732392],[-54.524754,2.311849],[-55.097587,2.523748],[-55.569755,2.421506],[-55.973322,2.510364],[-56.073342,2.220795],[-55.9056,2.021996],[-55.995698,1.817667],[-56.539386,1.899523],[-57.150098,2.768927],[-57.281433,3.333492],[-57.601569,3.334655],[-58.044694,4.060864],[-57.86021,4.576801],[-57.914289,4.812626],[-57.307246,5.073567],[-57.147436,5.97315]]]}},{"type":"Feature","id":"SVK","properties":{"name":"Slovakia"},"geometry":{"type":"Polygon","coordinates":[[[18.853144,49.49623],[18.909575,49.435846],[19.320713,49.571574],[19.825023,49.217125],[20.415839,49.431453],[20.887955,49.328772],[21.607808,49.470107],[22.558138,49.085738],[22.280842,48.825392],[22.085608,48.422264],[21.872236,48.319971],[20.801294,48.623854],[20.473562,48.56285],[20.239054,48.327567],[19.769471,48.202691],[19.661364,48.266615],[19.174365,48.111379],[18.777025,48.081768],[18.696513,47.880954],[17.857133,47.758429],[17.488473,47.867466],[16.979667,48.123497],[16.879983,48.470013],[16.960288,48.596982],[17.101985,48.816969],[17.545007,48.800019],[17.886485,48.903475],[17.913512,48.996493],[18.104973,49.043983],[18.170498,49.271515],[18.399994,49.315001],[18.554971,49.495015],[18.853144,49.49623]]]}},{"type":"Feature","id":"SVN","properties":{"name":"Slovenia"},"geometry":{"type":"Polygon","coordinates":[[[13.806475,46.509306],[14.632472,46.431817],[15.137092,46.658703],[16.011664,46.683611],[16.202298,46.852386],[16.370505,46.841327],[16.564808,46.503751],[15.768733,46.238108],[15.67153,45.834154],[15.323954,45.731783],[15.327675,45.452316],[14.935244,45.471695],[14.595109,45.634941],[14.411968,45.466166],[13.71506,45.500324],[13.93763,45.591016],[13.69811,46.016778],[13.806475,46.509306]]]}},{"type":"Feature","id":"SWE","properties":{"name":"Sweden"},"geometry":{"type":"MultiPolygon","coordinates":[[[[22.183173,65.723741],[21.213517,65.026005],[21.369631,64.413588],[19.778876,63.609554],[17.847779,62.7494],[17.119555,61.341166],[17.831346,60.636583],[18.787722,60.081914],[17.869225,58.953766],[16.829185,58.719827],[16.44771,57.041118],[15.879786,56.104302],[14.666681,56.200885],[14.100721,55.407781],[12.942911,55.361737],[12.625101,56.30708],[11.787942,57.441817],[11.027369,58.856149],[11.468272,59.432393],[12.300366,60.117933],[12.631147,61.293572],[11.992064,61.800362],[11.930569,63.128318],[12.579935,64.066219],[13.571916,64.049114],[13.919905,64.445421],[13.55569,64.787028],[15.108411,66.193867],[16.108712,67.302456],[16.768879,68.013937],[17.729182,68.010552],[17.993868,68.567391],[19.87856,68.407194],[20.025269,69.065139],[20.645593,69.106247],[21.978535,68.616846],[23.539473,67.936009],[23.56588,66.396051],[23.903379,66.006927],[22.183173,65.723741]]],[[[17.061767,57.385783],[17.210083,57.326521],[16.430053,56.179196],[16.364135,56.556455],[17.061767,57.385783]]],[[[19.35791,57.958588],[18.8031,57.651279],[18.825073,57.444949],[18.995361,57.441993],[18.951416,57.370976],[18.693237,57.305756],[18.709716,57.204734],[18.462524,57.127295],[18.319702,56.926992],[18.105468,56.891003],[18.187866,57.109402],[18.072509,57.267163],[18.154907,57.394664],[18.094482,57.545312],[18.660278,57.929434],[19.039306,57.941098],[19.105224,57.993543],[19.374389,57.996454],[19.35791,57.958588]]],[[[20.846557,63.82371],[21.066284,63.829768],[20.9729,63.71567],[20.824584,63.579121],[20.695495,63.59134],[20.819091,63.714454],[20.799865,63.780059],[20.846557,63.82371]]]]}},{"type":"Feature","id":"SWZ","properties":{"name":"Swaziland"},"geometry":{"type":"Polygon","coordinates":[[[32.071665,-26.73382],[31.86806,-27.177927],[31.282773,-27.285879],[30.685962,-26.743845],[30.676609,-26.398078],[30.949667,-26.022649],[31.04408,-25.731452],[31.333158,-25.660191],[31.837778,-25.843332],[31.985779,-26.29178],[32.071665,-26.73382]]]}},{"type":"Feature","id":"SYR","properties":{"name":"Syria"},"geometry":{"type":"Polygon","coordinates":[[[38.792341,33.378686],[36.834062,32.312938],[35.719918,32.709192],[35.700798,32.716014],[35.836397,32.868123],[35.821101,33.277426],[36.06646,33.824912],[36.61175,34.201789],[36.448194,34.593935],[35.998403,34.644914],[35.905023,35.410009],[36.149763,35.821535],[36.41755,36.040617],[36.685389,36.259699],[36.739494,36.81752],[37.066761,36.623036],[38.167727,36.90121],[38.699891,36.712927],[39.52258,36.716054],[40.673259,37.091276],[41.212089,37.074352],[42.349591,37.229873],[41.837064,36.605854],[41.289707,36.358815],[41.383965,35.628317],[41.006159,34.419372],[38.792341,33.378686]]]}},{"type":"Feature","id":"TCD","properties":{"name":"Chad"},"geometry":{"type":"Polygon","coordinates":[[[14.495787,12.859396],[14.595781,13.330427],[13.954477,13.353449],[13.956699,13.996691],[13.540394,14.367134],[13.97217,15.68437],[15.247731,16.627306],[15.300441,17.92795],[15.685741,19.95718],[15.903247,20.387619],[15.487148,20.730415],[15.47106,21.04845],[15.096888,21.308519],[14.8513,22.86295],[15.86085,23.40972],[19.84926,21.49509],[23.83766,19.58047],[23.88689,15.61084],[23.02459,15.68072],[22.56795,14.94429],[22.30351,14.32682],[22.51202,14.09318],[22.18329,13.78648],[22.29658,13.37232],[22.03759,12.95546],[21.93681,12.58818],[22.28801,12.64605],[22.49762,12.26024],[22.50869,11.67936],[22.87622,11.38461],[22.864165,11.142395],[22.231129,10.971889],[21.723822,10.567056],[21.000868,9.475985],[20.059685,9.012706],[19.094008,9.074847],[18.81201,8.982915],[18.911022,8.630895],[18.389555,8.281304],[17.96493,7.890914],[16.705988,7.508328],[16.456185,7.734774],[16.290562,7.754307],[16.106232,7.497088],[15.27946,7.421925],[15.436092,7.692812],[15.120866,8.38215],[14.979996,8.796104],[14.544467,8.965861],[13.954218,9.549495],[14.171466,10.021378],[14.627201,9.920919],[14.909354,9.992129],[15.467873,9.982337],[14.923565,10.891325],[14.960152,11.555574],[14.89336,12.21905],[14.495787,12.859396]]]}},{"type":"Feature","id":"TGO","properties":{"name":"Togo"},"geometry":{"type":"Polygon","coordinates":[[[1.865241,6.142158],[1.060122,5.928837],[0.836931,6.279979],[0.570384,6.914359],[0.490957,7.411744],[0.712029,8.312465],[0.461192,8.677223],[0.365901,9.465004],[0.36758,10.191213],[-0.049785,10.706918],[0.023803,11.018682],[0.899563,10.997339],[0.772336,10.470808],[1.077795,10.175607],[1.425061,9.825395],[1.463043,9.334624],[1.664478,9.12859],[1.618951,6.832038],[1.865241,6.142158]]]}},{"type":"Feature","id":"THA","properties":{"name":"Thailand"},"geometry":{"type":"Polygon","coordinates":[[[102.584932,12.186595],[101.687158,12.64574],[100.83181,12.627085],[100.978467,13.412722],[100.097797,13.406856],[100.018733,12.307001],[99.478921,10.846367],[99.153772,9.963061],[99.222399,9.239255],[99.873832,9.207862],[100.279647,8.295153],[100.459274,7.429573],[101.017328,6.856869],[101.623079,6.740622],[102.141187,6.221636],[101.814282,5.810808],[101.154219,5.691384],[101.075516,6.204867],[100.259596,6.642825],[100.085757,6.464489],[99.690691,6.848213],[99.519642,7.343454],[98.988253,7.907993],[98.503786,8.382305],[98.339662,7.794512],[98.150009,8.350007],[98.25915,8.973923],[98.553551,9.93296],[99.038121,10.960546],[99.587286,11.892763],[99.196354,12.804748],[99.212012,13.269294],[99.097755,13.827503],[98.430819,14.622028],[98.192074,15.123703],[98.537376,15.308497],[98.903348,16.177824],[98.493761,16.837836],[97.859123,17.567946],[97.375896,18.445438],[97.797783,18.62708],[98.253724,19.708203],[98.959676,19.752981],[99.543309,20.186598],[100.115988,20.41785],[100.548881,20.109238],[100.606294,19.508344],[101.282015,19.462585],[101.035931,18.408928],[101.059548,17.512497],[102.113592,18.109102],[102.413005,17.932782],[102.998706,17.961695],[103.200192,18.309632],[103.956477,18.240954],[104.716947,17.428859],[104.779321,16.441865],[105.589039,15.570316],[105.544338,14.723934],[105.218777,14.273212],[104.281418,14.416743],[102.988422,14.225721],[102.348099,13.394247],[102.584932,12.186595]]]}},{"type":"Feature","id":"TJK","properties":{"name":"Tajikistan"},"geometry":{"type":"Polygon","coordinates":[[[71.014198,40.244366],[70.648019,39.935754],[69.55961,40.103211],[69.464887,39.526683],[70.549162,39.604198],[71.784694,39.279463],[73.675379,39.431237],[73.928852,38.505815],[74.257514,38.606507],[74.864816,38.378846],[74.829986,37.990007],[74.980002,37.41999],[73.948696,37.421566],[73.260056,37.495257],[72.63689,37.047558],[72.193041,36.948288],[71.844638,36.738171],[71.448693,37.065645],[71.541918,37.905774],[71.239404,37.953265],[71.348131,38.258905],[70.806821,38.486282],[70.376304,38.138396],[70.270574,37.735165],[70.116578,37.588223],[69.518785,37.608997],[69.196273,37.151144],[68.859446,37.344336],[68.135562,37.023115],[67.83,37.144994],[68.392033,38.157025],[68.176025,38.901553],[67.44222,39.140144],[67.701429,39.580478],[68.536416,39.533453],[69.011633,40.086158],[69.329495,40.727824],[70.666622,40.960213],[70.45816,40.496495],[70.601407,40.218527],[71.014198,40.244366]]]}},{"type":"Feature","id":"TKM","properties":{"name":"Turkmenistan"},"geometry":{"type":"Polygon","coordinates":[[[61.210817,35.650072],[61.123071,36.491597],[60.377638,36.527383],[59.234762,37.412988],[58.436154,37.522309],[57.330434,38.029229],[56.619366,38.121394],[56.180375,37.935127],[55.511578,37.964117],[54.800304,37.392421],[53.921598,37.198918],[53.735511,37.906136],[53.880929,38.952093],[53.101028,39.290574],[53.357808,39.975286],[52.693973,40.033629],[52.915251,40.876523],[53.858139,40.631034],[54.736845,40.951015],[54.008311,41.551211],[53.721713,42.123191],[52.91675,41.868117],[52.814689,41.135371],[52.50246,41.783316],[52.944293,42.116034],[54.079418,42.324109],[54.755345,42.043971],[55.455251,41.259859],[55.968191,41.308642],[57.096391,41.32231],[56.932215,41.826026],[57.78653,42.170553],[58.629011,42.751551],[59.976422,42.223082],[60.083341,41.425146],[60.465953,41.220327],[61.547179,41.26637],[61.882714,41.084857],[62.37426,40.053886],[63.518015,39.363257],[64.170223,38.892407],[65.215999,38.402695],[66.54615,37.974685],[66.518607,37.362784],[66.217385,37.39379],[65.745631,37.661164],[65.588948,37.305217],[64.746105,37.111818],[64.546479,36.312073],[63.982896,36.007957],[63.193538,35.857166],[62.984662,35.404041],[62.230651,35.270664],[61.210817,35.650072]]]}},{"type":"Feature","id":"TLS","properties":{"name":"East Timor"},"geometry":{"type":"Polygon","coordinates":[[[124.968682,-8.89279],[125.086246,-8.656887],[125.947072,-8.432095],[126.644704,-8.398247],[126.957243,-8.273345],[127.335928,-8.397317],[126.967992,-8.668256],[125.925885,-9.106007],[125.08852,-9.393173],[125.07002,-9.089987],[124.968682,-8.89279]]]}},{"type":"Feature","id":"TTO","properties":{"name":"Trinidad and Tobago"},"geometry":{"type":"Polygon","coordinates":[[[-61.68,10.76],[-61.105,10.89],[-60.895,10.855],[-60.935,10.11],[-61.77,10],[-61.95,10.09],[-61.66,10.365],[-61.68,10.76]]]}},{"type":"Feature","id":"TUN","properties":{"name":"Tunisia"},"geometry":{"type":"Polygon","coordinates":[[[9.48214,30.307556],[9.055603,32.102692],[8.439103,32.506285],[8.430473,32.748337],[7.612642,33.344115],[7.524482,34.097376],[8.140981,34.655146],[8.376368,35.479876],[8.217824,36.433177],[8.420964,36.946427],[9.509994,37.349994],[10.210002,37.230002],[10.18065,36.724038],[11.028867,37.092103],[11.100026,36.899996],[10.600005,36.41],[10.593287,35.947444],[10.939519,35.698984],[10.807847,34.833507],[10.149593,34.330773],[10.339659,33.785742],[10.856836,33.76874],[11.108501,33.293343],[11.488787,33.136996],[11.432253,32.368903],[10.94479,32.081815],[10.636901,31.761421],[9.950225,31.37607],[10.056575,30.961831],[9.970017,30.539325],[9.48214,30.307556]]]}},{"type":"Feature","id":"TUR","properties":{"name":"Turkey"},"geometry":{"type":"MultiPolygon","coordinates":[[[[36.913127,41.335358],[38.347665,40.948586],[39.512607,41.102763],[40.373433,41.013673],[41.554084,41.535656],[42.619549,41.583173],[43.582746,41.092143],[43.752658,40.740201],[43.656436,40.253564],[44.400009,40.005],[44.79399,39.713003],[44.109225,39.428136],[44.421403,38.281281],[44.225756,37.971584],[44.772699,37.170445],[44.293452,37.001514],[43.942259,37.256228],[42.779126,37.385264],[42.349591,37.229873],[41.212089,37.074352],[40.673259,37.091276],[39.52258,36.716054],[38.699891,36.712927],[38.167727,36.90121],[37.066761,36.623036],[36.739494,36.81752],[36.685389,36.259699],[36.41755,36.040617],[36.149763,35.821535],[35.782085,36.274995],[36.160822,36.650606],[35.550936,36.565443],[34.714553,36.795532],[34.026895,36.21996],[32.509158,36.107564],[31.699595,36.644275],[30.621625,36.677865],[30.391096,36.262981],[29.699976,36.144357],[28.732903,36.676831],[27.641187,36.658822],[27.048768,37.653361],[26.318218,38.208133],[26.8047,38.98576],[26.170785,39.463612],[27.28002,40.420014],[28.819978,40.460011],[29.240004,41.219991],[31.145934,41.087622],[32.347979,41.736264],[33.513283,42.01896],[35.167704,42.040225],[36.913127,41.335358]]],[[[27.192377,40.690566],[26.358009,40.151994],[26.043351,40.617754],[26.056942,40.824123],[26.294602,40.936261],[26.604196,41.562115],[26.117042,41.826905],[27.135739,42.141485],[27.99672,42.007359],[28.115525,41.622886],[28.988443,41.299934],[28.806438,41.054962],[27.619017,40.999823],[27.192377,40.690566]]]]}},{"type":"Feature","id":"TWN","properties":{"name":"Taiwan"},"geometry":{"type":"Polygon","coordinates":[[[121.777818,24.394274],[121.175632,22.790857],[120.74708,21.970571],[120.220083,22.814861],[120.106189,23.556263],[120.69468,24.538451],[121.495044,25.295459],[121.951244,24.997596],[121.777818,24.394274]]]}},{"type":"Feature","id":"TZA","properties":{"name":"United Republic of Tanzania"},"geometry":{"type":"Polygon","coordinates":[[[33.903711,-0.95],[34.07262,-1.05982],[37.69869,-3.09699],[37.7669,-3.67712],[39.20222,-4.67677],[38.74054,-5.90895],[38.79977,-6.47566],[39.44,-6.84],[39.47,-7.1],[39.19469,-7.7039],[39.25203,-8.00781],[39.18652,-8.48551],[39.53574,-9.11237],[39.9496,-10.0984],[40.31659,-10.3171],[39.521,-10.89688],[38.427557,-11.285202],[37.82764,-11.26879],[37.47129,-11.56876],[36.775151,-11.594537],[36.514082,-11.720938],[35.312398,-11.439146],[34.559989,-11.52002],[34.28,-10.16],[33.940838,-9.693674],[33.73972,-9.41715],[32.759375,-9.230599],[32.191865,-8.930359],[31.556348,-8.762049],[31.157751,-8.594579],[30.74,-8.34],[30.2,-7.08],[29.62,-6.52],[29.419993,-5.939999],[29.519987,-5.419979],[29.339998,-4.499983],[29.753512,-4.452389],[30.11632,-4.09012],[30.50554,-3.56858],[30.75224,-3.35931],[30.74301,-3.03431],[30.52766,-2.80762],[30.46967,-2.41383],[30.758309,-2.28725],[30.816135,-1.698914],[30.419105,-1.134659],[30.76986,-1.01455],[31.86617,-1.02736],[33.903711,-0.95]]]}},{"type":"Feature","id":"UGA","properties":{"name":"Uganda"},"geometry":{"type":"Polygon","coordinates":[[[31.86617,-1.02736],[30.76986,-1.01455],[30.419105,-1.134659],[29.821519,-1.443322],[29.579466,-1.341313],[29.587838,-0.587406],[29.8195,-0.2053],[29.875779,0.59738],[30.086154,1.062313],[30.468508,1.583805],[30.85267,1.849396],[31.174149,2.204465],[30.77332,2.33989],[30.83385,3.50917],[31.24556,3.7819],[31.88145,3.55827],[32.68642,3.79232],[33.39,3.79],[34.005,4.249885],[34.47913,3.5556],[34.59607,3.05374],[35.03599,1.90584],[34.6721,1.17694],[34.18,0.515],[33.893569,0.109814],[33.903711,-0.95],[31.86617,-1.02736]]]}},{"type":"Feature","id":"UKR","properties":{"name":"Ukraine"},"geometry":{"type":"Polygon","coordinates":[[[31.785998,52.101678],[32.159412,52.061267],[32.412058,52.288695],[32.715761,52.238465],[33.7527,52.335075],[34.391731,51.768882],[34.141978,51.566413],[34.224816,51.255993],[35.022183,51.207572],[35.377924,50.773955],[35.356116,50.577197],[36.626168,50.225591],[37.39346,50.383953],[38.010631,49.915662],[38.594988,49.926462],[40.069058,49.601055],[40.080789,49.30743],[39.674664,48.783818],[39.895632,48.232405],[39.738278,47.898937],[38.770585,47.825608],[38.255112,47.5464],[38.223538,47.10219],[37.425137,47.022221],[36.759855,46.6987],[35.823685,46.645964],[35.0518798828125,46.263442671779885],[34.87060546875,46.229253045075275],[34.5849609375,45.98551218814564],[34.024658203125,46.118941506107056],[33.62365722656249,46.20264638061019],[33.497314453125,46.03510927947334],[33.2061767578125,46.15319980124842],[32.4481201171875,46.07323062540838],[31.74414,46.333348],[31.675307,46.706245],[30.748749,46.5831],[30.377609,46.03241],[29.603289,45.293308],[29.149725,45.464925],[28.679779,45.304031],[28.233554,45.488283],[28.485269,45.596907],[28.659987,45.939987],[28.933717,46.25883],[28.862972,46.437889],[29.072107,46.517678],[29.170654,46.379262],[29.759972,46.349988],[30.024659,46.423937],[29.83821,46.525326],[29.908852,46.674361],[29.559674,46.928583],[29.415135,47.346645],[29.050868,47.510227],[29.122698,47.849095],[28.670891,48.118149],[28.259547,48.155562],[27.522537,48.467119],[26.857824,48.368211],[26.619337,48.220726],[26.19745,48.220881],[25.945941,47.987149],[25.207743,47.891056],[24.866317,47.737526],[24.402056,47.981878],[23.760958,47.985598],[23.142236,48.096341],[22.710531,47.882194],[22.64082,48.15024],[22.085608,48.422264],[22.280842,48.825392],[22.558138,49.085738],[22.776419,49.027395],[22.51845,49.476774],[23.426508,50.308506],[23.922757,50.424881],[24.029986,50.705407],[23.527071,51.578454],[24.005078,51.617444],[24.553106,51.888461],[25.327788,51.910656],[26.337959,51.832289],[27.454066,51.592303],[28.241615,51.572227],[28.617613,51.427714],[28.992835,51.602044],[29.254938,51.368234],[30.157364,51.416138],[30.555117,51.319503],[30.619454,51.822806],[30.927549,52.042353],[31.785998,52.101678]]]}},{"type":"Feature","id":"URY","properties":{"name":"Uruguay"},"geometry":{"type":"Polygon","coordinates":[[[-57.625133,-30.216295],[-56.976026,-30.109686],[-55.973245,-30.883076],[-55.60151,-30.853879],[-54.572452,-31.494511],[-53.787952,-32.047243],[-53.209589,-32.727666],[-53.650544,-33.202004],[-53.373662,-33.768378],[-53.806426,-34.396815],[-54.935866,-34.952647],[-55.67409,-34.752659],[-56.215297,-34.859836],[-57.139685,-34.430456],[-57.817861,-34.462547],[-58.427074,-33.909454],[-58.349611,-33.263189],[-58.132648,-33.040567],[-58.14244,-32.044504],[-57.874937,-31.016556],[-57.625133,-30.216295]]]}},{"type":"Feature","id":"USA","properties":{"name":"United States of America"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-155.54211,19.08348],[-155.68817,18.91619],[-155.93665,19.05939],[-155.90806,19.33888],[-156.07347,19.70294],[-156.02368,19.81422],[-155.85008,19.97729],[-155.91907,20.17395],[-155.86108,20.26721],[-155.78505,20.2487],[-155.40214,20.07975],[-155.22452,19.99302],[-155.06226,19.8591],[-154.80741,19.50871],[-154.83147,19.45328],[-155.22217,19.23972],[-155.54211,19.08348]]],[[[-156.07926,20.64397],[-156.41445,20.57241],[-156.58673,20.783],[-156.70167,20.8643],[-156.71055,20.92676],[-156.61258,21.01249],[-156.25711,20.91745],[-155.99566,20.76404],[-156.07926,20.64397]]],[[[-156.75824,21.17684],[-156.78933,21.06873],[-157.32521,21.09777],[-157.25027,21.21958],[-156.75824,21.17684]]],[[[-157.65283,21.32217],[-157.70703,21.26442],[-157.7786,21.27729],[-158.12667,21.31244],[-158.2538,21.53919],[-158.29265,21.57912],[-158.0252,21.71696],[-157.94161,21.65272],[-157.65283,21.32217]]],[[[-159.34512,21.982],[-159.46372,21.88299],[-159.80051,22.06533],[-159.74877,22.1382],[-159.5962,22.23618],[-159.36569,22.21494],[-159.34512,21.982]]],[[[-94.81758,49.38905],[-94.64,48.84],[-94.32914,48.67074],[-93.63087,48.60926],[-92.61,48.45],[-91.64,48.14],[-90.83,48.27],[-89.6,48.01],[-89.272917,48.019808],[-88.378114,48.302918],[-87.439793,47.94],[-86.461991,47.553338],[-85.652363,47.220219],[-84.87608,46.900083],[-84.779238,46.637102],[-84.543749,46.538684],[-84.6049,46.4396],[-84.3367,46.40877],[-84.14212,46.512226],[-84.091851,46.275419],[-83.890765,46.116927],[-83.616131,46.116927],[-83.469551,45.994686],[-83.592851,45.816894],[-82.550925,45.347517],[-82.337763,44.44],[-82.137642,43.571088],[-82.43,42.98],[-82.9,42.43],[-83.12,42.08],[-83.142,41.975681],[-83.02981,41.832796],[-82.690089,41.675105],[-82.439278,41.675105],[-81.277747,42.209026],[-80.247448,42.3662],[-78.939362,42.863611],[-78.92,42.965],[-79.01,43.27],[-79.171674,43.466339],[-78.72028,43.625089],[-77.737885,43.629056],[-76.820034,43.628784],[-76.5,44.018459],[-76.375,44.09631],[-75.31821,44.81645],[-74.867,45.00048],[-73.34783,45.00738],[-71.50506,45.0082],[-71.405,45.255],[-71.08482,45.30524],[-70.66,45.46],[-70.305,45.915],[-69.99997,46.69307],[-69.237216,47.447781],[-68.905,47.185],[-68.23444,47.35486],[-67.79046,47.06636],[-67.79134,45.70281],[-67.13741,45.13753],[-66.96466,44.8097],[-68.03252,44.3252],[-69.06,43.98],[-70.11617,43.68405],[-70.645476,43.090238],[-70.81489,42.8653],[-70.825,42.335],[-70.495,41.805],[-70.08,41.78],[-70.185,42.145],[-69.88497,41.92283],[-69.96503,41.63717],[-70.64,41.475],[-71.12039,41.49445],[-71.86,41.32],[-72.295,41.27],[-72.87643,41.22065],[-73.71,40.931102],[-72.24126,41.11948],[-71.945,40.93],[-73.345,40.63],[-73.982,40.628],[-73.952325,40.75075],[-74.25671,40.47351],[-73.96244,40.42763],[-74.17838,39.70926],[-74.90604,38.93954],[-74.98041,39.1964],[-75.20002,39.24845],[-75.52805,39.4985],[-75.32,38.96],[-75.071835,38.782032],[-75.05673,38.40412],[-75.37747,38.01551],[-75.94023,37.21689],[-76.03127,37.2566],[-75.72205,37.93705],[-76.23287,38.319215],[-76.35,39.15],[-76.542725,38.717615],[-76.32933,38.08326],[-76.989998,38.239992],[-76.30162,37.917945],[-76.25874,36.9664],[-75.9718,36.89726],[-75.86804,36.55125],[-75.72749,35.55074],[-76.36318,34.80854],[-77.397635,34.51201],[-78.05496,33.92547],[-78.55435,33.86133],[-79.06067,33.49395],[-79.20357,33.15839],[-80.301325,32.509355],[-80.86498,32.0333],[-81.33629,31.44049],[-81.49042,30.72999],[-81.31371,30.03552],[-80.98,29.18],[-80.535585,28.47213],[-80.53,28.04],[-80.056539,26.88],[-80.088015,26.205765],[-80.13156,25.816775],[-80.38103,25.20616],[-80.68,25.08],[-81.17213,25.20126],[-81.33,25.64],[-81.71,25.87],[-82.24,26.73],[-82.70515,27.49504],[-82.85526,27.88624],[-82.65,28.55],[-82.93,29.1],[-83.70959,29.93656],[-84.1,30.09],[-85.10882,29.63615],[-85.28784,29.68612],[-85.7731,30.15261],[-86.4,30.4],[-87.53036,30.27433],[-88.41782,30.3849],[-89.18049,30.31598],[-89.593831,30.159994],[-89.413735,29.89419],[-89.43,29.48864],[-89.21767,29.29108],[-89.40823,29.15961],[-89.77928,29.30714],[-90.15463,29.11743],[-90.880225,29.148535],[-91.626785,29.677],[-92.49906,29.5523],[-93.22637,29.78375],[-93.84842,29.71363],[-94.69,29.48],[-95.60026,28.73863],[-96.59404,28.30748],[-97.14,27.83],[-97.37,27.38],[-97.38,26.69],[-97.33,26.21],[-97.14,25.87],[-97.53,25.84],[-98.24,26.06],[-99.02,26.37],[-99.3,26.84],[-99.52,27.54],[-100.11,28.11],[-100.45584,28.69612],[-100.9576,29.38071],[-101.6624,29.7793],[-102.48,29.76],[-103.11,28.97],[-103.94,29.27],[-104.45697,29.57196],[-104.70575,30.12173],[-105.03737,30.64402],[-105.63159,31.08383],[-106.1429,31.39995],[-106.50759,31.75452],[-108.24,31.754854],[-108.24194,31.34222],[-109.035,31.34194],[-111.02361,31.33472],[-113.30498,32.03914],[-114.815,32.52528],[-114.72139,32.72083],[-115.99135,32.61239],[-117.12776,32.53534],[-117.295938,33.046225],[-117.944,33.621236],[-118.410602,33.740909],[-118.519895,34.027782],[-119.081,34.078],[-119.438841,34.348477],[-120.36778,34.44711],[-120.62286,34.60855],[-120.74433,35.15686],[-121.71457,36.16153],[-122.54747,37.55176],[-122.51201,37.78339],[-122.95319,38.11371],[-123.7272,38.95166],[-123.86517,39.76699],[-124.39807,40.3132],[-124.17886,41.14202],[-124.2137,41.99964],[-124.53284,42.76599],[-124.14214,43.70838],[-124.020535,44.615895],[-123.89893,45.52341],[-124.079635,46.86475],[-124.39567,47.72017],[-124.68721,48.184433],[-124.566101,48.379715],[-123.12,48.04],[-122.58736,47.096],[-122.34,47.36],[-122.5,48.18],[-122.84,49],[-120,49],[-117.03121,49],[-116.04818,49],[-113,49],[-110.05,49],[-107.05,49],[-104.04826,48.99986],[-100.65,49],[-97.22872,49.0007],[-95.15907,49],[-95.15609,49.38425],[-94.81758,49.38905]]],[[[-153.006314,57.115842],[-154.00509,56.734677],[-154.516403,56.992749],[-154.670993,57.461196],[-153.76278,57.816575],[-153.228729,57.968968],[-152.564791,57.901427],[-152.141147,57.591059],[-153.006314,57.115842]]],[[[-165.579164,59.909987],[-166.19277,59.754441],[-166.848337,59.941406],[-167.455277,60.213069],[-166.467792,60.38417],[-165.67443,60.293607],[-165.579164,59.909987]]],[[[-171.731657,63.782515],[-171.114434,63.592191],[-170.491112,63.694975],[-169.682505,63.431116],[-168.689439,63.297506],[-168.771941,63.188598],[-169.52944,62.976931],[-170.290556,63.194438],[-170.671386,63.375822],[-171.553063,63.317789],[-171.791111,63.405846],[-171.731657,63.782515]]],[[[-155.06779,71.147776],[-154.344165,70.696409],[-153.900006,70.889989],[-152.210006,70.829992],[-152.270002,70.600006],[-150.739992,70.430017],[-149.720003,70.53001],[-147.613362,70.214035],[-145.68999,70.12001],[-144.920011,69.989992],[-143.589446,70.152514],[-142.07251,69.851938],[-140.985988,69.711998],[-140.985988,69.711998],[-140.992499,66.000029],[-140.99777,60.306397],[-140.012998,60.276838],[-139.039,60.000007],[-138.34089,59.56211],[-137.4525,58.905],[-136.47972,59.46389],[-135.47583,59.78778],[-134.945,59.27056],[-134.27111,58.86111],[-133.355549,58.410285],[-132.73042,57.69289],[-131.70781,56.55212],[-130.00778,55.91583],[-129.979994,55.284998],[-130.53611,54.802753],[-131.085818,55.178906],[-131.967211,55.497776],[-132.250011,56.369996],[-133.539181,57.178887],[-134.078063,58.123068],[-135.038211,58.187715],[-136.628062,58.212209],[-137.800006,58.499995],[-139.867787,59.537762],[-140.825274,59.727517],[-142.574444,60.084447],[-143.958881,59.99918],[-145.925557,60.45861],[-147.114374,60.884656],[-148.224306,60.672989],[-148.018066,59.978329],[-148.570823,59.914173],[-149.727858,59.705658],[-150.608243,59.368211],[-151.716393,59.155821],[-151.859433,59.744984],[-151.409719,60.725803],[-150.346941,61.033588],[-150.621111,61.284425],[-151.895839,60.727198],[-152.57833,60.061657],[-154.019172,59.350279],[-153.287511,58.864728],[-154.232492,58.146374],[-155.307491,57.727795],[-156.308335,57.422774],[-156.556097,56.979985],[-158.117217,56.463608],[-158.433321,55.994154],[-159.603327,55.566686],[-160.28972,55.643581],[-161.223048,55.364735],[-162.237766,55.024187],[-163.069447,54.689737],[-164.785569,54.404173],[-164.942226,54.572225],[-163.84834,55.039431],[-162.870001,55.348043],[-161.804175,55.894986],[-160.563605,56.008055],[-160.07056,56.418055],[-158.684443,57.016675],[-158.461097,57.216921],[-157.72277,57.570001],[-157.550274,58.328326],[-157.041675,58.918885],[-158.194731,58.615802],[-158.517218,58.787781],[-159.058606,58.424186],[-159.711667,58.93139],[-159.981289,58.572549],[-160.355271,59.071123],[-161.355003,58.670838],[-161.968894,58.671665],[-162.054987,59.266925],[-161.874171,59.633621],[-162.518059,59.989724],[-163.818341,59.798056],[-164.662218,60.267484],[-165.346388,60.507496],[-165.350832,61.073895],[-166.121379,61.500019],[-165.734452,62.074997],[-164.919179,62.633076],[-164.562508,63.146378],[-163.753332,63.219449],[-163.067224,63.059459],[-162.260555,63.541936],[-161.53445,63.455817],[-160.772507,63.766108],[-160.958335,64.222799],[-161.518068,64.402788],[-160.777778,64.788604],[-161.391926,64.777235],[-162.45305,64.559445],[-162.757786,64.338605],[-163.546394,64.55916],[-164.96083,64.446945],[-166.425288,64.686672],[-166.845004,65.088896],[-168.11056,65.669997],[-166.705271,66.088318],[-164.47471,66.57666],[-163.652512,66.57666],[-163.788602,66.077207],[-161.677774,66.11612],[-162.489715,66.735565],[-163.719717,67.116395],[-164.430991,67.616338],[-165.390287,68.042772],[-166.764441,68.358877],[-166.204707,68.883031],[-164.430811,68.915535],[-163.168614,69.371115],[-162.930566,69.858062],[-161.908897,70.33333],[-160.934797,70.44769],[-159.039176,70.891642],[-158.119723,70.824721],[-156.580825,71.357764],[-155.06779,71.147776]]]]}},{"type":"Feature","id":"UZB","properties":{"name":"Uzbekistan"},"geometry":{"type":"Polygon","coordinates":[[[66.518607,37.362784],[66.54615,37.974685],[65.215999,38.402695],[64.170223,38.892407],[63.518015,39.363257],[62.37426,40.053886],[61.882714,41.084857],[61.547179,41.26637],[60.465953,41.220327],[60.083341,41.425146],[59.976422,42.223082],[58.629011,42.751551],[57.78653,42.170553],[56.932215,41.826026],[57.096391,41.32231],[55.968191,41.308642],[55.928917,44.995858],[58.503127,45.586804],[58.689989,45.500014],[60.239972,44.784037],[61.05832,44.405817],[62.0133,43.504477],[63.185787,43.650075],[64.900824,43.728081],[66.098012,42.99766],[66.023392,41.994646],[66.510649,41.987644],[66.714047,41.168444],[67.985856,41.135991],[68.259896,40.662325],[68.632483,40.668681],[69.070027,41.384244],[70.388965,42.081308],[70.962315,42.266154],[71.259248,42.167711],[70.420022,41.519998],[71.157859,41.143587],[71.870115,41.3929],[73.055417,40.866033],[71.774875,40.145844],[71.014198,40.244366],[70.601407,40.218527],[70.45816,40.496495],[70.666622,40.960213],[69.329495,40.727824],[69.011633,40.086158],[68.536416,39.533453],[67.701429,39.580478],[67.44222,39.140144],[68.176025,38.901553],[68.392033,38.157025],[67.83,37.144994],[67.075782,37.356144],[66.518607,37.362784]]]}},{"type":"Feature","id":"VEN","properties":{"name":"Venezuela"},"geometry":{"type":"Polygon","coordinates":[[[-71.331584,11.776284],[-71.360006,11.539994],[-71.94705,11.423282],[-71.620868,10.96946],[-71.633064,10.446494],[-72.074174,9.865651],[-71.695644,9.072263],[-71.264559,9.137195],[-71.039999,9.859993],[-71.350084,10.211935],[-71.400623,10.968969],[-70.155299,11.375482],[-70.293843,11.846822],[-69.943245,12.162307],[-69.5843,11.459611],[-68.882999,11.443385],[-68.233271,10.885744],[-68.194127,10.554653],[-67.296249,10.545868],[-66.227864,10.648627],[-65.655238,10.200799],[-64.890452,10.077215],[-64.329479,10.389599],[-64.318007,10.641418],[-63.079322,10.701724],[-61.880946,10.715625],[-62.730119,10.420269],[-62.388512,9.948204],[-61.588767,9.873067],[-60.830597,9.38134],[-60.671252,8.580174],[-60.150096,8.602757],[-59.758285,8.367035],[-60.550588,7.779603],[-60.637973,7.415],[-60.295668,7.043911],[-60.543999,6.856584],[-61.159336,6.696077],[-61.139415,6.234297],[-61.410303,5.959068],[-60.733574,5.200277],[-60.601179,4.918098],[-60.966893,4.536468],[-62.08543,4.162124],[-62.804533,4.006965],[-63.093198,3.770571],[-63.888343,4.02053],[-64.628659,4.148481],[-64.816064,4.056445],[-64.368494,3.79721],[-64.408828,3.126786],[-64.269999,2.497006],[-63.422867,2.411068],[-63.368788,2.2009],[-64.083085,1.916369],[-64.199306,1.492855],[-64.611012,1.328731],[-65.354713,1.095282],[-65.548267,0.789254],[-66.325765,0.724452],[-66.876326,1.253361],[-67.181294,2.250638],[-67.447092,2.600281],[-67.809938,2.820655],[-67.303173,3.318454],[-67.337564,3.542342],[-67.621836,3.839482],[-67.823012,4.503937],[-67.744697,5.221129],[-67.521532,5.55687],[-67.34144,6.095468],[-67.695087,6.267318],[-68.265052,6.153268],[-68.985319,6.206805],[-69.38948,6.099861],[-70.093313,6.960376],[-70.674234,7.087785],[-71.960176,6.991615],[-72.198352,7.340431],[-72.444487,7.423785],[-72.479679,7.632506],[-72.360901,8.002638],[-72.439862,8.405275],[-72.660495,8.625288],[-72.78873,9.085027],[-73.304952,9.152],[-73.027604,9.73677],[-72.905286,10.450344],[-72.614658,10.821975],[-72.227575,11.108702],[-71.973922,11.608672],[-71.331584,11.776284]]]}},{"type":"Feature","id":"VNM","properties":{"name":"Vietnam"},"geometry":{"type":"Polygon","coordinates":[[[108.05018,21.55238],[106.715068,20.696851],[105.881682,19.75205],[105.662006,19.058165],[106.426817,18.004121],[107.361954,16.697457],[108.269495,16.079742],[108.877107,15.276691],[109.33527,13.426028],[109.200136,11.666859],[108.36613,11.008321],[107.220929,10.364484],[106.405113,9.53084],[105.158264,8.59976],[104.795185,9.241038],[105.076202,9.918491],[104.334335,10.486544],[105.199915,10.88931],[106.24967,10.961812],[105.810524,11.567615],[107.491403,12.337206],[107.614548,13.535531],[107.382727,14.202441],[107.564525,15.202173],[107.312706,15.908538],[106.556008,16.604284],[105.925762,17.485315],[105.094598,18.666975],[103.896532,19.265181],[104.183388,19.624668],[104.822574,19.886642],[104.435,20.758733],[103.203861,20.766562],[102.754896,21.675137],[102.170436,22.464753],[102.706992,22.708795],[103.504515,22.703757],[104.476858,22.81915],[105.329209,23.352063],[105.811247,22.976892],[106.725403,22.794268],[106.567273,22.218205],[107.04342,21.811899],[108.05018,21.55238]]]}},{"type":"Feature","id":"VUT","properties":{"name":"Vanuatu"},"geometry":{"type":"MultiPolygon","coordinates":[[[[167.844877,-16.466333],[167.515181,-16.59785],[167.180008,-16.159995],[167.216801,-15.891846],[167.844877,-16.466333]]],[[[167.107712,-14.93392],[167.270028,-15.740021],[167.001207,-15.614602],[166.793158,-15.668811],[166.649859,-15.392704],[166.629137,-14.626497],[167.107712,-14.93392]]]]}},{"type":"Feature","id":"PSE","properties":{"name":"West Bank"},"geometry":{"type":"Polygon","coordinates":[[[35.545665,32.393992],[35.545252,31.782505],[35.397561,31.489086],[34.927408,31.353435],[34.970507,31.616778],[35.225892,31.754341],[34.974641,31.866582],[35.18393,32.532511],[35.545665,32.393992]]]}},{"type":"Feature","id":"YEM","properties":{"name":"Yemen"},"geometry":{"type":"Polygon","coordinates":[[[53.108573,16.651051],[52.385206,16.382411],[52.191729,15.938433],[52.168165,15.59742],[51.172515,15.17525],[49.574576,14.708767],[48.679231,14.003202],[48.238947,13.94809],[47.938914,14.007233],[47.354454,13.59222],[46.717076,13.399699],[45.877593,13.347764],[45.62505,13.290946],[45.406459,13.026905],[45.144356,12.953938],[44.989533,12.699587],[44.494576,12.721653],[44.175113,12.58595],[43.482959,12.6368],[43.222871,13.22095],[43.251448,13.767584],[43.087944,14.06263],[42.892245,14.802249],[42.604873,15.213335],[42.805015,15.261963],[42.702438,15.718886],[42.823671,15.911742],[42.779332,16.347891],[43.218375,16.66689],[43.115798,17.08844],[43.380794,17.579987],[43.791519,17.319977],[44.062613,17.410359],[45.216651,17.433329],[45.399999,17.333335],[46.366659,17.233315],[46.749994,17.283338],[47.000005,16.949999],[47.466695,17.116682],[48.183344,18.166669],[49.116672,18.616668],[52.00001,19.000003],[52.782184,17.349742],[53.108573,16.651051]]]}},{"type":"Feature","id":"ZAF","properties":{"name":"South Africa"},"geometry":{"type":"Polygon","coordinates":[[[31.521001,-29.257387],[31.325561,-29.401978],[30.901763,-29.909957],[30.622813,-30.423776],[30.055716,-31.140269],[28.925553,-32.172041],[28.219756,-32.771953],[27.464608,-33.226964],[26.419452,-33.61495],[25.909664,-33.66704],[25.780628,-33.944646],[25.172862,-33.796851],[24.677853,-33.987176],[23.594043,-33.794474],[22.988189,-33.916431],[22.574157,-33.864083],[21.542799,-34.258839],[20.689053,-34.417175],[20.071261,-34.795137],[19.616405,-34.819166],[19.193278,-34.462599],[18.855315,-34.444306],[18.424643,-33.997873],[18.377411,-34.136521],[18.244499,-33.867752],[18.25008,-33.281431],[17.92519,-32.611291],[18.24791,-32.429131],[18.221762,-31.661633],[17.566918,-30.725721],[17.064416,-29.878641],[17.062918,-29.875954],[16.344977,-28.576705],[16.824017,-28.082162],[17.218929,-28.355943],[17.387497,-28.783514],[17.836152,-28.856378],[18.464899,-29.045462],[19.002127,-28.972443],[19.894734,-28.461105],[19.895768,-24.76779],[20.165726,-24.917962],[20.758609,-25.868136],[20.66647,-26.477453],[20.889609,-26.828543],[21.605896,-26.726534],[22.105969,-26.280256],[22.579532,-25.979448],[22.824271,-25.500459],[23.312097,-25.26869],[23.73357,-25.390129],[24.211267,-25.670216],[25.025171,-25.71967],[25.664666,-25.486816],[25.765849,-25.174845],[25.941652,-24.696373],[26.485753,-24.616327],[26.786407,-24.240691],[27.11941,-23.574323],[28.017236,-22.827754],[29.432188,-22.091313],[29.839037,-22.102216],[30.322883,-22.271612],[30.659865,-22.151567],[31.191409,-22.25151],[31.670398,-23.658969],[31.930589,-24.369417],[31.752408,-25.484284],[31.837778,-25.843332],[31.333158,-25.660191],[31.04408,-25.731452],[30.949667,-26.022649],[30.676609,-26.398078],[30.685962,-26.743845],[31.282773,-27.285879],[31.86806,-27.177927],[32.071665,-26.73382],[32.83012,-26.742192],[32.580265,-27.470158],[32.462133,-28.301011],[32.203389,-28.752405],[31.521001,-29.257387]],[[28.978263,-28.955597],[28.5417,-28.647502],[28.074338,-28.851469],[27.532511,-29.242711],[26.999262,-29.875954],[27.749397,-30.645106],[28.107205,-30.545732],[28.291069,-30.226217],[28.8484,-30.070051],[29.018415,-29.743766],[29.325166,-29.257387],[28.978263,-28.955597]]]}},{"type":"Feature","id":"ZMB","properties":{"name":"Zambia"},"geometry":{"type":"Polygon","coordinates":[[[32.759375,-9.230599],[33.231388,-9.676722],[33.485688,-10.525559],[33.31531,-10.79655],[33.114289,-11.607198],[33.306422,-12.435778],[32.991764,-12.783871],[32.688165,-13.712858],[33.214025,-13.97186],[30.179481,-14.796099],[30.274256,-15.507787],[29.516834,-15.644678],[28.947463,-16.043051],[28.825869,-16.389749],[28.467906,-16.4684],[27.598243,-17.290831],[27.044427,-17.938026],[26.706773,-17.961229],[26.381935,-17.846042],[25.264226,-17.73654],[25.084443,-17.661816],[25.07695,-17.578823],[24.682349,-17.353411],[24.033862,-17.295843],[23.215048,-17.523116],[22.562478,-16.898451],[21.887843,-16.08031],[21.933886,-12.898437],[24.016137,-12.911046],[23.930922,-12.565848],[24.079905,-12.191297],[23.904154,-11.722282],[24.017894,-11.237298],[23.912215,-10.926826],[24.257155,-10.951993],[24.314516,-11.262826],[24.78317,-11.238694],[25.418118,-11.330936],[25.75231,-11.784965],[26.553088,-11.92444],[27.16442,-11.608748],[27.388799,-12.132747],[28.155109,-12.272481],[28.523562,-12.698604],[28.934286,-13.248958],[29.699614,-13.257227],[29.616001,-12.178895],[29.341548,-12.360744],[28.642417,-11.971569],[28.372253,-11.793647],[28.49607,-10.789884],[28.673682,-9.605925],[28.449871,-9.164918],[28.734867,-8.526559],[29.002912,-8.407032],[30.346086,-8.238257],[30.740015,-8.340007],[31.157751,-8.594579],[31.556348,-8.762049],[32.191865,-8.930359],[32.759375,-9.230599]]]}},{"type":"Feature","id":"ZWE","properties":{"name":"Zimbabwe"},"geometry":{"type":"Polygon","coordinates":[[[31.191409,-22.25151],[30.659865,-22.151567],[30.322883,-22.271612],[29.839037,-22.102216],[29.432188,-22.091313],[28.794656,-21.639454],[28.02137,-21.485975],[27.727228,-20.851802],[27.724747,-20.499059],[27.296505,-20.39152],[26.164791,-19.293086],[25.850391,-18.714413],[25.649163,-18.536026],[25.264226,-17.73654],[26.381935,-17.846042],[26.706773,-17.961229],[27.044427,-17.938026],[27.598243,-17.290831],[28.467906,-16.4684],[28.825869,-16.389749],[28.947463,-16.043051],[29.516834,-15.644678],[30.274256,-15.507787],[30.338955,-15.880839],[31.173064,-15.860944],[31.636498,-16.07199],[31.852041,-16.319417],[32.328239,-16.392074],[32.847639,-16.713398],[32.849861,-17.979057],[32.654886,-18.67209],[32.611994,-19.419383],[32.772708,-19.715592],[32.659743,-20.30429],[32.508693,-20.395292],[32.244988,-21.116489],[31.191409,-22.25151]]]}}]}')}},n={};function i(t){var r=n[t];if(void 0!==r)return r.exports;var o=n[t]={id:t,loaded:!1,exports:{}};return e[t].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}i.m=e,i.amdD=function(){throw new Error("define cannot be used indirect")},i.amdO={},t=[],i.O=(e,n,r,o)=>{if(!n){var a=1/0;for(u=0;u<t.length;u++){for(var[n,r,o]=t[u],s=!0,l=0;l<n.length;l++)(!1&o||a>=o)&&Object.keys(i.O).every((t=>i.O[t](n[l])))?n.splice(l--,1):(s=!1,o<a&&(a=o));if(s){t.splice(u--,1);var c=r();void 0!==c&&(e=c)}}return e}o=o||0;for(var u=t.length;u>0&&t[u-1][2]>o;u--)t[u]=t[u-1];t[u]=[n,r,o]},i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t={847:0,252:0,165:0};i.O.j=e=>0===t[e];var e=(e,n)=>{var r,o,[a,s,l]=n,c=0;if(a.some((e=>0!==t[e]))){for(r in s)i.o(s,r)&&(i.m[r]=s[r]);if(l)var u=l(i)}for(e&&e(n);c<a.length;c++)o=a[c],i.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return i.O(u)},n=self.webpackChunk=self.webpackChunk||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),i.nc=void 0,i.O(void 0,[252,165],(()=>i(5239))),i.O(void 0,[252,165],(()=>i(7457)));var r=i.O(void 0,[252,165],(()=>i(8647)));r=i.O(r)})();