girder-slicer-cli-web 5.0.10.dev2__tar.gz → 5.0.10.dev6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {girder_slicer_cli_web-5.0.10.dev2/girder_slicer_cli_web.egg-info → girder_slicer_cli_web-5.0.10.dev6}/PKG-INFO +1 -1
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6/girder_slicer_cli_web.egg-info}/PKG-INFO +1 -1
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/slicer_cli_web/web_client/dist/girder-plugin-slicer-cli-web.umd.cjs +3 -3
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/MANIFEST.in +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/README.rst +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/docs/worker_management.rst +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/example-average-color/.dockerignore +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/example-average-color/Dockerfile +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/example-average-color/README.rst +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/example-average-color/average_color/average_color.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/example-average-color/average_color/average_color.xml +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/example-average-color/cli_list.json +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/example-average-color/cli_list.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/example-girder-requests/Dockerfile +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/example-girder-requests/README.rst +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/example-girder-requests/cli_list.json +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/example-girder-requests/cli_list.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/example-girder-requests/girder_requests/girder_requests.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/example-girder-requests/girder_requests/girder_requests.xml +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/girder_slicer_cli_web.egg-info/SOURCES.txt +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/girder_slicer_cli_web.egg-info/dependency_links.txt +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/girder_slicer_cli_web.egg-info/entry_points.txt +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/girder_slicer_cli_web.egg-info/not-zip-safe +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/girder_slicer_cli_web.egg-info/requires.txt +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/girder_slicer_cli_web.egg-info/top_level.txt +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/pyproject.toml +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/setup.cfg +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/setup.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/slicer_cli_web/__init__.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/slicer_cli_web/cli_list_entrypoint.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/slicer_cli_web/cli_utils.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/slicer_cli_web/config.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/slicer_cli_web/ctk_cli_adjustment.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/slicer_cli_web/docker_resource.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/slicer_cli_web/girder_plugin.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/slicer_cli_web/girder_worker_plugin/__init__.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/slicer_cli_web/girder_worker_plugin/cli_progress.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/slicer_cli_web/girder_worker_plugin/direct_docker_run.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/slicer_cli_web/image_job.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/slicer_cli_web/models/__init__.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/slicer_cli_web/models/docker_image.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/slicer_cli_web/models/exceptions.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/slicer_cli_web/models/json_to_xml.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/slicer_cli_web/models/parser.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/slicer_cli_web/models/schema.json +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/slicer_cli_web/prepare_task.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/slicer_cli_web/rest_slicer_cli.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/slicer_cli_web/upload_slicer_cli_task.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/slicer_cli_web/web_client/dist/style.css +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/slicer_cli_web/worker_tools.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/small-docker/.dockerignore +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/small-docker/Dockerfile +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/small-docker/Example1/Example1.json +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/small-docker/Example1/Example1.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/small-docker/Example1/Example1.xml +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/small-docker/Example1/Example1.yaml +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/small-docker/Example2/Example2.json +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/small-docker/Example2/Example2.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/small-docker/Example2/Example2.xml +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/small-docker/Example2/Example2.yaml +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/small-docker/Example3/Example3.json +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/small-docker/Example3/Example3.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/small-docker/Example3/Example3.xml +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/small-docker/Example3/Example3.yaml +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/small-docker/ExampleProgress/ExampleProgress.json +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/small-docker/ExampleProgress/ExampleProgress.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/small-docker/ExampleProgress/progress_helper.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/small-docker/ExampleSubJob/ExampleSubJob.json +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/small-docker/ExampleSubJob/ExampleSubJob.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/small-docker/cli_list.json +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/small-docker/cli_list.py +0 -0
- {girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/utils/xmltojson.py +0 -0
|
@@ -53,16 +53,16 @@
|
|
|
53
53
|
`+e.message}catch{}throw e}function pt(e){if(!e)return``;if(typeof e==`object`){var t=``;for(var n in e)lt.call(e,n)&&(t=t+n+`:`+e[n]+`;`);return t}return e+``}function mt(e){var t=``,n={},r,i;try{var a=e||{};(function(e,a,o,s,c,l,u,d){i=1,r=`/home/circleci/project/girder/plugins/slicer_cli_web/slicer_cli_web/web_client/templates/widget.pug`,n.input=function(e,n,a,o){this&&this.block;var s=this&&this.attributes||{};i=2,r=`/home/circleci/project/girder/plugins/slicer_cli_web/slicer_cli_web/web_client/templates/widget.pug`;var c=`text`;i=3,r=`/home/circleci/project/girder/plugins/slicer_cli_web/slicer_cli_web/web_client/templates/widget.pug`,n===`number`&&(i=4,r=`/home/circleci/project/girder/plugins/slicer_cli_web/slicer_cli_web/web_client/templates/widget.pug`,c=`number`),i=5,r=`/home/circleci/project/girder/plugins/slicer_cli_web/slicer_cli_web/web_client/templates/widget.pug`,n.match(/-vector$/)&&(i=6,r=`/home/circleci/project/girder/plugins/slicer_cli_web/slicer_cli_web/web_client/templates/widget.pug`,o=o.join(`,`)),i=7,r=`/home/circleci/project/girder/plugins/slicer_cli_web/slicer_cli_web/web_client/templates/widget.pug`,t=t+`<input`+at(dt([{class:`form-control`,name:W(e),type:W(c),id:W(a),value:W(o)},s]),!1)+`/>`},i=9,r=`/home/circleci/project/girder/plugins/slicer_cli_web/slicer_cli_web/web_client/templates/widget.pug`,t=t+`<div`+(` class="form-group s-control-item"`+it(`data-type`,u,!0,!1)+it(`data-control-id`,a,!0,!1))+`>`,i=10,r=`/home/circleci/project/girder/plugins/slicer_cli_web/slicer_cli_web/web_client/templates/widget.pug`,i=11,r=`/home/circleci/project/girder/plugins/slicer_cli_web/slicer_cli_web/web_client/templates/widget.pug`,t=t+`<label`+(` class="s-control-widget-label control-label"`+it(`for`,a,!0,!1))+`>`,i=11,r=`/home/circleci/project/girder/plugins/slicer_cli_web/slicer_cli_web/web_client/templates/widget.pug`,t=t+W(l??``)+`</label>`,i=12,r=`/home/circleci/project/girder/plugins/slicer_cli_web/slicer_cli_web/web_client/templates/widget.pug`,i=13,r=`/home/circleci/project/girder/plugins/slicer_cli_web/slicer_cli_web/web_client/templates/widget.pug`,e&&(i=14,r=`/home/circleci/project/girder/plugins/slicer_cli_web/slicer_cli_web/web_client/templates/widget.pug`,t+=`<div class="s-control-widget-description">`,i=14,r=`/home/circleci/project/girder/plugins/slicer_cli_web/slicer_cli_web/web_client/templates/widget.pug`,t=t+W(e??``)+`</div>`),i=15,r=`/home/circleci/project/girder/plugins/slicer_cli_web/slicer_cli_web/web_client/templates/widget.pug`,i=16,r=`/home/circleci/project/girder/plugins/slicer_cli_web/slicer_cli_web/web_client/templates/widget.pug`,n.input.call({attributes:{min:W(s),max:W(o),step:W(c)}},l,u,a,d),t+=`</div>`}).call(this,`description`in a?a.description:typeof description<`u`?description:void 0,`id`in a?a.id:typeof id<`u`?id:void 0,`max`in a?a.max:typeof max<`u`?max:void 0,`min`in a?a.min:typeof min<`u`?min:void 0,`step`in a?a.step:typeof step<`u`?step:void 0,`title`in a?a.title:typeof title<`u`?title:void 0,`type`in a?a.type:typeof type<`u`?type:void 0,`value`in a?a.value:typeof value<`u`?value:void 0)}catch(e){ft(e,r,i)}return t}var ht=c({$:()=>_t,default:()=>_t,jQuery:()=>_t});function gt(e,t){if(e===void 0||!e.document)throw Error(`jQuery requires a window with a document`);var n=[],r=Object.getPrototypeOf,i=n.slice,a=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},o=n.push,s=n.indexOf,c={},l=c.toString,u=c.hasOwnProperty,d=u.toString,f=d.call(Object),p={};function m(e){return e==null?e+``:typeof e==`object`?c[l.call(e)]||`object`:typeof e}function h(e){return e!=null&&e===e.window}function g(e){var t=!!e&&e.length,n=m(e);return typeof e==`function`||h(e)?!1:n===`array`||t===0||typeof t==`number`&&t>0&&t-1 in e}var _=e.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,n){n||=_;var r,i=n.createElement(`script`);for(r in i.text=e,v)t&&t[r]&&(i[r]=t[r]);n.head.appendChild(i).parentNode&&i.parentNode.removeChild(i)}var b=`4.0.0`,x=/HTML$/i,S=function(e,t){return new S.fn.init(e,t)};S.fn=S.prototype={jquery:b,constructor:S,length:0,toArray:function(){return i.call(this)},get:function(e){return e==null?i.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(e){return this.pushStack(S.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()}},S.extend=S.fn.extend=function(){var e,t,n,r,i,a,o=arguments[0]||{},s=1,c=arguments.length,l=!1;for(typeof o==`boolean`&&(l=o,o=arguments[s]||{},s++),typeof o!=`object`&&typeof o!=`function`&&(o={}),s===c&&(o=this,s--);s<c;s++)if((e=arguments[s])!=null)for(t in e)r=e[t],!(t===`__proto__`||o===r)&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=o[t],a=i&&!Array.isArray(n)?[]:!i&&!S.isPlainObject(n)?{}:n,i=!1,o[t]=S.extend(l,a,r)):r!==void 0&&(o[t]=r));return o},S.extend({expando:`jQuery`+(b+Math.random()).replace(/\D/g,``),isReady:!0,error:function(e){throw Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!e||l.call(e)!==`[object Object]`?!1:(t=r(e),t?(n=u.call(t,`constructor`)&&t.constructor,typeof n==`function`&&d.call(n)===f):!0)},isEmptyObject:function(e){for(var t in e)return!1;return!0},globalEval:function(e,t,n){y(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(g(e))for(n=e.length;r<n&&t.call(e[r],r,e[r])!==!1;r++);else for(r in e)if(t.call(e[r],r,e[r])===!1)break;return e},text:function(e){var t,n=``,r=0,i=e.nodeType;if(!i)for(;t=e[r++];)n+=S.text(t);return i===1||i===11?e.textContent:i===9?e.documentElement.textContent:i===3||i===4?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return e!=null&&(g(Object(e))?S.merge(n,typeof e==`string`?[e]:e):o.call(n,e)),n},inArray:function(e,t,n){return t==null?-1:s.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!x.test(t||n&&n.nodeName||`HTML`)},contains:function(e,t){var n=t&&t.parentNode;return e===n||!!(n&&n.nodeType===1&&(e.contains?e.contains(n):e.compareDocumentPosition&&e.compareDocumentPosition(n)&16))},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],a=0,o=e.length,s=!n;a<o;a++)r=!t(e[a],a),r!==s&&i.push(e[a]);return i},map:function(e,t,n){var r,i,o=0,s=[];if(g(e))for(r=e.length;o<r;o++)i=t(e[o],o,n),i!=null&&s.push(i);else for(o in e)i=t(e[o],o,n),i!=null&&s.push(i);return a(s)},guid:1,support:p}),typeof Symbol==`function`&&(S.fn[Symbol.iterator]=n[Symbol.iterator]),S.each(`Boolean Number String Function Array Date RegExp Object Error Symbol`.split(` `),function(e,t){c[`[object `+t+`]`]=t.toLowerCase()});function C(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var w=n.pop,T=`[\\x20\\t\\r\\n\\f]`,E=_.documentMode,D=E&&RegExp(`:enabled|:disabled|\\[`+T+`*name`+T+`*=`+T+`*(?:''|"")`),ee=RegExp(`^`+T+`+|((?:^|[^\\\\])(?:\\\\.)*)`+T+`+$`,`g`),O=`(?:\\\\[\\da-fA-F]{1,6}`+T+`?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+`,te=RegExp(`^`+T+`*([>+~]|`+T+`)`+T+`*`),ne=RegExp(T+`|>`),k=/[+~]/,A=_.documentElement,re=A.matches||A.msMatchesSelector;function j(){var e=[];function t(n,r){return e.push(n+` `)>S.expr.cacheLength&&delete t[e.shift()],t[n+` `]=r}return t}function M(e){return e&&e.getElementsByTagName!==void 0&&e}var ie=`\\[`+T+`*(`+O+`)(?:`+T+`*([*^$|!~]?=)`+T+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+O+`))|)`+T+`*\\]`,N=`:(`+O+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+ie+`)*)|.*)\\)|)`,ae={ID:RegExp(`^#(`+O+`)`),CLASS:RegExp(`^\\.(`+O+`)`),TAG:RegExp(`^(`+O+`|[*])`),ATTR:RegExp(`^`+ie),PSEUDO:RegExp(`^`+N),CHILD:RegExp(`^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(`+T+`*(even|odd|(([+-]|)(\\d*)n|)`+T+`*(?:([+-]|)`+T+`*(\\d+)|))`+T+`*\\)|)`,`i`)},oe=new RegExp(N),P=RegExp(`\\\\[\\da-fA-F]{1,6}`+T+`?|\\\\([^\\r\\n\\f])`,`g`),se=function(e,t){var n=`0x`+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,n&1023|56320))};function ce(e){return e.replace(P,se)}function le(e){S.error(`Syntax error, unrecognized expression: `+e)}var F=RegExp(`^`+T+`*,`+T+`*`),I=j();function ue(e,t){var n,r,i,a,o,s,c,l=I[e+` `];if(l)return t?0:l.slice(0);for(o=e,s=[],c=S.expr.preFilter;o;){for(a in(!n||(r=F.exec(o)))&&(r&&(o=o.slice(r[0].length)||o),s.push(i=[])),n=!1,(r=te.exec(o))&&(n=r.shift(),i.push({value:n,type:r[0].replace(ee,` `)}),o=o.slice(n.length)),ae)(r=S.expr.match[a].exec(o))&&(!c[a]||(r=c[a](r)))&&(n=r.shift(),i.push({value:n,type:a,matches:r}),o=o.slice(n.length));if(!n)break}return t?o.length:o?le(e):I(e,s).slice(0)}var de={ATTR:function(e){return e[1]=ce(e[1]),e[3]=ce(e[3]||e[4]||e[5]||``),e[2]===`~=`&&(e[3]=` `+e[3]+` `),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1].slice(0,3)===`nth`?(e[3]||le(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*(e[3]===`even`||e[3]===`odd`)),e[5]=+(e[7]+e[8]||e[3]===`odd`)):e[3]&&le(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return ae.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||``:n&&oe.test(n)&&(t=ue(n,!0))&&(t=n.indexOf(`)`,n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}};function fe(e){for(var t=0,n=e.length,r=``;t<n;t++)r+=e[t].value;return r}function L(e,t,n,r,i,a,o){var s=0,c=e.length,l=n==null;if(m(n)===`object`)for(s in i=!0,n)L(e,t,s,n[s],!0,a,o);else if(r!==void 0&&(i=!0,typeof r!=`function`&&(o=!0),l&&(o?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(S(e),n)})),t))for(;s<c;s++)t(e[s],n,o?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):c?t(e[0],n):a}var pe=/[^\x20\t\r\n\f]+/g;S.fn.extend({attr:function(e,t){return L(this,S.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){S.removeAttr(this,e)})}}),S.extend({attr:function(e,t,n){var r,i,a=e.nodeType;if(!(a===3||a===8||a===2)){if(e.getAttribute===void 0)return S.prop(e,t,n);if((a!==1||!S.isXMLDoc(e))&&(i=S.attrHooks[t.toLowerCase()]),n!==void 0){if(n===null||n===!1&&t.toLowerCase().indexOf(`aria-`)!==0){S.removeAttr(e,t);return}return i&&`set`in i&&(r=i.set(e,n,t))!==void 0?r:(e.setAttribute(t,n),n)}return i&&`get`in i&&(r=i.get(e,t))!==null?r:(r=e.getAttribute(t),r??void 0)}},attrHooks:{},removeAttr:function(e,t){var n,r=0,i=t&&t.match(pe);if(i&&e.nodeType===1)for(;n=i[r++];)e.removeAttribute(n)}}),E&&(S.attrHooks.type={set:function(e,t){if(t===`radio`&&C(e,`input`)){var n=e.value;return e.setAttribute(`type`,t),n&&(e.value=n),t}}});var me=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function he(e,t){return t?e===`\0`?`�`:e.slice(0,-1)+`\\`+e.charCodeAt(e.length-1).toString(16)+` `:`\\`+e}S.escapeSelector=function(e){return(e+``).replace(me,he)};var ge=n.sort,_e=n.splice,ve;function ye(e,t){if(e===t)return ve=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1,n&1?e==_||e.ownerDocument==_&&S.contains(_,e)?-1:t==_||t.ownerDocument==_&&S.contains(_,t)?1:0:n&4?-1:1)}S.uniqueSort=function(e){var t,n=[],r=0,i=0;if(ve=!1,ge.call(e,ye),ve){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)_e.call(e,n[r],1)}return e},S.fn.uniqueSort=function(){return this.pushStack(S.uniqueSort(i.apply(this)))};var R,be,z,xe,Se,B=0,Ce=0,we=j(),Te=j(),Ee=j(),De=RegExp(T+`+`,`g`),Oe=RegExp(`^`+O+`$`),ke=S.extend({needsContext:RegExp(`^`+T+`*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(`+T+`*((?:-\\d)?\\d*)`+T+`*\\)|)(?=[^-]|$)`,`i`)},ae),Ae=/^(?:input|select|textarea|button)$/i,je=/^h\d$/i,Me=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ne=function(){Be()},Pe=He(function(e){return e.disabled===!0&&C(e,`fieldset`)},{dir:`parentNode`,next:`legend`});function V(e,t,n,r){var i,a,s,c,l,u,d,f=t&&t.ownerDocument,p=t?t.nodeType:9;if(n||=[],typeof e!=`string`||!e||p!==1&&p!==9&&p!==11)return n;if(!r&&(Be(t),t||=z,Se)){if(p!==11&&(l=Me.exec(e))){if(i=l[1]){if(p===9)return(s=t.getElementById(i))&&o.call(n,s),n;if(f&&(s=f.getElementById(i))&&S.contains(t,s))return o.call(n,s),n}else if(l[2])return o.apply(n,t.getElementsByTagName(e)),n;else if((i=l[3])&&t.getElementsByClassName)return o.apply(n,t.getElementsByClassName(i)),n}if(!Ee[e+` `]&&(!D||!D.test(e))){if(d=e,f=t,p===1&&(ne.test(e)||te.test(e))){for(f=k.test(e)&&M(t.parentNode)||t,(f!=t||E)&&((c=t.getAttribute(`id`))?c=S.escapeSelector(c):t.setAttribute(`id`,c=S.expando)),u=ue(e),a=u.length;a--;)u[a]=(c?`#`+c:`:scope`)+` `+fe(u[a]);d=u.join(`,`)}try{return o.apply(n,f.querySelectorAll(d)),n}catch{Ee(e,!0)}finally{c===S.expando&&t.removeAttribute(`id`)}}}return Ye(e.replace(ee,`$1`),t,n,r)}function Fe(e){return e[S.expando]=!0,e}function Ie(e){return function(t){return C(t,`input`)&&t.type===e}}function Le(e){return function(t){return(C(t,`input`)||C(t,`button`))&&t.type===e}}function Re(e){return function(t){return`form`in t?t.parentNode&&t.disabled===!1?`label`in t?`label`in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Pe(t)===e:t.disabled===e:`label`in t?t.disabled===e:!1}}function ze(e){return Fe(function(t){return t=+t,Fe(function(n,r){for(var i,a=e([],n.length,t),o=a.length;o--;)n[i=a[o]]&&(n[i]=!(r[i]=n[i]))})})}function Be(e){var t,n=e?e.ownerDocument||e:_;n==z||n.nodeType!==9||(z=n,xe=z.documentElement,Se=!S.isXMLDoc(z),E&&_!=z&&(t=z.defaultView)&&t.top!==t&&t.addEventListener(`unload`,Ne))}for(R in V.matches=function(e,t){return V(e,null,null,t)},V.matchesSelector=function(e,t){if(Be(e),Se&&!Ee[t+` `]&&(!D||!D.test(t)))try{return re.call(e,t)}catch{Ee(t,!0)}return V(t,z,null,[e]).length>0},S.expr={cacheLength:50,createPseudo:Fe,match:ke,find:{ID:function(e,t){if(t.getElementById!==void 0&&Se){var n=t.getElementById(e);return n?[n]:[]}},TAG:function(e,t){return t.getElementsByTagName===void 0?t.querySelectorAll(e):t.getElementsByTagName(e)},CLASS:function(e,t){if(t.getElementsByClassName!==void 0&&Se)return t.getElementsByClassName(e)}},relative:{">":{dir:`parentNode`,first:!0}," ":{dir:`parentNode`},"+":{dir:`previousSibling`,first:!0},"~":{dir:`previousSibling`}},preFilter:de,filter:{ID:function(e){var t=ce(e);return function(e){return e.getAttribute(`id`)===t}},TAG:function(e){var t=ce(e).toLowerCase();return e===`*`?function(){return!0}:function(e){return C(e,t)}},CLASS:function(e){var t=we[e+` `];return t||(t=RegExp(`(^|`+T+`)`+e+`(`+T+`|$)`))&&we(e,function(e){return t.test(typeof e.className==`string`&&e.className||e.getAttribute!==void 0&&e.getAttribute(`class`)||``)})},ATTR:function(e,t,n){return function(r){var i=S.attr(r,e);return i==null?t===`!=`:t?(i+=``,t===`=`?i===n:t===`!=`?i!==n:t===`^=`?n&&i.indexOf(n)===0:t===`*=`?n&&i.indexOf(n)>-1:t===`$=`?n&&i.slice(-n.length)===n:t===`~=`?(` `+i.replace(De,` `)+` `).indexOf(n)>-1:t===`|=`?i===n||i.slice(0,n.length+1)===n+`-`:!1):!0}},CHILD:function(e,t,n,r,i){var a=e.slice(0,3)!==`nth`,o=e.slice(-4)!==`last`,s=t===`of-type`;return r===1&&i===0?function(e){return!!e.parentNode}:function(t,n,c){var l,u,d,f,p,m=a===o?`previousSibling`:`nextSibling`,h=t.parentNode,g=s&&t.nodeName.toLowerCase(),_=!c&&!s,v=!1;if(h){if(a){for(;m;){for(d=t;d=d[m];)if(s?C(d,g):d.nodeType===1)return!1;p=m=e===`only`&&!p&&`nextSibling`}return!0}if(p=[o?h.firstChild:h.lastChild],o&&_){for(u=h[S.expando]||(h[S.expando]={}),l=u[e]||[],f=l[0]===B&&l[1],v=f&&l[2],d=f&&h.childNodes[f];d=++f&&d&&d[m]||(v=f=0)||p.pop();)if(d.nodeType===1&&++v&&d===t){u[e]=[B,f,v];break}}else if(_&&(u=t[S.expando]||(t[S.expando]={}),l=u[e]||[],f=l[0]===B&&l[1],v=f),v===!1)for(;(d=++f&&d&&d[m]||(v=f=0)||p.pop())&&!((s?C(d,g):d.nodeType===1)&&++v&&(_&&(u=d[S.expando]||(d[S.expando]={}),u[e]=[B,v]),d===t)););return v-=i,v===r||v%r===0&&v/r>=0}}},PSEUDO:function(e,t){var n=S.expr.pseudos[e]||S.expr.setFilters[e.toLowerCase()]||le(`unsupported pseudo: `+e);return n[S.expando]?n(t):n}},pseudos:{not:Fe(function(e){var t=[],n=[],r=Je(e.replace(ee,`$1`));return r[S.expando]?Fe(function(e,t,n,i){for(var a,o=r(e,null,i,[]),s=e.length;s--;)(a=o[s])&&(e[s]=!(t[s]=a))}):function(e,i,a){return t[0]=e,r(t,null,a,n),t[0]=null,!n.pop()}}),has:Fe(function(e){return function(t){return V(e,t).length>0}}),contains:Fe(function(e){return e=ce(e),function(t){return(t.textContent||S.text(t)).indexOf(e)>-1}}),lang:Fe(function(e){return Oe.test(e||``)||le(`unsupported lang: `+e),e=ce(e).toLowerCase(),function(t){var n;do if(n=Se?t.lang:t.getAttribute(`xml:lang`)||t.getAttribute(`lang`))return n=n.toLowerCase(),n===e||n.indexOf(e+`-`)===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===xe},focus:function(e){return e===z.activeElement&&z.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:Re(!1),disabled:Re(!0),checked:function(e){return C(e,`input`)&&!!e.checked||C(e,`option`)&&!!e.selected},selected:function(e){return E&&e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!S.expr.pseudos.empty(e)},header:function(e){return je.test(e.nodeName)},input:function(e){return Ae.test(e.nodeName)},button:function(e){return C(e,`input`)&&e.type===`button`||C(e,`button`)},text:function(e){return C(e,`input`)&&e.type===`text`},first:ze(function(){return[0]}),last:ze(function(e,t){return[t-1]}),eq:ze(function(e,t,n){return[n<0?n+t:n]}),even:ze(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ze(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ze(function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e}),gt:ze(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},S.expr.pseudos.nth=S.expr.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})S.expr.pseudos[R]=Ie(R);for(R in{submit:!0,reset:!0})S.expr.pseudos[R]=Le(R);function Ve(){}Ve.prototype=S.expr.pseudos,S.expr.setFilters=new Ve;function He(e,t,n){var r=t.dir,i=t.next,a=i||r,o=n&&a===`parentNode`,s=Ce++;return t.first?function(t,n,i){for(;t=t[r];)if(t.nodeType===1||o)return e(t,n,i);return!1}:function(t,n,c){var l,u,d=[B,s];if(c){for(;t=t[r];)if((t.nodeType===1||o)&&e(t,n,c))return!0}else for(;t=t[r];)if(t.nodeType===1||o){if(u=t[S.expando]||(t[S.expando]={}),i&&C(t,i))t=t[r]||t;else if((l=u[a])&&l[0]===B&&l[1]===s)return d[2]=l[2];else if(u[a]=d,d[2]=e(t,n,c))return!0}return!1}}function Ue(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function We(e,t,n){for(var r=0,i=t.length;r<i;r++)V(e,t[r],n);return n}function Ge(e,t,n,r,i){for(var a,o=[],s=0,c=e.length,l=t!=null;s<c;s++)(a=e[s])&&(!n||n(a,r,i))&&(o.push(a),l&&t.push(s));return o}function Ke(e,t,n,r,i,a){return r&&!r[S.expando]&&(r=Ke(r)),i&&!i[S.expando]&&(i=Ke(i,a)),Fe(function(a,c,l,u){var d,f,p,m,h=[],g=[],_=c.length,v=a||We(t||`*`,l.nodeType?[l]:l,[]),y=e&&(a||!t)?Ge(v,h,e,l,u):v;if(n?(m=i||(a?e:_||r)?[]:c,n(y,m,l,u)):m=y,r)for(d=Ge(m,g),r(d,[],l,u),f=d.length;f--;)(p=d[f])&&(m[g[f]]=!(y[g[f]]=p));if(a){if(i||e){if(i){for(d=[],f=m.length;f--;)(p=m[f])&&d.push(y[f]=p);i(null,m=[],d,u)}for(f=m.length;f--;)(p=m[f])&&(d=i?s.call(a,p):h[f])>-1&&(a[d]=!(c[d]=p))}}else m=Ge(m===c?m.splice(_,m.length):m),i?i(null,c,m,u):o.apply(c,m)})}function qe(e){for(var t,n,r,i=e.length,a=S.expr.relative[e[0].type],o=a||S.expr.relative[` `],c=+!!a,l=He(function(e){return e===t},o,!0),u=He(function(e){return s.call(t,e)>-1},o,!0),d=[function(e,n,r){var i=!a&&(r||n!=be)||((t=n).nodeType?l(e,n,r):u(e,n,r));return t=null,i}];c<i;c++)if(n=S.expr.relative[e[c].type])d=[He(Ue(d),n)];else{if(n=S.expr.filter[e[c].type].apply(null,e[c].matches),n[S.expando]){for(r=++c;r<i&&!S.expr.relative[e[r].type];r++);return Ke(c>1&&Ue(d),c>1&&fe(e.slice(0,c-1).concat({value:e[c-2].type===` `?`*`:``})).replace(ee,`$1`),n,c<r&&qe(e.slice(c,r)),r<i&&qe(e=e.slice(r)),r<i&&fe(e))}d.push(n)}return Ue(d)}function H(e,t){var n=t.length>0,r=e.length>0,i=function(i,a,s,c,l){var u,d,f,p=0,m=`0`,h=i&&[],g=[],_=be,v=i||r&&S.expr.find.TAG(`*`,l),y=B+=_==null?1:Math.random()||.1;for(l&&(be=a==z||a||l);(u=v[m])!=null;m++){if(r&&u){for(d=0,!a&&u.ownerDocument!=z&&(Be(u),s=!Se);f=e[d++];)if(f(u,a||z,s)){o.call(c,u);break}l&&(B=y)}n&&((u=!f&&u)&&p--,i&&h.push(u))}if(p+=m,n&&m!==p){for(d=0;f=t[d++];)f(h,g,a,s);if(i){if(p>0)for(;m--;)h[m]||g[m]||(g[m]=w.call(c));g=Ge(g)}o.apply(c,g),l&&!i&&g.length>0&&p+t.length>1&&S.uniqueSort(c)}return l&&(B=y,be=_),h};return n?Fe(i):i}function Je(e,t){var n,r=[],i=[],a=Te[e+` `];if(!a){for(t||=ue(e),n=t.length;n--;)a=qe(t[n]),a[S.expando]?r.push(a):i.push(a);a=Te(e,H(i,r)),a.selector=e}return a}function Ye(e,t,n,r){var i,a,s,c,l,u=typeof e==`function`&&e,d=!r&&ue(e=u.selector||e);if(n||=[],d.length===1){if(a=d[0]=d[0].slice(0),a.length>2&&(s=a[0]).type===`ID`&&t.nodeType===9&&Se&&S.expr.relative[a[1].type]){if(t=(S.expr.find.ID(ce(s.matches[0]),t)||[])[0],t)u&&(t=t.parentNode);else return n;e=e.slice(a.shift().value.length)}for(i=ke.needsContext.test(e)?0:a.length;i--&&(s=a[i],!S.expr.relative[c=s.type]);)if((l=S.expr.find[c])&&(r=l(ce(s.matches[0]),k.test(a[0].type)&&M(t.parentNode)||t))){if(a.splice(i,1),e=r.length&&fe(a),!e)return o.apply(n,r),n;break}}return(u||Je(e,d))(r,t,!Se,n,!t||k.test(e)&&M(t.parentNode)||t),n}Be(),S.find=V,V.compile=Je,V.select=Ye,V.setDocument=Be,V.tokenize=ue;function Xe(e,t,n){for(var r=[],i=n!==void 0;(e=e[t])&&e.nodeType!==9;)if(e.nodeType===1){if(i&&S(e).is(n))break;r.push(e)}return r}function Ze(e,t){for(var n=[];e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}var U=S.expr.match.needsContext,Qe=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function $e(e){return e[0]===`<`&&e[e.length-1]===`>`&&e.length>=3}function et(e,t,n){return typeof t==`function`?S.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?S.grep(e,function(e){return e===t!==n}):typeof t==`string`?S.filter(t,e,n):S.grep(e,function(e){return s.call(t,e)>-1!==n})}S.filter=function(e,t,n){var r=t[0];return n&&(e=`:not(`+e+`)`),t.length===1&&r.nodeType===1?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,function(e){return e.nodeType===1}))},S.fn.extend({find:function(e){var t,n,r=this.length,i=this;if(typeof e!=`string`)return this.pushStack(S(e).filter(function(){for(t=0;t<r;t++)if(S.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,i[t],n);return r>1?S.uniqueSort(n):n},filter:function(e){return this.pushStack(et(this,e||[],!1))},not:function(e){return this.pushStack(et(this,e||[],!0))},is:function(e){return!!et(this,typeof e==`string`&&U.test(e)?S(e):e||[],!1).length}});var tt,nt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,rt=S.fn.init=function(e,t){var n,r;if(!e)return this;if(e.nodeType)return this[0]=e,this.length=1,this;if(typeof e==`function`)return tt.ready===void 0?e(S):tt.ready(e);if(n=e+``,$e(n))n=[null,e,null];else if(typeof e==`string`)n=nt.exec(e);else return S.makeArray(e,this);if(n&&(n[1]||!t))if(n[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:_,!0)),Qe.test(n[1])&&S.isPlainObject(t))for(n in t)typeof this[n]==`function`?this[n](t[n]):this.attr(n,t[n]);return this}else return r=_.getElementById(n[2]),r&&(this[0]=r,this.length=1),this;else if(!t||t.jquery)return(t||tt).find(e);else return this.constructor(t).find(e)};rt.prototype=S.fn,tt=S(_);var it=/^(?:parents|prev(?:Until|All))/,at={children:!0,contents:!0,next:!0,prev:!0};S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,a=[],o=typeof e!=`string`&&S(e);if(!U.test(e)){for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:n.nodeType===1&&S.find.matchesSelector(n,e))){a.push(n);break}}return this.pushStack(a.length>1?S.uniqueSort(a):a)},index:function(e){return e?typeof e==`string`?s.call(S(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});function ot(e,t){for(;(e=e[t])&&e.nodeType!==1;);return e}S.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return Xe(e,`parentNode`)},parentsUntil:function(e,t,n){return Xe(e,`parentNode`,n)},next:function(e){return ot(e,`nextSibling`)},prev:function(e){return ot(e,`previousSibling`)},nextAll:function(e){return Xe(e,`nextSibling`)},prevAll:function(e){return Xe(e,`previousSibling`)},nextUntil:function(e,t,n){return Xe(e,`nextSibling`,n)},prevUntil:function(e,t,n){return Xe(e,`previousSibling`,n)},siblings:function(e){return Ze((e.parentNode||{}).firstChild,e)},children:function(e){return Ze(e.firstChild)},contents:function(e){return e.contentDocument!=null&&r(e.contentDocument)?e.contentDocument:(C(e,`template`)&&(e=e.content||e),S.merge([],e.childNodes))}},function(e,t){S.fn[e]=function(n,r){var i=S.map(this,t,n);return e.slice(-5)!==`Until`&&(r=n),r&&typeof r==`string`&&(i=S.filter(r,i)),this.length>1&&(at[e]||S.uniqueSort(i),it.test(e)&&i.reverse()),this.pushStack(i)}});function st(e){var t={};return S.each(e.match(pe)||[],function(e,n){t[n]=!0}),t}S.Callbacks=function(e){e=typeof e==`string`?st(e):S.extend({},e);var t,n,r,i,a=[],o=[],s=-1,c=function(){for(i||=e.once,r=t=!0;o.length;s=-1)for(n=o.shift();++s<a.length;)a[s].apply(n[0],n[1])===!1&&e.stopOnFalse&&(s=a.length,n=!1);e.memory||(n=!1),t=!1,i&&(a=n?[]:``)},l={add:function(){return a&&(n&&!t&&(s=a.length-1,o.push(n)),(function t(n){S.each(n,function(n,r){typeof r==`function`?(!e.unique||!l.has(r))&&a.push(r):r&&r.length&&m(r)!==`string`&&t(r)})})(arguments),n&&!t&&c()),this},remove:function(){return S.each(arguments,function(e,t){for(var n;(n=S.inArray(t,a,n))>-1;)a.splice(n,1),n<=s&&s--}),this},has:function(e){return e?S.inArray(e,a)>-1:a.length>0},empty:function(){return a&&=[],this},disable:function(){return i=o=[],a=n=``,this},disabled:function(){return!a},lock:function(){return i=o=[],!n&&!t&&(a=n=``),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n||=[],n=[e,n.slice?n.slice():n],o.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l};function ct(e){return e}function W(e){throw e}function lt(e,t,n,r){var i;try{e&&typeof(i=e.promise)==`function`?i.call(e).done(t).fail(n):e&&typeof(i=e.then)==`function`?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n(e)}}S.extend({Deferred:function(t){var n=[[`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`]],r=`pending`,i={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return S.Deferred(function(t){S.each(n,function(n,r){var i=typeof e[r[4]]==`function`&&e[r[4]];a[r[1]](function(){var e=i&&i.apply(this,arguments);e&&typeof e.promise==`function`?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+`With`](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){var a=0;function o(t,n,r,i){return function(){var s=this,c=arguments,l=function(){var e,l;if(!(t<a)){if(e=r.apply(s,c),e===n.promise())throw TypeError(`Thenable self-resolution`);l=e&&(typeof e==`object`||typeof e==`function`)&&e.then,typeof l==`function`?i?l.call(e,o(a,n,ct,i),o(a,n,W,i)):(a++,l.call(e,o(a,n,ct,i),o(a,n,W,i),o(a,n,ct,n.notifyWith))):(r!==ct&&(s=void 0,c=[e]),(i||n.resolveWith)(s,c))}},u=i?l:function(){try{l()}catch(e){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(e,u.error),t+1>=a&&(r!==W&&(s=void 0,c=[e]),n.rejectWith(s,c))}};t?u():(S.Deferred.getErrorHook&&(u.error=S.Deferred.getErrorHook()),e.setTimeout(u))}}return S.Deferred(function(e){n[0][3].add(o(0,e,typeof i==`function`?i:ct,e.notifyWith)),n[1][3].add(o(0,e,typeof t==`function`?t:ct)),n[2][3].add(o(0,e,typeof r==`function`?r:W))}).promise()},promise:function(e){return e==null?i:S.extend(e,i)}},a={};return S.each(n,function(e,t){var o=t[2],s=t[5];i[t[1]]=o.add,s&&o.add(function(){r=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),o.add(t[3].fire),a[t[0]]=function(){return a[t[0]+`With`](this===a?void 0:this,arguments),this},a[t[0]+`With`]=o.fireWith}),i.promise(a),t&&t.call(a,a),a},when:function(e){var t=arguments.length,n=t,r=Array(n),a=i.call(arguments),o=S.Deferred(),s=function(e){return function(n){r[e]=this,a[e]=arguments.length>1?i.call(arguments):n,--t||o.resolveWith(r,a)}};if(t<=1&&(lt(e,o.done(s(n)).resolve,o.reject,!t),o.state()===`pending`||typeof(a[n]&&a[n].then)==`function`))return o.then();for(;n--;)lt(a[n],s(n),o.reject);return o.promise()}});var ut=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(t,n){t&&ut.test(t.name)&&e.console.warn(`jQuery.Deferred exception`,t,n)},S.readyException=function(t){e.setTimeout(function(){throw t})};var dt=S.Deferred();S.fn.ready=function(e){return dt.then(e).catch(function(e){S.readyException(e)}),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--S.readyWait:S.isReady)||(S.isReady=!0,!(e!==!0&&--S.readyWait>0)&&dt.resolveWith(_,[S]))}}),S.ready.then=dt.then;function ft(){_.removeEventListener(`DOMContentLoaded`,ft),e.removeEventListener(`load`,ft),S.ready()}_.readyState===`loading`?(_.addEventListener(`DOMContentLoaded`,ft),e.addEventListener(`load`,ft)):e.setTimeout(S.ready);var pt=/-([a-z])/g;function mt(e,t){return t.toUpperCase()}function ht(e){return e.replace(pt,mt)}function gt(e){return e.nodeType===1||e.nodeType===9||!+e.nodeType}function _t(){this.expando=S.expando+ _t.uid++}_t.uid=1,_t.prototype={cache:function(e){var t=e[this.expando];return t||(t=Object.create(null),gt(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if(typeof t==`string`)i[ht(t)]=n;else for(r in t)i[ht(r)]=t[r];return n},get:function(e,t){return t===void 0?this.cache(e):e[this.expando]&&e[this.expando][ht(t)]},access:function(e,t,n){return t===void 0||t&&typeof t==`string`&&n===void 0?this.get(e,t):(this.set(e,t,n),n===void 0?t:n)},remove:function(e,t){var n,r=e[this.expando];if(r!==void 0){if(t!==void 0)for(Array.isArray(t)?t=t.map(ht):(t=ht(t),t=(t in r)?[t]:t.match(pe)||[]),n=t.length;n--;)delete r[t[n]];(t===void 0||S.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return t!==void 0&&!S.isEmptyObject(t)}};var G=new _t,K=new _t,vt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,yt=/[A-Z]/g;function bt(e){return e===`true`?!0:e===`false`?!1:e===`null`?null:e===+e+``?+e:vt.test(e)?JSON.parse(e):e}function xt(e,t,n){var r;if(n===void 0&&e.nodeType===1)if(r=`data-`+t.replace(yt,`-$&`).toLowerCase(),n=e.getAttribute(r),typeof n==`string`){try{n=bt(n)}catch{}K.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return K.hasData(e)||G.hasData(e)},data:function(e,t,n){return K.access(e,t,n)},removeData:function(e,t){K.remove(e,t)},_data:function(e,t,n){return G.access(e,t,n)},_removeData:function(e,t){G.remove(e,t)}}),S.fn.extend({data:function(e,t){var n,r,i,a=this[0],o=a&&a.attributes;if(e===void 0){if(this.length&&(i=K.get(a),a.nodeType===1&&!G.get(a,`hasDataAttrs`))){for(n=o.length;n--;)o[n]&&(r=o[n].name,r.indexOf(`data-`)===0&&(r=ht(r.slice(5)),xt(a,r,i[r])));G.set(a,`hasDataAttrs`,!0)}return i}return typeof e==`object`?this.each(function(){K.set(this,e)}):L(this,function(t){var n;if(a&&t===void 0)return n=K.get(a,e),n!==void 0||(n=xt(a,e),n!==void 0)?n:void 0;this.each(function(){K.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){K.remove(this,e)})}}),S.extend({queue:function(e,t,n){var r;if(e)return t=(t||`fx`)+`queue`,r=G.get(e,t),n&&(!r||Array.isArray(n)?r=G.set(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t||=`fx`;var n=S.queue(e,t),r=n.length,i=n.shift(),a=S._queueHooks(e,t);i===`inprogress`&&(i=n.shift(),r--),i&&(t===`fx`&&n.unshift(`inprogress`),delete a.stop,i.call(e,function(){S.dequeue(e,t)},a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+`queueHooks`;return G.get(e,n)||G.set(e,n,{empty:S.Callbacks(`once memory`).add(function(){G.remove(e,[t+`queue`,n])})})}}),S.fn.extend({queue:function(e,t){var n=2;return typeof e!=`string`&&(t=e,e=`fx`,n--),arguments.length<n?S.queue(this[0],e):t===void 0?this:this.each(function(){var n=S.queue(this,e,t);S._queueHooks(this,e),e===`fx`&&n[0]!==`inprogress`&&S.dequeue(this,e)})},dequeue:function(e){return this.each(function(){S.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||`fx`,[])},promise:function(e,t){var n,r=1,i=S.Deferred(),a=this,o=this.length,s=function(){--r||i.resolveWith(a,[a])};for(typeof e!=`string`&&(t=e,e=void 0),e||=`fx`;o--;)n=G.get(a[o],e+`queueHooks`),n&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var St=`[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)`,q=RegExp(`^(?:([+-])=|)(`+St+`)([a-z%]*)$`,`i`),J=[`Top`,`Right`,`Bottom`,`Left`];function Ct(e,t){return e=t||e,e.style.display===`none`||e.style.display===``&&S.css(e,`display`)===`none`}var wt=/^[a-z]/,Tt=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;function Et(e){return wt.test(e)&&Tt.test(e[0].toUpperCase()+e.slice(1))}function Dt(e,t,n,r){var i,a,o=20,s=r?function(){return r.cur()}:function(){return S.css(e,t,``)},c=s(),l=n&&n[3]||(Et(t)?`px`:``),u=e.nodeType&&(!Et(t)||l!==`px`&&+c)&&q.exec(S.css(e,t));if(u&&u[3]!==l){for(c/=2,l||=u[3],u=+c||1;o--;)S.style(e,t,u+l),(1-a)*(1-(a=s()/c||.5))<=0&&(o=0),u/=a;u*=2,S.style(e,t,u+l),n||=[]}return n&&(u=+u||+c||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=u,r.end=i)),i}var Ot=/^-ms-/;function kt(e){return ht(e.replace(Ot,`ms-`))}var At={};function jt(e){var t,n=e.ownerDocument,r=e.nodeName,i=At[r];return i||(t=n.body.appendChild(n.createElement(r)),i=S.css(t,`display`),t.parentNode.removeChild(t),i===`none`&&(i=`block`),At[r]=i,i)}function Mt(e,t){for(var n,r,i=[],a=0,o=e.length;a<o;a++)r=e[a],r.style&&(n=r.style.display,t?(n===`none`&&(i[a]=G.get(r,`display`)||null,i[a]||(r.style.display=``)),r.style.display===``&&Ct(r)&&(i[a]=jt(r))):n!==`none`&&(i[a]=`none`,G.set(r,`display`,n)));for(a=0;a<o;a++)i[a]!=null&&(e[a].style.display=i[a]);return e}S.fn.extend({show:function(){return Mt(this,!0)},hide:function(){return Mt(this)},toggle:function(e){return typeof e==`boolean`?e?this.show():this.hide():this.each(function(){Ct(this)?S(this).show():S(this).hide()})}});var Nt=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(Pt)===e.ownerDocument},Pt={composed:!0};A.getRootNode||(Nt=function(e){return S.contains(e.ownerDocument,e)});var Ft=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,It={thead:[`table`],col:[`colgroup`,`table`],tr:[`tbody`,`table`],td:[`tr`,`tbody`,`table`]};It.tbody=It.tfoot=It.colgroup=It.caption=It.thead,It.th=It.td;function Y(e,t){var r=e.getElementsByTagName===void 0?e.querySelectorAll===void 0?[]:e.querySelectorAll(t||`*`):n.slice.call(e.getElementsByTagName(t||`*`));return t===void 0||t&&C(e,t)?S.merge([e],r):r}var Lt=/^$|^module$|\/(?:java|ecma)script/i;function Rt(e,t){for(var n=0,r=e.length;n<r;n++)G.set(e[n],`globalEval`,!t||G.get(t[n],`globalEval`))}var zt=/<|&#?\w+;/;function Bt(e,t,r,i,a){for(var o,s,c,l,u,d,f=t.createDocumentFragment(),p=[],h=0,_=e.length;h<_;h++)if(o=e[h],o||o===0)if(m(o)===`object`&&(o.nodeType||g(o)))S.merge(p,o.nodeType?[o]:o);else if(!zt.test(o))p.push(t.createTextNode(o));else{for(s||=f.appendChild(t.createElement(`div`)),c=(Ft.exec(o)||[``,``])[1].toLowerCase(),l=It[c]||n,d=l.length;--d>-1;)s=s.appendChild(t.createElement(l[d]));s.innerHTML=S.htmlPrefilter(o),S.merge(p,s.childNodes),s=f.firstChild,s.textContent=``}for(f.textContent=``,h=0;o=p[h++];){if(i&&S.inArray(o,i)>-1){a&&a.push(o);continue}if(u=Nt(o),s=Y(f.appendChild(o),`script`),u&&Rt(s),r)for(d=0;o=s[d++];)Lt.test(o.type||``)&&r.push(o)}return f}function Vt(e){return e.type=(e.getAttribute(`type`)!==null)+`/`+e.type,e}function Ht(e){return(e.type||``).slice(0,5)===`true/`?e.type=e.type.slice(5):e.removeAttribute(`type`),e}function Ut(e,t,n,r){t=a(t);var i,o,s,c,l,u,d=0,f=e.length,p=f-1,m=t[0];if(typeof m==`function`)return e.each(function(i){var a=e.eq(i);t[0]=m.call(this,i,a.html()),Ut(a,t,n,r)});if(f&&(i=Bt(t,e[0].ownerDocument,!1,e,r),o=i.firstChild,i.childNodes.length===1&&(i=o),o||r)){for(s=S.map(Y(i,`script`),Vt),c=s.length;d<f;d++)l=i,d!==p&&(l=S.clone(l,!0,!0),c&&S.merge(s,Y(l,`script`))),n.call(e[d],l,d);if(c)for(u=s[s.length-1].ownerDocument,S.map(s,Ht),d=0;d<c;d++)l=s[d],Lt.test(l.type||``)&&!G.get(l,`globalEval`)&&S.contains(u,l)&&(l.src&&(l.type||``).toLowerCase()!==`module`?S._evalUrl&&!l.noModule&&S._evalUrl(l.src,{nonce:l.nonce,crossOrigin:l.crossOrigin},u):y(l.textContent,l,u))}return e}var Wt=/^(?:checkbox|radio)$/i,Gt=/^([^.]*)(?:\.(.+)|)/;function Kt(){return!0}function qt(){return!1}function Jt(e,t,n,r,i,a){var o,s;if(typeof t==`object`){for(s in typeof n!=`string`&&(r||=n,n=void 0),t)Jt(e,s,n,r,t[s],a);return e}if(r==null&&i==null?(i=n,r=n=void 0):i??(typeof n==`string`?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=qt;else if(!i)return e;return a===1&&(o=i,i=function(e){return S().off(e),o.apply(this,arguments)},i.guid=o.guid||=S.guid++),e.each(function(){S.event.add(this,t,i,r,n)})}S.event={add:function(e,t,n,r,i){var a,o,s,c,l,u,d,f,p,m,h,g=G.get(e);if(gt(e))for(n.handler&&(a=n,n=a.handler,i=a.selector),i&&S.find.matchesSelector(A,i),n.guid||=S.guid++,(c=g.events)||(c=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(t){return S!==void 0&&S.event.triggered!==t.type?S.event.dispatch.apply(e,arguments):void 0}),t=(t||``).match(pe)||[``],l=t.length;l--;)s=Gt.exec(t[l])||[],p=h=s[1],m=(s[2]||``).split(`.`).sort(),p&&(d=S.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,d=S.event.special[p]||{},u=S.extend({type:p,origType:h,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:m.join(`.`)},a),(f=c[p])||(f=c[p]=[],f.delegateCount=0,(!d.setup||d.setup.call(e,r,m,o)===!1)&&e.addEventListener&&e.addEventListener(p,o)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,u):f.push(u))},remove:function(e,t,n,r,i){var a,o,s,c,l,u,d,f,p,m,h,g=G.hasData(e)&&G.get(e);if(!(!g||!(c=g.events))){for(t=(t||``).match(pe)||[``],l=t.length;l--;){if(s=Gt.exec(t[l])||[],p=h=s[1],m=(s[2]||``).split(`.`).sort(),!p){for(p in c)S.event.remove(e,p+t[l],n,r,!0);continue}for(d=S.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,f=c[p]||[],s=s[2]&&RegExp(`(^|\\.)`+m.join(`\\.(?:.*\\.|)`)+`(\\.|$)`),o=a=f.length;a--;)u=f[a],(i||h===u.origType)&&(!n||n.guid===u.guid)&&(!s||s.test(u.namespace))&&(!r||r===u.selector||r===`**`&&u.selector)&&(f.splice(a,1),u.selector&&f.delegateCount--,d.remove&&d.remove.call(e,u));o&&!f.length&&((!d.teardown||d.teardown.call(e,m,g.handle)===!1)&&S.removeEvent(e,p,g.handle),delete c[p])}S.isEmptyObject(c)&&G.remove(e,`handle events`)}},dispatch:function(e){var t,n,r,i,a,o,s=Array(arguments.length),c=S.event.fix(e),l=(G.get(this,`events`)||Object.create(null))[c.type]||[],u=S.event.special[c.type]||{};for(s[0]=c,t=1;t<arguments.length;t++)s[t]=arguments[t];if(c.delegateTarget=this,!(u.preDispatch&&u.preDispatch.call(this,c)===!1)){for(o=S.event.handlers.call(this,c,l),t=0;(i=o[t++])&&!c.isPropagationStopped();)for(c.currentTarget=i.elem,n=0;(a=i.handlers[n++])&&!c.isImmediatePropagationStopped();)(!c.rnamespace||a.namespace===!1||c.rnamespace.test(a.namespace))&&(c.handleObj=a,c.data=a.data,r=((S.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,s),r!==void 0&&(c.result=r)===!1&&(c.preventDefault(),c.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,c),c.result}},handlers:function(e,t){var n,r,i,a,o,s=[],c=t.delegateCount,l=e.target;if(c&&!(e.type===`click`&&e.button>=1)){for(;l!==this;l=l.parentNode||this)if(l.nodeType===1&&!(e.type===`click`&&l.disabled===!0)){for(a=[],o={},n=0;n<c;n++)r=t[n],i=r.selector+` `,o[i]===void 0&&(o[i]=r.needsContext?S(i,this).index(l)>-1:S.find(i,this,null,[l]).length),o[i]&&a.push(r);a.length&&s.push({elem:l,handlers:a})}}return l=this,c<t.length&&s.push({elem:l,handlers:t.slice(c)}),s},addProp:function(e,t){Object.defineProperty(S.Event.prototype,e,{enumerable:!0,configurable:!0,get:typeof t==`function`?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:S.extend(Object.create(null),{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Wt.test(t.type)&&t.click&&C(t,`input`)&&Yt(t,`click`,!0),!1},trigger:function(e){var t=this||e;return Wt.test(t.type)&&t.click&&C(t,`input`)&&Yt(t,`click`),!0},_default:function(e){var t=e.target;return Wt.test(t.type)&&t.click&&C(t,`input`)&&G.get(t,`click`)||C(t,`a`)}},beforeunload:{postDispatch:function(e){e.result!==void 0&&e.preventDefault()}}})};function Yt(e,t,n){if(!n){G.get(e,t)===void 0&&S.event.add(e,t,Kt);return}G.set(e,t,!1),S.event.add(e,t,{namespace:!1,handler:function(e){var n,r=G.get(this,t);if(e.isTrigger&1&&this[t]){if(r.length)(S.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=i.call(arguments),G.set(this,t,r),this[t](),n=G.get(this,t),G.set(this,t,!1),r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n&&n.value}else r.length&&(G.set(this,t,{value:S.event.trigger(r[0],r.slice(1),this)}),e.stopPropagation(),e.isImmediatePropagationStopped=Kt)}})}S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented?Kt:qt,this.target=e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:qt,isPropagationStopped:qt,isImmediatePropagationStopped:qt,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Kt,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Kt,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Kt,e&&!this.isSimulated&&e.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(e,t){function n(e){var t=S.event.fix(e);t.type=e.type===`focusin`?`focus`:`blur`,t.isSimulated=!0,t.target===t.currentTarget&&G.get(this,`handle`)(t)}S.event.special[e]={setup:function(){if(Yt(this,e,!0),E)this.addEventListener(t,n);else return!1},trigger:function(){return Yt(this,e),!0},teardown:function(){if(E)this.removeEventListener(t,n);else return!1},_default:function(t){return G.get(t.target,e)},delegateType:t}}),S.each({mouseenter:`mouseover`,mouseleave:`mouseout`,pointerenter:`pointerover`,pointerleave:`pointerout`},function(e,t){S.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,a=e.handleObj;return(!i||i!==r&&!S.contains(r,i))&&(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}}),S.fn.extend({on:function(e,t,n,r){return Jt(this,e,t,n,r)},one:function(e,t,n,r){return Jt(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+`.`+r.namespace:r.origType,r.selector,r.handler),this;if(typeof e==`object`){for(i in e)this.off(i,t,e[i]);return this}return(t===!1||typeof t==`function`)&&(n=t,t=void 0),n===!1&&(n=qt),this.each(function(){S.event.remove(this,e,n,t)})}});var Xt=/<script|<style|<link/i;function Zt(e,t){return C(e,`table`)&&C(t.nodeType===11?t.firstChild:t,`tr`)&&S(e).children(`tbody`)[0]||e}function Qt(e,t){var n,r,i,a=G.get(e,`events`);if(t.nodeType===1){if(a)for(n in G.remove(t,`handle events`),a)for(r=0,i=a[n].length;r<i;r++)S.event.add(t,n,a[n][r]);K.hasData(e)&&K.set(t,S.extend({},K.get(e)))}}function $t(e,t,n){for(var r,i=t?S.filter(t,e):e,a=0;(r=i[a])!=null;a++)!n&&r.nodeType===1&&S.cleanData(Y(r)),r.parentNode&&(n&&Nt(r)&&Rt(Y(r,`script`)),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,a,o,s=e.cloneNode(!0),c=Nt(e);if(E&&(e.nodeType===1||e.nodeType===11)&&!S.isXMLDoc(e))for(o=Y(s),a=Y(e),r=0,i=a.length;r<i;r++)C(o[r],`textarea`)&&(o[r].defaultValue=a[r].defaultValue);if(t)if(n)for(a||=Y(e),o||=Y(s),r=0,i=a.length;r<i;r++)Qt(a[r],o[r]);else Qt(e,s);return o=Y(s,`script`),o.length>0&&Rt(o,!c&&Y(e,`script`)),s},cleanData:function(e){for(var t,n,r,i=S.event.special,a=0;(n=e[a])!==void 0;a++)if(gt(n)){if(t=n[G.expando]){if(t.events)for(r in t.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,t.handle);n[G.expando]=void 0}n[K.expando]&&(n[K.expando]=void 0)}}}),S.fn.extend({detach:function(e){return $t(this,e,!0)},remove:function(e){return $t(this,e)},text:function(e){return L(this,function(e){return e===void 0?S.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=e)})},null,e,arguments.length)},append:function(){return Ut(this,arguments,function(e){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&Zt(this,e).appendChild(e)})},prepend:function(){return Ut(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=Zt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Ut(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Ut(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;(e=this[t])!=null;t++)e.nodeType===1&&(S.cleanData(Y(e,!1)),e.textContent=``);return this},clone:function(e,t){return e??=!1,t??=e,this.map(function(){return S.clone(this,e,t)})},html:function(e){return L(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===void 0&&t.nodeType===1)return t.innerHTML;if(typeof e==`string`&&!Xt.test(e)&&!It[(Ft.exec(e)||[``,``])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)t=this[n]||{},t.nodeType===1&&(S.cleanData(Y(t,!1)),t.innerHTML=e);t=0}catch{}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Ut(this,arguments,function(t){var n=this.parentNode;S.inArray(this,e)<0&&(S.cleanData(Y(this)),n&&n.replaceChild(t,this))},e)}}),S.each({appendTo:`append`,prependTo:`prepend`,insertBefore:`before`,insertAfter:`after`,replaceAll:`replaceWith`},function(e,t){S.fn[e]=function(e){for(var n,r=[],i=S(e),a=i.length-1,s=0;s<=a;s++)n=s===a?this:this.clone(!0),S(i[s])[t](n),o.apply(r,n);return this.pushStack(r)}});var en=RegExp(`^(`+St+`)(?!px)[a-z%]+$`,`i`),tn=/^--/;function nn(t){var n=t.ownerDocument.defaultView;return n||=e,n.getComputedStyle(t)}function rn(e,t,n){var r,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=a[i];return r}function an(e,t,n){var r,i=tn.test(t);return n||=nn(e),n&&(r=n.getPropertyValue(t)||n[t],i&&r&&(r=r.replace(ee,`$1`)||void 0),r===``&&!Nt(e)&&(r=S.style(e,t))),r===void 0?r:r+``}var on=[`Webkit`,`Moz`,`ms`],sn=_.createElement(`div`).style;function cn(e){for(var t=e[0].toUpperCase()+e.slice(1),n=on.length;n--;)if(e=on[n]+t,e in sn)return e}function ln(e){return e in sn?e:cn(e)||e}var un,dn,fn=_.createElement(`table`);function X(){if(!(!fn||!fn.style)){var t,n=_.createElement(`col`),r=_.createElement(`tr`),i=_.createElement(`td`);if(fn.style.cssText=`position:absolute;left:-11111px;border-collapse:separate;border-spacing:0`,r.style.cssText=`box-sizing:content-box;border:1px solid;height:1px`,i.style.cssText=`height:9px;width:9px;padding:0`,n.span=2,A.appendChild(fn).appendChild(n).parentNode.appendChild(r).appendChild(i).parentNode.appendChild(i.cloneNode(!0)),fn.offsetWidth===0){A.removeChild(fn);return}t=e.getComputedStyle(r),dn=E||Math.round(parseFloat(e.getComputedStyle(n).width))===18,un=Math.round(parseFloat(t.height)+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth))===r.offsetHeight,A.removeChild(fn),fn=null}}S.extend(p,{reliableTrDimensions:function(){return X(),un},reliableColDimensions:function(){return X(),dn}});var pn={position:`absolute`,visibility:`hidden`,display:`block`},mn={letterSpacing:`0`,fontWeight:`400`};function hn(e,t,n){var r=q.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||`px`):t}function gn(e,t,n,r,i,a){var o=+(t===`width`),s=0,c=0,l=0;if(n===(r?`border`:`content`))return 0;for(;o<4;o+=2)n===`margin`&&(l+=S.css(e,n+J[o],!0,i)),r?(n===`content`&&(c-=S.css(e,`padding`+J[o],!0,i)),n!==`margin`&&(c-=S.css(e,`border`+J[o]+`Width`,!0,i))):(c+=S.css(e,`padding`+J[o],!0,i),n===`padding`?s+=S.css(e,`border`+J[o]+`Width`,!0,i):c+=S.css(e,`border`+J[o]+`Width`,!0,i));return!r&&a>=0&&(c+=Math.max(0,Math.ceil(e[`offset`+t[0].toUpperCase()+t.slice(1)]-a-c-s-.5))||0),c+l}function _n(e,t,n){var r=nn(e),i=(E||n)&&S.css(e,`boxSizing`,!1,r)===`border-box`,a=i,o=an(e,t,r),s=`offset`+t[0].toUpperCase()+t.slice(1);if(en.test(o)){if(!n)return o;o=`auto`}return(o===`auto`||E&&i||!p.reliableColDimensions()&&C(e,`col`)||!p.reliableTrDimensions()&&C(e,`tr`))&&e.getClientRects().length&&(i=S.css(e,`boxSizing`,!1,r)===`border-box`,a=s in e,a&&(o=e[s])),o=parseFloat(o)||0,o+gn(e,t,n||(i?`border`:`content`),a,r,o)+`px`}S.extend({cssHooks:{},style:function(e,t,n,r){if(!(!e||e.nodeType===3||e.nodeType===8||!e.style)){var i,a,o,s=kt(t),c=tn.test(t),l=e.style;if(c||(t=ln(s)),o=S.cssHooks[t]||S.cssHooks[s],n!==void 0){if(a=typeof n,a===`string`&&(i=q.exec(n))&&i[1]&&(n=Dt(e,t,i),a=`number`),n==null||n!==n)return;a===`number`&&(n+=i&&i[3]||(Et(s)?`px`:``)),E&&n===``&&t.indexOf(`background`)===0&&(l[t]=`inherit`),(!o||!(`set`in o)||(n=o.set(e,n,r))!==void 0)&&(c?l.setProperty(t,n):l[t]=n)}else return o&&`get`in o&&(i=o.get(e,!1,r))!==void 0?i:l[t]}},css:function(e,t,n,r){var i,a,o,s=kt(t);return tn.test(t)||(t=ln(s)),o=S.cssHooks[t]||S.cssHooks[s],o&&`get`in o&&(i=o.get(e,!0,n)),i===void 0&&(i=an(e,t,r)),i===`normal`&&t in mn&&(i=mn[t]),n===``||n?(a=parseFloat(i),n===!0||isFinite(a)?a||0:i):i}}),S.each([`height`,`width`],function(e,t){S.cssHooks[t]={get:function(e,n,r){if(n)return S.css(e,`display`)===`none`?rn(e,pn,function(){return _n(e,t,r)}):_n(e,t,r)},set:function(e,n,r){var i,a=nn(e),o=r&&S.css(e,`boxSizing`,!1,a)===`border-box`,s=r?gn(e,t,r,o,a):0;return s&&(i=q.exec(n))&&(i[3]||`px`)!==`px`&&(e.style[t]=n,n=S.css(e,t)),hn(e,n,s)}}}),S.each({margin:``,padding:``,border:`Width`},function(e,t){S.cssHooks[e+t]={expand:function(n){for(var r=0,i={},a=typeof n==`string`?n.split(` `):[n];r<4;r++)i[e+J[r]+t]=a[r]||a[r-2]||a[0];return i}},e!==`margin`&&(S.cssHooks[e+t].set=hn)}),S.fn.extend({css:function(e,t){return L(this,function(e,t,n){var r,i,a={},o=0;if(Array.isArray(t)){for(r=nn(e),i=t.length;o<i;o++)a[t[o]]=S.css(e,t[o],!1,r);return a}return n===void 0?S.css(e,t):S.style(e,t,n)},e,t,arguments.length>1)}});function Z(e,t,n,r,i){return new Z.prototype.init(e,t,n,r,i)}S.Tween=Z,Z.prototype={constructor:Z,init:function(e,t,n,r,i,a){this.elem=e,this.prop=n,this.easing=i||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(Et(n)?`px`:``)},cur:function(){var e=Z.propHooks[this.prop];return e&&e.get?e.get(this):Z.propHooks._default.get(this)},run:function(e){var t,n=Z.propHooks[this.prop];return this.options.duration?this.pos=t=S.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Z.propHooks._default.set(this),this}},Z.prototype.init.prototype=Z.prototype,Z.propHooks={_default:{get:function(e){var t;return e.elem.nodeType!==1||e.elem[e.prop]!=null&&e.elem.style[e.prop]==null?e.elem[e.prop]:(t=S.css(e.elem,e.prop,``),!t||t===`auto`?0:t)},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):e.elem.nodeType===1&&(S.cssHooks[e.prop]||e.elem.style[ln(e.prop)]!=null)?S.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},S.easing={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2},_default:`swing`},S.fx=Z.prototype.init,S.fx.step={};var vn,yn,bn=/^(?:toggle|show|hide)$/,xn=/queueHooks$/;function Sn(){yn&&(_.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(Sn):e.setTimeout(Sn,13),S.fx.tick())}function Cn(){return e.setTimeout(function(){vn=void 0}),vn=Date.now()}function wn(e,t){var n,r=0,i={height:e};for(t=+!!t;r<4;r+=2-t)n=J[r],i[`margin`+n]=i[`padding`+n]=e;return t&&(i.opacity=i.width=e),i}function Tn(e,t,n){for(var r,i=(On.tweeners[t]||[]).concat(On.tweeners[`*`]),a=0,o=i.length;a<o;a++)if(r=i[a].call(n,t,e))return r}function En(e,t,n){var r,i,a,o,s,c,l,u,d=`width`in t||`height`in t,f=this,p={},m=e.style,h=e.nodeType&&Ct(e),g=G.get(e,`fxshow`);for(r in n.queue||(o=S._queueHooks(e,`fx`),o.unqueued??(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,f.always(function(){f.always(function(){o.unqueued--,S.queue(e,`fx`).length||o.empty.fire()})})),t)if(i=t[r],bn.test(i)){if(delete t[r],a||=i===`toggle`,i===(h?`hide`:`show`))if(i===`show`&&g&&g[r]!==void 0)h=!0;else continue;p[r]=g&&g[r]||S.style(e,r)}if(c=!S.isEmptyObject(t),!(!c&&S.isEmptyObject(p)))for(r in d&&e.nodeType===1&&(n.overflow=[m.overflow,m.overflowX,m.overflowY],l=g&&g.display,l??=G.get(e,`display`),u=S.css(e,`display`),u===`none`&&(l?u=l:(Mt([e],!0),l=e.style.display||l,u=S.css(e,`display`),Mt([e]))),(u===`inline`||u===`inline-block`&&l!=null)&&S.css(e,`float`)===`none`&&(c||(f.done(function(){m.display=l}),l??=(u=m.display,u===`none`?``:u)),m.display=`inline-block`)),n.overflow&&(m.overflow=`hidden`,f.always(function(){m.overflow=n.overflow[0],m.overflowX=n.overflow[1],m.overflowY=n.overflow[2]})),c=!1,p)c||(g?`hidden`in g&&(h=g.hidden):g=G.set(e,`fxshow`,{display:l}),a&&(g.hidden=!h),h&&Mt([e],!0),f.done(function(){for(r in h||Mt([e]),G.remove(e,`fxshow`),p)S.style(e,r,p[r])})),c=Tn(h?g[r]:0,r,f),r in g||(g[r]=c.start,h&&(c.end=c.start,c.start=0))}function Dn(e,t){var n,r,i,a,o;for(n in e)if(r=kt(n),i=t[r],a=e[n],Array.isArray(a)&&(i=a[1],a=e[n]=a[0]),n!==r&&(e[r]=a,delete e[n]),o=S.cssHooks[r],o&&`expand`in o)for(n in a=o.expand(a),delete e[r],a)n in e||(e[n]=a[n],t[n]=i);else t[r]=i}function On(e,t,n){var r,i,a=0,o=On.prefilters.length,s=S.Deferred().always(function(){delete c.elem}),c=function(){if(i)return!1;for(var t=vn||Cn(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),a=0,o=l.tweens.length;a<o;a++)l.tweens[a].run(r);return s.notifyWith(e,[l,r,n]),r<1&&o?n:(o||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:S.extend({},t),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},n),originalProperties:t,originalOptions:n,startTime:vn||Cn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=S.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),u=l.props;for(Dn(u,l.opts.specialEasing);a<o;a++)if(r=On.prefilters[a].call(l,e,u,l.opts),r)return typeof r.stop==`function`&&(S._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return S.map(u,Tn,l),typeof l.opts.start==`function`&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),S.fx.timer(S.extend(c,{elem:e,anim:l,queue:l.opts.queue})),l}S.Animation=S.extend(On,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return Dt(n.elem,e,q.exec(t),n),n}]},tweener:function(e,t){typeof e==`function`?(t=e,e=[`*`]):e=e.match(pe);for(var n,r=0,i=e.length;r<i;r++)n=e[r],On.tweeners[n]=On.tweeners[n]||[],On.tweeners[n].unshift(t)},prefilters:[En],prefilter:function(e,t){t?On.prefilters.unshift(e):On.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&typeof e==`object`?S.extend({},e):{complete:n||t||typeof e==`function`&&e,duration:e,easing:n&&t||t&&typeof t!=`function`&&t};return S.fx.off?r.duration=0:typeof r.duration!=`number`&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),(r.queue==null||r.queue===!0)&&(r.queue=`fx`),r.old=r.complete,r.complete=function(){typeof r.old==`function`&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Ct).css(`opacity`,0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=S.isEmptyObject(e),a=S.speed(t,n,r),o=function(){var t=On(this,S.extend({},e),a);(i||G.get(this,`finish`))&&t.stop(!0)};return o.finish=o,i||a.queue===!1?this.each(o):this.queue(a.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return typeof e!=`string`&&(n=t,t=e,e=void 0),t&&this.queue(e||`fx`,[]),this.each(function(){var t=!0,i=e!=null&&e+`queueHooks`,a=S.timers,o=G.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&xn.test(i)&&r(o[i]);for(i=a.length;i--;)a[i].elem===this&&(e==null||a[i].queue===e)&&(a[i].anim.stop(n),t=!1,a.splice(i,1));(t||!n)&&S.dequeue(this,e)})},finish:function(e){return e!==!1&&(e||=`fx`),this.each(function(){var t,n=G.get(this),r=n[e+`queue`],i=n[e+`queueHooks`],a=S.timers,o=r?r.length:0;for(n.finish=!0,S.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),S.each([`toggle`,`show`,`hide`],function(e,t){var n=S.fn[t];S.fn[t]=function(e,r,i){return e==null||typeof e==`boolean`?n.apply(this,arguments):this.animate(wn(t,!0),e,r,i)}}),S.each({slideDown:wn(`show`),slideUp:wn(`hide`),slideToggle:wn(`toggle`),fadeIn:{opacity:`show`},fadeOut:{opacity:`hide`},fadeToggle:{opacity:`toggle`}},function(e,t){S.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),S.timers=[],S.fx.tick=function(){var e,t=0,n=S.timers;for(vn=Date.now();t<n.length;t++)e=n[t],!e()&&n[t]===e&&n.splice(t--,1);n.length||S.fx.stop(),vn=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.start=function(){yn||(yn=!0,Sn())},S.fx.stop=function(){yn=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(t,n){return t=S.fx&&S.fx.speeds[t]||t,n||=`fx`,this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})};var kn=/^(?:input|select|textarea|button)$/i,An=/^(?:a|area)$/i;S.fn.extend({prop:function(e,t){return L(this,S.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[S.propFix[e]||e]})}}),S.extend({prop:function(e,t,n){var r,i,a=e.nodeType;if(!(a===3||a===8||a===2))return(a!==1||!S.isXMLDoc(e))&&(t=S.propFix[t]||t,i=S.propHooks[t]),n===void 0?i&&`get`in i&&(r=i.get(e,t))!==null?r:e[t]:i&&`set`in i&&(r=i.set(e,n,t))!==void 0?r:e[t]=n},propHooks:{tabIndex:{get:function(e){var t=e.getAttribute(`tabindex`);return t?parseInt(t,10):kn.test(e.nodeName)||An.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:`htmlFor`,class:`className`}}),E&&(S.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),S.each([`tabIndex`,`readOnly`,`maxLength`,`cellSpacing`,`cellPadding`,`rowSpan`,`colSpan`,`useMap`,`frameBorder`,`contentEditable`],function(){S.propFix[this.toLowerCase()]=this});function Q(e){return(e.match(pe)||[]).join(` `)}function jn(e){return e.getAttribute&&e.getAttribute(`class`)||``}function Mn(e){return Array.isArray(e)?e:typeof e==`string`&&e.match(pe)||[]}S.fn.extend({addClass:function(e){var t,n,r,i,a,o;return typeof e==`function`?this.each(function(t){S(this).addClass(e.call(this,t,jn(this)))}):(t=Mn(e),t.length?this.each(function(){if(r=jn(this),n=this.nodeType===1&&` `+Q(r)+` `,n){for(a=0;a<t.length;a++)i=t[a],n.indexOf(` `+i+` `)<0&&(n+=i+` `);o=Q(n),r!==o&&this.setAttribute(`class`,o)}}):this)},removeClass:function(e){var t,n,r,i,a,o;return typeof e==`function`?this.each(function(t){S(this).removeClass(e.call(this,t,jn(this)))}):arguments.length?(t=Mn(e),t.length?this.each(function(){if(r=jn(this),n=this.nodeType===1&&` `+Q(r)+` `,n){for(a=0;a<t.length;a++)for(i=t[a];n.indexOf(` `+i+` `)>-1;)n=n.replace(` `+i+` `,` `);o=Q(n),r!==o&&this.setAttribute(`class`,o)}}):this):this.attr(`class`,``)},toggleClass:function(e,t){var n,r,i,a;return typeof e==`function`?this.each(function(n){S(this).toggleClass(e.call(this,n,jn(this),t),t)}):typeof t==`boolean`?t?this.addClass(e):this.removeClass(e):(n=Mn(e),n.length?this.each(function(){for(a=S(this),i=0;i<n.length;i++)r=n[i],a.hasClass(r)?a.removeClass(r):a.addClass(r)}):this)},hasClass:function(e){var t,n,r=0;for(t=` `+e+` `;n=this[r++];)if(n.nodeType===1&&(` `+Q(jn(n))+` `).indexOf(t)>-1)return!0;return!1}}),S.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=typeof e==`function`,this.each(function(n){var i;this.nodeType===1&&(i=r?e.call(this,n,S(this).val()):e,i==null?i=``:typeof i==`number`?i+=``:Array.isArray(i)&&(i=S.map(i,function(e){return e==null?``:e+``})),t=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()],(!t||!(`set`in t)||t.set(this,i,`value`)===void 0)&&(this.value=i))})):i?(t=S.valHooks[i.type]||S.valHooks[i.nodeName.toLowerCase()],t&&`get`in t&&(n=t.get(i,`value`))!==void 0?n:(n=i.value,n??``)):void 0}}),S.extend({valHooks:{select:{get:function(e){var t,n,r,i=e.options,a=e.selectedIndex,o=e.type===`select-one`,s=o?null:[],c=o?a+1:i.length;for(r=a<0?c:o?a:0;r<c;r++)if(n=i[r],n.selected&&!n.disabled&&(!n.parentNode.disabled||!C(n.parentNode,`optgroup`))){if(t=S(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,a=S.makeArray(t),o=i.length;o--;)r=i[o],(r.selected=S.inArray(S(r).val(),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),E&&(S.valHooks.option={get:function(e){return e.getAttribute(`value`)??Q(S.text(e))}}),S.each([`radio`,`checkbox`],function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=S.inArray(S(e).val(),t)>-1}}});var Nn=/^(?:focusinfocus|focusoutblur)$/,Pn=function(e){e.stopPropagation()};S.extend(S.event,{trigger:function(t,n,r,i){var a,o,s,c,l,d,f,p,m=[r||_],g=u.call(t,`type`)?t.type:t,v=u.call(t,`namespace`)?t.namespace.split(`.`):[];if(o=p=s=r||=_,!(r.nodeType===3||r.nodeType===8)&&!Nn.test(g+S.event.triggered)&&(g.indexOf(`.`)>-1&&(v=g.split(`.`),g=v.shift(),v.sort()),l=g.indexOf(`:`)<0&&`on`+g,t=t[S.expando]?t:new S.Event(g,typeof t==`object`&&t),t.isTrigger=i?2:3,t.namespace=v.join(`.`),t.rnamespace=t.namespace?RegExp(`(^|\\.)`+v.join(`\\.(?:.*\\.|)`)+`(\\.|$)`):null,t.result=void 0,t.target||=r,n=n==null?[t]:S.makeArray(n,[t]),f=S.event.special[g]||{},!(!i&&f.trigger&&f.trigger.apply(r,n)===!1))){if(!i&&!f.noBubble&&!h(r)){for(c=f.delegateType||g,Nn.test(c+g)||(o=o.parentNode);o;o=o.parentNode)m.push(o),s=o;s===(r.ownerDocument||_)&&m.push(s.defaultView||s.parentWindow||e)}for(a=0;(o=m[a++])&&!t.isPropagationStopped();)p=o,t.type=a>1?c:f.bindType||g,d=(G.get(o,`events`)||Object.create(null))[t.type]&&G.get(o,`handle`),d&&d.apply(o,n),d=l&&o[l],d&&d.apply&>(o)&&(t.result=d.apply(o,n),t.result===!1&&t.preventDefault());return t.type=g,!i&&!t.isDefaultPrevented()&&(!f._default||f._default.apply(m.pop(),n)===!1)&>(r)&&l&&typeof r[g]==`function`&&!h(r)&&(s=r[l],s&&(r[l]=null),S.event.triggered=g,t.isPropagationStopped()&&p.addEventListener(g,Pn),r[g](),t.isPropagationStopped()&&p.removeEventListener(g,Pn),S.event.triggered=void 0,s&&(r[l]=s)),t.result}},simulate:function(e,t,n){var r=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(r,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each(function(){S.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}});var Fn=e.location,In={guid:Date.now()},Ln=/\?/;S.parseXML=function(t){var n,r;if(!t||typeof t!=`string`)return null;try{n=new e.DOMParser().parseFromString(t,`text/xml`)}catch{}return r=n&&n.getElementsByTagName(`parsererror`)[0],(!n||r)&&S.error(`Invalid XML: `+(r?S.map(r.childNodes,function(e){return e.textContent}).join(`
|
|
54
54
|
`):t)),n};var Rn=/\[\]$/,zn=/\r?\n/g,Bn=/^(?:submit|button|image|reset|file)$/i,Vn=/^(?:input|select|textarea|keygen)/i;function Hn(e,t,n,r){var i;if(Array.isArray(t))S.each(t,function(t,i){n||Rn.test(e)?r(e,i):Hn(e+`[`+(typeof i==`object`&&i?t:``)+`]`,i,n,r)});else if(!n&&m(t)===`object`)for(i in t)Hn(e+`[`+i+`]`,t[i],n,r);else r(e,t)}S.param=function(e,t){var n,r=[],i=function(e,t){var n=typeof t==`function`?t():t;r[r.length]=encodeURIComponent(e)+`=`+encodeURIComponent(n??``)};if(e==null)return``;if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){i(this.name,this.value)});else for(n in e)Hn(n,e[n],t,i);return r.join(`&`)},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=S.prop(this,`elements`);return e?S.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!S(this).is(`:disabled`)&&Vn.test(this.nodeName)&&!Bn.test(e)&&(this.checked||!Wt.test(e))}).map(function(e,t){var n=S(this).val();return n==null?null:Array.isArray(n)?S.map(n,function(e){return{name:t.name,value:e.replace(zn,`\r
|
|
55
55
|
`)}}):{name:t.name,value:n.replace(zn,`\r
|
|
56
|
-
`)}}).get()}});var Un=/%20/g,$=/#.*$/,Wn=/([?&])_=[^&]*/,Gn=/^(.*?):[ \t]*([^\r\n]*)$/gm,Kn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,qn=/^(?:GET|HEAD)$/,Jn=/^\/\//,Yn={},Xn={},Zn=`*/*`,Qn=_.createElement(`a`);Qn.href=Fn.href;function $n(e){return function(t,n){typeof t!=`string`&&(n=t,t=`*`);var r,i=0,a=t.toLowerCase().match(pe)||[];if(typeof n==`function`)for(;r=a[i++];)r[0]===`+`?(r=r.slice(1)||`*`,(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function er(e,t,n,r){var i={},a=e===Xn;function o(s){var c;return i[s]=!0,S.each(e[s]||[],function(e,s){var l=s(t,n,r);if(typeof l==`string`&&!a&&!i[l])return t.dataTypes.unshift(l),o(l),!1;if(a)return!(c=l)}),c}return o(t.dataTypes[0])||!i[`*`]&&o(`*`)}function tr(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in t)t[n]!==void 0&&((i[n]?e:r||={})[n]=t[n]);return r&&S.extend(!0,e,r),e}function nr(e,t,n){for(var r,i,a,o,s=e.contents,c=e.dataTypes;c[0]===`*`;)c.shift(),r===void 0&&(r=e.mimeType||t.getResponseHeader(`Content-Type`));if(r){for(i in s)if(s[i]&&s[i].test(r)){c.unshift(i);break}}if(c[0]in n)a=c[0];else{for(i in n){if(!c[0]||e.converters[i+` `+c[0]]){a=i;break}o||=i}a||=o}if(a)return a!==c[0]&&c.unshift(a),n[a]}function rr(e,t,n,r){var i,a,o,s,c,l={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)l[o.toLowerCase()]=e.converters[o];for(a=u.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=a,a=u.shift(),a){if(a===`*`)a=c;else if(c!==`*`&&c!==a){if(o=l[c+` `+a]||l[`* `+a],!o){for(i in l)if(s=i.split(` `),s[1]===a&&(o=l[c+` `+s[0]]||l[`* `+s[0]],o)){o===!0?o=l[i]:l[i]!==!0&&(a=s[0],u.unshift(s[1]));break}}if(o!==!0)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:`parsererror`,error:o?e:`No conversion from `+c+` to `+a}}}}return{state:`success`,data:t}}S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Fn.href,type:`GET`,isLocal:Kn.test(Fn.protocol),global:!0,processData:!0,async:!0,contentType:`application/x-www-form-urlencoded; charset=UTF-8`,accepts:{"*":Zn,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(e,t){return t?tr(tr(e,S.ajaxSettings),t):tr(S.ajaxSettings,e)},ajaxPrefilter:$n(Yn),ajaxTransport:$n(Xn),ajax:function(t,n){typeof t==`object`&&(n=t,t=void 0),n||={};var r,i,a,o,s,c,l,u,d,f,p=S.ajaxSetup({},n),m=p.context||p,h=p.context&&(m.nodeType||m.jquery)?S(m):S.event,g=S.Deferred(),v=S.Callbacks(`once memory`),y=p.statusCode||{},b={},x={},C=`canceled`,w={readyState:0,getResponseHeader:function(e){var t;if(l){if(!o)for(o={};t=Gn.exec(a);)o[t[1].toLowerCase()+` `]=(o[t[1].toLowerCase()+` `]||[]).concat(t[2]);t=o[e.toLowerCase()+` `]}return t==null?null:t.join(`, `)},getAllResponseHeaders:function(){return l?a:null},setRequestHeader:function(e,t){return l??(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return l??(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)w.always(e[w.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||C;return r&&r.abort(t),T(0,t),this}};if(g.promise(w),p.url=((t||p.url||Fn.href)+``).replace(Jn,Fn.protocol+`//`),p.type=n.method||n.type||p.method||p.type,p.dataTypes=(p.dataType||`*`).toLowerCase().match(pe)||[``],p.crossDomain==null){c=_.createElement(`a`);try{c.href=p.url,c.href=c.href,p.crossDomain=Qn.protocol+`//`+Qn.host!=c.protocol+`//`+c.host}catch{p.crossDomain=!0}}if(er(Yn,p,n,w),p.data&&p.processData&&typeof p.data!=`string`&&(p.data=S.param(p.data,p.traditional)),l)return w;for(d in u=S.event&&p.global,u&&S.active++===0&&S.event.trigger(`ajaxStart`),p.type=p.type.toUpperCase(),p.hasContent=!qn.test(p.type),i=p.url.replace($,``),p.hasContent?p.data&&p.processData&&(p.contentType||``).indexOf(`application/x-www-form-urlencoded`)===0&&(p.data=p.data.replace(Un,`+`)):(f=p.url.slice(i.length),p.data&&(p.processData||typeof p.data==`string`)&&(i+=(Ln.test(i)?`&`:`?`)+p.data,delete p.data),p.cache===!1&&(i=i.replace(Wn,`$1`),f=(Ln.test(i)?`&`:`?`)+`_=`+ In.guid+++f),p.url=i+f),p.ifModified&&(S.lastModified[i]&&w.setRequestHeader(`If-Modified-Since`,S.lastModified[i]),S.etag[i]&&w.setRequestHeader(`If-None-Match`,S.etag[i])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&w.setRequestHeader(`Content-Type`,p.contentType),w.setRequestHeader(`Accept`,p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+(p.dataTypes[0]===`*`?``:`, `+Zn+`; q=0.01`):p.accepts[`*`]),p.headers)w.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(p.beforeSend.call(m,w,p)===!1||l))return w.abort();if(C=`abort`,v.add(p.complete),w.done(p.success),w.fail(p.error),r=er(Xn,p,n,w),!r)T(-1,`No Transport`);else{if(w.readyState=1,u&&h.trigger(`ajaxSend`,[w,p]),l)return w;p.async&&p.timeout>0&&(s=e.setTimeout(function(){w.abort(`timeout`)},p.timeout));try{l=!1,r.send(b,T)}catch(e){if(l)throw e;T(-1,e)}}function T(t,n,o,c){var d,f,_,b,x,C=n;l||(l=!0,s&&e.clearTimeout(s),r=void 0,a=c||``,w.readyState=t>0?4:0,d=t>=200&&t<300||t===304,o&&(b=nr(p,w,o)),!d&&S.inArray(`script`,p.dataTypes)>-1&&S.inArray(`json`,p.dataTypes)<0&&(p.converters[`text script`]=function(){}),b=rr(p,b,w,d),d?(p.ifModified&&(x=w.getResponseHeader(`Last-Modified`),x&&(S.lastModified[i]=x),x=w.getResponseHeader(`etag`),x&&(S.etag[i]=x)),t===204||p.type===`HEAD`?C=`nocontent`:t===304?C=`notmodified`:(C=b.state,f=b.data,_=b.error,d=!_)):(_=C,(t||!C)&&(C=`error`,t<0&&(t=0))),w.status=t,w.statusText=(n||C)+``,d?g.resolveWith(m,[f,C,w]):g.rejectWith(m,[w,C,_]),w.statusCode(y),y=void 0,u&&h.trigger(d?`ajaxSuccess`:`ajaxError`,[w,p,d?f:_]),v.fireWith(m,[w,C]),u&&(h.trigger(`ajaxComplete`,[w,p]),--S.active||S.event.trigger(`ajaxStop`)))}return w},getJSON:function(e,t,n){return S.get(e,t,n,`json`)},getScript:function(e,t){return S.get(e,void 0,t,`script`)}}),S.each([`get`,`post`],function(e,t){S[t]=function(e,n,r,i){return(typeof n==`function`||n===null)&&(i||=r,r=n,n=void 0),S.ajax(S.extend({url:e,type:t,dataType:i,data:n,success:r},S.isPlainObject(e)&&e))}}),S.ajaxPrefilter(function(e){for(var t in e.headers)t.toLowerCase()===`content-type`&&(e.contentType=e.headers[t]||``)}),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:`GET`,dataType:`script`,cache:!0,async:!1,global:!1,scriptAttrs:t.crossOrigin?{crossOrigin:t.crossOrigin}:void 0,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&(typeof e==`function`&&(e=e.call(this[0])),t=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return typeof e==`function`?this.each(function(t){S(this).wrapInner(e.call(this,t))}):this.each(function(){var t=S(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=typeof e==`function`;return this.each(function(n){S(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not(`body`).each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){return new e.XMLHttpRequest};var ir={0:200};S.ajaxTransport(function(e){var t;return{send:function(n,r){var i,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)a[i]=e.xhrFields[i];for(i in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),!e.crossDomain&&!n[`X-Requested-With`]&&(n[`X-Requested-With`]=`XMLHttpRequest`),n)a.setRequestHeader(i,n[i]);t=function(e){return function(){t&&(t=a.onload=a.onerror=a.onabort=a.ontimeout=null,e===`abort`?a.abort():e===`error`?r(a.status,a.statusText):r(ir[a.status]||a.status,a.statusText,(a.responseType||`text`)===`text`?{text:a.responseText}:{binary:a.response},a.getAllResponseHeaders()))}},a.onload=t(),a.onabort=a.onerror=a.ontimeout=t(`error`),t=t(`abort`);try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}});function ar(e){return e.scriptAttrs||!e.headers&&(e.crossDomain||e.async&&S.inArray(`json`,e.dataTypes)<0)}S.ajaxSetup({accepts:{script:`text/javascript, application/javascript, application/ecmascript, application/x-ecmascript`},converters:{"text script":function(e){return S.globalEval(e),e}}}),S.ajaxPrefilter(`script`,function(e){e.cache===void 0&&(e.cache=!1),ar(e)&&(e.type=`GET`)}),S.ajaxTransport(`script`,function(e){if(ar(e)){var t,n;return{send:function(r,i){t=S(`<script>`).attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on(`load error`,n=function(e){t.remove(),n=null,e&&i(e.type===`error`?404:200,e.type)}),_.head.appendChild(t[0])},abort:function(){n&&n()}}}});var or=[],sr=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:`callback`,jsonpCallback:function(){var e=or.pop()||S.expando+`_`+ In.guid++;return this[e]=!0,e}}),S.ajaxPrefilter(`jsonp`,function(t,n,r){var i,a,o,s=t.jsonp!==!1&&(sr.test(t.url)?`url`:typeof t.data==`string`&&(t.contentType||``).indexOf(`application/x-www-form-urlencoded`)===0&&sr.test(t.data)&&`data`);return i=t.jsonpCallback=typeof t.jsonpCallback==`function`?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(sr,`$1`+i):t.jsonp!==!1&&(t.url+=(Ln.test(t.url)?`&`:`?`)+t.jsonp+`=`+i),t.converters[`script json`]=function(){return o||S.error(i+` was not called`),o[0]},t.dataTypes[0]=`json`,a=e[i],e[i]=function(){o=arguments},r.always(function(){a===void 0?S(e).removeProp(i):e[i]=a,t[i]&&(t.jsonpCallback=n.jsonpCallback,or.push(i)),o&&typeof a==`function`&&a(o[0]),o=a=void 0}),`script`}),S.ajaxPrefilter(function(t,n){typeof t.data!=`string`&&!S.isPlainObject(t.data)&&!Array.isArray(t.data)&&!(`processData`in n)&&(t.processData=!1),t.data instanceof e.FormData&&(t.contentType=!1)}),S.parseHTML=function(t,n,r){if(typeof t!=`string`&&!$e(t+``))return[];typeof n==`boolean`&&(r=n,n=!1);var i,a;return n||=new e.DOMParser().parseFromString(``,`text/html`),i=Qe.exec(t),a=!r&&[],i?[n.createElement(i[1])]:(i=Bt([t],n,a),a&&a.length&&S(a).remove(),S.merge([],i.childNodes))},S.fn.load=function(e,t,n){var r,i,a,o=this,s=e.indexOf(` `);return s>-1&&(r=Q(e.slice(s)),e=e.slice(0,s)),typeof t==`function`?(n=t,t=void 0):t&&typeof t==`object`&&(i=`POST`),o.length>0&&S.ajax({url:e,type:i||`GET`,dataType:`html`,data:t}).done(function(e){a=arguments,o.html(r?S(`<div>`).append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){o.each(function(){n.apply(this,a||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(e){return S.grep(S.timers,function(t){return e===t.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,a,o,s,c,l,u=S.css(e,`position`),d=S(e),f={};u===`static`&&(e.style.position=`relative`),s=d.offset(),a=S.css(e,`top`),c=S.css(e,`left`),l=(u===`absolute`||u===`fixed`)&&(a+c).indexOf(`auto`)>-1,l?(r=d.position(),o=r.top,i=r.left):(o=parseFloat(a)||0,i=parseFloat(c)||0),typeof t==`function`&&(t=t.call(e,n,S.extend({},s))),t.top!=null&&(f.top=t.top-s.top+o),t.left!=null&&(f.left=t.left-s.left+i),`using`in t?t.using.call(e,f):d.css(f)}},S.fn.extend({offset:function(e){if(arguments.length)return e===void 0?this:this.each(function(t){S.offset.setOffset(this,e,t)});var t,n,r=this[0];if(r)return r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if(S.css(r,`position`)===`fixed`)t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&e!==n.documentElement&&S.css(e,`position`)===`static`;)e=e.offsetParent||n.documentElement;e&&e!==r&&e.nodeType===1&&S.css(e,`position`)!==`static`&&(i=S(e).offset(),i.top+=S.css(e,`borderTopWidth`,!0),i.left+=S.css(e,`borderLeftWidth`,!0))}return{top:t.top-i.top-S.css(r,`marginTop`,!0),left:t.left-i.left-S.css(r,`marginLeft`,!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&S.css(e,`position`)===`static`;)e=e.offsetParent;return e||A})}}),S.each({scrollLeft:`pageXOffset`,scrollTop:`pageYOffset`},function(e,t){var n=t===`pageYOffset`;S.fn[e]=function(r){return L(this,function(e,r,i){var a;if(h(e)?a=e:e.nodeType===9&&(a=e.defaultView),i===void 0)return a?a[t]:e[r];a?a.scrollTo(n?a.pageXOffset:i,n?i:a.pageYOffset):e[r]=i},e,r,arguments.length)}}),S.each({Height:`height`,Width:`width`},function(e,t){S.each({padding:`inner`+e,content:t,"":`outer`+e},function(n,r){S.fn[r]=function(i,a){var o=arguments.length&&(n||typeof i!=`boolean`),s=n||(i===!0||a===!0?`margin`:`border`);return L(this,function(t,n,i){var a;return h(t)?r.indexOf(`outer`)===0?t[`inner`+e]:t.document.documentElement[`client`+e]:t.nodeType===9?(a=t.documentElement,Math.max(t.body[`scroll`+e],a[`scroll`+e],t.body[`offset`+e],a[`offset`+e],a[`client`+e])):i===void 0?S.css(t,n,s):S.style(t,n,i,s)},t,o?i:void 0,o)}})}),S.each([`ajaxStart`,`ajaxStop`,`ajaxComplete`,`ajaxError`,`ajaxSuccess`,`ajaxSend`],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,`**`):this.off(t,e||`**`,n)},hover:function(e,t){return this.on(`mouseenter`,e).on(`mouseleave`,t||e)}}),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(e,t){S.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),S.proxy=function(e,t){var n,r,a;if(typeof t==`string`&&(n=e[t],t=e,e=n),typeof e==`function`)return r=i.call(arguments,2),a=function(){return e.apply(t||this,r.concat(i.call(arguments)))},a.guid=e.guid=e.guid||S.guid++,a},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.expr[`:`]=S.expr.filters=S.expr.pseudos,typeof define==`function`&&define.amd&&define(`jquery`,[],function(){return S});var cr=e.jQuery,lr=e.$;return S.noConflict=function(t){return e.$===S&&(e.$=lr),t&&e.jQuery===S&&(e.jQuery=cr),S},t===void 0&&(e.jQuery=e.$=S),S}var _t,G=o((()=>{_t=gt(window,!0)})),K=s(((e,t)=>{var{jQuery:n}=(G(),d(ht));t.exports=n}));s(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(K()):typeof define==`function`&&define.amd?define(`bootstrap-colorpicker`,[`jquery`],r):typeof e==`object`?e[`bootstrap-colorpicker`]=r(K()):n[`bootstrap-colorpicker`]=r(n.jQuery)})(window,function(e){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,`__esModule`,{value:!0})},n.t=function(e,t){if(t&1&&(e=n(e)),t&8||t&4&&typeof e==`object`&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,`default`,{enumerable:!0,value:e}),t&2&&typeof e!=`string`)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=7)})([(function(t,n){t.exports=e}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o(this,e),this.colorpicker=t,this.options=n,!(this.colorpicker.element&&this.colorpicker.element.length))throw Error(`Extension: this.colorpicker.element is not valid`);this.colorpicker.element.on(`colorpickerCreate.colorpicker-ext`,i.default.proxy(this.onCreate,this)),this.colorpicker.element.on(`colorpickerDestroy.colorpicker-ext`,i.default.proxy(this.onDestroy,this)),this.colorpicker.element.on(`colorpickerUpdate.colorpicker-ext`,i.default.proxy(this.onUpdate,this)),this.colorpicker.element.on(`colorpickerChange.colorpicker-ext`,i.default.proxy(this.onChange,this)),this.colorpicker.element.on(`colorpickerInvalid.colorpicker-ext`,i.default.proxy(this.onInvalid,this)),this.colorpicker.element.on(`colorpickerShow.colorpicker-ext`,i.default.proxy(this.onShow,this)),this.colorpicker.element.on(`colorpickerHide.colorpicker-ext`,i.default.proxy(this.onHide,this)),this.colorpicker.element.on(`colorpickerEnable.colorpicker-ext`,i.default.proxy(this.onEnable,this)),this.colorpicker.element.on(`colorpickerDisable.colorpicker-ext`,i.default.proxy(this.onDisable,this))}return r(e,[{key:`resolveColor`,value:function(e){return arguments.length>1&&arguments[1]!==void 0&&arguments[1],!1}},{key:`onCreate`,value:function(e){}},{key:`onDestroy`,value:function(e){this.colorpicker.element.off(`.colorpicker-ext`)}},{key:`onUpdate`,value:function(e){}},{key:`onChange`,value:function(e){}},{key:`onInvalid`,value:function(e){}},{key:`onHide`,value:function(e){}},{key:`onShow`,value:function(e){}},{key:`onDisable`,value:function(e){}},{key:`onEnable`,value:function(e){}}]),e}(),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0}),t.ColorItem=t.HSVAColor=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(16));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var s=function(){function e(t,n,r,i){o(this,e),this.h=isNaN(t)?0:t,this.s=isNaN(n)?0:n,this.v=isNaN(r)?0:r,this.a=isNaN(t)?1:i}return r(e,[{key:`toString`,value:function(){return this.h+`, `+this.s+`%, `+this.v+`%, `+this.a}}]),e}(),c=function(){r(e,[{key:`api`,value:function(t){var n=[...arguments].slice(1);if(arguments.length===0)return this._color;var r=this._color[t].apply(this._color,n);return r instanceof i.default?new e(r,this.format):r}},{key:`original`,get:function(){return this._original}}],[{key:`HSVAColor`,get:function(){return s}}]);function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;o(this,e),this.replace(t,n,r)}return r(e,[{key:`replace`,value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(n=e.sanitizeFormat(n),this._original={color:t,format:n,valid:!0},this._color=e.parse(t,r),this._color===null){this._color=(0,i.default)(),this._original.valid=!1;return}this._format=n||(e.isHex(t)?`hex`:this._color.model)}},{key:`isValid`,value:function(){return this._original.valid===!0}},{key:`setHueRatio`,value:function(e){this.hue=(1-e)*360}},{key:`setSaturationRatio`,value:function(e){this.saturation=e*100}},{key:`setValueRatio`,value:function(e){this.value=(1-e)*100}},{key:`setAlphaRatio`,value:function(e){this.alpha=1-e}},{key:`isDesaturated`,value:function(){return this.saturation===0}},{key:`isTransparent`,value:function(){return this.alpha===0}},{key:`hasTransparency`,value:function(){return this.hasAlpha()&&this.alpha<1}},{key:`hasAlpha`,value:function(){return!isNaN(this.alpha)}},{key:`toObject`,value:function(){return new s(this.hue,this.saturation,this.value,this.alpha)}},{key:`toHsva`,value:function(){return this.toObject()}},{key:`toHsvaRatio`,value:function(){return new s(this.hue/360,this.saturation/100,this.value/100,this.alpha)}},{key:`toString`,value:function(){return this.string()}},{key:`string`,value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(t=e.sanitizeFormat(t||this.format),!t)return this._color.round().string();if(this._color[t]===void 0)throw Error(`Unsupported color format: '`+t+`'`);var n=this._color[t]();return n.round?n.round().string():n}},{key:`equals`,value:function(t){return t=t instanceof e?t:new e(t),!t.isValid()||!this.isValid()?!1:this.hue===t.hue&&this.saturation===t.saturation&&this.value===t.value&&this.alpha===t.alpha}},{key:`getClone`,value:function(){return new e(this._color,this.format)}},{key:`getCloneHueOnly`,value:function(){return new e([this.hue,100,100,1],this.format)}},{key:`getCloneOpaque`,value:function(){return new e(this._color.alpha(1),this.format)}},{key:`toRgbString`,value:function(){return this.string(`rgb`)}},{key:`toHexString`,value:function(){return this.string(`hex`)}},{key:`toHslString`,value:function(){return this.string(`hsl`)}},{key:`isDark`,value:function(){return this._color.isDark()}},{key:`isLight`,value:function(){return this._color.isLight()}},{key:`generate`,value:function(t){var n=[];if(Array.isArray(t))n=t;else if(e.colorFormulas.hasOwnProperty(t))n=e.colorFormulas[t];else throw Error(`No color formula found with the name '`+t+`'.`);var r=[],i=this._color,a=this.format;return n.forEach(function(t){var n=[t?(i.hue()+t)%360:i.hue(),i.saturationv(),i.value(),i.alpha()];r.push(new e(n,a))}),r}},{key:`hue`,get:function(){return this._color.hue()},set:function(e){this._color=this._color.hue(e)}},{key:`saturation`,get:function(){return this._color.saturationv()},set:function(e){this._color=this._color.saturationv(e)}},{key:`value`,get:function(){return this._color.value()},set:function(e){this._color=this._color.value(e)}},{key:`alpha`,get:function(){var e=this._color.alpha();return isNaN(e)?1:e},set:function(e){this._color=this._color.alpha(Math.round(e*100)/100)}},{key:`format`,get:function(){return this._format?this._format:this._color.model},set:function(t){this._format=e.sanitizeFormat(t)}}],[{key:`parse`,value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(t instanceof i.default)return t;if(t instanceof e)return t._color;var r=null;if(t=t instanceof s?[t.h,t.s,t.v,isNaN(t.a)?1:t.a]:e.sanitizeString(t),t===null||(Array.isArray(t)&&(r=`hsv`),e.isHex(t)&&t.length!==6&&t.length!==7&&n))return null;try{return(0,i.default)(t,r)}catch{return null}}},{key:`sanitizeString`,value:function(e){return typeof e==`string`||e instanceof String?e.match(/^[0-9a-f]{2,}$/i)?`#`+e:e.toLowerCase()===`transparent`?`#FFFFFF00`:e:e}},{key:`isHex`,value:function(e){return typeof e==`string`||e instanceof String?!!e.match(/^#?[0-9a-f]{2,}$/i):!1}},{key:`sanitizeFormat`,value:function(e){switch(e){case`hex`:case`hex3`:case`hex4`:case`hex6`:case`hex8`:return`hex`;case`rgb`:case`rgba`:case`keyword`:case`name`:return`rgb`;case`hsl`:case`hsla`:case`hsv`:case`hsva`:case`hwb`:case`hwba`:return`hsl`;default:return``}}}]),e}();c.colorFormulas={complementary:[180],triad:[0,120,240],tetrad:[0,90,180,270],splitcomplement:[0,72,216]},t.default=c,t.HSVAColor=s,t.ColorItem=c}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r={bar_size_short:16,base_margin:6,columns:6},i=r.bar_size_short*r.columns+r.base_margin*(r.columns-1);t.default={customClass:null,color:!1,fallbackColor:!1,format:`auto`,horizontal:!1,inline:!1,container:!1,popover:{animation:!0,placement:`bottom`,fallbackPlacement:`flip`},debug:!1,input:`input`,addon:`.colorpicker-input-addon`,autoInputFallback:!0,autoHexInputFallback:!0,useHashPrefix:!0,useAlpha:!0,template:`<div class="colorpicker">
|
|
56
|
+
`)}}).get()}});var Un=/%20/g,$=/#.*$/,Wn=/([?&])_=[^&]*/,Gn=/^(.*?):[ \t]*([^\r\n]*)$/gm,Kn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,qn=/^(?:GET|HEAD)$/,Jn=/^\/\//,Yn={},Xn={},Zn=`*/*`,Qn=_.createElement(`a`);Qn.href=Fn.href;function $n(e){return function(t,n){typeof t!=`string`&&(n=t,t=`*`);var r,i=0,a=t.toLowerCase().match(pe)||[];if(typeof n==`function`)for(;r=a[i++];)r[0]===`+`?(r=r.slice(1)||`*`,(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function er(e,t,n,r){var i={},a=e===Xn;function o(s){var c;return i[s]=!0,S.each(e[s]||[],function(e,s){var l=s(t,n,r);if(typeof l==`string`&&!a&&!i[l])return t.dataTypes.unshift(l),o(l),!1;if(a)return!(c=l)}),c}return o(t.dataTypes[0])||!i[`*`]&&o(`*`)}function tr(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in t)t[n]!==void 0&&((i[n]?e:r||={})[n]=t[n]);return r&&S.extend(!0,e,r),e}function nr(e,t,n){for(var r,i,a,o,s=e.contents,c=e.dataTypes;c[0]===`*`;)c.shift(),r===void 0&&(r=e.mimeType||t.getResponseHeader(`Content-Type`));if(r){for(i in s)if(s[i]&&s[i].test(r)){c.unshift(i);break}}if(c[0]in n)a=c[0];else{for(i in n){if(!c[0]||e.converters[i+` `+c[0]]){a=i;break}o||=i}a||=o}if(a)return a!==c[0]&&c.unshift(a),n[a]}function rr(e,t,n,r){var i,a,o,s,c,l={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)l[o.toLowerCase()]=e.converters[o];for(a=u.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=a,a=u.shift(),a){if(a===`*`)a=c;else if(c!==`*`&&c!==a){if(o=l[c+` `+a]||l[`* `+a],!o){for(i in l)if(s=i.split(` `),s[1]===a&&(o=l[c+` `+s[0]]||l[`* `+s[0]],o)){o===!0?o=l[i]:l[i]!==!0&&(a=s[0],u.unshift(s[1]));break}}if(o!==!0)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:`parsererror`,error:o?e:`No conversion from `+c+` to `+a}}}}return{state:`success`,data:t}}S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Fn.href,type:`GET`,isLocal:Kn.test(Fn.protocol),global:!0,processData:!0,async:!0,contentType:`application/x-www-form-urlencoded; charset=UTF-8`,accepts:{"*":Zn,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(e,t){return t?tr(tr(e,S.ajaxSettings),t):tr(S.ajaxSettings,e)},ajaxPrefilter:$n(Yn),ajaxTransport:$n(Xn),ajax:function(t,n){typeof t==`object`&&(n=t,t=void 0),n||={};var r,i,a,o,s,c,l,u,d,f,p=S.ajaxSetup({},n),m=p.context||p,h=p.context&&(m.nodeType||m.jquery)?S(m):S.event,g=S.Deferred(),v=S.Callbacks(`once memory`),y=p.statusCode||{},b={},x={},C=`canceled`,w={readyState:0,getResponseHeader:function(e){var t;if(l){if(!o)for(o={};t=Gn.exec(a);)o[t[1].toLowerCase()+` `]=(o[t[1].toLowerCase()+` `]||[]).concat(t[2]);t=o[e.toLowerCase()+` `]}return t==null?null:t.join(`, `)},getAllResponseHeaders:function(){return l?a:null},setRequestHeader:function(e,t){return l??(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return l??(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)w.always(e[w.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||C;return r&&r.abort(t),T(0,t),this}};if(g.promise(w),p.url=((t||p.url||Fn.href)+``).replace(Jn,Fn.protocol+`//`),p.type=n.method||n.type||p.method||p.type,p.dataTypes=(p.dataType||`*`).toLowerCase().match(pe)||[``],p.crossDomain==null){c=_.createElement(`a`);try{c.href=p.url,c.href=c.href,p.crossDomain=Qn.protocol+`//`+Qn.host!=c.protocol+`//`+c.host}catch{p.crossDomain=!0}}if(er(Yn,p,n,w),p.data&&p.processData&&typeof p.data!=`string`&&(p.data=S.param(p.data,p.traditional)),l)return w;for(d in u=S.event&&p.global,u&&S.active++===0&&S.event.trigger(`ajaxStart`),p.type=p.type.toUpperCase(),p.hasContent=!qn.test(p.type),i=p.url.replace($,``),p.hasContent?p.data&&p.processData&&(p.contentType||``).indexOf(`application/x-www-form-urlencoded`)===0&&(p.data=p.data.replace(Un,`+`)):(f=p.url.slice(i.length),p.data&&(p.processData||typeof p.data==`string`)&&(i+=(Ln.test(i)?`&`:`?`)+p.data,delete p.data),p.cache===!1&&(i=i.replace(Wn,`$1`),f=(Ln.test(i)?`&`:`?`)+`_=`+ In.guid+++f),p.url=i+f),p.ifModified&&(S.lastModified[i]&&w.setRequestHeader(`If-Modified-Since`,S.lastModified[i]),S.etag[i]&&w.setRequestHeader(`If-None-Match`,S.etag[i])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&w.setRequestHeader(`Content-Type`,p.contentType),w.setRequestHeader(`Accept`,p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+(p.dataTypes[0]===`*`?``:`, `+Zn+`; q=0.01`):p.accepts[`*`]),p.headers)w.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(p.beforeSend.call(m,w,p)===!1||l))return w.abort();if(C=`abort`,v.add(p.complete),w.done(p.success),w.fail(p.error),r=er(Xn,p,n,w),!r)T(-1,`No Transport`);else{if(w.readyState=1,u&&h.trigger(`ajaxSend`,[w,p]),l)return w;p.async&&p.timeout>0&&(s=e.setTimeout(function(){w.abort(`timeout`)},p.timeout));try{l=!1,r.send(b,T)}catch(e){if(l)throw e;T(-1,e)}}function T(t,n,o,c){var d,f,_,b,x,C=n;l||(l=!0,s&&e.clearTimeout(s),r=void 0,a=c||``,w.readyState=t>0?4:0,d=t>=200&&t<300||t===304,o&&(b=nr(p,w,o)),!d&&S.inArray(`script`,p.dataTypes)>-1&&S.inArray(`json`,p.dataTypes)<0&&(p.converters[`text script`]=function(){}),b=rr(p,b,w,d),d?(p.ifModified&&(x=w.getResponseHeader(`Last-Modified`),x&&(S.lastModified[i]=x),x=w.getResponseHeader(`etag`),x&&(S.etag[i]=x)),t===204||p.type===`HEAD`?C=`nocontent`:t===304?C=`notmodified`:(C=b.state,f=b.data,_=b.error,d=!_)):(_=C,(t||!C)&&(C=`error`,t<0&&(t=0))),w.status=t,w.statusText=(n||C)+``,d?g.resolveWith(m,[f,C,w]):g.rejectWith(m,[w,C,_]),w.statusCode(y),y=void 0,u&&h.trigger(d?`ajaxSuccess`:`ajaxError`,[w,p,d?f:_]),v.fireWith(m,[w,C]),u&&(h.trigger(`ajaxComplete`,[w,p]),--S.active||S.event.trigger(`ajaxStop`)))}return w},getJSON:function(e,t,n){return S.get(e,t,n,`json`)},getScript:function(e,t){return S.get(e,void 0,t,`script`)}}),S.each([`get`,`post`],function(e,t){S[t]=function(e,n,r,i){return(typeof n==`function`||n===null)&&(i||=r,r=n,n=void 0),S.ajax(S.extend({url:e,type:t,dataType:i,data:n,success:r},S.isPlainObject(e)&&e))}}),S.ajaxPrefilter(function(e){for(var t in e.headers)t.toLowerCase()===`content-type`&&(e.contentType=e.headers[t]||``)}),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:`GET`,dataType:`script`,cache:!0,async:!1,global:!1,scriptAttrs:t.crossOrigin?{crossOrigin:t.crossOrigin}:void 0,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&(typeof e==`function`&&(e=e.call(this[0])),t=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return typeof e==`function`?this.each(function(t){S(this).wrapInner(e.call(this,t))}):this.each(function(){var t=S(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=typeof e==`function`;return this.each(function(n){S(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not(`body`).each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){return new e.XMLHttpRequest};var ir={0:200};S.ajaxTransport(function(e){var t;return{send:function(n,r){var i,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)a[i]=e.xhrFields[i];for(i in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),!e.crossDomain&&!n[`X-Requested-With`]&&(n[`X-Requested-With`]=`XMLHttpRequest`),n)a.setRequestHeader(i,n[i]);t=function(e){return function(){t&&(t=a.onload=a.onerror=a.onabort=a.ontimeout=null,e===`abort`?a.abort():e===`error`?r(a.status,a.statusText):r(ir[a.status]||a.status,a.statusText,(a.responseType||`text`)===`text`?{text:a.responseText}:{binary:a.response},a.getAllResponseHeaders()))}},a.onload=t(),a.onabort=a.onerror=a.ontimeout=t(`error`),t=t(`abort`);try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}});function ar(e){return e.scriptAttrs||!e.headers&&(e.crossDomain||e.async&&S.inArray(`json`,e.dataTypes)<0)}S.ajaxSetup({accepts:{script:`text/javascript, application/javascript, application/ecmascript, application/x-ecmascript`},converters:{"text script":function(e){return S.globalEval(e),e}}}),S.ajaxPrefilter(`script`,function(e){e.cache===void 0&&(e.cache=!1),ar(e)&&(e.type=`GET`)}),S.ajaxTransport(`script`,function(e){if(ar(e)){var t,n;return{send:function(r,i){t=S(`<script>`).attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on(`load error`,n=function(e){t.remove(),n=null,e&&i(e.type===`error`?404:200,e.type)}),_.head.appendChild(t[0])},abort:function(){n&&n()}}}});var or=[],sr=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:`callback`,jsonpCallback:function(){var e=or.pop()||S.expando+`_`+ In.guid++;return this[e]=!0,e}}),S.ajaxPrefilter(`jsonp`,function(t,n,r){var i,a,o,s=t.jsonp!==!1&&(sr.test(t.url)?`url`:typeof t.data==`string`&&(t.contentType||``).indexOf(`application/x-www-form-urlencoded`)===0&&sr.test(t.data)&&`data`);return i=t.jsonpCallback=typeof t.jsonpCallback==`function`?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(sr,`$1`+i):t.jsonp!==!1&&(t.url+=(Ln.test(t.url)?`&`:`?`)+t.jsonp+`=`+i),t.converters[`script json`]=function(){return o||S.error(i+` was not called`),o[0]},t.dataTypes[0]=`json`,a=e[i],e[i]=function(){o=arguments},r.always(function(){a===void 0?S(e).removeProp(i):e[i]=a,t[i]&&(t.jsonpCallback=n.jsonpCallback,or.push(i)),o&&typeof a==`function`&&a(o[0]),o=a=void 0}),`script`}),S.ajaxPrefilter(function(t,n){typeof t.data!=`string`&&!S.isPlainObject(t.data)&&!Array.isArray(t.data)&&!(`processData`in n)&&(t.processData=!1),t.data instanceof e.FormData&&(t.contentType=!1)}),S.parseHTML=function(t,n,r){if(typeof t!=`string`&&!$e(t+``))return[];typeof n==`boolean`&&(r=n,n=!1);var i,a;return n||=new e.DOMParser().parseFromString(``,`text/html`),i=Qe.exec(t),a=!r&&[],i?[n.createElement(i[1])]:(i=Bt([t],n,a),a&&a.length&&S(a).remove(),S.merge([],i.childNodes))},S.fn.load=function(e,t,n){var r,i,a,o=this,s=e.indexOf(` `);return s>-1&&(r=Q(e.slice(s)),e=e.slice(0,s)),typeof t==`function`?(n=t,t=void 0):t&&typeof t==`object`&&(i=`POST`),o.length>0&&S.ajax({url:e,type:i||`GET`,dataType:`html`,data:t}).done(function(e){a=arguments,o.html(r?S(`<div>`).append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){o.each(function(){n.apply(this,a||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(e){return S.grep(S.timers,function(t){return e===t.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,a,o,s,c,l,u=S.css(e,`position`),d=S(e),f={};u===`static`&&(e.style.position=`relative`),s=d.offset(),a=S.css(e,`top`),c=S.css(e,`left`),l=(u===`absolute`||u===`fixed`)&&(a+c).indexOf(`auto`)>-1,l?(r=d.position(),o=r.top,i=r.left):(o=parseFloat(a)||0,i=parseFloat(c)||0),typeof t==`function`&&(t=t.call(e,n,S.extend({},s))),t.top!=null&&(f.top=t.top-s.top+o),t.left!=null&&(f.left=t.left-s.left+i),`using`in t?t.using.call(e,f):d.css(f)}},S.fn.extend({offset:function(e){if(arguments.length)return e===void 0?this:this.each(function(t){S.offset.setOffset(this,e,t)});var t,n,r=this[0];if(r)return r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if(S.css(r,`position`)===`fixed`)t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&e!==n.documentElement&&S.css(e,`position`)===`static`;)e=e.offsetParent||n.documentElement;e&&e!==r&&e.nodeType===1&&S.css(e,`position`)!==`static`&&(i=S(e).offset(),i.top+=S.css(e,`borderTopWidth`,!0),i.left+=S.css(e,`borderLeftWidth`,!0))}return{top:t.top-i.top-S.css(r,`marginTop`,!0),left:t.left-i.left-S.css(r,`marginLeft`,!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&S.css(e,`position`)===`static`;)e=e.offsetParent;return e||A})}}),S.each({scrollLeft:`pageXOffset`,scrollTop:`pageYOffset`},function(e,t){var n=t===`pageYOffset`;S.fn[e]=function(r){return L(this,function(e,r,i){var a;if(h(e)?a=e:e.nodeType===9&&(a=e.defaultView),i===void 0)return a?a[t]:e[r];a?a.scrollTo(n?a.pageXOffset:i,n?i:a.pageYOffset):e[r]=i},e,r,arguments.length)}}),S.each({Height:`height`,Width:`width`},function(e,t){S.each({padding:`inner`+e,content:t,"":`outer`+e},function(n,r){S.fn[r]=function(i,a){var o=arguments.length&&(n||typeof i!=`boolean`),s=n||(i===!0||a===!0?`margin`:`border`);return L(this,function(t,n,i){var a;return h(t)?r.indexOf(`outer`)===0?t[`inner`+e]:t.document.documentElement[`client`+e]:t.nodeType===9?(a=t.documentElement,Math.max(t.body[`scroll`+e],a[`scroll`+e],t.body[`offset`+e],a[`offset`+e],a[`client`+e])):i===void 0?S.css(t,n,s):S.style(t,n,i,s)},t,o?i:void 0,o)}})}),S.each([`ajaxStart`,`ajaxStop`,`ajaxComplete`,`ajaxError`,`ajaxSuccess`,`ajaxSend`],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,`**`):this.off(t,e||`**`,n)},hover:function(e,t){return this.on(`mouseenter`,e).on(`mouseleave`,t||e)}}),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(e,t){S.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),S.proxy=function(e,t){var n,r,a;if(typeof t==`string`&&(n=e[t],t=e,e=n),typeof e==`function`)return r=i.call(arguments,2),a=function(){return e.apply(t||this,r.concat(i.call(arguments)))},a.guid=e.guid=e.guid||S.guid++,a},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.expr[`:`]=S.expr.filters=S.expr.pseudos,typeof define==`function`&&define.amd&&define(`jquery`,[],function(){return S});var cr=e.jQuery,lr=e.$;return S.noConflict=function(t){return e.$===S&&(e.$=lr),t&&e.jQuery===S&&(e.jQuery=cr),S},t===void 0&&(e.jQuery=e.$=S),S}var _t,G=o((()=>{_t=gt(window,!0)})),K=s(((e,t)=>{var{jQuery:n}=(G(),d(ht));t.exports=n}));s(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(K()):typeof define==`function`&&define.amd?define(`bootstrap-colorpicker`,[`jquery`],r):typeof e==`object`?e["bootstrap-colorpicker"]=r(K()):n[`bootstrap-colorpicker`]=r(n.jQuery)})(window,function(e){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(t&1&&(e=n(e)),t&8||t&4&&typeof e==`object`&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),t&2&&typeof e!=`string`)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=7)})([(function(t,n){t.exports=e}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o(this,e),this.colorpicker=t,this.options=n,!(this.colorpicker.element&&this.colorpicker.element.length))throw Error(`Extension: this.colorpicker.element is not valid`);this.colorpicker.element.on(`colorpickerCreate.colorpicker-ext`,i.default.proxy(this.onCreate,this)),this.colorpicker.element.on(`colorpickerDestroy.colorpicker-ext`,i.default.proxy(this.onDestroy,this)),this.colorpicker.element.on(`colorpickerUpdate.colorpicker-ext`,i.default.proxy(this.onUpdate,this)),this.colorpicker.element.on(`colorpickerChange.colorpicker-ext`,i.default.proxy(this.onChange,this)),this.colorpicker.element.on(`colorpickerInvalid.colorpicker-ext`,i.default.proxy(this.onInvalid,this)),this.colorpicker.element.on(`colorpickerShow.colorpicker-ext`,i.default.proxy(this.onShow,this)),this.colorpicker.element.on(`colorpickerHide.colorpicker-ext`,i.default.proxy(this.onHide,this)),this.colorpicker.element.on(`colorpickerEnable.colorpicker-ext`,i.default.proxy(this.onEnable,this)),this.colorpicker.element.on(`colorpickerDisable.colorpicker-ext`,i.default.proxy(this.onDisable,this))}return r(e,[{key:`resolveColor`,value:function(e){return arguments.length>1&&arguments[1]!==void 0&&arguments[1],!1}},{key:`onCreate`,value:function(e){}},{key:`onDestroy`,value:function(e){this.colorpicker.element.off(`.colorpicker-ext`)}},{key:`onUpdate`,value:function(e){}},{key:`onChange`,value:function(e){}},{key:`onInvalid`,value:function(e){}},{key:`onHide`,value:function(e){}},{key:`onShow`,value:function(e){}},{key:`onDisable`,value:function(e){}},{key:`onEnable`,value:function(e){}}]),e}(),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorItem=t.HSVAColor=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(16));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var s=function(){function e(t,n,r,i){o(this,e),this.h=isNaN(t)?0:t,this.s=isNaN(n)?0:n,this.v=isNaN(r)?0:r,this.a=isNaN(t)?1:i}return r(e,[{key:`toString`,value:function(){return this.h+`, `+this.s+`%, `+this.v+`%, `+this.a}}]),e}(),c=function(){r(e,[{key:`api`,value:function(t){var n=[...arguments].slice(1);if(arguments.length===0)return this._color;var r=this._color[t].apply(this._color,n);return r instanceof i.default?new e(r,this.format):r}},{key:`original`,get:function(){return this._original}}],[{key:`HSVAColor`,get:function(){return s}}]);function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;o(this,e),this.replace(t,n,r)}return r(e,[{key:`replace`,value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(n=e.sanitizeFormat(n),this._original={color:t,format:n,valid:!0},this._color=e.parse(t,r),this._color===null){this._color=(0,i.default)(),this._original.valid=!1;return}this._format=n||(e.isHex(t)?`hex`:this._color.model)}},{key:`isValid`,value:function(){return this._original.valid===!0}},{key:`setHueRatio`,value:function(e){this.hue=(1-e)*360}},{key:`setSaturationRatio`,value:function(e){this.saturation=e*100}},{key:`setValueRatio`,value:function(e){this.value=(1-e)*100}},{key:`setAlphaRatio`,value:function(e){this.alpha=1-e}},{key:`isDesaturated`,value:function(){return this.saturation===0}},{key:`isTransparent`,value:function(){return this.alpha===0}},{key:`hasTransparency`,value:function(){return this.hasAlpha()&&this.alpha<1}},{key:`hasAlpha`,value:function(){return!isNaN(this.alpha)}},{key:`toObject`,value:function(){return new s(this.hue,this.saturation,this.value,this.alpha)}},{key:`toHsva`,value:function(){return this.toObject()}},{key:`toHsvaRatio`,value:function(){return new s(this.hue/360,this.saturation/100,this.value/100,this.alpha)}},{key:`toString`,value:function(){return this.string()}},{key:`string`,value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(t=e.sanitizeFormat(t||this.format),!t)return this._color.round().string();if(this._color[t]===void 0)throw Error(`Unsupported color format: '`+t+`'`);var n=this._color[t]();return n.round?n.round().string():n}},{key:`equals`,value:function(t){return t=t instanceof e?t:new e(t),!t.isValid()||!this.isValid()?!1:this.hue===t.hue&&this.saturation===t.saturation&&this.value===t.value&&this.alpha===t.alpha}},{key:`getClone`,value:function(){return new e(this._color,this.format)}},{key:`getCloneHueOnly`,value:function(){return new e([this.hue,100,100,1],this.format)}},{key:`getCloneOpaque`,value:function(){return new e(this._color.alpha(1),this.format)}},{key:`toRgbString`,value:function(){return this.string(`rgb`)}},{key:`toHexString`,value:function(){return this.string(`hex`)}},{key:`toHslString`,value:function(){return this.string(`hsl`)}},{key:`isDark`,value:function(){return this._color.isDark()}},{key:`isLight`,value:function(){return this._color.isLight()}},{key:`generate`,value:function(t){var n=[];if(Array.isArray(t))n=t;else if(e.colorFormulas.hasOwnProperty(t))n=e.colorFormulas[t];else throw Error(`No color formula found with the name '`+t+`'.`);var r=[],i=this._color,a=this.format;return n.forEach(function(t){var n=[t?(i.hue()+t)%360:i.hue(),i.saturationv(),i.value(),i.alpha()];r.push(new e(n,a))}),r}},{key:`hue`,get:function(){return this._color.hue()},set:function(e){this._color=this._color.hue(e)}},{key:`saturation`,get:function(){return this._color.saturationv()},set:function(e){this._color=this._color.saturationv(e)}},{key:`value`,get:function(){return this._color.value()},set:function(e){this._color=this._color.value(e)}},{key:`alpha`,get:function(){var e=this._color.alpha();return isNaN(e)?1:e},set:function(e){this._color=this._color.alpha(Math.round(e*100)/100)}},{key:`format`,get:function(){return this._format?this._format:this._color.model},set:function(t){this._format=e.sanitizeFormat(t)}}],[{key:`parse`,value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(t instanceof i.default)return t;if(t instanceof e)return t._color;var r=null;if(t=t instanceof s?[t.h,t.s,t.v,isNaN(t.a)?1:t.a]:e.sanitizeString(t),t===null||(Array.isArray(t)&&(r=`hsv`),e.isHex(t)&&t.length!==6&&t.length!==7&&n))return null;try{return(0,i.default)(t,r)}catch{return null}}},{key:`sanitizeString`,value:function(e){return typeof e==`string`||e instanceof String?e.match(/^[0-9a-f]{2,}$/i)?`#`+e:e.toLowerCase()===`transparent`?`#FFFFFF00`:e:e}},{key:`isHex`,value:function(e){return typeof e==`string`||e instanceof String?!!e.match(/^#?[0-9a-f]{2,}$/i):!1}},{key:`sanitizeFormat`,value:function(e){switch(e){case`hex`:case`hex3`:case`hex4`:case`hex6`:case`hex8`:return`hex`;case`rgb`:case`rgba`:case`keyword`:case`name`:return`rgb`;case`hsl`:case`hsla`:case`hsv`:case`hsva`:case`hwb`:case`hwba`:return`hsl`;default:return``}}}]),e}();c.colorFormulas={complementary:[180],triad:[0,120,240],tetrad:[0,90,180,270],splitcomplement:[0,72,216]},t.default=c,t.HSVAColor=s,t.ColorItem=c}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={bar_size_short:16,base_margin:6,columns:6},i=r.bar_size_short*r.columns+r.base_margin*(r.columns-1);t.default={customClass:null,color:!1,fallbackColor:!1,format:`auto`,horizontal:!1,inline:!1,container:!1,popover:{animation:!0,placement:`bottom`,fallbackPlacement:`flip`},debug:!1,input:`input`,addon:`.colorpicker-input-addon`,autoInputFallback:!0,autoHexInputFallback:!0,useHashPrefix:!0,useAlpha:!0,template:`<div class="colorpicker">
|
|
57
57
|
<div class="colorpicker-saturation"><i class="colorpicker-guide"></i></div>
|
|
58
58
|
<div class="colorpicker-hue"><i class="colorpicker-guide"></i></div>
|
|
59
59
|
<div class="colorpicker-alpha">
|
|
60
60
|
<div class="colorpicker-alpha-color"></div>
|
|
61
61
|
<i class="colorpicker-guide"></i>
|
|
62
62
|
</div>
|
|
63
|
-
</div>`,extensions:[{name:`preview`,options:{showText:!0}}],sliders:{saturation:{selector:`.colorpicker-saturation`,maxLeft:i,maxTop:i,callLeft:`setSaturationRatio`,callTop:`setValueRatio`},hue:{selector:`.colorpicker-hue`,maxLeft:0,maxTop:i,callLeft:!1,callTop:`setHueRatio`},alpha:{selector:`.colorpicker-alpha`,childSelector:`.colorpicker-alpha-color`,maxLeft:0,maxTop:i,callLeft:!1,callTop:`setAlphaRatio`}},slidersHorz:{saturation:{selector:`.colorpicker-saturation`,maxLeft:i,maxTop:i,callLeft:`setSaturationRatio`,callTop:`setValueRatio`},hue:{selector:`.colorpicker-hue`,maxLeft:i,maxTop:0,callLeft:`setHueRatio`,callTop:!1},alpha:{selector:`.colorpicker-alpha`,childSelector:`.colorpicker-alpha-color`,maxLeft:i,maxTop:0,callLeft:`setAlphaRatio`,callTop:!1}}},e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=s(n(1)),o=s(n(0));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function l(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function u(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d={colors:null,namesAsValues:!0};t.default=function(e){u(t,e),i(t,[{key:`colors`,get:function(){return this.options.colors}}]);function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};c(this,t);var i=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o.default.extend(!0,{},d,n)));return!Array.isArray(i.options.colors)&&r(i.options.colors)!==`object`&&(i.options.colors=null),i}return i(t,[{key:`getLength`,value:function(){return this.options.colors?Array.isArray(this.options.colors)?this.options.colors.length:r(this.options.colors)===`object`?Object.keys(this.options.colors).length:0:0}},{key:`resolveColor`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return this.getLength()<=0?!1:Array.isArray(this.options.colors)?this.options.colors.indexOf(e)>=0?e:this.options.colors.indexOf(e.toUpperCase())>=0?e.toUpperCase():this.options.colors.indexOf(e.toLowerCase())>=0?e.toLowerCase():!1:r(this.options.colors)===`object`?!this.options.namesAsValues||t?this.getValue(e,!1):this.getName(e,this.getName(`#`+e)):!1}},{key:`getName`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(typeof e!=`string`||!this.options.colors)return t;for(var n in this.options.colors)if(this.options.colors.hasOwnProperty(n)&&this.options.colors[n].toLowerCase()===e.toLowerCase())return n;return t}},{key:`getValue`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return typeof e!=`string`||!this.options.colors?t:this.options.colors.hasOwnProperty(e)?this.options.colors[e]:t}}]),t}(a.default),e.exports=t.default}),(function(e,t,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),(function(e,t,n){var r=n(5),i={};for(var a in r)r.hasOwnProperty(a)&&(i[r[a]]=a);var o=e.exports={rgb:{channels:3,labels:`rgb`},hsl:{channels:3,labels:`hsl`},hsv:{channels:3,labels:`hsv`},hwb:{channels:3,labels:`hwb`},cmyk:{channels:4,labels:`cmyk`},xyz:{channels:3,labels:`xyz`},lab:{channels:3,labels:`lab`},lch:{channels:3,labels:`lch`},hex:{channels:1,labels:[`hex`]},keyword:{channels:1,labels:[`keyword`]},ansi16:{channels:1,labels:[`ansi16`]},ansi256:{channels:1,labels:[`ansi256`]},hcg:{channels:3,labels:[`h`,`c`,`g`]},apple:{channels:3,labels:[`r16`,`g16`,`b16`]},gray:{channels:1,labels:[`gray`]}};for(var s in o)if(o.hasOwnProperty(s)){if(!(`channels`in o[s]))throw Error(`missing channels property: `+s);if(!(`labels`in o[s]))throw Error(`missing channel labels property: `+s);if(o[s].labels.length!==o[s].channels)throw Error(`channel and label counts mismatch: `+s);var c=o[s].channels,l=o[s].labels;delete o[s].channels,delete o[s].labels,Object.defineProperty(o[s],`channels`,{value:c}),Object.defineProperty(o[s],`labels`,{value:l})}o.rgb.hsl=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s,c,l;return a===i?s=0:t===a?s=(n-r)/o:n===a?s=2+(r-t)/o:r===a&&(s=4+(t-n)/o),s=Math.min(s*60,360),s<0&&(s+=360),l=(i+a)/2,c=a===i?0:l<=.5?o/(a+i):o/(2-a-i),[s,c*100,l*100]},o.rgb.hsv=function(e){var t,n,r,i,a,o=e[0]/255,s=e[1]/255,c=e[2]/255,l=Math.max(o,s,c),u=l-Math.min(o,s,c),d=function(e){return(l-e)/6/u+1/2};return u===0?i=a=0:(a=u/l,t=d(o),n=d(s),r=d(c),o===l?i=r-n:s===l?i=1/3+t-r:c===l&&(i=2/3+n-t),i<0?i+=1:i>1&&--i),[i*360,a*100,l*100]},o.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2],i=o.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,a*100,r*100]},o.rgb.cmyk=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i,a,o,s=Math.min(1-t,1-n,1-r);return i=(1-t-s)/(1-s)||0,a=(1-n-s)/(1-s)||0,o=(1-r-s)/(1-s)||0,[i*100,a*100,o*100,s*100]};function u(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}o.rgb.keyword=function(e){var t=i[e];if(t)return t;var n=1/0,a;for(var o in r)if(r.hasOwnProperty(o)){var s=r[o],c=u(e,s);c<n&&(n=c,a=o)}return a},o.keyword.rgb=function(e){return r[e]},o.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;var i=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,o=t*.0193+n*.1192+r*.9505;return[i*100,a*100,o*100]},o.rgb.lab=function(e){var t=o.rgb.xyz(e),n=t[0],r=t[1],i=t[2],a,s,c;return n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,a=116*r-16,s=500*(n-r),c=200*(r-i),[a,s,c]},o.hsl.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100,i,a,o,s,c;if(n===0)return c=r*255,[c,c,c];a=r<.5?r*(1+n):r+n-r*n,i=2*r-a,s=[0,0,0];for(var l=0;l<3;l++)o=t+1/3*-(l-1),o<0&&o++,o>1&&o--,c=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[l]=c*255;return s},o.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,a=Math.max(r,.01),o,s;return r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a,s=(r+n)/2,o=r===0?2*i/(a+i):2*n/(r+n),[t,o*100,s*100]},o.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,c,o];case 1:return[s,r,o];case 2:return[o,r,c];case 3:return[o,s,r];case 4:return[c,o,r];case 5:return[r,o,s]}},o.hsv.hsl=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01),a,o,s=(2-n)*r;return a=(2-n)*i,o=n*i,o/=a<=1?a:2-a,o||=0,s/=2,[t,o*100,s*100]},o.hwb.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100,i=n+r,a,o,s,c;i>1&&(n/=i,r/=i),a=Math.floor(6*t),o=1-r,s=6*t-a,a&1&&(s=1-s),c=n+s*(o-n);var l,u,d;switch(a){default:case 6:case 0:l=o,u=c,d=n;break;case 1:l=c,u=o,d=n;break;case 2:l=n,u=o,d=c;break;case 3:l=n,u=c,d=o;break;case 4:l=c,u=n,d=o;break;case 5:l=o,u=n,d=c;break}return[l*255,u*255,d*255]},o.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,r*(1-i)+i);return[a*255,o*255,s*255]},o.xyz.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,o=t*.0557+n*-.204+r*1.057;return i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[i*255,a*255,o*255]},o.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2],i,a,o;return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=116*n-16,a=500*(t-n),o=200*(n-r),[i,a,o]},o.lab.xyz=function(e){var t=e[0],n=e[1],r=e[2],i,a=(t+16)/116,o;i=n/500+a,o=a-r/200;var s=a**3,c=i**3,l=o**3;return a=s>.008856?s:(a-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i*=95.047,a*=100,o*=108.883,[i,a,o]},o.lab.lch=function(e){var t=e[0],n=e[1],r=e[2],i=Math.atan2(r,n)*360/2/Math.PI,a;return i<0&&(i+=360),a=Math.sqrt(n*n+r*r),[t,a,i]},o.lch.lab=function(e){var t=e[0],n=e[1],r=e[2],i,a,o=r/360*2*Math.PI;return i=n*Math.cos(o),a=n*Math.sin(o),[t,i,a]},o.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];if(i=Math.round(i/50),i===0)return 30;var a=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return i===2&&(a+=60),a},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},o.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var n=(~~(e>50)+1)*.5;return[(t&1)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},o.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var n;return[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},o.rgb.hex=function(e){var t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return`000000`.substring(t.length)+t},o.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];t[0].length===3&&(n=n.split(``).map(function(e){return e+e}).join(``));var r=parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},o.rgb.hcg=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),o=i-a,s=o<1?a/(1-o):0,c=o<=0?0:i===t?(n-r)/o%6:i===n?2+(r-t)/o:4+(t-n)/o+4;return c/=6,c%=1,[c*360,o*100,s*100]},o.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return r=n<.5?2*t*n:2*t*(1-n),r<1&&(i=(n-.5*r)/(1-r)),[e[0],r*100,i*100]},o.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]},o.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];var i=[0,0,0],a=t%1*6,o=a%1,s=1-o,c=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return c=(1-n)*r,[(n*i[0]+c)*255,(n*i[1]+c)*255,(n*i[2]+c)*255]},o.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],r*100,n*100]},o.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],r*100,n*100]},o.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],(n-t)*100,(1-n)*100]},o.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]},o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return`000000`.substring(n.length)+n},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}),(function(e,t,n){"use strict";var r=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},i=o(n(8)),a=o(n(0));function o(e){return e&&e.__esModule?e:{default:e}}var s=`colorpicker`;a.default[s]=i.default,a.default.fn[s]=function(e){var t=Array.prototype.slice.call(arguments,1),n=this.length===1,o=null,c=this.each(function(){var c=(0,a.default)(this),l=c.data(s),u=(e===void 0?`undefined`:r(e))===`object`?e:{};l||(l=new i.default(this,u),c.data(s,l)),n&&(o=c,typeof e==`string`&&(o=e===`colorpicker`?l:a.default.isFunction(l[e])?l[e].apply(l,t):l[e]))});return n?o:c},a.default.fn[s].constructor=i.default}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=h(n(1)),a=h(n(3)),o=h(n(9)),s=h(n(0)),c=h(n(13)),l=h(n(14)),u=h(n(15)),d=h(n(22)),f=h(n(23)),p=h(n(24)),m=h(n(2));function h(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var _=0,v=typeof self<`u`?self:void 0,y=function(){r(e,[{key:`color`,get:function(){return this.colorHandler.color}},{key:`format`,get:function(){return this.colorHandler.format}},{key:`picker`,get:function(){return this.pickerHandler.picker}}],[{key:`Color`,get:function(){return m.default}},{key:`Extension`,get:function(){return i.default}}]);function e(t,n){g(this,e),_+=1,this.id=_,this.lastEvent={alias:null,e:null},this.element=(0,s.default)(t).addClass(`colorpicker-element`).attr(`data-colorpicker-id`,this.id),this.options=s.default.extend(!0,{},a.default,n,this.element.data()),this.disabled=!1,this.extensions=[],this.container=this.options.container===!0||this.options.container!==!0&&this.options.inline===!0?this.element:this.options.container,this.container=this.container===!1?!1:(0,s.default)(this.container),this.inputHandler=new u.default(this),this.colorHandler=new d.default(this),this.sliderHandler=new c.default(this),this.popupHandler=new l.default(this,v),this.pickerHandler=new f.default(this),this.addonHandler=new p.default(this),this.init(),(0,s.default)(s.default.proxy(function(){this.trigger(`colorpickerCreate`)},this))}return r(e,[{key:`init`,value:function(){this.addonHandler.bind(),this.inputHandler.bind(),this.initExtensions(),this.colorHandler.bind(),this.pickerHandler.bind(),this.sliderHandler.bind(),this.popupHandler.bind(),this.pickerHandler.attach(),this.update(),this.inputHandler.isDisabled()&&this.disable()}},{key:`initExtensions`,value:function(){var t=this;Array.isArray(this.options.extensions)||(this.options.extensions=[]),this.options.debug&&this.options.extensions.push({name:`debugger`}),this.options.extensions.forEach(function(n){t.registerExtension(e.extensions[n.name.toLowerCase()],n.options||{})})}},{key:`registerExtension`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new e(this,t);return this.extensions.push(n),n}},{key:`destroy`,value:function(){var e=this.color;this.sliderHandler.unbind(),this.inputHandler.unbind(),this.popupHandler.unbind(),this.colorHandler.unbind(),this.addonHandler.unbind(),this.pickerHandler.unbind(),this.element.removeClass(`colorpicker-element`).removeData(`colorpicker`).removeData(`color`).off(`.colorpicker`),this.trigger(`colorpickerDestroy`,e)}},{key:`show`,value:function(e){this.popupHandler.show(e)}},{key:`hide`,value:function(e){this.popupHandler.hide(e)}},{key:`toggle`,value:function(e){this.popupHandler.toggle(e)}},{key:`getValue`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=this.colorHandler.color;return t=t instanceof m.default?t:e,t instanceof m.default?t.string(this.format):t}},{key:`setValue`,value:function(e){if(!this.isDisabled()){var t=this.colorHandler;t.hasColor()&&e&&t.color.equals(e)||!t.hasColor()&&!e||(t.color=e?t.createColor(e,this.options.autoInputFallback,this.options.autoHexInputFallback):null,this.trigger(`colorpickerChange`,t.color,e),this.update())}}},{key:`update`,value:function(){this.colorHandler.hasColor()?this.inputHandler.update():this.colorHandler.assureColor(),this.addonHandler.update(),this.pickerHandler.update(),this.trigger(`colorpickerUpdate`)}},{key:`enable`,value:function(){return this.inputHandler.enable(),this.disabled=!1,this.picker.removeClass(`colorpicker-disabled`),this.trigger(`colorpickerEnable`),!0}},{key:`disable`,value:function(){return this.inputHandler.disable(),this.disabled=!0,this.picker.addClass(`colorpicker-disabled`),this.trigger(`colorpickerDisable`),!0}},{key:`isEnabled`,value:function(){return!this.isDisabled()}},{key:`isDisabled`,value:function(){return this.disabled===!0}},{key:`trigger`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this.element.trigger({type:e,colorpicker:this,color:t||this.color,value:n||this.getValue()})}}]),e}();y.extensions=o.default,t.default=y,e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0}),t.Palette=t.Swatches=t.Preview=t.Debugger=void 0;var r=s(n(10)),i=s(n(11)),a=s(n(12)),o=s(n(4));function s(e){return e&&e.__esModule?e:{default:e}}t.Debugger=r.default,t.Preview=i.default,t.Swatches=a.default,t.Palette=o.default,t.default={debugger:r.default,preview:i.default,swatches:a.default,palette:o.default}}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}else if(`value`in i)return i.value;else{var o=i.get;return o===void 0?void 0:o.call(r)}},a=s(n(1)),o=s(n(0));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function l(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function u(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.default=function(e){u(t,e);function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};c(this,t);var r=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.eventCounter=0,r.colorpicker.inputHandler.hasInput()&&r.colorpicker.inputHandler.input.on(`change.colorpicker-ext`,o.default.proxy(r.onChangeInput,r)),r}return r(t,[{key:`log`,value:function(e){var t,n=[...arguments].slice(1);this.eventCounter+=1;var r=`#`+this.eventCounter+`: Colorpicker#`+this.colorpicker.id+` [`+e+`]`;(t=console).debug.apply(t,[r].concat(n)),this.colorpicker.element.trigger({type:`colorpickerDebug`,colorpicker:this.colorpicker,color:this.color,value:null,debug:{debugger:this,eventName:e,logArgs:n,logMessage:r}})}},{key:`resolveColor`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return this.log(`resolveColor()`,e,t),!1}},{key:`onCreate`,value:function(e){return this.log(`colorpickerCreate`),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`onCreate`,this).call(this,e)}},{key:`onDestroy`,value:function(e){return this.log(`colorpickerDestroy`),this.eventCounter=0,this.colorpicker.inputHandler.hasInput()&&this.colorpicker.inputHandler.input.off(`.colorpicker-ext`),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`onDestroy`,this).call(this,e)}},{key:`onUpdate`,value:function(e){this.log(`colorpickerUpdate`)}},{key:`onChangeInput`,value:function(e){this.log(`input:change.colorpicker`,e.value,e.color)}},{key:`onChange`,value:function(e){this.log(`colorpickerChange`,e.value,e.color)}},{key:`onInvalid`,value:function(e){this.log(`colorpickerInvalid`,e.value,e.color)}},{key:`onHide`,value:function(e){this.log(`colorpickerHide`),this.eventCounter=0}},{key:`onShow`,value:function(e){this.log(`colorpickerShow`)}},{key:`onDisable`,value:function(e){this.log(`colorpickerDisable`)}},{key:`onEnable`,value:function(e){this.log(`colorpickerEnable`)}}]),t}(a.default),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}else if(`value`in i)return i.value;else{var o=i.get;return o===void 0?void 0:o.call(r)}},a=s(n(1)),o=s(n(0));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function l(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function u(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.default=function(e){u(t,e);function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};c(this,t);var r=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o.default.extend(!0,{},{template:`<div class="colorpicker-bar colorpicker-preview"><div /></div>`,showText:!0,format:e.format},n)));return r.element=(0,o.default)(r.options.template),r.elementInner=r.element.find(`div`),r}return r(t,[{key:`onCreate`,value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`onCreate`,this).call(this,e),this.colorpicker.picker.append(this.element)}},{key:`onUpdate`,value:function(e){if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`onUpdate`,this).call(this,e),!e.color){this.elementInner.css(`backgroundColor`,null).css(`color`,null).html(``);return}this.elementInner.css(`backgroundColor`,e.color.toRgbString()),this.options.showText&&(this.elementInner.html(e.color.string(this.options.format||this.colorpicker.format)),e.color.isDark()&&e.color.alpha>.5?this.elementInner.css(`color`,`white`):this.elementInner.css(`color`,`black`))}}]),t}(a.default),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}else if(`value`in i)return i.value;else{var o=i.get;return o===void 0?void 0:o.call(r)}},a=s(n(4)),o=s(n(0));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function l(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function u(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d={barTemplate:`<div class="colorpicker-bar colorpicker-swatches">
|
|
63
|
+
</div>`,extensions:[{name:`preview`,options:{showText:!0}}],sliders:{saturation:{selector:`.colorpicker-saturation`,maxLeft:i,maxTop:i,callLeft:`setSaturationRatio`,callTop:`setValueRatio`},hue:{selector:`.colorpicker-hue`,maxLeft:0,maxTop:i,callLeft:!1,callTop:`setHueRatio`},alpha:{selector:`.colorpicker-alpha`,childSelector:`.colorpicker-alpha-color`,maxLeft:0,maxTop:i,callLeft:!1,callTop:`setAlphaRatio`}},slidersHorz:{saturation:{selector:`.colorpicker-saturation`,maxLeft:i,maxTop:i,callLeft:`setSaturationRatio`,callTop:`setValueRatio`},hue:{selector:`.colorpicker-hue`,maxLeft:i,maxTop:0,callLeft:`setHueRatio`,callTop:!1},alpha:{selector:`.colorpicker-alpha`,childSelector:`.colorpicker-alpha-color`,maxLeft:i,maxTop:0,callLeft:`setAlphaRatio`,callTop:!1}}},e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=s(n(1)),o=s(n(0));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function l(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function u(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d={colors:null,namesAsValues:!0};t.default=function(e){u(t,e),i(t,[{key:`colors`,get:function(){return this.options.colors}}]);function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};c(this,t);var i=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o.default.extend(!0,{},d,n)));return!Array.isArray(i.options.colors)&&r(i.options.colors)!==`object`&&(i.options.colors=null),i}return i(t,[{key:`getLength`,value:function(){return this.options.colors?Array.isArray(this.options.colors)?this.options.colors.length:r(this.options.colors)===`object`?Object.keys(this.options.colors).length:0:0}},{key:`resolveColor`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return this.getLength()<=0?!1:Array.isArray(this.options.colors)?this.options.colors.indexOf(e)>=0?e:this.options.colors.indexOf(e.toUpperCase())>=0?e.toUpperCase():this.options.colors.indexOf(e.toLowerCase())>=0?e.toLowerCase():!1:r(this.options.colors)===`object`?!this.options.namesAsValues||t?this.getValue(e,!1):this.getName(e,this.getName(`#`+e)):!1}},{key:`getName`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(typeof e!=`string`||!this.options.colors)return t;for(var n in this.options.colors)if(this.options.colors.hasOwnProperty(n)&&this.options.colors[n].toLowerCase()===e.toLowerCase())return n;return t}},{key:`getValue`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return typeof e!=`string`||!this.options.colors?t:this.options.colors.hasOwnProperty(e)?this.options.colors[e]:t}}]),t}(a.default),e.exports=t.default}),(function(e,t,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),(function(e,t,n){var r=n(5),i={};for(var a in r)r.hasOwnProperty(a)&&(i[r[a]]=a);var o=e.exports={rgb:{channels:3,labels:`rgb`},hsl:{channels:3,labels:`hsl`},hsv:{channels:3,labels:`hsv`},hwb:{channels:3,labels:`hwb`},cmyk:{channels:4,labels:`cmyk`},xyz:{channels:3,labels:`xyz`},lab:{channels:3,labels:`lab`},lch:{channels:3,labels:`lch`},hex:{channels:1,labels:[`hex`]},keyword:{channels:1,labels:[`keyword`]},ansi16:{channels:1,labels:[`ansi16`]},ansi256:{channels:1,labels:[`ansi256`]},hcg:{channels:3,labels:[`h`,`c`,`g`]},apple:{channels:3,labels:[`r16`,`g16`,`b16`]},gray:{channels:1,labels:[`gray`]}};for(var s in o)if(o.hasOwnProperty(s)){if(!(`channels`in o[s]))throw Error(`missing channels property: `+s);if(!(`labels`in o[s]))throw Error(`missing channel labels property: `+s);if(o[s].labels.length!==o[s].channels)throw Error(`channel and label counts mismatch: `+s);var c=o[s].channels,l=o[s].labels;delete o[s].channels,delete o[s].labels,Object.defineProperty(o[s],"channels",{value:c}),Object.defineProperty(o[s],"labels",{value:l})}o.rgb.hsl=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s,c,l;return a===i?s=0:t===a?s=(n-r)/o:n===a?s=2+(r-t)/o:r===a&&(s=4+(t-n)/o),s=Math.min(s*60,360),s<0&&(s+=360),l=(i+a)/2,c=a===i?0:l<=.5?o/(a+i):o/(2-a-i),[s,c*100,l*100]},o.rgb.hsv=function(e){var t,n,r,i,a,o=e[0]/255,s=e[1]/255,c=e[2]/255,l=Math.max(o,s,c),u=l-Math.min(o,s,c),d=function(e){return(l-e)/6/u+1/2};return u===0?i=a=0:(a=u/l,t=d(o),n=d(s),r=d(c),o===l?i=r-n:s===l?i=1/3+t-r:c===l&&(i=2/3+n-t),i<0?i+=1:i>1&&--i),[i*360,a*100,l*100]},o.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2],i=o.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,a*100,r*100]},o.rgb.cmyk=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i,a,o,s=Math.min(1-t,1-n,1-r);return i=(1-t-s)/(1-s)||0,a=(1-n-s)/(1-s)||0,o=(1-r-s)/(1-s)||0,[i*100,a*100,o*100,s*100]};function u(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}o.rgb.keyword=function(e){var t=i[e];if(t)return t;var n=1/0,a;for(var o in r)if(r.hasOwnProperty(o)){var s=r[o],c=u(e,s);c<n&&(n=c,a=o)}return a},o.keyword.rgb=function(e){return r[e]},o.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;var i=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,o=t*.0193+n*.1192+r*.9505;return[i*100,a*100,o*100]},o.rgb.lab=function(e){var t=o.rgb.xyz(e),n=t[0],r=t[1],i=t[2],a,s,c;return n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,a=116*r-16,s=500*(n-r),c=200*(r-i),[a,s,c]},o.hsl.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100,i,a,o,s,c;if(n===0)return c=r*255,[c,c,c];a=r<.5?r*(1+n):r+n-r*n,i=2*r-a,s=[0,0,0];for(var l=0;l<3;l++)o=t+1/3*-(l-1),o<0&&o++,o>1&&o--,c=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[l]=c*255;return s},o.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,a=Math.max(r,.01),o,s;return r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a,s=(r+n)/2,o=r===0?2*i/(a+i):2*n/(r+n),[t,o*100,s*100]},o.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,c,o];case 1:return[s,r,o];case 2:return[o,r,c];case 3:return[o,s,r];case 4:return[c,o,r];case 5:return[r,o,s]}},o.hsv.hsl=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01),a,o,s=(2-n)*r;return a=(2-n)*i,o=n*i,o/=a<=1?a:2-a,o||=0,s/=2,[t,o*100,s*100]},o.hwb.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100,i=n+r,a,o,s,c;i>1&&(n/=i,r/=i),a=Math.floor(6*t),o=1-r,s=6*t-a,a&1&&(s=1-s),c=n+s*(o-n);var l,u,d;switch(a){default:case 6:case 0:l=o,u=c,d=n;break;case 1:l=c,u=o,d=n;break;case 2:l=n,u=o,d=c;break;case 3:l=n,u=c,d=o;break;case 4:l=c,u=n,d=o;break;case 5:l=o,u=n,d=c;break}return[l*255,u*255,d*255]},o.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,r*(1-i)+i);return[a*255,o*255,s*255]},o.xyz.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,o=t*.0557+n*-.204+r*1.057;return i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[i*255,a*255,o*255]},o.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2],i,a,o;return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=116*n-16,a=500*(t-n),o=200*(n-r),[i,a,o]},o.lab.xyz=function(e){var t=e[0],n=e[1],r=e[2],i,a=(t+16)/116,o;i=n/500+a,o=a-r/200;var s=a**3,c=i**3,l=o**3;return a=s>.008856?s:(a-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i*=95.047,a*=100,o*=108.883,[i,a,o]},o.lab.lch=function(e){var t=e[0],n=e[1],r=e[2],i=Math.atan2(r,n)*360/2/Math.PI,a;return i<0&&(i+=360),a=Math.sqrt(n*n+r*r),[t,a,i]},o.lch.lab=function(e){var t=e[0],n=e[1],r=e[2],i,a,o=r/360*2*Math.PI;return i=n*Math.cos(o),a=n*Math.sin(o),[t,i,a]},o.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];if(i=Math.round(i/50),i===0)return 30;var a=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return i===2&&(a+=60),a},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},o.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var n=(~~(e>50)+1)*.5;return[(t&1)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},o.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var n;return[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},o.rgb.hex=function(e){var t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return`000000`.substring(t.length)+t},o.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];t[0].length===3&&(n=n.split(``).map(function(e){return e+e}).join(``));var r=parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},o.rgb.hcg=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),o=i-a,s=o<1?a/(1-o):0,c=o<=0?0:i===t?(n-r)/o%6:i===n?2+(r-t)/o:4+(t-n)/o+4;return c/=6,c%=1,[c*360,o*100,s*100]},o.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return r=n<.5?2*t*n:2*t*(1-n),r<1&&(i=(n-.5*r)/(1-r)),[e[0],r*100,i*100]},o.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]},o.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];var i=[0,0,0],a=t%1*6,o=a%1,s=1-o,c=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return c=(1-n)*r,[(n*i[0]+c)*255,(n*i[1]+c)*255,(n*i[2]+c)*255]},o.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],r*100,n*100]},o.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],r*100,n*100]},o.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],(n-t)*100,(1-n)*100]},o.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]},o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return`000000`.substring(n.length)+n},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}),(function(e,t,n){"use strict";var r=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},i=o(n(8)),a=o(n(0));function o(e){return e&&e.__esModule?e:{default:e}}var s=`colorpicker`;a.default[s]=i.default,a.default.fn[s]=function(e){var t=Array.prototype.slice.call(arguments,1),n=this.length===1,o=null,c=this.each(function(){var c=(0,a.default)(this),l=c.data(s),u=(e===void 0?`undefined`:r(e))===`object`?e:{};l||(l=new i.default(this,u),c.data(s,l)),n&&(o=c,typeof e==`string`&&(o=e===`colorpicker`?l:a.default.isFunction(l[e])?l[e].apply(l,t):l[e]))});return n?o:c},a.default.fn[s].constructor=i.default}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=h(n(1)),a=h(n(3)),o=h(n(9)),s=h(n(0)),c=h(n(13)),l=h(n(14)),u=h(n(15)),d=h(n(22)),f=h(n(23)),p=h(n(24)),m=h(n(2));function h(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var _=0,v=typeof self<`u`?self:void 0,y=function(){r(e,[{key:`color`,get:function(){return this.colorHandler.color}},{key:`format`,get:function(){return this.colorHandler.format}},{key:`picker`,get:function(){return this.pickerHandler.picker}}],[{key:`Color`,get:function(){return m.default}},{key:`Extension`,get:function(){return i.default}}]);function e(t,n){g(this,e),_+=1,this.id=_,this.lastEvent={alias:null,e:null},this.element=(0,s.default)(t).addClass(`colorpicker-element`).attr(`data-colorpicker-id`,this.id),this.options=s.default.extend(!0,{},a.default,n,this.element.data()),this.disabled=!1,this.extensions=[],this.container=this.options.container===!0||this.options.container!==!0&&this.options.inline===!0?this.element:this.options.container,this.container=this.container===!1?!1:(0,s.default)(this.container),this.inputHandler=new u.default(this),this.colorHandler=new d.default(this),this.sliderHandler=new c.default(this),this.popupHandler=new l.default(this,v),this.pickerHandler=new f.default(this),this.addonHandler=new p.default(this),this.init(),(0,s.default)(s.default.proxy(function(){this.trigger(`colorpickerCreate`)},this))}return r(e,[{key:`init`,value:function(){this.addonHandler.bind(),this.inputHandler.bind(),this.initExtensions(),this.colorHandler.bind(),this.pickerHandler.bind(),this.sliderHandler.bind(),this.popupHandler.bind(),this.pickerHandler.attach(),this.update(),this.inputHandler.isDisabled()&&this.disable()}},{key:`initExtensions`,value:function(){var t=this;Array.isArray(this.options.extensions)||(this.options.extensions=[]),this.options.debug&&this.options.extensions.push({name:`debugger`}),this.options.extensions.forEach(function(n){t.registerExtension(e.extensions[n.name.toLowerCase()],n.options||{})})}},{key:`registerExtension`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new e(this,t);return this.extensions.push(n),n}},{key:`destroy`,value:function(){var e=this.color;this.sliderHandler.unbind(),this.inputHandler.unbind(),this.popupHandler.unbind(),this.colorHandler.unbind(),this.addonHandler.unbind(),this.pickerHandler.unbind(),this.element.removeClass(`colorpicker-element`).removeData(`colorpicker`).removeData(`color`).off(`.colorpicker`),this.trigger(`colorpickerDestroy`,e)}},{key:`show`,value:function(e){this.popupHandler.show(e)}},{key:`hide`,value:function(e){this.popupHandler.hide(e)}},{key:`toggle`,value:function(e){this.popupHandler.toggle(e)}},{key:`getValue`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=this.colorHandler.color;return t=t instanceof m.default?t:e,t instanceof m.default?t.string(this.format):t}},{key:`setValue`,value:function(e){if(!this.isDisabled()){var t=this.colorHandler;t.hasColor()&&e&&t.color.equals(e)||!t.hasColor()&&!e||(t.color=e?t.createColor(e,this.options.autoInputFallback,this.options.autoHexInputFallback):null,this.trigger(`colorpickerChange`,t.color,e),this.update())}}},{key:`update`,value:function(){this.colorHandler.hasColor()?this.inputHandler.update():this.colorHandler.assureColor(),this.addonHandler.update(),this.pickerHandler.update(),this.trigger(`colorpickerUpdate`)}},{key:`enable`,value:function(){return this.inputHandler.enable(),this.disabled=!1,this.picker.removeClass(`colorpicker-disabled`),this.trigger(`colorpickerEnable`),!0}},{key:`disable`,value:function(){return this.inputHandler.disable(),this.disabled=!0,this.picker.addClass(`colorpicker-disabled`),this.trigger(`colorpickerDisable`),!0}},{key:`isEnabled`,value:function(){return!this.isDisabled()}},{key:`isDisabled`,value:function(){return this.disabled===!0}},{key:`trigger`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this.element.trigger({type:e,colorpicker:this,color:t||this.color,value:n||this.getValue()})}}]),e}();y.extensions=o.default,t.default=y,e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Palette=t.Swatches=t.Preview=t.Debugger=void 0;var r=s(n(10)),i=s(n(11)),a=s(n(12)),o=s(n(4));function s(e){return e&&e.__esModule?e:{default:e}}t.Debugger=r.default,t.Preview=i.default,t.Swatches=a.default,t.Palette=o.default,t.default={debugger:r.default,preview:i.default,swatches:a.default,palette:o.default}}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}else if(`value`in i)return i.value;else{var o=i.get;return o===void 0?void 0:o.call(r)}},a=s(n(1)),o=s(n(0));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function l(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function u(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.default=function(e){u(t,e);function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};c(this,t);var r=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.eventCounter=0,r.colorpicker.inputHandler.hasInput()&&r.colorpicker.inputHandler.input.on(`change.colorpicker-ext`,o.default.proxy(r.onChangeInput,r)),r}return r(t,[{key:`log`,value:function(e){var t,n=[...arguments].slice(1);this.eventCounter+=1;var r=`#`+this.eventCounter+`: Colorpicker#`+this.colorpicker.id+` [`+e+`]`;(t=console).debug.apply(t,[r].concat(n)),this.colorpicker.element.trigger({type:`colorpickerDebug`,colorpicker:this.colorpicker,color:this.color,value:null,debug:{debugger:this,eventName:e,logArgs:n,logMessage:r}})}},{key:`resolveColor`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return this.log(`resolveColor()`,e,t),!1}},{key:`onCreate`,value:function(e){return this.log(`colorpickerCreate`),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`onCreate`,this).call(this,e)}},{key:`onDestroy`,value:function(e){return this.log(`colorpickerDestroy`),this.eventCounter=0,this.colorpicker.inputHandler.hasInput()&&this.colorpicker.inputHandler.input.off(`.colorpicker-ext`),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`onDestroy`,this).call(this,e)}},{key:`onUpdate`,value:function(e){this.log(`colorpickerUpdate`)}},{key:`onChangeInput`,value:function(e){this.log(`input:change.colorpicker`,e.value,e.color)}},{key:`onChange`,value:function(e){this.log(`colorpickerChange`,e.value,e.color)}},{key:`onInvalid`,value:function(e){this.log(`colorpickerInvalid`,e.value,e.color)}},{key:`onHide`,value:function(e){this.log(`colorpickerHide`),this.eventCounter=0}},{key:`onShow`,value:function(e){this.log(`colorpickerShow`)}},{key:`onDisable`,value:function(e){this.log(`colorpickerDisable`)}},{key:`onEnable`,value:function(e){this.log(`colorpickerEnable`)}}]),t}(a.default),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}else if(`value`in i)return i.value;else{var o=i.get;return o===void 0?void 0:o.call(r)}},a=s(n(1)),o=s(n(0));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function l(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function u(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.default=function(e){u(t,e);function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};c(this,t);var r=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o.default.extend(!0,{},{template:`<div class="colorpicker-bar colorpicker-preview"><div /></div>`,showText:!0,format:e.format},n)));return r.element=(0,o.default)(r.options.template),r.elementInner=r.element.find(`div`),r}return r(t,[{key:`onCreate`,value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`onCreate`,this).call(this,e),this.colorpicker.picker.append(this.element)}},{key:`onUpdate`,value:function(e){if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`onUpdate`,this).call(this,e),!e.color){this.elementInner.css(`backgroundColor`,null).css(`color`,null).html(``);return}this.elementInner.css(`backgroundColor`,e.color.toRgbString()),this.options.showText&&(this.elementInner.html(e.color.string(this.options.format||this.colorpicker.format)),e.color.isDark()&&e.color.alpha>.5?this.elementInner.css(`color`,`white`):this.elementInner.css(`color`,`black`))}}]),t}(a.default),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}else if(`value`in i)return i.value;else{var o=i.get;return o===void 0?void 0:o.call(r)}},a=s(n(4)),o=s(n(0));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function l(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function u(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d={barTemplate:`<div class="colorpicker-bar colorpicker-swatches">
|
|
64
64
|
<div class="colorpicker-swatches--inner"></div>
|
|
65
|
-
</div>`,swatchTemplate:`<i class="colorpicker-swatch"><i class="colorpicker-swatch--inner"></i></i>`};t.default=function(e){u(t,e);function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};c(this,t);var r=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o.default.extend(!0,{},d,n)));return r.element=null,r}return r(t,[{key:`isEnabled`,value:function(){return this.getLength()>0}},{key:`onCreate`,value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`onCreate`,this).call(this,e),this.isEnabled()&&(this.element=(0,o.default)(this.options.barTemplate),this.load(),this.colorpicker.picker.append(this.element))}},{key:`load`,value:function(){var e=this,t=this.colorpicker,n=this.element.find(`.colorpicker-swatches--inner`),r=this.options.namesAsValues===!0&&!Array.isArray(this.colors);n.empty(),o.default.each(this.colors,function(i,a){var s=(0,o.default)(e.options.swatchTemplate).attr(`data-name`,i).attr(`data-value`,a).attr(`title`,r?i+`: `+a:a).on(`mousedown.colorpicker touchstart.colorpicker`,function(e){var n=(0,o.default)(this);t.setValue(r?n.attr(`data-name`):n.attr(`data-value`))});s.find(`.colorpicker-swatch--inner`).css(`background-color`,a),n.append(s)}),n.append((0,o.default)(`<i class="colorpicker-clear"></i>`))}}]),t}(a.default),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t){o(this,e),this.colorpicker=t,this.currentSlider=null,this.mousePointer={left:0,top:0},this.onMove=i.default.proxy(this.defaultOnMove,this)}return r(e,[{key:`defaultOnMove`,value:function(e,t){if(this.currentSlider){var n=this.currentSlider,r=this.colorpicker,i=r.colorHandler,a=i.hasColor()?i.color.getClone():i.getFallbackColor();n.guideStyle.left=t+`px`,n.guideStyle.top=e+`px`,n.callLeft&&a[n.callLeft](t/n.maxLeft),n.callTop&&a[n.callTop](e/n.maxTop),r.setValue(a),r.popupHandler.focus()}}},{key:`bind`,value:function(){var e=this.colorpicker.options.horizontal?this.colorpicker.options.slidersHorz:this.colorpicker.options.sliders,t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n].selector);this.colorpicker.picker.find(t.join(`, `)).on(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.pressed,this))}},{key:`unbind`,value:function(){(0,i.default)(this.colorpicker.picker).off({"mousemove.colorpicker":i.default.proxy(this.moved,this),"touchmove.colorpicker":i.default.proxy(this.moved,this),"mouseup.colorpicker":i.default.proxy(this.released,this),"touchend.colorpicker":i.default.proxy(this.released,this)})}},{key:`pressed`,value:function(e){if(!this.colorpicker.isDisabled()){this.colorpicker.lastEvent.alias=`pressed`,this.colorpicker.lastEvent.e=e,!e.pageX&&!e.pageY&&e.originalEvent&&e.originalEvent.touches&&(e.pageX=e.originalEvent.touches[0].pageX,e.pageY=e.originalEvent.touches[0].pageY);var t=(0,i.default)(e.target).closest(`div`),n=this.colorpicker.options.horizontal?this.colorpicker.options.slidersHorz:this.colorpicker.options.sliders;if(!t.is(`.colorpicker`)){for(var r in this.currentSlider=null,n)if(n.hasOwnProperty(r)){var a=n[r];if(t.is(a.selector)){this.currentSlider=i.default.extend({},a,{name:r});break}else if(a.childSelector!==void 0&&t.is(a.childSelector)){this.currentSlider=i.default.extend({},a,{name:r}),t=t.parent();break}}var o=t.find(`.colorpicker-guide`).get(0);if(!(this.currentSlider===null||o===null)){var s=t.offset();this.currentSlider.guideStyle=o.style,this.currentSlider.left=e.pageX-s.left,this.currentSlider.top=e.pageY-s.top,this.mousePointer={left:e.pageX,top:e.pageY},(0,i.default)(this.colorpicker.picker).on({"mousemove.colorpicker":i.default.proxy(this.moved,this),"touchmove.colorpicker":i.default.proxy(this.moved,this),"mouseup.colorpicker":i.default.proxy(this.released,this),"touchend.colorpicker":i.default.proxy(this.released,this)}).trigger(`mousemove`)}}}}},{key:`moved`,value:function(e){this.colorpicker.lastEvent.alias=`moved`,this.colorpicker.lastEvent.e=e,!e.pageX&&!e.pageY&&e.originalEvent&&e.originalEvent.touches&&(e.pageX=e.originalEvent.touches[0].pageX,e.pageY=e.originalEvent.touches[0].pageY),e.preventDefault();var t=Math.max(0,Math.min(this.currentSlider.maxLeft,this.currentSlider.left+((e.pageX||this.mousePointer.left)-this.mousePointer.left))),n=Math.max(0,Math.min(this.currentSlider.maxTop,this.currentSlider.top+((e.pageY||this.mousePointer.top)-this.mousePointer.top)));this.onMove(n,t)}},{key:`released`,value:function(e){this.colorpicker.lastEvent.alias=`released`,this.colorpicker.lastEvent.e=e,(0,i.default)(this.colorpicker.picker).off({"mousemove.colorpicker":this.moved,"touchmove.colorpicker":this.moved,"mouseup.colorpicker":this.released,"touchend.colorpicker":this.released})}}]),e}(),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=o(n(0)),a=o(n(3));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t,n){s(this,e),this.root=n,this.colorpicker=t,this.popoverTarget=null,this.popoverTip=null,this.clicking=!1,this.hidding=!1,this.showing=!1}return r(e,[{key:`bind`,value:function(){var e=this.colorpicker;if(e.options.inline){e.picker.addClass(`colorpicker-inline colorpicker-visible`);return}e.picker.addClass(`colorpicker-popup colorpicker-hidden`),!(!this.hasInput&&!this.hasAddon)&&(e.options.popover&&this.createPopover(),this.hasAddon&&(this.addon.attr(`tabindex`)||this.addon.attr(`tabindex`,0),this.addon.on({"mousedown.colorpicker touchstart.colorpicker":i.default.proxy(this.toggle,this)}),this.addon.on({"focus.colorpicker":i.default.proxy(this.show,this)}),this.addon.on({"focusout.colorpicker":i.default.proxy(this.hide,this)})),this.hasInput&&!this.hasAddon&&(this.input.on({"mousedown.colorpicker touchstart.colorpicker":i.default.proxy(this.show,this),"focus.colorpicker":i.default.proxy(this.show,this)}),this.input.on({"focusout.colorpicker":i.default.proxy(this.hide,this)})),(0,i.default)(this.root).on(`resize.colorpicker`,i.default.proxy(this.reposition,this)))}},{key:`unbind`,value:function(){this.hasInput&&(this.input.off({"mousedown.colorpicker touchstart.colorpicker":i.default.proxy(this.show,this),"focus.colorpicker":i.default.proxy(this.show,this)}),this.input.off({"focusout.colorpicker":i.default.proxy(this.hide,this)})),this.hasAddon&&(this.addon.off({"mousedown.colorpicker touchstart.colorpicker":i.default.proxy(this.toggle,this)}),this.addon.off({"focus.colorpicker":i.default.proxy(this.show,this)}),this.addon.off({"focusout.colorpicker":i.default.proxy(this.hide,this)})),this.popoverTarget&&this.popoverTarget.popover(`dispose`),(0,i.default)(this.root).off(`resize.colorpicker`,i.default.proxy(this.reposition,this)),(0,i.default)(this.root.document).off(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.hide,this)),(0,i.default)(this.root.document).off(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.onClickingInside,this))}},{key:`isClickingInside`,value:function(e){return e?this.isOrIsInside(this.popoverTip,e.currentTarget)||this.isOrIsInside(this.popoverTip,e.target)||this.isOrIsInside(this.colorpicker.picker,e.currentTarget)||this.isOrIsInside(this.colorpicker.picker,e.target):!1}},{key:`isOrIsInside`,value:function(e,t){return!e||!t?!1:(t=(0,i.default)(t),t.is(e)||e.find(t).length>0)}},{key:`onClickingInside`,value:function(e){this.clicking=this.isClickingInside(e)}},{key:`createPopover`,value:function(){var e=this.colorpicker;this.popoverTarget=this.hasAddon?this.addon:this.input,e.picker.addClass(`colorpicker-bs-popover-content`),this.popoverTarget.popover(i.default.extend(!0,{},a.default.popover,e.options.popover,{trigger:`manual`,content:e.picker,html:!0}));var t=window.bootstrap&&window.bootstrap.Popover&&window.bootstrap.Popover.getInstance;this.popoverTip=t?(0,i.default)(bootstrap.Popover.getInstance(this.popoverTarget[0]).getTipElement()):(0,i.default)(this.popoverTarget.popover(`getTipElement`).data(`bs.popover`).tip),this.popoverTip.addClass(`colorpicker-bs-popover`),this.popoverTarget.on(`shown.bs.popover`,i.default.proxy(this.fireShow,this)),this.popoverTarget.on(`hidden.bs.popover`,i.default.proxy(this.fireHide,this))}},{key:`reposition`,value:function(e){this.popoverTarget&&this.isVisible()&&this.popoverTarget.popover(`update`)}},{key:`toggle`,value:function(e){this.isVisible()?this.hide(e):this.show(e)}},{key:`show`,value:function(e){if(!(this.isVisible()||this.showing||this.hidding)){this.showing=!0,this.hidding=!1,this.clicking=!1;var t=this.colorpicker;t.lastEvent.alias=`show`,t.lastEvent.e=e,e&&(!this.hasInput||this.input.attr(`type`)===`color`)&&e&&e.preventDefault&&(e.stopPropagation(),e.preventDefault()),this.isPopover&&(0,i.default)(this.root).on(`resize.colorpicker`,i.default.proxy(this.reposition,this)),t.picker.addClass(`colorpicker-visible`).removeClass(`colorpicker-hidden`),this.popoverTarget?this.popoverTarget.popover(`show`):this.fireShow()}}},{key:`fireShow`,value:function(){this.hidding=!1,this.showing=!1,this.isPopover&&((0,i.default)(this.root.document).on(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.hide,this)),(0,i.default)(this.root.document).on(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.onClickingInside,this))),this.colorpicker.trigger(`colorpickerShow`)}},{key:`hide`,value:function(e){if(!(this.isHidden()||this.showing||this.hidding)){var t=this.colorpicker,n=this.clicking||this.isClickingInside(e);if(this.hidding=!0,this.showing=!1,this.clicking=!1,t.lastEvent.alias=`hide`,t.lastEvent.e=e,n){this.hidding=!1;return}this.popoverTarget?this.popoverTarget.popover(`hide`):this.fireHide()}}},{key:`fireHide`,value:function(){this.hidding=!1,this.showing=!1;var e=this.colorpicker;e.picker.addClass(`colorpicker-hidden`).removeClass(`colorpicker-visible`),(0,i.default)(this.root).off(`resize.colorpicker`,i.default.proxy(this.reposition,this)),(0,i.default)(this.root.document).off(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.hide,this)),(0,i.default)(this.root.document).off(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.onClickingInside,this)),e.trigger(`colorpickerHide`)}},{key:`focus`,value:function(){return this.hasAddon?this.addon.focus():this.hasInput?this.input.focus():!1}},{key:`isVisible`,value:function(){return this.colorpicker.picker.hasClass(`colorpicker-visible`)&&!this.colorpicker.picker.hasClass(`colorpicker-hidden`)}},{key:`isHidden`,value:function(){return this.colorpicker.picker.hasClass(`colorpicker-hidden`)&&!this.colorpicker.picker.hasClass(`colorpicker-visible`)}},{key:`input`,get:function(){return this.colorpicker.inputHandler.input}},{key:`hasInput`,get:function(){return this.colorpicker.inputHandler.hasInput()}},{key:`addon`,get:function(){return this.colorpicker.addonHandler.addon}},{key:`hasAddon`,get:function(){return this.colorpicker.addonHandler.hasAddon()}},{key:`isPopover`,get:function(){return!this.colorpicker.options.inline&&!!this.popoverTip}}]),e}(),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=o(n(0)),a=o(n(2));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t){s(this,e),this.colorpicker=t,this.input=this.colorpicker.element.is(`input`)?this.colorpicker.element:this.colorpicker.options.input?this.colorpicker.element.find(this.colorpicker.options.input):!1,this.input&&this.input.length===0&&(this.input=!1),this._initValue()}return r(e,[{key:`bind`,value:function(){this.hasInput()&&(this.input.on({"keyup.colorpicker":i.default.proxy(this.onkeyup,this)}),this.input.on({"change.colorpicker":i.default.proxy(this.onchange,this)}))}},{key:`unbind`,value:function(){this.hasInput()&&this.input.off(`.colorpicker`)}},{key:`_initValue`,value:function(){if(this.hasInput()){var e=``;[this.input.val(),this.input.data(`color`),this.input.attr(`data-color`)].map(function(t){t&&e===``&&(e=t)}),e instanceof a.default?e=this.getFormattedColor(e.string(this.colorpicker.format)):typeof e==`string`||e instanceof String||(e=``),this.input.prop(`value`,e)}}},{key:`getValue`,value:function(){return this.hasInput()?this.input.val():!1}},{key:`setValue`,value:function(e){if(this.hasInput()){var t=this.input.prop(`value`);e||=``,e!==(t||``)&&(this.input.prop(`value`,e),this.input.trigger({type:`change`,colorpicker:this.colorpicker,color:this.colorpicker.color,value:e}))}}},{key:`getFormattedColor`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return e||=this.colorpicker.colorHandler.getColorString(),e?(e=this.colorpicker.colorHandler.resolveColorDelegate(e,!1),this.colorpicker.options.useHashPrefix===!1&&(e=e.replace(/^#/g,``)),e):``}},{key:`hasInput`,value:function(){return this.input!==!1}},{key:`isEnabled`,value:function(){return this.hasInput()&&!this.isDisabled()}},{key:`isDisabled`,value:function(){return this.hasInput()&&this.input.prop(`disabled`)===!0}},{key:`disable`,value:function(){this.hasInput()&&this.input.prop(`disabled`,!0)}},{key:`enable`,value:function(){this.hasInput()&&this.input.prop(`disabled`,!1)}},{key:`update`,value:function(){this.hasInput()&&(this.colorpicker.options.autoInputFallback===!1&&this.colorpicker.colorHandler.isInvalidColor()||this.setValue(this.getFormattedColor()))}},{key:`onchange`,value:function(e){this.colorpicker.lastEvent.alias=`input.change`,this.colorpicker.lastEvent.e=e;var t=this.getValue();t!==e.value&&this.colorpicker.setValue(t)}},{key:`onkeyup`,value:function(e){this.colorpicker.lastEvent.alias=`input.keyup`,this.colorpicker.lastEvent.e=e;var t=this.getValue();t!==e.value&&this.colorpicker.setValue(t)}}]),e}(),e.exports=t.default}),(function(e,t,n){"use strict";var r=n(17),i=n(20),a=[].slice,o=[`keyword`,`gray`,`hex`],s={};Object.keys(i).forEach(function(e){s[a.call(i[e].labels).sort().join(``)]=e});var c={};function l(e,t){if(!(this instanceof l))return new l(e,t);if(t&&t in o&&(t=null),t&&!(t in i))throw Error(`Unknown model: `+t);var n,u;if(e==null)this.model=`rgb`,this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if(typeof e==`string`){var d=r.get(e);if(d===null)throw Error(`Unable to parse color from string: `+e);this.model=d.model,u=i[this.model].channels,this.color=d.value.slice(0,u),this.valpha=typeof d.value[u]==`number`?d.value[u]:1}else if(e.length){this.model=t||`rgb`,u=i[this.model].channels;var f=a.call(e,0,u);this.color=h(f,u),this.valpha=typeof e[u]==`number`?e[u]:1}else if(typeof e==`number`)e&=16777215,this.model=`rgb`,this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;var p=Object.keys(e);`alpha`in e&&(p.splice(p.indexOf(`alpha`),1),this.valpha=typeof e.alpha==`number`?e.alpha:0);var m=p.sort().join(``);if(!(m in s))throw Error(`Unable to parse color from object: `+JSON.stringify(e));this.model=s[m];var g=i[this.model].labels,_=[];for(n=0;n<g.length;n++)_.push(e[g[n]]);this.color=h(_)}if(c[this.model])for(u=i[this.model].channels,n=0;n<u;n++){var v=c[this.model][n];v&&(this.color[n]=v(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}l.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var t=this.model in r.to?this:this.rgb();t=t.round(typeof e==`number`?e:1);var n=t.valpha===1?t.color:t.color.concat(this.valpha);return r.to[t.model](n)},percentString:function(e){var t=this.rgb().round(typeof e==`number`?e:1),n=t.valpha===1?t.color:t.color.concat(this.valpha);return r.to.rgb.percent(n)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},t=i[this.model].channels,n=i[this.model].labels,r=0;r<t;r++)e[n[r]]=this.color[r];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new l(this.color.map(d(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new l(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:f(`rgb`,0,p(255)),green:f(`rgb`,1,p(255)),blue:f(`rgb`,2,p(255)),hue:f([`hsl`,`hsv`,`hsl`,`hwb`,`hcg`],0,function(e){return(e%360+360)%360}),saturationl:f(`hsl`,1,p(100)),lightness:f(`hsl`,2,p(100)),saturationv:f(`hsv`,1,p(100)),value:f(`hsv`,2,p(100)),chroma:f(`hcg`,1,p(100)),gray:f(`hcg`,2,p(100)),white:f(`hwb`,1,p(100)),wblack:f(`hwb`,2,p(100)),cyan:f(`cmyk`,0,p(100)),magenta:f(`cmyk`,1,p(100)),yellow:f(`cmyk`,2,p(100)),black:f(`cmyk`,3,p(100)),x:f(`xyz`,0,p(100)),y:f(`xyz`,1,p(100)),z:f(`xyz`,2,p(100)),l:f(`lab`,0,p(100)),a:f(`lab`,1),b:f(`lab`,2),keyword:function(e){return arguments.length?new l(e):i[this.model].keyword(this.color)},hex:function(e){return arguments.length?new l(e):r.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity:function(){for(var e=this.rgb().color,t=[],n=0;n<e.length;n++){var r=e[n]/255;t[n]=r<=.03928?r/12.92:((r+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?`AAA`:t>=4.5?`AA`:``},isDark:function(){var e=this.rgb().color;return(e[0]*299+e[1]*587+e[2]*114)/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return l.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix:function(e,t){if(!e||!e.rgb)throw Error(`Argument to "mix" was not a Color instance, but rather an instance of `+typeof e);var n=e.rgb(),r=this.rgb(),i=t===void 0?.5:t,a=2*i-1,o=n.alpha()-r.alpha(),s=((a*o===-1?a:(a+o)/(1+a*o))+1)/2,c=1-s;return l.rgb(s*n.red()+c*r.red(),s*n.green()+c*r.green(),s*n.blue()+c*r.blue(),n.alpha()*i+r.alpha()*(1-i))}},Object.keys(i).forEach(function(e){if(o.indexOf(e)===-1){var t=i[e].channels;l.prototype[e]=function(){if(this.model===e)return new l(this);if(arguments.length)return new l(arguments,e);var n=typeof arguments[t]==`number`?t:this.valpha;return new l(m(i[this.model][e].raw(this.color)).concat(n),e)},l[e]=function(n){return typeof n==`number`&&(n=h(a.call(arguments),t)),new l(n,e)}}});function u(e,t){return Number(e.toFixed(t))}function d(e){return function(t){return u(t,e)}}function f(e,t,n){return e=Array.isArray(e)?e:[e],e.forEach(function(e){(c[e]||(c[e]=[]))[t]=n}),e=e[0],function(r){var i;return arguments.length?(n&&(r=n(r)),i=this[e](),i.color[t]=r,i):(i=this[e]().color[t],n&&(i=n(i)),i)}}function p(e){return function(t){return Math.max(0,Math.min(e,t))}}function m(e){return Array.isArray(e)?e:[e]}function h(e,t){for(var n=0;n<t;n++)typeof e[n]!=`number`&&(e[n]=0);return e}e.exports=l}),(function(e,t,n){var r=n(5),i=n(18),a={};for(var o in r)r.hasOwnProperty(o)&&(a[r[o]]=o);var s=e.exports={to:{},get:{}};s.get=function(e){var t=e.substring(0,3).toLowerCase(),n,r;switch(t){case`hsl`:n=s.get.hsl(e),r=`hsl`;break;case`hwb`:n=s.get.hwb(e),r=`hwb`;break;default:n=s.get.rgb(e),r=`rgb`;break}return n?{model:r,value:n}:null},s.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,i=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,o=/(\D+)/,s=[0,0,0,1],l,u,d;if(l=e.match(n)){for(d=l[2],l=l[1],u=0;u<3;u++){var f=u*2;s[u]=parseInt(l.slice(f,f+2),16)}d&&(s[3]=Math.round(parseInt(d,16)/255*100)/100)}else if(l=e.match(t)){for(l=l[1],d=l[3],u=0;u<3;u++)s[u]=parseInt(l[u]+l[u],16);d&&(s[3]=Math.round(parseInt(d+d,16)/255*100)/100)}else if(l=e.match(i)){for(u=0;u<3;u++)s[u]=parseInt(l[u+1],0);l[4]&&(s[3]=parseFloat(l[4]))}else if(l=e.match(a)){for(u=0;u<3;u++)s[u]=Math.round(parseFloat(l[u+1])*2.55);l[4]&&(s[3]=parseFloat(l[4]))}else if(l=e.match(o))return l[1]===`transparent`?[0,0,0,0]:(s=r[l[1]],s?(s[3]=1,s):null);else return null;for(u=0;u<3;u++)s[u]=c(s[u],0,255);return s[3]=c(s[3],0,1),s},s.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},s.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},s.to.hex=function(){var e=i(arguments);return`#`+l(e[0])+l(e[1])+l(e[2])+(e[3]<1?l(Math.round(e[3]*255)):``)},s.to.rgb=function(){var e=i(arguments);return e.length<4||e[3]===1?`rgb(`+Math.round(e[0])+`, `+Math.round(e[1])+`, `+Math.round(e[2])+`)`:`rgba(`+Math.round(e[0])+`, `+Math.round(e[1])+`, `+Math.round(e[2])+`, `+e[3]+`)`},s.to.rgb.percent=function(){var e=i(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||e[3]===1?`rgb(`+t+`%, `+n+`%, `+r+`%)`:`rgba(`+t+`%, `+n+`%, `+r+`%, `+e[3]+`)`},s.to.hsl=function(){var e=i(arguments);return e.length<4||e[3]===1?`hsl(`+e[0]+`, `+e[1]+`%, `+e[2]+`%)`:`hsla(`+e[0]+`, `+e[1]+`%, `+e[2]+`%, `+e[3]+`)`},s.to.hwb=function(){var e=i(arguments),t=``;return e.length>=4&&e[3]!==1&&(t=`, `+e[3]),`hwb(`+e[0]+`, `+e[1]+`%, `+e[2]+`%`+t+`)`},s.to.keyword=function(e){return a[e.slice(0,3)]};function c(e,t,n){return Math.min(Math.max(t,e),n)}function l(e){var t=e.toString(16).toUpperCase();return t.length<2?`0`+t:t}}),(function(e,t,n){"use strict";var r=n(19),i=Array.prototype.concat,a=Array.prototype.slice,o=e.exports=function(e){for(var t=[],n=0,o=e.length;n<o;n++){var s=e[n];r(s)?t=i.call(t,a.call(s)):t.push(s)}return t};o.wrap=function(e){return function(){return e(o(arguments))}}}),(function(e,t,n){"use strict";e.exports=function(e){return e?e instanceof Array||Array.isArray(e)||e.length>=0&&e.splice instanceof Function:!1}}),(function(e,t,n){var r=n(6),i=n(21),a={},o=Object.keys(r);function s(e){var t=function(t){return t==null?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return`conversion`in e&&(t.conversion=e.conversion),t}function c(e){var t=function(t){if(t==null)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if(typeof n==`object`)for(var r=n.length,i=0;i<r;i++)n[i]=Math.round(n[i]);return n};return`conversion`in e&&(t.conversion=e.conversion),t}o.forEach(function(e){a[e]={},Object.defineProperty(a[e],`channels`,{value:r[e].channels}),Object.defineProperty(a[e],`labels`,{value:r[e].labels});var t=i(e);Object.keys(t).forEach(function(n){var r=t[n];a[e][n]=c(r),a[e][n].raw=s(r)})}),e.exports=a}),(function(e,t,n){var r=n(6);function i(){for(var e={},t=Object.keys(r),n=t.length,i=0;i<n;i++)e[t[i]]={distance:-1,parent:null};return e}function a(e){var t=i(),n=[e];for(t[e].distance=0;n.length;)for(var a=n.pop(),o=Object.keys(r[a]),s=o.length,c=0;c<s;c++){var l=o[c],u=t[l];u.distance===-1&&(u.distance=t[a].distance+1,u.parent=a,n.unshift(l))}return t}function o(e,t){return function(n){return t(e(n))}}function s(e,t){for(var n=[t[e].parent,e],i=r[t[e].parent][e],a=t[e].parent;t[a].parent;)n.unshift(t[a].parent),i=o(r[t[a].parent][a],i),a=t[a].parent;return i.conversion=n,i}e.exports=function(e){for(var t=a(e),n={},r=Object.keys(t),i=r.length,o=0;o<i;o++){var c=r[o];t[c].parent!==null&&(n[c]=s(c,t))}return n}}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=o(n(0)),a=o(n(2));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t){s(this,e),this.colorpicker=t}return r(e,[{key:`bind`,value:function(){if(this.colorpicker.options.color){this.color=this.createColor(this.colorpicker.options.color);return}!this.color&&this.colorpicker.inputHandler.getValue()&&(this.color=this.createColor(this.colorpicker.inputHandler.getValue(),this.colorpicker.options.autoInputFallback))}},{key:`unbind`,value:function(){this.colorpicker.element.removeData(`color`)}},{key:`getColorString`,value:function(){return this.hasColor()?this.color.string(this.format):``}},{key:`setColorString`,value:function(e){var t=e?this.createColor(e):null;this.color=t||null}},{key:`createColor`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=!t&&!n,i=new a.default(this.resolveColorDelegate(e),this.format,r);return i.isValid()||(t&&(i=this.getFallbackColor()),this.colorpicker.trigger(`colorpickerInvalid`,i,e)),this.isAlphaEnabled()||(i.alpha=1),i}},{key:`getFallbackColor`,value:function(){if(this.fallback&&this.fallback===this.color)return this.color;var e=this.resolveColorDelegate(this.fallback),t=new a.default(e,this.format);return t.isValid()?t:(console.warn(`The fallback color is invalid. Falling back to the previous color or black if any.`),this.color?this.color:new a.default(`#000000`,this.format))}},{key:`assureColor`,value:function(){return this.hasColor()||(this.color=this.getFallbackColor()),this.color}},{key:`resolveColorDelegate`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=!1;return i.default.each(this.colorpicker.extensions,function(r,i){n===!1&&(n=i.resolveColor(e,t))}),n||e}},{key:`isInvalidColor`,value:function(){return!this.hasColor()||!this.color.isValid()}},{key:`isAlphaEnabled`,value:function(){return this.colorpicker.options.useAlpha!==!1}},{key:`hasColor`,value:function(){return this.color instanceof a.default}},{key:`fallback`,get:function(){return this.colorpicker.options.fallbackColor?this.colorpicker.options.fallbackColor:this.hasColor()?this.color:null}},{key:`format`,get:function(){return this.colorpicker.options.format?this.colorpicker.options.format:this.hasColor()&&this.color.hasTransparency()&&this.color.format.match(/^hex/)?this.isAlphaEnabled()?`rgba`:`hex`:this.hasColor()?this.color.format:`rgb`}},{key:`color`,get:function(){return this.colorpicker.element.data(`color`)},set:function(e){this.colorpicker.element.data(`color`,e),e instanceof a.default&&this.colorpicker.options.format===`auto`&&(this.colorpicker.options.format=this.color.format)}}]),e}(),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t){o(this,e),this.colorpicker=t,this.picker=null}return r(e,[{key:`bind`,value:function(){var e=this.picker=(0,i.default)(this.options.template);this.options.customClass&&e.addClass(this.options.customClass),this.options.horizontal&&e.addClass(`colorpicker-horizontal`),this._supportsAlphaBar()?(this.options.useAlpha=!0,e.addClass(`colorpicker-with-alpha`)):this.options.useAlpha=!1}},{key:`attach`,value:function(){var e=this.colorpicker.container?this.colorpicker.container:null;e&&this.picker.appendTo(e)}},{key:`unbind`,value:function(){this.picker.remove()}},{key:`_supportsAlphaBar`,value:function(){return(this.options.useAlpha||this.colorpicker.colorHandler.hasColor()&&this.color.hasTransparency())&&this.options.useAlpha!==!1&&(!this.options.format||this.options.format&&!this.options.format.match(/^hex([36])?$/i))}},{key:`update`,value:function(){if(this.colorpicker.colorHandler.hasColor()){var e=this.options.horizontal!==!0,t=e?this.options.sliders:this.options.slidersHorz,n=this.picker.find(`.colorpicker-saturation .colorpicker-guide`),r=this.picker.find(`.colorpicker-hue .colorpicker-guide`),i=this.picker.find(`.colorpicker-alpha .colorpicker-guide`),a=this.color.toHsvaRatio();r.length&&r.css(e?`top`:`left`,(e?t.hue.maxTop:t.hue.maxLeft)*(1-a.h)),i.length&&i.css(e?`top`:`left`,(e?t.alpha.maxTop:t.alpha.maxLeft)*(1-a.a)),n.length&&n.css({top:t.saturation.maxTop-a.v*t.saturation.maxTop,left:a.s*t.saturation.maxLeft}),this.picker.find(`.colorpicker-saturation`).css(`backgroundColor`,this.color.getCloneHueOnly().toHexString());var o=this.color.toHexString(),s=``;s=this.options.horizontal?`linear-gradient(to right, `+o+` 0%, transparent 100%)`:`linear-gradient(to bottom, `+o+` 0%, transparent 100%)`,this.picker.find(`.colorpicker-alpha-color`).css(`background`,s)}}},{key:`options`,get:function(){return this.colorpicker.options}},{key:`color`,get:function(){return this.colorpicker.colorHandler.color}}]),e}(),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t){i(this,e),this.colorpicker=t,this.addon=null}return r(e,[{key:`hasAddon`,value:function(){return!!this.addon}},{key:`bind`,value:function(){this.addon=this.colorpicker.options.addon?this.colorpicker.element.find(this.colorpicker.options.addon):null,this.addon&&this.addon.length===0&&(this.addon=null)}},{key:`unbind`,value:function(){this.hasAddon()&&this.addon.off(`.colorpicker`)}},{key:`update`,value:function(){if(!(!this.colorpicker.colorHandler.hasColor()||!this.hasAddon())){var e={background:this.colorpicker.colorHandler.getColorString()},t=this.addon.find(`i`).eq(0);t.length>0?t.css(e):this.addon.css(e)}}}]),e}(),e.exports=t.default})])})}))(),s(((e,t)=>{var n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r=(typeof window>`u`?`undefined`:n(window))===`object`;(function(e){if(typeof define==`function`&&define.amd)define([`jquery`],e);else if((t===void 0?`undefined`:n(t))===`object`&&t.exports){var r;try{r=K()}catch{r=null}t.exports=e(r)}else window&&(window.Slider=e(window.jQuery))})(function(e){var t=`slider`,n=`bootstrapSlider`;r&&!window.console&&(window.console={}),r&&!window.console.log&&(window.console.log=function(){}),r&&!window.console.warn&&(window.console.warn=function(){});var i;return(function(e){"use strict";var t=Array.prototype.slice;function n(){}function r(e){if(!e)return;function r(t){t.prototype.option||(t.prototype.option=function(t){e.isPlainObject(t)&&(this.options=e.extend(!0,this.options,t))})}var i=typeof console>`u`?n:function(e){console.error(e)};function a(n,r){e.fn[n]=function(a){if(typeof a==`string`){for(var o=t.call(arguments,1),s=0,c=this.length;s<c;s++){var l=this[s],u=e.data(l,n);if(!u){i(`cannot call methods on `+n+` prior to initialization; attempted to call '`+a+`'`);continue}if(!e.isFunction(u[a])||a.charAt(0)===`_`){i(`no such method '`+a+`' for `+n+` instance`);continue}var d=u[a].apply(u,o);if(d!==void 0&&d!==u)return d}return this}else{var f=this.map(function(){var t=e.data(this,n);return t?(t.option(a),t._init()):(t=new r(this,a),e.data(this,n,t)),e(this)});return f.length===1?f[0]:f}}}return e.bridget=function(e,t){r(t),a(e,t)},e.bridget}r(e)})(e),(function(e){var a=void 0,o={formatInvalidInputErrorMsg:function(e){return`Invalid input value '`+e+`' passed in`},callingContextNotSliderInstance:`Calling context element does not have instance of Slider bound to it. Check your code to make sure the JQuery object returned from the call to the slider() initializer is calling the method`},s={linear:{getValue:function(e,t){return e<t.min?t.min:e>t.max?t.max:e},toValue:function(e){var t=e/100*(this.options.max-this.options.min),n=!0;if(this.options.ticks_positions.length>0){for(var r,i,a,o=0,c=1;c<this.options.ticks_positions.length;c++)if(e<=this.options.ticks_positions[c]){r=this.options.ticks[c-1],a=this.options.ticks_positions[c-1],i=this.options.ticks[c],o=this.options.ticks_positions[c];break}var l=(e-a)/(o-a);t=r+l*(i-r),n=!1}var u=(n?this.options.min:0)+Math.round(t/this.options.step)*this.options.step;return s.linear.getValue(u,this.options)},toPercentage:function(e){if(this.options.max===this.options.min)return 0;if(this.options.ticks_positions.length>0){for(var t,n,r,i=0,a=0;a<this.options.ticks.length;a++)if(e<=this.options.ticks[a]){t=a>0?this.options.ticks[a-1]:0,r=a>0?this.options.ticks_positions[a-1]:0,n=this.options.ticks[a],i=this.options.ticks_positions[a];break}if(a>0){var o=(e-t)/(n-t);return r+o*(i-r)}}return 100*(e-this.options.min)/(this.options.max-this.options.min)}},logarithmic:{toValue:function(e){var t=1-this.options.min,n=Math.log(this.options.min+t),r=Math.log(this.options.max+t),i=Math.exp(n+(r-n)*e/100)-t;return Math.round(i)===r?r:(i=this.options.min+Math.round((i-this.options.min)/this.options.step)*this.options.step,s.linear.getValue(i,this.options))},toPercentage:function(e){if(this.options.max===this.options.min)return 0;var t=1-this.options.min,n=Math.log(this.options.max+t),r=Math.log(this.options.min+t);return 100*(Math.log(e+t)-r)/(n-r)}}};i=function(e,t){return c.call(this,e,t),this};function c(t,n){this._state={value:null,enabled:null,offset:null,size:null,percentage:null,inDrag:!1,over:!1,tickIndex:null},this.ticksCallbackMap={},this.handleCallbackMap={},typeof t==`string`?this.element=document.querySelector(t):t instanceof HTMLElement&&(this.element=t),n||={};for(var r=Object.keys(this.defaultOptions),i=n.hasOwnProperty(`min`),a=n.hasOwnProperty(`max`),o=0;o<r.length;o++){var c=r[o],l=n[c];l=l===void 0?d(this.element,c):l,l=l===null?this.defaultOptions[c]:l,this.options||={},this.options[c]=l}if(this.ticksAreValid=Array.isArray(this.options.ticks)&&this.options.ticks.length>0,this.ticksAreValid||(this.options.lock_to_ticks=!1),this.options.rtl===`auto`){var u=window.getComputedStyle(this.element);u==null?this.options.rtl=this.element.style.direction===`rtl`:this.options.rtl=u.direction===`rtl`}this.options.orientation===`vertical`&&(this.options.tooltip_position===`top`||this.options.tooltip_position===`bottom`)?this.options.rtl?this.options.tooltip_position=`left`:this.options.tooltip_position=`right`:this.options.orientation===`horizontal`&&(this.options.tooltip_position===`left`||this.options.tooltip_position===`right`)&&(this.options.tooltip_position=`top`);function d(e,t){var n=`data-slider-`+t.replace(/_/g,`-`),r=e.getAttribute(n);try{return JSON.parse(r)}catch{return r}}var f=this.element.style.width,p=!1,m=this.element.parentNode,h,g,_,v,y;if(this.sliderElem)p=!0;else{this.sliderElem=document.createElement(`div`),this.sliderElem.className=`slider`;var b=document.createElement(`div`);b.className=`slider-track`,g=document.createElement(`div`),g.className=`slider-track-low`,h=document.createElement(`div`),h.className=`slider-selection`,_=document.createElement(`div`),_.className=`slider-track-high`,v=document.createElement(`div`),v.className=`slider-handle min-slider-handle`,v.setAttribute(`role`,`slider`),v.setAttribute(`aria-valuemin`,this.options.min),v.setAttribute(`aria-valuemax`,this.options.max),y=document.createElement(`div`),y.className=`slider-handle max-slider-handle`,y.setAttribute(`role`,`slider`),y.setAttribute(`aria-valuemin`,this.options.min),y.setAttribute(`aria-valuemax`,this.options.max),b.appendChild(g),b.appendChild(h),b.appendChild(_),this.rangeHighlightElements=[];var x=this.options.rangeHighlights;if(Array.isArray(x)&&x.length>0)for(var S=0;S<x.length;S++){var C=document.createElement(`div`);C.className=`slider-rangeHighlight slider-selection `+(x[S].class||``),this.rangeHighlightElements.push(C),b.appendChild(C)}var w=Array.isArray(this.options.labelledby);if(w&&this.options.labelledby[0]&&v.setAttribute(`aria-labelledby`,this.options.labelledby[0]),w&&this.options.labelledby[1]&&y.setAttribute(`aria-labelledby`,this.options.labelledby[1]),!w&&this.options.labelledby&&(v.setAttribute(`aria-labelledby`,this.options.labelledby),y.setAttribute(`aria-labelledby`,this.options.labelledby)),this.ticks=[],Array.isArray(this.options.ticks)&&this.options.ticks.length>0){for(this.ticksContainer=document.createElement(`div`),this.ticksContainer.className=`slider-tick-container`,o=0;o<this.options.ticks.length;o++){var T=document.createElement(`div`);if(T.className=`slider-tick`,this.options.ticks_tooltip){var E=this._addTickListener(),D=E.addMouseEnter(this,T,o),ee=E.addMouseLeave(this,T);this.ticksCallbackMap[o]={mouseEnter:D,mouseLeave:ee}}this.ticks.push(T),this.ticksContainer.appendChild(T)}h.className+=` tick-slider-selection`}if(this.tickLabels=[],Array.isArray(this.options.ticks_labels)&&this.options.ticks_labels.length>0)for(this.tickLabelContainer=document.createElement(`div`),this.tickLabelContainer.className=`slider-tick-label-container`,o=0;o<this.options.ticks_labels.length;o++){var O=document.createElement(`div`),te=this.options.ticks_positions.length===0,ne=this.options.reversed&&te?this.options.ticks_labels.length-(o+1):o;O.className=`slider-tick-label`,O.innerHTML=this.options.ticks_labels[ne],this.tickLabels.push(O),this.tickLabelContainer.appendChild(O)}var k=function(e){var t=document.createElement(`div`);t.className=`tooltip-arrow`;var n=document.createElement(`div`);n.className=`tooltip-inner`,e.appendChild(t),e.appendChild(n)},A=document.createElement(`div`);A.className=`tooltip tooltip-main`,A.setAttribute(`role`,`presentation`),k(A);var re=document.createElement(`div`);re.className=`tooltip tooltip-min`,re.setAttribute(`role`,`presentation`),k(re);var j=document.createElement(`div`);j.className=`tooltip tooltip-max`,j.setAttribute(`role`,`presentation`),k(j),this.sliderElem.appendChild(b),this.sliderElem.appendChild(A),this.sliderElem.appendChild(re),this.sliderElem.appendChild(j),this.tickLabelContainer&&this.sliderElem.appendChild(this.tickLabelContainer),this.ticksContainer&&this.sliderElem.appendChild(this.ticksContainer),this.sliderElem.appendChild(v),this.sliderElem.appendChild(y),m.insertBefore(this.sliderElem,this.element),this.element.style.display=`none`}if(e&&(this.$element=e(this.element),this.$sliderElem=e(this.sliderElem)),this.eventToCallbackMap={},this.sliderElem.id=this.options.id,this.touchCapable=`ontouchstart`in window||window.DocumentTouch&&document instanceof window.DocumentTouch,this.touchX=0,this.touchY=0,this.tooltip=this.sliderElem.querySelector(`.tooltip-main`),this.tooltipInner=this.tooltip.querySelector(`.tooltip-inner`),this.tooltip_min=this.sliderElem.querySelector(`.tooltip-min`),this.tooltipInner_min=this.tooltip_min.querySelector(`.tooltip-inner`),this.tooltip_max=this.sliderElem.querySelector(`.tooltip-max`),this.tooltipInner_max=this.tooltip_max.querySelector(`.tooltip-inner`),s[this.options.scale]&&(this.options.scale=s[this.options.scale]),p===!0&&(this._removeClass(this.sliderElem,`slider-horizontal`),this._removeClass(this.sliderElem,`slider-vertical`),this._removeClass(this.sliderElem,`slider-rtl`),this._removeClass(this.tooltip,`hide`),this._removeClass(this.tooltip_min,`hide`),this._removeClass(this.tooltip_max,`hide`),[`left`,`right`,`top`,`width`,`height`].forEach(function(e){this._removeProperty(this.trackLow,e),this._removeProperty(this.trackSelection,e),this._removeProperty(this.trackHigh,e)},this),[this.handle1,this.handle2].forEach(function(e){this._removeProperty(e,`left`),this._removeProperty(e,`right`),this._removeProperty(e,`top`)},this),[this.tooltip,this.tooltip_min,this.tooltip_max].forEach(function(e){this._removeProperty(e,`left`),this._removeProperty(e,`right`),this._removeProperty(e,`top`),this._removeClass(e,`right`),this._removeClass(e,`left`),this._removeClass(e,`top`)},this)),this.options.orientation===`vertical`?(this._addClass(this.sliderElem,`slider-vertical`),this.stylePos=`top`,this.mousePos=`pageY`,this.sizePos=`offsetHeight`):(this._addClass(this.sliderElem,`slider-horizontal`),this.sliderElem.style.width=f,this.options.orientation=`horizontal`,this.options.rtl?this.stylePos=`right`:this.stylePos=`left`,this.mousePos=`clientX`,this.sizePos=`offsetWidth`),this.options.rtl&&this._addClass(this.sliderElem,`slider-rtl`),this._setTooltipPosition(),Array.isArray(this.options.ticks)&&this.options.ticks.length>0&&(a||(this.options.max=Math.max.apply(Math,this.options.ticks)),i||(this.options.min=Math.min.apply(Math,this.options.ticks))),Array.isArray(this.options.value)?(this.options.range=!0,this._state.value=this.options.value):this.options.range?this._state.value=[this.options.value,this.options.max]:this._state.value=this.options.value,this.trackLow=g||this.trackLow,this.trackSelection=h||this.trackSelection,this.trackHigh=_||this.trackHigh,this.options.selection===`none`?(this._addClass(this.trackLow,`hide`),this._addClass(this.trackSelection,`hide`),this._addClass(this.trackHigh,`hide`)):(this.options.selection===`after`||this.options.selection===`before`)&&(this._removeClass(this.trackLow,`hide`),this._removeClass(this.trackSelection,`hide`),this._removeClass(this.trackHigh,`hide`)),this.handle1=v||this.handle1,this.handle2=y||this.handle2,p===!0)for(this._removeClass(this.handle1,`round triangle`),this._removeClass(this.handle2,`round triangle hide`),o=0;o<this.ticks.length;o++)this._removeClass(this.ticks[o],`round triangle hide`);if([`round`,`triangle`,`custom`].indexOf(this.options.handle)!==-1)for(this._addClass(this.handle1,this.options.handle),this._addClass(this.handle2,this.options.handle),o=0;o<this.ticks.length;o++)this._addClass(this.ticks[o],this.options.handle);if(this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this.setValue(this._state.value),this.handle1Keydown=this._keydown.bind(this,0),this.handle1.addEventListener(`keydown`,this.handle1Keydown,!1),this.handle2Keydown=this._keydown.bind(this,1),this.handle2.addEventListener(`keydown`,this.handle2Keydown,!1),this.mousedown=this._mousedown.bind(this),this.touchstart=this._touchstart.bind(this),this.touchmove=this._touchmove.bind(this),this.touchCapable&&(this.sliderElem.addEventListener(`touchstart`,this.touchstart,!1),this.sliderElem.addEventListener(`touchmove`,this.touchmove,!1)),this.sliderElem.addEventListener(`mousedown`,this.mousedown,!1),this.resize=this._resize.bind(this),window.addEventListener(`resize`,this.resize,!1),this.options.tooltip===`hide`)this._addClass(this.tooltip,`hide`),this._addClass(this.tooltip_min,`hide`),this._addClass(this.tooltip_max,`hide`);else if(this.options.tooltip===`always`)this._showTooltip(),this._alwaysShowTooltip=!0;else{if(this.showTooltip=this._showTooltip.bind(this),this.hideTooltip=this._hideTooltip.bind(this),this.options.ticks_tooltip){var M=this._addTickListener(),ie=M.addMouseEnter(this,this.handle1),N=M.addMouseLeave(this,this.handle1);this.handleCallbackMap.handle1={mouseEnter:ie,mouseLeave:N},ie=M.addMouseEnter(this,this.handle2),N=M.addMouseLeave(this,this.handle2),this.handleCallbackMap.handle2={mouseEnter:ie,mouseLeave:N}}else this.sliderElem.addEventListener(`mouseenter`,this.showTooltip,!1),this.sliderElem.addEventListener(`mouseleave`,this.hideTooltip,!1),this.touchCapable&&(this.sliderElem.addEventListener(`touchstart`,this.showTooltip,!1),this.sliderElem.addEventListener(`touchmove`,this.showTooltip,!1),this.sliderElem.addEventListener(`touchend`,this.hideTooltip,!1));this.handle1.addEventListener(`focus`,this.showTooltip,!1),this.handle1.addEventListener(`blur`,this.hideTooltip,!1),this.handle2.addEventListener(`focus`,this.showTooltip,!1),this.handle2.addEventListener(`blur`,this.hideTooltip,!1),this.touchCapable&&(this.handle1.addEventListener(`touchstart`,this.showTooltip,!1),this.handle1.addEventListener(`touchmove`,this.showTooltip,!1),this.handle1.addEventListener(`touchend`,this.hideTooltip,!1),this.handle2.addEventListener(`touchstart`,this.showTooltip,!1),this.handle2.addEventListener(`touchmove`,this.showTooltip,!1),this.handle2.addEventListener(`touchend`,this.hideTooltip,!1))}this.options.enabled?this.enable():this.disable()}i.prototype={_init:function(){},constructor:i,defaultOptions:{id:``,min:0,max:10,step:1,precision:0,orientation:`horizontal`,value:5,range:!1,selection:`before`,tooltip:`show`,tooltip_split:!1,lock_to_ticks:!1,handle:`round`,reversed:!1,rtl:`auto`,enabled:!0,formatter:function(e){return Array.isArray(e)?e[0]+` : `+e[1]:e},natural_arrow_keys:!1,ticks:[],ticks_positions:[],ticks_labels:[],ticks_snap_bounds:0,ticks_tooltip:!1,scale:`linear`,focus:!1,tooltip_position:null,labelledby:null,rangeHighlights:[]},getElement:function(){return this.sliderElem},getValue:function(){return this.options.range?this._state.value:this._state.value[0]},setValue:function(e,t,n){e||=0;var r=this.getValue();this._state.value=this._validateInputValue(e);var i=this._applyPrecision.bind(this);this.options.range?(this._state.value[0]=i(this._state.value[0]),this._state.value[1]=i(this._state.value[1]),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value[0]=this.options.ticks[this._getClosestTickIndex(this._state.value[0])],this._state.value[1]=this.options.ticks[this._getClosestTickIndex(this._state.value[1])]),this._state.value[0]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[0])),this._state.value[1]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[1]))):(this._state.value=i(this._state.value),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value=this.options.ticks[this._getClosestTickIndex(this._state.value)]),this._state.value=[Math.max(this.options.min,Math.min(this.options.max,this._state.value))],this._addClass(this.handle2,`hide`),this.options.selection===`after`?this._state.value[1]=this.options.max:this._state.value[1]=this.options.min),this._setTickIndex(),this.options.max>this.options.min?this._state.percentage=[this._toPercentage(this._state.value[0]),this._toPercentage(this._state.value[1]),this.options.step*100/(this.options.max-this.options.min)]:this._state.percentage=[0,0,100],this._layout();var a=this.options.range?this._state.value:this._state.value[0];this._setDataVal(a),t===!0&&this._trigger(`slide`,a);var o=!1;return o=Array.isArray(a)?r[0]!==a[0]||r[1]!==a[1]:r!==a,o&&n===!0&&this._trigger(`change`,{oldValue:r,newValue:a}),this},destroy:function(){this._removeSliderEventHandlers(),this.sliderElem.parentNode.removeChild(this.sliderElem),this.element.style.display=``,this._cleanUpEventCallbacksMap(),this.element.removeAttribute(`data`),e&&(this._unbindJQueryEventHandlers(),a===t&&this.$element.removeData(a),this.$element.removeData(n))},disable:function(){return this._state.enabled=!1,this.handle1.removeAttribute(`tabindex`),this.handle2.removeAttribute(`tabindex`),this._addClass(this.sliderElem,`slider-disabled`),this._trigger(`slideDisabled`),this},enable:function(){return this._state.enabled=!0,this.handle1.setAttribute(`tabindex`,0),this.handle2.setAttribute(`tabindex`,0),this._removeClass(this.sliderElem,`slider-disabled`),this._trigger(`slideEnabled`),this},toggle:function(){return this._state.enabled?this.disable():this.enable(),this},isEnabled:function(){return this._state.enabled},on:function(e,t){return this._bindNonQueryEventHandler(e,t),this},off:function(t,n){e?(this.$element.off(t,n),this.$sliderElem.off(t,n)):this._unbindNonQueryEventHandler(t,n)},getAttribute:function(e){return e?this.options[e]:this.options},setAttribute:function(e,t){return this.options[e]=t,this},refresh:function(r){var i=this.getValue();return this._removeSliderEventHandlers(),c.call(this,this.element,this.options),r&&r.useCurrentValue===!0&&this.setValue(i),e&&(a===t&&e.data(this.element,t,this),e.data(this.element,n,this)),this},relayout:function(){return this._resize(),this},_removeTooltipListener:function(e,t){this.handle1.removeEventListener(e,t,!1),this.handle2.removeEventListener(e,t,!1)},_removeSliderEventHandlers:function(){if(this.handle1.removeEventListener(`keydown`,this.handle1Keydown,!1),this.handle2.removeEventListener(`keydown`,this.handle2Keydown,!1),this.options.ticks_tooltip){for(var e=this.ticksContainer.getElementsByClassName(`slider-tick`),t=0;t<e.length;t++)e[t].removeEventListener(`mouseenter`,this.ticksCallbackMap[t].mouseEnter,!1),e[t].removeEventListener(`mouseleave`,this.ticksCallbackMap[t].mouseLeave,!1);this.handleCallbackMap.handle1&&this.handleCallbackMap.handle2&&(this.handle1.removeEventListener(`mouseenter`,this.handleCallbackMap.handle1.mouseEnter,!1),this.handle2.removeEventListener(`mouseenter`,this.handleCallbackMap.handle2.mouseEnter,!1),this.handle1.removeEventListener(`mouseleave`,this.handleCallbackMap.handle1.mouseLeave,!1),this.handle2.removeEventListener(`mouseleave`,this.handleCallbackMap.handle2.mouseLeave,!1))}this.handleCallbackMap=null,this.ticksCallbackMap=null,this.showTooltip&&this._removeTooltipListener(`focus`,this.showTooltip),this.hideTooltip&&this._removeTooltipListener(`blur`,this.hideTooltip),this.showTooltip&&this.sliderElem.removeEventListener(`mouseenter`,this.showTooltip,!1),this.hideTooltip&&this.sliderElem.removeEventListener(`mouseleave`,this.hideTooltip,!1),this.sliderElem.removeEventListener(`mousedown`,this.mousedown,!1),this.touchCapable&&(this.showTooltip&&(this.handle1.removeEventListener(`touchstart`,this.showTooltip,!1),this.handle1.removeEventListener(`touchmove`,this.showTooltip,!1),this.handle2.removeEventListener(`touchstart`,this.showTooltip,!1),this.handle2.removeEventListener(`touchmove`,this.showTooltip,!1)),this.hideTooltip&&(this.handle1.removeEventListener(`touchend`,this.hideTooltip,!1),this.handle2.removeEventListener(`touchend`,this.hideTooltip,!1)),this.showTooltip&&(this.sliderElem.removeEventListener(`touchstart`,this.showTooltip,!1),this.sliderElem.removeEventListener(`touchmove`,this.showTooltip,!1)),this.hideTooltip&&this.sliderElem.removeEventListener(`touchend`,this.hideTooltip,!1),this.sliderElem.removeEventListener(`touchstart`,this.touchstart,!1),this.sliderElem.removeEventListener(`touchmove`,this.touchmove,!1)),window.removeEventListener(`resize`,this.resize,!1)},_bindNonQueryEventHandler:function(e,t){this.eventToCallbackMap[e]===void 0&&(this.eventToCallbackMap[e]=[]),this.eventToCallbackMap[e].push(t)},_unbindNonQueryEventHandler:function(e,t){var n=this.eventToCallbackMap[e];if(n!==void 0){for(var r=0;r<n.length;r++)if(n[r]===t){n.splice(r,1);break}}},_cleanUpEventCallbacksMap:function(){for(var e=Object.keys(this.eventToCallbackMap),t=0;t<e.length;t++){var n=e[t];delete this.eventToCallbackMap[n]}},_showTooltip:function(){this.options.tooltip_split===!1?(this._addClass(this.tooltip,`in`),this.tooltip_min.style.display=`none`,this.tooltip_max.style.display=`none`):(this._addClass(this.tooltip_min,`in`),this._addClass(this.tooltip_max,`in`),this.tooltip.style.display=`none`),this._state.over=!0},_hideTooltip:function(){this._state.inDrag===!1&&this._alwaysShowTooltip!==!0&&(this._removeClass(this.tooltip,`in`),this._removeClass(this.tooltip_min,`in`),this._removeClass(this.tooltip_max,`in`)),this._state.over=!1},_setToolTipOnMouseOver:function(e){var t=this,n=this.options.formatter(e?e.value[0]:this._state.value[0]),r=i(e||this._state,this.options.reversed);this._setText(this.tooltipInner,n),this.tooltip.style[this.stylePos]=r[0]+`%`;function i(e,n){return n?[100-e.percentage[0],t.options.range?100-e.percentage[1]:e.percentage[1]]:[e.percentage[0],e.percentage[1]]}},_copyState:function(){return{value:[this._state.value[0],this._state.value[1]],enabled:this._state.enabled,offset:this._state.offset,size:this._state.size,percentage:[this._state.percentage[0],this._state.percentage[1],this._state.percentage[2]],inDrag:this._state.inDrag,over:this._state.over,dragged:this._state.dragged,keyCtrl:this._state.keyCtrl}},_addTickListener:function(){return{addMouseEnter:function(e,t,n){var r=function(){var r=e._copyState(),i=t===e.handle1?r.value[0]:r.value[1],a=void 0;n===void 0?a=e._toPercentage(i):(i=e.options.ticks[n],a=e.options.ticks_positions.length>0&&e.options.ticks_positions[n]||e._toPercentage(e.options.ticks[n])),r.value[0]=i,r.percentage[0]=a,e._setToolTipOnMouseOver(r),e._showTooltip()};return t.addEventListener(`mouseenter`,r,!1),r},addMouseLeave:function(e,t){var n=function(){e._hideTooltip()};return t.addEventListener(`mouseleave`,n,!1),n}}},_layout:function(){var e=this.options.reversed?[100-this._state.percentage[0],this.options.range?100-this._state.percentage[1]:this._state.percentage[1]]:[this._state.percentage[0],this._state.percentage[1]],t;if(this.handle1.style[this.stylePos]=e[0]+`%`,this.handle1.setAttribute(`aria-valuenow`,this._state.value[0]),t=this.options.formatter(this._state.value[0]),isNaN(t)?this.handle1.setAttribute(`aria-valuetext`,t):this.handle1.removeAttribute(`aria-valuetext`),this.handle2.style[this.stylePos]=e[1]+`%`,this.handle2.setAttribute(`aria-valuenow`,this._state.value[1]),t=this.options.formatter(this._state.value[1]),isNaN(t)?this.handle2.setAttribute(`aria-valuetext`,t):this.handle2.removeAttribute(`aria-valuetext`),this.rangeHighlightElements.length>0&&Array.isArray(this.options.rangeHighlights)&&this.options.rangeHighlights.length>0)for(var n=0;n<this.options.rangeHighlights.length;n++){var r=this._toPercentage(this.options.rangeHighlights[n].start),i=this._toPercentage(this.options.rangeHighlights[n].end);if(this.options.reversed){var a=100-i;i=100-r,r=a}var o=this._createHighlightRange(r,i);o?this.options.orientation===`vertical`?(this.rangeHighlightElements[n].style.top=o.start+`%`,this.rangeHighlightElements[n].style.height=o.size+`%`):(this.options.rtl?this.rangeHighlightElements[n].style.right=o.start+`%`:this.rangeHighlightElements[n].style.left=o.start+`%`,this.rangeHighlightElements[n].style.width=o.size+`%`):this.rangeHighlightElements[n].style.display=`none`}if(Array.isArray(this.options.ticks)&&this.options.ticks.length>0){var s=this.options.orientation===`vertical`?`height`:`width`,c=this.options.orientation===`vertical`?`marginTop`:this.options.rtl?`marginRight`:`marginLeft`,l=this._state.size/(this.options.ticks.length-1);if(this.tickLabelContainer){var u=0;if(this.options.ticks_positions.length===0)this.options.orientation!==`vertical`&&(this.tickLabelContainer.style[c]=-l/2+`px`),u=this.tickLabelContainer.offsetHeight;else for(d=0;d<this.tickLabelContainer.childNodes.length;d++)this.tickLabelContainer.childNodes[d].offsetHeight>u&&(u=this.tickLabelContainer.childNodes[d].offsetHeight);this.options.orientation===`horizontal`&&(this.sliderElem.style.marginBottom=u+`px`)}for(var d=0;d<this.options.ticks.length;d++){var f=this.options.ticks_positions[d]||this._toPercentage(this.options.ticks[d]);this.options.reversed&&(f=100-f),this.ticks[d].style[this.stylePos]=f+`%`,this._removeClass(this.ticks[d],`in-selection`),this.options.range?f>=e[0]&&f<=e[1]&&this._addClass(this.ticks[d],`in-selection`):(this.options.selection===`after`&&f>=e[0]||this.options.selection===`before`&&f<=e[0])&&this._addClass(this.ticks[d],`in-selection`),this.tickLabels[d]&&(this.tickLabels[d].style[s]=l+`px`,this.options.orientation!==`vertical`&&this.options.ticks_positions[d]!==void 0?(this.tickLabels[d].style.position=`absolute`,this.tickLabels[d].style[this.stylePos]=f+`%`,this.tickLabels[d].style[c]=-l/2+`px`):this.options.orientation===`vertical`&&(this.options.rtl?this.tickLabels[d].style.marginRight=this.sliderElem.offsetWidth+`px`:this.tickLabels[d].style.marginLeft=this.sliderElem.offsetWidth+`px`,this.tickLabelContainer.style[c]=this.sliderElem.offsetWidth/2*-1+`px`),this._removeClass(this.tickLabels[d],`label-in-selection label-is-selection`),this.options.range?f>=e[0]&&f<=e[1]&&(this._addClass(this.tickLabels[d],`label-in-selection`),(f===e[0]||e[1])&&this._addClass(this.tickLabels[d],`label-is-selection`)):((this.options.selection===`after`&&f>=e[0]||this.options.selection===`before`&&f<=e[0])&&this._addClass(this.tickLabels[d],`label-in-selection`),f===e[0]&&this._addClass(this.tickLabels[d],`label-is-selection`)))}}var p;if(this.options.range){p=this.options.formatter(this._state.value),this._setText(this.tooltipInner,p),this.tooltip.style[this.stylePos]=(e[1]+e[0])/2+`%`;var m=this.options.formatter(this._state.value[0]);this._setText(this.tooltipInner_min,m);var h=this.options.formatter(this._state.value[1]);this._setText(this.tooltipInner_max,h),this.tooltip_min.style[this.stylePos]=e[0]+`%`,this.tooltip_max.style[this.stylePos]=e[1]+`%`}else p=this.options.formatter(this._state.value[0]),this._setText(this.tooltipInner,p),this.tooltip.style[this.stylePos]=e[0]+`%`;if(this.options.orientation===`vertical`)this.trackLow.style.top=`0`,this.trackLow.style.height=Math.min(e[0],e[1])+`%`,this.trackSelection.style.top=Math.min(e[0],e[1])+`%`,this.trackSelection.style.height=Math.abs(e[0]-e[1])+`%`,this.trackHigh.style.bottom=`0`,this.trackHigh.style.height=100-Math.min(e[0],e[1])-Math.abs(e[0]-e[1])+`%`;else{this.stylePos===`right`?this.trackLow.style.right=`0`:this.trackLow.style.left=`0`,this.trackLow.style.width=Math.min(e[0],e[1])+`%`,this.stylePos===`right`?this.trackSelection.style.right=Math.min(e[0],e[1])+`%`:this.trackSelection.style.left=Math.min(e[0],e[1])+`%`,this.trackSelection.style.width=Math.abs(e[0]-e[1])+`%`,this.stylePos===`right`?this.trackHigh.style.left=`0`:this.trackHigh.style.right=`0`,this.trackHigh.style.width=100-Math.min(e[0],e[1])-Math.abs(e[0]-e[1])+`%`;var g=this.tooltip_min.getBoundingClientRect(),_=this.tooltip_max.getBoundingClientRect();this.options.tooltip_position===`bottom`?g.right>_.left?(this._removeClass(this.tooltip_max,`bottom`),this._addClass(this.tooltip_max,`top`),this.tooltip_max.style.top=``,this.tooltip_max.style.bottom=`22px`):(this._removeClass(this.tooltip_max,`top`),this._addClass(this.tooltip_max,`bottom`),this.tooltip_max.style.top=this.tooltip_min.style.top,this.tooltip_max.style.bottom=``):g.right>_.left?(this._removeClass(this.tooltip_max,`top`),this._addClass(this.tooltip_max,`bottom`),this.tooltip_max.style.top=`18px`):(this._removeClass(this.tooltip_max,`bottom`),this._addClass(this.tooltip_max,`top`),this.tooltip_max.style.top=this.tooltip_min.style.top)}},_createHighlightRange:function(e,t){return this._isHighlightRange(e,t)?e>t?{start:t,size:e-t}:{start:e,size:t-e}:null},_isHighlightRange:function(e,t){return 0<=e&&e<=100&&0<=t&&t<=100},_resize:function(e){this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this._layout()},_removeProperty:function(e,t){e.style.removeProperty?e.style.removeProperty(t):e.style.removeAttribute(t)},_mousedown:function(e){if(!this._state.enabled)return!1;e.preventDefault&&e.preventDefault(),this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos];var t=this._getPercentage(e);if(this.options.range){var n=Math.abs(this._state.percentage[0]-t),r=Math.abs(this._state.percentage[1]-t);this._state.dragged=n<r?0:1,this._adjustPercentageForRangeSliders(t)}else this._state.dragged=0;this._state.percentage[this._state.dragged]=t,this.touchCapable&&(document.removeEventListener(`touchmove`,this.mousemove,!1),document.removeEventListener(`touchend`,this.mouseup,!1)),this.mousemove&&document.removeEventListener(`mousemove`,this.mousemove,!1),this.mouseup&&document.removeEventListener(`mouseup`,this.mouseup,!1),this.mousemove=this._mousemove.bind(this),this.mouseup=this._mouseup.bind(this),this.touchCapable&&(document.addEventListener(`touchmove`,this.mousemove,!1),document.addEventListener(`touchend`,this.mouseup,!1)),document.addEventListener(`mousemove`,this.mousemove,!1),document.addEventListener(`mouseup`,this.mouseup,!1),this._state.inDrag=!0;var i=this._calculateValue();return this._trigger(`slideStart`,i),this.setValue(i,!1,!0),e.returnValue=!1,this.options.focus&&this._triggerFocusOnHandle(this._state.dragged),!0},_touchstart:function(e){this._mousedown(e)},_triggerFocusOnHandle:function(e){e===0&&this.handle1.focus(),e===1&&this.handle2.focus()},_keydown:function(e,t){if(!this._state.enabled)return!1;var n;switch(t.keyCode){case 37:case 40:n=-1;break;case 39:case 38:n=1;break}if(n){if(this.options.natural_arrow_keys){var r=this.options.orientation===`horizontal`,i=this.options.orientation===`vertical`,a=this.options.rtl,o=this.options.reversed;r?a?o||(n=-n):o&&(n=-n):i&&(o||(n=-n))}var s;if(this.ticksAreValid&&this.options.lock_to_ticks){var c=void 0;c=this.options.ticks.indexOf(this._state.value[e]),c===-1&&(c=0,window.console.warn(`(lock_to_ticks) _keydown: index should not be -1`)),c+=n,c=Math.max(0,Math.min(this.options.ticks.length-1,c)),s=this.options.ticks[c]}else s=this._state.value[e]+n*this.options.step;var l=this._toPercentage(s);if(this._state.keyCtrl=e,this.options.range){this._adjustPercentageForRangeSliders(l);var u=this._state.keyCtrl?this._state.value[0]:s,d=this._state.keyCtrl?s:this._state.value[1];s=[Math.max(this.options.min,Math.min(this.options.max,u)),Math.max(this.options.min,Math.min(this.options.max,d))]}else s=Math.max(this.options.min,Math.min(this.options.max,s));return this._trigger(`slideStart`,s),this.setValue(s,!0,!0),this._trigger(`slideStop`,s),this._pauseEvent(t),delete this._state.keyCtrl,!1}},_pauseEvent:function(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.cancelBubble=!0,e.returnValue=!1},_mousemove:function(e){if(!this._state.enabled)return!1;var t=this._getPercentage(e);this._adjustPercentageForRangeSliders(t),this._state.percentage[this._state.dragged]=t;var n=this._calculateValue(!0);return this.setValue(n,!0,!0),!1},_touchmove:function(e){e.changedTouches!==void 0&&e.preventDefault&&e.preventDefault()},_adjustPercentageForRangeSliders:function(e){if(this.options.range){var t=this._getNumDigitsAfterDecimalPlace(e);t=t?t-1:0;var n=this._applyToFixedAndParseFloat(e,t);this._state.dragged===0&&this._applyToFixedAndParseFloat(this._state.percentage[1],t)<n?(this._state.percentage[0]=this._state.percentage[1],this._state.dragged=1):this._state.dragged===1&&this._applyToFixedAndParseFloat(this._state.percentage[0],t)>n?(this._state.percentage[1]=this._state.percentage[0],this._state.dragged=0):this._state.keyCtrl===0&&this._toPercentage(this._state.value[1])<e?(this._state.percentage[0]=this._state.percentage[1],this._state.keyCtrl=1,this.handle2.focus()):this._state.keyCtrl===1&&this._toPercentage(this._state.value[0])>e&&(this._state.percentage[1]=this._state.percentage[0],this._state.keyCtrl=0,this.handle1.focus())}},_mouseup:function(e){if(!this._state.enabled)return!1;var t=this._getPercentage(e);this._adjustPercentageForRangeSliders(t),this._state.percentage[this._state.dragged]=t,this.touchCapable&&(document.removeEventListener(`touchmove`,this.mousemove,!1),document.removeEventListener(`touchend`,this.mouseup,!1)),document.removeEventListener(`mousemove`,this.mousemove,!1),document.removeEventListener(`mouseup`,this.mouseup,!1),this._state.inDrag=!1,this._state.over===!1&&this._hideTooltip();var n=this._calculateValue(!0);return this.setValue(n,!1,!0),this._trigger(`slideStop`,n),this._state.dragged=null,!1},_setValues:function(e,t){var n=e===0?0:100;this._state.percentage[e]!==n&&(t.data[e]=this._toValue(this._state.percentage[e]),t.data[e]=this._applyPrecision(t.data[e]))},_calculateValue:function(e){var t={};return this.options.range?(t.data=[this.options.min,this.options.max],this._setValues(0,t),this._setValues(1,t),e&&(t.data[0]=this._snapToClosestTick(t.data[0]),t.data[1]=this._snapToClosestTick(t.data[1]))):(t.data=this._toValue(this._state.percentage[0]),t.data=parseFloat(t.data),t.data=this._applyPrecision(t.data),e&&(t.data=this._snapToClosestTick(t.data))),t.data},_snapToClosestTick:function(e){for(var t=[e,1/0],n=0;n<this.options.ticks.length;n++){var r=Math.abs(this.options.ticks[n]-e);r<=t[1]&&(t=[this.options.ticks[n],r])}return t[1]<=this.options.ticks_snap_bounds?t[0]:e},_applyPrecision:function(e){var t=this.options.precision||this._getNumDigitsAfterDecimalPlace(this.options.step);return this._applyToFixedAndParseFloat(e,t)},_getNumDigitsAfterDecimalPlace:function(e){var t=(``+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},_applyToFixedAndParseFloat:function(e,t){var n=e.toFixed(t);return parseFloat(n)},_getPercentage:function(e){this.touchCapable&&(e.type===`touchstart`||e.type===`touchmove`||e.type===`touchend`)&&(e=e.changedTouches[0]);var t=e[this.mousePos]-this._state.offset[this.stylePos];this.stylePos===`right`&&(t=-t);var n=t/this._state.size*100;return n=Math.round(n/this._state.percentage[2])*this._state.percentage[2],this.options.reversed&&(n=100-n),Math.max(0,Math.min(100,n))},_validateInputValue:function(e){if(!isNaN(+e))return+e;if(Array.isArray(e))return this._validateArray(e),e;throw Error(o.formatInvalidInputErrorMsg(e))},_validateArray:function(e){for(var t=0;t<e.length;t++){var n=e[t];if(typeof n!=`number`)throw Error(o.formatInvalidInputErrorMsg(n))}},_setDataVal:function(e){this.element.setAttribute(`data-value`,e),this.element.setAttribute(`value`,e),this.element.value=e},_trigger:function(t,n){n=n||n===0?n:void 0;var r=this.eventToCallbackMap[t];if(r&&r.length)for(var i=0;i<r.length;i++){var a=r[i];a(n)}e&&this._triggerJQueryEvent(t,n)},_triggerJQueryEvent:function(e,t){var n={type:e,value:t};this.$element.trigger(n),this.$sliderElem.trigger(n)},_unbindJQueryEventHandlers:function(){this.$element.off(),this.$sliderElem.off()},_setText:function(e,t){e.textContent===void 0?e.innerText!==void 0&&(e.innerText=t):e.textContent=t},_removeClass:function(e,t){for(var n=t.split(` `),r=e.className,i=0;i<n.length;i++){var a=n[i],o=RegExp(`(?:\\s|^)`+a+`(?:\\s|$)`);r=r.replace(o,` `)}e.className=r.trim()},_addClass:function(e,t){for(var n=t.split(` `),r=e.className,i=0;i<n.length;i++){var a=n[i];RegExp(`(?:\\s|^)`+a+`(?:\\s|$)`).test(r)||(r+=` `+a)}e.className=r.trim()},_offsetLeft:function(e){return e.getBoundingClientRect().left},_offsetRight:function(e){return e.getBoundingClientRect().right},_offsetTop:function(e){for(var t=e.offsetTop;(e=e.offsetParent)&&!isNaN(e.offsetTop);)t+=e.offsetTop,e.tagName!==`BODY`&&(t-=e.scrollTop);return t},_offset:function(e){return{left:this._offsetLeft(e),right:this._offsetRight(e),top:this._offsetTop(e)}},_css:function(t,n,r){if(e)e.style(t,n,r);else{var i=n.replace(/^-ms-/,`ms-`).replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()});t.style[i]=r}},_toValue:function(e){return this.options.scale.toValue.apply(this,[e])},_toPercentage:function(e){return this.options.scale.toPercentage.apply(this,[e])},_setTooltipPosition:function(){var e=[this.tooltip,this.tooltip_min,this.tooltip_max];if(this.options.orientation===`vertical`){var t=this.options.tooltip_position?this.options.tooltip_position:this.options.rtl?`left`:`right`,n=t===`left`?`right`:`left`;e.forEach(function(e){this._addClass(e,t),e.style[n]=`100%`}.bind(this))}else this.options.tooltip_position===`bottom`?e.forEach(function(e){this._addClass(e,`bottom`),e.style.top=`22px`}.bind(this)):e.forEach(function(e){this._addClass(e,`top`),e.style.top=-this.tooltip.outerHeight-14+`px`}.bind(this))},_getClosestTickIndex:function(e){for(var t=Math.abs(e-this.options.ticks[0]),n=0,r=0;r<this.options.ticks.length;++r){var i=Math.abs(e-this.options.ticks[r]);i<t&&(t=i,n=r)}return n},_setTickIndex:function(){this.ticksAreValid&&(this._state.tickIndex=[this.options.ticks.indexOf(this._state.value[0]),this.options.ticks.indexOf(this._state.value[1])])}},e&&e.fn&&(e.fn.slider?(r&&window.console.warn(`bootstrap-slider.js - WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead.`),a=n):(e.bridget(t,i),a=t),e.bridget(n,i),e(function(){e(`input[data-provide=slider]`)[a]()}))})(e),i})}))();var vt=girder.$,yt=girder._,bt=girder.moment,xt=girder.views.View,{getCurrentUser:St}=girder.auth,q=girder.events,J=girder.models.ItemModel,Ct=girder.models.FolderModel,wt=girder.collections.FolderCollection,Tt=girder.models.FileModel,Et=girder.models.UserModel,Dt=girder.models.CollectionModel,{restRequest:Ot}=girder.rest,kt=xt.extend({events:{"change input,select":`_input`,changeColor:`_input`,"click .s-select-file-button":`_selectFile`,"click .s-select-multifile-button":`_selectMultiFile`,"click .s-select-region-button":`_selectRegion`,"click .s-select-region-clear-button":`_clearRegion`,"click .s-select-region-submit-button":`_submitRegionToggle`},initialize(e){this._disableRegionSelect=e.disableRegionSelect===!0,this._rootPath=e.rootPath,this.listenTo(this.model,`change`,this.change),this.listenTo(this.model,`destroy`,this.remove),this.listenTo(this.model,`invalid`,this.invalid),this.listenTo(q,`s:widgetSet:`+this.model.id,e=>{this.model.set(`value`,e)}),this._initModel(e)},_initModel(e){let t=e.setDefaultOutput,n=this.model,r=n.get(`type`),i=n.get(`channel`),a=n.get(`required`);i===`input`&&(n.get(`defaultNameMatch`)||n.get(`defaultPathMatch`))&&this._getDefaultInputResource(n).then(e=>(e&&this.model.set({path:e._path,value:e}),null)),!(!t||!a&&(!this._findReference()||!n.get(`extensions`))||i!==`output`||![`new-file`,`file`,`item`,`directory`,`multi`].includes(r))&&this._getDefaultOutputFolder().then(e=>{if(!e)return null;let r=(n.get(`extensions`)||``).split(`|`)[0],i=n.get(`id`)===`returnparameterfile`?``:`-${n.get(`title`)}`,a=this._findReference();if(a)this.listenTo(a,`change`,()=>{let n=a.get(`value`);if(n&&n.get(`name`)){let a=n.get(`name`);a.includes(`.`)&&(a=a.slice(0,a.lastIndexOf(`.`)));let o=`${a}-${t}${i}-${bt().local().format()}${r}`;this._setValue(e,o)}});else{let n=`${t}${i}-${bt().local().format()}${r}`;this._setValue(e,n)}return null})},_setValue(e,t){this.model.set({path:[e.get(`name`),t],parent:e,value:new J({name:t,folderId:e.id})})},_findReference(){let e=this.model.get(`reference`);return e?this.model.collection.find(t=>t.get(`id`)===e):null},render(e,t){if(this.$(`[data-toggle="tooltip"]`).tooltip(`destroy`),this.$(`.form-group`).removeClass(`has-error`),this.model.isValid(),t&&t.norender)return this;let n=Object.assign({disableRegionSelect:this._disableRegionSelect,previousElement:this.$el},this.model.toJSON());return this.$el.html(this.template()(n)),this.$(`[data-toggle="tooltip"]`).tooltip({container:`body`}),n.datalist&&this.$(`.s-control-item input`).addClass(`has-datalist`),this},change(){q.trigger(`s:widgetChanged:${this.model.get(`type`)}`,this.model),q.trigger(`s:widgetChanged`,this.model),this.render.apply(this,arguments)},remove(){q.trigger(`s:widgetRemoved:${this.model.get(`type`)}`,this.model),q.trigger(`s:widgetRemoved`,this.model),this.$(`.s-control-item[data-type="color"] .input-group`).colorpicker(`destroy`),this.$(`.s-control-item[data-type="range"] input`).slider(`destroy`),this.$el.empty()},invalid(){q.trigger(`s:widgetInvalid:${this.model.get(`type`)}`,this.model),q.trigger(`s:widgetInvalid`,this.model),this.$(`.form-group`).addClass(`has-error`)},_typedef:{range:{template:qe},color:{template:Ee},string:{template:mt},number:{template:mt},integer:{template:mt},boolean:{template:Se},"string-vector":{template:mt},"number-vector":{template:mt},"string-enumeration":{template:je},"number-enumeration":{template:je},file:{template:He},item:{template:He},image:{template:He},multi:{template:He},directory:{template:He},"new-file":{template:He},region:{template:rt}},template(){let e=this.model.get(`type`),t=this._typedef[e];return t===void 0&&(console.warn(`Invalid widget type "`+e+`"`),t={}),t.template||yt.template(``)},_input(e){let t=vt(e.target),n=t.val();t.attr(`type`)===`checkbox`&&(n=t.get(0).checked),this.model.set(`value`,n,{norender:!0})},_selectFile(){this.model.get(`type`)===`multi`&&this.model.get(`value`)&&this.model.set({value:new J({folderId:this.model.get(`value`).get(`folderId`)})});let e=this.model.get(`defaultType`);e&&this.model.set({type:e});let t={el:vt(`#g-dialog-container`),parentView:this,model:this.model,rootPath:this._rootPath,rootSelectorSettings:{pageLimit:1e3}};this.model.get(`value`)?this.getRoot(this.model.get(`value`),t):this.completeInitialization(t)},getRoot(e,t){let n={item:J,folder:Ct,collection:Dt,user:Et},r=`folder`,i=null;if(e.get&&(e.get(`itemId`)?(i=e.get(`itemId`),r=`item`):e.get(`folderId`)?i=e.get(`folderId`):e.get(`parentCollection`)&&(r=e.get(`parentCollection`),i=e.get(`parentId`))),r===`item`){let e=new n[r];e.set({_id:i}).on(`g:fetched`,function(){t.defaultSelectedResource=e,t.highlightItem=!0,t.selectItem=!0,this.getRoot(e,t)},this).on(`g:error`,function(){t.root=null,this.completeInitialization(t)},this).fetch()}else if(n[r]&&i){let e=new n[r];e.set({_id:i}).on(`g:fetched`,function(){t.root=e,t.rootSelectorSettings.selectByResource=e,this.completeInitialization(t)},this).on(`g:error`,function(){t.root=null,this.completeInitialization(t)},this).fetch()}else this.completeInitialization(t)},completeInitialization(e){let t=new ye(e);t.once(`g:saved`,()=>{this.model.unset(`revertType`),t.$el.modal(`hide`)}).render(),t.$el.on(`hidden.bs.modal`,()=>{this.model.get(`revertType`)&&(this.model.set(`type`,this.model.get(`revertType`)),this.model.unset(`revertType`))})},_selectMultiFile(){let e=this.model.get(`type`);e!==`multi`&&this.model.set({type:`multi`,defaultType:e,revertType:e});let t={el:vt(`#g-dialog-container`),parentView:this,model:this.model,rootPath:this._rootPath,rootSelectorSettings:{pageLimit:1e3}};this.model.get(`value`)?this.getRoot(this.model.get(`value`),t):this.completeInitialization(t)},_getDefaultOutputFolder(){let e=St();if(!e)return vt.Deferred().resolve(null).promise();let t=new wt;return t.fetch({parentId:e.id,parentType:`user`,public:!1,limit:1}).then(()=>t.isEmpty()?t.fetch({parentId:e.id,parentType:`user`,limit:1}):t).then(()=>t.isEmpty()?null:t.at(0))},_getDefaultInputResource(e){var t={image:`item`,item:`item`,file:`file`,directory:`folder`}[e.get(`type`)];return Ot({url:`slicer_cli_web/path_match`,data:{type:t,name:e.get(`defaultNameMatch`),path:e.get(`defaultPathMatch`),relative_path:e.get(`defaultRelativePath`),base_id:e.get(`defaultRelativePath_id`),base_type:e.get(`defaultRelativePath_type`)},error:null}).then(t=>{var n={image:J,item:J,file:Tt,directory:Ct}[e.get(`type`)];let r=new n(t);return r._path=t._path,r})},_selectRegion(e){this.$(`.tooltip[role="tooltip"]`).remove();let t=vt(e.target).closest(`.s-select-region-button`),n=t.closest(`.input-group-btn`).find(`.s-select-region-submit-button`);if(t.hasClass(`active`)){q.trigger(`s:widgetDrawRegionEvent`,{model:this.model,mode:null,add:!1,submitCtrl:n,event:e});return}let r=t.attr(`shape`),i=t.attr(`multi`)===`true`;q.trigger(`s:widgetDrawRegionEvent`,{model:this.model,mode:r,add:i,submitCtrl:n,event:e}),q.trigger(`s:widgetDrawRegion`,this.model)},_clearRegion(e){this.$(`.tooltip[role="tooltip"]`).remove();let t=vt(e.target).closest(`.input-group-btn`).find(`.s-select-region-submit-button`);q.trigger(`s:widgetDrawRegionEvent`,{model:this.model,mode:null,add:!1,submitCtrl:t,event:e}),q.trigger(`s:widgetClearRegion`,this.model)},_submitRegionToggle(e){vt(e.target).attr(`can-toggle`)===`true`&&(vt(e.target).toggleClass(`enabled`),vt(e.target).toggleClass(`active`,vt(e.target).hasClass(`enabled`)))}});function At(e,t,n,r){if(!1===t||t==null||!t&&(e===`class`||e===`style`))return``;if(!0===t)return` `+(r?e:e+`="`+e+`"`);var i=typeof t;return i!==`object`&&i!==`function`||typeof t.toJSON!=`function`||(t=t.toJSON()),typeof t==`string`||(t=JSON.stringify(t),n||t.indexOf(`"`)===-1)?(n&&(t=Ft(t)),` `+e+`="`+t+`"`):` `+e+`='`+t.replace(/'/g,`'`)+`'`}function jt(e,t){var n=``;for(var r in e)if(It.call(e,r)){var i=e[r];if(r===`class`){i=Mt(i),n=At(r,i,!1,t)+n;continue}r===`style`&&(i=zt(i)),n+=At(r,i,!1,t)}return n}function Mt(e,t){return Array.isArray(e)?Nt(e,t):e&&typeof e==`object`?Pt(e):e||``}function Nt(e,t){for(var n,r=``,i=``,a=Array.isArray(t),o=0;o<e.length;o++)(n=Mt(e[o]))&&(a&&t[o]&&(n=Ft(n)),r=r+i+n,i=` `);return r}function Pt(e){var t=``,n=``;for(var r in e)r&&e[r]&&It.call(e,r)&&(t=t+n+r,n=` `);return t}function Ft(e){var t=``+e,n=Y.exec(t);if(!n)return e;var r,i,a,o=``;for(r=n.index,i=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:a=`"`;break;case 38:a=`&`;break;case 60:a=`<`;break;case 62:a=`>`;break;default:continue}i!==r&&(o+=t.substring(i,r)),i=r+1,o+=a}return i===r?o:o+t.substring(i,r)}var It=Object.prototype.hasOwnProperty,Y=/["&<>]/;function Lt(e,t){if(arguments.length===1){for(var n=e[0],r=1;r<e.length;r++)n=Lt(n,e[r]);return n}for(var i in t)if(i===`class`){var a=e[i]||[];e[i]=(Array.isArray(a)?a:[a]).concat(t[i]||[])}else if(i===`style`){var a=zt(e[i]);a=a&&a[a.length-1]!==`;`?a+`;`:a;var o=zt(t[i]);o=o&&o[o.length-1]!==`;`?o+`;`:o,e[i]=a+o}else e[i]=t[i];return e}function Rt(e,t,n,r){if(!(e instanceof Error))throw e;if(!(typeof window>`u`&&t||r))throw e.message+=` on line `+n,e;var i,a,o,s;try{r||=f().readFileSync(t,{encoding:`utf8`}),i=3,a=r.split(`
|
|
65
|
+
</div>`,swatchTemplate:`<i class="colorpicker-swatch"><i class="colorpicker-swatch--inner"></i></i>`};t.default=function(e){u(t,e);function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};c(this,t);var r=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o.default.extend(!0,{},d,n)));return r.element=null,r}return r(t,[{key:`isEnabled`,value:function(){return this.getLength()>0}},{key:`onCreate`,value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`onCreate`,this).call(this,e),this.isEnabled()&&(this.element=(0,o.default)(this.options.barTemplate),this.load(),this.colorpicker.picker.append(this.element))}},{key:`load`,value:function(){var e=this,t=this.colorpicker,n=this.element.find(`.colorpicker-swatches--inner`),r=this.options.namesAsValues===!0&&!Array.isArray(this.colors);n.empty(),o.default.each(this.colors,function(i,a){var s=(0,o.default)(e.options.swatchTemplate).attr(`data-name`,i).attr(`data-value`,a).attr(`title`,r?i+`: `+a:a).on(`mousedown.colorpicker touchstart.colorpicker`,function(e){var n=(0,o.default)(this);t.setValue(r?n.attr(`data-name`):n.attr(`data-value`))});s.find(`.colorpicker-swatch--inner`).css(`background-color`,a),n.append(s)}),n.append((0,o.default)(`<i class="colorpicker-clear"></i>`))}}]),t}(a.default),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t){o(this,e),this.colorpicker=t,this.currentSlider=null,this.mousePointer={left:0,top:0},this.onMove=i.default.proxy(this.defaultOnMove,this)}return r(e,[{key:`defaultOnMove`,value:function(e,t){if(this.currentSlider){var n=this.currentSlider,r=this.colorpicker,i=r.colorHandler,a=i.hasColor()?i.color.getClone():i.getFallbackColor();n.guideStyle.left=t+`px`,n.guideStyle.top=e+`px`,n.callLeft&&a[n.callLeft](t/n.maxLeft),n.callTop&&a[n.callTop](e/n.maxTop),r.setValue(a),r.popupHandler.focus()}}},{key:`bind`,value:function(){var e=this.colorpicker.options.horizontal?this.colorpicker.options.slidersHorz:this.colorpicker.options.sliders,t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n].selector);this.colorpicker.picker.find(t.join(`, `)).on(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.pressed,this))}},{key:`unbind`,value:function(){(0,i.default)(this.colorpicker.picker).off({"mousemove.colorpicker":i.default.proxy(this.moved,this),"touchmove.colorpicker":i.default.proxy(this.moved,this),"mouseup.colorpicker":i.default.proxy(this.released,this),"touchend.colorpicker":i.default.proxy(this.released,this)})}},{key:`pressed`,value:function(e){if(!this.colorpicker.isDisabled()){this.colorpicker.lastEvent.alias=`pressed`,this.colorpicker.lastEvent.e=e,!e.pageX&&!e.pageY&&e.originalEvent&&e.originalEvent.touches&&(e.pageX=e.originalEvent.touches[0].pageX,e.pageY=e.originalEvent.touches[0].pageY);var t=(0,i.default)(e.target).closest(`div`),n=this.colorpicker.options.horizontal?this.colorpicker.options.slidersHorz:this.colorpicker.options.sliders;if(!t.is(`.colorpicker`)){for(var r in this.currentSlider=null,n)if(n.hasOwnProperty(r)){var a=n[r];if(t.is(a.selector)){this.currentSlider=i.default.extend({},a,{name:r});break}else if(a.childSelector!==void 0&&t.is(a.childSelector)){this.currentSlider=i.default.extend({},a,{name:r}),t=t.parent();break}}var o=t.find(`.colorpicker-guide`).get(0);if(!(this.currentSlider===null||o===null)){var s=t.offset();this.currentSlider.guideStyle=o.style,this.currentSlider.left=e.pageX-s.left,this.currentSlider.top=e.pageY-s.top,this.mousePointer={left:e.pageX,top:e.pageY},(0,i.default)(this.colorpicker.picker).on({"mousemove.colorpicker":i.default.proxy(this.moved,this),"touchmove.colorpicker":i.default.proxy(this.moved,this),"mouseup.colorpicker":i.default.proxy(this.released,this),"touchend.colorpicker":i.default.proxy(this.released,this)}).trigger(`mousemove`)}}}}},{key:`moved`,value:function(e){this.colorpicker.lastEvent.alias=`moved`,this.colorpicker.lastEvent.e=e,!e.pageX&&!e.pageY&&e.originalEvent&&e.originalEvent.touches&&(e.pageX=e.originalEvent.touches[0].pageX,e.pageY=e.originalEvent.touches[0].pageY),e.preventDefault();var t=Math.max(0,Math.min(this.currentSlider.maxLeft,this.currentSlider.left+((e.pageX||this.mousePointer.left)-this.mousePointer.left))),n=Math.max(0,Math.min(this.currentSlider.maxTop,this.currentSlider.top+((e.pageY||this.mousePointer.top)-this.mousePointer.top)));this.onMove(n,t)}},{key:`released`,value:function(e){this.colorpicker.lastEvent.alias=`released`,this.colorpicker.lastEvent.e=e,(0,i.default)(this.colorpicker.picker).off({"mousemove.colorpicker":this.moved,"touchmove.colorpicker":this.moved,"mouseup.colorpicker":this.released,"touchend.colorpicker":this.released})}}]),e}(),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=o(n(0)),a=o(n(3));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t,n){s(this,e),this.root=n,this.colorpicker=t,this.popoverTarget=null,this.popoverTip=null,this.clicking=!1,this.hidding=!1,this.showing=!1}return r(e,[{key:`bind`,value:function(){var e=this.colorpicker;if(e.options.inline){e.picker.addClass(`colorpicker-inline colorpicker-visible`);return}e.picker.addClass(`colorpicker-popup colorpicker-hidden`),!(!this.hasInput&&!this.hasAddon)&&(e.options.popover&&this.createPopover(),this.hasAddon&&(this.addon.attr(`tabindex`)||this.addon.attr(`tabindex`,0),this.addon.on({"mousedown.colorpicker touchstart.colorpicker":i.default.proxy(this.toggle,this)}),this.addon.on({"focus.colorpicker":i.default.proxy(this.show,this)}),this.addon.on({"focusout.colorpicker":i.default.proxy(this.hide,this)})),this.hasInput&&!this.hasAddon&&(this.input.on({"mousedown.colorpicker touchstart.colorpicker":i.default.proxy(this.show,this),"focus.colorpicker":i.default.proxy(this.show,this)}),this.input.on({"focusout.colorpicker":i.default.proxy(this.hide,this)})),(0,i.default)(this.root).on(`resize.colorpicker`,i.default.proxy(this.reposition,this)))}},{key:`unbind`,value:function(){this.hasInput&&(this.input.off({"mousedown.colorpicker touchstart.colorpicker":i.default.proxy(this.show,this),"focus.colorpicker":i.default.proxy(this.show,this)}),this.input.off({"focusout.colorpicker":i.default.proxy(this.hide,this)})),this.hasAddon&&(this.addon.off({"mousedown.colorpicker touchstart.colorpicker":i.default.proxy(this.toggle,this)}),this.addon.off({"focus.colorpicker":i.default.proxy(this.show,this)}),this.addon.off({"focusout.colorpicker":i.default.proxy(this.hide,this)})),this.popoverTarget&&this.popoverTarget.popover(`dispose`),(0,i.default)(this.root).off(`resize.colorpicker`,i.default.proxy(this.reposition,this)),(0,i.default)(this.root.document).off(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.hide,this)),(0,i.default)(this.root.document).off(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.onClickingInside,this))}},{key:`isClickingInside`,value:function(e){return e?this.isOrIsInside(this.popoverTip,e.currentTarget)||this.isOrIsInside(this.popoverTip,e.target)||this.isOrIsInside(this.colorpicker.picker,e.currentTarget)||this.isOrIsInside(this.colorpicker.picker,e.target):!1}},{key:`isOrIsInside`,value:function(e,t){return!e||!t?!1:(t=(0,i.default)(t),t.is(e)||e.find(t).length>0)}},{key:`onClickingInside`,value:function(e){this.clicking=this.isClickingInside(e)}},{key:`createPopover`,value:function(){var e=this.colorpicker;this.popoverTarget=this.hasAddon?this.addon:this.input,e.picker.addClass(`colorpicker-bs-popover-content`),this.popoverTarget.popover(i.default.extend(!0,{},a.default.popover,e.options.popover,{trigger:`manual`,content:e.picker,html:!0}));var t=window.bootstrap&&window.bootstrap.Popover&&window.bootstrap.Popover.getInstance;this.popoverTip=t?(0,i.default)(bootstrap.Popover.getInstance(this.popoverTarget[0]).getTipElement()):(0,i.default)(this.popoverTarget.popover(`getTipElement`).data(`bs.popover`).tip),this.popoverTip.addClass(`colorpicker-bs-popover`),this.popoverTarget.on(`shown.bs.popover`,i.default.proxy(this.fireShow,this)),this.popoverTarget.on(`hidden.bs.popover`,i.default.proxy(this.fireHide,this))}},{key:`reposition`,value:function(e){this.popoverTarget&&this.isVisible()&&this.popoverTarget.popover(`update`)}},{key:`toggle`,value:function(e){this.isVisible()?this.hide(e):this.show(e)}},{key:`show`,value:function(e){if(!(this.isVisible()||this.showing||this.hidding)){this.showing=!0,this.hidding=!1,this.clicking=!1;var t=this.colorpicker;t.lastEvent.alias=`show`,t.lastEvent.e=e,e&&(!this.hasInput||this.input.attr(`type`)===`color`)&&e&&e.preventDefault&&(e.stopPropagation(),e.preventDefault()),this.isPopover&&(0,i.default)(this.root).on(`resize.colorpicker`,i.default.proxy(this.reposition,this)),t.picker.addClass(`colorpicker-visible`).removeClass(`colorpicker-hidden`),this.popoverTarget?this.popoverTarget.popover(`show`):this.fireShow()}}},{key:`fireShow`,value:function(){this.hidding=!1,this.showing=!1,this.isPopover&&((0,i.default)(this.root.document).on(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.hide,this)),(0,i.default)(this.root.document).on(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.onClickingInside,this))),this.colorpicker.trigger(`colorpickerShow`)}},{key:`hide`,value:function(e){if(!(this.isHidden()||this.showing||this.hidding)){var t=this.colorpicker,n=this.clicking||this.isClickingInside(e);if(this.hidding=!0,this.showing=!1,this.clicking=!1,t.lastEvent.alias=`hide`,t.lastEvent.e=e,n){this.hidding=!1;return}this.popoverTarget?this.popoverTarget.popover(`hide`):this.fireHide()}}},{key:`fireHide`,value:function(){this.hidding=!1,this.showing=!1;var e=this.colorpicker;e.picker.addClass(`colorpicker-hidden`).removeClass(`colorpicker-visible`),(0,i.default)(this.root).off(`resize.colorpicker`,i.default.proxy(this.reposition,this)),(0,i.default)(this.root.document).off(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.hide,this)),(0,i.default)(this.root.document).off(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.onClickingInside,this)),e.trigger(`colorpickerHide`)}},{key:`focus`,value:function(){return this.hasAddon?this.addon.focus():this.hasInput?this.input.focus():!1}},{key:`isVisible`,value:function(){return this.colorpicker.picker.hasClass(`colorpicker-visible`)&&!this.colorpicker.picker.hasClass(`colorpicker-hidden`)}},{key:`isHidden`,value:function(){return this.colorpicker.picker.hasClass(`colorpicker-hidden`)&&!this.colorpicker.picker.hasClass(`colorpicker-visible`)}},{key:`input`,get:function(){return this.colorpicker.inputHandler.input}},{key:`hasInput`,get:function(){return this.colorpicker.inputHandler.hasInput()}},{key:`addon`,get:function(){return this.colorpicker.addonHandler.addon}},{key:`hasAddon`,get:function(){return this.colorpicker.addonHandler.hasAddon()}},{key:`isPopover`,get:function(){return!this.colorpicker.options.inline&&!!this.popoverTip}}]),e}(),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=o(n(0)),a=o(n(2));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t){s(this,e),this.colorpicker=t,this.input=this.colorpicker.element.is(`input`)?this.colorpicker.element:this.colorpicker.options.input?this.colorpicker.element.find(this.colorpicker.options.input):!1,this.input&&this.input.length===0&&(this.input=!1),this._initValue()}return r(e,[{key:`bind`,value:function(){this.hasInput()&&(this.input.on({"keyup.colorpicker":i.default.proxy(this.onkeyup,this)}),this.input.on({"change.colorpicker":i.default.proxy(this.onchange,this)}))}},{key:`unbind`,value:function(){this.hasInput()&&this.input.off(`.colorpicker`)}},{key:`_initValue`,value:function(){if(this.hasInput()){var e=``;[this.input.val(),this.input.data(`color`),this.input.attr(`data-color`)].map(function(t){t&&e===``&&(e=t)}),e instanceof a.default?e=this.getFormattedColor(e.string(this.colorpicker.format)):typeof e==`string`||e instanceof String||(e=``),this.input.prop(`value`,e)}}},{key:`getValue`,value:function(){return this.hasInput()?this.input.val():!1}},{key:`setValue`,value:function(e){if(this.hasInput()){var t=this.input.prop(`value`);e||=``,e!==(t||``)&&(this.input.prop(`value`,e),this.input.trigger({type:`change`,colorpicker:this.colorpicker,color:this.colorpicker.color,value:e}))}}},{key:`getFormattedColor`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return e||=this.colorpicker.colorHandler.getColorString(),e?(e=this.colorpicker.colorHandler.resolveColorDelegate(e,!1),this.colorpicker.options.useHashPrefix===!1&&(e=e.replace(/^#/g,``)),e):``}},{key:`hasInput`,value:function(){return this.input!==!1}},{key:`isEnabled`,value:function(){return this.hasInput()&&!this.isDisabled()}},{key:`isDisabled`,value:function(){return this.hasInput()&&this.input.prop(`disabled`)===!0}},{key:`disable`,value:function(){this.hasInput()&&this.input.prop(`disabled`,!0)}},{key:`enable`,value:function(){this.hasInput()&&this.input.prop(`disabled`,!1)}},{key:`update`,value:function(){this.hasInput()&&(this.colorpicker.options.autoInputFallback===!1&&this.colorpicker.colorHandler.isInvalidColor()||this.setValue(this.getFormattedColor()))}},{key:`onchange`,value:function(e){this.colorpicker.lastEvent.alias=`input.change`,this.colorpicker.lastEvent.e=e;var t=this.getValue();t!==e.value&&this.colorpicker.setValue(t)}},{key:`onkeyup`,value:function(e){this.colorpicker.lastEvent.alias=`input.keyup`,this.colorpicker.lastEvent.e=e;var t=this.getValue();t!==e.value&&this.colorpicker.setValue(t)}}]),e}(),e.exports=t.default}),(function(e,t,n){"use strict";var r=n(17),i=n(20),a=[].slice,o=[`keyword`,`gray`,`hex`],s={};Object.keys(i).forEach(function(e){s[a.call(i[e].labels).sort().join(``)]=e});var c={};function l(e,t){if(!(this instanceof l))return new l(e,t);if(t&&t in o&&(t=null),t&&!(t in i))throw Error(`Unknown model: `+t);var n,u;if(e==null)this.model=`rgb`,this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if(typeof e==`string`){var d=r.get(e);if(d===null)throw Error(`Unable to parse color from string: `+e);this.model=d.model,u=i[this.model].channels,this.color=d.value.slice(0,u),this.valpha=typeof d.value[u]==`number`?d.value[u]:1}else if(e.length){this.model=t||`rgb`,u=i[this.model].channels;var f=a.call(e,0,u);this.color=h(f,u),this.valpha=typeof e[u]==`number`?e[u]:1}else if(typeof e==`number`)e&=16777215,this.model=`rgb`,this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;var p=Object.keys(e);`alpha`in e&&(p.splice(p.indexOf(`alpha`),1),this.valpha=typeof e.alpha==`number`?e.alpha:0);var m=p.sort().join(``);if(!(m in s))throw Error(`Unable to parse color from object: `+JSON.stringify(e));this.model=s[m];var g=i[this.model].labels,_=[];for(n=0;n<g.length;n++)_.push(e[g[n]]);this.color=h(_)}if(c[this.model])for(u=i[this.model].channels,n=0;n<u;n++){var v=c[this.model][n];v&&(this.color[n]=v(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}l.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var t=this.model in r.to?this:this.rgb();t=t.round(typeof e==`number`?e:1);var n=t.valpha===1?t.color:t.color.concat(this.valpha);return r.to[t.model](n)},percentString:function(e){var t=this.rgb().round(typeof e==`number`?e:1),n=t.valpha===1?t.color:t.color.concat(this.valpha);return r.to.rgb.percent(n)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},t=i[this.model].channels,n=i[this.model].labels,r=0;r<t;r++)e[n[r]]=this.color[r];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new l(this.color.map(d(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new l(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:f(`rgb`,0,p(255)),green:f(`rgb`,1,p(255)),blue:f(`rgb`,2,p(255)),hue:f([`hsl`,`hsv`,`hsl`,`hwb`,`hcg`],0,function(e){return(e%360+360)%360}),saturationl:f(`hsl`,1,p(100)),lightness:f(`hsl`,2,p(100)),saturationv:f(`hsv`,1,p(100)),value:f(`hsv`,2,p(100)),chroma:f(`hcg`,1,p(100)),gray:f(`hcg`,2,p(100)),white:f(`hwb`,1,p(100)),wblack:f(`hwb`,2,p(100)),cyan:f(`cmyk`,0,p(100)),magenta:f(`cmyk`,1,p(100)),yellow:f(`cmyk`,2,p(100)),black:f(`cmyk`,3,p(100)),x:f(`xyz`,0,p(100)),y:f(`xyz`,1,p(100)),z:f(`xyz`,2,p(100)),l:f(`lab`,0,p(100)),a:f(`lab`,1),b:f(`lab`,2),keyword:function(e){return arguments.length?new l(e):i[this.model].keyword(this.color)},hex:function(e){return arguments.length?new l(e):r.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity:function(){for(var e=this.rgb().color,t=[],n=0;n<e.length;n++){var r=e[n]/255;t[n]=r<=.03928?r/12.92:((r+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?`AAA`:t>=4.5?`AA`:``},isDark:function(){var e=this.rgb().color;return(e[0]*299+e[1]*587+e[2]*114)/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return l.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix:function(e,t){if(!e||!e.rgb)throw Error(`Argument to "mix" was not a Color instance, but rather an instance of `+typeof e);var n=e.rgb(),r=this.rgb(),i=t===void 0?.5:t,a=2*i-1,o=n.alpha()-r.alpha(),s=((a*o===-1?a:(a+o)/(1+a*o))+1)/2,c=1-s;return l.rgb(s*n.red()+c*r.red(),s*n.green()+c*r.green(),s*n.blue()+c*r.blue(),n.alpha()*i+r.alpha()*(1-i))}},Object.keys(i).forEach(function(e){if(o.indexOf(e)===-1){var t=i[e].channels;l.prototype[e]=function(){if(this.model===e)return new l(this);if(arguments.length)return new l(arguments,e);var n=typeof arguments[t]==`number`?t:this.valpha;return new l(m(i[this.model][e].raw(this.color)).concat(n),e)},l[e]=function(n){return typeof n==`number`&&(n=h(a.call(arguments),t)),new l(n,e)}}});function u(e,t){return Number(e.toFixed(t))}function d(e){return function(t){return u(t,e)}}function f(e,t,n){return e=Array.isArray(e)?e:[e],e.forEach(function(e){(c[e]||(c[e]=[]))[t]=n}),e=e[0],function(r){var i;return arguments.length?(n&&(r=n(r)),i=this[e](),i.color[t]=r,i):(i=this[e]().color[t],n&&(i=n(i)),i)}}function p(e){return function(t){return Math.max(0,Math.min(e,t))}}function m(e){return Array.isArray(e)?e:[e]}function h(e,t){for(var n=0;n<t;n++)typeof e[n]!=`number`&&(e[n]=0);return e}e.exports=l}),(function(e,t,n){var r=n(5),i=n(18),a={};for(var o in r)r.hasOwnProperty(o)&&(a[r[o]]=o);var s=e.exports={to:{},get:{}};s.get=function(e){var t=e.substring(0,3).toLowerCase(),n,r;switch(t){case`hsl`:n=s.get.hsl(e),r=`hsl`;break;case`hwb`:n=s.get.hwb(e),r=`hwb`;break;default:n=s.get.rgb(e),r=`rgb`;break}return n?{model:r,value:n}:null},s.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,i=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,o=/(\D+)/,s=[0,0,0,1],l,u,d;if(l=e.match(n)){for(d=l[2],l=l[1],u=0;u<3;u++){var f=u*2;s[u]=parseInt(l.slice(f,f+2),16)}d&&(s[3]=Math.round(parseInt(d,16)/255*100)/100)}else if(l=e.match(t)){for(l=l[1],d=l[3],u=0;u<3;u++)s[u]=parseInt(l[u]+l[u],16);d&&(s[3]=Math.round(parseInt(d+d,16)/255*100)/100)}else if(l=e.match(i)){for(u=0;u<3;u++)s[u]=parseInt(l[u+1],0);l[4]&&(s[3]=parseFloat(l[4]))}else if(l=e.match(a)){for(u=0;u<3;u++)s[u]=Math.round(parseFloat(l[u+1])*2.55);l[4]&&(s[3]=parseFloat(l[4]))}else if(l=e.match(o))return l[1]===`transparent`?[0,0,0,0]:(s=r[l[1]],s?(s[3]=1,s):null);else return null;for(u=0;u<3;u++)s[u]=c(s[u],0,255);return s[3]=c(s[3],0,1),s},s.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},s.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},s.to.hex=function(){var e=i(arguments);return`#`+l(e[0])+l(e[1])+l(e[2])+(e[3]<1?l(Math.round(e[3]*255)):``)},s.to.rgb=function(){var e=i(arguments);return e.length<4||e[3]===1?`rgb(`+Math.round(e[0])+`, `+Math.round(e[1])+`, `+Math.round(e[2])+`)`:`rgba(`+Math.round(e[0])+`, `+Math.round(e[1])+`, `+Math.round(e[2])+`, `+e[3]+`)`},s.to.rgb.percent=function(){var e=i(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||e[3]===1?`rgb(`+t+`%, `+n+`%, `+r+`%)`:`rgba(`+t+`%, `+n+`%, `+r+`%, `+e[3]+`)`},s.to.hsl=function(){var e=i(arguments);return e.length<4||e[3]===1?`hsl(`+e[0]+`, `+e[1]+`%, `+e[2]+`%)`:`hsla(`+e[0]+`, `+e[1]+`%, `+e[2]+`%, `+e[3]+`)`},s.to.hwb=function(){var e=i(arguments),t=``;return e.length>=4&&e[3]!==1&&(t=`, `+e[3]),`hwb(`+e[0]+`, `+e[1]+`%, `+e[2]+`%`+t+`)`},s.to.keyword=function(e){return a[e.slice(0,3)]};function c(e,t,n){return Math.min(Math.max(t,e),n)}function l(e){var t=e.toString(16).toUpperCase();return t.length<2?`0`+t:t}}),(function(e,t,n){"use strict";var r=n(19),i=Array.prototype.concat,a=Array.prototype.slice,o=e.exports=function(e){for(var t=[],n=0,o=e.length;n<o;n++){var s=e[n];r(s)?t=i.call(t,a.call(s)):t.push(s)}return t};o.wrap=function(e){return function(){return e(o(arguments))}}}),(function(e,t,n){"use strict";e.exports=function(e){return e?e instanceof Array||Array.isArray(e)||e.length>=0&&e.splice instanceof Function:!1}}),(function(e,t,n){var r=n(6),i=n(21),a={},o=Object.keys(r);function s(e){var t=function(t){return t==null?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return`conversion`in e&&(t.conversion=e.conversion),t}function c(e){var t=function(t){if(t==null)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if(typeof n==`object`)for(var r=n.length,i=0;i<r;i++)n[i]=Math.round(n[i]);return n};return`conversion`in e&&(t.conversion=e.conversion),t}o.forEach(function(e){a[e]={},Object.defineProperty(a[e],"channels",{value:r[e].channels}),Object.defineProperty(a[e],"labels",{value:r[e].labels});var t=i(e);Object.keys(t).forEach(function(n){var r=t[n];a[e][n]=c(r),a[e][n].raw=s(r)})}),e.exports=a}),(function(e,t,n){var r=n(6);function i(){for(var e={},t=Object.keys(r),n=t.length,i=0;i<n;i++)e[t[i]]={distance:-1,parent:null};return e}function a(e){var t=i(),n=[e];for(t[e].distance=0;n.length;)for(var a=n.pop(),o=Object.keys(r[a]),s=o.length,c=0;c<s;c++){var l=o[c],u=t[l];u.distance===-1&&(u.distance=t[a].distance+1,u.parent=a,n.unshift(l))}return t}function o(e,t){return function(n){return t(e(n))}}function s(e,t){for(var n=[t[e].parent,e],i=r[t[e].parent][e],a=t[e].parent;t[a].parent;)n.unshift(t[a].parent),i=o(r[t[a].parent][a],i),a=t[a].parent;return i.conversion=n,i}e.exports=function(e){for(var t=a(e),n={},r=Object.keys(t),i=r.length,o=0;o<i;o++){var c=r[o];t[c].parent!==null&&(n[c]=s(c,t))}return n}}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=o(n(0)),a=o(n(2));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t){s(this,e),this.colorpicker=t}return r(e,[{key:`bind`,value:function(){if(this.colorpicker.options.color){this.color=this.createColor(this.colorpicker.options.color);return}!this.color&&this.colorpicker.inputHandler.getValue()&&(this.color=this.createColor(this.colorpicker.inputHandler.getValue(),this.colorpicker.options.autoInputFallback))}},{key:`unbind`,value:function(){this.colorpicker.element.removeData(`color`)}},{key:`getColorString`,value:function(){return this.hasColor()?this.color.string(this.format):``}},{key:`setColorString`,value:function(e){var t=e?this.createColor(e):null;this.color=t||null}},{key:`createColor`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=!t&&!n,i=new a.default(this.resolveColorDelegate(e),this.format,r);return i.isValid()||(t&&(i=this.getFallbackColor()),this.colorpicker.trigger(`colorpickerInvalid`,i,e)),this.isAlphaEnabled()||(i.alpha=1),i}},{key:`getFallbackColor`,value:function(){if(this.fallback&&this.fallback===this.color)return this.color;var e=this.resolveColorDelegate(this.fallback),t=new a.default(e,this.format);return t.isValid()?t:(console.warn(`The fallback color is invalid. Falling back to the previous color or black if any.`),this.color?this.color:new a.default(`#000000`,this.format))}},{key:`assureColor`,value:function(){return this.hasColor()||(this.color=this.getFallbackColor()),this.color}},{key:`resolveColorDelegate`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=!1;return i.default.each(this.colorpicker.extensions,function(r,i){n===!1&&(n=i.resolveColor(e,t))}),n||e}},{key:`isInvalidColor`,value:function(){return!this.hasColor()||!this.color.isValid()}},{key:`isAlphaEnabled`,value:function(){return this.colorpicker.options.useAlpha!==!1}},{key:`hasColor`,value:function(){return this.color instanceof a.default}},{key:`fallback`,get:function(){return this.colorpicker.options.fallbackColor?this.colorpicker.options.fallbackColor:this.hasColor()?this.color:null}},{key:`format`,get:function(){return this.colorpicker.options.format?this.colorpicker.options.format:this.hasColor()&&this.color.hasTransparency()&&this.color.format.match(/^hex/)?this.isAlphaEnabled()?`rgba`:`hex`:this.hasColor()?this.color.format:`rgb`}},{key:`color`,get:function(){return this.colorpicker.element.data(`color`)},set:function(e){this.colorpicker.element.data(`color`,e),e instanceof a.default&&this.colorpicker.options.format===`auto`&&(this.colorpicker.options.format=this.color.format)}}]),e}(),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t){o(this,e),this.colorpicker=t,this.picker=null}return r(e,[{key:`bind`,value:function(){var e=this.picker=(0,i.default)(this.options.template);this.options.customClass&&e.addClass(this.options.customClass),this.options.horizontal&&e.addClass(`colorpicker-horizontal`),this._supportsAlphaBar()?(this.options.useAlpha=!0,e.addClass(`colorpicker-with-alpha`)):this.options.useAlpha=!1}},{key:`attach`,value:function(){var e=this.colorpicker.container?this.colorpicker.container:null;e&&this.picker.appendTo(e)}},{key:`unbind`,value:function(){this.picker.remove()}},{key:`_supportsAlphaBar`,value:function(){return(this.options.useAlpha||this.colorpicker.colorHandler.hasColor()&&this.color.hasTransparency())&&this.options.useAlpha!==!1&&(!this.options.format||this.options.format&&!this.options.format.match(/^hex([36])?$/i))}},{key:`update`,value:function(){if(this.colorpicker.colorHandler.hasColor()){var e=this.options.horizontal!==!0,t=e?this.options.sliders:this.options.slidersHorz,n=this.picker.find(`.colorpicker-saturation .colorpicker-guide`),r=this.picker.find(`.colorpicker-hue .colorpicker-guide`),i=this.picker.find(`.colorpicker-alpha .colorpicker-guide`),a=this.color.toHsvaRatio();r.length&&r.css(e?`top`:`left`,(e?t.hue.maxTop:t.hue.maxLeft)*(1-a.h)),i.length&&i.css(e?`top`:`left`,(e?t.alpha.maxTop:t.alpha.maxLeft)*(1-a.a)),n.length&&n.css({top:t.saturation.maxTop-a.v*t.saturation.maxTop,left:a.s*t.saturation.maxLeft}),this.picker.find(`.colorpicker-saturation`).css(`backgroundColor`,this.color.getCloneHueOnly().toHexString());var o=this.color.toHexString(),s=``;s=this.options.horizontal?`linear-gradient(to right, `+o+` 0%, transparent 100%)`:`linear-gradient(to bottom, `+o+` 0%, transparent 100%)`,this.picker.find(`.colorpicker-alpha-color`).css(`background`,s)}}},{key:`options`,get:function(){return this.colorpicker.options}},{key:`color`,get:function(){return this.colorpicker.colorHandler.color}}]),e}(),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t){i(this,e),this.colorpicker=t,this.addon=null}return r(e,[{key:`hasAddon`,value:function(){return!!this.addon}},{key:`bind`,value:function(){this.addon=this.colorpicker.options.addon?this.colorpicker.element.find(this.colorpicker.options.addon):null,this.addon&&this.addon.length===0&&(this.addon=null)}},{key:`unbind`,value:function(){this.hasAddon()&&this.addon.off(`.colorpicker`)}},{key:`update`,value:function(){if(!(!this.colorpicker.colorHandler.hasColor()||!this.hasAddon())){var e={background:this.colorpicker.colorHandler.getColorString()},t=this.addon.find(`i`).eq(0);t.length>0?t.css(e):this.addon.css(e)}}}]),e}(),e.exports=t.default})])})}))(),s(((e,t)=>{var n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r=(typeof window>`u`?`undefined`:n(window))===`object`;(function(e){if(typeof define==`function`&&define.amd)define([`jquery`],e);else if((t===void 0?`undefined`:n(t))===`object`&&t.exports){var r;try{r=K()}catch{r=null}t.exports=e(r)}else window&&(window.Slider=e(window.jQuery))})(function(e){var t=`slider`,n=`bootstrapSlider`;r&&!window.console&&(window.console={}),r&&!window.console.log&&(window.console.log=function(){}),r&&!window.console.warn&&(window.console.warn=function(){});var i;return(function(e){"use strict";var t=Array.prototype.slice;function n(){}function r(e){if(!e)return;function r(t){t.prototype.option||(t.prototype.option=function(t){e.isPlainObject(t)&&(this.options=e.extend(!0,this.options,t))})}var i=typeof console>`u`?n:function(e){console.error(e)};function a(n,r){e.fn[n]=function(a){if(typeof a==`string`){for(var o=t.call(arguments,1),s=0,c=this.length;s<c;s++){var l=this[s],u=e.data(l,n);if(!u){i(`cannot call methods on `+n+` prior to initialization; attempted to call '`+a+`'`);continue}if(!e.isFunction(u[a])||a.charAt(0)===`_`){i(`no such method '`+a+`' for `+n+` instance`);continue}var d=u[a].apply(u,o);if(d!==void 0&&d!==u)return d}return this}else{var f=this.map(function(){var t=e.data(this,n);return t?(t.option(a),t._init()):(t=new r(this,a),e.data(this,n,t)),e(this)});return f.length===1?f[0]:f}}}return e.bridget=function(e,t){r(t),a(e,t)},e.bridget}r(e)})(e),(function(e){var a=void 0,o={formatInvalidInputErrorMsg:function(e){return`Invalid input value '`+e+`' passed in`},callingContextNotSliderInstance:`Calling context element does not have instance of Slider bound to it. Check your code to make sure the JQuery object returned from the call to the slider() initializer is calling the method`},s={linear:{getValue:function(e,t){return e<t.min?t.min:e>t.max?t.max:e},toValue:function(e){var t=e/100*(this.options.max-this.options.min),n=!0;if(this.options.ticks_positions.length>0){for(var r,i,a,o=0,c=1;c<this.options.ticks_positions.length;c++)if(e<=this.options.ticks_positions[c]){r=this.options.ticks[c-1],a=this.options.ticks_positions[c-1],i=this.options.ticks[c],o=this.options.ticks_positions[c];break}var l=(e-a)/(o-a);t=r+l*(i-r),n=!1}var u=(n?this.options.min:0)+Math.round(t/this.options.step)*this.options.step;return s.linear.getValue(u,this.options)},toPercentage:function(e){if(this.options.max===this.options.min)return 0;if(this.options.ticks_positions.length>0){for(var t,n,r,i=0,a=0;a<this.options.ticks.length;a++)if(e<=this.options.ticks[a]){t=a>0?this.options.ticks[a-1]:0,r=a>0?this.options.ticks_positions[a-1]:0,n=this.options.ticks[a],i=this.options.ticks_positions[a];break}if(a>0){var o=(e-t)/(n-t);return r+o*(i-r)}}return 100*(e-this.options.min)/(this.options.max-this.options.min)}},logarithmic:{toValue:function(e){var t=1-this.options.min,n=Math.log(this.options.min+t),r=Math.log(this.options.max+t),i=Math.exp(n+(r-n)*e/100)-t;return Math.round(i)===r?r:(i=this.options.min+Math.round((i-this.options.min)/this.options.step)*this.options.step,s.linear.getValue(i,this.options))},toPercentage:function(e){if(this.options.max===this.options.min)return 0;var t=1-this.options.min,n=Math.log(this.options.max+t),r=Math.log(this.options.min+t);return 100*(Math.log(e+t)-r)/(n-r)}}};i=function(e,t){return c.call(this,e,t),this};function c(t,n){this._state={value:null,enabled:null,offset:null,size:null,percentage:null,inDrag:!1,over:!1,tickIndex:null},this.ticksCallbackMap={},this.handleCallbackMap={},typeof t==`string`?this.element=document.querySelector(t):t instanceof HTMLElement&&(this.element=t),n||={};for(var r=Object.keys(this.defaultOptions),i=n.hasOwnProperty(`min`),a=n.hasOwnProperty(`max`),o=0;o<r.length;o++){var c=r[o],l=n[c];l=l===void 0?d(this.element,c):l,l=l===null?this.defaultOptions[c]:l,this.options||={},this.options[c]=l}if(this.ticksAreValid=Array.isArray(this.options.ticks)&&this.options.ticks.length>0,this.ticksAreValid||(this.options.lock_to_ticks=!1),this.options.rtl===`auto`){var u=window.getComputedStyle(this.element);u==null?this.options.rtl=this.element.style.direction===`rtl`:this.options.rtl=u.direction===`rtl`}this.options.orientation===`vertical`&&(this.options.tooltip_position===`top`||this.options.tooltip_position===`bottom`)?this.options.rtl?this.options.tooltip_position=`left`:this.options.tooltip_position=`right`:this.options.orientation===`horizontal`&&(this.options.tooltip_position===`left`||this.options.tooltip_position===`right`)&&(this.options.tooltip_position=`top`);function d(e,t){var n=`data-slider-`+t.replace(/_/g,`-`),r=e.getAttribute(n);try{return JSON.parse(r)}catch{return r}}var f=this.element.style.width,p=!1,m=this.element.parentNode,h,g,_,v,y;if(this.sliderElem)p=!0;else{this.sliderElem=document.createElement(`div`),this.sliderElem.className=`slider`;var b=document.createElement(`div`);b.className=`slider-track`,g=document.createElement(`div`),g.className=`slider-track-low`,h=document.createElement(`div`),h.className=`slider-selection`,_=document.createElement(`div`),_.className=`slider-track-high`,v=document.createElement(`div`),v.className=`slider-handle min-slider-handle`,v.setAttribute(`role`,`slider`),v.setAttribute(`aria-valuemin`,this.options.min),v.setAttribute(`aria-valuemax`,this.options.max),y=document.createElement(`div`),y.className=`slider-handle max-slider-handle`,y.setAttribute(`role`,`slider`),y.setAttribute(`aria-valuemin`,this.options.min),y.setAttribute(`aria-valuemax`,this.options.max),b.appendChild(g),b.appendChild(h),b.appendChild(_),this.rangeHighlightElements=[];var x=this.options.rangeHighlights;if(Array.isArray(x)&&x.length>0)for(var S=0;S<x.length;S++){var C=document.createElement(`div`);C.className=`slider-rangeHighlight slider-selection `+(x[S].class||``),this.rangeHighlightElements.push(C),b.appendChild(C)}var w=Array.isArray(this.options.labelledby);if(w&&this.options.labelledby[0]&&v.setAttribute(`aria-labelledby`,this.options.labelledby[0]),w&&this.options.labelledby[1]&&y.setAttribute(`aria-labelledby`,this.options.labelledby[1]),!w&&this.options.labelledby&&(v.setAttribute(`aria-labelledby`,this.options.labelledby),y.setAttribute(`aria-labelledby`,this.options.labelledby)),this.ticks=[],Array.isArray(this.options.ticks)&&this.options.ticks.length>0){for(this.ticksContainer=document.createElement(`div`),this.ticksContainer.className=`slider-tick-container`,o=0;o<this.options.ticks.length;o++){var T=document.createElement(`div`);if(T.className=`slider-tick`,this.options.ticks_tooltip){var E=this._addTickListener(),D=E.addMouseEnter(this,T,o),ee=E.addMouseLeave(this,T);this.ticksCallbackMap[o]={mouseEnter:D,mouseLeave:ee}}this.ticks.push(T),this.ticksContainer.appendChild(T)}h.className+=` tick-slider-selection`}if(this.tickLabels=[],Array.isArray(this.options.ticks_labels)&&this.options.ticks_labels.length>0)for(this.tickLabelContainer=document.createElement(`div`),this.tickLabelContainer.className=`slider-tick-label-container`,o=0;o<this.options.ticks_labels.length;o++){var O=document.createElement(`div`),te=this.options.ticks_positions.length===0,ne=this.options.reversed&&te?this.options.ticks_labels.length-(o+1):o;O.className=`slider-tick-label`,O.innerHTML=this.options.ticks_labels[ne],this.tickLabels.push(O),this.tickLabelContainer.appendChild(O)}var k=function(e){var t=document.createElement(`div`);t.className=`tooltip-arrow`;var n=document.createElement(`div`);n.className=`tooltip-inner`,e.appendChild(t),e.appendChild(n)},A=document.createElement(`div`);A.className=`tooltip tooltip-main`,A.setAttribute(`role`,`presentation`),k(A);var re=document.createElement(`div`);re.className=`tooltip tooltip-min`,re.setAttribute(`role`,`presentation`),k(re);var j=document.createElement(`div`);j.className=`tooltip tooltip-max`,j.setAttribute(`role`,`presentation`),k(j),this.sliderElem.appendChild(b),this.sliderElem.appendChild(A),this.sliderElem.appendChild(re),this.sliderElem.appendChild(j),this.tickLabelContainer&&this.sliderElem.appendChild(this.tickLabelContainer),this.ticksContainer&&this.sliderElem.appendChild(this.ticksContainer),this.sliderElem.appendChild(v),this.sliderElem.appendChild(y),m.insertBefore(this.sliderElem,this.element),this.element.style.display=`none`}if(e&&(this.$element=e(this.element),this.$sliderElem=e(this.sliderElem)),this.eventToCallbackMap={},this.sliderElem.id=this.options.id,this.touchCapable=`ontouchstart`in window||window.DocumentTouch&&document instanceof window.DocumentTouch,this.touchX=0,this.touchY=0,this.tooltip=this.sliderElem.querySelector(`.tooltip-main`),this.tooltipInner=this.tooltip.querySelector(`.tooltip-inner`),this.tooltip_min=this.sliderElem.querySelector(`.tooltip-min`),this.tooltipInner_min=this.tooltip_min.querySelector(`.tooltip-inner`),this.tooltip_max=this.sliderElem.querySelector(`.tooltip-max`),this.tooltipInner_max=this.tooltip_max.querySelector(`.tooltip-inner`),s[this.options.scale]&&(this.options.scale=s[this.options.scale]),p===!0&&(this._removeClass(this.sliderElem,`slider-horizontal`),this._removeClass(this.sliderElem,`slider-vertical`),this._removeClass(this.sliderElem,`slider-rtl`),this._removeClass(this.tooltip,`hide`),this._removeClass(this.tooltip_min,`hide`),this._removeClass(this.tooltip_max,`hide`),[`left`,`right`,`top`,`width`,`height`].forEach(function(e){this._removeProperty(this.trackLow,e),this._removeProperty(this.trackSelection,e),this._removeProperty(this.trackHigh,e)},this),[this.handle1,this.handle2].forEach(function(e){this._removeProperty(e,`left`),this._removeProperty(e,`right`),this._removeProperty(e,`top`)},this),[this.tooltip,this.tooltip_min,this.tooltip_max].forEach(function(e){this._removeProperty(e,`left`),this._removeProperty(e,`right`),this._removeProperty(e,`top`),this._removeClass(e,`right`),this._removeClass(e,`left`),this._removeClass(e,`top`)},this)),this.options.orientation===`vertical`?(this._addClass(this.sliderElem,`slider-vertical`),this.stylePos=`top`,this.mousePos=`pageY`,this.sizePos=`offsetHeight`):(this._addClass(this.sliderElem,`slider-horizontal`),this.sliderElem.style.width=f,this.options.orientation=`horizontal`,this.options.rtl?this.stylePos=`right`:this.stylePos=`left`,this.mousePos=`clientX`,this.sizePos=`offsetWidth`),this.options.rtl&&this._addClass(this.sliderElem,`slider-rtl`),this._setTooltipPosition(),Array.isArray(this.options.ticks)&&this.options.ticks.length>0&&(a||(this.options.max=Math.max.apply(Math,this.options.ticks)),i||(this.options.min=Math.min.apply(Math,this.options.ticks))),Array.isArray(this.options.value)?(this.options.range=!0,this._state.value=this.options.value):this.options.range?this._state.value=[this.options.value,this.options.max]:this._state.value=this.options.value,this.trackLow=g||this.trackLow,this.trackSelection=h||this.trackSelection,this.trackHigh=_||this.trackHigh,this.options.selection===`none`?(this._addClass(this.trackLow,`hide`),this._addClass(this.trackSelection,`hide`),this._addClass(this.trackHigh,`hide`)):(this.options.selection===`after`||this.options.selection===`before`)&&(this._removeClass(this.trackLow,`hide`),this._removeClass(this.trackSelection,`hide`),this._removeClass(this.trackHigh,`hide`)),this.handle1=v||this.handle1,this.handle2=y||this.handle2,p===!0)for(this._removeClass(this.handle1,`round triangle`),this._removeClass(this.handle2,`round triangle hide`),o=0;o<this.ticks.length;o++)this._removeClass(this.ticks[o],`round triangle hide`);if([`round`,`triangle`,`custom`].indexOf(this.options.handle)!==-1)for(this._addClass(this.handle1,this.options.handle),this._addClass(this.handle2,this.options.handle),o=0;o<this.ticks.length;o++)this._addClass(this.ticks[o],this.options.handle);if(this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this.setValue(this._state.value),this.handle1Keydown=this._keydown.bind(this,0),this.handle1.addEventListener(`keydown`,this.handle1Keydown,!1),this.handle2Keydown=this._keydown.bind(this,1),this.handle2.addEventListener(`keydown`,this.handle2Keydown,!1),this.mousedown=this._mousedown.bind(this),this.touchstart=this._touchstart.bind(this),this.touchmove=this._touchmove.bind(this),this.touchCapable&&(this.sliderElem.addEventListener(`touchstart`,this.touchstart,!1),this.sliderElem.addEventListener(`touchmove`,this.touchmove,!1)),this.sliderElem.addEventListener(`mousedown`,this.mousedown,!1),this.resize=this._resize.bind(this),window.addEventListener(`resize`,this.resize,!1),this.options.tooltip===`hide`)this._addClass(this.tooltip,`hide`),this._addClass(this.tooltip_min,`hide`),this._addClass(this.tooltip_max,`hide`);else if(this.options.tooltip===`always`)this._showTooltip(),this._alwaysShowTooltip=!0;else{if(this.showTooltip=this._showTooltip.bind(this),this.hideTooltip=this._hideTooltip.bind(this),this.options.ticks_tooltip){var M=this._addTickListener(),ie=M.addMouseEnter(this,this.handle1),N=M.addMouseLeave(this,this.handle1);this.handleCallbackMap.handle1={mouseEnter:ie,mouseLeave:N},ie=M.addMouseEnter(this,this.handle2),N=M.addMouseLeave(this,this.handle2),this.handleCallbackMap.handle2={mouseEnter:ie,mouseLeave:N}}else this.sliderElem.addEventListener(`mouseenter`,this.showTooltip,!1),this.sliderElem.addEventListener(`mouseleave`,this.hideTooltip,!1),this.touchCapable&&(this.sliderElem.addEventListener(`touchstart`,this.showTooltip,!1),this.sliderElem.addEventListener(`touchmove`,this.showTooltip,!1),this.sliderElem.addEventListener(`touchend`,this.hideTooltip,!1));this.handle1.addEventListener(`focus`,this.showTooltip,!1),this.handle1.addEventListener(`blur`,this.hideTooltip,!1),this.handle2.addEventListener(`focus`,this.showTooltip,!1),this.handle2.addEventListener(`blur`,this.hideTooltip,!1),this.touchCapable&&(this.handle1.addEventListener(`touchstart`,this.showTooltip,!1),this.handle1.addEventListener(`touchmove`,this.showTooltip,!1),this.handle1.addEventListener(`touchend`,this.hideTooltip,!1),this.handle2.addEventListener(`touchstart`,this.showTooltip,!1),this.handle2.addEventListener(`touchmove`,this.showTooltip,!1),this.handle2.addEventListener(`touchend`,this.hideTooltip,!1))}this.options.enabled?this.enable():this.disable()}i.prototype={_init:function(){},constructor:i,defaultOptions:{id:``,min:0,max:10,step:1,precision:0,orientation:`horizontal`,value:5,range:!1,selection:`before`,tooltip:`show`,tooltip_split:!1,lock_to_ticks:!1,handle:`round`,reversed:!1,rtl:`auto`,enabled:!0,formatter:function(e){return Array.isArray(e)?e[0]+` : `+e[1]:e},natural_arrow_keys:!1,ticks:[],ticks_positions:[],ticks_labels:[],ticks_snap_bounds:0,ticks_tooltip:!1,scale:`linear`,focus:!1,tooltip_position:null,labelledby:null,rangeHighlights:[]},getElement:function(){return this.sliderElem},getValue:function(){return this.options.range?this._state.value:this._state.value[0]},setValue:function(e,t,n){e||=0;var r=this.getValue();this._state.value=this._validateInputValue(e);var i=this._applyPrecision.bind(this);this.options.range?(this._state.value[0]=i(this._state.value[0]),this._state.value[1]=i(this._state.value[1]),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value[0]=this.options.ticks[this._getClosestTickIndex(this._state.value[0])],this._state.value[1]=this.options.ticks[this._getClosestTickIndex(this._state.value[1])]),this._state.value[0]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[0])),this._state.value[1]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[1]))):(this._state.value=i(this._state.value),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value=this.options.ticks[this._getClosestTickIndex(this._state.value)]),this._state.value=[Math.max(this.options.min,Math.min(this.options.max,this._state.value))],this._addClass(this.handle2,`hide`),this.options.selection===`after`?this._state.value[1]=this.options.max:this._state.value[1]=this.options.min),this._setTickIndex(),this.options.max>this.options.min?this._state.percentage=[this._toPercentage(this._state.value[0]),this._toPercentage(this._state.value[1]),this.options.step*100/(this.options.max-this.options.min)]:this._state.percentage=[0,0,100],this._layout();var a=this.options.range?this._state.value:this._state.value[0];this._setDataVal(a),t===!0&&this._trigger(`slide`,a);var o=!1;return o=Array.isArray(a)?r[0]!==a[0]||r[1]!==a[1]:r!==a,o&&n===!0&&this._trigger(`change`,{oldValue:r,newValue:a}),this},destroy:function(){this._removeSliderEventHandlers(),this.sliderElem.parentNode.removeChild(this.sliderElem),this.element.style.display=``,this._cleanUpEventCallbacksMap(),this.element.removeAttribute(`data`),e&&(this._unbindJQueryEventHandlers(),a===t&&this.$element.removeData(a),this.$element.removeData(n))},disable:function(){return this._state.enabled=!1,this.handle1.removeAttribute(`tabindex`),this.handle2.removeAttribute(`tabindex`),this._addClass(this.sliderElem,`slider-disabled`),this._trigger(`slideDisabled`),this},enable:function(){return this._state.enabled=!0,this.handle1.setAttribute(`tabindex`,0),this.handle2.setAttribute(`tabindex`,0),this._removeClass(this.sliderElem,`slider-disabled`),this._trigger(`slideEnabled`),this},toggle:function(){return this._state.enabled?this.disable():this.enable(),this},isEnabled:function(){return this._state.enabled},on:function(e,t){return this._bindNonQueryEventHandler(e,t),this},off:function(t,n){e?(this.$element.off(t,n),this.$sliderElem.off(t,n)):this._unbindNonQueryEventHandler(t,n)},getAttribute:function(e){return e?this.options[e]:this.options},setAttribute:function(e,t){return this.options[e]=t,this},refresh:function(r){var i=this.getValue();return this._removeSliderEventHandlers(),c.call(this,this.element,this.options),r&&r.useCurrentValue===!0&&this.setValue(i),e&&(a===t&&e.data(this.element,t,this),e.data(this.element,n,this)),this},relayout:function(){return this._resize(),this},_removeTooltipListener:function(e,t){this.handle1.removeEventListener(e,t,!1),this.handle2.removeEventListener(e,t,!1)},_removeSliderEventHandlers:function(){if(this.handle1.removeEventListener(`keydown`,this.handle1Keydown,!1),this.handle2.removeEventListener(`keydown`,this.handle2Keydown,!1),this.options.ticks_tooltip){for(var e=this.ticksContainer.getElementsByClassName(`slider-tick`),t=0;t<e.length;t++)e[t].removeEventListener(`mouseenter`,this.ticksCallbackMap[t].mouseEnter,!1),e[t].removeEventListener(`mouseleave`,this.ticksCallbackMap[t].mouseLeave,!1);this.handleCallbackMap.handle1&&this.handleCallbackMap.handle2&&(this.handle1.removeEventListener(`mouseenter`,this.handleCallbackMap.handle1.mouseEnter,!1),this.handle2.removeEventListener(`mouseenter`,this.handleCallbackMap.handle2.mouseEnter,!1),this.handle1.removeEventListener(`mouseleave`,this.handleCallbackMap.handle1.mouseLeave,!1),this.handle2.removeEventListener(`mouseleave`,this.handleCallbackMap.handle2.mouseLeave,!1))}this.handleCallbackMap=null,this.ticksCallbackMap=null,this.showTooltip&&this._removeTooltipListener(`focus`,this.showTooltip),this.hideTooltip&&this._removeTooltipListener(`blur`,this.hideTooltip),this.showTooltip&&this.sliderElem.removeEventListener(`mouseenter`,this.showTooltip,!1),this.hideTooltip&&this.sliderElem.removeEventListener(`mouseleave`,this.hideTooltip,!1),this.sliderElem.removeEventListener(`mousedown`,this.mousedown,!1),this.touchCapable&&(this.showTooltip&&(this.handle1.removeEventListener(`touchstart`,this.showTooltip,!1),this.handle1.removeEventListener(`touchmove`,this.showTooltip,!1),this.handle2.removeEventListener(`touchstart`,this.showTooltip,!1),this.handle2.removeEventListener(`touchmove`,this.showTooltip,!1)),this.hideTooltip&&(this.handle1.removeEventListener(`touchend`,this.hideTooltip,!1),this.handle2.removeEventListener(`touchend`,this.hideTooltip,!1)),this.showTooltip&&(this.sliderElem.removeEventListener(`touchstart`,this.showTooltip,!1),this.sliderElem.removeEventListener(`touchmove`,this.showTooltip,!1)),this.hideTooltip&&this.sliderElem.removeEventListener(`touchend`,this.hideTooltip,!1),this.sliderElem.removeEventListener(`touchstart`,this.touchstart,!1),this.sliderElem.removeEventListener(`touchmove`,this.touchmove,!1)),window.removeEventListener(`resize`,this.resize,!1)},_bindNonQueryEventHandler:function(e,t){this.eventToCallbackMap[e]===void 0&&(this.eventToCallbackMap[e]=[]),this.eventToCallbackMap[e].push(t)},_unbindNonQueryEventHandler:function(e,t){var n=this.eventToCallbackMap[e];if(n!==void 0){for(var r=0;r<n.length;r++)if(n[r]===t){n.splice(r,1);break}}},_cleanUpEventCallbacksMap:function(){for(var e=Object.keys(this.eventToCallbackMap),t=0;t<e.length;t++){var n=e[t];delete this.eventToCallbackMap[n]}},_showTooltip:function(){this.options.tooltip_split===!1?(this._addClass(this.tooltip,`in`),this.tooltip_min.style.display=`none`,this.tooltip_max.style.display=`none`):(this._addClass(this.tooltip_min,`in`),this._addClass(this.tooltip_max,`in`),this.tooltip.style.display=`none`),this._state.over=!0},_hideTooltip:function(){this._state.inDrag===!1&&this._alwaysShowTooltip!==!0&&(this._removeClass(this.tooltip,`in`),this._removeClass(this.tooltip_min,`in`),this._removeClass(this.tooltip_max,`in`)),this._state.over=!1},_setToolTipOnMouseOver:function(e){var t=this,n=this.options.formatter(e?e.value[0]:this._state.value[0]),r=i(e||this._state,this.options.reversed);this._setText(this.tooltipInner,n),this.tooltip.style[this.stylePos]=r[0]+`%`;function i(e,n){return n?[100-e.percentage[0],t.options.range?100-e.percentage[1]:e.percentage[1]]:[e.percentage[0],e.percentage[1]]}},_copyState:function(){return{value:[this._state.value[0],this._state.value[1]],enabled:this._state.enabled,offset:this._state.offset,size:this._state.size,percentage:[this._state.percentage[0],this._state.percentage[1],this._state.percentage[2]],inDrag:this._state.inDrag,over:this._state.over,dragged:this._state.dragged,keyCtrl:this._state.keyCtrl}},_addTickListener:function(){return{addMouseEnter:function(e,t,n){var r=function(){var r=e._copyState(),i=t===e.handle1?r.value[0]:r.value[1],a=void 0;n===void 0?a=e._toPercentage(i):(i=e.options.ticks[n],a=e.options.ticks_positions.length>0&&e.options.ticks_positions[n]||e._toPercentage(e.options.ticks[n])),r.value[0]=i,r.percentage[0]=a,e._setToolTipOnMouseOver(r),e._showTooltip()};return t.addEventListener(`mouseenter`,r,!1),r},addMouseLeave:function(e,t){var n=function(){e._hideTooltip()};return t.addEventListener(`mouseleave`,n,!1),n}}},_layout:function(){var e=this.options.reversed?[100-this._state.percentage[0],this.options.range?100-this._state.percentage[1]:this._state.percentage[1]]:[this._state.percentage[0],this._state.percentage[1]],t;if(this.handle1.style[this.stylePos]=e[0]+`%`,this.handle1.setAttribute(`aria-valuenow`,this._state.value[0]),t=this.options.formatter(this._state.value[0]),isNaN(t)?this.handle1.setAttribute(`aria-valuetext`,t):this.handle1.removeAttribute(`aria-valuetext`),this.handle2.style[this.stylePos]=e[1]+`%`,this.handle2.setAttribute(`aria-valuenow`,this._state.value[1]),t=this.options.formatter(this._state.value[1]),isNaN(t)?this.handle2.setAttribute(`aria-valuetext`,t):this.handle2.removeAttribute(`aria-valuetext`),this.rangeHighlightElements.length>0&&Array.isArray(this.options.rangeHighlights)&&this.options.rangeHighlights.length>0)for(var n=0;n<this.options.rangeHighlights.length;n++){var r=this._toPercentage(this.options.rangeHighlights[n].start),i=this._toPercentage(this.options.rangeHighlights[n].end);if(this.options.reversed){var a=100-i;i=100-r,r=a}var o=this._createHighlightRange(r,i);o?this.options.orientation===`vertical`?(this.rangeHighlightElements[n].style.top=o.start+`%`,this.rangeHighlightElements[n].style.height=o.size+`%`):(this.options.rtl?this.rangeHighlightElements[n].style.right=o.start+`%`:this.rangeHighlightElements[n].style.left=o.start+`%`,this.rangeHighlightElements[n].style.width=o.size+`%`):this.rangeHighlightElements[n].style.display=`none`}if(Array.isArray(this.options.ticks)&&this.options.ticks.length>0){var s=this.options.orientation===`vertical`?`height`:`width`,c=this.options.orientation===`vertical`?`marginTop`:this.options.rtl?`marginRight`:`marginLeft`,l=this._state.size/(this.options.ticks.length-1);if(this.tickLabelContainer){var u=0;if(this.options.ticks_positions.length===0)this.options.orientation!==`vertical`&&(this.tickLabelContainer.style[c]=-l/2+`px`),u=this.tickLabelContainer.offsetHeight;else for(d=0;d<this.tickLabelContainer.childNodes.length;d++)this.tickLabelContainer.childNodes[d].offsetHeight>u&&(u=this.tickLabelContainer.childNodes[d].offsetHeight);this.options.orientation===`horizontal`&&(this.sliderElem.style.marginBottom=u+`px`)}for(var d=0;d<this.options.ticks.length;d++){var f=this.options.ticks_positions[d]||this._toPercentage(this.options.ticks[d]);this.options.reversed&&(f=100-f),this.ticks[d].style[this.stylePos]=f+`%`,this._removeClass(this.ticks[d],`in-selection`),this.options.range?f>=e[0]&&f<=e[1]&&this._addClass(this.ticks[d],`in-selection`):(this.options.selection===`after`&&f>=e[0]||this.options.selection===`before`&&f<=e[0])&&this._addClass(this.ticks[d],`in-selection`),this.tickLabels[d]&&(this.tickLabels[d].style[s]=l+`px`,this.options.orientation!==`vertical`&&this.options.ticks_positions[d]!==void 0?(this.tickLabels[d].style.position=`absolute`,this.tickLabels[d].style[this.stylePos]=f+`%`,this.tickLabels[d].style[c]=-l/2+`px`):this.options.orientation===`vertical`&&(this.options.rtl?this.tickLabels[d].style.marginRight=this.sliderElem.offsetWidth+`px`:this.tickLabels[d].style.marginLeft=this.sliderElem.offsetWidth+`px`,this.tickLabelContainer.style[c]=this.sliderElem.offsetWidth/2*-1+`px`),this._removeClass(this.tickLabels[d],`label-in-selection label-is-selection`),this.options.range?f>=e[0]&&f<=e[1]&&(this._addClass(this.tickLabels[d],`label-in-selection`),(f===e[0]||e[1])&&this._addClass(this.tickLabels[d],`label-is-selection`)):((this.options.selection===`after`&&f>=e[0]||this.options.selection===`before`&&f<=e[0])&&this._addClass(this.tickLabels[d],`label-in-selection`),f===e[0]&&this._addClass(this.tickLabels[d],`label-is-selection`)))}}var p;if(this.options.range){p=this.options.formatter(this._state.value),this._setText(this.tooltipInner,p),this.tooltip.style[this.stylePos]=(e[1]+e[0])/2+`%`;var m=this.options.formatter(this._state.value[0]);this._setText(this.tooltipInner_min,m);var h=this.options.formatter(this._state.value[1]);this._setText(this.tooltipInner_max,h),this.tooltip_min.style[this.stylePos]=e[0]+`%`,this.tooltip_max.style[this.stylePos]=e[1]+`%`}else p=this.options.formatter(this._state.value[0]),this._setText(this.tooltipInner,p),this.tooltip.style[this.stylePos]=e[0]+`%`;if(this.options.orientation===`vertical`)this.trackLow.style.top=`0`,this.trackLow.style.height=Math.min(e[0],e[1])+`%`,this.trackSelection.style.top=Math.min(e[0],e[1])+`%`,this.trackSelection.style.height=Math.abs(e[0]-e[1])+`%`,this.trackHigh.style.bottom=`0`,this.trackHigh.style.height=100-Math.min(e[0],e[1])-Math.abs(e[0]-e[1])+`%`;else{this.stylePos===`right`?this.trackLow.style.right=`0`:this.trackLow.style.left=`0`,this.trackLow.style.width=Math.min(e[0],e[1])+`%`,this.stylePos===`right`?this.trackSelection.style.right=Math.min(e[0],e[1])+`%`:this.trackSelection.style.left=Math.min(e[0],e[1])+`%`,this.trackSelection.style.width=Math.abs(e[0]-e[1])+`%`,this.stylePos===`right`?this.trackHigh.style.left=`0`:this.trackHigh.style.right=`0`,this.trackHigh.style.width=100-Math.min(e[0],e[1])-Math.abs(e[0]-e[1])+`%`;var g=this.tooltip_min.getBoundingClientRect(),_=this.tooltip_max.getBoundingClientRect();this.options.tooltip_position===`bottom`?g.right>_.left?(this._removeClass(this.tooltip_max,`bottom`),this._addClass(this.tooltip_max,`top`),this.tooltip_max.style.top=``,this.tooltip_max.style.bottom=`22px`):(this._removeClass(this.tooltip_max,`top`),this._addClass(this.tooltip_max,`bottom`),this.tooltip_max.style.top=this.tooltip_min.style.top,this.tooltip_max.style.bottom=``):g.right>_.left?(this._removeClass(this.tooltip_max,`top`),this._addClass(this.tooltip_max,`bottom`),this.tooltip_max.style.top=`18px`):(this._removeClass(this.tooltip_max,`bottom`),this._addClass(this.tooltip_max,`top`),this.tooltip_max.style.top=this.tooltip_min.style.top)}},_createHighlightRange:function(e,t){return this._isHighlightRange(e,t)?e>t?{start:t,size:e-t}:{start:e,size:t-e}:null},_isHighlightRange:function(e,t){return 0<=e&&e<=100&&0<=t&&t<=100},_resize:function(e){this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this._layout()},_removeProperty:function(e,t){e.style.removeProperty?e.style.removeProperty(t):e.style.removeAttribute(t)},_mousedown:function(e){if(!this._state.enabled)return!1;e.preventDefault&&e.preventDefault(),this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos];var t=this._getPercentage(e);if(this.options.range){var n=Math.abs(this._state.percentage[0]-t),r=Math.abs(this._state.percentage[1]-t);this._state.dragged=n<r?0:1,this._adjustPercentageForRangeSliders(t)}else this._state.dragged=0;this._state.percentage[this._state.dragged]=t,this.touchCapable&&(document.removeEventListener(`touchmove`,this.mousemove,!1),document.removeEventListener(`touchend`,this.mouseup,!1)),this.mousemove&&document.removeEventListener(`mousemove`,this.mousemove,!1),this.mouseup&&document.removeEventListener(`mouseup`,this.mouseup,!1),this.mousemove=this._mousemove.bind(this),this.mouseup=this._mouseup.bind(this),this.touchCapable&&(document.addEventListener(`touchmove`,this.mousemove,!1),document.addEventListener(`touchend`,this.mouseup,!1)),document.addEventListener(`mousemove`,this.mousemove,!1),document.addEventListener(`mouseup`,this.mouseup,!1),this._state.inDrag=!0;var i=this._calculateValue();return this._trigger(`slideStart`,i),this.setValue(i,!1,!0),e.returnValue=!1,this.options.focus&&this._triggerFocusOnHandle(this._state.dragged),!0},_touchstart:function(e){this._mousedown(e)},_triggerFocusOnHandle:function(e){e===0&&this.handle1.focus(),e===1&&this.handle2.focus()},_keydown:function(e,t){if(!this._state.enabled)return!1;var n;switch(t.keyCode){case 37:case 40:n=-1;break;case 39:case 38:n=1;break}if(n){if(this.options.natural_arrow_keys){var r=this.options.orientation===`horizontal`,i=this.options.orientation===`vertical`,a=this.options.rtl,o=this.options.reversed;r?a?o||(n=-n):o&&(n=-n):i&&(o||(n=-n))}var s;if(this.ticksAreValid&&this.options.lock_to_ticks){var c=void 0;c=this.options.ticks.indexOf(this._state.value[e]),c===-1&&(c=0,window.console.warn(`(lock_to_ticks) _keydown: index should not be -1`)),c+=n,c=Math.max(0,Math.min(this.options.ticks.length-1,c)),s=this.options.ticks[c]}else s=this._state.value[e]+n*this.options.step;var l=this._toPercentage(s);if(this._state.keyCtrl=e,this.options.range){this._adjustPercentageForRangeSliders(l);var u=this._state.keyCtrl?this._state.value[0]:s,d=this._state.keyCtrl?s:this._state.value[1];s=[Math.max(this.options.min,Math.min(this.options.max,u)),Math.max(this.options.min,Math.min(this.options.max,d))]}else s=Math.max(this.options.min,Math.min(this.options.max,s));return this._trigger(`slideStart`,s),this.setValue(s,!0,!0),this._trigger(`slideStop`,s),this._pauseEvent(t),delete this._state.keyCtrl,!1}},_pauseEvent:function(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.cancelBubble=!0,e.returnValue=!1},_mousemove:function(e){if(!this._state.enabled)return!1;var t=this._getPercentage(e);this._adjustPercentageForRangeSliders(t),this._state.percentage[this._state.dragged]=t;var n=this._calculateValue(!0);return this.setValue(n,!0,!0),!1},_touchmove:function(e){e.changedTouches!==void 0&&e.preventDefault&&e.preventDefault()},_adjustPercentageForRangeSliders:function(e){if(this.options.range){var t=this._getNumDigitsAfterDecimalPlace(e);t=t?t-1:0;var n=this._applyToFixedAndParseFloat(e,t);this._state.dragged===0&&this._applyToFixedAndParseFloat(this._state.percentage[1],t)<n?(this._state.percentage[0]=this._state.percentage[1],this._state.dragged=1):this._state.dragged===1&&this._applyToFixedAndParseFloat(this._state.percentage[0],t)>n?(this._state.percentage[1]=this._state.percentage[0],this._state.dragged=0):this._state.keyCtrl===0&&this._toPercentage(this._state.value[1])<e?(this._state.percentage[0]=this._state.percentage[1],this._state.keyCtrl=1,this.handle2.focus()):this._state.keyCtrl===1&&this._toPercentage(this._state.value[0])>e&&(this._state.percentage[1]=this._state.percentage[0],this._state.keyCtrl=0,this.handle1.focus())}},_mouseup:function(e){if(!this._state.enabled)return!1;var t=this._getPercentage(e);this._adjustPercentageForRangeSliders(t),this._state.percentage[this._state.dragged]=t,this.touchCapable&&(document.removeEventListener(`touchmove`,this.mousemove,!1),document.removeEventListener(`touchend`,this.mouseup,!1)),document.removeEventListener(`mousemove`,this.mousemove,!1),document.removeEventListener(`mouseup`,this.mouseup,!1),this._state.inDrag=!1,this._state.over===!1&&this._hideTooltip();var n=this._calculateValue(!0);return this.setValue(n,!1,!0),this._trigger(`slideStop`,n),this._state.dragged=null,!1},_setValues:function(e,t){var n=e===0?0:100;this._state.percentage[e]!==n&&(t.data[e]=this._toValue(this._state.percentage[e]),t.data[e]=this._applyPrecision(t.data[e]))},_calculateValue:function(e){var t={};return this.options.range?(t.data=[this.options.min,this.options.max],this._setValues(0,t),this._setValues(1,t),e&&(t.data[0]=this._snapToClosestTick(t.data[0]),t.data[1]=this._snapToClosestTick(t.data[1]))):(t.data=this._toValue(this._state.percentage[0]),t.data=parseFloat(t.data),t.data=this._applyPrecision(t.data),e&&(t.data=this._snapToClosestTick(t.data))),t.data},_snapToClosestTick:function(e){for(var t=[e,1/0],n=0;n<this.options.ticks.length;n++){var r=Math.abs(this.options.ticks[n]-e);r<=t[1]&&(t=[this.options.ticks[n],r])}return t[1]<=this.options.ticks_snap_bounds?t[0]:e},_applyPrecision:function(e){var t=this.options.precision||this._getNumDigitsAfterDecimalPlace(this.options.step);return this._applyToFixedAndParseFloat(e,t)},_getNumDigitsAfterDecimalPlace:function(e){var t=(``+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},_applyToFixedAndParseFloat:function(e,t){var n=e.toFixed(t);return parseFloat(n)},_getPercentage:function(e){this.touchCapable&&(e.type===`touchstart`||e.type===`touchmove`||e.type===`touchend`)&&(e=e.changedTouches[0]);var t=e[this.mousePos]-this._state.offset[this.stylePos];this.stylePos===`right`&&(t=-t);var n=t/this._state.size*100;return n=Math.round(n/this._state.percentage[2])*this._state.percentage[2],this.options.reversed&&(n=100-n),Math.max(0,Math.min(100,n))},_validateInputValue:function(e){if(!isNaN(+e))return+e;if(Array.isArray(e))return this._validateArray(e),e;throw Error(o.formatInvalidInputErrorMsg(e))},_validateArray:function(e){for(var t=0;t<e.length;t++){var n=e[t];if(typeof n!=`number`)throw Error(o.formatInvalidInputErrorMsg(n))}},_setDataVal:function(e){this.element.setAttribute(`data-value`,e),this.element.setAttribute(`value`,e),this.element.value=e},_trigger:function(t,n){n=n||n===0?n:void 0;var r=this.eventToCallbackMap[t];if(r&&r.length)for(var i=0;i<r.length;i++){var a=r[i];a(n)}e&&this._triggerJQueryEvent(t,n)},_triggerJQueryEvent:function(e,t){var n={type:e,value:t};this.$element.trigger(n),this.$sliderElem.trigger(n)},_unbindJQueryEventHandlers:function(){this.$element.off(),this.$sliderElem.off()},_setText:function(e,t){e.textContent===void 0?e.innerText!==void 0&&(e.innerText=t):e.textContent=t},_removeClass:function(e,t){for(var n=t.split(` `),r=e.className,i=0;i<n.length;i++){var a=n[i],o=RegExp(`(?:\\s|^)`+a+`(?:\\s|$)`);r=r.replace(o,` `)}e.className=r.trim()},_addClass:function(e,t){for(var n=t.split(` `),r=e.className,i=0;i<n.length;i++){var a=n[i];RegExp(`(?:\\s|^)`+a+`(?:\\s|$)`).test(r)||(r+=` `+a)}e.className=r.trim()},_offsetLeft:function(e){return e.getBoundingClientRect().left},_offsetRight:function(e){return e.getBoundingClientRect().right},_offsetTop:function(e){for(var t=e.offsetTop;(e=e.offsetParent)&&!isNaN(e.offsetTop);)t+=e.offsetTop,e.tagName!==`BODY`&&(t-=e.scrollTop);return t},_offset:function(e){return{left:this._offsetLeft(e),right:this._offsetRight(e),top:this._offsetTop(e)}},_css:function(t,n,r){if(e)e.style(t,n,r);else{var i=n.replace(/^-ms-/,`ms-`).replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()});t.style[i]=r}},_toValue:function(e){return this.options.scale.toValue.apply(this,[e])},_toPercentage:function(e){return this.options.scale.toPercentage.apply(this,[e])},_setTooltipPosition:function(){var e=[this.tooltip,this.tooltip_min,this.tooltip_max];if(this.options.orientation===`vertical`){var t=this.options.tooltip_position?this.options.tooltip_position:this.options.rtl?`left`:`right`,n=t===`left`?`right`:`left`;e.forEach(function(e){this._addClass(e,t),e.style[n]=`100%`}.bind(this))}else this.options.tooltip_position===`bottom`?e.forEach(function(e){this._addClass(e,`bottom`),e.style.top=`22px`}.bind(this)):e.forEach(function(e){this._addClass(e,`top`),e.style.top=-this.tooltip.outerHeight-14+`px`}.bind(this))},_getClosestTickIndex:function(e){for(var t=Math.abs(e-this.options.ticks[0]),n=0,r=0;r<this.options.ticks.length;++r){var i=Math.abs(e-this.options.ticks[r]);i<t&&(t=i,n=r)}return n},_setTickIndex:function(){this.ticksAreValid&&(this._state.tickIndex=[this.options.ticks.indexOf(this._state.value[0]),this.options.ticks.indexOf(this._state.value[1])])}},e&&e.fn&&(e.fn.slider?(r&&window.console.warn(`bootstrap-slider.js - WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead.`),a=n):(e.bridget(t,i),a=t),e.bridget(n,i),e(function(){e(`input[data-provide=slider]`)[a]()}))})(e),i})}))();var vt=girder.$,yt=girder._,bt=girder.moment,xt=girder.views.View,{getCurrentUser:St}=girder.auth,q=girder.events,J=girder.models.ItemModel,Ct=girder.models.FolderModel,wt=girder.collections.FolderCollection,Tt=girder.models.FileModel,Et=girder.models.UserModel,Dt=girder.models.CollectionModel,{restRequest:Ot}=girder.rest,kt=xt.extend({events:{"change input,select":`_input`,changeColor:`_input`,"click .s-select-file-button":`_selectFile`,"click .s-select-multifile-button":`_selectMultiFile`,"click .s-select-region-button":`_selectRegion`,"click .s-select-region-clear-button":`_clearRegion`,"click .s-select-region-submit-button":`_submitRegionToggle`},initialize(e){this._disableRegionSelect=e.disableRegionSelect===!0,this._rootPath=e.rootPath,this.listenTo(this.model,`change`,this.change),this.listenTo(this.model,`destroy`,this.remove),this.listenTo(this.model,`invalid`,this.invalid),this.listenTo(q,`s:widgetSet:`+this.model.id,e=>{this.model.set(`value`,e)}),this._initModel(e)},_initModel(e){let t=e.setDefaultOutput,n=this.model,r=n.get(`type`),i=n.get(`channel`),a=n.get(`required`);i===`input`&&(n.get(`defaultNameMatch`)||n.get(`defaultPathMatch`))&&this._getDefaultInputResource(n).then(e=>(e&&this.model.set({path:e._path,value:e}),null)),!(!t||!a&&(!this._findReference()||!n.get(`extensions`))||i!==`output`||![`new-file`,`file`,`item`,`directory`,`multi`].includes(r))&&this._getDefaultOutputFolder().then(e=>{if(!e)return null;let r=(n.get(`extensions`)||``).split(`|`)[0],i=n.get(`id`)===`returnparameterfile`?``:`-${n.get(`title`)}`,a=this._findReference();if(a)this.listenTo(a,`change`,()=>{let n=a.get(`value`);if(n&&n.get(`name`)){let a=n.get(`name`);a.includes(`.`)&&(a=a.slice(0,a.lastIndexOf(`.`)));let o=`${a}-${t}${i}-${bt().local().format()}${r}`;this._setValue(e,o)}});else{let n=`${t}${i}-${bt().local().format()}${r}`;this._setValue(e,n)}return null})},_setValue(e,t){this.model.set({path:[e.get(`name`),t],parent:e,value:new J({name:t,folderId:e.id})})},_findReference(){let e=this.model.get(`reference`);return e?this.model.collection.find(t=>t.get(`id`)===e):null},render(e,t){if(this.$(`[data-toggle="tooltip"]`).tooltip(`destroy`),this.$(`.form-group`).removeClass(`has-error`),this.model.isValid(),t&&t.norender)return this;let n=Object.assign({disableRegionSelect:this._disableRegionSelect,previousElement:this.$el},this.model.toJSON());return this.$el.html(this.template()(n)),this.$(`[data-toggle="tooltip"]`).tooltip({container:`body`}),n.datalist&&this.$(`.s-control-item input`).addClass(`has-datalist`),this},change(){q.trigger(`s:widgetChanged:${this.model.get(`type`)}`,this.model),q.trigger(`s:widgetChanged`,this.model),this.render.apply(this,arguments)},remove(){q.trigger(`s:widgetRemoved:${this.model.get(`type`)}`,this.model),q.trigger(`s:widgetRemoved`,this.model),this.$(`.s-control-item[data-type="color"] .input-group`).colorpicker(`destroy`),this.$(`.s-control-item[data-type="range"] input`).slider(`destroy`),this.$el.empty()},invalid(){q.trigger(`s:widgetInvalid:${this.model.get(`type`)}`,this.model),q.trigger(`s:widgetInvalid`,this.model),this.$(`.form-group`).addClass(`has-error`)},_typedef:{range:{template:qe},color:{template:Ee},string:{template:mt},number:{template:mt},integer:{template:mt},boolean:{template:Se},"string-vector":{template:mt},"number-vector":{template:mt},"string-enumeration":{template:je},"number-enumeration":{template:je},file:{template:He},item:{template:He},image:{template:He},multi:{template:He},directory:{template:He},"new-file":{template:He},region:{template:rt}},template(){let e=this.model.get(`type`),t=this._typedef[e];return t===void 0&&(console.warn(`Invalid widget type "`+e+`"`),t={}),t.template||yt.template(``)},_input(e){let t=vt(e.target),n=t.val();t.attr(`type`)===`checkbox`&&(n=t.get(0).checked),this.model.set(`value`,n,{norender:!0})},_selectFile(){this.model.get(`type`)===`multi`&&this.model.get(`value`)&&this.model.set({value:new J({folderId:this.model.get(`value`).get(`folderId`)})});let e=this.model.get(`defaultType`);e&&this.model.set({type:e});let t={el:vt(`#g-dialog-container`),parentView:this,model:this.model,rootPath:this._rootPath,rootSelectorSettings:{pageLimit:1e3}};this.model.get(`value`)?this.getRoot(this.model.get(`value`),t):this.completeInitialization(t)},getRoot(e,t){let n={item:J,folder:Ct,collection:Dt,user:Et},r=`folder`,i=null;if(e.get&&(e.get(`itemId`)?(i=e.get(`itemId`),r=`item`):e.get(`folderId`)?i=e.get(`folderId`):e.get(`parentCollection`)&&(r=e.get(`parentCollection`),i=e.get(`parentId`))),r===`item`){let e=new n[r];e.set({_id:i}).on(`g:fetched`,function(){t.defaultSelectedResource=e,t.highlightItem=!0,t.selectItem=!0,this.getRoot(e,t)},this).on(`g:error`,function(){t.root=null,this.completeInitialization(t)},this).fetch()}else if(n[r]&&i){let e=new n[r];e.set({_id:i}).on(`g:fetched`,function(){t.root=e,t.rootSelectorSettings.selectByResource=e,this.completeInitialization(t)},this).on(`g:error`,function(){t.root=null,this.completeInitialization(t)},this).fetch()}else this.completeInitialization(t)},completeInitialization(e){let t=new ye(e);t.once(`g:saved`,()=>{this.model.unset(`revertType`),t.$el.modal(`hide`)}).render(),t.$el.on(`hidden.bs.modal`,()=>{this.model.get(`revertType`)&&(this.model.set(`type`,this.model.get(`revertType`)),this.model.unset(`revertType`))})},_selectMultiFile(){let e=this.model.get(`type`);e!==`multi`&&this.model.set({type:`multi`,defaultType:e,revertType:e});let t={el:vt(`#g-dialog-container`),parentView:this,model:this.model,rootPath:this._rootPath,rootSelectorSettings:{pageLimit:1e3}};this.model.get(`value`)?this.getRoot(this.model.get(`value`),t):this.completeInitialization(t)},_getDefaultOutputFolder(){let e=St();if(!e)return vt.Deferred().resolve(null).promise();let t=new wt;return t.fetch({parentId:e.id,parentType:`user`,public:!1,limit:1}).then(()=>t.isEmpty()?t.fetch({parentId:e.id,parentType:`user`,limit:1}):t).then(()=>t.isEmpty()?null:t.at(0))},_getDefaultInputResource(e){var t={image:`item`,item:`item`,file:`file`,directory:`folder`}[e.get(`type`)];return Ot({url:`slicer_cli_web/path_match`,data:{type:t,name:e.get(`defaultNameMatch`),path:e.get(`defaultPathMatch`),relative_path:e.get(`defaultRelativePath`),base_id:e.get(`defaultRelativePath_id`),base_type:e.get(`defaultRelativePath_type`)},error:null}).then(t=>{var n={image:J,item:J,file:Tt,directory:Ct}[e.get(`type`)];let r=new n(t);return r._path=t._path,r})},_selectRegion(e){this.$(`.tooltip[role="tooltip"]`).remove();let t=vt(e.target).closest(`.s-select-region-button`),n=t.closest(`.input-group-btn`).find(`.s-select-region-submit-button`);if(t.hasClass(`active`)){q.trigger(`s:widgetDrawRegionEvent`,{model:this.model,mode:null,add:!1,submitCtrl:n,event:e});return}let r=t.attr(`shape`),i=t.attr(`multi`)===`true`;q.trigger(`s:widgetDrawRegionEvent`,{model:this.model,mode:r,add:i,submitCtrl:n,event:e}),q.trigger(`s:widgetDrawRegion`,this.model)},_clearRegion(e){this.$(`.tooltip[role="tooltip"]`).remove();let t=vt(e.target).closest(`.input-group-btn`).find(`.s-select-region-submit-button`);q.trigger(`s:widgetDrawRegionEvent`,{model:this.model,mode:null,add:!1,submitCtrl:t,event:e}),q.trigger(`s:widgetClearRegion`,this.model)},_submitRegionToggle(e){vt(e.target).attr(`can-toggle`)===`true`&&(vt(e.target).toggleClass(`enabled`),vt(e.target).toggleClass(`active`,vt(e.target).hasClass(`enabled`)))}});function At(e,t,n,r){if(!1===t||t==null||!t&&(e===`class`||e===`style`))return``;if(!0===t)return` `+(r?e:e+`="`+e+`"`);var i=typeof t;return i!==`object`&&i!==`function`||typeof t.toJSON!=`function`||(t=t.toJSON()),typeof t==`string`||(t=JSON.stringify(t),n||t.indexOf(`"`)===-1)?(n&&(t=Ft(t)),` `+e+`="`+t+`"`):` `+e+`='`+t.replace(/'/g,`'`)+`'`}function jt(e,t){var n=``;for(var r in e)if(It.call(e,r)){var i=e[r];if(r===`class`){i=Mt(i),n=At(r,i,!1,t)+n;continue}r===`style`&&(i=zt(i)),n+=At(r,i,!1,t)}return n}function Mt(e,t){return Array.isArray(e)?Nt(e,t):e&&typeof e==`object`?Pt(e):e||``}function Nt(e,t){for(var n,r=``,i=``,a=Array.isArray(t),o=0;o<e.length;o++)(n=Mt(e[o]))&&(a&&t[o]&&(n=Ft(n)),r=r+i+n,i=` `);return r}function Pt(e){var t=``,n=``;for(var r in e)r&&e[r]&&It.call(e,r)&&(t=t+n+r,n=` `);return t}function Ft(e){var t=``+e,n=Y.exec(t);if(!n)return e;var r,i,a,o=``;for(r=n.index,i=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:a=`"`;break;case 38:a=`&`;break;case 60:a=`<`;break;case 62:a=`>`;break;default:continue}i!==r&&(o+=t.substring(i,r)),i=r+1,o+=a}return i===r?o:o+t.substring(i,r)}var It=Object.prototype.hasOwnProperty,Y=/["&<>]/;function Lt(e,t){if(arguments.length===1){for(var n=e[0],r=1;r<e.length;r++)n=Lt(n,e[r]);return n}for(var i in t)if(i===`class`){var a=e[i]||[];e[i]=(Array.isArray(a)?a:[a]).concat(t[i]||[])}else if(i===`style`){var a=zt(e[i]);a=a&&a[a.length-1]!==`;`?a+`;`:a;var o=zt(t[i]);o=o&&o[o.length-1]!==`;`?o+`;`:o,e[i]=a+o}else e[i]=t[i];return e}function Rt(e,t,n,r){if(!(e instanceof Error))throw e;if(!(typeof window>`u`&&t||r))throw e.message+=` on line `+n,e;var i,a,o,s;try{r||=f().readFileSync(t,{encoding:`utf8`}),i=3,a=r.split(`
|
|
66
66
|
`),o=Math.max(n-i,0),s=Math.min(a.length,n+i)}catch(r){e.message+=` - could not read from `+t+` (`+r.message+`)`,Rt(e,null,n);return}i=a.slice(o,s).map(function(e,t){var r=t+o+1;return(r==n?` > `:` `)+r+`| `+e}).join(`
|
|
67
67
|
`),e.path=t;try{e.message=(t||`Pug`)+`:`+n+`
|
|
68
68
|
`+i+`
|
|
File without changes
|
|
File without changes
|
{girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/docs/worker_management.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/slicer_cli_web/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/slicer_cli_web/cli_utils.py
RENAMED
|
File without changes
|
{girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/slicer_cli_web/config.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/slicer_cli_web/image_job.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/small-docker/.dockerignore
RENAMED
|
File without changes
|
{girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/small-docker/Dockerfile
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/small-docker/cli_list.json
RENAMED
|
File without changes
|
{girder_slicer_cli_web-5.0.10.dev2 → girder_slicer_cli_web-5.0.10.dev6}/small-docker/cli_list.py
RENAMED
|
File without changes
|
|
File without changes
|