PageSourceSearch

https://assets.ambiki.com/packs/js/7689-1ef6c299a476825db6d3.chunk.js

js ambiki.com collected 2026-10-04 07:21:00 UTC 9,297 bytes, 3 lines download raw bytes

1/*! For license information please see 7689-1ef6c299a476825db6d3.chunk.js.LICENSE.txt */
2"use strict";(globalThis.webpackChunkambiki||=[]).push([[7689],{87689(e,t,r){r.r(t),r.d(t,{default:()=>C});var n,o,i,a,u,c,l,f,s,p=r(2888),b=r(31084),y=r(10246),v=r(46381),d=r(64353);function h(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof u?n:u,l=Object.create(c.prototype);return m(l,"_invoke",function(r,n,o){var i,u,c,l=0,f=o||[],s=!1,p={p:0,n:0,v:e,a:b,f:b.bind(e,4),d:function(t,r){return i=t,u=0,c=e,p.n=r,a}};function b(r,n){for(u=r,c=n,t=0;!s&&l&&!o&&t<f.length;t++){var o,i=f[t],b=p.p,y=i[2];r>3?(o=y===n)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=b&&((o=r<2&&b<i[1])?(u=0,p.v=n,p.n=i[1]):b<y&&(o=r<3||i[0]>n||n>y)&&(i[4]=r,i[5]=n,p.n=y,u=0))}if(o||r>1)return a;throw s=!0,n}return function(o,f,y){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&b(f,y),u=f,c=y;(t=u<2?e:c)||!s;){i||(u?u<3?(u>1&&(p.n=-1),b(u,c)):p.n=c:p.v=c);try{if(l=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(s=p.n<0)?c:r.call(n,p))!==a)break}catch(t){i=e,u=1,c=t}finally{l=1}}return{value:t,done:s}}}(r,o,i),!0),l}var a={};function u(){}function c(){}function l(){}t=Object.getPrototypeOf;var f=[][n]?t(t([][n]())):(m(t={},n,function(){return this}),t),s=l.prototype=u.prototype=Object.create(f);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,m(e,o,"GeneratorFunction")),e.prototype=Object.create(s),e}return c.prototype=l,m(s,"constructor",l),m(l,"constructor",c),c.displayName="GeneratorFunction",m(l,o,"GeneratorFunction"),m(s),m(s,o,"Generator"),m(s,n,function(){return this}),m(s,"toString",function(){return"[object Generator]"}),(h=function(){return{w:i,m:p}})()}function m(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}m=function(e,t,r,n){function i(t,r){m(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},m(e,t,r,n)}function g(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function O(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){g(i,n,o,a,u,"next",e)}function u(e){g(i,n,o,a,u,"throw",e)}a(void 0)})}}function w(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach(function(t){z(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function I(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function S(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,x(n.key),n)}}function A(e,t,r){return t=_(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,T()?Reflect.construct(t,r||[],_(e).constructor):t.apply(e,r))}function T(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(T=function(){return!!e})()}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}
2function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function z(e,t,r){return(t=x(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function D(e,t,r,n,o){var i={};return Object.keys(n).forEach(function(e){i[e]=n[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=r.slice().reverse().reduce(function(r,n){return n(e,t,r)||r},i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer?(Object.defineProperty(e,t,i),null):i}var C=(n=(0,p.kT)("checkbox-sortable"),o=(0,p.aC)(),i=(0,p.aC)(),a=(0,p.zV)(),n((c=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return I(e=A(this,t,[].concat(n)),"itemTemplate",l,e),I(e,"container",f,e),I(e,"items",s,e),z(e,"sortable",void 0),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(t,e),r=t,n=[{key:"connected",value:function(){this.sortable=new y.Ay(this.container,k(k({},d.i),{},{onUpdate:this.onDragFinished.bind(this)}))}},{key:"disconnected",value:function(){var e;null===(e=this.sortable)||void 0===e||e.destroy()}},{key:"toggleItem",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t?this.appendItem(e,r):this.removeItem(e)}},{key:"appendItem",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.findItem(e);n?n.revive():(t=this.container).append.apply(t,w(this.createItem(e,r))),this.reorderItems()}},{key:"removeItem",value:function(e){var t=this.findItem(e);null===t||void 0===t||t.destroy(),this.reorderItems()}},{key:"findItem",value:function(e){return this.items.find(function(t){return t.value===e})}},{key:"removeAll",value:function(){this.items.forEach(function(e){return e.destroy()})}},{key:"reorderItems",value:(a=O(h().m(function e(){return h().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,(0,v.dA)();case 1:Array.from(this.container.querySelectorAll("[data-draggable]")).filter(b.RK).forEac
2h(function(e,t){return e.setPosition(t+1)});case 2:return e.a(2)}},e,this)})),function(){return a.apply(this,arguments)})},{key:"onDragFinished",value:(i=O(h().m(function e(t){var r,n;return h().w(function(e){for(;;)switch(e.n){case 0:if(r=t.oldIndex,n=t.newIndex,r===n){e.n=2;break}return e.n=1,this.reorderItems();case 1:this.form&&(0,p.Ic)(this.form,"mark-dirty",{bubbles:!1});case 2:return e.a(2)}},e,this)})),function(e){return i.apply(this,arguments)})},{key:"createItem",value:function(e,t){var r=this.itemTemplate.content.cloneNode(!0),n=r.querySelector("checkbox-sortable-item");null===n||void 0===n||n.setAttribute("value",e),null===n||void 0===n||n.setAttribute("type",t.type||""),function(e,t){for(var r=Array.from(e.querySelectorAll("[data-behavior]")),n=0,o=r;n<o.length;n++){var i=o[n],a=i.getAttribute("data-behavior");a&&a in t&&(i.innerText=String(t[a]))}}(r,t);var o=document.createElement("div");return o.appendChild(r),o.innerHTML=o.innerHTML.replace(/__INDEX__/g,Date.now().toString()),Array.from(o.childNodes)}},{key:"form",get:function(){return this.closest("form")}}],n&&S(r.prototype,n),o&&S(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o,i,a}(p.IZ),l=D(c.prototype,"itemTemplate",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=D(c.prototype,"container",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=D(c.prototype,"items",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=c))||u)}}]);
3//# sourceMappingURL=7689-1ef6c299a476825db6d3.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.