%PDF- %PDF-
Direktori : /var/www/knwn/wp-content/plugins/admin-columns-pro/assets/editing/js/ |
Current File : /var/www/knwn/wp-content/plugins/admin-columns-pro/assets/editing/js/table.js.map |
{"version":3,"file":"table.js","mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;ACrBA,aAAa,mBAAO,CAAC,yFAAoB;AACzC,iBAAiB,mBAAO,CAAC,2EAAY;AACrC,aAAa,mBAAO,CAAC,qEAAQ;;AAE7B;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,0CAA0C,SAAS;AACnD;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,oBAAoB,aAAa;AACjC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA,kBAAkB,YAAY;AAC9B;AACA;AACA;AACA;;;;;;;;;;;ACjKA,aAAa,mBAAO,CAAC,qEAAQ;;AAE7B;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;;;;ACtDA,gBAAgB,mBAAO,CAAC,+EAAe;AACvC,aAAa,mBAAO,CAAC,qEAAQ;;AAE7B;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,YAAY;AACpB;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;;;;;;;;;;;AC/CY;;AAEZ;AACA;AACA;AACA;AACA,WAAW,UAAU;AACrB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA,qBAAqB,SAAS;AAC9B;AACA;;AAEA;AACA;;;;;;;;;;;AC1BA,4FAAuC;;;;;;;;;;;ACA1B;;AAEb,YAAY,mBAAO,CAAC,qDAAY;AAChC,aAAa,mBAAO,CAAC,iEAAkB;AACvC,cAAc,mBAAO,CAAC,yEAAsB;AAC5C,eAAe,mBAAO,CAAC,2EAAuB;AAC9C,oBAAoB,mBAAO,CAAC,6EAAuB;AACnD,mBAAmB,mBAAO,CAAC,mFAA2B;AACtD,sBAAsB,mBAAO,CAAC,yFAA8B;AAC5D,kBAAkB,mBAAO,CAAC,yEAAqB;;AAE/C;AACA;AACA;AACA;;AAEA;AACA,6CAA6C;AAC7C;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;;;;;;;;;;;;AClLa;;AAEb,YAAY,mBAAO,CAAC,kDAAS;AAC7B,WAAW,mBAAO,CAAC,gEAAgB;AACnC,YAAY,mBAAO,CAAC,4DAAc;AAClC,kBAAkB,mBAAO,CAAC,wEAAoB;AAC9C,eAAe,mBAAO,CAAC,wDAAY;;AAEnC;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY,OAAO;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,eAAe,mBAAO,CAAC,kEAAiB;AACxC,oBAAoB,mBAAO,CAAC,4EAAsB;AAClD,iBAAiB,mBAAO,CAAC,sEAAmB;;AAE5C;AACA;AACA;AACA;AACA,eAAe,mBAAO,CAAC,oEAAkB;;AAEzC;AACA,qBAAqB,mBAAO,CAAC,gFAAwB;;AAErD;;AAEA;AACA,yBAAsB;;;;;;;;;;;;ACvDT;;AAEb;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;;;;;;;;;;;AClBa;;AAEb,aAAa,mBAAO,CAAC,2DAAU;;AAE/B;AACA;AACA;AACA;AACA,WAAW,UAAU;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACxDa;;AAEb;AACA;AACA;;;;;;;;;;;;ACJa;;AAEb,YAAY,mBAAO,CAAC,qDAAY;AAChC,eAAe,mBAAO,CAAC,yEAAqB;AAC5C,yBAAyB,mBAAO,CAAC,iFAAsB;AACvD,sBAAsB,mBAAO,CAAC,2EAAmB;AACjD,kBAAkB,mBAAO,CAAC,mEAAe;;AAEzC;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gDAAgD;AAChD;AACA;AACA,yBAAyB;AACzB,KAAK;AACL;AACA,CAAC;;AAED;AACA;AACA;AACA,gDAAgD;AAChD;AACA;AACA;AACA,KAAK;AACL;AACA,CAAC;;AAED;;;;;;;;;;;;AC9Fa;;AAEb,YAAY,mBAAO,CAAC,qDAAY;;AAEhC;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,UAAU;AACrB,WAAW,UAAU;AACrB;AACA,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,UAAU;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;;;;;ACnDa;;AAEb,oBAAoB,mBAAO,CAAC,mFAA0B;AACtD,kBAAkB,mBAAO,CAAC,+EAAwB;;AAElD;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACnBa;;AAEb,mBAAmB,mBAAO,CAAC,qEAAgB;;AAE3C;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACjBa;;AAEb,YAAY,mBAAO,CAAC,qDAAY;AAChC,oBAAoB,mBAAO,CAAC,uEAAiB;AAC7C,eAAe,mBAAO,CAAC,uEAAoB;AAC3C,eAAe,mBAAO,CAAC,yDAAa;;AAEpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,+BAA+B;AAC/B,uCAAuC;AACvC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;;;;;;;;;;;;AC9Ea;;AAEb;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACzCa;;AAEb,YAAY,mBAAO,CAAC,mDAAU;;AAE9B;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN,2BAA2B;AAC3B,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;;;;;;;;;;;;ACtFa;;AAEb,kBAAkB,mBAAO,CAAC,mEAAe;;AAEzC;AACA;AACA;AACA,WAAW,UAAU;AACrB,WAAW,UAAU;AACrB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACxBa;;AAEb,YAAY,mBAAO,CAAC,qDAAY;;AAEhC;AACA;AACA;AACA,WAAW,eAAe;AAC1B,WAAW,OAAO;AAClB,WAAW,gBAAgB;AAC3B,aAAa,GAAG;AAChB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;;;;;;;;;;;ACnBa;;AAEb,YAAY,mBAAO,CAAC,kDAAS;AAC7B,0BAA0B,mBAAO,CAAC,8FAA+B;;AAEjE;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc,mBAAO,CAAC,gEAAgB;AACtC,IAAI;AACJ;AACA,cAAc,mBAAO,CAAC,iEAAiB;AACvC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wEAAwE;AACxE;AACA;AACA;AACA,uDAAuD;AACvD;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,QAAQ,YAAY;AACpB;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA,CAAC;;AAED;;;;;;;;;;;;ACjGa;;AAEb;AACA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACVa;;AAEb,YAAY,mBAAO,CAAC,qDAAY;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,OAAO;AACP,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;;;;ACrEa;;AAEb;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACba;;AAEb,YAAY,mBAAO,CAAC,qDAAY;;AAEhC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,2CAA2C;AAC3C,SAAS;;AAET;AACA,4DAA4D,wBAAwB;AACpF;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,kCAAkC;AAClC,gCAAgC,cAAc;AAC9C;AACA;AACA,KAAK;AACL;;;;;;;;;;;;ACpDa;;AAEb;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACba;;AAEb;AACA;AACA;AACA,WAAW,GAAG;AACd,aAAa,SAAS;AACtB;AACA;AACA;AACA;;;;;;;;;;;;ACVa;;AAEb,YAAY,mBAAO,CAAC,qDAAY;;AAEhC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,gBAAgB;AAChB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,gBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;;;;;;;;;;;ACnEa;;AAEb,YAAY,mBAAO,CAAC,mDAAU;;AAE9B;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;;;;;ACXa;;AAEb,YAAY,mBAAO,CAAC,qDAAY;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA,kBAAkB;;AAElB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,GAAG;;AAEH;AACA;;;;;;;;;;;;ACpDa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA,WAAW,UAAU;AACrB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AC1Ba;;AAEb,WAAW,mBAAO,CAAC,gEAAgB;;AAEnC;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY,SAAS;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,UAAU;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oCAAoC,OAAO;AAC3C;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,SAAS,GAAG,SAAS;AAC5C,4BAA4B;AAC5B;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,4BAA4B;AAC5B,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;;AAEA,wCAAwC,OAAO;AAC/C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AChRW,KAAK;;;iCAAV,QAAI;;;;;;;;;;;;;;;;;;AAFR,6DAQK,qBARL;AACC,6DAMI,SANJ;;;;;;;;;;;;;AACQ,WAAK;;;mCAAV,QAAI;;;;;;;;;;;;;;;;wCAAJ;;;;;;;;;;;;;;;;;;AAE0C,KAAI,IAAJ,CAAK,KAAL,GAAU;;;;;;AACX,KAAI,IAAJ,CAAK,SAAL,GAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAFxD,6DAEoE,oBAFpE;AACC,6DAA2D,WAA3D;;;AACA,6DAA+D,WAA/D;;;;;;;;;;;;;;;AAD0C,SAAI,IAAJ,CAAK,KAAL,GAAU;;;;;AACX,SAAI,IAAJ,CAAK,SAAL,GAAc;;;;;;;;;;;;;;;;;;;;;AANvD,KAAK,GAAL,CAAM,MAAN,GAAe,CAAf,IAAgB;;;;;;;;;;;;AAFtB,6DAaK,qBAbL;AACC,6DAAgE,YAAhE;;;AAAmB,SAAK;;;;;;;;;AAAY,WAAO;;;;;;;;;;;;;AAAxB,WAAK;;;;;AACnB,SAAK,GAAL,CAAM,MAAN,GAAe,GAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AADF,SAAK,aAAL;;;;;AAKiC,WAAO,CAAC,IAAI,CAAC,SAAN,CAAP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC/ErD;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;ACrBA,aAAa,mBAAO,CAAC,sEAAoB;AACzC,iBAAiB,mBAAO,CAAC,wDAAY;AACrC,aAAa,mBAAO,CAAC,kDAAQ;;AAE7B;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,0CAA0C,SAAS;AACnD;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,oBAAoB,aAAa;AACjC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA,kBAAkB,YAAY;AAC9B;AACA;AACA;AACA;;;;;;;;;;;ACjKA,aAAa,mBAAO,CAAC,kDAAQ;;AAE7B;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;;;;ACtDA,gBAAgB,mBAAO,CAAC,4DAAe;AACvC,aAAa,mBAAO,CAAC,kDAAQ;;AAE7B;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,YAAY;AACpB;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;;;;;;;;;;;;;;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,kCAAkC;AACpD;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,UAAU;AACvB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc,KAAK;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc,SAAS;AACvB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc,SAAS;AACvB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,gBAAgB;AAC3B,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc,SAAS;AACvB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc,SAAS;AACvB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc,SAAS;AACvB,cAAc,QAAQ;AACtB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,aAAa;AACxB,WAAW,SAAS;AACpB,YAAY,QAAQ;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,qBAAqB;AAChC;AACA,WAAW,QAAQ;AACnB,YAAY,QAAQ;AACpB;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oBAAoB,kBAAkB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;AAMD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,IAAI;AACJ;AACA;;AAEA;AACA;;AAEA;AACA,kBAAkB,sBAAsB;AACxC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,aAAa,QAAQ;AACrB;AACA;AACA,oBAAoB;AACpB;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,YAAY,QAAQ;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;;AAEJ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc,SAAS;AACvB,aAAa,SAAS;AACtB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,aAAa;AACxB,WAAW,QAAQ;AACnB,WAAW,aAAa;AACxB,WAAW,SAAS;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;;AAEA,qBAAqB;AACrB;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL,GAAG;AACH;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,GAAG;;AAEH;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc,SAAS;AACvB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,aAAa,QAAQ;AACrB;AACA;AACA,eAAe;AACf;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,aAAa;AACxB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,YAAY;AACvB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kDAAkD;AAClD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd,mBAAmB;AACnB,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA,kBAAkB,qBAAqB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc,SAAS;AACvB,aAAa;AACb;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,6CAA6C,eAAe;;AAE5D;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uEAAuE,eAAe;;AAEtF;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,GAAG;AACd,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc,SAAS;AACvB,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA,cAAc,SAAS;AACvB,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,aAAa;AACxB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,sBAAsB,wDAAwD;;AAE9E;AACA;;AAEA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,cAAc,SAAS;AACvB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,+BAA+B;AAC/B,2BAA2B;AAC3B,gCAAgC;;AAEhC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,gDAAgD;;AAEhD;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,UAAU;AACV;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,cAAc,SAAS;AACvB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,uCAAuC;;AAEvC;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,eAAe;AAC7B;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,IAAI;AACJ;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iDAAiD;AACjD;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;;AAEA;AACA;AACA,wBAAwB;AACxB,GAAG;;AAEH;;AAEA;AACA;;AAEA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,8BAA8B;AAC9B,4BAA4B;AAC5B;;AAEA,qCAAqC;AACrC;;AAEA;AACA;;AAEA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,YAAY;AAC1B,cAAc,QAAQ;AACtB,aAAa,YAAY;AACzB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;AACA,eAAe,SAAS;AACxB;AACA,eAAe,YAAY;AAC3B;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;AACA,eAAe,SAAS;AACxB;AACA,eAAe,YAAY;AAC3B;AACA,eAAe,eAAe;AAC9B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;AACA,eAAe,SAAS;AACxB;AACA,eAAe,YAAY;AAC3B;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,oBAAoB;AAClC;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;AACA,eAAe,SAAS;AACxB;AACA,eAAe,YAAY;AAC3B;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;AACA,eAAe,SAAS;AACxB;AACA,eAAe,YAAY;AAC3B;AACA,eAAe,oBAAoB;AACnC;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;AACA,eAAe,SAAS;AACxB;AACA,eAAe,YAAY;AAC3B;AACA;AACA,cAAc,cAAc;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA,cAAc,oBAAoB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,SAAS;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,SAAS;AACvB;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;AACA,eAAe,SAAS;AACxB;AACA,eAAe,YAAY;AAC3B;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;AACA,eAAe,SAAS;AACxB;AACA,eAAe,YAAY;AAC3B;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;AACA,eAAe,SAAS;AACxB;AACA,eAAe,YAAY;AAC3B;AACA;AACA,cAAc,SAAS;AACvB;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;AACA,eAAe,SAAS;AACxB;AACA,eAAe,YAAY;AAC3B;AACA,eAAe,UAAU;AACzB;AACA;AACA;AACA,cAAc,SAAS;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,aAAa;AAC3B,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,IAAI;AACJ;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,mBAAmB;AAC/B;AACA;;AAEA;AACA;AACA,YAAY,SAAS;AACrB;AACA;;AAEA;AACA;AACA,YAAY,SAAS;AACrB;AACA;;AAEA;AACA;AACA;AACA,YAAY,SAAS;AACrB;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA,kCAAkC;;AAElC;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA,kCAAkC;;AAElC;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA,WAAW,YAAY;AACvB;;AAEA;AACA;AACA,WAAW,YAAY;AACvB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,yBAAyB;AACtC,aAAa,SAAS;AACtB,aAAa,QAAQ;AACrB,cAAc,QAAQ;AACtB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,eAAe;AACf,8BAA8B;;AAE9B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,2BAA2B;AAC3B,iDAAiD,uCAAuC,kDAAkD;AAC1I,KAAK;;AAEL;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA,GAAG;AACH;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,UAAU;AACxB;AACA,cAAc,QAAQ;AACtB;AACA,cAAc,QAAQ;AACtB;AACA;;;AAGA,yDAAyD,qBAAM;AAC/D;AACA;;AAEA,iEAAe,MAAM,EAAC;AACtB;;;;;;;;;;;;ACvjFY;;AAEZ;AACA;AACA;AACA;AACA,WAAW,UAAU;AACrB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA,qBAAqB,SAAS;AAC9B;AACA;;AAEA;AACA;;;;;;;;;;;;;;;;;AC1BgD;AACzC;AACP;AACA,iCAAiC,4DAAU;AAC3C;AACA;AACA;;;;;;;;;;;;;;;;;;;ACN2C;AACpC;AACP;AACA;AACO;AACP;AACA;AACO;AACP,WAAW,4DAAoB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;ACfO;AACP;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACO;AACP;AACA;AACA,uEAAuE,UAAU,GAAG,IAAI;AACxF,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;AC1BO;AACP;AACA;AACe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;AChF2C;AACpC;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,wDAAe;AAClD;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACO;AACP,0CAA0C,YAAY;AACtD;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;AC/C8B;AACiB;AAChC;AACf;AACA;AACA,0BAA0B,gDAAO;AACjC,iBAAiB,uDAAI;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;ACxBe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;AC5DO;AACP;AACA;AACA,KAAK;AACL;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;ACnC8B;AACoB;AAClD;AACA;AACA;AACA;AACA;AACA;AACe;AACf;AACA;AACA;AACA;AACA,0BAA0B,gDAAO;AACjC;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,oBAAoB;AAC5C;AACA;AACA;AACA,yCAAyC,UAAU;AACnD,kEAAkE,0EAA2B;AAC7F,iDAAiD,0EAA2B;AAC5E;AACA;AACA;AACA;AACA,sEAAsE,UAAU,IAAI,eAAe;AACnG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,mBAAmB;AACxE;AACA;AACA;AACA;AACA;AACA,wCAAwC,6BAA6B;AACrE,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,yDAAyD,mBAAmB;AAC5E;AACA;AACA;AACA;AACA,wBAAwB,oBAAoB;AAC5C;AACA,6DAA6D,UAAU;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;ACtE+B;AACI;AAC2B;AACP;AACd;AACiB;AAC1D;AACA,YAAY,gEAAM;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACe;AACf;AACA;AACA;AACA;AACA,0BAA0B,yEAAM;AAChC,2BAA2B,2EAAW;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,uDAAG;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,mDAAa;AACjD;AACA,iDAAiD,eAAe;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,YAAY;AAClD,mDAAmD,kBAAkB,4EAA4E,gBAAgB,qEAAqE,YAAY;AAClP;AACA;AACA,YAAY,iDAAM;AAClB;AACA,mCAAmC,gBAAgB;AACnD,wBAAwB,gBAAgB;AACxC,yBAAyB;AACzB;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA,gGAAgG,iBAAiB;AACjH;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;AC5Me;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;ACvBqC;AACP;AAC9B;AACA;AACA;AACe,4BAA4B,wDAAK;AAChD;AACA;AACA;AACA;AACA,0BAA0B,gDAAO;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+EAA+E,YAAY;AAC3F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;AC7E0D;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA,+DAA+D,cAAc;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,gEAAM,IAAI,eAAe;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,gEAAM;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,kDAAkD,eAAe;AACjE;AACA;;;;;;;;;;;;;;;;;;;;;;;;;AC1E0D;AAC5B;AACgB;AACpB;AAC4B;AACK;AACsC;AACjG;AACA;AACA;AACA,eAAe,gEAAM;AACrB;AACA;AACA;AACA;AACA,WAAW,gEAAM;AACjB;AACe;AACf;AACA,0BAA0B,yEAAU;AACpC,0BAA0B,gDAAO;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,eAAe,iDAAU,UAAU,oEAAiB;AACpD,oBAAoB,+DAAgB;AACpC,oBAAoB,yEAA0B;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD;AAChD;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uEAAuE,WAAW;AAClF,gFAAgF,WAAW;AAC3F;AACA;AACA;AACA,gFAAgF,gEAAM;AACtF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,kFAAiB;AAC7C;AACA;AACA;AACA;AACA,4BAA4B,wFAAuB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,gBAAgB;AAC3D;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;AC/NoD;AACM;AAC1D;AACA,WAAW,gEAAM;AACjB,kBAAkB,gEAAM;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,sEAAoB;AAC3C;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,sEAAoB,uBAAuB,SAAS,IAAI,WAAW;AAChG,SAAS;AACT;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA,sEAAsE,wBAAwB,UAAU,IAAI;AAC5G;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,MAAM;AAC1B,oCAAoC,gBAAgB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;ACjEO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACO;AACP;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;ACjBqD;AACvB;AAC8C;AAC7D;AACf;AACA;AACA,4BAA4B,2DAAgB;AAC5C,wBAAwB,0EAAc;AACtC,0BAA0B,gDAAO;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,eAAe,0EAAc;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;ACxH0C;AAC3B,+BAA+B,iDAAgB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,qBAAqB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,4EAA4E,MAAM;AAClF;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;ACzC0C;AAC3B,4BAA4B,iDAAgB;AAC3D;AACA;AACA;AACA;AACA,0DAA0D,qBAAqB;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;ACrB0C;AAC3B,2BAA2B,iDAAgB;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,mFAAmF,iDAAiD;AACpI;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;ACjE0C;AAC3B,+BAA+B,iDAAgB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,qBAAqB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ;AACtD;AACA;AACA,mFAAmF,iDAAiD;AACpI;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,6BAA6B,aAAa;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;AACA,iCAAiC,cAAc;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;ACpG0C;AACa;AACxC,+BAA+B,iDAAgB;AAC9D;AACA;AACA;AACA;AACA,2CAA2C,qBAAqB;AAChE;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,qEAAS;AACpD,0CAA0C,qEAAS;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;ACvC0C;AACY;AACvC,2BAA2B,iDAAgB;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,oEAAS;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;AC/B0C;AACE;AAC7B,gCAAgC,iDAAgB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,sDAAO;AACvB;AACA;AACA;AACA,aAAa;AACb;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,UAAU,uBAAuB;AACjC,UAAU,0BAA0B;AACpC,cAAc,oBAAoB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;;;;;;;;;;;;;;;;;ACxI0C;AACQ;AACnC,iCAAiC,iDAAgB;AAChE;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,qBAAqB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,iFAAiF,yBAAyB;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,YAAY,gEAAW;AACvB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;;;;;;;;;;;;;;;;ACpF0C;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,6BAA6B,iDAAgB;AAC5D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,oBAAoB,IAAI,aAAa;AAC1E,qCAAqC,gBAAgB,IAAI,SAAS;AAClE,qCAAqC,qBAAqB,IAAI,cAAc;AAC5E,qCAAqC,qBAAqB,IAAI,cAAc;AAC5E,qCAAqC,mBAAmB,IAAI,YAAY;AACxE;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;;;;;;;;;;;;;;;;ACrE0C;AAC3B,6BAA6B,iDAAgB;AAC5D;AACA;AACA;AACA;AACA,0DAA0D,qBAAqB;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;AC9B0C;AACkB;AAC5D;AACA;AACA;AACA;AACA;AACA,kCAAkC,iDAAgB;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,0EAAc;AAC1B;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA,sCAAsC,aAAa;AACnD,kCAAkC,SAAS;AAC3C,qCAAqC,YAAY;AACjD;AACA;AACA;;;;;;;;;;;;;;;;;;;;AC/EyD;AACI;AACtD,8BAA8B,mEAAc;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA,sGAAsG,uEAAQ;AAC9G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;AC3C0C;AAC3B,oCAAoC,iDAAgB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;AC5C0C;AACkB;AAC7C,2BAA2B,iDAAgB;AAC1D;AACA;AACA;AACA;AACA,kDAAkD,0EAAc,qDAAqD;AACrH;AACA;AACA,yDAAyD,qBAAqB;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;ACvB0C;AAC3B,+BAA+B,iDAAgB;AAC9D;AACA;AACA;AACA;AACA,4DAA4D,qBAAqB;AACjF;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;;;;;;;;;;;;;;;;AC/B0C;AAC3B,6BAA6B,iDAAgB;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;ACpF0C;AAC1C;AACA;AACA;AACe,8BAA8B,iDAAgB;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,gBAAgB;AACtD;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;ACzEsD;AAC5B;AACoB;AACvC;AACP,WAAW,iDAAU,UAAU,oEAAiB;AAChD,gBAAgB,+DAAgB;AAChC,gBAAgB,6EAA8B;AAC9C;AACA;AACA;AACA;AACA,KAAK;AACL;AACO;AACP,WAAW,iDAAU,UAAU,oEAAiB;AAChD,gBAAgB,+DAAgB;AAChC,gBAAgB,0EAA2B;AAC3C;AACA;AACA;AACA;AACA,KAAK;AACL;AACO;AACP,WAAW,iDAAU,uBAAuB,oEAAiB;AAC7D;AACA;AACA;AACA,KAAK;AACL;;;;;;;;;;;;;;;;;;;AC7BO;AACP;AACA;AACA;AACO;AACP;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;;;;;;;;;;;;;;;ACvCO;AACP;AACA;AACA;AACA,6CAA6C,OAAO;AACpD;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;ACfkD;AACA;AAC3C;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD,4EAA6B;AAChF;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,gEAAW;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,2CAA2C,yEAA0B;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,2CAA2C,yEAA0B;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,2CAA2C,yEAA0B;AACrE,gDAAgD,4EAA6B;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,+CAA+C,4EAA6B;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD,yEAA0B;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;ACjL8D;AAC/B;AACsC;AACnB;AACM;AACN;AACQ;AAC1D;AACA;AACA;AACA;AACe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,yEAA0B;AAC9D;AACA;AACA,kDAAkD,4EAA6B;AAC/E;AACA;AACA,kCAAkC,yEAA0B;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qFAAqF,cAAc;AACnG,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,0BAA0B,iDAAM;AAChC;AACA,yBAAyB;AACzB;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gEAAgE,eAAe,IAAI,cAAc;AACjG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,sEAAY;AACxB;AACA,sCAAsC,mFAAyB;AAC/D;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD,gBAAgB;AACxE;AACA;AACA,0BAA0B,yDAAO;AACjC;AACA;AACA,mCAAmC,8DAAY;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,gEAAW;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,wEAAc,uCAAuC,YAAY;AACzE;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;ACjRiE;AACqB;AAC9C;AAC+B;AACrB;AACnC;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,4EAA6B;AAC9E;AACA;AACA;AACA;AACA;AACA,wCAAwC,yEAA0B;AAClE,yCAAyC,yDAAM;AAC/C;AACA;AACA;AACA,QAAQ,2EAAiB;AACzB;AACA;AACA;AACA,uDAAuD,wEAAiB;AACxE;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA,4CAA4C,mEAAiB;AAC7D;AACA,gCAAgC,kEAAgB;AAChD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,iFAAuB;AAC/B;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;;;;;;;;;;;;;;;;;ACjIwD;AACN;AAC3C;AACP;AACA;AACA,qDAAqD,4EAA6B;AAClF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,6DAAiB;AAC5D,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;ACzBO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;ACNgE;AACI;AACN;AACa;AACX;AACN;AACW;AACL;AACa;AACf;AACF;AAC7C;AACf;AACA;AACA;AACA;AACA,yBAAyB,gFAAQ;AACjC,uBAAuB,4EAAgB;AACvC,oBAAoB,4EAAgB;AACpC,6BAA6B,uEAAI;AACjC,mBAAmB,wEAAY;AAC/B,sBAAsB,2EAAe;AACrC,+BAA+B,uFAAc;AAC7C,wBAAwB,6EAAiB;AACzC,qBAAqB,0EAAc;AACnC,yBAAyB,6EAAiB;AAC1C,qBAAqB,0EAAc;AACnC,sBAAsB,2EAAe;AACrC,gCAAgC,+EAAO;AACvC,8BAA8B,sFAAa;AAC3C,oBAAoB,yEAAa;AACjC,yBAAyB,6EAAiB;AAC1C,wBAAwB,6EAAiB;AACzC,yBAAyB,8EAAkB;AAC3C,0BAA0B,6EAAK;AAC/B,qBAAqB,6EAAK;AAC1B,qBAAqB,0EAAc;AACnC,2BAA2B,mFAAU;AACrC,iCAAiC,mFAAU;AAC3C,wBAAwB,gFAAQ;AAChC,uBAAuB,4EAAgB;AACvC,wBAAwB,gFAAQ;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,4EAA6B;AACxE;AACA;AACA;AACA;AACA,gEAAgE,gEAAiB;AACjF;AACA;AACA,yCAAyC,0EAA2B;AACpE;AACA;AACA;AACA;AACA,gEAAgE,8DAAe;AAC/E;AACA;;;;;;;;;;;;;;;;ACtEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACtBkC;AACgC;AAC3D,sBAAsB,iDAAQ;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACO,oBAAoB,iDAAQ;AACnC;AACA;AACA;AACA;AACO,sBAAsB,iDAAQ;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACO,mBAAmB,iDAAQ;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,uBAAuB,iDAAQ;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,uBAAuB,iDAAQ;AACtC;AACA,4BAA4B,gFAAoB;AAChD;AACA;AACA;AACA;AACA;AACA;AACO,qBAAqB,iDAAQ;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,wBAAwB,iDAAQ;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;;;;;;;;;;;;;;;;AC9IkC;AACnB,uBAAuB,iDAAQ;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;ACVkC;AAC3B,mBAAmB,iDAAQ;AAClC;AACA;AACA;AACA;;;;;;;;;;;;;;;;;ACLkC;AACnB,oBAAoB,iDAAQ;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;AChBkC;AACnB,yBAAyB,iDAAQ;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;ACTkC;AACnB,6BAA6B,iDAAQ;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;ACxBkC;AACwB;AAC3C,sBAAsB,iDAAQ;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,8DAAe,GAAG,kFAAmC,GAAG,oFAAqC;AAClI;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,+DAAgB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;;;;;;;;;;;;;;;;;AC1EkC;AACnB,4BAA4B,iDAAQ;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;ACb0C;AAC3B,sBAAsB,gDAAiB;AACtD;AACA;AACA;AACA;;;;;;;;;;;;;;;;;ACL8C;AAC/B;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,+DAAgB;AACxC,wBAAwB,2EAA4B;AACpD;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC1EoD;AACA;AACN;AACF;AACS;AACT;AACQ;AACJ;AACI;AACJ;AACwD;AACtD;AACO;AACP;AACsB;AAC0C;AAChD;AACb;AACtC;AACf;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,0DAAgB;AACnD,8BAA8B,sDAAY;AAC1C,kCAAkC,0DAAgB;AAClD,gCAAgC,sDAAY;AAC5C,yCAAyC,6EAAc;AACvD,mCAAmC,0DAAgB;AACnD,+BAA+B,uDAAa;AAC5C,gCAAgC,wDAAc;AAC9C,iCAAiC,wEAAe;AAChD,0CAA0C,wEAAe;AACzD,mDAAmD,+EAAsB;AACzE,sCAAsC,2EAAW;AACjD,+CAA+C,mFAAmB;AAClE,+CAA+C,2FAA2B;AAC1E,wCAAwC,4EAAqB;AAC7D,8BAA8B,sDAAY;AAC1C,kCAAkC,0DAAgB;AAClD,mCAAmC,2DAAgB;AACnD,gCAAgC,wDAAc;AAC9C,oCAAoC,wDAAiB;AACrD,qCAAqC,8DAAkB;AACvD,iCAAiC,0DAAe;AAChD,uCAAuC,kEAAY;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;AC9DO;AACP,qCAAqC,EAAE;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACO;AACP;AACA;AACA;AACA;AACA,oBAAoB,oBAAoB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe;AACf;AACA;AACA;AACA;;;;;;;;;;;;;;;;ACnDe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;ACd4D;AACC;AAC9C;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAoE,wEAAyB;AAC7F,aAAa;AACb;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,+DAAgB;AACxC,wBAAwB,6EAA8B;AACtD;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,wEAAyB;AACvD;AACA,oCAAoC,yEAA0B;AAC9D;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;;;;;;;;;;;;;;;;AClEkC;AACnB;AACf;AACA,wBAAwB,6CAAY;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;ACnEe;AACf,6CAA6C;AAC7C;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA,SAAS;AACT;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAA0D,KAAK,0CAA0C,MAAM,yCAAyC,MAAM;AAC9J;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,MAAM;AAClB,sCAAsC,MAAM;AAC5C;AACA;AACA;AACA;;;;;;;;;;;;;;;;ACpCO;AACP,0BAA0B,KAAK;AAC/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,KAAK;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,SAAS;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,YAAY;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,yBAAyB;AACxD,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,qBAAqB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,UAAU;AAC7C;AACA,eAAe,aAAa;AAC5B;AACA;AACA;AACA;AACA,WAAW,WAAW;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,mBAAmB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,uBAAuB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,IAAI;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,kBAAkB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,mBAAmB;AACvC,qBAAqB,4CAA4C;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,kBAAkB;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,QAAQ;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,4BAA4B;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,kBAAkB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,2BAA2B;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA,oBAAoB,2BAA2B;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,oBAAoB,QAAQ,SAAS,aAAa,cAAc;AAClH,2BAA2B,WAAW,YAAY,sBAAsB,YAAY;AACpF;AACA;AACA;AACA;AACA;AACA,iEAAiE,0BAA0B;AAC3F;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,mBAAmB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,mBAAmB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB,oBAAoB,QAAQ;AAC5B;AACA,kCAAkC,EAAE,cAAc;AAClD;AACA,oCAAoC,EAAE,cAAc,GAAG;AACvD,6BAA6B,WAAW,GAAG,IAAI;AAC/C;AACA;AACA;AACA,wEAAwE;AACxE;AACA;AACA,4CAA4C,MAAM,EAAE,KAAK;AACzD;AACA;AACA,8BAA8B,eAAe,UAAU,SAAS,EAAE,MAAM,EAAE,SAAS,YAAY,MAAM;AACrG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,oDAAoD,aAAa,UAAU;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,gBAAgB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,WAAW,YAAY,gBAAgB,MAAM,cAAc;AAC7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,6BAA6B;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,6BAA6B;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,uCAAuC,8BAA8B,EAAE,KAAK;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,iEAAiE;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,iEAAiE;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,iEAAiE;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,WAAW;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,4BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qDAAqD,KAAK,IAAI,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO;AACrX;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,KAAK,IAAI,MAAM;AACtC;AACA,KAAK;AACL;AACA;AACA;AACA,gBAAgB;AAChB,eAAe;AACf,eAAe;AACf,cAAc;AACd,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,kBAAkB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,IAAI;AAChC,4BAA4B,KAAK;AACjC;AACA;AACA;AACA;AACA,kBAAkB,QAAQ,EAAE,uBAAuB,GAAG,KAAK,GAAG,OAAO,KAAK;AAC1E,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,IAAI;AACpC;AACA;AACA;AACA;AACA;AACA,2BAA2B,IAAI,YAAY,wBAAwB,IAAI;AACvE;AACA,6BAA6B;AAC7B,mDAAmD;AACnD;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAK,EAAE,0BAA0B,gEAAgE,MAAM,GAAG,EAAE;AAC3H;AACA;AACA,gCAAgC,QAAQ;AACxC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,+CAA+C;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,cAAc;AAC9C;AACA;AACA,oBAAoB,WAAW;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,8DAA8D,mBAAmB;AACjF;AACA;AACA,sCAAsC,cAAc;AACpD;AACA;AACA;AACA,sCAAsC,cAAc;AACpD;AACA;AACA;AACA,sCAAsC,sBAAsB;AAC5D;AACA;AACA;AACA,sCAAsC,sBAAsB;AAC5D;AACA;AACA;AACA,sCAAsC,MAAM;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,iCAAiC;AACjF;AACA;AACA,uDAAuD,iCAAiC;AACxF;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD,iBAAiB;AACpE;AACA,gDAAgD,wBAAwB;AACxE;AACA;AACA;AACA,2CAA2C,uBAAuB;AAClE;AACA;AACA;AACA,0CAA0C,uBAAuB;AACjE;AACA;AACA;AACA;AACA;AACA,uCAAuC,kBAAkB;AACzD;AACA;AACA;AACA;AACA,oBAAoB,OAAO;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,KAAK,iCAAiC,SAAS;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA6D;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,uBAAuB;AACnC,0DAA0D,YAAY;AACtE;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA,qBAAqB,OAAO;AAC5B;AACA;AACA;AACA;AACA;AACA,6DAA6D,YAAY;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAE6kF;;;;;;;UClgE7kF;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,GAAG;WACH;WACA;WACA,CAAC;;;;;WCPD;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;;;;;;;;;;ACNsD;AACN;AACO;AACM;AACD;AACE;AACH;AACE;AACI;AACL;AAC5D;AACA;AACA;AACA;AACA;AACA,IAAI,0EAAU;AACd,wBAAwB,uEAAa;AACrC,iCAAiC,qEAAS;AAC1C,0CAA0C,uEAAkB;AAC5D,mCAAmC,wEAAW;AAC9C;AACA;AACA;AACA,uCAAuC,kEAAM;AAC7C;AACA;AACA,gDAAgD,uEAAQ;AACxD;AACA;AACA,4BAA4B,2EAAiB;AAC7C;AACA;AACA,gBAAgB,4EAAc;AAC9B,0DAA0D,2EAAU;AACpE;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://admincolumnspro/../admin-columns/src/node_modules/nanoassert/index.js","webpack://admincolumnspro/../admin-columns/src/node_modules/nanobus/index.js","webpack://admincolumnspro/../admin-columns/src/node_modules/nanoscheduler/index.js","webpack://admincolumnspro/../admin-columns/src/node_modules/nanotiming/browser.js","webpack://admincolumnspro/../admin-columns/src/node_modules/remove-array-items/index.js","webpack://admincolumnspro/./node_modules/axios/index.js","webpack://admincolumnspro/./node_modules/axios/lib/adapters/xhr.js","webpack://admincolumnspro/./node_modules/axios/lib/axios.js","webpack://admincolumnspro/./node_modules/axios/lib/cancel/Cancel.js","webpack://admincolumnspro/./node_modules/axios/lib/cancel/CancelToken.js","webpack://admincolumnspro/./node_modules/axios/lib/cancel/isCancel.js","webpack://admincolumnspro/./node_modules/axios/lib/core/Axios.js","webpack://admincolumnspro/./node_modules/axios/lib/core/InterceptorManager.js","webpack://admincolumnspro/./node_modules/axios/lib/core/buildFullPath.js","webpack://admincolumnspro/./node_modules/axios/lib/core/createError.js","webpack://admincolumnspro/./node_modules/axios/lib/core/dispatchRequest.js","webpack://admincolumnspro/./node_modules/axios/lib/core/enhanceError.js","webpack://admincolumnspro/./node_modules/axios/lib/core/mergeConfig.js","webpack://admincolumnspro/./node_modules/axios/lib/core/settle.js","webpack://admincolumnspro/./node_modules/axios/lib/core/transformData.js","webpack://admincolumnspro/./node_modules/axios/lib/defaults.js","webpack://admincolumnspro/./node_modules/axios/lib/helpers/bind.js","webpack://admincolumnspro/./node_modules/axios/lib/helpers/buildURL.js","webpack://admincolumnspro/./node_modules/axios/lib/helpers/combineURLs.js","webpack://admincolumnspro/./node_modules/axios/lib/helpers/cookies.js","webpack://admincolumnspro/./node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack://admincolumnspro/./node_modules/axios/lib/helpers/isAxiosError.js","webpack://admincolumnspro/./node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack://admincolumnspro/./node_modules/axios/lib/helpers/normalizeHeaderName.js","webpack://admincolumnspro/./node_modules/axios/lib/helpers/parseHeaders.js","webpack://admincolumnspro/./node_modules/axios/lib/helpers/spread.js","webpack://admincolumnspro/./node_modules/axios/lib/utils.js","webpack://admincolumnspro/./editing/js/editable/components/PostLinks.svelte","webpack://admincolumnspro/./node_modules/nanoassert/index.js","webpack://admincolumnspro/./node_modules/nanobus/index.js","webpack://admincolumnspro/./node_modules/nanoscheduler/index.js","webpack://admincolumnspro/./node_modules/nanotiming/browser.js","webpack://admincolumnspro/./node_modules/popper.js/dist/esm/popper.js","webpack://admincolumnspro/./node_modules/remove-array-items/index.js","webpack://admincolumnspro/../admin-columns/src/js/helpers/admin-columns.ts","webpack://admincolumnspro/../admin-columns/src/js/helpers/elements.ts","webpack://admincolumnspro/../admin-columns/src/js/helpers/global.ts","webpack://admincolumnspro/../admin-columns/src/js/helpers/html-element.ts","webpack://admincolumnspro/../admin-columns/src/js/helpers/table.ts","webpack://admincolumnspro/../admin-columns/src/js/modules/ac-services.ts","webpack://admincolumnspro/../admin-columns/src/js/modules/modal.ts","webpack://admincolumnspro/../admin-columns/src/js/plugin/tooltip.ts","webpack://admincolumnspro/./editing/js/bulk-edit/bulk-edit-row.ts","webpack://admincolumnspro/./editing/js/bulk-edit/bulk-edit.ts","webpack://admincolumnspro/./editing/js/bulk-edit/bulk-logger.ts","webpack://admincolumnspro/./editing/js/bulk-edit/bulk-modal.ts","webpack://admincolumnspro/./editing/js/bulk-edit/bulk-notice.ts","webpack://admincolumnspro/./editing/js/bulk-edit/bulk-processor.ts","webpack://admincolumnspro/./editing/js/bulk-edit/log-component.ts","webpack://admincolumnspro/./editing/js/const.ts","webpack://admincolumnspro/./editing/js/editable/abstract.ts","webpack://admincolumnspro/./editing/js/editable/checkbox.ts","webpack://admincolumnspro/./editing/js/editable/color.ts","webpack://admincolumnspro/./editing/js/editable/date.ts","webpack://admincolumnspro/./editing/js/editable/date_time.ts","webpack://admincolumnspro/./editing/js/editable/fullname.ts","webpack://admincolumnspro/./editing/js/editable/link.ts","webpack://admincolumnspro/./editing/js/editable/media.ts","webpack://admincolumnspro/./editing/js/editable/multi_input.ts","webpack://admincolumnspro/./editing/js/editable/number_extended.ts","webpack://admincolumnspro/./editing/js/editable/select.ts","webpack://admincolumnspro/./editing/js/editable/select2_ajax.ts","webpack://admincolumnspro/./editing/js/editable/select2_dropdown.ts","webpack://admincolumnspro/./editing/js/editable/select2_remote.ts","webpack://admincolumnspro/./editing/js/editable/text.ts","webpack://admincolumnspro/./editing/js/editable/textarea.ts","webpack://admincolumnspro/./editing/js/editable/toggle.ts","webpack://admincolumnspro/./editing/js/editable/wysiwyg.ts","webpack://admincolumnspro/./editing/js/helpers/ajax.ts","webpack://admincolumnspro/./editing/js/helpers/object.ts","webpack://admincolumnspro/./editing/js/helpers/rows.ts","webpack://admincolumnspro/./editing/js/inline-edit/inline-edit-actions.ts","webpack://admincolumnspro/./editing/js/inline-edit/inline-edit-cell.ts","webpack://admincolumnspro/./editing/js/inline-edit/inline-edit.ts","webpack://admincolumnspro/./editing/js/middleware/cells.ts","webpack://admincolumnspro/./editing/js/middleware/columns.ts","webpack://admincolumnspro/./editing/js/middleware/editable.ts","webpack://admincolumnspro/./editing/js/middleware/editable/abstract.ts","webpack://admincolumnspro/./editing/js/middleware/editable/default.ts","webpack://admincolumnspro/./editing/js/middleware/editable/fullname.ts","webpack://admincolumnspro/./editing/js/middleware/editable/link.ts","webpack://admincolumnspro/./editing/js/middleware/editable/media.ts","webpack://admincolumnspro/./editing/js/middleware/editable/multi_input.ts","webpack://admincolumnspro/./editing/js/middleware/editable/number_extended.ts","webpack://admincolumnspro/./editing/js/middleware/editable/select2.ts","webpack://admincolumnspro/./editing/js/middleware/editable/select2_remote.ts","webpack://admincolumnspro/./editing/js/middleware/editable/taxonomy.ts","webpack://admincolumnspro/./editing/js/modules/data-storage.ts","webpack://admincolumnspro/./editing/js/modules/editables.ts","webpack://admincolumnspro/./editing/js/modules/helper.ts","webpack://admincolumnspro/./editing/js/modules/main-module.ts","webpack://admincolumnspro/./editing/js/modules/table-update.ts","webpack://admincolumnspro/./editing/js/templates/editable.ts","webpack://admincolumnspro/./editing/js/templates/form.ts","webpack://admincolumnspro/./export/js/helper/string.ts","webpack://admincolumnspro/./node_modules/svelte/internal/index.mjs","webpack://admincolumnspro/webpack/bootstrap","webpack://admincolumnspro/webpack/runtime/compat get default export","webpack://admincolumnspro/webpack/runtime/define property getters","webpack://admincolumnspro/webpack/runtime/global","webpack://admincolumnspro/webpack/runtime/hasOwnProperty shorthand","webpack://admincolumnspro/webpack/runtime/make namespace object","webpack://admincolumnspro/./editing/js/table.ts"],"sourcesContent":["assert.notEqual = notEqual\nassert.notOk = notOk\nassert.equal = equal\nassert.ok = assert\n\nmodule.exports = assert\n\nfunction equal (a, b, m) {\n assert(a == b, m) // eslint-disable-line eqeqeq\n}\n\nfunction notEqual (a, b, m) {\n assert(a != b, m) // eslint-disable-line eqeqeq\n}\n\nfunction notOk (t, m) {\n assert(!t, m)\n}\n\nfunction assert (t, m) {\n if (!t) throw new Error(m || 'AssertionError')\n}\n","var splice = require('remove-array-items')\nvar nanotiming = require('nanotiming')\nvar assert = require('assert')\n\nmodule.exports = Nanobus\n\nfunction Nanobus (name) {\n if (!(this instanceof Nanobus)) return new Nanobus(name)\n\n this._name = name || 'nanobus'\n this._starListeners = []\n this._listeners = {}\n}\n\nNanobus.prototype.emit = function (eventName) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.emit: eventName should be type string or symbol')\n\n var data = []\n for (var i = 1, len = arguments.length; i < len; i++) {\n data.push(arguments[i])\n }\n\n var emitTiming = nanotiming(this._name + \"('\" + eventName.toString() + \"')\")\n var listeners = this._listeners[eventName]\n if (listeners && listeners.length > 0) {\n this._emit(this._listeners[eventName], data)\n }\n\n if (this._starListeners.length > 0) {\n this._emit(this._starListeners, eventName, data, emitTiming.uuid)\n }\n emitTiming()\n\n return this\n}\n\nNanobus.prototype.on = Nanobus.prototype.addListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.on: eventName should be type string or symbol')\n assert.equal(typeof listener, 'function', 'nanobus.on: listener should be type function')\n\n if (eventName === '*') {\n this._starListeners.push(listener)\n } else {\n if (!this._listeners[eventName]) this._listeners[eventName] = []\n this._listeners[eventName].push(listener)\n }\n return this\n}\n\nNanobus.prototype.prependListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.prependListener: eventName should be type string or symbol')\n assert.equal(typeof listener, 'function', 'nanobus.prependListener: listener should be type function')\n\n if (eventName === '*') {\n this._starListeners.unshift(listener)\n } else {\n if (!this._listeners[eventName]) this._listeners[eventName] = []\n this._listeners[eventName].unshift(listener)\n }\n return this\n}\n\nNanobus.prototype.once = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.once: eventName should be type string or symbol')\n assert.equal(typeof listener, 'function', 'nanobus.once: listener should be type function')\n\n var self = this\n this.on(eventName, once)\n function once () {\n listener.apply(self, arguments)\n self.removeListener(eventName, once)\n }\n return this\n}\n\nNanobus.prototype.prependOnceListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.prependOnceListener: eventName should be type string or symbol')\n assert.equal(typeof listener, 'function', 'nanobus.prependOnceListener: listener should be type function')\n\n var self = this\n this.prependListener(eventName, once)\n function once () {\n listener.apply(self, arguments)\n self.removeListener(eventName, once)\n }\n return this\n}\n\nNanobus.prototype.removeListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.removeListener: eventName should be type string or symbol')\n assert.equal(typeof listener, 'function', 'nanobus.removeListener: listener should be type function')\n\n if (eventName === '*') {\n this._starListeners = this._starListeners.slice()\n return remove(this._starListeners, listener)\n } else {\n if (typeof this._listeners[eventName] !== 'undefined') {\n this._listeners[eventName] = this._listeners[eventName].slice()\n }\n\n return remove(this._listeners[eventName], listener)\n }\n\n function remove (arr, listener) {\n if (!arr) return\n var index = arr.indexOf(listener)\n if (index !== -1) {\n splice(arr, index, 1)\n return true\n }\n }\n}\n\nNanobus.prototype.removeAllListeners = function (eventName) {\n if (eventName) {\n if (eventName === '*') {\n this._starListeners = []\n } else {\n this._listeners[eventName] = []\n }\n } else {\n this._starListeners = []\n this._listeners = {}\n }\n return this\n}\n\nNanobus.prototype.listeners = function (eventName) {\n var listeners = eventName !== '*'\n ? this._listeners[eventName]\n : this._starListeners\n\n var ret = []\n if (listeners) {\n var ilength = listeners.length\n for (var i = 0; i < ilength; i++) ret.push(listeners[i])\n }\n return ret\n}\n\nNanobus.prototype._emit = function (arr, eventName, data, uuid) {\n if (typeof arr === 'undefined') return\n if (arr.length === 0) return\n if (data === undefined) {\n data = eventName\n eventName = null\n }\n\n if (eventName) {\n if (uuid !== undefined) {\n data = [eventName].concat(data, uuid)\n } else {\n data = [eventName].concat(data)\n }\n }\n\n var length = arr.length\n for (var i = 0; i < length; i++) {\n var listener = arr[i]\n listener.apply(listener, data)\n }\n}\n","var assert = require('assert')\n\nvar hasWindow = typeof window !== 'undefined'\n\nfunction createScheduler () {\n var scheduler\n if (hasWindow) {\n if (!window._nanoScheduler) window._nanoScheduler = new NanoScheduler(true)\n scheduler = window._nanoScheduler\n } else {\n scheduler = new NanoScheduler()\n }\n return scheduler\n}\n\nfunction NanoScheduler (hasWindow) {\n this.hasWindow = hasWindow\n this.hasIdle = this.hasWindow && window.requestIdleCallback\n this.method = this.hasIdle ? window.requestIdleCallback.bind(window) : this.setTimeout\n this.scheduled = false\n this.queue = []\n}\n\nNanoScheduler.prototype.push = function (cb) {\n assert.equal(typeof cb, 'function', 'nanoscheduler.push: cb should be type function')\n\n this.queue.push(cb)\n this.schedule()\n}\n\nNanoScheduler.prototype.schedule = function () {\n if (this.scheduled) return\n\n this.scheduled = true\n var self = this\n this.method(function (idleDeadline) {\n var cb\n while (self.queue.length && idleDeadline.timeRemaining() > 0) {\n cb = self.queue.shift()\n cb(idleDeadline)\n }\n self.scheduled = false\n if (self.queue.length) self.schedule()\n })\n}\n\nNanoScheduler.prototype.setTimeout = function (cb) {\n setTimeout(cb, 0, {\n timeRemaining: function () {\n return 1\n }\n })\n}\n\nmodule.exports = createScheduler\n","var scheduler = require('nanoscheduler')()\nvar assert = require('assert')\n\nvar perf\nnanotiming.disabled = true\ntry {\n perf = window.performance\n nanotiming.disabled = window.localStorage.DISABLE_NANOTIMING === 'true' || !perf.mark\n} catch (e) { }\n\nmodule.exports = nanotiming\n\nfunction nanotiming (name) {\n assert.equal(typeof name, 'string', 'nanotiming: name should be type string')\n\n if (nanotiming.disabled) return noop\n\n var uuid = (perf.now() * 10000).toFixed() % Number.MAX_SAFE_INTEGER\n var startName = 'start-' + uuid + '-' + name\n perf.mark(startName)\n\n function end (cb) {\n var endName = 'end-' + uuid + '-' + name\n perf.mark(endName)\n\n scheduler.push(function () {\n var err = null\n try {\n var measureName = name + ' [' + uuid + ']'\n perf.measure(measureName, startName, endName)\n perf.clearMarks(startName)\n perf.clearMarks(endName)\n } catch (e) { err = e }\n if (cb) cb(err, name)\n })\n }\n\n end.uuid = uuid\n return end\n}\n\nfunction noop (cb) {\n if (cb) {\n scheduler.push(function () {\n cb(new Error('nanotiming: performance API unavailable'))\n })\n }\n}\n","'use strict'\n\n/**\n * Remove a range of items from an array\n *\n * @function removeItems\n * @param {Array<*>} arr The target array\n * @param {number} startIdx The index to begin removing from (inclusive)\n * @param {number} removeCount How many items to remove\n */\nmodule.exports = function removeItems (arr, startIdx, removeCount) {\n var i, length = arr.length\n\n if (startIdx >= length || removeCount === 0) {\n return\n }\n\n removeCount = (startIdx + removeCount > length ? length - startIdx : removeCount)\n\n var len = length - removeCount\n\n for (i = startIdx; i < len; ++i) {\n arr[i] = arr[i + removeCount]\n }\n\n arr.length = len\n}\n","module.exports = require('./lib/axios');","'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar cookies = require('./../helpers/cookies');\nvar buildURL = require('./../helpers/buildURL');\nvar buildFullPath = require('../core/buildFullPath');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n // Listen for ready state\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(resolve, reject, response);\n\n // Clean up request\n request = null;\n };\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(createError('Request aborted', config, 'ECONNABORTED', request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(createError(timeoutErrorMessage, config, 'ECONNABORTED',\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (config.responseType) {\n try {\n request.responseType = config.responseType;\n } catch (e) {\n // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.\n // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.\n if (config.responseType !== 'json') {\n throw e;\n }\n }\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n request.abort();\n reject(cancel);\n // Clean up request\n request = null;\n });\n }\n\n if (!requestData) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar mergeConfig = require('./core/mergeConfig');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n return createInstance(mergeConfig(axios.defaults, instanceConfig));\n};\n\n// Expose Cancel & CancelToken\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\n// Expose isAxiosError\naxios.isAxiosError = require('./helpers/isAxiosError');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n","'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n","'use strict';\n\nvar Cancel = require('./Cancel');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new Cancel(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\n","'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n","'use strict';\n\nvar utils = require('./../utils');\nvar buildURL = require('../helpers/buildURL');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\nvar mergeConfig = require('./mergeConfig');\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = arguments[1] || {};\n config.url = arguments[0];\n } else {\n config = config || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n } else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n } else {\n config.method = 'get';\n }\n\n // Hook up interceptors middleware\n var chain = [dispatchRequest, undefined];\n var promise = Promise.resolve(config);\n\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n chain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n chain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n};\n\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\\?/, '');\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nmodule.exports = Axios;\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\n this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected\n });\n return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n","'use strict';\n\nvar isAbsoluteURL = require('../helpers/isAbsoluteURL');\nvar combineURLs = require('../helpers/combineURLs');\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n * @returns {string} The combined full path\n */\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n};\n","'use strict';\n\nvar enhanceError = require('./enhanceError');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n","'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData(\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = config.adapter || defaults.adapter;\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData(\n response.data,\n response.headers,\n config.transformResponse\n );\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData(\n reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n","'use strict';\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n\n error.request = request;\n error.response = response;\n error.isAxiosError = true;\n\n error.toJSON = function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: this.config,\n code: this.code\n };\n };\n return error;\n};\n","'use strict';\n\nvar utils = require('../utils');\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n * @returns {Object} New object resulting from merging config2 to config1\n */\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n var valueFromConfig2Keys = ['url', 'method', 'data'];\n var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];\n var defaultToConfig2Keys = [\n 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',\n 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',\n 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress',\n 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent',\n 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'\n ];\n var directMergeKeys = ['validateStatus'];\n\n function getMergedValue(target, source) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge(target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n function mergeDeepProperties(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n }\n\n utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n }\n });\n\n utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);\n\n utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n utils.forEach(directMergeKeys, function merge(prop) {\n if (prop in config2) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (prop in config1) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n var axiosKeys = valueFromConfig2Keys\n .concat(mergeDeepPropertiesKeys)\n .concat(defaultToConfig2Keys)\n .concat(directMergeKeys);\n\n var otherKeys = Object\n .keys(config1)\n .concat(Object.keys(config2))\n .filter(function filterAxiosKeys(key) {\n return axiosKeys.indexOf(key) === -1;\n });\n\n utils.forEach(otherKeys, mergeDeepProperties);\n\n return config;\n};\n","'use strict';\n\nvar createError = require('./createError');\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError(\n 'Request failed with status code ' + response.status,\n response.config,\n null,\n response.request,\n response\n ));\n }\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn(data, headers);\n });\n\n return data;\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n return adapter;\n}\n\nvar defaults = {\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data)) {\n setContentTypeIfUnset(headers, 'application/json;charset=utf-8');\n return JSON.stringify(data);\n }\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n /*eslint no-param-reassign:0*/\n if (typeof data === 'string') {\n try {\n data = JSON.parse(data);\n } catch (e) { /* Ignore */ }\n }\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\n\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n","'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n","'use strict';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nmodule.exports = function isAxiosError(payload) {\n return (typeof payload === 'object') && (payload.isAxiosError === true);\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n","'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n","'use strict';\n\nvar bind = require('./helpers/bind');\n\n/*global toString:true*/\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {Object} val The value to test\n * @return {boolean} True if value is a plain Object, otherwise false\n */\nfunction isPlainObject(val) {\n if (toString.call(val) !== '[object Object]') {\n return false;\n }\n\n var prototype = Object.getPrototypeOf(val);\n return prototype === null || prototype === Object.prototype;\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (isPlainObject(result[key]) && isPlainObject(val)) {\n result[key] = merge(result[key], val);\n } else if (isPlainObject(val)) {\n result[key] = merge({}, val);\n } else if (isArray(val)) {\n result[key] = val.slice();\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n * @return {string} content value without BOM\n */\nfunction stripBOM(content) {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isPlainObject: isPlainObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n extend: extend,\n trim: trim,\n stripBOM: stripBOM\n};\n","<script lang=\"ts\">\n import axios from \"axios\";\n\n declare const ajaxurl: string;\n\n type postInfo = {\n id: number,\n title: string,\n permalink: string,\n post_type: string\n }\n\n export let value: string;\n export let onChange: Function;\n\n let items: Array<postInfo> = [];\n\n let CancelToken = axios.CancelToken;\n let CancelSource = CancelToken.source();\n\n const getPermalinks = (search: string) => {\n CancelToken = axios.CancelToken;\n CancelSource = CancelToken.source();\n\n return axios.get(ajaxurl, {\n cancelToken: CancelSource.token,\n params: {\n search: search,\n action: 'acp-permalinks'\n }\n });\n }\n\n const isUrl = (value: string): boolean => {\n return (value.match(/http:|https:|ftp:|mailto:/) !== null);\n }\n\n const emitChange = () => {\n if (onChange) {\n onChange(value);\n }\n }\n\n const onClick = (permalink: string) => {\n value = permalink;\n items = [];\n emitChange();\n }\n\n const onInput = () => {\n emitChange();\n CancelSource.cancel();\n\n if (isUrl(value)) {\n items = [];\n return;\n }\n\n getPermalinks(value).then(d => {\n items = d.data.data;\n }).catch( () => {\n\n } );\n }\n\n const init = ( el: HTMLElement ) => {\n setTimeout(() =>{\n el.focus()\n\t\t},200);\n\t}\n\n</script>\n\n<div class=\"\">\n\t<input bind:value={value} on:keyup={onInput} type=\"url\" use:init>\n\t{#if items.length > 0}\n\t\t<div class=\"acp-post-list\">\n\t\t\t<ul class=\"acp-post-list__list\">\n\t\t\t\t{#each items as item}\n\t\t\t\t\t<li class=\"acp-post-list__item\" on:click={()=>{ onClick(item.permalink)}}>\n\t\t\t\t\t\t<span class=\"acp-post-list__item__title\">{item.title}</span>\n\t\t\t\t\t\t<span class=\"acp-post-list__item__type\">{item.post_type}</span></li>\n\t\t\t\t{/each}\n\t\t\t</ul>\n\t\t</div>\n\t{/if}\n</div>","assert.notEqual = notEqual\nassert.notOk = notOk\nassert.equal = equal\nassert.ok = assert\n\nmodule.exports = assert\n\nfunction equal (a, b, m) {\n assert(a == b, m) // eslint-disable-line eqeqeq\n}\n\nfunction notEqual (a, b, m) {\n assert(a != b, m) // eslint-disable-line eqeqeq\n}\n\nfunction notOk (t, m) {\n assert(!t, m)\n}\n\nfunction assert (t, m) {\n if (!t) throw new Error(m || 'AssertionError')\n}\n","var splice = require('remove-array-items')\nvar nanotiming = require('nanotiming')\nvar assert = require('assert')\n\nmodule.exports = Nanobus\n\nfunction Nanobus (name) {\n if (!(this instanceof Nanobus)) return new Nanobus(name)\n\n this._name = name || 'nanobus'\n this._starListeners = []\n this._listeners = {}\n}\n\nNanobus.prototype.emit = function (eventName) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.emit: eventName should be type string or symbol')\n\n var data = []\n for (var i = 1, len = arguments.length; i < len; i++) {\n data.push(arguments[i])\n }\n\n var emitTiming = nanotiming(this._name + \"('\" + eventName.toString() + \"')\")\n var listeners = this._listeners[eventName]\n if (listeners && listeners.length > 0) {\n this._emit(this._listeners[eventName], data)\n }\n\n if (this._starListeners.length > 0) {\n this._emit(this._starListeners, eventName, data, emitTiming.uuid)\n }\n emitTiming()\n\n return this\n}\n\nNanobus.prototype.on = Nanobus.prototype.addListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.on: eventName should be type string or symbol')\n assert.equal(typeof listener, 'function', 'nanobus.on: listener should be type function')\n\n if (eventName === '*') {\n this._starListeners.push(listener)\n } else {\n if (!this._listeners[eventName]) this._listeners[eventName] = []\n this._listeners[eventName].push(listener)\n }\n return this\n}\n\nNanobus.prototype.prependListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.prependListener: eventName should be type string or symbol')\n assert.equal(typeof listener, 'function', 'nanobus.prependListener: listener should be type function')\n\n if (eventName === '*') {\n this._starListeners.unshift(listener)\n } else {\n if (!this._listeners[eventName]) this._listeners[eventName] = []\n this._listeners[eventName].unshift(listener)\n }\n return this\n}\n\nNanobus.prototype.once = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.once: eventName should be type string or symbol')\n assert.equal(typeof listener, 'function', 'nanobus.once: listener should be type function')\n\n var self = this\n this.on(eventName, once)\n function once () {\n listener.apply(self, arguments)\n self.removeListener(eventName, once)\n }\n return this\n}\n\nNanobus.prototype.prependOnceListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.prependOnceListener: eventName should be type string or symbol')\n assert.equal(typeof listener, 'function', 'nanobus.prependOnceListener: listener should be type function')\n\n var self = this\n this.prependListener(eventName, once)\n function once () {\n listener.apply(self, arguments)\n self.removeListener(eventName, once)\n }\n return this\n}\n\nNanobus.prototype.removeListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.removeListener: eventName should be type string or symbol')\n assert.equal(typeof listener, 'function', 'nanobus.removeListener: listener should be type function')\n\n if (eventName === '*') {\n this._starListeners = this._starListeners.slice()\n return remove(this._starListeners, listener)\n } else {\n if (typeof this._listeners[eventName] !== 'undefined') {\n this._listeners[eventName] = this._listeners[eventName].slice()\n }\n\n return remove(this._listeners[eventName], listener)\n }\n\n function remove (arr, listener) {\n if (!arr) return\n var index = arr.indexOf(listener)\n if (index !== -1) {\n splice(arr, index, 1)\n return true\n }\n }\n}\n\nNanobus.prototype.removeAllListeners = function (eventName) {\n if (eventName) {\n if (eventName === '*') {\n this._starListeners = []\n } else {\n this._listeners[eventName] = []\n }\n } else {\n this._starListeners = []\n this._listeners = {}\n }\n return this\n}\n\nNanobus.prototype.listeners = function (eventName) {\n var listeners = eventName !== '*'\n ? this._listeners[eventName]\n : this._starListeners\n\n var ret = []\n if (listeners) {\n var ilength = listeners.length\n for (var i = 0; i < ilength; i++) ret.push(listeners[i])\n }\n return ret\n}\n\nNanobus.prototype._emit = function (arr, eventName, data, uuid) {\n if (typeof arr === 'undefined') return\n if (arr.length === 0) return\n if (data === undefined) {\n data = eventName\n eventName = null\n }\n\n if (eventName) {\n if (uuid !== undefined) {\n data = [eventName].concat(data, uuid)\n } else {\n data = [eventName].concat(data)\n }\n }\n\n var length = arr.length\n for (var i = 0; i < length; i++) {\n var listener = arr[i]\n listener.apply(listener, data)\n }\n}\n","var assert = require('assert')\n\nvar hasWindow = typeof window !== 'undefined'\n\nfunction createScheduler () {\n var scheduler\n if (hasWindow) {\n if (!window._nanoScheduler) window._nanoScheduler = new NanoScheduler(true)\n scheduler = window._nanoScheduler\n } else {\n scheduler = new NanoScheduler()\n }\n return scheduler\n}\n\nfunction NanoScheduler (hasWindow) {\n this.hasWindow = hasWindow\n this.hasIdle = this.hasWindow && window.requestIdleCallback\n this.method = this.hasIdle ? window.requestIdleCallback.bind(window) : this.setTimeout\n this.scheduled = false\n this.queue = []\n}\n\nNanoScheduler.prototype.push = function (cb) {\n assert.equal(typeof cb, 'function', 'nanoscheduler.push: cb should be type function')\n\n this.queue.push(cb)\n this.schedule()\n}\n\nNanoScheduler.prototype.schedule = function () {\n if (this.scheduled) return\n\n this.scheduled = true\n var self = this\n this.method(function (idleDeadline) {\n var cb\n while (self.queue.length && idleDeadline.timeRemaining() > 0) {\n cb = self.queue.shift()\n cb(idleDeadline)\n }\n self.scheduled = false\n if (self.queue.length) self.schedule()\n })\n}\n\nNanoScheduler.prototype.setTimeout = function (cb) {\n setTimeout(cb, 0, {\n timeRemaining: function () {\n return 1\n }\n })\n}\n\nmodule.exports = createScheduler\n","var scheduler = require('nanoscheduler')()\nvar assert = require('assert')\n\nvar perf\nnanotiming.disabled = true\ntry {\n perf = window.performance\n nanotiming.disabled = window.localStorage.DISABLE_NANOTIMING === 'true' || !perf.mark\n} catch (e) { }\n\nmodule.exports = nanotiming\n\nfunction nanotiming (name) {\n assert.equal(typeof name, 'string', 'nanotiming: name should be type string')\n\n if (nanotiming.disabled) return noop\n\n var uuid = (perf.now() * 10000).toFixed() % Number.MAX_SAFE_INTEGER\n var startName = 'start-' + uuid + '-' + name\n perf.mark(startName)\n\n function end (cb) {\n var endName = 'end-' + uuid + '-' + name\n perf.mark(endName)\n\n scheduler.push(function () {\n var err = null\n try {\n var measureName = name + ' [' + uuid + ']'\n perf.measure(measureName, startName, endName)\n perf.clearMarks(startName)\n perf.clearMarks(endName)\n } catch (e) { err = e }\n if (cb) cb(err, name)\n })\n }\n\n end.uuid = uuid\n return end\n}\n\nfunction noop (cb) {\n if (cb) {\n scheduler.push(function () {\n cb(new Error('nanotiming: performance API unavailable'))\n })\n }\n}\n","/**!\n * @fileOverview Kickass library to create and place poppers near their reference elements.\n * @version 1.16.1\n * @license\n * Copyright (c) 2016 Federico Zivolo and contributors\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nvar isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof navigator !== 'undefined';\n\nvar timeoutDuration = function () {\n var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox'];\n for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) {\n if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) {\n return 1;\n }\n }\n return 0;\n}();\n\nfunction microtaskDebounce(fn) {\n var called = false;\n return function () {\n if (called) {\n return;\n }\n called = true;\n window.Promise.resolve().then(function () {\n called = false;\n fn();\n });\n };\n}\n\nfunction taskDebounce(fn) {\n var scheduled = false;\n return function () {\n if (!scheduled) {\n scheduled = true;\n setTimeout(function () {\n scheduled = false;\n fn();\n }, timeoutDuration);\n }\n };\n}\n\nvar supportsMicroTasks = isBrowser && window.Promise;\n\n/**\n* Create a debounced version of a method, that's asynchronously deferred\n* but called in the minimum time possible.\n*\n* @method\n* @memberof Popper.Utils\n* @argument {Function} fn\n* @returns {Function}\n*/\nvar debounce = supportsMicroTasks ? microtaskDebounce : taskDebounce;\n\n/**\n * Check if the given variable is a function\n * @method\n * @memberof Popper.Utils\n * @argument {Any} functionToCheck - variable to check\n * @returns {Boolean} answer to: is a function?\n */\nfunction isFunction(functionToCheck) {\n var getType = {};\n return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';\n}\n\n/**\n * Get CSS computed property of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Eement} element\n * @argument {String} property\n */\nfunction getStyleComputedProperty(element, property) {\n if (element.nodeType !== 1) {\n return [];\n }\n // NOTE: 1 DOM access here\n var window = element.ownerDocument.defaultView;\n var css = window.getComputedStyle(element, null);\n return property ? css[property] : css;\n}\n\n/**\n * Returns the parentNode or the host of the element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} parent\n */\nfunction getParentNode(element) {\n if (element.nodeName === 'HTML') {\n return element;\n }\n return element.parentNode || element.host;\n}\n\n/**\n * Returns the scrolling parent of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} scroll parent\n */\nfunction getScrollParent(element) {\n // Return body, `getScroll` will take care to get the correct `scrollTop` from it\n if (!element) {\n return document.body;\n }\n\n switch (element.nodeName) {\n case 'HTML':\n case 'BODY':\n return element.ownerDocument.body;\n case '#document':\n return element.body;\n }\n\n // Firefox want us to check `-x` and `-y` variations as well\n\n var _getStyleComputedProp = getStyleComputedProperty(element),\n overflow = _getStyleComputedProp.overflow,\n overflowX = _getStyleComputedProp.overflowX,\n overflowY = _getStyleComputedProp.overflowY;\n\n if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) {\n return element;\n }\n\n return getScrollParent(getParentNode(element));\n}\n\n/**\n * Returns the reference node of the reference object, or the reference object itself.\n * @method\n * @memberof Popper.Utils\n * @param {Element|Object} reference - the reference element (the popper will be relative to this)\n * @returns {Element} parent\n */\nfunction getReferenceNode(reference) {\n return reference && reference.referenceNode ? reference.referenceNode : reference;\n}\n\nvar isIE11 = isBrowser && !!(window.MSInputMethodContext && document.documentMode);\nvar isIE10 = isBrowser && /MSIE 10/.test(navigator.userAgent);\n\n/**\n * Determines if the browser is Internet Explorer\n * @method\n * @memberof Popper.Utils\n * @param {Number} version to check\n * @returns {Boolean} isIE\n */\nfunction isIE(version) {\n if (version === 11) {\n return isIE11;\n }\n if (version === 10) {\n return isIE10;\n }\n return isIE11 || isIE10;\n}\n\n/**\n * Returns the offset parent of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} offset parent\n */\nfunction getOffsetParent(element) {\n if (!element) {\n return document.documentElement;\n }\n\n var noOffsetParent = isIE(10) ? document.body : null;\n\n // NOTE: 1 DOM access here\n var offsetParent = element.offsetParent || null;\n // Skip hidden elements which don't have an offsetParent\n while (offsetParent === noOffsetParent && element.nextElementSibling) {\n offsetParent = (element = element.nextElementSibling).offsetParent;\n }\n\n var nodeName = offsetParent && offsetParent.nodeName;\n\n if (!nodeName || nodeName === 'BODY' || nodeName === 'HTML') {\n return element ? element.ownerDocument.documentElement : document.documentElement;\n }\n\n // .offsetParent will return the closest TH, TD or TABLE in case\n // no offsetParent is present, I hate this job...\n if (['TH', 'TD', 'TABLE'].indexOf(offsetParent.nodeName) !== -1 && getStyleComputedProperty(offsetParent, 'position') === 'static') {\n return getOffsetParent(offsetParent);\n }\n\n return offsetParent;\n}\n\nfunction isOffsetContainer(element) {\n var nodeName = element.nodeName;\n\n if (nodeName === 'BODY') {\n return false;\n }\n return nodeName === 'HTML' || getOffsetParent(element.firstElementChild) === element;\n}\n\n/**\n * Finds the root node (document, shadowDOM root) of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} node\n * @returns {Element} root node\n */\nfunction getRoot(node) {\n if (node.parentNode !== null) {\n return getRoot(node.parentNode);\n }\n\n return node;\n}\n\n/**\n * Finds the offset parent common to the two provided nodes\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element1\n * @argument {Element} element2\n * @returns {Element} common offset parent\n */\nfunction findCommonOffsetParent(element1, element2) {\n // This check is needed to avoid errors in case one of the elements isn't defined for any reason\n if (!element1 || !element1.nodeType || !element2 || !element2.nodeType) {\n return document.documentElement;\n }\n\n // Here we make sure to give as \"start\" the element that comes first in the DOM\n var order = element1.compareDocumentPosition(element2) & Node.DOCUMENT_POSITION_FOLLOWING;\n var start = order ? element1 : element2;\n var end = order ? element2 : element1;\n\n // Get common ancestor container\n var range = document.createRange();\n range.setStart(start, 0);\n range.setEnd(end, 0);\n var commonAncestorContainer = range.commonAncestorContainer;\n\n // Both nodes are inside #document\n\n if (element1 !== commonAncestorContainer && element2 !== commonAncestorContainer || start.contains(end)) {\n if (isOffsetContainer(commonAncestorContainer)) {\n return commonAncestorContainer;\n }\n\n return getOffsetParent(commonAncestorContainer);\n }\n\n // one of the nodes is inside shadowDOM, find which one\n var element1root = getRoot(element1);\n if (element1root.host) {\n return findCommonOffsetParent(element1root.host, element2);\n } else {\n return findCommonOffsetParent(element1, getRoot(element2).host);\n }\n}\n\n/**\n * Gets the scroll value of the given element in the given side (top and left)\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @argument {String} side `top` or `left`\n * @returns {number} amount of scrolled pixels\n */\nfunction getScroll(element) {\n var side = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'top';\n\n var upperSide = side === 'top' ? 'scrollTop' : 'scrollLeft';\n var nodeName = element.nodeName;\n\n if (nodeName === 'BODY' || nodeName === 'HTML') {\n var html = element.ownerDocument.documentElement;\n var scrollingElement = element.ownerDocument.scrollingElement || html;\n return scrollingElement[upperSide];\n }\n\n return element[upperSide];\n}\n\n/*\n * Sum or subtract the element scroll values (left and top) from a given rect object\n * @method\n * @memberof Popper.Utils\n * @param {Object} rect - Rect object you want to change\n * @param {HTMLElement} element - The element from the function reads the scroll values\n * @param {Boolean} subtract - set to true if you want to subtract the scroll values\n * @return {Object} rect - The modifier rect object\n */\nfunction includeScroll(rect, element) {\n var subtract = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n var scrollTop = getScroll(element, 'top');\n var scrollLeft = getScroll(element, 'left');\n var modifier = subtract ? -1 : 1;\n rect.top += scrollTop * modifier;\n rect.bottom += scrollTop * modifier;\n rect.left += scrollLeft * modifier;\n rect.right += scrollLeft * modifier;\n return rect;\n}\n\n/*\n * Helper to detect borders of a given element\n * @method\n * @memberof Popper.Utils\n * @param {CSSStyleDeclaration} styles\n * Result of `getStyleComputedProperty` on the given element\n * @param {String} axis - `x` or `y`\n * @return {number} borders - The borders size of the given axis\n */\n\nfunction getBordersSize(styles, axis) {\n var sideA = axis === 'x' ? 'Left' : 'Top';\n var sideB = sideA === 'Left' ? 'Right' : 'Bottom';\n\n return parseFloat(styles['border' + sideA + 'Width']) + parseFloat(styles['border' + sideB + 'Width']);\n}\n\nfunction getSize(axis, body, html, computedStyle) {\n return Math.max(body['offset' + axis], body['scroll' + axis], html['client' + axis], html['offset' + axis], html['scroll' + axis], isIE(10) ? parseInt(html['offset' + axis]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Top' : 'Left')]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Bottom' : 'Right')]) : 0);\n}\n\nfunction getWindowSizes(document) {\n var body = document.body;\n var html = document.documentElement;\n var computedStyle = isIE(10) && getComputedStyle(html);\n\n return {\n height: getSize('Height', body, html, computedStyle),\n width: getSize('Width', body, html, computedStyle)\n };\n}\n\nvar classCallCheck = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\nvar createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\n\n\n\n\nvar defineProperty = function (obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n};\n\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\n/**\n * Given element offsets, generate an output similar to getBoundingClientRect\n * @method\n * @memberof Popper.Utils\n * @argument {Object} offsets\n * @returns {Object} ClientRect like output\n */\nfunction getClientRect(offsets) {\n return _extends({}, offsets, {\n right: offsets.left + offsets.width,\n bottom: offsets.top + offsets.height\n });\n}\n\n/**\n * Get bounding client rect of given element\n * @method\n * @memberof Popper.Utils\n * @param {HTMLElement} element\n * @return {Object} client rect\n */\nfunction getBoundingClientRect(element) {\n var rect = {};\n\n // IE10 10 FIX: Please, don't ask, the element isn't\n // considered in DOM in some circumstances...\n // This isn't reproducible in IE10 compatibility mode of IE11\n try {\n if (isIE(10)) {\n rect = element.getBoundingClientRect();\n var scrollTop = getScroll(element, 'top');\n var scrollLeft = getScroll(element, 'left');\n rect.top += scrollTop;\n rect.left += scrollLeft;\n rect.bottom += scrollTop;\n rect.right += scrollLeft;\n } else {\n rect = element.getBoundingClientRect();\n }\n } catch (e) {}\n\n var result = {\n left: rect.left,\n top: rect.top,\n width: rect.right - rect.left,\n height: rect.bottom - rect.top\n };\n\n // subtract scrollbar size from sizes\n var sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {};\n var width = sizes.width || element.clientWidth || result.width;\n var height = sizes.height || element.clientHeight || result.height;\n\n var horizScrollbar = element.offsetWidth - width;\n var vertScrollbar = element.offsetHeight - height;\n\n // if an hypothetical scrollbar is detected, we must be sure it's not a `border`\n // we make this check conditional for performance reasons\n if (horizScrollbar || vertScrollbar) {\n var styles = getStyleComputedProperty(element);\n horizScrollbar -= getBordersSize(styles, 'x');\n vertScrollbar -= getBordersSize(styles, 'y');\n\n result.width -= horizScrollbar;\n result.height -= vertScrollbar;\n }\n\n return getClientRect(result);\n}\n\nfunction getOffsetRectRelativeToArbitraryNode(children, parent) {\n var fixedPosition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n var isIE10 = isIE(10);\n var isHTML = parent.nodeName === 'HTML';\n var childrenRect = getBoundingClientRect(children);\n var parentRect = getBoundingClientRect(parent);\n var scrollParent = getScrollParent(children);\n\n var styles = getStyleComputedProperty(parent);\n var borderTopWidth = parseFloat(styles.borderTopWidth);\n var borderLeftWidth = parseFloat(styles.borderLeftWidth);\n\n // In cases where the parent is fixed, we must ignore negative scroll in offset calc\n if (fixedPosition && isHTML) {\n parentRect.top = Math.max(parentRect.top, 0);\n parentRect.left = Math.max(parentRect.left, 0);\n }\n var offsets = getClientRect({\n top: childrenRect.top - parentRect.top - borderTopWidth,\n left: childrenRect.left - parentRect.left - borderLeftWidth,\n width: childrenRect.width,\n height: childrenRect.height\n });\n offsets.marginTop = 0;\n offsets.marginLeft = 0;\n\n // Subtract margins of documentElement in case it's being used as parent\n // we do this only on HTML because it's the only element that behaves\n // differently when margins are applied to it. The margins are included in\n // the box of the documentElement, in the other cases not.\n if (!isIE10 && isHTML) {\n var marginTop = parseFloat(styles.marginTop);\n var marginLeft = parseFloat(styles.marginLeft);\n\n offsets.top -= borderTopWidth - marginTop;\n offsets.bottom -= borderTopWidth - marginTop;\n offsets.left -= borderLeftWidth - marginLeft;\n offsets.right -= borderLeftWidth - marginLeft;\n\n // Attach marginTop and marginLeft because in some circumstances we may need them\n offsets.marginTop = marginTop;\n offsets.marginLeft = marginLeft;\n }\n\n if (isIE10 && !fixedPosition ? parent.contains(scrollParent) : parent === scrollParent && scrollParent.nodeName !== 'BODY') {\n offsets = includeScroll(offsets, parent);\n }\n\n return offsets;\n}\n\nfunction getViewportOffsetRectRelativeToArtbitraryNode(element) {\n var excludeScroll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n var html = element.ownerDocument.documentElement;\n var relativeOffset = getOffsetRectRelativeToArbitraryNode(element, html);\n var width = Math.max(html.clientWidth, window.innerWidth || 0);\n var height = Math.max(html.clientHeight, window.innerHeight || 0);\n\n var scrollTop = !excludeScroll ? getScroll(html) : 0;\n var scrollLeft = !excludeScroll ? getScroll(html, 'left') : 0;\n\n var offset = {\n top: scrollTop - relativeOffset.top + relativeOffset.marginTop,\n left: scrollLeft - relativeOffset.left + relativeOffset.marginLeft,\n width: width,\n height: height\n };\n\n return getClientRect(offset);\n}\n\n/**\n * Check if the given element is fixed or is inside a fixed parent\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @argument {Element} customContainer\n * @returns {Boolean} answer to \"isFixed?\"\n */\nfunction isFixed(element) {\n var nodeName = element.nodeName;\n if (nodeName === 'BODY' || nodeName === 'HTML') {\n return false;\n }\n if (getStyleComputedProperty(element, 'position') === 'fixed') {\n return true;\n }\n var parentNode = getParentNode(element);\n if (!parentNode) {\n return false;\n }\n return isFixed(parentNode);\n}\n\n/**\n * Finds the first parent of an element that has a transformed property defined\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} first transformed parent or documentElement\n */\n\nfunction getFixedPositionOffsetParent(element) {\n // This check is needed to avoid errors in case one of the elements isn't defined for any reason\n if (!element || !element.parentElement || isIE()) {\n return document.documentElement;\n }\n var el = element.parentElement;\n while (el && getStyleComputedProperty(el, 'transform') === 'none') {\n el = el.parentElement;\n }\n return el || document.documentElement;\n}\n\n/**\n * Computed the boundaries limits and return them\n * @method\n * @memberof Popper.Utils\n * @param {HTMLElement} popper\n * @param {HTMLElement} reference\n * @param {number} padding\n * @param {HTMLElement} boundariesElement - Element used to define the boundaries\n * @param {Boolean} fixedPosition - Is in fixed position mode\n * @returns {Object} Coordinates of the boundaries\n */\nfunction getBoundaries(popper, reference, padding, boundariesElement) {\n var fixedPosition = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n\n // NOTE: 1 DOM access here\n\n var boundaries = { top: 0, left: 0 };\n var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));\n\n // Handle viewport case\n if (boundariesElement === 'viewport') {\n boundaries = getViewportOffsetRectRelativeToArtbitraryNode(offsetParent, fixedPosition);\n } else {\n // Handle other cases based on DOM element used as boundaries\n var boundariesNode = void 0;\n if (boundariesElement === 'scrollParent') {\n boundariesNode = getScrollParent(getParentNode(reference));\n if (boundariesNode.nodeName === 'BODY') {\n boundariesNode = popper.ownerDocument.documentElement;\n }\n } else if (boundariesElement === 'window') {\n boundariesNode = popper.ownerDocument.documentElement;\n } else {\n boundariesNode = boundariesElement;\n }\n\n var offsets = getOffsetRectRelativeToArbitraryNode(boundariesNode, offsetParent, fixedPosition);\n\n // In case of HTML, we need a different computation\n if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) {\n var _getWindowSizes = getWindowSizes(popper.ownerDocument),\n height = _getWindowSizes.height,\n width = _getWindowSizes.width;\n\n boundaries.top += offsets.top - offsets.marginTop;\n boundaries.bottom = height + offsets.top;\n boundaries.left += offsets.left - offsets.marginLeft;\n boundaries.right = width + offsets.left;\n } else {\n // for all the other DOM elements, this one is good\n boundaries = offsets;\n }\n }\n\n // Add paddings\n padding = padding || 0;\n var isPaddingNumber = typeof padding === 'number';\n boundaries.left += isPaddingNumber ? padding : padding.left || 0;\n boundaries.top += isPaddingNumber ? padding : padding.top || 0;\n boundaries.right -= isPaddingNumber ? padding : padding.right || 0;\n boundaries.bottom -= isPaddingNumber ? padding : padding.bottom || 0;\n\n return boundaries;\n}\n\nfunction getArea(_ref) {\n var width = _ref.width,\n height = _ref.height;\n\n return width * height;\n}\n\n/**\n * Utility used to transform the `auto` placement to the placement with more\n * available space.\n * @method\n * @memberof Popper.Utils\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction computeAutoPlacement(placement, refRect, popper, reference, boundariesElement) {\n var padding = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0;\n\n if (placement.indexOf('auto') === -1) {\n return placement;\n }\n\n var boundaries = getBoundaries(popper, reference, padding, boundariesElement);\n\n var rects = {\n top: {\n width: boundaries.width,\n height: refRect.top - boundaries.top\n },\n right: {\n width: boundaries.right - refRect.right,\n height: boundaries.height\n },\n bottom: {\n width: boundaries.width,\n height: boundaries.bottom - refRect.bottom\n },\n left: {\n width: refRect.left - boundaries.left,\n height: boundaries.height\n }\n };\n\n var sortedAreas = Object.keys(rects).map(function (key) {\n return _extends({\n key: key\n }, rects[key], {\n area: getArea(rects[key])\n });\n }).sort(function (a, b) {\n return b.area - a.area;\n });\n\n var filteredAreas = sortedAreas.filter(function (_ref2) {\n var width = _ref2.width,\n height = _ref2.height;\n return width >= popper.clientWidth && height >= popper.clientHeight;\n });\n\n var computedPlacement = filteredAreas.length > 0 ? filteredAreas[0].key : sortedAreas[0].key;\n\n var variation = placement.split('-')[1];\n\n return computedPlacement + (variation ? '-' + variation : '');\n}\n\n/**\n * Get offsets to the reference element\n * @method\n * @memberof Popper.Utils\n * @param {Object} state\n * @param {Element} popper - the popper element\n * @param {Element} reference - the reference element (the popper will be relative to this)\n * @param {Element} fixedPosition - is in fixed position mode\n * @returns {Object} An object containing the offsets which will be applied to the popper\n */\nfunction getReferenceOffsets(state, popper, reference) {\n var fixedPosition = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;\n\n var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));\n return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition);\n}\n\n/**\n * Get the outer sizes of the given element (offset size + margins)\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Object} object containing width and height properties\n */\nfunction getOuterSizes(element) {\n var window = element.ownerDocument.defaultView;\n var styles = window.getComputedStyle(element);\n var x = parseFloat(styles.marginTop || 0) + parseFloat(styles.marginBottom || 0);\n var y = parseFloat(styles.marginLeft || 0) + parseFloat(styles.marginRight || 0);\n var result = {\n width: element.offsetWidth + y,\n height: element.offsetHeight + x\n };\n return result;\n}\n\n/**\n * Get the opposite placement of the given one\n * @method\n * @memberof Popper.Utils\n * @argument {String} placement\n * @returns {String} flipped placement\n */\nfunction getOppositePlacement(placement) {\n var hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' };\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}\n\n/**\n * Get offsets to the popper\n * @method\n * @memberof Popper.Utils\n * @param {Object} position - CSS position the Popper will get applied\n * @param {HTMLElement} popper - the popper element\n * @param {Object} referenceOffsets - the reference offsets (the popper will be relative to this)\n * @param {String} placement - one of the valid placement options\n * @returns {Object} popperOffsets - An object containing the offsets which will be applied to the popper\n */\nfunction getPopperOffsets(popper, referenceOffsets, placement) {\n placement = placement.split('-')[0];\n\n // Get popper node sizes\n var popperRect = getOuterSizes(popper);\n\n // Add position, width and height to our offsets object\n var popperOffsets = {\n width: popperRect.width,\n height: popperRect.height\n };\n\n // depending by the popper placement we have to compute its offsets slightly differently\n var isHoriz = ['right', 'left'].indexOf(placement) !== -1;\n var mainSide = isHoriz ? 'top' : 'left';\n var secondarySide = isHoriz ? 'left' : 'top';\n var measurement = isHoriz ? 'height' : 'width';\n var secondaryMeasurement = !isHoriz ? 'height' : 'width';\n\n popperOffsets[mainSide] = referenceOffsets[mainSide] + referenceOffsets[measurement] / 2 - popperRect[measurement] / 2;\n if (placement === secondarySide) {\n popperOffsets[secondarySide] = referenceOffsets[secondarySide] - popperRect[secondaryMeasurement];\n } else {\n popperOffsets[secondarySide] = referenceOffsets[getOppositePlacement(secondarySide)];\n }\n\n return popperOffsets;\n}\n\n/**\n * Mimics the `find` method of Array\n * @method\n * @memberof Popper.Utils\n * @argument {Array} arr\n * @argument prop\n * @argument value\n * @returns index or -1\n */\nfunction find(arr, check) {\n // use native find if supported\n if (Array.prototype.find) {\n return arr.find(check);\n }\n\n // use `filter` to obtain the same behavior of `find`\n return arr.filter(check)[0];\n}\n\n/**\n * Return the index of the matching object\n * @method\n * @memberof Popper.Utils\n * @argument {Array} arr\n * @argument prop\n * @argument value\n * @returns index or -1\n */\nfunction findIndex(arr, prop, value) {\n // use native findIndex if supported\n if (Array.prototype.findIndex) {\n return arr.findIndex(function (cur) {\n return cur[prop] === value;\n });\n }\n\n // use `find` + `indexOf` if `findIndex` isn't supported\n var match = find(arr, function (obj) {\n return obj[prop] === value;\n });\n return arr.indexOf(match);\n}\n\n/**\n * Loop trough the list of modifiers and run them in order,\n * each of them will then edit the data object.\n * @method\n * @memberof Popper.Utils\n * @param {dataObject} data\n * @param {Array} modifiers\n * @param {String} ends - Optional modifier name used as stopper\n * @returns {dataObject}\n */\nfunction runModifiers(modifiers, data, ends) {\n var modifiersToRun = ends === undefined ? modifiers : modifiers.slice(0, findIndex(modifiers, 'name', ends));\n\n modifiersToRun.forEach(function (modifier) {\n if (modifier['function']) {\n // eslint-disable-line dot-notation\n console.warn('`modifier.function` is deprecated, use `modifier.fn`!');\n }\n var fn = modifier['function'] || modifier.fn; // eslint-disable-line dot-notation\n if (modifier.enabled && isFunction(fn)) {\n // Add properties to offsets to make them a complete clientRect object\n // we do this before each modifier to make sure the previous one doesn't\n // mess with these values\n data.offsets.popper = getClientRect(data.offsets.popper);\n data.offsets.reference = getClientRect(data.offsets.reference);\n\n data = fn(data, modifier);\n }\n });\n\n return data;\n}\n\n/**\n * Updates the position of the popper, computing the new offsets and applying\n * the new style.<br />\n * Prefer `scheduleUpdate` over `update` because of performance reasons.\n * @method\n * @memberof Popper\n */\nfunction update() {\n // if popper is destroyed, don't perform any further update\n if (this.state.isDestroyed) {\n return;\n }\n\n var data = {\n instance: this,\n styles: {},\n arrowStyles: {},\n attributes: {},\n flipped: false,\n offsets: {}\n };\n\n // compute reference element offsets\n data.offsets.reference = getReferenceOffsets(this.state, this.popper, this.reference, this.options.positionFixed);\n\n // compute auto placement, store placement inside the data object,\n // modifiers will be able to edit `placement` if needed\n // and refer to originalPlacement to know the original value\n data.placement = computeAutoPlacement(this.options.placement, data.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding);\n\n // store the computed placement inside `originalPlacement`\n data.originalPlacement = data.placement;\n\n data.positionFixed = this.options.positionFixed;\n\n // compute the popper offsets\n data.offsets.popper = getPopperOffsets(this.popper, data.offsets.reference, data.placement);\n\n data.offsets.popper.position = this.options.positionFixed ? 'fixed' : 'absolute';\n\n // run the modifiers\n data = runModifiers(this.modifiers, data);\n\n // the first `update` will call `onCreate` callback\n // the other ones will call `onUpdate` callback\n if (!this.state.isCreated) {\n this.state.isCreated = true;\n this.options.onCreate(data);\n } else {\n this.options.onUpdate(data);\n }\n}\n\n/**\n * Helper used to know if the given modifier is enabled.\n * @method\n * @memberof Popper.Utils\n * @returns {Boolean}\n */\nfunction isModifierEnabled(modifiers, modifierName) {\n return modifiers.some(function (_ref) {\n var name = _ref.name,\n enabled = _ref.enabled;\n return enabled && name === modifierName;\n });\n}\n\n/**\n * Get the prefixed supported property name\n * @method\n * @memberof Popper.Utils\n * @argument {String} property (camelCase)\n * @returns {String} prefixed property (camelCase or PascalCase, depending on the vendor prefix)\n */\nfunction getSupportedPropertyName(property) {\n var prefixes = [false, 'ms', 'Webkit', 'Moz', 'O'];\n var upperProp = property.charAt(0).toUpperCase() + property.slice(1);\n\n for (var i = 0; i < prefixes.length; i++) {\n var prefix = prefixes[i];\n var toCheck = prefix ? '' + prefix + upperProp : property;\n if (typeof document.body.style[toCheck] !== 'undefined') {\n return toCheck;\n }\n }\n return null;\n}\n\n/**\n * Destroys the popper.\n * @method\n * @memberof Popper\n */\nfunction destroy() {\n this.state.isDestroyed = true;\n\n // touch DOM only if `applyStyle` modifier is enabled\n if (isModifierEnabled(this.modifiers, 'applyStyle')) {\n this.popper.removeAttribute('x-placement');\n this.popper.style.position = '';\n this.popper.style.top = '';\n this.popper.style.left = '';\n this.popper.style.right = '';\n this.popper.style.bottom = '';\n this.popper.style.willChange = '';\n this.popper.style[getSupportedPropertyName('transform')] = '';\n }\n\n this.disableEventListeners();\n\n // remove the popper if user explicitly asked for the deletion on destroy\n // do not use `remove` because IE11 doesn't support it\n if (this.options.removeOnDestroy) {\n this.popper.parentNode.removeChild(this.popper);\n }\n return this;\n}\n\n/**\n * Get the window associated with the element\n * @argument {Element} element\n * @returns {Window}\n */\nfunction getWindow(element) {\n var ownerDocument = element.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView : window;\n}\n\nfunction attachToScrollParents(scrollParent, event, callback, scrollParents) {\n var isBody = scrollParent.nodeName === 'BODY';\n var target = isBody ? scrollParent.ownerDocument.defaultView : scrollParent;\n target.addEventListener(event, callback, { passive: true });\n\n if (!isBody) {\n attachToScrollParents(getScrollParent(target.parentNode), event, callback, scrollParents);\n }\n scrollParents.push(target);\n}\n\n/**\n * Setup needed event listeners used to update the popper position\n * @method\n * @memberof Popper.Utils\n * @private\n */\nfunction setupEventListeners(reference, options, state, updateBound) {\n // Resize event listener on window\n state.updateBound = updateBound;\n getWindow(reference).addEventListener('resize', state.updateBound, { passive: true });\n\n // Scroll event listener on scroll parents\n var scrollElement = getScrollParent(reference);\n attachToScrollParents(scrollElement, 'scroll', state.updateBound, state.scrollParents);\n state.scrollElement = scrollElement;\n state.eventsEnabled = true;\n\n return state;\n}\n\n/**\n * It will add resize/scroll events and start recalculating\n * position of the popper element when they are triggered.\n * @method\n * @memberof Popper\n */\nfunction enableEventListeners() {\n if (!this.state.eventsEnabled) {\n this.state = setupEventListeners(this.reference, this.options, this.state, this.scheduleUpdate);\n }\n}\n\n/**\n * Remove event listeners used to update the popper position\n * @method\n * @memberof Popper.Utils\n * @private\n */\nfunction removeEventListeners(reference, state) {\n // Remove resize event listener on window\n getWindow(reference).removeEventListener('resize', state.updateBound);\n\n // Remove scroll event listener on scroll parents\n state.scrollParents.forEach(function (target) {\n target.removeEventListener('scroll', state.updateBound);\n });\n\n // Reset state\n state.updateBound = null;\n state.scrollParents = [];\n state.scrollElement = null;\n state.eventsEnabled = false;\n return state;\n}\n\n/**\n * It will remove resize/scroll events and won't recalculate popper position\n * when they are triggered. It also won't trigger `onUpdate` callback anymore,\n * unless you call `update` method manually.\n * @method\n * @memberof Popper\n */\nfunction disableEventListeners() {\n if (this.state.eventsEnabled) {\n cancelAnimationFrame(this.scheduleUpdate);\n this.state = removeEventListeners(this.reference, this.state);\n }\n}\n\n/**\n * Tells if a given input is a number\n * @method\n * @memberof Popper.Utils\n * @param {*} input to check\n * @return {Boolean}\n */\nfunction isNumeric(n) {\n return n !== '' && !isNaN(parseFloat(n)) && isFinite(n);\n}\n\n/**\n * Set the style to the given popper\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element - Element to apply the style to\n * @argument {Object} styles\n * Object with a list of properties and values which will be applied to the element\n */\nfunction setStyles(element, styles) {\n Object.keys(styles).forEach(function (prop) {\n var unit = '';\n // add unit if the value is numeric and is one of the following\n if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && isNumeric(styles[prop])) {\n unit = 'px';\n }\n element.style[prop] = styles[prop] + unit;\n });\n}\n\n/**\n * Set the attributes to the given popper\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element - Element to apply the attributes to\n * @argument {Object} styles\n * Object with a list of properties and values which will be applied to the element\n */\nfunction setAttributes(element, attributes) {\n Object.keys(attributes).forEach(function (prop) {\n var value = attributes[prop];\n if (value !== false) {\n element.setAttribute(prop, attributes[prop]);\n } else {\n element.removeAttribute(prop);\n }\n });\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} data.styles - List of style properties - values to apply to popper element\n * @argument {Object} data.attributes - List of attribute properties - values to apply to popper element\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The same data object\n */\nfunction applyStyle(data) {\n // any property present in `data.styles` will be applied to the popper,\n // in this way we can make the 3rd party modifiers add custom styles to it\n // Be aware, modifiers could override the properties defined in the previous\n // lines of this modifier!\n setStyles(data.instance.popper, data.styles);\n\n // any property present in `data.attributes` will be applied to the popper,\n // they will be set as HTML attributes of the element\n setAttributes(data.instance.popper, data.attributes);\n\n // if arrowElement is defined and arrowStyles has some properties\n if (data.arrowElement && Object.keys(data.arrowStyles).length) {\n setStyles(data.arrowElement, data.arrowStyles);\n }\n\n return data;\n}\n\n/**\n * Set the x-placement attribute before everything else because it could be used\n * to add margins to the popper margins needs to be calculated to get the\n * correct popper offsets.\n * @method\n * @memberof Popper.modifiers\n * @param {HTMLElement} reference - The reference element used to position the popper\n * @param {HTMLElement} popper - The HTML element used as popper\n * @param {Object} options - Popper.js options\n */\nfunction applyStyleOnLoad(reference, popper, options, modifierOptions, state) {\n // compute reference element offsets\n var referenceOffsets = getReferenceOffsets(state, popper, reference, options.positionFixed);\n\n // compute auto placement, store placement inside the data object,\n // modifiers will be able to edit `placement` if needed\n // and refer to originalPlacement to know the original value\n var placement = computeAutoPlacement(options.placement, referenceOffsets, popper, reference, options.modifiers.flip.boundariesElement, options.modifiers.flip.padding);\n\n popper.setAttribute('x-placement', placement);\n\n // Apply `position` to popper before anything else because\n // without the position applied we can't guarantee correct computations\n setStyles(popper, { position: options.positionFixed ? 'fixed' : 'absolute' });\n\n return options;\n}\n\n/**\n * @function\n * @memberof Popper.Utils\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Boolean} shouldRound - If the offsets should be rounded at all\n * @returns {Object} The popper's position offsets rounded\n *\n * The tale of pixel-perfect positioning. It's still not 100% perfect, but as\n * good as it can be within reason.\n * Discussion here: https://github.com/FezVrasta/popper.js/pull/715\n *\n * Low DPI screens cause a popper to be blurry if not using full pixels (Safari\n * as well on High DPI screens).\n *\n * Firefox prefers no rounding for positioning and does not have blurriness on\n * high DPI screens.\n *\n * Only horizontal placement and left/right values need to be considered.\n */\nfunction getRoundedOffsets(data, shouldRound) {\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n var round = Math.round,\n floor = Math.floor;\n\n var noRound = function noRound(v) {\n return v;\n };\n\n var referenceWidth = round(reference.width);\n var popperWidth = round(popper.width);\n\n var isVertical = ['left', 'right'].indexOf(data.placement) !== -1;\n var isVariation = data.placement.indexOf('-') !== -1;\n var sameWidthParity = referenceWidth % 2 === popperWidth % 2;\n var bothOddWidth = referenceWidth % 2 === 1 && popperWidth % 2 === 1;\n\n var horizontalToInteger = !shouldRound ? noRound : isVertical || isVariation || sameWidthParity ? round : floor;\n var verticalToInteger = !shouldRound ? noRound : round;\n\n return {\n left: horizontalToInteger(bothOddWidth && !isVariation && shouldRound ? popper.left - 1 : popper.left),\n top: verticalToInteger(popper.top),\n bottom: verticalToInteger(popper.bottom),\n right: horizontalToInteger(popper.right)\n };\n}\n\nvar isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent);\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction computeStyle(data, options) {\n var x = options.x,\n y = options.y;\n var popper = data.offsets.popper;\n\n // Remove this legacy support in Popper.js v2\n\n var legacyGpuAccelerationOption = find(data.instance.modifiers, function (modifier) {\n return modifier.name === 'applyStyle';\n }).gpuAcceleration;\n if (legacyGpuAccelerationOption !== undefined) {\n console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');\n }\n var gpuAcceleration = legacyGpuAccelerationOption !== undefined ? legacyGpuAccelerationOption : options.gpuAcceleration;\n\n var offsetParent = getOffsetParent(data.instance.popper);\n var offsetParentRect = getBoundingClientRect(offsetParent);\n\n // Styles\n var styles = {\n position: popper.position\n };\n\n var offsets = getRoundedOffsets(data, window.devicePixelRatio < 2 || !isFirefox);\n\n var sideA = x === 'bottom' ? 'top' : 'bottom';\n var sideB = y === 'right' ? 'left' : 'right';\n\n // if gpuAcceleration is set to `true` and transform is supported,\n // we use `translate3d` to apply the position to the popper we\n // automatically use the supported prefixed version if needed\n var prefixedProperty = getSupportedPropertyName('transform');\n\n // now, let's make a step back and look at this code closely (wtf?)\n // If the content of the popper grows once it's been positioned, it\n // may happen that the popper gets misplaced because of the new content\n // overflowing its reference element\n // To avoid this problem, we provide two options (x and y), which allow\n // the consumer to define the offset origin.\n // If we position a popper on top of a reference element, we can set\n // `x` to `top` to make the popper grow towards its top instead of\n // its bottom.\n var left = void 0,\n top = void 0;\n if (sideA === 'bottom') {\n // when offsetParent is <html> the positioning is relative to the bottom of the screen (excluding the scrollbar)\n // and not the bottom of the html element\n if (offsetParent.nodeName === 'HTML') {\n top = -offsetParent.clientHeight + offsets.bottom;\n } else {\n top = -offsetParentRect.height + offsets.bottom;\n }\n } else {\n top = offsets.top;\n }\n if (sideB === 'right') {\n if (offsetParent.nodeName === 'HTML') {\n left = -offsetParent.clientWidth + offsets.right;\n } else {\n left = -offsetParentRect.width + offsets.right;\n }\n } else {\n left = offsets.left;\n }\n if (gpuAcceleration && prefixedProperty) {\n styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)';\n styles[sideA] = 0;\n styles[sideB] = 0;\n styles.willChange = 'transform';\n } else {\n // othwerise, we use the standard `top`, `left`, `bottom` and `right` properties\n var invertTop = sideA === 'bottom' ? -1 : 1;\n var invertLeft = sideB === 'right' ? -1 : 1;\n styles[sideA] = top * invertTop;\n styles[sideB] = left * invertLeft;\n styles.willChange = sideA + ', ' + sideB;\n }\n\n // Attributes\n var attributes = {\n 'x-placement': data.placement\n };\n\n // Update `data` attributes, styles and arrowStyles\n data.attributes = _extends({}, attributes, data.attributes);\n data.styles = _extends({}, styles, data.styles);\n data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles);\n\n return data;\n}\n\n/**\n * Helper used to know if the given modifier depends from another one.<br />\n * It checks if the needed modifier is listed and enabled.\n * @method\n * @memberof Popper.Utils\n * @param {Array} modifiers - list of modifiers\n * @param {String} requestingName - name of requesting modifier\n * @param {String} requestedName - name of requested modifier\n * @returns {Boolean}\n */\nfunction isModifierRequired(modifiers, requestingName, requestedName) {\n var requesting = find(modifiers, function (_ref) {\n var name = _ref.name;\n return name === requestingName;\n });\n\n var isRequired = !!requesting && modifiers.some(function (modifier) {\n return modifier.name === requestedName && modifier.enabled && modifier.order < requesting.order;\n });\n\n if (!isRequired) {\n var _requesting = '`' + requestingName + '`';\n var requested = '`' + requestedName + '`';\n console.warn(requested + ' modifier is required by ' + _requesting + ' modifier in order to work, be sure to include it before ' + _requesting + '!');\n }\n return isRequired;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction arrow(data, options) {\n var _data$offsets$arrow;\n\n // arrow depends on keepTogether in order to work\n if (!isModifierRequired(data.instance.modifiers, 'arrow', 'keepTogether')) {\n return data;\n }\n\n var arrowElement = options.element;\n\n // if arrowElement is a string, suppose it's a CSS selector\n if (typeof arrowElement === 'string') {\n arrowElement = data.instance.popper.querySelector(arrowElement);\n\n // if arrowElement is not found, don't run the modifier\n if (!arrowElement) {\n return data;\n }\n } else {\n // if the arrowElement isn't a query selector we must check that the\n // provided DOM node is child of its popper node\n if (!data.instance.popper.contains(arrowElement)) {\n console.warn('WARNING: `arrow.element` must be child of its popper element!');\n return data;\n }\n }\n\n var placement = data.placement.split('-')[0];\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n\n var isVertical = ['left', 'right'].indexOf(placement) !== -1;\n\n var len = isVertical ? 'height' : 'width';\n var sideCapitalized = isVertical ? 'Top' : 'Left';\n var side = sideCapitalized.toLowerCase();\n var altSide = isVertical ? 'left' : 'top';\n var opSide = isVertical ? 'bottom' : 'right';\n var arrowElementSize = getOuterSizes(arrowElement)[len];\n\n //\n // extends keepTogether behavior making sure the popper and its\n // reference have enough pixels in conjunction\n //\n\n // top/left side\n if (reference[opSide] - arrowElementSize < popper[side]) {\n data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowElementSize);\n }\n // bottom/right side\n if (reference[side] + arrowElementSize > popper[opSide]) {\n data.offsets.popper[side] += reference[side] + arrowElementSize - popper[opSide];\n }\n data.offsets.popper = getClientRect(data.offsets.popper);\n\n // compute center of the popper\n var center = reference[side] + reference[len] / 2 - arrowElementSize / 2;\n\n // Compute the sideValue using the updated popper offsets\n // take popper margin in account because we don't have this info available\n var css = getStyleComputedProperty(data.instance.popper);\n var popperMarginSide = parseFloat(css['margin' + sideCapitalized]);\n var popperBorderSide = parseFloat(css['border' + sideCapitalized + 'Width']);\n var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide;\n\n // prevent arrowElement from being placed not contiguously to its popper\n sideValue = Math.max(Math.min(popper[len] - arrowElementSize, sideValue), 0);\n\n data.arrowElement = arrowElement;\n data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty(_data$offsets$arrow, altSide, ''), _data$offsets$arrow);\n\n return data;\n}\n\n/**\n * Get the opposite placement variation of the given one\n * @method\n * @memberof Popper.Utils\n * @argument {String} placement variation\n * @returns {String} flipped placement variation\n */\nfunction getOppositeVariation(variation) {\n if (variation === 'end') {\n return 'start';\n } else if (variation === 'start') {\n return 'end';\n }\n return variation;\n}\n\n/**\n * List of accepted placements to use as values of the `placement` option.<br />\n * Valid placements are:\n * - `auto`\n * - `top`\n * - `right`\n * - `bottom`\n * - `left`\n *\n * Each placement can have a variation from this list:\n * - `-start`\n * - `-end`\n *\n * Variations are interpreted easily if you think of them as the left to right\n * written languages. Horizontally (`top` and `bottom`), `start` is left and `end`\n * is right.<br />\n * Vertically (`left` and `right`), `start` is top and `end` is bottom.\n *\n * Some valid examples are:\n * - `top-end` (on top of reference, right aligned)\n * - `right-start` (on right of reference, top aligned)\n * - `bottom` (on bottom, centered)\n * - `auto-end` (on the side with more space available, alignment depends by placement)\n *\n * @static\n * @type {Array}\n * @enum {String}\n * @readonly\n * @method placements\n * @memberof Popper\n */\nvar placements = ['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start'];\n\n// Get rid of `auto` `auto-start` and `auto-end`\nvar validPlacements = placements.slice(3);\n\n/**\n * Given an initial placement, returns all the subsequent placements\n * clockwise (or counter-clockwise).\n *\n * @method\n * @memberof Popper.Utils\n * @argument {String} placement - A valid placement (it accepts variations)\n * @argument {Boolean} counter - Set to true to walk the placements counterclockwise\n * @returns {Array} placements including their variations\n */\nfunction clockwise(placement) {\n var counter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n var index = validPlacements.indexOf(placement);\n var arr = validPlacements.slice(index + 1).concat(validPlacements.slice(0, index));\n return counter ? arr.reverse() : arr;\n}\n\nvar BEHAVIORS = {\n FLIP: 'flip',\n CLOCKWISE: 'clockwise',\n COUNTERCLOCKWISE: 'counterclockwise'\n};\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction flip(data, options) {\n // if `inner` modifier is enabled, we can't use the `flip` modifier\n if (isModifierEnabled(data.instance.modifiers, 'inner')) {\n return data;\n }\n\n if (data.flipped && data.placement === data.originalPlacement) {\n // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides\n return data;\n }\n\n var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, options.boundariesElement, data.positionFixed);\n\n var placement = data.placement.split('-')[0];\n var placementOpposite = getOppositePlacement(placement);\n var variation = data.placement.split('-')[1] || '';\n\n var flipOrder = [];\n\n switch (options.behavior) {\n case BEHAVIORS.FLIP:\n flipOrder = [placement, placementOpposite];\n break;\n case BEHAVIORS.CLOCKWISE:\n flipOrder = clockwise(placement);\n break;\n case BEHAVIORS.COUNTERCLOCKWISE:\n flipOrder = clockwise(placement, true);\n break;\n default:\n flipOrder = options.behavior;\n }\n\n flipOrder.forEach(function (step, index) {\n if (placement !== step || flipOrder.length === index + 1) {\n return data;\n }\n\n placement = data.placement.split('-')[0];\n placementOpposite = getOppositePlacement(placement);\n\n var popperOffsets = data.offsets.popper;\n var refOffsets = data.offsets.reference;\n\n // using floor because the reference offsets may contain decimals we are not going to consider here\n var floor = Math.floor;\n var overlapsRef = placement === 'left' && floor(popperOffsets.right) > floor(refOffsets.left) || placement === 'right' && floor(popperOffsets.left) < floor(refOffsets.right) || placement === 'top' && floor(popperOffsets.bottom) > floor(refOffsets.top) || placement === 'bottom' && floor(popperOffsets.top) < floor(refOffsets.bottom);\n\n var overflowsLeft = floor(popperOffsets.left) < floor(boundaries.left);\n var overflowsRight = floor(popperOffsets.right) > floor(boundaries.right);\n var overflowsTop = floor(popperOffsets.top) < floor(boundaries.top);\n var overflowsBottom = floor(popperOffsets.bottom) > floor(boundaries.bottom);\n\n var overflowsBoundaries = placement === 'left' && overflowsLeft || placement === 'right' && overflowsRight || placement === 'top' && overflowsTop || placement === 'bottom' && overflowsBottom;\n\n // flip the variation if required\n var isVertical = ['top', 'bottom'].indexOf(placement) !== -1;\n\n // flips variation if reference element overflows boundaries\n var flippedVariationByRef = !!options.flipVariations && (isVertical && variation === 'start' && overflowsLeft || isVertical && variation === 'end' && overflowsRight || !isVertical && variation === 'start' && overflowsTop || !isVertical && variation === 'end' && overflowsBottom);\n\n // flips variation if popper content overflows boundaries\n var flippedVariationByContent = !!options.flipVariationsByContent && (isVertical && variation === 'start' && overflowsRight || isVertical && variation === 'end' && overflowsLeft || !isVertical && variation === 'start' && overflowsBottom || !isVertical && variation === 'end' && overflowsTop);\n\n var flippedVariation = flippedVariationByRef || flippedVariationByContent;\n\n if (overlapsRef || overflowsBoundaries || flippedVariation) {\n // this boolean to detect any flip loop\n data.flipped = true;\n\n if (overlapsRef || overflowsBoundaries) {\n placement = flipOrder[index + 1];\n }\n\n if (flippedVariation) {\n variation = getOppositeVariation(variation);\n }\n\n data.placement = placement + (variation ? '-' + variation : '');\n\n // this object contains `position`, we want to preserve it along with\n // any additional property we may add in the future\n data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));\n\n data = runModifiers(data.instance.modifiers, data, 'flip');\n }\n });\n return data;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction keepTogether(data) {\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n\n var placement = data.placement.split('-')[0];\n var floor = Math.floor;\n var isVertical = ['top', 'bottom'].indexOf(placement) !== -1;\n var side = isVertical ? 'right' : 'bottom';\n var opSide = isVertical ? 'left' : 'top';\n var measurement = isVertical ? 'width' : 'height';\n\n if (popper[side] < floor(reference[opSide])) {\n data.offsets.popper[opSide] = floor(reference[opSide]) - popper[measurement];\n }\n if (popper[opSide] > floor(reference[side])) {\n data.offsets.popper[opSide] = floor(reference[side]);\n }\n\n return data;\n}\n\n/**\n * Converts a string containing value + unit into a px value number\n * @function\n * @memberof {modifiers~offset}\n * @private\n * @argument {String} str - Value + unit string\n * @argument {String} measurement - `height` or `width`\n * @argument {Object} popperOffsets\n * @argument {Object} referenceOffsets\n * @returns {Number|String}\n * Value in pixels, or original string if no values were extracted\n */\nfunction toValue(str, measurement, popperOffsets, referenceOffsets) {\n // separate value from unit\n var split = str.match(/((?:\\-|\\+)?\\d*\\.?\\d*)(.*)/);\n var value = +split[1];\n var unit = split[2];\n\n // If it's not a number it's an operator, I guess\n if (!value) {\n return str;\n }\n\n if (unit.indexOf('%') === 0) {\n var element = void 0;\n switch (unit) {\n case '%p':\n element = popperOffsets;\n break;\n case '%':\n case '%r':\n default:\n element = referenceOffsets;\n }\n\n var rect = getClientRect(element);\n return rect[measurement] / 100 * value;\n } else if (unit === 'vh' || unit === 'vw') {\n // if is a vh or vw, we calculate the size based on the viewport\n var size = void 0;\n if (unit === 'vh') {\n size = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);\n } else {\n size = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);\n }\n return size / 100 * value;\n } else {\n // if is an explicit pixel unit, we get rid of the unit and keep the value\n // if is an implicit unit, it's px, and we return just the value\n return value;\n }\n}\n\n/**\n * Parse an `offset` string to extrapolate `x` and `y` numeric offsets.\n * @function\n * @memberof {modifiers~offset}\n * @private\n * @argument {String} offset\n * @argument {Object} popperOffsets\n * @argument {Object} referenceOffsets\n * @argument {String} basePlacement\n * @returns {Array} a two cells array with x and y offsets in numbers\n */\nfunction parseOffset(offset, popperOffsets, referenceOffsets, basePlacement) {\n var offsets = [0, 0];\n\n // Use height if placement is left or right and index is 0 otherwise use width\n // in this way the first offset will use an axis and the second one\n // will use the other one\n var useHeight = ['right', 'left'].indexOf(basePlacement) !== -1;\n\n // Split the offset string to obtain a list of values and operands\n // The regex addresses values with the plus or minus sign in front (+10, -20, etc)\n var fragments = offset.split(/(\\+|\\-)/).map(function (frag) {\n return frag.trim();\n });\n\n // Detect if the offset string contains a pair of values or a single one\n // they could be separated by comma or space\n var divider = fragments.indexOf(find(fragments, function (frag) {\n return frag.search(/,|\\s/) !== -1;\n }));\n\n if (fragments[divider] && fragments[divider].indexOf(',') === -1) {\n console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');\n }\n\n // If divider is found, we divide the list of values and operands to divide\n // them by ofset X and Y.\n var splitRegex = /\\s*,\\s*|\\s+/;\n var ops = divider !== -1 ? [fragments.slice(0, divider).concat([fragments[divider].split(splitRegex)[0]]), [fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider + 1))] : [fragments];\n\n // Convert the values with units to absolute pixels to allow our computations\n ops = ops.map(function (op, index) {\n // Most of the units rely on the orientation of the popper\n var measurement = (index === 1 ? !useHeight : useHeight) ? 'height' : 'width';\n var mergeWithPrevious = false;\n return op\n // This aggregates any `+` or `-` sign that aren't considered operators\n // e.g.: 10 + +5 => [10, +, +5]\n .reduce(function (a, b) {\n if (a[a.length - 1] === '' && ['+', '-'].indexOf(b) !== -1) {\n a[a.length - 1] = b;\n mergeWithPrevious = true;\n return a;\n } else if (mergeWithPrevious) {\n a[a.length - 1] += b;\n mergeWithPrevious = false;\n return a;\n } else {\n return a.concat(b);\n }\n }, [])\n // Here we convert the string values into number values (in px)\n .map(function (str) {\n return toValue(str, measurement, popperOffsets, referenceOffsets);\n });\n });\n\n // Loop trough the offsets arrays and execute the operations\n ops.forEach(function (op, index) {\n op.forEach(function (frag, index2) {\n if (isNumeric(frag)) {\n offsets[index] += frag * (op[index2 - 1] === '-' ? -1 : 1);\n }\n });\n });\n return offsets;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @argument {Number|String} options.offset=0\n * The offset value as described in the modifier description\n * @returns {Object} The data object, properly modified\n */\nfunction offset(data, _ref) {\n var offset = _ref.offset;\n var placement = data.placement,\n _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n\n var basePlacement = placement.split('-')[0];\n\n var offsets = void 0;\n if (isNumeric(+offset)) {\n offsets = [+offset, 0];\n } else {\n offsets = parseOffset(offset, popper, reference, basePlacement);\n }\n\n if (basePlacement === 'left') {\n popper.top += offsets[0];\n popper.left -= offsets[1];\n } else if (basePlacement === 'right') {\n popper.top += offsets[0];\n popper.left += offsets[1];\n } else if (basePlacement === 'top') {\n popper.left += offsets[0];\n popper.top -= offsets[1];\n } else if (basePlacement === 'bottom') {\n popper.left += offsets[0];\n popper.top += offsets[1];\n }\n\n data.popper = popper;\n return data;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction preventOverflow(data, options) {\n var boundariesElement = options.boundariesElement || getOffsetParent(data.instance.popper);\n\n // If offsetParent is the reference element, we really want to\n // go one step up and use the next offsetParent as reference to\n // avoid to make this modifier completely useless and look like broken\n if (data.instance.reference === boundariesElement) {\n boundariesElement = getOffsetParent(boundariesElement);\n }\n\n // NOTE: DOM access here\n // resets the popper's position so that the document size can be calculated excluding\n // the size of the popper element itself\n var transformProp = getSupportedPropertyName('transform');\n var popperStyles = data.instance.popper.style; // assignment to help minification\n var top = popperStyles.top,\n left = popperStyles.left,\n transform = popperStyles[transformProp];\n\n popperStyles.top = '';\n popperStyles.left = '';\n popperStyles[transformProp] = '';\n\n var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, boundariesElement, data.positionFixed);\n\n // NOTE: DOM access here\n // restores the original style properties after the offsets have been computed\n popperStyles.top = top;\n popperStyles.left = left;\n popperStyles[transformProp] = transform;\n\n options.boundaries = boundaries;\n\n var order = options.priority;\n var popper = data.offsets.popper;\n\n var check = {\n primary: function primary(placement) {\n var value = popper[placement];\n if (popper[placement] < boundaries[placement] && !options.escapeWithReference) {\n value = Math.max(popper[placement], boundaries[placement]);\n }\n return defineProperty({}, placement, value);\n },\n secondary: function secondary(placement) {\n var mainSide = placement === 'right' ? 'left' : 'top';\n var value = popper[mainSide];\n if (popper[placement] > boundaries[placement] && !options.escapeWithReference) {\n value = Math.min(popper[mainSide], boundaries[placement] - (placement === 'right' ? popper.width : popper.height));\n }\n return defineProperty({}, mainSide, value);\n }\n };\n\n order.forEach(function (placement) {\n var side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary';\n popper = _extends({}, popper, check[side](placement));\n });\n\n data.offsets.popper = popper;\n\n return data;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction shift(data) {\n var placement = data.placement;\n var basePlacement = placement.split('-')[0];\n var shiftvariation = placement.split('-')[1];\n\n // if shift shiftvariation is specified, run the modifier\n if (shiftvariation) {\n var _data$offsets = data.offsets,\n reference = _data$offsets.reference,\n popper = _data$offsets.popper;\n\n var isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1;\n var side = isVertical ? 'left' : 'top';\n var measurement = isVertical ? 'width' : 'height';\n\n var shiftOffsets = {\n start: defineProperty({}, side, reference[side]),\n end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement])\n };\n\n data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]);\n }\n\n return data;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction hide(data) {\n if (!isModifierRequired(data.instance.modifiers, 'hide', 'preventOverflow')) {\n return data;\n }\n\n var refRect = data.offsets.reference;\n var bound = find(data.instance.modifiers, function (modifier) {\n return modifier.name === 'preventOverflow';\n }).boundaries;\n\n if (refRect.bottom < bound.top || refRect.left > bound.right || refRect.top > bound.bottom || refRect.right < bound.left) {\n // Avoid unnecessary DOM access if visibility hasn't changed\n if (data.hide === true) {\n return data;\n }\n\n data.hide = true;\n data.attributes['x-out-of-boundaries'] = '';\n } else {\n // Avoid unnecessary DOM access if visibility hasn't changed\n if (data.hide === false) {\n return data;\n }\n\n data.hide = false;\n data.attributes['x-out-of-boundaries'] = false;\n }\n\n return data;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction inner(data) {\n var placement = data.placement;\n var basePlacement = placement.split('-')[0];\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n\n var isHoriz = ['left', 'right'].indexOf(basePlacement) !== -1;\n\n var subtractLength = ['top', 'left'].indexOf(basePlacement) === -1;\n\n popper[isHoriz ? 'left' : 'top'] = reference[basePlacement] - (subtractLength ? popper[isHoriz ? 'width' : 'height'] : 0);\n\n data.placement = getOppositePlacement(placement);\n data.offsets.popper = getClientRect(popper);\n\n return data;\n}\n\n/**\n * Modifier function, each modifier can have a function of this type assigned\n * to its `fn` property.<br />\n * These functions will be called on each update, this means that you must\n * make sure they are performant enough to avoid performance bottlenecks.\n *\n * @function ModifierFn\n * @argument {dataObject} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {dataObject} The data object, properly modified\n */\n\n/**\n * Modifiers are plugins used to alter the behavior of your poppers.<br />\n * Popper.js uses a set of 9 modifiers to provide all the basic functionalities\n * needed by the library.\n *\n * Usually you don't want to override the `order`, `fn` and `onLoad` props.\n * All the other properties are configurations that could be tweaked.\n * @namespace modifiers\n */\nvar modifiers = {\n /**\n * Modifier used to shift the popper on the start or end of its reference\n * element.<br />\n * It will read the variation of the `placement` property.<br />\n * It can be one either `-end` or `-start`.\n * @memberof modifiers\n * @inner\n */\n shift: {\n /** @prop {number} order=100 - Index used to define the order of execution */\n order: 100,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: shift\n },\n\n /**\n * The `offset` modifier can shift your popper on both its axis.\n *\n * It accepts the following units:\n * - `px` or unit-less, interpreted as pixels\n * - `%` or `%r`, percentage relative to the length of the reference element\n * - `%p`, percentage relative to the length of the popper element\n * - `vw`, CSS viewport width unit\n * - `vh`, CSS viewport height unit\n *\n * For length is intended the main axis relative to the placement of the popper.<br />\n * This means that if the placement is `top` or `bottom`, the length will be the\n * `width`. In case of `left` or `right`, it will be the `height`.\n *\n * You can provide a single value (as `Number` or `String`), or a pair of values\n * as `String` divided by a comma or one (or more) white spaces.<br />\n * The latter is a deprecated method because it leads to confusion and will be\n * removed in v2.<br />\n * Additionally, it accepts additions and subtractions between different units.\n * Note that multiplications and divisions aren't supported.\n *\n * Valid examples are:\n * ```\n * 10\n * '10%'\n * '10, 10'\n * '10%, 10'\n * '10 + 10%'\n * '10 - 5vh + 3%'\n * '-10px + 5vh, 5px - 6%'\n * ```\n * > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap\n * > with their reference element, unfortunately, you will have to disable the `flip` modifier.\n * > You can read more on this at this [issue](https://github.com/FezVrasta/popper.js/issues/373).\n *\n * @memberof modifiers\n * @inner\n */\n offset: {\n /** @prop {number} order=200 - Index used to define the order of execution */\n order: 200,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: offset,\n /** @prop {Number|String} offset=0\n * The offset value as described in the modifier description\n */\n offset: 0\n },\n\n /**\n * Modifier used to prevent the popper from being positioned outside the boundary.\n *\n * A scenario exists where the reference itself is not within the boundaries.<br />\n * We can say it has \"escaped the boundaries\" — or just \"escaped\".<br />\n * In this case we need to decide whether the popper should either:\n *\n * - detach from the reference and remain \"trapped\" in the boundaries, or\n * - if it should ignore the boundary and \"escape with its reference\"\n *\n * When `escapeWithReference` is set to`true` and reference is completely\n * outside its boundaries, the popper will overflow (or completely leave)\n * the boundaries in order to remain attached to the edge of the reference.\n *\n * @memberof modifiers\n * @inner\n */\n preventOverflow: {\n /** @prop {number} order=300 - Index used to define the order of execution */\n order: 300,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: preventOverflow,\n /**\n * @prop {Array} [priority=['left','right','top','bottom']]\n * Popper will try to prevent overflow following these priorities by default,\n * then, it could overflow on the left and on top of the `boundariesElement`\n */\n priority: ['left', 'right', 'top', 'bottom'],\n /**\n * @prop {number} padding=5\n * Amount of pixel used to define a minimum distance between the boundaries\n * and the popper. This makes sure the popper always has a little padding\n * between the edges of its container\n */\n padding: 5,\n /**\n * @prop {String|HTMLElement} boundariesElement='scrollParent'\n * Boundaries used by the modifier. Can be `scrollParent`, `window`,\n * `viewport` or any DOM element.\n */\n boundariesElement: 'scrollParent'\n },\n\n /**\n * Modifier used to make sure the reference and its popper stay near each other\n * without leaving any gap between the two. Especially useful when the arrow is\n * enabled and you want to ensure that it points to its reference element.\n * It cares only about the first axis. You can still have poppers with margin\n * between the popper and its reference element.\n * @memberof modifiers\n * @inner\n */\n keepTogether: {\n /** @prop {number} order=400 - Index used to define the order of execution */\n order: 400,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: keepTogether\n },\n\n /**\n * This modifier is used to move the `arrowElement` of the popper to make\n * sure it is positioned between the reference element and its popper element.\n * It will read the outer size of the `arrowElement` node to detect how many\n * pixels of conjunction are needed.\n *\n * It has no effect if no `arrowElement` is provided.\n * @memberof modifiers\n * @inner\n */\n arrow: {\n /** @prop {number} order=500 - Index used to define the order of execution */\n order: 500,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: arrow,\n /** @prop {String|HTMLElement} element='[x-arrow]' - Selector or node used as arrow */\n element: '[x-arrow]'\n },\n\n /**\n * Modifier used to flip the popper's placement when it starts to overlap its\n * reference element.\n *\n * Requires the `preventOverflow` modifier before it in order to work.\n *\n * **NOTE:** this modifier will interrupt the current update cycle and will\n * restart it if it detects the need to flip the placement.\n * @memberof modifiers\n * @inner\n */\n flip: {\n /** @prop {number} order=600 - Index used to define the order of execution */\n order: 600,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: flip,\n /**\n * @prop {String|Array} behavior='flip'\n * The behavior used to change the popper's placement. It can be one of\n * `flip`, `clockwise`, `counterclockwise` or an array with a list of valid\n * placements (with optional variations)\n */\n behavior: 'flip',\n /**\n * @prop {number} padding=5\n * The popper will flip if it hits the edges of the `boundariesElement`\n */\n padding: 5,\n /**\n * @prop {String|HTMLElement} boundariesElement='viewport'\n * The element which will define the boundaries of the popper position.\n * The popper will never be placed outside of the defined boundaries\n * (except if `keepTogether` is enabled)\n */\n boundariesElement: 'viewport',\n /**\n * @prop {Boolean} flipVariations=false\n * The popper will switch placement variation between `-start` and `-end` when\n * the reference element overlaps its boundaries.\n *\n * The original placement should have a set variation.\n */\n flipVariations: false,\n /**\n * @prop {Boolean} flipVariationsByContent=false\n * The popper will switch placement variation between `-start` and `-end` when\n * the popper element overlaps its reference boundaries.\n *\n * The original placement should have a set variation.\n */\n flipVariationsByContent: false\n },\n\n /**\n * Modifier used to make the popper flow toward the inner of the reference element.\n * By default, when this modifier is disabled, the popper will be placed outside\n * the reference element.\n * @memberof modifiers\n * @inner\n */\n inner: {\n /** @prop {number} order=700 - Index used to define the order of execution */\n order: 700,\n /** @prop {Boolean} enabled=false - Whether the modifier is enabled or not */\n enabled: false,\n /** @prop {ModifierFn} */\n fn: inner\n },\n\n /**\n * Modifier used to hide the popper when its reference element is outside of the\n * popper boundaries. It will set a `x-out-of-boundaries` attribute which can\n * be used to hide with a CSS selector the popper when its reference is\n * out of boundaries.\n *\n * Requires the `preventOverflow` modifier before it in order to work.\n * @memberof modifiers\n * @inner\n */\n hide: {\n /** @prop {number} order=800 - Index used to define the order of execution */\n order: 800,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: hide\n },\n\n /**\n * Computes the style that will be applied to the popper element to gets\n * properly positioned.\n *\n * Note that this modifier will not touch the DOM, it just prepares the styles\n * so that `applyStyle` modifier can apply it. This separation is useful\n * in case you need to replace `applyStyle` with a custom implementation.\n *\n * This modifier has `850` as `order` value to maintain backward compatibility\n * with previous versions of Popper.js. Expect the modifiers ordering method\n * to change in future major versions of the library.\n *\n * @memberof modifiers\n * @inner\n */\n computeStyle: {\n /** @prop {number} order=850 - Index used to define the order of execution */\n order: 850,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: computeStyle,\n /**\n * @prop {Boolean} gpuAcceleration=true\n * If true, it uses the CSS 3D transformation to position the popper.\n * Otherwise, it will use the `top` and `left` properties\n */\n gpuAcceleration: true,\n /**\n * @prop {string} [x='bottom']\n * Where to anchor the X axis (`bottom` or `top`). AKA X offset origin.\n * Change this if your popper should grow in a direction different from `bottom`\n */\n x: 'bottom',\n /**\n * @prop {string} [x='left']\n * Where to anchor the Y axis (`left` or `right`). AKA Y offset origin.\n * Change this if your popper should grow in a direction different from `right`\n */\n y: 'right'\n },\n\n /**\n * Applies the computed styles to the popper element.\n *\n * All the DOM manipulations are limited to this modifier. This is useful in case\n * you want to integrate Popper.js inside a framework or view library and you\n * want to delegate all the DOM manipulations to it.\n *\n * Note that if you disable this modifier, you must make sure the popper element\n * has its position set to `absolute` before Popper.js can do its work!\n *\n * Just disable this modifier and define your own to achieve the desired effect.\n *\n * @memberof modifiers\n * @inner\n */\n applyStyle: {\n /** @prop {number} order=900 - Index used to define the order of execution */\n order: 900,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: applyStyle,\n /** @prop {Function} */\n onLoad: applyStyleOnLoad,\n /**\n * @deprecated since version 1.10.0, the property moved to `computeStyle` modifier\n * @prop {Boolean} gpuAcceleration=true\n * If true, it uses the CSS 3D transformation to position the popper.\n * Otherwise, it will use the `top` and `left` properties\n */\n gpuAcceleration: undefined\n }\n};\n\n/**\n * The `dataObject` is an object containing all the information used by Popper.js.\n * This object is passed to modifiers and to the `onCreate` and `onUpdate` callbacks.\n * @name dataObject\n * @property {Object} data.instance The Popper.js instance\n * @property {String} data.placement Placement applied to popper\n * @property {String} data.originalPlacement Placement originally defined on init\n * @property {Boolean} data.flipped True if popper has been flipped by flip modifier\n * @property {Boolean} data.hide True if the reference element is out of boundaries, useful to know when to hide the popper\n * @property {HTMLElement} data.arrowElement Node used as arrow by arrow modifier\n * @property {Object} data.styles Any CSS property defined here will be applied to the popper. It expects the JavaScript nomenclature (eg. `marginBottom`)\n * @property {Object} data.arrowStyles Any CSS property defined here will be applied to the popper arrow. It expects the JavaScript nomenclature (eg. `marginBottom`)\n * @property {Object} data.boundaries Offsets of the popper boundaries\n * @property {Object} data.offsets The measurements of popper, reference and arrow elements\n * @property {Object} data.offsets.popper `top`, `left`, `width`, `height` values\n * @property {Object} data.offsets.reference `top`, `left`, `width`, `height` values\n * @property {Object} data.offsets.arrow] `top` and `left` offsets, only one of them will be different from 0\n */\n\n/**\n * Default options provided to Popper.js constructor.<br />\n * These can be overridden using the `options` argument of Popper.js.<br />\n * To override an option, simply pass an object with the same\n * structure of the `options` object, as the 3rd argument. For example:\n * ```\n * new Popper(ref, pop, {\n * modifiers: {\n * preventOverflow: { enabled: false }\n * }\n * })\n * ```\n * @type {Object}\n * @static\n * @memberof Popper\n */\nvar Defaults = {\n /**\n * Popper's placement.\n * @prop {Popper.placements} placement='bottom'\n */\n placement: 'bottom',\n\n /**\n * Set this to true if you want popper to position it self in 'fixed' mode\n * @prop {Boolean} positionFixed=false\n */\n positionFixed: false,\n\n /**\n * Whether events (resize, scroll) are initially enabled.\n * @prop {Boolean} eventsEnabled=true\n */\n eventsEnabled: true,\n\n /**\n * Set to true if you want to automatically remove the popper when\n * you call the `destroy` method.\n * @prop {Boolean} removeOnDestroy=false\n */\n removeOnDestroy: false,\n\n /**\n * Callback called when the popper is created.<br />\n * By default, it is set to no-op.<br />\n * Access Popper.js instance with `data.instance`.\n * @prop {onCreate}\n */\n onCreate: function onCreate() {},\n\n /**\n * Callback called when the popper is updated. This callback is not called\n * on the initialization/creation of the popper, but only on subsequent\n * updates.<br />\n * By default, it is set to no-op.<br />\n * Access Popper.js instance with `data.instance`.\n * @prop {onUpdate}\n */\n onUpdate: function onUpdate() {},\n\n /**\n * List of modifiers used to modify the offsets before they are applied to the popper.\n * They provide most of the functionalities of Popper.js.\n * @prop {modifiers}\n */\n modifiers: modifiers\n};\n\n/**\n * @callback onCreate\n * @param {dataObject} data\n */\n\n/**\n * @callback onUpdate\n * @param {dataObject} data\n */\n\n// Utils\n// Methods\nvar Popper = function () {\n /**\n * Creates a new Popper.js instance.\n * @class Popper\n * @param {Element|referenceObject} reference - The reference element used to position the popper\n * @param {Element} popper - The HTML / XML element used as the popper\n * @param {Object} options - Your custom options to override the ones defined in [Defaults](#defaults)\n * @return {Object} instance - The generated Popper.js instance\n */\n function Popper(reference, popper) {\n var _this = this;\n\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n classCallCheck(this, Popper);\n\n this.scheduleUpdate = function () {\n return requestAnimationFrame(_this.update);\n };\n\n // make update() debounced, so that it only runs at most once-per-tick\n this.update = debounce(this.update.bind(this));\n\n // with {} we create a new object with the options inside it\n this.options = _extends({}, Popper.Defaults, options);\n\n // init state\n this.state = {\n isDestroyed: false,\n isCreated: false,\n scrollParents: []\n };\n\n // get reference and popper elements (allow jQuery wrappers)\n this.reference = reference && reference.jquery ? reference[0] : reference;\n this.popper = popper && popper.jquery ? popper[0] : popper;\n\n // Deep merge modifiers options\n this.options.modifiers = {};\n Object.keys(_extends({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) {\n _this.options.modifiers[name] = _extends({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});\n });\n\n // Refactoring modifiers' list (Object => Array)\n this.modifiers = Object.keys(this.options.modifiers).map(function (name) {\n return _extends({\n name: name\n }, _this.options.modifiers[name]);\n })\n // sort the modifiers by order\n .sort(function (a, b) {\n return a.order - b.order;\n });\n\n // modifiers have the ability to execute arbitrary code when Popper.js get inited\n // such code is executed in the same order of its modifier\n // they could add new properties to their options configuration\n // BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`!\n this.modifiers.forEach(function (modifierOptions) {\n if (modifierOptions.enabled && isFunction(modifierOptions.onLoad)) {\n modifierOptions.onLoad(_this.reference, _this.popper, _this.options, modifierOptions, _this.state);\n }\n });\n\n // fire the first update to position the popper in the right place\n this.update();\n\n var eventsEnabled = this.options.eventsEnabled;\n if (eventsEnabled) {\n // setup event listeners, they will take care of update the position in specific situations\n this.enableEventListeners();\n }\n\n this.state.eventsEnabled = eventsEnabled;\n }\n\n // We can't use class properties because they don't get listed in the\n // class prototype and break stuff like Sinon stubs\n\n\n createClass(Popper, [{\n key: 'update',\n value: function update$$1() {\n return update.call(this);\n }\n }, {\n key: 'destroy',\n value: function destroy$$1() {\n return destroy.call(this);\n }\n }, {\n key: 'enableEventListeners',\n value: function enableEventListeners$$1() {\n return enableEventListeners.call(this);\n }\n }, {\n key: 'disableEventListeners',\n value: function disableEventListeners$$1() {\n return disableEventListeners.call(this);\n }\n\n /**\n * Schedules an update. It will run on the next UI update available.\n * @method scheduleUpdate\n * @memberof Popper\n */\n\n\n /**\n * Collection of utilities useful when writing custom modifiers.\n * Starting from version 1.7, this method is available only if you\n * include `popper-utils.js` before `popper.js`.\n *\n * **DEPRECATION**: This way to access PopperUtils is deprecated\n * and will be removed in v2! Use the PopperUtils module directly instead.\n * Due to the high instability of the methods contained in Utils, we can't\n * guarantee them to follow semver. Use them at your own risk!\n * @static\n * @private\n * @type {Object}\n * @deprecated since version 1.8\n * @member Utils\n * @memberof Popper\n */\n\n }]);\n return Popper;\n}();\n\n/**\n * The `referenceObject` is an object that provides an interface compatible with Popper.js\n * and lets you use it as replacement of a real DOM node.<br />\n * You can use this method to position a popper relatively to a set of coordinates\n * in case you don't have a DOM node to use as reference.\n *\n * ```\n * new Popper(referenceObject, popperNode);\n * ```\n *\n * NB: This feature isn't supported in Internet Explorer 10.\n * @name referenceObject\n * @property {Function} data.getBoundingClientRect\n * A function that returns a set of coordinates compatible with the native `getBoundingClientRect` method.\n * @property {number} data.clientWidth\n * An ES6 getter that will return the width of the virtual reference element.\n * @property {number} data.clientHeight\n * An ES6 getter that will return the height of the virtual reference element.\n */\n\n\nPopper.Utils = (typeof window !== 'undefined' ? window : global).PopperUtils;\nPopper.placements = placements;\nPopper.Defaults = Defaults;\n\nexport default Popper;\n//# sourceMappingURL=popper.js.map\n","'use strict'\n\n/**\n * Remove a range of items from an array\n *\n * @function removeItems\n * @param {Array<*>} arr The target array\n * @param {number} startIdx The index to begin removing from (inclusive)\n * @param {number} removeCount How many items to remove\n */\nmodule.exports = function removeItems (arr, startIdx, removeCount) {\n var i, length = arr.length\n\n if (startIdx >= length || removeCount === 0) {\n return\n }\n\n removeCount = (startIdx + removeCount > length ? length - startIdx : removeCount)\n\n var len = length - removeCount\n\n for (i = startIdx; i < len; ++i) {\n arr[i] = arr[i + removeCount]\n }\n\n arr.length = len\n}\n","import AcServices from \"../modules/ac-services\";\nexport const initAcServices = () => {\n if (!window.AC_SERVICES) {\n window.AC_SERVICES = new AcServices();\n }\n return window.AC_SERVICES;\n};\n","import AcHtmlElement from \"./html-element\";\nexport const insertAfter = (newNode, referenceNode) => {\n referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling);\n};\nexport const insertBefore = (newNode, referenceNode) => {\n referenceNode.parentNode.insertBefore(newNode, referenceNode);\n};\nexport const createElementFromString = (content, baseElement = 'div') => {\n return AcHtmlElement.create(baseElement).addHtml(content).element;\n};\nfunction isInViewport(element) {\n var rect = element.getBoundingClientRect();\n return (rect.top >= 0 && rect.left >= 0 &&\n rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&\n rect.right <= (window.innerWidth || document.documentElement.clientWidth));\n}\n","export const getParamFromUrl = (param, url) => {\n if (!url.includes('?')) {\n return null;\n }\n const params = new URLSearchParams(url.split('?')[1]);\n return params.get(param);\n};\nexport const mapDataToFormData = (data, formData = null) => {\n if (!formData) {\n formData = new FormData();\n }\n Object.keys(data).forEach(key => {\n appendObjectToFormData(formData, data[key], key);\n });\n return formData;\n};\nexport const appendObjectToFormData = (formData, data, parentKey = null) => {\n if (data && typeof data === 'object' && !(data instanceof Date) && !(data instanceof File)) {\n Object.keys(data).forEach(key => {\n appendObjectToFormData(formData, data[key], parentKey ? `${parentKey}[${key}]` : key);\n });\n }\n else {\n const value = data == null ? '' : data;\n formData.append(parentKey, value);\n }\n};\n","export const AcEl = (el) => {\n return AcHtmlElement.create(el);\n};\nexport default class AcHtmlElement {\n constructor(el) {\n this.element = el instanceof HTMLElement ? el : document.createElement(el);\n }\n static create(el) {\n return new AcHtmlElement(el);\n }\n addId(id) {\n this.element.id = id;\n return this;\n }\n addClass(className) {\n this.element.classList.add(className);\n return this;\n }\n addClasses(...classNames) {\n classNames.forEach(className => this.addClass(className));\n return this;\n }\n setAttribute(name, value) {\n this.element.setAttribute(name, value);\n return this;\n }\n setAttributes(attributes) {\n Object.keys(attributes).forEach(k => this.setAttribute(k, attributes[k]));\n return this;\n }\n addHtml(html) {\n this.element.innerHTML = html;\n return this;\n }\n append(element) {\n this.element.appendChild(element);\n return this;\n }\n appendSelfTo(element) {\n element.append(this.element);\n return this;\n }\n css(property, value) {\n this.element.style[property] = value;\n return this;\n }\n insertAfter(insertedElement) {\n try {\n this.element.parentElement.insertBefore(insertedElement, this.element.nextElementSibling);\n }\n catch (e) {\n console.error(\"Not able to insert element after current node\", this.element);\n }\n }\n insertSelfBefore(referenceNode) {\n try {\n referenceNode.parentElement.insertBefore(this.element, referenceNode);\n }\n catch (e) {\n console.error(\"Not able to insert element before current node\", this.element);\n }\n return this;\n }\n insertBefore(insertedElement) {\n try {\n this.element.parentElement.insertBefore(insertedElement, this.element);\n }\n catch (e) {\n console.error(\"Not able to insert element before current node\", this.element);\n }\n return this;\n }\n addEventListener(event, listener) {\n this.element.addEventListener(event, listener);\n return this;\n }\n addEventListeners(events, listener) {\n events.forEach(e => this.addEventListener(e, listener));\n return this;\n }\n}\n","import { getParamFromUrl } from \"./global\";\nexport const getIdFromTableRow = (row) => {\n if (row.classList.contains('no-items')) {\n return 0;\n }\n let item_id = getIdFromString(row.id);\n if (!item_id) {\n let input = row.querySelector('.check-column input[type=checkbox]');\n if (input) {\n item_id = getIdFromString(input.id);\n }\n }\n // Try to get the ID from the edit URL (MS Sites)\n if (!item_id) {\n let link = row.parentElement.querySelector('.edit a');\n if (link) {\n let href = link.getAttribute('href');\n if (href) {\n item_id = parseInt(getParamFromUrl('id', href));\n }\n }\n }\n row.dataset.id = item_id.toString();\n return item_id;\n};\nexport const getIdFromString = (value) => {\n let id_parts = value.split(/[_,\\-]+/);\n return parseInt(id_parts[id_parts.length - 1]);\n};\nexport const getRowCellByName = (row, column_name) => {\n return row.querySelector(`td.column-${column_name}`);\n};\nexport const resolveTableBySelector = (selector) => {\n let table = document.querySelector(selector);\n if (!table) {\n return null;\n }\n if (table.tagName === 'TABLE') {\n return table;\n }\n if (table.tagName === 'TBODY') {\n return table.closest('table');\n }\n if (table.querySelector('table.wp-list-table')) {\n return table.querySelector('table.wp-list-table');\n }\n return null;\n};\n","import Nanobus from \"nanobus\";\nimport { AcEl } from \"../helpers/html-element\";\nexport default class AcServices {\n constructor() {\n this.services = {};\n this.events = new Nanobus();\n this.$ = AcEl;\n }\n registerService(name, service) {\n this.services[name] = service;\n return this;\n }\n getService(name) {\n return this.hasService(name) ? this.services[name] : null;\n }\n hasService(name) {\n return this.services.hasOwnProperty(name);\n }\n addListener(name, callback) {\n this.events.addListener(name, callback);\n }\n emitEvent(name, args) {\n this.events.emit(name, args);\n }\n}\n","export default class Modal {\n constructor(el) {\n if (!el) {\n return;\n }\n this.el = el;\n this.dialog = el.querySelector('.ac-modal__dialog');\n this.initEvents();\n }\n getElement() {\n return this.el;\n }\n initEvents() {\n let self = this;\n document.addEventListener('keydown', (e) => {\n const keyName = e.key;\n if (!this.isOpen()) {\n return;\n }\n if ('Escape' === keyName) {\n this.close();\n }\n });\n let dismissButtons = this.el.querySelectorAll('[data-dismiss=\"modal\"], .ac-modal__dialog__close');\n if (dismissButtons.length > 0) {\n dismissButtons.forEach((b) => {\n b.addEventListener('click', (e) => {\n e.preventDefault();\n self.close();\n });\n });\n }\n this.el.addEventListener('click', (e) => {\n if (e.target.classList.contains('ac-modal')) {\n self.close();\n }\n });\n }\n isOpen() {\n return this.el.classList.contains('-active');\n }\n close() {\n this.onClose();\n this.el.classList.remove('-active');\n }\n open() {\n //short delay in order to allow bubbling events to bind before opening\n setTimeout(() => {\n this.onOpen();\n this.el.removeAttribute('style');\n this.el.classList.add('-active');\n });\n }\n destroy() {\n this.el.remove();\n }\n onClose() {\n }\n onOpen() {\n }\n}\n","export const initAcTooltips = () => {\n document.querySelectorAll('[data-ac-tip]').forEach((element) => {\n new Tooltip(element);\n });\n};\nexport class Tooltip {\n constructor(el, content = '') {\n this.element = el;\n this.content = content ? content : el.dataset.acTip;\n this.tip = createTooltip(this.content);\n this.initEvents();\n }\n initEvents() {\n if (this.element.dataset.acTooltipInit === '1') {\n return;\n }\n this.element.dataset.acTooltipInit = '1';\n document.body.appendChild(this.tip);\n this.element.addEventListener('mouseenter', () => {\n const bodyOffset = document.body.getBoundingClientRect();\n const viewportOffset = this.element.getBoundingClientRect();\n this.tip.style.left = ((viewportOffset.left - bodyOffset.left) + this.element.offsetWidth / 2) + 'px';\n this.tip.style.top = ((viewportOffset.top - bodyOffset.top) + this.element.offsetHeight) + 'px';\n this.tip.classList.add('hover');\n });\n this.element.addEventListener('mouseleave', () => {\n this.tip.classList.remove('hover');\n });\n }\n}\nconst createTooltip = (content) => {\n let tip = document.createElement('div');\n tip.classList.add('ac-tooltip');\n tip.innerHTML = content;\n return tip;\n};\n","import Nanobus from \"nanobus\";\nimport { EDIT_SERVICES } from \"ACP/Editing/const\";\nconst SELECTORS = {\n ROWCLASS: 'acp-be-editrow'\n};\nconst i18n = {\n BULK_EDIT: ACP_Editing.i18n.bulk_edit.bulk_edit\n};\nexport default class BulkEditRow {\n constructor(BulkEdit) {\n this.BulkEdit = BulkEdit;\n this.Table = BulkEdit.Table;\n this.Middleware = BulkEdit.Middleware;\n this.events = new Nanobus();\n }\n add() {\n let thead = this.Table.getElement().getElementsByTagName('thead')[0];\n let headers = thead.children[0].children;\n let row = document.createElement('tr');\n row.classList.add(SELECTORS.ROWCLASS);\n for (let i = 0; i < headers.length; i++) {\n let header = headers[i];\n let column = this.Table.Columns.get(header.id);\n let cell = document.createElement('td');\n cell.classList.add(`column-${header.id}`);\n if (header.id !== 'cb' && column && column.hasService(EDIT_SERVICES.BULK_EDITABLE)) {\n let editable = column.getService(EDIT_SERVICES.BULK_EDITABLE);\n if (editable === null) {\n row.appendChild(cell);\n continue;\n }\n cell.innerHTML = `<button class=\"button\" data-name=\"${header.id}\">${i18n.BULK_EDIT}</button>`;\n this.initEvents(cell);\n }\n row.appendChild(cell);\n }\n this.Table.getElement().querySelector('tbody').insertAdjacentElement('afterbegin', row);\n this.refresh();\n return row;\n }\n remove() {\n this.Table.getElement().querySelectorAll(`.${SELECTORS.ROWCLASS}`).forEach(el => el.remove());\n }\n initEvents(cell) {\n cell.querySelector('button').addEventListener('click', (e) => {\n e.preventDefault();\n e.stopPropagation();\n this.events.emit('click', { name: e.target.dataset.name });\n }, true);\n }\n onButtonClick(callback) {\n this.events.addListener('click', callback);\n }\n getRow() {\n return this.Table.getElement().querySelector(`.${SELECTORS.ROWCLASS}`);\n }\n refresh() {\n let thead = this.Table.getElement().getElementsByTagName('thead')[0];\n let headers = thead.children[0].children;\n for (let i = 0; i < headers.length; i++) {\n let header = headers[i];\n let col = this.getRow().querySelector(`.column-${header.id}`);\n if (!col) {\n continue;\n }\n header.classList.contains('hidden')\n ? col.classList.add('hidden')\n : col.classList.remove('hidden');\n }\n }\n}\n","import Popper from 'popper.js';\nimport Job from './bulk-processor';\nimport BulkEditRow from \"ACP/Editing/bulk-edit/bulk-edit-row\";\nimport Notice from 'ACP/Editing/bulk-edit/bulk-notice';\nimport BulkEditModal from \"./bulk-modal\";\nimport { format } from \"../../../export/js/helper/string\";\nconst i18n = {\n UPDATE: format(ACP_Editing.i18n.bulk_edit.form.update_values, '<span data-acp-be-count>0</span>'),\n ARE_YOU_SURE: ACP_Editing.i18n.bulk_edit.form.are_you_sure,\n YES_UPDATE: ACP_Editing.i18n.bulk_edit.form.yes_update,\n CANCEL: ACP_Editing.i18n.cancel\n};\nconst defaults = {\n total_count: ACP_Editing.bulk_edit.total_items\n};\nexport default class BulkEdit {\n constructor(Table, Editables, EditableMiddleware, TableUpdate) {\n this.Table = Table;\n this.Editables = Editables;\n this.Middleware = EditableMiddleware;\n this.Notice = new Notice(this.Table);\n this.EditRow = new BulkEditRow(this);\n this.TableUpdate = TableUpdate;\n this.isAllSelected = false;\n this.confirmed = false;\n this.init();\n }\n init() {\n this.addTableEvents();\n this.initButtonClick();\n }\n setConfirmed(confirm) {\n this.confirmed = confirm;\n return this;\n }\n isConfirmed() {\n if (ACP_Editing.bulk_edit.hasOwnProperty('show_confirmation') && !ACP_Editing.bulk_edit.show_confirmation) {\n return true;\n }\n return this.confirmed;\n }\n onSave(editable, cell) {\n if (!this.isConfirmed()) {\n this.confirm(editable);\n return;\n }\n let job = new Job(cell, editable.getValue(), this.getItemsToProcess(), this.isAllSelected);\n this.EditableModal.setProcess(job.getElement());\n this.Editable.disable();\n editable.getElement().querySelector('.aceditable__form__controls [data-submit]').style.display = 'none';\n // Bind Events\n job.events.addListener('close', () => {\n this.EditableModal.close();\n });\n job.events.addListener('finished', () => {\n this.TableUpdate.updateSelectedCells(cell.name, editable.getValue());\n if (this.EditableModal) {\n this.EditableModal.setCanDismiss(true);\n this.EditableModal.toggleCloseButton(true);\n }\n });\n }\n initButtonClick() {\n this.EditRow.onButtonClick((e) => {\n let settings = this.Table.Columns.get(e.name);\n let middleware = this.Middleware.getBulkEditable(settings);\n let editable = middleware.getEditable();\n this.setConfirmed(false);\n if (!editable || this.EditableModal) {\n return;\n }\n let editableArgs = middleware.getArgs();\n editableArgs.showbuttons = true;\n let Editable = new editable(editableArgs);\n let EditableModal = new BulkEditModal(Editable);\n Editable.getEditableTemplate().setSubmitButton('Update');\n EditableModal.setTitle(`Bulk Edit “${settings.label}”`);\n EditableModal.setTotal(this.getSelectedCount());\n EditableModal.open();\n this.EditableModal = EditableModal;\n this.Editable = Editable;\n this.updateCount();\n // Bind Events\n Editable.Events.addListener('save', (editable) => {\n this.onSave(editable, settings);\n });\n EditableModal.events.addListener('close', () => {\n this.destroyEditable();\n this.EditableModal = null;\n });\n });\n }\n destroyEditable() {\n this.removeConfirm();\n this.Editable.close();\n this.EditableModal.destroy();\n }\n confirm(editable) {\n this.removeConfirm();\n let confirm = document.createElement('div');\n confirm.classList.add('acp-be-confirm');\n confirm.innerHTML = `\n\t\t\t<span class=\"acp-be-confirm__caret\"></span>\n\t\t\t<em class=\"acp-be-confirm__info\">${i18n.UPDATE}</em>\n\t\t\t<div class=\"acp-be-confirm__controls\"><strong>${i18n.ARE_YOU_SURE}</strong> <a data-confirm class=\"acp-be-confirm__controls__link -confirm\">${i18n.YES_UPDATE}</a> <a data-cancel class=\"acp-be-confirm__controls__link -cancel\">${i18n.CANCEL}</a></div>\n\t\t`;\n document.body.append(confirm);\n new Popper(editable.getEditableTemplate().getElement().querySelector('[data-submit]'), confirm, {\n modifiers: {\n preventOverflow: { enabled: false },\n hide: { enabled: false },\n arrow: { element: '.acp-be-confirm__caret' }\n }\n });\n this.confirmElement = confirm;\n this.setConfirmed(false);\n this.updateCount();\n // Bind Events\n let elDialog = this.EditableModal.el.querySelector('.ac-modal__dialog');\n let elConfirm = confirm.querySelector('[data-confirm]');\n let elCancel = confirm.querySelector('[data-cancel]');\n elDialog.addEventListener('keypress', (e) => {\n if (e.key === 'Enter' && document.querySelectorAll('.acp-be-confirm').length > 0) {\n this.setConfirmed(true);\n this.removeConfirm();\n editable.save();\n }\n });\n elConfirm.addEventListener('click', () => {\n this.setConfirmed(true);\n this.removeConfirm();\n editable.save();\n });\n elCancel.addEventListener('click', () => {\n this.setConfirmed(false);\n this.removeConfirm();\n });\n }\n addTableEvents() {\n let checkboxes = this.Table.getElement().querySelectorAll('.check-column input[type=checkbox]');\n checkboxes.forEach((checkbox) => {\n checkbox.addEventListener('change', () => {\n this.isAllSelected = false;\n setTimeout(() => {\n if (this.Table.Selection.getCount() > 1) {\n this.toggleEditRows(true);\n }\n else {\n this.toggleEditRows(false);\n }\n if (this.Table.Selection.isAllSelected() && (defaults.total_count && this.Table.Selection.getCount() < defaults.total_count)) {\n let link = this.Notice.createSelectAll(defaults.total_count);\n defaults.total_count = defaults.total_count ? defaults.total_count : 'all';\n if (link) {\n link.style.display = 'inline';\n link.addEventListener('click', () => {\n link.style.display = 'none';\n this.isAllSelected = true;\n this.updateCount();\n });\n }\n }\n this.updateCount();\n });\n });\n });\n this.Table.getElement().addEventListener('scroll', () => {\n let table = this.Table.getElement();\n let notice = table.querySelector('.acp-be-noticerow .acp-be-notice p');\n if (notice) {\n notice.style.left = document.body.classList.contains('acp-overflow-table') ? `${table.scrollLeft}px` : '0';\n }\n });\n }\n toggleEditRows(show = true) {\n this.Notice.removeNotice();\n this.EditRow.remove();\n if (show) {\n this.Notice.addNotice();\n this.EditRow.add();\n }\n }\n getSelectedCount() {\n let count = this.Table.Selection.getCount();\n if (this.isAllSelected) {\n count = 'all';\n }\n return count;\n }\n updateCount() {\n document.querySelectorAll('[data-acp-be-count]').forEach((el) => {\n el.innerHTML = this.getSelectedCount();\n });\n }\n getItemsToProcess() {\n return this.isAllSelected\n ? []\n : this.Table.Selection.getIDs();\n }\n removeConfirm() {\n if (this.confirmElement) {\n this.confirmElement.remove();\n }\n }\n}\n","export default class BulkLogger {\n constructor() {\n this.clear();\n }\n getErrors() {\n return this.data.filter(r => r.status === 'failed');\n }\n getNotEditable() {\n return this.data.filter(r => r.status === 'not_editable');\n }\n hasError() {\n return this.getErrors().length > 0;\n }\n hasNotEditable() {\n return this.getNotEditable().length > 0;\n }\n add(data) {\n this.data = [...this.data, ...data];\n }\n clear() {\n this.data = [];\n return this;\n }\n}\n","import Modal from \"AC/modules/modal\";\nimport Nanobus from \"nanobus\";\nconst i18n = {\n AFFECT: 'This will affect <strong><span data-total=\"\">12.500</span> entries</strong>'\n};\nexport default class BulkEditModal extends Modal {\n constructor(Editable) {\n super(createModalHtml());\n this.canDismiss = true;\n this.Editable = Editable;\n this.events = new Nanobus();\n this.hideProcess();\n this.setEditable(this.Editable.get());\n }\n close() {\n if (!this.canDismiss) {\n return;\n }\n super.close();\n this.events.emit('close');\n }\n setTotal(number) {\n this.el.querySelectorAll('[data-total] ').forEach((el) => {\n el.innerHTML = number;\n });\n }\n setEditable(el) {\n this.el.querySelector('[data-editable]').append(el);\n }\n setTitle(title) {\n this.el.querySelector('[data-title]').innerHTML = title;\n }\n setProcess(el) {\n let container = this.el.querySelector('[data-process]');\n this.el.querySelector('.ac-modal__dialog__content.-info').style.display = 'none';\n container.innerHTML = '';\n container.append(el);\n container.style.display = 'block';\n this.canDismiss = false;\n this.toggleCloseButton(false);\n }\n setCanDismiss(canDismiss) {\n this.canDismiss = canDismiss;\n }\n toggleCloseButton(show) {\n this.el.querySelector('.ac-modal__dialog__close').style.display = show ? 'block' : 'none';\n }\n hideProcess() {\n this.el.querySelector('[data-process]').style.display = 'none';\n }\n}\nconst createModalHtml = () => {\n let modal = document.createElement('div');\n modal.classList.add('ac-modal');\n modal.classList.add('-bulkedit');\n modal.innerHTML = `\n\t\t\t\t<div class=\"ac-modal__dialog\">\n\t\t\t\t\t<div class=\"ac-modal__dialog__header\">\n\t\t\t\t\t\t<span data-title></span>\n\t\t\t\t\t\t<button class=\"ac-modal__dialog__close\">\n\t\t\t\t\t\t\t<span class=\"dashicons dashicons-no\"></span>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"ac-modal__dialog__content -editable\" data-editable></div>\n\t\t\t\t\t<div class=\"ac-modal__dialog__content -info\">\n\t\t\t\t\t\t<span class=\"acp-be-warning__icon dashicons dashicons-info\"></span><em>${i18n.AFFECT}</em> \n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"ac-modal__dialog__content -process\" data-process>\n\t\t\t\t\t\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"ac-modal__dialog__content -log\">\n\t\t\t\t\t <div data-log></div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t`;\n document.body.appendChild(modal);\n return modal;\n};\n","import { format } from \"../../../export/js/helper/string\";\nconst i18n = {\n SELECTED: ACP_Editing.i18n.bulk_edit.selecting.selected,\n SELECTALL: ACP_Editing.i18n.bulk_edit.selecting.select_all\n};\nconst SELECTORS = {\n ROW: 'acp-be-noticerow'\n};\nexport default class BulkNotice {\n constructor(Table) {\n this.Table = Table;\n }\n addNotice() {\n this.createNotice();\n this.createNoticeRow();\n this.refreshNoticeRow();\n document.querySelectorAll('.hide-column-tog').forEach(cb => {\n cb.addEventListener('click', () => {\n this.refreshNoticeRow();\n });\n });\n }\n removeNotice() {\n let notice = this.Table.getElement().querySelector(`.${SELECTORS.ROW}`);\n if (notice) {\n notice.remove();\n }\n }\n createNotice() {\n let notice = document.createElement('div');\n notice.classList.add('acp-be-notice');\n let p = document.createElement('p');\n let text = format(`${i18n.SELECTED} `, `<span data-acp-be-count></span>`);\n p.insertAdjacentHTML('beforeend', text);\n notice.append(p);\n this.notice = notice;\n }\n createSelectAll(number) {\n if (document.querySelector('.ac-be-selectall')) {\n return document.querySelector('.ac-be-selectall');\n }\n if (number === false || number === 'all') {\n number = '';\n }\n if (!this.notice) {\n return null;\n }\n let link = document.createElement('a');\n link.innerHTML = format(i18n.SELECTALL, number);\n link.classList.add('ac-be-selectall');\n this.notice.querySelector('p').append(link);\n return link;\n }\n createNoticeRow() {\n let row = document.createElement('tr');\n let col = document.createElement('td');\n let colspan = this.Table.getElement().querySelector('thead tr').children.length;\n row.append(col);\n row.classList.add(SELECTORS.ROW);\n col.setAttribute('colspan', colspan.toString());\n col.append(this.notice);\n this.Table.getElement().querySelector('tbody').insertAdjacentElement('afterbegin', row);\n return row;\n }\n refreshNoticeRow() {\n let cells = this.Table.getElement().firstElementChild.firstElementChild.querySelectorAll('td,th');\n let colspan = 0;\n cells.forEach(cell => {\n if (!cell.classList.contains('hidden')) {\n colspan++;\n }\n });\n this.Table.getElement().querySelector(`.${SELECTORS.ROW} td`).setAttribute('colspan', colspan.toString());\n }\n}\n","import { format } from \"../../../export/js/helper/string\";\nimport Nanobus from \"nanobus\";\nimport { AJAX_VARS } from \"ACP/Editing/const\";\nimport axios from \"axios\";\nimport { mapDataToFormData } from \"AC/helpers/global\";\nimport BulkLogger from \"ACP/Editing/bulk-edit/bulk-logger\";\nimport { ErrorLogComponent, NotEditableLogComponent } from \"ACP/Editing/bulk-edit/log-component\";\nconst i18n = {\n FINISHED: ACP_Editing.i18n.bulk_edit.feedback.finished,\n UPDATING: ACP_Editing.i18n.bulk_edit.feedback.updating,\n PROCESSED: format(ACP_Editing.i18n.bulk_edit.feedback.processed, '<span data-processed>0</span>', '<span data-total-items></span>'),\n FAIL: ACP_Editing.i18n.bulk_edit.feedback.failure,\n DONE: ACP_Editing.i18n.done,\n DONE_DESELECT: ACP_Editing.i18n.bulk_edit.selecting.done_deselect,\n CANCEL: ACP_Editing.i18n.cancel,\n ERROR: format(ACP_Editing.i18n.bulk_edit.feedback.error, '<span data-errors>0</span>'),\n};\nexport default class Processor {\n constructor(settings, value, items, processAll = false) {\n this.logger = new BulkLogger();\n this.events = new Nanobus();\n this.column = settings;\n this.value = value;\n this.items = items;\n this.totalNumber = Array.isArray(items) ? items.length : items;\n this.numberProcessed = 0;\n this.perPage = ACP_Editing.bulk_edit.updated_rows_per_iteration;\n this.processAll = processAll;\n this.isCanceled = false;\n this.isFinished = false;\n this.timer = {\n seconds: 0,\n minutes: 0,\n };\n this.element = createProcessorElement();\n this.startTimer();\n this.prepareJob();\n this.attachCancelEvent();\n this.updateTotal();\n this.updatePercentage(0);\n }\n getElement() {\n return this.element;\n }\n prepareJob(page = 1) {\n if (!this.processAll) {\n return this.runJob();\n }\n if (page === 1) {\n this.items = [];\n }\n jQuery.ajax({\n url: window.location.href,\n method: 'get',\n data: {\n ac_action: 'get_editable_rows',\n ac_page: page,\n _ajax_nonce: AC.ajax_nonce\n }\n }).done((response) => {\n if (!response.hasOwnProperty('success') || !response.success) {\n return;\n }\n if (!response.data.hasOwnProperty('editable_rows')) {\n return;\n }\n this.items = [].concat(this.items, response.data.editable_rows);\n this.totalNumber = this.items.length;\n if (response.data.rows_per_iteration === response.data.editable_rows.length) {\n this.updateTotal();\n this.prepareJob(page + 1);\n return;\n }\n this.updateTotal();\n this.runJob();\n });\n }\n runJob() {\n if (this.isCanceled) {\n return;\n }\n let self = this;\n let items = self.items;\n let item_set = items.splice(0, self.perPage);\n if (item_set.length === 0) {\n self.onComplete();\n return;\n }\n this.startUpdateThread(item_set).then((response) => {\n if (response.data.success) {\n let num = response.data.data.total;\n self.numberProcessed += num;\n this.updateProcessed(self.numberProcessed);\n this.logger.add(response.data.data.results);\n if (num > 0 && !self.isCanceled) {\n self.runJob();\n }\n else {\n self.onComplete();\n }\n }\n });\n }\n startUpdateThread(ids) {\n return axios.post(ajaxurl, mapDataToFormData({\n action: AJAX_VARS.ACTION,\n method: AJAX_VARS.METHOD_BULK_SAVE,\n list_screen: AC.list_screen,\n layout: AC.layout,\n column: this.column.name,\n ids: ids,\n value: this.value,\n _ajax_nonce: AC.ajax_nonce\n }));\n }\n attachCancelEvent() {\n this.element.querySelectorAll('[data-close]').forEach(button => {\n button.addEventListener('click', () => {\n if (this.isFinished) {\n button.remove();\n this.events.emit('close', {});\n }\n else {\n this.isCanceled = true;\n this.onComplete();\n }\n });\n });\n }\n updateTotal() {\n this.element.querySelector('[data-total-items]').innerHTML = this.totalNumber.toString();\n }\n updateProcessed(number) {\n this.element.querySelector('[data-processed]').innerHTML = number.toString();\n let percentage = Math.round((number / this.totalNumber) * 100);\n this.updatePercentage(percentage);\n }\n updatePercentage(percentage) {\n this.element.querySelector('[data-percentage]').innerHTML = `${percentage}%`;\n this.element.querySelector('[data-status-percentage]').style.width = `${percentage}%`;\n }\n onComplete() {\n if (!this.isCanceled) {\n this.element.querySelector('.acp-be-progress__process').innerHTML = format(i18n.FINISHED, this.totalNumber) + ' (100%) <span class=\"dashicons dashicons-yes\"></span>';\n }\n this.element.querySelector('[data-close]').innerHTML = i18n.DONE;\n this.element.querySelector('[data-close]').classList.add('button-primary');\n this.element.querySelector('[data-status-percentage]').classList.add('-finished');\n this.isFinished = true;\n this.stopTimer();\n this.canDismiss = false;\n this.addDeselectDoneButton();\n if (this.logger.hasError()) {\n const Log = new ErrorLogComponent(this.logger.getErrors());\n this.element.querySelector('[data-status-percentage]').classList.add('-error');\n this.element.querySelector('.errors').append(Log.element);\n }\n if (this.logger.hasNotEditable()) {\n const Log = new NotEditableLogComponent(this.logger.getNotEditable());\n this.element.querySelector('[data-status-percentage]').classList.add('-error');\n this.element.querySelector('.errors').append(Log.element);\n }\n this.events.emit('finished');\n }\n addDeselectDoneButton() {\n let button = createDoneButton();\n button.addEventListener('click', (e) => {\n e.preventDefault();\n AC_SERVICES.getService('Table').getElement().querySelectorAll('.check-column input[type=checkbox]:checked').forEach(cb => {\n cb.checked = false;\n cb.dispatchEvent(new Event('change'));\n });\n this.events.emit('close');\n });\n this.element.append(button);\n }\n startTimer() {\n this.addSecond();\n this.timerInterval = window.setInterval(() => {\n this.addSecond();\n }, 1000);\n }\n stopTimer() {\n clearInterval(this.timerInterval);\n }\n addSecond() {\n let element = this.element.querySelector('[data-timer]');\n this.timer.seconds++;\n if (this.timer.seconds >= 60) {\n this.timer.seconds = 0;\n this.timer.minutes++;\n }\n element.textContent = (this.timer.minutes ? (this.timer.minutes > 9 ? this.timer.minutes : \"0\" + this.timer.minutes) : \"00\") + \":\" + (this.timer.seconds > 9 ? this.timer.seconds : \"0\" + this.timer.seconds);\n }\n}\nconst createDoneButton = () => {\n let button = document.createElement('button');\n button.classList.add('button', 'done-deselect');\n button.innerText = i18n.DONE_DESELECT;\n button.dataset.close = 'true';\n return button;\n};\nconst ProcessTemplate = `\n\t\t<div class=\"acp-be-progress\">\n\t\t\t<div class=\"acp-be-progress__timer\" data-timer></div>\n\t\t\t<div class=\"acp-be-progress__process\">${i18n.PROCESSED} (<span data-percentage></span>)</div>\n\t\t</div>\n\n\t\t<div class=\"acp-be-statusbar\">\n\t\t\t<div class=\"acp-be-statusbar__progress\" data-status-percentage></div>\n\t\t</div>\n\n\t\t<div class=\"errors\">\n\t\t\t\n\t\t</div>\n\n\t\t<button data-close class=\"button\">Cancel</button>\n`;\nconst createProcessorElement = () => {\n let element = document.createElement('div');\n element.classList.add('acp-be-processing');\n element.innerHTML = ProcessTemplate;\n return element;\n};\n","import AcHtmlElement from \"AC/helpers/html-element\";\nimport { format } from \"../../../export/js/helper/string\";\nconst i18n = {\n ERROR: format(ACP_Editing.i18n.bulk_edit.feedback.error, '<span class=\"ac-bulk-log__status__count\"><span data-errors-count>0</span> errors</span>'),\n NOT_EDITABLE: format(ACP_Editing.i18n.bulk_edit.feedback.error, '<span class=\"ac-bulk-log__status__count -medium\"><span data-errors-count>0</span> unmodifiable items</span>'),\n SHOW_ITEMS: ACP_Editing.i18n.bulk_edit.feedback.show_items,\n HIDE_ITEMS: ACP_Editing.i18n.bulk_edit.feedback.hide_items,\n NOT_EDITABLE_FOUND: ACP_Editing.i18n.bulk_edit.feedback.not_editable_found,\n};\nclass LogComponent {\n constructor(items, error) {\n this.items = items;\n this.element = AcHtmlElement.create('div').addClass('bulk-log').addHtml(template(error)).element;\n this.addItems(items);\n this.element.querySelector('[data-errors-count]').innerHTML = items.length.toString();\n this.element.querySelector('[data-toggle-errors]').addEventListener('click', () => {\n this.toggleItems();\n });\n }\n toggleItems() {\n const link = this.element.querySelector('[data-toggle-errors]');\n const items = this.element.querySelector('[data-log-items]');\n const toggleClass = '-visible';\n if (items.classList.contains(toggleClass)) {\n items.classList.remove(toggleClass);\n link.innerHTML = i18n.SHOW_ITEMS;\n }\n else {\n items.classList.add(toggleClass);\n link.innerHTML = i18n.HIDE_ITEMS;\n }\n }\n}\nexport class ErrorLogComponent extends LogComponent {\n constructor(items) {\n super(items, i18n.ERROR);\n }\n addItems(items) {\n let container = this.element.querySelector('[data-log-items]');\n items.forEach(item => {\n container.append(AcHtmlElement.create('div').addHtml(`ID: ${item.id} - ${item.error}`).element);\n });\n }\n}\nexport class NotEditableLogComponent extends LogComponent {\n constructor(items) {\n super(items, i18n.NOT_EDITABLE);\n }\n addItems(items) {\n let ids = items.map(item => item.id).join(', ');\n this.element.querySelector('[data-log-items]').innerHTML = `${i18n.NOT_EDITABLE_FOUND}<br>ID: ${ids}`;\n }\n}\nconst template = (error) => {\n return `\n <div class=\"ac-bulk-log\">\n <div class=\"ac-bulk-log__status\">\n <span>${error}</span>\n <a data-toggle-errors>${i18n.SHOW_ITEMS}</a>\n </div>\n <div class=\"ac-bulk-log__items\" data-log-items>\n \n </div>\n </div>\n `;\n};\n","export const AJAX_VARS = {\n ACTION: \"acp_editing_request\",\n METHOD_BULK_SAVE: 'bulk-save',\n METHOD_INLINE_VALUES: 'inline-values',\n METHOD_INLINE_SAVE: 'inline-save',\n METHOD_EDIT_STATE: 'edit-state',\n METHOD_INLINE_SELECT_VALUES: 'inline-select-values',\n METHOD_BULK_SELECT_VALUES: 'bulk-select-values'\n};\nexport const EDIT_MODES = {\n BULK: 'bulk',\n INLINE: 'inline'\n};\nexport const EDIT_SERVICES = {\n BULK_EDITABLE: 'bulkEditable',\n INLINE_EDITABLE: 'inlineEditable',\n DATA_STORAGE: 'dataStorage'\n};\n","import EditableTemplate from '../templates/editable';\nimport Nanobus from \"nanobus\";\nimport { getNestedValue, parseArguments } from \"ACP/Editing/helpers/object\";\nexport default class AbstractEditable {\n constructor(args) {\n this.isInit = false;\n this.template = new EditableTemplate();\n this.settings = parseArguments(args, this.getDefaults());\n this.Events = new Nanobus();\n }\n close() {\n this.removeElement();\n this.Events.emit('close', this);\n return this;\n }\n focus() {\n return;\n }\n get() {\n this.element = this.template.getElement();\n this.beforeRender();\n this.render();\n this.valueToInput(this.settings.value);\n this.initEvents();\n return this.element;\n }\n render() {\n return;\n }\n getEditableTemplate() {\n return this.template;\n }\n toggle(enabled) {\n this.element.querySelectorAll('input, select, textarea, button').forEach(input => input.disabled = (enabled === false));\n this.disabled = (enabled === false);\n return this;\n }\n disable() {\n return this.toggle(false);\n }\n enable() {\n return this.toggle(true);\n }\n beforeRender() {\n this.template\n .setTemplate(this.getTemplate()).addClass('-' + this.getEditableType()).setError('')\n .showButtons(!this.settings.hasOwnProperty('showbuttons') || this.settings.showbuttons !== false);\n }\n save() {\n if (!this.disabled && this.validate()) {\n this.Events.emit('save', this);\n }\n }\n initEvents() {\n if (this.isInit) {\n return;\n }\n this.getElement().addEventListener('click', (e) => e.stopPropagation());\n this.getElement().querySelector('button[data-submit]').addEventListener('click', (e) => {\n e.preventDefault();\n this.save();\n });\n this.getElement().querySelector('button[data-cancel]').addEventListener('click', (e) => {\n e.preventDefault();\n this.close();\n });\n this.getElement().querySelector('form').addEventListener('submit', (e) => {\n e.preventDefault();\n this.save();\n });\n this.isInit = true;\n }\n getArg(selector, defaultValue = null) {\n return getNestedValue(this.settings, defaultValue, selector.split('.'));\n }\n removeElement() {\n if (this.getElement()) {\n this.getElement().remove();\n }\n }\n toggleLoading(loading = true) {\n if (!this.getElement()) {\n return;\n }\n loading\n ? this.getElement().classList.add('-loading')\n : this.getElement().classList.remove('-loading');\n }\n setValue(value) {\n this.settings.value = value;\n return this;\n }\n setObjectId(objectId) {\n this.settings.object_id = objectId;\n return this;\n }\n getObjectId() {\n return this.settings.hasOwnProperty('object_id') ? this.settings.object_id : false;\n }\n setError(error) {\n this.template.setError(error);\n }\n getElement() {\n return this.element;\n }\n validate() {\n let form = this.getElement().querySelector('form');\n if (!this.getElement().querySelector('form').checkValidity()) {\n form.reportValidity();\n return false;\n }\n return true;\n }\n getDefaults() {\n return {\n title: false,\n showbuttons: true,\n mode: 'inline'\n };\n }\n}\n","import AbstractEditable from './abstract';\nexport default class CheckboxEditable extends AbstractEditable {\n getEditableType() {\n return \"checkbox\";\n }\n focus() {\n let select = this.getElement().querySelector('form input[type=checkbox]');\n if (select) {\n select.focus({ preventScroll: true });\n }\n }\n render() {\n const group = this.getElement().querySelector('.input__group.-checkbox');\n Object.keys(this.settings.options).forEach((k) => {\n let option = this.settings.options[k];\n group.insertAdjacentHTML('beforeend', this.getEditableTemplate().getFormHelper().checkbox('option[]', option.value, option.text).outerHTML);\n });\n }\n valueToInput(values) {\n if (Array.isArray(values)) {\n values.forEach((value) => {\n let input = this.getElement().querySelector(`input[value=\"${value}\"]`);\n if (input) {\n input.checked = true;\n }\n });\n }\n }\n getValue() {\n let values = [];\n this.getElement().querySelectorAll('form input[type=checkbox]:checked').forEach((c) => values.push(c.value));\n return values;\n }\n getTemplate() {\n return `<div class=\"input__group -checkbox\"></div>`;\n }\n getDefaults() {\n let defaults = super.getDefaults();\n defaults['options'] = [];\n return defaults;\n }\n}\n","import AbstractEditable from './abstract';\nexport default class ColorEditable extends AbstractEditable {\n getEditableType() {\n return \"color\";\n }\n focus() {\n this.getElement().querySelector('button').focus({ preventScroll: true });\n }\n valueToInput(value) {\n let input = this.getElement().querySelector('input');\n if (value && input) {\n input.value = value;\n }\n jQuery(input).wpColorPicker();\n }\n getValue() {\n return this.getElement().querySelector('input').value;\n }\n getTemplate() {\n return this.getEditableTemplate().getFormHelper().input('color').outerHTML;\n }\n}\n","import AbstractEditable from './abstract';\nexport default class DateEditable extends AbstractEditable {\n getEditableType() {\n return \"date\";\n }\n focus() {\n return;\n }\n render() {\n const self = this;\n const $input = jQuery(this.getElement().querySelector('[name=date]'));\n document.body.classList.add('ac-jqui');\n $input.prop('readonly', true).datepicker({\n dateFormat: 'yy-mm-dd',\n changeYear: true,\n firstDay: this.settings.weekstart,\n showButtonPanel: true,\n onSelect: () => {\n if (!this.settings.showbuttons) {\n self.save();\n }\n },\n beforeShow: (input, inst) => {\n setTimeout(function () {\n let datepicker = inst.dpDiv.get(0);\n datepicker.style.position = 'relative';\n datepicker.style.left = 0;\n datepicker.style.top = 0;\n self.getElement().querySelector('.input__date').append(datepicker);\n }, 0);\n }\n }).on('click', () => {\n $input.prop('readonly', false);\n }).on('blur', () => {\n $input.prop('readonly', true);\n });\n }\n valueToInput(value) {\n if (value && value.length === 8) {\n value = mapACFDateFormat(value);\n setTimeout(() => {\n jQuery(this.getElement().querySelector('[name=date]')).val(value).datepicker('show');\n }, 0);\n }\n }\n getValue() {\n return this.getElement().querySelector('[name=date]').value;\n }\n getTemplate() {\n let input = this.getEditableTemplate().getFormHelper().input('date', '', { placeholder: 'yyyy-mm-dd', autocomplete: 'nope' }).outerHTML;\n return `\n\t\t\t${input}\n\t\t\t<div class=\"input__date\"></div>\n\t\t`;\n }\n getDefaults() {\n let defaults = super.getDefaults();\n defaults['weekstart'] = 1;\n return defaults;\n }\n}\nconst mapACFDateFormat = (date) => {\n date = [date.slice(0, 4), '-', date.slice(4)].join('');\n date = [date.slice(0, 7), '-', date.slice(7)].join('');\n return date;\n};\n","import AbstractEditable from './abstract';\nexport default class DateTimeEditable extends AbstractEditable {\n getEditableType() {\n return \"datetime\";\n }\n render() {\n document.body.classList.add('ac-jqui');\n DateTimeEditable.createSelectHours(this.getHourElement(), this.getArg('timeformat', null));\n DateTimeEditable.createSelectIncementalOptions(this.getMinutesElement());\n DateTimeEditable.createSelectIncementalOptions(this.getSecondsElement());\n jQuery(this.getDateElement()).datepicker({\n dateFormat: 'yy-mm-dd',\n changeYear: true,\n showButtonPanel: true,\n firstDay: this.getArg('weekstart', 1),\n });\n }\n close() {\n document.body.classList.remove('ac-jqui');\n return super.close();\n }\n focus() {\n this.getDateElement().focus({ preventScroll: true });\n }\n valueToInput(value) {\n if (!value) {\n return;\n }\n let DateTime = new Date(value.replace(/-/g, \"/\"));\n if (isNaN(DateTime.getTime())) {\n return;\n }\n this.getDateElement().value = DateTime.getFullYear() + '-' + ('0' + (DateTime.getMonth() + 1)).slice(-2) + '-' + ('0' + DateTime.getDate()).slice(-2);\n this.getHourElement().value = ('0' + (DateTime.getHours())).slice(-2);\n this.getMinutesElement().value = ('0' + (DateTime.getMinutes())).slice(-2);\n this.getSecondsElement().value = ('0' + (DateTime.getSeconds())).slice(-2);\n }\n getValue() {\n let date = this.getDateElement().value;\n let hours = this.getHourElement().value;\n let minutes = this.getMinutesElement().value;\n let seconds = this.getSecondsElement().value;\n if (!date || !hours || !minutes || !seconds) {\n return false;\n }\n return `${date} ${hours}:${minutes}:${seconds}`;\n }\n getTemplate() {\n let input = this.getEditableTemplate().getFormHelper().input('date', '', { placeholder: 'yyyy-mm-dd', autocomplete: 'nope' }).outerHTML;\n return `\n\t\t\t${input}\n\t\t\t<div class=\"input__time\">\n\t\t\t\t<select name=\"time_hours\"></select>\t\t\t\t\n\t\t\t\t<select name=\"time_minutes\"></select>\t\t\t\t\n\t\t\t\t<select name=\"time_seconds\"></select>\t\t\t\t\n\t\t\t</div>\n\t\t`;\n }\n getDateElement() {\n return this.getElement().querySelector('[name=date]');\n }\n getHourElement() {\n return this.getElement().querySelector('[name=time_hours]');\n }\n getMinutesElement() {\n return this.getElement().querySelector('[name=time_minutes]');\n }\n getSecondsElement() {\n return this.getElement().querySelector('[name=time_seconds]');\n }\n getDefaults() {\n return Object.assign(super.getDefaults(), {\n 'weekstart': 1,\n 'showbuttons': true\n });\n }\n static createSelectHours(select, time_format) {\n for (let number = 0; number < 24; number++) {\n let option = document.createElement('option');\n let _number = ('0' + number.toString()).slice(-2);\n option.setAttribute('value', _number);\n option.text = (12 === time_format) ? DateTimeEditable.formatAMPM(parseInt(_number)) : _number;\n select.append(option);\n }\n }\n static formatAMPM(hours) {\n let ampm = hours >= 12 ? 'pm' : 'am';\n hours = hours % 12;\n hours = hours ? hours : 12; // the hour '0' should be '12'\n return hours + ' ' + ampm;\n }\n static createSelectIncementalOptions(select, start = 0, end = 60) {\n for (let number = start; number < end; number++) {\n let option = document.createElement('option');\n let _number = ('0' + number).slice(-2);\n option.setAttribute('value', _number);\n option.text = _number;\n select.append(option);\n }\n }\n}\n","import AbstractEditable from './abstract';\nimport { evalValue } from \"ACP/Editing/helpers/object\";\nexport default class FullnameEditable extends AbstractEditable {\n getEditableType() {\n return \"fullname\";\n }\n focus() {\n this.getFirstNameElement().focus({ preventScroll: true });\n }\n render() {\n this.getFirstNameElement().placeholder = this.getArg('placeholder_first_name', '');\n this.getLastNameElement().placeholder = this.getArg('placeholder_first_name', '');\n }\n valueToInput(values) {\n this.getFirstNameElement().value = evalValue(values.first_name, '');\n this.getLastNameElement().value = evalValue(values.last_name, '');\n }\n getValue() {\n return {\n 'first_name': this.getFirstNameElement().value,\n 'last_name': this.getLastNameElement().value,\n };\n }\n getTemplate() {\n return `\n\t\t\t<div class=\"aceditable__form__inputs\">\n\t\t\t\t<div class=\"input__group\">\n\t\t\t\t<input name=\"first_name\" type=\"text\" placeholder=\"First name\">\n\t\t\t\t<input name=\"last_name\" type=\"text\" placeholder=\"Last name\">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t`;\n }\n getFirstNameElement() {\n return this.getElement().querySelector('[name=\"first_name\"]');\n }\n getLastNameElement() {\n return this.getElement().querySelector('[name=\"last_name\"]');\n }\n}\n","import AbstractEditable from './abstract';\nimport PostLinks from \"./components/PostLinks.svelte\";\nexport default class LinkEditable extends AbstractEditable {\n constructor(args) {\n super(args);\n this.dynamicValue = '';\n }\n getEditableType() {\n return \"internal_link\";\n }\n valueToInput(value) {\n this.dynamicValue = value;\n let container = this.getElement().querySelector('[data-component]');\n new PostLinks({\n target: container,\n props: {\n value: value,\n onChange: (value) => {\n this.dynamicValue = value;\n }\n }\n });\n }\n getValue() {\n return this.dynamicValue;\n }\n getTemplate() {\n return `\n <div data-component></div>\n `;\n }\n}\n","import AbstractEditable from './abstract';\nimport { Tooltip } from \"AC/plugin/tooltip\";\nexport default class WPLibraryEditable extends AbstractEditable {\n getEditableType() {\n return \"media\";\n }\n render() {\n this.library = wp.media({\n multiple: this.settings.multiple,\n library: this.settings.library,\n title: this.settings.title\n });\n this.displaySaveButton(false);\n this.currentValues = [];\n this._addEvents();\n }\n valueToInput(value) {\n if (value) {\n this.currentValues = Array.isArray(value) ? value : [value];\n }\n if (!this.getArg('showbuttons', true)) {\n this.library.open();\n }\n }\n getValue() {\n return this.getArg('multiple', true) ? this.currentValues : this.currentValues[0];\n }\n getTemplate() {\n return `\n\t\t<a href=\"#\" class=\"wplib button\">Select</a>\n\t\t<div class=\"aceditable__selected\"></div>`;\n }\n _addEvents() {\n this.getElement().querySelector('.wplib').addEventListener('click', (e) => {\n e.preventDefault();\n this.library.open();\n });\n this.library.on('open', () => {\n let selection = this.library.state().get('selection');\n let value = this.currentValues;\n if (!value || this.settings.disableSelection) {\n return;\n }\n value.forEach((id) => {\n let attachment = wp.media.attachment(id);\n attachment.fetch();\n selection.add(attachment ? [attachment] : []);\n });\n });\n this.library.on('select', () => {\n let selection = this.library.state().get('selection').toJSON();\n let ids = [];\n selection.forEach((selected) => {\n ids.push(selected.id.toString());\n });\n this.currentValues = ids;\n if (!this.settings.showbuttons) {\n this.save();\n this.close();\n }\n this.SetImagesFromSelection(this.library.state().get('selection').models);\n this.displayLibraryButton(false);\n this.displaySaveButton(true);\n });\n this.library.on('close', () => {\n if (!this.settings.showbuttons) {\n setTimeout(() => this.close(), 0);\n }\n });\n }\n displaySaveButton(show) {\n this.getElement().querySelector('.aceditable__form__controls').style.display = show ? 'inline-block' : 'none';\n }\n displayLibraryButton(show = true) {\n this.getElement().querySelector('.wplib').style.display = show ? 'inline-block' : 'none';\n }\n SetImagesFromSelection(models) {\n let container = this.getElement().querySelector('.aceditable__selected');\n if (models.length === 0) {\n return;\n }\n models.forEach((model) => {\n let wrapper = document.createElement('div');\n let element = model.attributes.type === 'image'\n ? WPLibraryEditable.getImageElement(model)\n : WPLibraryEditable.getFileElement(model);\n if (!element) {\n return;\n }\n wrapper.append(element);\n wrapper.append(WPLibraryEditable.getInfoElement(model));\n wrapper.classList.add('aceditable__selected__item');\n new Tooltip(wrapper, wrapper.querySelector('.aceditable__selected__item__info').innerHTML);\n element.addEventListener('click', (e) => {\n e.preventDefault();\n this.library.open();\n });\n container.append(wrapper);\n });\n }\n static getInfoElement(model) {\n let element = document.createElement('div');\n element.classList.add('aceditable__selected__item__info');\n element.innerHTML = `\n\t\t\t<div>${model.attributes.title}</div>\n\t\t\t<div>${model.attributes.filename}</div>\n\t\t\t<div>ID: ${model.attributes.id}</div>\n\t\t`;\n return element;\n }\n static getImageElement(model) {\n let element = document.createElement('img');\n let url = model.attributes.url;\n if (model.attributes.sizes.hasOwnProperty('thumbnail')) {\n url = model.attributes.sizes.thumbnail.url;\n }\n element.setAttribute('src', url);\n element.classList.add('image');\n return element;\n }\n static getFileElement(model) {\n let element = document.createElement('img');\n element.setAttribute('src', model.attributes.icon);\n element.classList.add('file');\n return element;\n }\n getDefaults() {\n return Object.assign(super.getDefaults(), {\n title: 'Media',\n multiple: true,\n disableSelection: false,\n library: {\n uploadedTo: true\n }\n });\n }\n}\n","import AbstractEditable from './abstract';\nimport { insertAfter } from \"AC/helpers/elements\";\nexport default class MultiInputEditable extends AbstractEditable {\n getEditableType() {\n return \"multi_input\";\n }\n focus() {\n let input = this.getElement().querySelector('form input, form textarea');\n if (input) {\n input.focus({ preventScroll: true });\n }\n }\n getSubType() {\n return this.getArg('subtype');\n }\n valueToInput(values) {\n if (!values || (Array.isArray(values) && values.length === 0)) {\n values = [''];\n }\n values.forEach((value) => {\n let input = this.createSingleInput(value);\n this.getElement().querySelector('.acp-ie-multi-container').append(input);\n });\n }\n createSingleInput(value) {\n let subtype = this.settings.subtype;\n let container = document.createElement('div');\n let input = subtype === 'textarea'\n ? this.getEditableTemplate().getFormHelper().textarea('input', value)\n : this.getEditableTemplate().getFormHelper().input('input', value, { type: this.getSubType() });\n input.value = value;\n container.classList.add('single-input');\n container.append(input);\n container.append(this.createControls());\n return container;\n }\n determineControls() {\n let lines = this.getElement().querySelectorAll('.single-input').length;\n this.getElement().querySelectorAll('.single-input__control.-remove').forEach(el => {\n el.style.display = lines > 1 ? 'inline-block' : 'none';\n });\n }\n createControls() {\n let controls = document.createElement('div');\n controls.classList.add('single-input__controls');\n controls.innerHTML = `\n\t\t\t<span class=\"single-input__control -add\">\n\t\t\t\t<span class=\"dashicons dashicons-plus\"></span>\n\t\t\t</span>\n\t\t\t<span class=\"single-input__control -remove\">\n\t\t\t\t<span class=\"dashicons dashicons-minus\"></span>\n\t\t\t</span>\n\t\t`;\n controls.querySelector('.-add').addEventListener('click', (e) => this.eventNewRow(e.target));\n controls.querySelector('.-remove').addEventListener('click', (e) => {\n e.target.closest('.single-input').remove();\n this.determineControls();\n });\n setTimeout(() => {\n this.determineControls();\n }, 0);\n return controls;\n }\n eventNewRow(element) {\n let input = element.closest('.single-input');\n if (input) {\n insertAfter(this.createSingleInput(''), input);\n }\n }\n getValue() {\n let value = [];\n this.getElement().querySelectorAll('.single-input input, .single-input textarea').forEach((input) => {\n value.push(input.value);\n });\n return value;\n }\n getTemplate() {\n return `<div class=\"acp-ie-multi-container\"></div>`;\n }\n getDefaults() {\n return Object.assign(super.getDefaults(), {\n 'subtype': 'text'\n });\n }\n}\n","import AbstractEditable from './abstract';\nconst i18n = {\n REPLACE: ACP_Editing.i18n.replace_with,\n ADD: ACP_Editing.i18n.operators.add,\n SUBTRACT: ACP_Editing.i18n.operators.subtract,\n MULTIPLY: ACP_Editing.i18n.operators.multiply,\n DIVIDE: ACP_Editing.i18n.operators.divide\n};\nconst COMPUTATION = {\n REPLACE: 'replace',\n ADD: 'add',\n SUBTRACT: 'subtract',\n MULTIPLY: 'multiply',\n DIVIDE: 'divide'\n};\nexport default class NumberExtended extends AbstractEditable {\n render() {\n this.initValidationAttributes();\n this.getValueInput().addEventListener('blur', () => {\n this.initValidationAttributes();\n });\n }\n focus() {\n this.getElement().querySelector('input').focus();\n }\n getEditableType() {\n return \"number\";\n }\n valueToInput(value) {\n if (value) {\n this.getElement().querySelector('input').value = value;\n }\n }\n getValueInput() {\n return this.getElement().querySelector('[name=\"value\"]');\n }\n getComputationSelect() {\n return this.getElement().querySelector('[name=computation_type]');\n }\n getComputationType() {\n return this.getComputationSelect().value;\n }\n initValidationAttributes() {\n const type = this.getComputationType();\n let input = this.getValueInput();\n input.required = type !== COMPUTATION.REPLACE;\n }\n getValue() {\n return {\n allow_negative: true,\n value: this.getValueInput().value,\n computation_type: this.getComputationType()\n };\n }\n getTemplate() {\n let input = this.getEditableTemplate().getFormHelper().input('value', null, this.settings.html_attributes).outerHTML;\n return `\n <div class=\"input__group -type -strategy\">\n <select class=\"type\" name=\"computation_type\">\n <option value=\"${COMPUTATION.REPLACE}\">${i18n.REPLACE}..</option>\n <option value=\"${COMPUTATION.ADD}\">${i18n.ADD}..</option>\n <option value=\"${COMPUTATION.SUBTRACT}\">${i18n.SUBTRACT}..</option>\n <option value=\"${COMPUTATION.MULTIPLY}\">${i18n.MULTIPLY}..</option>\n <option value=\"${COMPUTATION.DIVIDE}\">${i18n.DIVIDE}..</option>\n </select>\n ${input}\n </div>\n `;\n }\n}\n","import AbstractEditable from './abstract';\nexport default class SelectEditable extends AbstractEditable {\n getEditableType() {\n return \"select\";\n }\n focus() {\n this.getElement().querySelector('select').focus({ preventScroll: true });\n }\n render() {\n let select = this.getElement().querySelector('select');\n Object.keys(this.settings.options).forEach((k) => {\n let option = this.settings.options[k];\n select.append(new Option(option.label, option.value));\n });\n }\n getSelectElement() {\n return this.getElement().querySelector('select[name=\"value\"]');\n }\n valueToInput(value) {\n if (!value) {\n return;\n }\n this.getSelectElement().value = value;\n }\n getValue() {\n return this.getSelectElement().value;\n }\n getTemplate() {\n return `<select name=\"value\"></select>`;\n }\n}\n","import AbstractEditable from './abstract';\nimport { valueToOptions } from \"ACP/Editing/helpers/object\";\nconst i18n = {\n REPLACE: ACP_Editing.i18n.replace_with,\n ADD: ACP_Editing.i18n.add,\n REMOVE: ACP_Editing.i18n.remove\n};\nclass AbstractSelect2Ajax extends AbstractEditable {\n getEditableType() {\n return 'select2';\n }\n focus() {\n jQuery(this.getSelectBox()).ac_select2('open');\n }\n render() {\n if (this.getObjectId()) {\n this.getElement().querySelector('.acs2').dataset.objectId = this.getObjectId();\n }\n if (!this.settings.showbuttons) {\n this.getElement().querySelector('.aceditable__form__controls').style.display = 'none';\n }\n }\n getSelectBox() {\n return this.getElement().querySelector('.acs2');\n }\n close() {\n jQuery(this.getElement().querySelector('.acs2')).ac_select2('close');\n return super.close();\n }\n valueToInput(value) {\n let $select = jQuery(this.getElement().querySelector('.acs2'));\n $select.ac_select2(this.settings.select2);\n if (value) {\n valueToOptions(value, true).forEach(option => $select.append(option).trigger('change'));\n }\n if (!this.settings.showbuttons) {\n $select.on('change', () => {\n this.save();\n });\n }\n }\n getTemplate() {\n return `<select class=\"acs2\"></select>`;\n }\n}\nexport class Select2Ajax extends AbstractSelect2Ajax {\n getValue() {\n return this.getElement().querySelector('select.acs2').value;\n }\n}\nexport class Select2AjaxMultiple extends AbstractSelect2Ajax {\n getValue() {\n const selected = this.getElement().querySelectorAll('select.acs2 option:checked');\n return Array.from(selected).map((option) => option.value);\n }\n}\nexport class Select2AjaxMultipleStrategy extends Select2AjaxMultiple {\n render() {\n super.render();\n this.getElement().querySelector('.aceditable__form__inputs').insertAdjacentHTML(\"afterbegin\", TEMPLATE);\n }\n getTypeElement() {\n return this.getElement().querySelector('[name=method]');\n }\n getValue() {\n return {\n value: super.getValue(),\n method: this.getTypeElement().value\n };\n }\n}\nexport const TEMPLATE = `\n\t<div class=\"input__group -type -strategy\">\n <select class=\"type\" name=\"method\">\n <option value=\"replace\">${i18n.REPLACE}..</option>\n <option value=\"add\">${i18n.ADD}..</option>\n <option value=\"remove\">${i18n.REMOVE}..</option>\n </select>\n\t</div>\n`;\n","import SelectEditable from \"ACP/Editing/editable/select\";\nimport { TEMPLATE } from \"ACP/Editing/editable/select2_ajax\";\nexport class Select2Editable extends SelectEditable {\n render() {\n super.render();\n jQuery(this.getSelectElement()).ac_select2(this.settings.select2).ac_select2('focus');\n if (!this.settings.showbuttons) {\n this.getElement().querySelectorAll('.aceditable__form__controls').forEach(el => el.style.display = 'none');\n jQuery(this.getSelectElement()).on('change', () => {\n this.save();\n });\n }\n }\n close() {\n jQuery(this.getSelectElement()).ac_select2('close');\n return super.close();\n }\n valueToInput(value) {\n jQuery(this.getSelectElement()).val(value).change();\n }\n}\nexport class Select2Multiple extends Select2Editable {\n // @ts-ignore\n valueToInput(value) {\n jQuery(this.getSelectElement()).val(value).change();\n }\n // @ts-ignore\n getValue() {\n const selected = this.getSelectElement().querySelectorAll('option:checked');\n return Array.from(selected).map(el => el.value);\n }\n}\nexport class Select2MultipleMethods extends Select2Multiple {\n render() {\n super.render();\n this.getElement().querySelector('.aceditable__form__inputs').insertAdjacentHTML(\"afterbegin\", TEMPLATE);\n }\n getValue() {\n return {\n value: super.getValue(),\n method: this.getElement().querySelector('[name=method]').value\n };\n }\n}\n","import AbstractEditable from './abstract';\nexport default class Select2RemoteEditable extends AbstractEditable {\n getEditableType() {\n return 'select';\n }\n close() {\n jQuery(this.getElement().querySelector('.acs2')).ac_select2('close');\n return super.close();\n }\n valueToInput(value) {\n this.getRemoteData().done((e) => {\n let args = this.settings.select2;\n args.data = e.data.results;\n jQuery(this.getElement().querySelector('.acs2')).ac_select2(args).val(value).trigger('change');\n });\n }\n getRemoteData() {\n const objectId = this.getObjectId();\n return jQuery.ajax({\n url: ajaxurl,\n dataType: 'json',\n method: 'get',\n data: {\n action: 'acp_editing_request',\n method: this.settings.mode + '-select-values',\n layout: AC.layout,\n column: this.settings.column,\n item_id: objectId ? objectId : null,\n list_screen: AC.list_screen,\n _ajax_nonce: AC.ajax_nonce\n }\n });\n }\n getValue() {\n return this.getElement().querySelector('select.acs2').value;\n }\n getTemplate() {\n return `<select class=\"acs2\"></select>`;\n }\n getDefaults() {\n let defaults = super.getDefaults();\n defaults['showbuttons'] = true;\n return defaults;\n }\n}\n","import AbstractEditable from './abstract';\nimport { getNestedValue } from \"ACP/Editing/helpers/object\";\nexport default class TextEditable extends AbstractEditable {\n getEditableType() {\n return \"text\";\n }\n render() {\n this.getElement().classList.add(`-input-${getNestedValue(this.settings, 'text', ['html_attributes', 'type'])}`);\n }\n focus() {\n this.getElement().querySelector('input').focus({ preventScroll: true });\n }\n valueToInput(value) {\n if (value) {\n this.getElement().querySelector('input').value = value;\n }\n }\n getValue() {\n return this.getElement().querySelector('input').value;\n }\n getTemplate() {\n return this.getEditableTemplate().getFormHelper().input('input', null, this.settings.html_attributes).outerHTML;\n }\n}\n","import AbstractEditable from './abstract';\nexport default class TextareaEditable extends AbstractEditable {\n getEditableType() {\n return \"textarea\";\n }\n focus() {\n this.getElement().querySelector('textarea').focus({ preventScroll: true });\n }\n valueToInput(value) {\n const textarea = this.getElement().querySelector('textarea');\n setTimeout(() => {\n textarea.focus();\n textarea.setSelectionRange(0, 0);\n }, 0);\n if (value) {\n textarea.value = value;\n }\n }\n getValue() {\n return this.getElement().querySelector('textarea').value;\n }\n getTemplate() {\n return this.getEditableTemplate().getFormHelper().textarea('text', null, this.settings.html_attributes).outerHTML;\n }\n getDefaults() {\n return Object.assign(super.getDefaults(), {\n html_attributes: {\n rows: 6\n }\n });\n }\n}\n","import AbstractEditable from './abstract';\nexport default class ToggleEditable extends AbstractEditable {\n getEditableType() {\n return \"togglable\";\n }\n render() {\n let options = this.settings.options;\n let firstElement = this.getFirstInput();\n let secondElement = this.getSecondInput();\n firstElement.value = options[0].value;\n secondElement.value = options[1].value;\n firstElement.parentElement.querySelector('.toggle__label').innerHTML = options[0].label;\n secondElement.parentElement.querySelector('.toggle__label').innerHTML = options[1].label;\n if (ToggleEditable.getTrueValues().includes(options[0].label.toString().toLowerCase())) {\n firstElement.parentElement.querySelector('.toggle__label').innerHTML = ToggleEditable.getDefaultTrueLabel();\n secondElement.parentElement.querySelector('.toggle__label').innerHTML = ToggleEditable.getDefaultFalseLabel();\n }\n else if (ToggleEditable.getFalseValues().includes(options[0].label.toString().toLowerCase())) {\n firstElement.parentElement.querySelector('.toggle__label').innerHTML = ToggleEditable.getDefaultFalseLabel();\n secondElement.parentElement.querySelector('.toggle__label').innerHTML = ToggleEditable.getDefaultTrueLabel();\n }\n }\n valueToInput(value) {\n // Shortroute, don't even show the modal, just toggle and save\n if (!this.settings.showbuttons && value !== null) {\n let matched = false;\n let firstElement = this.getFirstInput();\n let secondElement = this.getSecondInput();\n if (firstElement.value.toString() === value.toString()) {\n secondElement.checked = true;\n matched = true;\n }\n if (secondElement.value.toString() === value.toString()) {\n firstElement.checked = true;\n matched = true;\n }\n // Mismatch of value and options\n if (!matched) {\n this.getTrueInput().checked = true;\n }\n this.save();\n this.close();\n }\n }\n getTrueInput() {\n if (ToggleEditable.getTrueValues().includes(this.settings.options[0].value.toString().toLowerCase())) {\n return this.getFirstInput();\n }\n else {\n return this.getSecondInput();\n }\n }\n getFirstInput() {\n return this.getElement().querySelector('input[data-o1]');\n }\n getSecondInput() {\n return this.getElement().querySelector('input[data-o2]');\n }\n getValue() {\n return this.getElement().querySelector('input:checked').value;\n }\n static getTrueValues() {\n return ['true', 'yes', '1', 'on'];\n }\n static getFalseValues() {\n return ['', '0', 'no', 'false', 'off'];\n }\n static getDefaultTrueLabel() {\n return '<span class=\"dashicons dashicons-yes\"></span>';\n }\n static getDefaultFalseLabel() {\n return '<span class=\"dashicons dashicons-no\"></span>';\n }\n getTemplate() {\n return `\n\t\t<label >\n\t\t\t<input type=\"radio\" name=\"toggle\" data-o1>\n\t\t\t<span class=\"toggle__label\"></span>\n\t\t</label>\n\t\t<label data-false>\n\t\t\t<input type=\"radio\" name=\"toggle\" data-o2>\n\t\t\t<span class=\"toggle__label\"></span>\n\t\t</label>`;\n }\n}\n","import AbstractEditable from './abstract';\nconst CLASSES = {\n POPWRAP: 'ac-edit-popper-wrapper'\n};\nexport default class WysiwygEditable extends AbstractEditable {\n getEditableType() {\n return \"wysiwyg\";\n }\n render() {\n let id = this.getEditorId();\n let $el = jQuery(this.getElement().querySelector('textarea'));\n $el.attr('id', id);\n this.getElement().addEventListener('click', e => e.preventDefault());\n setTimeout(() => {\n let settings = this.getEditorSettings();\n let popper = this.getElement().closest('.ac-edit-popper');\n let modal = this.getElement().closest('.ac-modal.-bulkedit');\n // Inline Edit specific\n if (popper) {\n popper.classList.add('-full');\n this.wrapPopper();\n }\n // Bulk Edit specific\n if (modal) {\n modal.classList.add('-wysiwyg');\n settings.tinymce.height = '300px';\n }\n wp.editor.initialize(id, settings);\n });\n }\n wrapPopper() {\n let wrapper = document.createElement('div');\n let popper = this.getElement().closest('.ac-edit-popper');\n wrapper.classList.add(CLASSES.POPWRAP);\n document.body.append(wrapper);\n wrapper.appendChild(popper);\n }\n removePopperwrap() {\n document.querySelectorAll(`.${CLASSES.POPWRAP}`).forEach(el => el.remove());\n }\n getEditorSettings() {\n let settings = Object.assign({}, wp.editor.getDefaultSettings());\n settings.tinymce.toolbar1 = 'formatselect,bold,italic,bullist,numlist,blockquote,alignleft,alignright,aligncenter,link,unlink,wp_add_media,wp_more,fullscreen,wp_adv';\n settings.tinymce.toolbar2 = 'strikethrough,hr,forecolor,pastetext,removeformat,charmap,undo,redo';\n settings.tinymce.width = '100%';\n settings.quicktags = true;\n settings.mediaButtons = true;\n return settings;\n }\n close() {\n this.id = null;\n this.removePopperwrap();\n return super.close();\n }\n getEditorId() {\n if (!this.id) {\n this.id = 'acp_' + Math.floor(Math.random() * 10000) + '_' + Math.floor(Math.random() * 10000) + '_' + Math.floor(Math.random() * 10000);\n }\n return this.id;\n }\n valueToInput(value) {\n let textarea = this.getElement().querySelector('textarea');\n if (value && textarea) {\n textarea.value = value;\n }\n }\n getValue() {\n let id = this.getEditorId();\n return wp.editor.getContent(id);\n }\n getTemplate() {\n return `<textarea></textarea>`;\n }\n}\n","import { mapDataToFormData } from \"AC/helpers/global\";\nimport axios from \"axios\";\nimport { AJAX_VARS } from \"ACP/Editing/const\";\nexport function getEditableValues(ids) {\n return axios.post(ajaxurl, mapDataToFormData({\n action: AJAX_VARS.ACTION,\n method: AJAX_VARS.METHOD_INLINE_VALUES,\n ids: ids,\n list_screen: AC.list_screen,\n layout: AC.layout,\n _ajax_nonce: AC.ajax_nonce\n }));\n}\nexport function persistEditabilityState(enabled) {\n return axios.post(ajaxurl, mapDataToFormData({\n action: AJAX_VARS.ACTION,\n method: AJAX_VARS.METHOD_EDIT_STATE,\n value: enabled ? 1 : 0,\n list_screen: AC.list_screen,\n layout: AC.layout,\n _ajax_nonce: AC.ajax_nonce\n }));\n}\nexport function getTableRows(ids) {\n return axios.post(window.location.href, mapDataToFormData({\n ac_action: 'get_table_rows',\n ac_ids: ids,\n _ajax_nonce: AC.ajax_nonce\n }));\n}\n","export const getNestedValue = (obj, defaultValue, ...args) => {\n let value = args.reduce((obj, level) => obj && obj[level], obj);\n return typeof value !== 'undefined' ? value : defaultValue;\n};\nexport const evalValue = (value, defaultValue) => {\n return typeof value === 'undefined' ? defaultValue : value;\n};\nexport const parseArguments = (args, defaultArgs) => {\n let result = defaultArgs;\n if (typeof args === 'object') {\n Object.keys(args).forEach((key) => {\n let value = args[key];\n if (typeof result === 'undefined') {\n result = {};\n }\n if (typeof value === 'object') {\n if (!result.hasOwnProperty(key)) {\n result[key] = Array.isArray(value) ? [] : {};\n }\n result[key] = parseArguments(value, result[key]);\n }\n else {\n result[key] = value;\n }\n });\n }\n return result;\n};\nexport const valueToOptions = (valueObject, sorted = true) => {\n const options = [];\n Object.keys(valueObject).forEach(v => {\n options.push(new Option(valueObject[v], v, true, true));\n });\n if (sorted) {\n options.sort((a, b) => {\n return a.label.localeCompare(b.label);\n });\n }\n return options;\n};\n","export function getColumnValueFromRowHTML(rowHTML, column) {\n let row = document.createElement('tr');\n column = column.replace(/\\./g, '\\\\.');\n row.innerHTML = rowHTML;\n let col = row.querySelector(`td.column-${column}`);\n if (col) {\n let invalidElements = col.querySelectorAll('.row-actions');\n if (invalidElements) {\n invalidElements.forEach((element) => {\n element.remove();\n });\n }\n return col.innerHTML;\n }\n return '';\n}\n","import { insertAfter } from \"AC/helpers/elements\";\nimport { EDIT_SERVICES } from \"ACP/Editing/const\";\nexport class Actions {\n constructor(EditCell) {\n this.EditCell = EditCell;\n this.Cell = this.EditCell.Cell;\n this.reset();\n }\n reset() {\n this.Cell.getElement().querySelectorAll('.acp-ie-controls__items').forEach(el => el.remove());\n }\n isRevisioningEnabled() {\n return !this.Cell.getSettings().getService(EDIT_SERVICES.INLINE_EDITABLE).hasOwnProperty('disable_revisioning');\n }\n render() {\n let container = Actions.createContainer();\n let valueCell = this.Cell.getElement().querySelector('.acp-ie-value');\n this.Cell.getElement().appendChild(container);\n if (valueCell) {\n insertAfter(container, valueCell);\n }\n Actions.appendButton(this.renderEdit(), container);\n if (this.isRevisioningEnabled()) {\n Actions.appendButton(this.renderUndo(), container);\n Actions.appendButton(this.renderRedo(), container);\n }\n Actions.appendButton(this.renderClear(), container);\n }\n static createContainer() {\n let container = document.createElement('div');\n container.classList.add('acp-ie-controls');\n return container;\n }\n static appendButton(button, element) {\n if (button) {\n element.appendChild(button);\n }\n }\n renderEdit() {\n let el = Actions.createButtonElement(ACP_Editing.i18n.edit, '-edit');\n el.insertAdjacentHTML('beforeend', `<span class=\"dashicons dashicons-edit\"></span>`);\n el.addEventListener('click', (e) => {\n e.preventDefault();\n e.stopPropagation();\n this.EditCell.openEditable();\n });\n return el;\n }\n renderUndo() {\n let storage = this.Cell.getService(EDIT_SERVICES.DATA_STORAGE);\n if (storage.current_revision === 0) {\n return null;\n }\n let el = Actions.createButtonElement(ACP_Editing.i18n.undo, '-undo');\n el.insertAdjacentHTML('beforeend', `<span class=\"dashicons dashicons-undo\"></span>`);\n el.addEventListener('click', (e) => {\n e.preventDefault();\n e.stopPropagation();\n this.EditCell.undo();\n });\n return el;\n }\n renderRedo() {\n let storage = this.Cell.getService(EDIT_SERVICES.DATA_STORAGE);\n if (storage.current_revision >= (storage.getRevisions().length - 1)) {\n return;\n }\n let el = Actions.createButtonElement(ACP_Editing.i18n.redo, '-redo');\n el.insertAdjacentHTML('beforeend', `<span class=\"dashicons dashicons-redo\"></span>`);\n el.addEventListener('click', (e) => {\n e.preventDefault();\n e.stopPropagation();\n this.EditCell.redo();\n });\n return el;\n }\n renderClear() {\n let storage = this.Cell.getService(EDIT_SERVICES.DATA_STORAGE);\n if (!this.Cell.getSettings().getService(EDIT_SERVICES.INLINE_EDITABLE).clear_button) {\n return;\n }\n if (!storage.getValue()) {\n return;\n }\n if (typeof storage.getValue() === 'object' && storage.getValue().length === 0) {\n return;\n }\n let el = Actions.createButtonElement(ACP_Editing.i18n.delete, '-clear');\n el.insertAdjacentHTML('beforeend', `<span class=\"dashicons dashicons-no-alt\"></span>`);\n el.addEventListener('click', (e) => {\n e.preventDefault();\n e.stopPropagation();\n this.EditCell.clear();\n });\n return el;\n }\n static createButtonElement(title, className) {\n let button = document.createElement('button');\n button.classList.add('acp-ie-controls__item');\n button.classList.add(className);\n button.setAttribute('title', title);\n button.tabIndex = 0;\n return button;\n }\n}\nexport class MediaActions extends Actions {\n render() {\n this.wrapImages();\n }\n wrapImages() {\n let images = this.Cell.getElement().querySelectorAll('.ac-image');\n let globalcontrols = this.Cell.getElement().querySelector('.acp-ie-controls');\n if (!images) {\n return;\n }\n images.forEach((image) => {\n let id = image.dataset.mediaId;\n let wrapper = document.createElement('div');\n let controls = document.createElement('div');\n controls.classList.add('acp-ie-image-controls');\n wrapper.dataset.mediaId = id;\n wrapper.classList.add('acp-ie-image-item');\n image.parentNode.insertBefore(wrapper, image);\n wrapper.appendChild(image);\n wrapper.appendChild(controls);\n });\n if (this.Cell.getSettings().getService(EDIT_SERVICES.INLINE_EDITABLE).multiple) {\n this.addSingleImageDelete();\n globalcontrols.classList.add('-multiple');\n }\n else {\n this.moveActions();\n globalcontrols.classList.add('-single');\n }\n }\n addSingleImageDelete() {\n let images = this.Cell.getElement().querySelectorAll('.acp-ie-image-item');\n if (!images) {\n return;\n }\n images.forEach((image) => {\n let controls = image.querySelector('.acp-ie-image-controls');\n let btn_remove = this.renderDelete();\n controls.append(btn_remove);\n });\n }\n moveActions() {\n let controls = this.Cell.getElement().querySelector('.acp-ie-controls');\n let imageControls = this.Cell.getElement().querySelector('.acp-ie-image-controls');\n if (!controls || !imageControls) {\n return;\n }\n controls.querySelectorAll('.acp-ie-controls__item').forEach((control) => {\n imageControls.append(control);\n });\n imageControls.classList.add('-single');\n }\n renderDelete() {\n let self = this;\n let btn_remove = MediaActions.createButtonElement(ACP_Editing.i18n.delete, '-delete');\n btn_remove.insertAdjacentHTML('beforeend', `<span class=\"dashicons dashicons-no-alt\"></span>`);\n btn_remove.addEventListener('click', (e) => {\n e.preventDefault();\n e.stopPropagation();\n let item = e.target.closest('.acp-ie-image-item');\n let dataStorage = self.Cell.getService(EDIT_SERVICES.DATA_STORAGE);\n let value = dataStorage.getValue();\n if (Array.isArray(value)) {\n value = value.filter((e) => parseInt(e) !== parseInt(item.dataset.mediaId));\n }\n else {\n value = '';\n }\n this.EditCell.saveValue(value);\n });\n return btn_remove;\n }\n}\n","import { Actions, MediaActions } from \"./inline-edit-actions\";\nimport Popper from 'popper.js';\nimport { getColumnValueFromRowHTML } from \"ACP/Editing/helpers/rows\";\nimport { insertAfter } from \"AC/helpers/elements\";\nimport { getTableRows } from \"ACP/Editing/helpers/ajax\";\nimport { EDIT_SERVICES } from \"ACP/Editing/const\";\nimport { initAcServices } from \"AC/helpers/admin-columns\";\nconst Selectors = {\n CELL: 'acp-ie-editable',\n VALUE: 'acp-ie-value'\n};\nexport default class InlineEditCell {\n constructor(InlineEdit, Cell, Middleware, editable_class) {\n this.EditableConstructor = editable_class;\n this.InlineEdit = InlineEdit;\n this.Cell = Cell;\n this.Middleware = Middleware;\n this.wrapCellContent();\n this.attachEditable();\n this.insertControls();\n this.attachEvents();\n }\n getDataStorage() {\n return this.Cell.getService(EDIT_SERVICES.DATA_STORAGE);\n }\n getEditableSettings() {\n return this.Cell.getSettings().getService(EDIT_SERVICES.INLINE_EDITABLE);\n }\n attachEditable() {\n if (!this.Cell.hasService(EDIT_SERVICES.DATA_STORAGE) || this.Editable) {\n return;\n }\n let value = this.getDataStorage().getFormattedValue();\n if (value === null) {\n return;\n }\n this.Editable = new this.EditableConstructor(this.Middleware.getArgs());\n this.Editable.setValue(value);\n if (this.Cell.getObjectID()) {\n this.Editable.setObjectId(this.Cell.getObjectID());\n }\n this.Editable.Events.addListener('save', (editable) => {\n this.saveValue(editable.getValue());\n });\n this.Editable.Events.addListener('close', () => {\n this.setFocusOnRelatedCell();\n PopperGlobalEvents.destroy();\n this.destroyPopper();\n });\n }\n setFocusOnRelatedCell() {\n let el = this.Cell.getElement().querySelector('.-edit');\n if (el) {\n this.Cell.getElement().closest('tr').classList.add('forced-focus');\n el.focus();\n this.Cell.getElement().closest('tr').classList.remove('forced-focus');\n }\n }\n attachEvents() {\n this.Cell.events.addListener('setValue', () => {\n this.afterSetValue();\n });\n this.getTargetElement().addEventListener('click', (e) => {\n if (!this.InlineEdit.isEnabled() || e.target.tagName === 'A') {\n return;\n }\n e.preventDefault();\n e.stopPropagation();\n this.openEditable();\n });\n document.addEventListener('ACP_InlineEditing_Close', () => {\n if (this.Popper) {\n this.Editable.close();\n }\n });\n }\n saveValue(value) {\n this.Editable.toggleLoading(true);\n this.getDataStorage().storeRevision(value).save().done((response) => {\n if (!response.success) {\n this.Editable.toggleLoading(false);\n this.Editable.setError(response.data.message);\n return;\n }\n this.setValue(response.data);\n this.Editable.setValue(response.data.value).close();\n this.Editable.toggleLoading(false);\n let data = {\n column: this.Cell.getName(),\n item: this.Cell.getObjectID(),\n value: response.data.value\n };\n document.dispatchEvent(new CustomEvent('ACP_InlineEditing_After_Save', { detail: data }));\n });\n }\n openEditable() {\n this.InlineEdit.closeOpenEditables();\n let container = this.getPopperContainer();\n container.append(this.Editable.get());\n this.popper = new Popper(this.getTargetElement(), container, {\n modifiers: {\n arrow: { element: '.ac-edit-popper__caret' }\n }\n });\n this.InlineEdit.openEditable(this.Editable);\n PopperGlobalEvents.bind();\n setTimeout(() => this.Editable.focus(), 200);\n }\n /**\n * Wraps the content of a cell for better control\n */\n wrapCellContent() {\n let settings = this.getEditableSettings();\n let target = document.createElement('span');\n this.Cell.getElement().classList.add(Selectors.CELL, `${Selectors.CELL}--${settings.type}`);\n target.classList.add(Selectors.VALUE);\n while (this.Cell.getElement().firstChild) {\n target.appendChild(this.Cell.getElement().firstChild);\n }\n this.Cell.getElement().append(target);\n let InvalidElements = target.querySelectorAll('.row-actions');\n if (InvalidElements) {\n InvalidElements.forEach((element) => {\n this.Cell.getElement().appendChild(element);\n });\n }\n return target;\n }\n undo() {\n let undo = this.getDataStorage().undo();\n if (undo) {\n this.getDataStorage().save().done((response) => {\n this.setValue(response.data);\n this.Editable.setValue(response.data.value);\n });\n }\n }\n redo() {\n let redo = this.getDataStorage().redo();\n if (redo) {\n this.getDataStorage().save().done((response) => {\n this.setValue(response.data);\n this.Editable.setValue(response.data.value);\n });\n }\n }\n clear() {\n this.getDataStorage().storeRevision('').save().done((response) => {\n this.setValue(response.data);\n this.Editable.setValue(response.data.value);\n });\n }\n setCellValue(value) {\n this.Cell.setValue(value);\n }\n setValue(data) {\n let displayValue = data.display_value;\n if (displayValue) {\n this.Cell.setValue(displayValue);\n }\n else {\n this.getTargetElement().style.backgroundColor = '#f2f093';\n getTableRows([data.id]).then(response => {\n if (response.data.data.table_rows) {\n this.setCellValue(getColumnValueFromRowHTML(response.data.data.table_rows[data.id], this.Cell.getSettings().name));\n }\n });\n }\n }\n valueUpdateVisual() {\n const el = this.getTargetElement();\n if (el) {\n el.style.animation = 'acp-value-highlight .9s';\n }\n }\n getTargetElement() {\n return this.Cell.getElement().querySelector(`.${Selectors.VALUE}`);\n }\n insertControls() {\n let actions = new Actions(this);\n actions.render();\n if (this.Middleware.hasMediaActions()) {\n let mediaActions = new MediaActions(this);\n mediaActions.render();\n }\n this.moveActions();\n }\n moveActions() {\n const settings = this.getEditableSettings();\n if (!settings.hasOwnProperty('js') || !settings.js.hasOwnProperty('selector')) {\n return;\n }\n let el = this.Cell.getElement().querySelector(settings.js.selector);\n let actions = this.Cell.getElement().querySelector('.acp-ie-controls');\n insertAfter(actions, el);\n }\n afterSetValue() {\n this.wrapCellContent();\n this.valueUpdateVisual();\n this.insertControls();\n this.Cell.getElement().dispatchEvent(new CustomEvent('ACP_InlineEditing_After_SetValue'));\n initAcServices().emitEvent('Edit.Inline.setValue', { cell: this });\n }\n destroyPopper() {\n document.querySelectorAll('.ac-edit-popper').forEach((popper) => {\n popper.remove();\n });\n if (this.popper) {\n this.popper.destroy();\n }\n }\n getPopperContainer() {\n return createPopperContainer();\n }\n}\nclass PopperGlobalEvents {\n static bind() {\n document.addEventListener('keyup', PopperGlobalEvents.escapeEvent);\n document.addEventListener('click', PopperGlobalEvents.clickEvent);\n document.querySelectorAll('.select2-container--acs2').forEach(c => {\n c.addEventListener('click', e => {\n e.stopPropagation();\n });\n });\n }\n static destroy() {\n document.removeEventListener('keyup', PopperGlobalEvents.escapeEvent);\n document.removeEventListener('click', PopperGlobalEvents.clickEvent);\n }\n static escapeEvent(e) {\n if (e.key === \"Escape\") {\n document.dispatchEvent(new CustomEvent('ACP_InlineEditing_Close'));\n }\n }\n static clickEvent(e) {\n if (e.target === document.body) {\n return;\n }\n if (PopperGlobalEvents.checkInvalidParentClasses(e.target)) {\n return;\n }\n document.dispatchEvent(new CustomEvent('ACP_InlineEditing_Close'));\n }\n static checkInvalidParentClasses(el) {\n let isInvalid = false;\n let invalidClasses = [\n 'mce-container',\n 'wp-editor-wrap',\n 'media-modal',\n 'select2-container',\n 'ui-datepicker',\n 'ui-datepicker-header',\n 'ui-datepicker-buttonpane'\n ];\n invalidClasses.map(c => {\n if (el.classList.contains(c))\n isInvalid = true;\n });\n if (isInvalid) {\n return true;\n }\n if (!el.parentElement) {\n return false;\n }\n return PopperGlobalEvents.checkInvalidParentClasses(el.parentElement);\n }\n}\nconst createPopperContainer = () => {\n let element = document.createElement('div');\n element.classList.add('ac-edit-popper');\n element.insertAdjacentHTML('afterbegin', '<span class=\"ac-edit-popper__caret\">');\n document.body.append(element);\n return element;\n};\n","import ColumnDataStorage from \"ACP/Editing/modules/data-storage\";\nimport { getEditableValues, persistEditabilityState } from \"ACP/Editing/helpers/ajax\";\nimport IECell from './inline-edit-cell';\nimport { getIdFromTableRow, getRowCellByName } from \"AC/helpers/table\";\nimport { EDIT_SERVICES } from \"ACP/Editing/const\";\nexport default class InlineEdit {\n constructor(Table, Editables, EditableMiddleware, enabled, version) {\n this.Editables = Editables;\n this.Table = Table;\n this.Middleware = EditableMiddleware;\n this.enabled = enabled;\n this.version = version;\n this.initialized = false;\n this.openEditables = [];\n this.setTableClass();\n this.addEvents();\n this.initCells();\n this.setInputState();\n }\n isEnabled() {\n return this.enabled;\n }\n getVersion() {\n return this.version;\n }\n enable() {\n this.enabled = true;\n this.storePreference();\n this.setTableClass();\n this.initCells();\n this.setInputState();\n }\n setInputState() {\n document.querySelectorAll('#acp-enable-editing').forEach(input => input.checked = this.isEnabled());\n }\n disable() {\n this.enabled = false;\n this.storePreference();\n this.setTableClass();\n }\n setInitialised(initialized = true) {\n this.initialized = initialized;\n return this;\n }\n isInitialised() {\n return this.initialized;\n }\n setTableClass() {\n let table = this.Table.getElement();\n table.classList.add('acp-ie-table', 'acp-ie-table--' + this.getVersion());\n if (this.isEnabled()) {\n table.classList.add('acp-ie-enabled');\n table.classList.remove('acp-ie-disabled');\n }\n else {\n table.classList.add('acp-ie-disabled');\n table.classList.remove('acp-ie-enabled');\n }\n }\n initCell(cell) {\n const settings = cell.getSettings();\n const editSettings = settings.getService(EDIT_SERVICES.INLINE_EDITABLE);\n if (!settings || !editSettings || !editSettings.type || cell.hasService('IEdit')) {\n return;\n }\n const middleware = this.Middleware.getInlineEditable(settings);\n const editable = middleware.getEditable();\n if (editable && cell.getService(EDIT_SERVICES.DATA_STORAGE)) {\n cell.setService('IEdit', new IECell(this, cell, middleware, editable));\n }\n }\n initRow(id) {\n getEditableValues([id]).then(response => {\n response.data.data.editable_values.forEach(item => {\n let cell = this.Table.Cells.get(item.id, item.column_name);\n if (!cell.hasService('dataStorage')) {\n cell.setService('dataStorage', new ColumnDataStorage({\n column_name: cell.getName(),\n id: cell.getObjectID()\n }));\n }\n this.initCell(cell);\n if (cell.hasService('IEdit') && cell.getService('IEdit').hasOwnProperty('Editable')) {\n cell.getService('IEdit').Editable.setValue(item.value);\n }\n });\n });\n }\n updateRowCells(row) {\n Object.keys(this.Table.Columns.getColumns()).forEach((column_name) => {\n let cell = this.Table.Cells.get(getIdFromTableRow(row), column_name);\n if (cell) {\n cell.setElement(getRowCellByName(row, column_name));\n if (cell.hasService('IEdit')) {\n cell.getService('IEdit').afterSetValue();\n }\n }\n });\n }\n openEditable(editable) {\n this.openEditables.push(editable);\n }\n closeOpenEditables() {\n this.openEditables.forEach((editable) => {\n editable.close();\n });\n this.openEditables = [];\n }\n initCells() {\n if (!this.isInitialised() && this.isEnabled()) {\n this.Table.Cells.getAll().forEach(cell => this.initCell(cell));\n this.setInitialised();\n }\n }\n storePreference() {\n persistEditabilityState(this.isEnabled());\n }\n addEvents() {\n document.querySelectorAll('#acp-enable-editing').forEach(input => {\n input.addEventListener('change', () => input.checked ? this.enable() : this.disable());\n });\n document.addEventListener('ACP_InlineEditing_Close', () => this.closeOpenEditables());\n jQuery(this.Table.getElement()).on('updated', 'tr', (e) => this.updateRowCells(e.target));\n document.addEventListener('keydown', (e) => {\n if (e.key === 'Escape' || e.key === 'Esc') {\n this.closeOpenEditables();\n }\n }, true);\n }\n}\n","import ColumnDataStorage from \"../modules/data-storage\";\nimport { EDIT_SERVICES } from \"ACP/Editing/const\";\nexport const CellMiddleware = (model, config) => {\n config.forEach(value => {\n let cell = model.get(value.id, value.column_name);\n let settings = cell.getSettings().getService(EDIT_SERVICES.INLINE_EDITABLE);\n if (settings === null) {\n return;\n }\n if (settings.hasOwnProperty('store_values') && settings.store_values === false) {\n value.formatted_value = value.value;\n value.value = typeof value === 'object' ? Object.keys(value.value) : '';\n }\n if (isSingleValueConfig(settings)) {\n value.formatted_value = value.value;\n value.value = Object.keys(value.value)[0];\n }\n cell.setService('dataStorage', new ColumnDataStorage(value));\n });\n};\nconst isSingleValueConfig = (settings) => {\n if (settings.hasOwnProperty('store_single_value') && settings.store_single_value) {\n return true;\n }\n return settings.type === 'select2_dropdown' && (!settings.hasOwnProperty('multiple') || settings.multiple === false);\n};\n","export const mapColumns = (columns, config) => {\n Object.keys(config).forEach((column_name) => {\n columns.get(column_name).setService('inlineEditable', config[column_name].inline_edit);\n columns.get(column_name).setService('bulkEditable', config[column_name].bulk_edit);\n });\n return columns;\n};\n","import Abstract from 'ACP/Editing/middleware/editable/abstract';\nimport * as Defaults from 'ACP/Editing/middleware/editable/default';\nimport Select2 from 'ACP/Editing/middleware/editable/select2';\nimport Select2Remote from \"ACP/Editing/middleware/editable/select2_remote\";\nimport Taxonomy from 'ACP/Editing/middleware/editable/taxonomy';\nimport Media from 'ACP/Editing/middleware/editable/media';\nimport MultiInput from 'ACP/Editing/middleware/editable/multi_input';\nimport Fullname from \"ACP/Editing/middleware/editable/fullname\";\nimport NumberExtended from \"ACP/Editing/middleware/editable/number_extended\";\nimport { EDIT_MODES, EDIT_SERVICES } from \"ACP/Editing/const\";\nimport { Link } from \"ACP/Editing/middleware/editable/link\";\nexport default class EditableMiddleware {\n constructor(editables, services) {\n this.services = services;\n this.Editables = editables;\n this.middleWareClasses = {\n '_abstract': Abstract,\n 'default': Defaults.Default,\n 'text': Defaults.Default,\n 'internal_link': Link,\n 'url': Defaults.Url,\n 'number': Defaults.Number,\n 'number_extended': NumberExtended,\n 'password': Defaults.Password,\n 'email': Defaults.Email,\n 'checklist': Defaults.Checkbox,\n 'color': Defaults.Color,\n 'select': Defaults.Select,\n 'select2_dropdown': Select2,\n 'select2_remote': Select2Remote,\n 'date': Defaults.Date,\n 'date_time': Defaults.DateTime,\n 'textarea': Defaults.Textarea,\n 'togglable': Defaults.Togglable,\n 'attachment': Media,\n 'media': Media,\n 'float': Defaults.Float,\n 'multi_input': MultiInput,\n 'types_multi_input': MultiInput,\n 'taxonomy': Taxonomy,\n 'wysiwyg': Defaults.Wysiwyg,\n 'fullname': Fullname,\n };\n this.services.emitEvent('Editing.Middleware.Ready', this);\n }\n register(name, object) {\n this.middleWareClasses[name] = object;\n return this;\n }\n getClass(type) {\n return this.middleWareClasses.hasOwnProperty(type)\n ? this.middleWareClasses[type]\n : this.middleWareClasses['default'];\n }\n getInlineEditable(column) {\n const editable = column.getService(EDIT_SERVICES.INLINE_EDITABLE);\n const type = editable.type;\n const middleware = this.middleWareClasses.hasOwnProperty(type)\n ? this.middleWareClasses[type]\n : this.middleWareClasses['default'];\n return new middleware(this.Editables, editable, column, EDIT_MODES.INLINE);\n }\n getBulkEditable(column) {\n let editable = column.getService(EDIT_SERVICES.BULK_EDITABLE);\n let type = editable.type;\n let middleware = this.middleWareClasses.hasOwnProperty(type)\n ? this.middleWareClasses[type]\n : this.middleWareClasses['default'];\n return new middleware(this.Editables, editable, column, EDIT_MODES.BULK);\n }\n}\n","export default class Abstract {\n constructor(editables, EditableSettings, column, mode) {\n this.Editables = editables;\n this.settings = EditableSettings;\n this.column = column;\n this.mode = mode;\n this.args = {\n mode: mode,\n };\n this.map();\n }\n getEditable() {\n return null;\n }\n getArgs() {\n return this.args;\n }\n hasMediaActions() {\n return false;\n }\n map() {\n }\n}\n","import Abstract from './abstract';\nimport { formatOptionsSelect2 } from \"ACP/Editing/modules/helper\";\nexport class Default extends Abstract {\n getEditable() {\n return this.Editables.get('text');\n }\n map() {\n this.mapHTMLAttributes(this.settings);\n return this.args;\n }\n mapHTMLAttributes(editable) {\n let attributes = {};\n if (editable.hasOwnProperty('required')) {\n attributes.required = editable.required;\n }\n if (editable.hasOwnProperty('placeholder') && editable.placeholder !== null) {\n attributes.placeholder = editable.placeholder;\n }\n if (editable.hasOwnProperty('range_max')) {\n attributes.max = editable.range_max;\n }\n if (editable.hasOwnProperty('range_min')) {\n attributes.min = editable.range_min;\n }\n if (editable.hasOwnProperty('range_step')) {\n attributes.step = editable.range_step;\n }\n if (editable.hasOwnProperty('maxlength')) {\n attributes.maxlength = editable.maxlength;\n }\n if (editable.hasOwnProperty('rows')) {\n attributes.rows = editable.rows;\n }\n this.args.html_attributes = attributes;\n }\n}\nexport class Email extends Default {\n map() {\n super.map();\n this.args.html_attributes.type = 'email';\n return this.args;\n }\n}\nexport class Number extends Default {\n map() {\n super.map();\n this.args.html_attributes.type = 'number';\n return this.args;\n }\n}\nexport class Url extends Default {\n map() {\n super.map();\n this.args.html_attributes.type = 'url';\n return this.args;\n }\n}\nexport class Textarea extends Default {\n getEditable() {\n return this.Editables.get('textarea');\n }\n}\nexport class Float extends Default {\n map() {\n super.map();\n this.args.html_attributes.type = 'number';\n this.args.html_attributes.step = 'any';\n return this.args;\n }\n}\nexport class Password extends Default {\n map() {\n super.map();\n this.args.html_attributes.type = 'password';\n return this.args;\n }\n}\nexport class Color extends Abstract {\n getEditable() {\n return this.Editables.get('color');\n }\n}\nexport class Wysiwyg extends Abstract {\n getEditable() {\n return this.Editables.get('wysiwyg');\n }\n map() {\n return this.args;\n }\n}\nexport class Date extends Abstract {\n getEditable() {\n return this.Editables.get('date');\n }\n map() {\n this.args.showbuttons = false;\n return this.args;\n }\n}\nexport class DateTime extends Abstract {\n map() {\n this.args.timeformat = this.settings.timeformat;\n return this.args;\n }\n getEditable() {\n return this.Editables.get('date_time');\n }\n}\nexport class Checkbox extends Abstract {\n map() {\n this.args.options = formatOptionsSelect2(this.settings.options);\n return this.args;\n }\n getEditable() {\n return this.Editables.get('checklist');\n }\n}\nexport class Select extends Abstract {\n getEditable() {\n return this.Editables.get('select');\n }\n map() {\n this.args.options = this.settings.options;\n return this.args;\n }\n}\nexport class Togglable extends Abstract {\n getEditable() {\n return this.Editables.get('toggle');\n }\n map() {\n this.args.options = this.settings.options;\n this.args.showbuttons = false;\n return this.args;\n }\n flattenOptionArray(options) {\n let result = [];\n options.forEach((option) => {\n result.push(option.label);\n });\n return result;\n }\n}\n","import Abstract from './abstract';\nexport default class Fullname extends Abstract {\n getEditable() {\n return this.Editables.get('fullname');\n }\n map() {\n this.args.placeholder_first_name = this.settings.placeholder_first_name;\n this.args.placeholder_last_name = this.settings.placeholder_last_name;\n return this.args;\n }\n}\n","import Abstract from './abstract';\nexport class Link extends Abstract {\n getEditable() {\n return this.Editables.get('internal_link');\n }\n}\n","import Abstract from \"./abstract\";\nexport default class Media extends Abstract {\n getEditable() {\n return this.Editables.get('wp_library');\n }\n map() {\n this.args.showbuttons = false;\n this.args.multiple = !!(this.settings.hasOwnProperty('multiple') && this.settings.multiple);\n if (this.settings.hasOwnProperty('attachment') && this.settings.attachment.hasOwnProperty('library')) {\n this.args.library = this.settings.attachment.library;\n }\n return this.args;\n }\n hasMediaActions() {\n return true;\n }\n}\n","import Abstract from \"./abstract\";\nexport default class MultiInput extends Abstract {\n getEditable() {\n return this.Editables.get('multi_input');\n }\n map() {\n this.args.subtype = this.settings.subtype;\n return this.args;\n }\n}\n","import Abstract from './abstract';\nexport default class NumberExtended extends Abstract {\n getEditable() {\n return this.Editables.get('number_extended');\n }\n map() {\n this.mapHTMLAttributes(this.settings);\n return this.args;\n }\n mapHTMLAttributes(editable) {\n let attributes = {\n type: 'number'\n };\n if (editable.hasOwnProperty('range_max')) {\n attributes.max = editable.range_max;\n }\n if (editable.hasOwnProperty('range_min')) {\n attributes.min = editable.range_min;\n }\n if (editable.hasOwnProperty('range_step')) {\n attributes.step = editable.range_step;\n }\n this.args.html_attributes = attributes;\n }\n}\n","import Abstract from './abstract';\nimport { AJAX_VARS, EDIT_MODES } from \"ACP/Editing/const\";\nexport default class Select2 extends Abstract {\n getEditable() {\n var _a, _b;\n switch (true) {\n case this.args.ajax === true:\n if (!this.settings.multiple) {\n return this.Editables.get('select2_ajax');\n }\n return ((_a = this.settings) === null || _a === void 0 ? void 0 : _a.has_methods)\n ? this.Editables.get('select2_ajax_strategy')\n : this.Editables.get('select2_ajax_multiple');\n default:\n if (!this.settings.multiple) {\n return this.Editables.get('select2');\n }\n return ((_b = this.settings) === null || _b === void 0 ? void 0 : _b.has_methods)\n ? this.Editables.get('select2_multiple_strategy')\n : this.Editables.get('select2_multiple');\n }\n }\n map() {\n this.args.select2 = {\n width: 320,\n theme: 'acs2',\n escapeMarkup: (text) => jQuery('<div>' + text + '</div>').text()\n };\n if (this.settings.ajax_populate) {\n this.args.select2.ajax = this.mapAjax();\n this.args.ajax = true;\n }\n else {\n this.args.options = this.settings.options;\n }\n if (this.settings.multiple) {\n this.args.select2.multiple = true;\n this.args.select2.closeOnSelect = false;\n }\n if (this.settings.tags) {\n this.args.select2.tags = true;\n }\n }\n mapAjax() {\n const column_name = this.column.name;\n const method = this.mode === EDIT_MODES.BULK ? AJAX_VARS.METHOD_BULK_SELECT_VALUES : AJAX_VARS.METHOD_INLINE_SELECT_VALUES;\n return {\n url: ajaxurl,\n dataType: 'json',\n delay: 500,\n data: function (params) {\n let data = {\n action: AJAX_VARS.ACTION,\n method: method,\n layout: AC.layout,\n searchterm: params.term,\n page: params.page,\n column: column_name,\n list_screen: AC.list_screen,\n _ajax_nonce: AC.ajax_nonce\n };\n if (this[0].dataset.hasOwnProperty('objectId')) {\n data.item_id = this[0].dataset.objectId;\n }\n return data;\n },\n processResults: function (response) {\n if (response.success) {\n return response.data;\n }\n return { results: [] };\n }\n };\n }\n}\n","import Abstract from './abstract';\nexport default class Select2Remote extends Abstract {\n getEditable() {\n return this.Editables.get('select2_remote');\n }\n map() {\n this.args.column = this.column.name;\n this.args.select2 = {\n width: 320,\n theme: 'acs2',\n escapeMarkup: (text) => jQuery('<div>' + text + '</div>').text()\n };\n }\n}\n","import Select2Middleware from './select2';\nexport default class Select2 extends Select2Middleware {\n getEditable() {\n return this.Editables.get('taxonomy');\n }\n}\n","import { AJAX_VARS } from \"ACP/Editing/const\";\nexport default class ColumnDataStorage {\n constructor(editvalue) {\n this.name = editvalue.column_name;\n this.id = editvalue.id;\n this.current_revision = 0;\n this.revisions = [editvalue.value];\n this.formattedValue = editvalue.formatted_value ? editvalue.formatted_value : editvalue.value;\n }\n getFormattedValue() {\n return this.formattedValue;\n }\n setCurrentRevision(index) {\n this.current_revision = index;\n return this;\n }\n getCurrentRevision() {\n return this.current_revision;\n }\n getValue() {\n return this.revisions[this.getCurrentRevision()];\n }\n storeRevision(value) {\n let num_deletes = this.revisions.length - this.getCurrentRevision() - 1;\n // Remove any revision that are newer than the current revision\n for (let i = 0; i < num_deletes; i++) {\n this.revisions.pop();\n }\n this.revisions.push(value);\n this.setCurrentRevision(this.getCurrentRevision() + 1);\n return this;\n }\n save() {\n return jQuery.ajax({\n url: ajaxurl,\n data: {\n action: AJAX_VARS.ACTION,\n method: AJAX_VARS.METHOD_INLINE_SAVE,\n list_screen: AC.list_screen,\n layout: AC.layout,\n column: this.name,\n id: this.id,\n value: this.getValue(),\n _ajax_nonce: AC.ajax_nonce\n },\n method: 'POST',\n dataType: 'json'\n });\n }\n undo() {\n return this.prev();\n }\n redo() {\n return this.next();\n }\n prev() {\n let currentRevision = this.getCurrentRevision();\n if (currentRevision === 0) {\n return false;\n }\n this.setCurrentRevision(currentRevision - 1);\n return true;\n }\n next() {\n let currentRevision = this.getCurrentRevision();\n if (currentRevision === (this.revisions.length - 1)) {\n return false;\n }\n this.setCurrentRevision(currentRevision + 1);\n return true;\n }\n getRevisions() {\n return this.revisions;\n }\n}\n","import AbstractEditable from \"../editable/abstract\";\nimport CheckboxEditable from \"../editable/checkbox\";\nimport ColorEditable from \"../editable/color\";\nimport DateEditable from \"../editable/date\";\nimport DateTimeEditable from \"../editable/date_time\";\nimport TextEditable from \"../editable/text\";\nimport TextareaEditable from \"../editable/textarea\";\nimport ToggleEditable from \"../editable/toggle\";\nimport FullnameEditable from \"../editable/fullname\";\nimport SelectEditable from \"../editable/select\";\nimport { Select2Editable, Select2Multiple, Select2MultipleMethods } from \"../editable/select2_dropdown\";\nimport WPLibraryEditable from \"../editable/media\";\nimport MultiInputEditable from \"../editable/multi_input\";\nimport WysiwygEditable from \"../editable/wysiwyg\";\nimport Select2RemoteEditable from \"ACP/Editing/editable/select2_remote\";\nimport { Select2Ajax, Select2AjaxMultiple, Select2AjaxMultipleStrategy } from \"ACP/Editing/editable/select2_ajax\";\nimport NumberExtended from \"ACP/Editing/editable/number_extended\";\nimport LinkEditable from \"ACP/Editing/editable/link\";\nexport default class Editables {\n constructor(services) {\n this.services = services;\n this.editables = {};\n this.initEditables();\n }\n initEditables() {\n this.editables._abstract = AbstractEditable;\n this.editables.text = TextEditable;\n this.editables.textarea = TextareaEditable;\n this.editables.number = TextEditable;\n this.editables.number_extended = NumberExtended;\n this.editables.checklist = CheckboxEditable;\n this.editables.color = ColorEditable;\n this.editables.select = SelectEditable;\n this.editables.select2 = Select2Editable;\n this.editables.select2_multiple = Select2Multiple;\n this.editables.select2_multiple_strategy = Select2MultipleMethods;\n this.editables.select2_ajax = Select2Ajax;\n this.editables.select2_ajax_multiple = Select2AjaxMultiple;\n this.editables.select2_ajax_strategy = Select2AjaxMultipleStrategy;\n this.editables.select2_remote = Select2RemoteEditable;\n this.editables.date = DateEditable;\n this.editables.fullname = FullnameEditable;\n this.editables.date_time = DateTimeEditable;\n this.editables.toggle = ToggleEditable;\n this.editables.wp_library = WPLibraryEditable;\n this.editables.multi_input = MultiInputEditable;\n this.editables.wysiwyg = WysiwygEditable;\n this.editables.internal_link = LinkEditable;\n this.services.emitEvent('Editing.Editables.Ready', this);\n }\n registerEditable(name, object) {\n this.editables[name] = object;\n return this;\n }\n get(type) {\n return this.editables.hasOwnProperty(type)\n ? this.editables[type]\n : null;\n }\n abstract() {\n return this.get('_abstract');\n }\n}\n","export const escapeRegex = (value) => {\n return value.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g, \"\\\\$&\");\n};\n/**\n * Format a list of options from a storage model for use in X-editable\n *\n * @since 1.0\n *\n * @param {Array} options List of options, can be nested (1 level max). Options have their key as the input value and their value as the input label. Parents have string 'label' and array 'options' of options.\n * @returns {Array} List of options with parents with 'text' and 'children' and options with 'id' and 'text'\n */\nexport const formatOptionsSelect2 = (options) => {\n let foptions = [];\n if (typeof options === \"undefined\") {\n return foptions;\n }\n for (let i = 0; i < options.length; i++) {\n let parent;\n if (typeof options[i].options !== 'undefined') {\n parent = {\n text: options[i].label,\n children: []\n };\n for (let j in options[i].options) {\n if (options[i].options.hasOwnProperty(j)) {\n parent.children.push({\n value: options[i].options[j].value,\n id: options[i].options[j].value,\n text: options[i].options[j].label\n });\n }\n }\n }\n else {\n parent = {\n value: options[i].value,\n id: options[i].value,\n text: options[i].label\n };\n }\n foptions.push(parent);\n }\n return foptions;\n};\n/**\n * Deprecated helper API for third party addons\n */\nexport default class Helper {\n escapeRegex(value) {\n return escapeRegex(value);\n }\n}\n","export default class EditingModule {\n constructor() {\n this.services = {};\n }\n registerService(name, service) {\n this.services[name] = service;\n return this;\n }\n getService(name) {\n return this.hasService(name) ? this.services[name] : null;\n }\n hasService(name) {\n return this.services.hasOwnProperty(name);\n }\n}\n","import { getColumnValueFromRowHTML } from \"../helpers/rows\";\nimport { AJAX_VARS, EDIT_SERVICES } from \"ACP/Editing/const\";\nexport default class TableUpdate {\n constructor(Table) {\n this.Table = Table;\n }\n updateSelectedCells(column, value = '') {\n let ids = this.Table.Selection.getIDs();\n if (ids.length === 0) {\n return;\n }\n this.getRows(ids).done((response) => {\n if (!response.hasOwnProperty('data') || !response.data.hasOwnProperty('table_rows')) {\n return;\n }\n let rows = response.data.table_rows;\n Object.keys(rows).forEach((id) => {\n this.Table.Cells.get(parseInt(id), column).setValue(getColumnValueFromRowHTML(rows[id], column));\n });\n this.updateSelectedEditingCells(column, rows, value);\n });\n }\n updateSelectedEditingCells(column, rows, value) {\n let ids = this.Table.Selection.getIDs();\n if (ids.length === 0) {\n return;\n }\n let Editing_items = jQuery.ajax({\n url: ajaxurl,\n method: 'post',\n data: {\n action: AJAX_VARS.ACTION,\n method: AJAX_VARS.METHOD_INLINE_VALUES,\n ids: ids,\n column: column,\n list_screen: AC.list_screen,\n layout: AC.layout,\n _ajax_nonce: AC.ajax_nonce\n }\n });\n Editing_items.done((response) => {\n response.data.editable_values.forEach((setting) => {\n if (setting.column_name !== column) {\n return;\n }\n let cell = this.Table.Cells.get(setting.id, column);\n let iEdit = cell.getService('IEdit');\n cell.setValue(getColumnValueFromRowHTML(rows[setting.id], setting.column_name));\n if (iEdit) {\n cell.getService(EDIT_SERVICES.DATA_STORAGE).storeRevision(value);\n iEdit.Editable.setValue(setting.value);\n }\n });\n });\n }\n getRows(ids) {\n return jQuery.ajax({\n url: window.location.href,\n method: 'post',\n data: {\n ac_action: 'get_table_rows',\n ac_ids: ids,\n _ajax_nonce: AC.ajax_nonce\n }\n });\n }\n}\n","import FormTemplate from './form';\nexport default class EditableTemplate {\n constructor() {\n this.form = new FormTemplate();\n this.element = createElement();\n this.setError('');\n }\n setTemplate(template) {\n let inputs = this.getElement().querySelector('.aceditable__form__inputs');\n inputs.innerHTML = '';\n inputs.insertAdjacentHTML('afterbegin', template);\n return this;\n }\n getElement() {\n return this.element;\n }\n setError(error) {\n let error_element = this.getElement().querySelector('.aceditable__form__error');\n if (error) {\n error_element.innerHTML = error;\n error_element.style.display = 'block';\n }\n else {\n error_element.style.display = 'none';\n }\n return this;\n }\n getFormHelper() {\n return this.form;\n }\n addClass(className) {\n this.element.classList.add(className);\n return this;\n }\n setSubmitButton(label) {\n this.element.querySelector('[data-submit]').innerHTML = label;\n }\n showButtons(show = true) {\n let controls = this.element.querySelector('.aceditable__form__controls');\n if (show) {\n controls.style.display = 'block';\n }\n else {\n controls.style.display = 'none';\n }\n return this;\n }\n}\nconst createElement = () => {\n let element = document.createElement('div');\n element.classList.add('aceditable');\n element.innerHTML = `\t\t\n\t\t\t<div class=\"aceditable__content\">\n\t\t\t\t<form class=\"aceditable__form\" autocomplete=\"off\">\n\t\t\t\t\t<div class=\"aceditable__form__inputs\">\n\t\t\t\t\t\t\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"aceditable__form__controls\">\n\t\t\t\t\t\t<button data-submit=\"\" class=\"button aceditable__button -primary\"><span class=\"dashicons dashicons-yes\"></span></button>\n\t\t\t\t\t\t<button data-cancel=\"\" class=\"button aceditable__button\"><span class=\"dashicons dashicons-no\"></span></button>\n\t\t\t\t\t</div>\n\t\t\t\t</form>\n\t\t\t\t<div class=\"aceditable__form__error\"></div>\n\t\t\t</div>\n\t\t\t<div class=\"aceditable__spinner spinner\"></div>\n\t\t`;\n return element;\n};\n","export default class FormTemplate {\n input(name, value = null, attributes = {}) {\n let input = document.createElement('input');\n input.name = name;\n if (value) {\n input.value = value;\n }\n attributes = Object.assign({}, {\n type: 'text'\n }, attributes);\n this.setHtmlAttributes(input, attributes);\n return input;\n }\n textarea(name, value = '', attributes = {}) {\n let textarea = document.createElement('textarea');\n textarea.name = name;\n this.setHtmlAttributes(textarea, attributes);\n return textarea;\n }\n checkbox(name, value, label) {\n let input = document.createElement('label');\n input.classList.add('input__checkbox');\n input.innerHTML = `<input type=\"checkbox\" name=\"${name}\" class=\"input__checkbox__input\" value=\"${value}\"><span class=\"input__checkbox__label\">${label}</span>`;\n return input;\n }\n setHtmlAttributes(input, attributes) {\n Object.keys(attributes).forEach(attribute => input.setAttribute(attribute, attributes[attribute]));\n }\n inputGroup(label, input) {\n return `\n\t\t<div class=\"input__group\">\n\t\t\t<label>${label}</label>\n\t\t\t<div class=\"input__controlgroup\">${input}</div>\n\t\t</div>\n\t\t`;\n }\n}\n","export const format = (text, ...values) => {\n return text.replace(/{(\\d)}/g, (_, index) => values[Number(index)]);\n};\n","function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\nfunction is_promise(value) {\n return value && typeof value === 'object' && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n element.__svelte_meta = {\n loc: { file, line, column, char }\n };\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nlet src_url_equal_anchor;\nfunction src_url_equal(element_src, url) {\n if (!src_url_equal_anchor) {\n src_url_equal_anchor = document.createElement('a');\n }\n src_url_equal_anchor.href = url;\n return element_src === src_url_equal_anchor.href;\n}\nfunction not_equal(a, b) {\n return a != a ? b == b : a !== b;\n}\nfunction is_empty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction validate_store(store, name) {\n if (store != null && typeof store.subscribe !== 'function') {\n throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n }\n}\nfunction subscribe(store, ...callbacks) {\n if (store == null) {\n return noop;\n }\n const unsub = store.subscribe(...callbacks);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, $$scope, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, $$scope, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, $$scope, fn) {\n return definition[1] && fn\n ? assign($$scope.ctx.slice(), definition[1](fn(ctx)))\n : $$scope.ctx;\n}\nfunction get_slot_changes(definition, $$scope, dirty, fn) {\n if (definition[2] && fn) {\n const lets = definition[2](fn(dirty));\n if ($$scope.dirty === undefined) {\n return lets;\n }\n if (typeof lets === 'object') {\n const merged = [];\n const len = Math.max($$scope.dirty.length, lets.length);\n for (let i = 0; i < len; i += 1) {\n merged[i] = $$scope.dirty[i] | lets[i];\n }\n return merged;\n }\n return $$scope.dirty | lets;\n }\n return $$scope.dirty;\n}\nfunction update_slot_base(slot, slot_definition, ctx, $$scope, slot_changes, get_slot_context_fn) {\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction update_slot(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_context_fn) {\n const slot_changes = get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n update_slot_base(slot, slot_definition, ctx, $$scope, slot_changes, get_slot_context_fn);\n}\nfunction get_all_dirty_from_scope($$scope) {\n if ($$scope.ctx.length > 32) {\n const dirty = [];\n const length = $$scope.ctx.length / 32;\n for (let i = 0; i < length; i++) {\n dirty[i] = -1;\n }\n return dirty;\n }\n return -1;\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction compute_rest_props(props, keys) {\n const rest = {};\n keys = new Set(keys);\n for (const k in props)\n if (!keys.has(k) && k[0] !== '$')\n rest[k] = props[k];\n return rest;\n}\nfunction compute_slots(slots) {\n const result = {};\n for (const key in slots) {\n result[key] = true;\n }\n return result;\n}\nfunction once(fn) {\n let ran = false;\n return function (...args) {\n if (ran)\n return;\n ran = true;\n fn.call(this, ...args);\n };\n}\nfunction null_to_empty(value) {\n return value == null ? '' : value;\n}\nfunction set_store_value(store, ret, value) {\n store.set(value);\n return ret;\n}\nconst has_prop = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\nfunction action_destroyer(action_result) {\n return action_result && is_function(action_result.destroy) ? action_result.destroy : noop;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n now = fn;\n}\nfunction set_raf(fn) {\n raf = fn;\n}\n\nconst tasks = new Set();\nfunction run_tasks(now) {\n tasks.forEach(task => {\n if (!task.c(now)) {\n tasks.delete(task);\n task.f();\n }\n });\n if (tasks.size !== 0)\n raf(run_tasks);\n}\n/**\n * For testing purposes only!\n */\nfunction clear_loops() {\n tasks.clear();\n}\n/**\n * Creates a new task that runs on each raf frame\n * until it returns a falsy value or is aborted\n */\nfunction loop(callback) {\n let task;\n if (tasks.size === 0)\n raf(run_tasks);\n return {\n promise: new Promise(fulfill => {\n tasks.add(task = { c: callback, f: fulfill });\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\n\n// Track which nodes are claimed during hydration. Unclaimed nodes can then be removed from the DOM\n// at the end of hydration without touching the remaining nodes.\nlet is_hydrating = false;\nfunction start_hydrating() {\n is_hydrating = true;\n}\nfunction end_hydrating() {\n is_hydrating = false;\n}\nfunction upper_bound(low, high, key, value) {\n // Return first index of value larger than input value in the range [low, high)\n while (low < high) {\n const mid = low + ((high - low) >> 1);\n if (key(mid) <= value) {\n low = mid + 1;\n }\n else {\n high = mid;\n }\n }\n return low;\n}\nfunction init_hydrate(target) {\n if (target.hydrate_init)\n return;\n target.hydrate_init = true;\n // We know that all children have claim_order values since the unclaimed have been detached if target is not <head>\n let children = target.childNodes;\n // If target is <head>, there may be children without claim_order\n if (target.nodeName === 'HEAD') {\n const myChildren = [];\n for (let i = 0; i < children.length; i++) {\n const node = children[i];\n if (node.claim_order !== undefined) {\n myChildren.push(node);\n }\n }\n children = myChildren;\n }\n /*\n * Reorder claimed children optimally.\n * We can reorder claimed children optimally by finding the longest subsequence of\n * nodes that are already claimed in order and only moving the rest. The longest\n * subsequence subsequence of nodes that are claimed in order can be found by\n * computing the longest increasing subsequence of .claim_order values.\n *\n * This algorithm is optimal in generating the least amount of reorder operations\n * possible.\n *\n * Proof:\n * We know that, given a set of reordering operations, the nodes that do not move\n * always form an increasing subsequence, since they do not move among each other\n * meaning that they must be already ordered among each other. Thus, the maximal\n * set of nodes that do not move form a longest increasing subsequence.\n */\n // Compute longest increasing subsequence\n // m: subsequence length j => index k of smallest value that ends an increasing subsequence of length j\n const m = new Int32Array(children.length + 1);\n // Predecessor indices + 1\n const p = new Int32Array(children.length);\n m[0] = -1;\n let longest = 0;\n for (let i = 0; i < children.length; i++) {\n const current = children[i].claim_order;\n // Find the largest subsequence length such that it ends in a value less than our current value\n // upper_bound returns first greater value, so we subtract one\n // with fast path for when we are on the current longest subsequence\n const seqLen = ((longest > 0 && children[m[longest]].claim_order <= current) ? longest + 1 : upper_bound(1, longest, idx => children[m[idx]].claim_order, current)) - 1;\n p[i] = m[seqLen] + 1;\n const newLen = seqLen + 1;\n // We can guarantee that current is the smallest value. Otherwise, we would have generated a longer sequence.\n m[newLen] = i;\n longest = Math.max(newLen, longest);\n }\n // The longest increasing subsequence of nodes (initially reversed)\n const lis = [];\n // The rest of the nodes, nodes that will be moved\n const toMove = [];\n let last = children.length - 1;\n for (let cur = m[longest] + 1; cur != 0; cur = p[cur - 1]) {\n lis.push(children[cur - 1]);\n for (; last >= cur; last--) {\n toMove.push(children[last]);\n }\n last--;\n }\n for (; last >= 0; last--) {\n toMove.push(children[last]);\n }\n lis.reverse();\n // We sort the nodes being moved to guarantee that their insertion order matches the claim order\n toMove.sort((a, b) => a.claim_order - b.claim_order);\n // Finally, we move the nodes\n for (let i = 0, j = 0; i < toMove.length; i++) {\n while (j < lis.length && toMove[i].claim_order >= lis[j].claim_order) {\n j++;\n }\n const anchor = j < lis.length ? lis[j] : null;\n target.insertBefore(toMove[i], anchor);\n }\n}\nfunction append(target, node) {\n target.appendChild(node);\n}\nfunction append_styles(target, style_sheet_id, styles) {\n const append_styles_to = get_root_for_style(target);\n if (!append_styles_to.getElementById(style_sheet_id)) {\n const style = element('style');\n style.id = style_sheet_id;\n style.textContent = styles;\n append_stylesheet(append_styles_to, style);\n }\n}\nfunction get_root_for_style(node) {\n if (!node)\n return document;\n const root = node.getRootNode ? node.getRootNode() : node.ownerDocument;\n if (root && root.host) {\n return root;\n }\n return node.ownerDocument;\n}\nfunction append_empty_stylesheet(node) {\n const style_element = element('style');\n append_stylesheet(get_root_for_style(node), style_element);\n return style_element;\n}\nfunction append_stylesheet(node, style) {\n append(node.head || node, style);\n}\nfunction append_hydration(target, node) {\n if (is_hydrating) {\n init_hydrate(target);\n if ((target.actual_end_child === undefined) || ((target.actual_end_child !== null) && (target.actual_end_child.parentElement !== target))) {\n target.actual_end_child = target.firstChild;\n }\n // Skip nodes of undefined ordering\n while ((target.actual_end_child !== null) && (target.actual_end_child.claim_order === undefined)) {\n target.actual_end_child = target.actual_end_child.nextSibling;\n }\n if (node !== target.actual_end_child) {\n // We only insert if the ordering of this node should be modified or the parent node is not target\n if (node.claim_order !== undefined || node.parentNode !== target) {\n target.insertBefore(node, target.actual_end_child);\n }\n }\n else {\n target.actual_end_child = node.nextSibling;\n }\n }\n else if (node.parentNode !== target || node.nextSibling !== null) {\n target.appendChild(node);\n }\n}\nfunction insert(target, node, anchor) {\n target.insertBefore(node, anchor || null);\n}\nfunction insert_hydration(target, node, anchor) {\n if (is_hydrating && !anchor) {\n append_hydration(target, node);\n }\n else if (node.parentNode !== target || node.nextSibling != anchor) {\n target.insertBefore(node, anchor || null);\n }\n}\nfunction detach(node) {\n node.parentNode.removeChild(node);\n}\nfunction destroy_each(iterations, detaching) {\n for (let i = 0; i < iterations.length; i += 1) {\n if (iterations[i])\n iterations[i].d(detaching);\n }\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction element_is(name, is) {\n return document.createElement(name, { is });\n}\nfunction object_without_properties(obj, exclude) {\n const target = {};\n for (const k in obj) {\n if (has_prop(obj, k)\n // @ts-ignore\n && exclude.indexOf(k) === -1) {\n // @ts-ignore\n target[k] = obj[k];\n }\n }\n return target;\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction self(fn) {\n return function (event) {\n // @ts-ignore\n if (event.target === this)\n fn.call(this, event);\n };\n}\nfunction trusted(fn) {\n return function (event) {\n // @ts-ignore\n if (event.isTrusted)\n fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else if (node.getAttribute(attribute) !== value)\n node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n // @ts-ignore\n const descriptors = Object.getOwnPropertyDescriptors(node.__proto__);\n for (const key in attributes) {\n if (attributes[key] == null) {\n node.removeAttribute(key);\n }\n else if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (key === '__value') {\n node.value = node[key] = attributes[key];\n }\n else if (descriptors[key] && descriptors[key].set) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_svg_attributes(node, attributes) {\n for (const key in attributes) {\n attr(node, key, attributes[key]);\n }\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = typeof node[prop] === 'boolean' && value === '' ? true : value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction xlink_attr(node, attribute, value) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group, __value, checked) {\n const value = new Set();\n for (let i = 0; i < group.length; i += 1) {\n if (group[i].checked)\n value.add(group[i].__value);\n }\n if (!checked) {\n value.delete(__value);\n }\n return Array.from(value);\n}\nfunction to_number(value) {\n return value === '' ? null : +value;\n}\nfunction time_ranges_to_array(ranges) {\n const array = [];\n for (let i = 0; i < ranges.length; i += 1) {\n array.push({ start: ranges.start(i), end: ranges.end(i) });\n }\n return array;\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction init_claim_info(nodes) {\n if (nodes.claim_info === undefined) {\n nodes.claim_info = { last_index: 0, total_claimed: 0 };\n }\n}\nfunction claim_node(nodes, predicate, processNode, createNode, dontUpdateLastIndex = false) {\n // Try to find nodes in an order such that we lengthen the longest increasing subsequence\n init_claim_info(nodes);\n const resultNode = (() => {\n // We first try to find an element after the previous one\n for (let i = nodes.claim_info.last_index; i < nodes.length; i++) {\n const node = nodes[i];\n if (predicate(node)) {\n const replacement = processNode(node);\n if (replacement === undefined) {\n nodes.splice(i, 1);\n }\n else {\n nodes[i] = replacement;\n }\n if (!dontUpdateLastIndex) {\n nodes.claim_info.last_index = i;\n }\n return node;\n }\n }\n // Otherwise, we try to find one before\n // We iterate in reverse so that we don't go too far back\n for (let i = nodes.claim_info.last_index - 1; i >= 0; i--) {\n const node = nodes[i];\n if (predicate(node)) {\n const replacement = processNode(node);\n if (replacement === undefined) {\n nodes.splice(i, 1);\n }\n else {\n nodes[i] = replacement;\n }\n if (!dontUpdateLastIndex) {\n nodes.claim_info.last_index = i;\n }\n else if (replacement === undefined) {\n // Since we spliced before the last_index, we decrease it\n nodes.claim_info.last_index--;\n }\n return node;\n }\n }\n // If we can't find any matching node, we create a new one\n return createNode();\n })();\n resultNode.claim_order = nodes.claim_info.total_claimed;\n nodes.claim_info.total_claimed += 1;\n return resultNode;\n}\nfunction claim_element_base(nodes, name, attributes, create_element) {\n return claim_node(nodes, (node) => node.nodeName === name, (node) => {\n const remove = [];\n for (let j = 0; j < node.attributes.length; j++) {\n const attribute = node.attributes[j];\n if (!attributes[attribute.name]) {\n remove.push(attribute.name);\n }\n }\n remove.forEach(v => node.removeAttribute(v));\n return undefined;\n }, () => create_element(name));\n}\nfunction claim_element(nodes, name, attributes) {\n return claim_element_base(nodes, name, attributes, element);\n}\nfunction claim_svg_element(nodes, name, attributes) {\n return claim_element_base(nodes, name, attributes, svg_element);\n}\nfunction claim_text(nodes, data) {\n return claim_node(nodes, (node) => node.nodeType === 3, (node) => {\n const dataStr = '' + data;\n if (node.data.startsWith(dataStr)) {\n if (node.data.length !== dataStr.length) {\n return node.splitText(dataStr.length);\n }\n }\n else {\n node.data = dataStr;\n }\n }, () => text(data), true // Text nodes should not update last index since it is likely not worth it to eliminate an increasing subsequence of actual elements\n );\n}\nfunction claim_space(nodes) {\n return claim_text(nodes, ' ');\n}\nfunction find_comment(nodes, text, start) {\n for (let i = start; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 8 /* comment node */ && node.textContent.trim() === text) {\n return i;\n }\n }\n return nodes.length;\n}\nfunction claim_html_tag(nodes) {\n // find html opening tag\n const start_index = find_comment(nodes, 'HTML_TAG_START', 0);\n const end_index = find_comment(nodes, 'HTML_TAG_END', start_index);\n if (start_index === end_index) {\n return new HtmlTagHydration();\n }\n init_claim_info(nodes);\n const html_tag_nodes = nodes.splice(start_index, end_index + 1);\n detach(html_tag_nodes[0]);\n detach(html_tag_nodes[html_tag_nodes.length - 1]);\n const claimed_nodes = html_tag_nodes.slice(1, html_tag_nodes.length - 1);\n for (const n of claimed_nodes) {\n n.claim_order = nodes.claim_info.total_claimed;\n nodes.claim_info.total_claimed += 1;\n }\n return new HtmlTagHydration(claimed_nodes);\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.wholeText !== data)\n text.data = data;\n}\nfunction set_input_value(input, value) {\n input.value = value == null ? '' : value;\n}\nfunction set_input_type(input, type) {\n try {\n input.type = type;\n }\n catch (e) {\n // do nothing\n }\n}\nfunction set_style(node, key, value, important) {\n node.style.setProperty(key, value, important ? 'important' : '');\n}\nfunction select_option(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n if (option.__value === value) {\n option.selected = true;\n return;\n }\n }\n select.selectedIndex = -1; // no option should be selected\n}\nfunction select_options(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n option.selected = ~value.indexOf(option.__value);\n }\n}\nfunction select_value(select) {\n const selected_option = select.querySelector(':checked') || select.options[0];\n return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\n// unfortunately this can't be a constant as that wouldn't be tree-shakeable\n// so we cache the result instead\nlet crossorigin;\nfunction is_crossorigin() {\n if (crossorigin === undefined) {\n crossorigin = false;\n try {\n if (typeof window !== 'undefined' && window.parent) {\n void window.parent.document;\n }\n }\n catch (error) {\n crossorigin = true;\n }\n }\n return crossorigin;\n}\nfunction add_resize_listener(node, fn) {\n const computed_style = getComputedStyle(node);\n if (computed_style.position === 'static') {\n node.style.position = 'relative';\n }\n const iframe = element('iframe');\n iframe.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; ' +\n 'overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;');\n iframe.setAttribute('aria-hidden', 'true');\n iframe.tabIndex = -1;\n const crossorigin = is_crossorigin();\n let unsubscribe;\n if (crossorigin) {\n iframe.src = \"data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}</script>\";\n unsubscribe = listen(window, 'message', (event) => {\n if (event.source === iframe.contentWindow)\n fn();\n });\n }\n else {\n iframe.src = 'about:blank';\n iframe.onload = () => {\n unsubscribe = listen(iframe.contentWindow, 'resize', fn);\n };\n }\n append(node, iframe);\n return () => {\n if (crossorigin) {\n unsubscribe();\n }\n else if (unsubscribe && iframe.contentWindow) {\n unsubscribe();\n }\n detach(iframe);\n };\n}\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail, bubbles = false) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, bubbles, false, detail);\n return e;\n}\nfunction query_selector_all(selector, parent = document.body) {\n return Array.from(parent.querySelectorAll(selector));\n}\nclass HtmlTag {\n constructor() {\n this.e = this.n = null;\n }\n c(html) {\n this.h(html);\n }\n m(html, target, anchor = null) {\n if (!this.e) {\n this.e = element(target.nodeName);\n this.t = target;\n this.c(html);\n }\n this.i(anchor);\n }\n h(html) {\n this.e.innerHTML = html;\n this.n = Array.from(this.e.childNodes);\n }\n i(anchor) {\n for (let i = 0; i < this.n.length; i += 1) {\n insert(this.t, this.n[i], anchor);\n }\n }\n p(html) {\n this.d();\n this.h(html);\n this.i(this.a);\n }\n d() {\n this.n.forEach(detach);\n }\n}\nclass HtmlTagHydration extends HtmlTag {\n constructor(claimed_nodes) {\n super();\n this.e = this.n = null;\n this.l = claimed_nodes;\n }\n c(html) {\n if (this.l) {\n this.n = this.l;\n }\n else {\n super.c(html);\n }\n }\n i(anchor) {\n for (let i = 0; i < this.n.length; i += 1) {\n insert_hydration(this.t, this.n[i], anchor);\n }\n }\n}\nfunction attribute_to_object(attributes) {\n const result = {};\n for (const attribute of attributes) {\n result[attribute.name] = attribute.value;\n }\n return result;\n}\nfunction get_custom_elements_slots(element) {\n const result = {};\n element.childNodes.forEach((node) => {\n result[node.slot || 'default'] = true;\n });\n return result;\n}\n\nconst active_docs = new Set();\nlet active = 0;\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i--)\n hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n return hash >>> 0;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n const step = 16.666 / duration;\n let keyframes = '{\\n';\n for (let p = 0; p <= 1; p += step) {\n const t = a + (b - a) * ease(p);\n keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n }\n const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n const name = `__svelte_${hash(rule)}_${uid}`;\n const doc = get_root_for_style(node);\n active_docs.add(doc);\n const stylesheet = doc.__svelte_stylesheet || (doc.__svelte_stylesheet = append_empty_stylesheet(node).sheet);\n const current_rules = doc.__svelte_rules || (doc.__svelte_rules = {});\n if (!current_rules[name]) {\n current_rules[name] = true;\n stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n }\n const animation = node.style.animation || '';\n node.style.animation = `${animation ? `${animation}, ` : ''}${name} ${duration}ms linear ${delay}ms 1 both`;\n active += 1;\n return name;\n}\nfunction delete_rule(node, name) {\n const previous = (node.style.animation || '').split(', ');\n const next = previous.filter(name\n ? anim => anim.indexOf(name) < 0 // remove specific animation\n : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n );\n const deleted = previous.length - next.length;\n if (deleted) {\n node.style.animation = next.join(', ');\n active -= deleted;\n if (!active)\n clear_rules();\n }\n}\nfunction clear_rules() {\n raf(() => {\n if (active)\n return;\n active_docs.forEach(doc => {\n const stylesheet = doc.__svelte_stylesheet;\n let i = stylesheet.cssRules.length;\n while (i--)\n stylesheet.deleteRule(i);\n doc.__svelte_rules = {};\n });\n active_docs.clear();\n });\n}\n\nfunction create_animation(node, from, fn, params) {\n if (!from)\n return noop;\n const to = node.getBoundingClientRect();\n if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n return noop;\n const { delay = 0, duration = 300, easing = identity, \n // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n start: start_time = now() + delay, \n // @ts-ignore todo:\n end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n let running = true;\n let started = false;\n let name;\n function start() {\n if (css) {\n name = create_rule(node, 0, 1, duration, delay, easing, css);\n }\n if (!delay) {\n started = true;\n }\n }\n function stop() {\n if (css)\n delete_rule(node, name);\n running = false;\n }\n loop(now => {\n if (!started && now >= start_time) {\n started = true;\n }\n if (started && now >= end) {\n tick(1, 0);\n stop();\n }\n if (!running) {\n return false;\n }\n if (started) {\n const p = now - start_time;\n const t = 0 + 1 * easing(p / duration);\n tick(t, 1 - t);\n }\n return true;\n });\n start();\n tick(0, 1);\n return stop;\n}\nfunction fix_position(node) {\n const style = getComputedStyle(node);\n if (style.position !== 'absolute' && style.position !== 'fixed') {\n const { width, height } = style;\n const a = node.getBoundingClientRect();\n node.style.position = 'absolute';\n node.style.width = width;\n node.style.height = height;\n add_transform(node, a);\n }\n}\nfunction add_transform(node, a) {\n const b = node.getBoundingClientRect();\n if (a.left !== b.left || a.top !== b.top) {\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error('Function called outside component initialization');\n return current_component;\n}\nfunction beforeUpdate(fn) {\n get_current_component().$$.before_update.push(fn);\n}\nfunction onMount(fn) {\n get_current_component().$$.on_mount.push(fn);\n}\nfunction afterUpdate(fn) {\n get_current_component().$$.after_update.push(fn);\n}\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\nfunction createEventDispatcher() {\n const component = get_current_component();\n return (type, detail) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n // TODO are there situations where events could be dispatched\n // in a server (non-DOM) environment?\n const event = custom_event(type, detail);\n callbacks.slice().forEach(fn => {\n fn.call(component, event);\n });\n }\n };\n}\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n}\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\nfunction getAllContexts() {\n return get_current_component().$$.context;\n}\nfunction hasContext(key) {\n return get_current_component().$$.context.has(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n const callbacks = component.$$.callbacks[event.type];\n if (callbacks) {\n // @ts-ignore\n callbacks.slice().forEach(fn => fn.call(this, event));\n }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n if (!update_scheduled) {\n update_scheduled = true;\n resolved_promise.then(flush);\n }\n}\nfunction tick() {\n schedule_update();\n return resolved_promise;\n}\nfunction add_render_callback(fn) {\n render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n flush_callbacks.push(fn);\n}\nlet flushing = false;\nconst seen_callbacks = new Set();\nfunction flush() {\n if (flushing)\n return;\n flushing = true;\n do {\n // first, call beforeUpdate functions\n // and update components\n for (let i = 0; i < dirty_components.length; i += 1) {\n const component = dirty_components[i];\n set_current_component(component);\n update(component.$$);\n }\n set_current_component(null);\n dirty_components.length = 0;\n while (binding_callbacks.length)\n binding_callbacks.pop()();\n // then, once components are updated, call\n // afterUpdate functions. This may cause\n // subsequent updates...\n for (let i = 0; i < render_callbacks.length; i += 1) {\n const callback = render_callbacks[i];\n if (!seen_callbacks.has(callback)) {\n // ...so guard against infinite loops\n seen_callbacks.add(callback);\n callback();\n }\n }\n render_callbacks.length = 0;\n } while (dirty_components.length);\n while (flush_callbacks.length) {\n flush_callbacks.pop()();\n }\n update_scheduled = false;\n flushing = false;\n seen_callbacks.clear();\n}\nfunction update($$) {\n if ($$.fragment !== null) {\n $$.update();\n run_all($$.before_update);\n const dirty = $$.dirty;\n $$.dirty = [-1];\n $$.fragment && $$.fragment.p($$.ctx, dirty);\n $$.after_update.forEach(add_render_callback);\n }\n}\n\nlet promise;\nfunction wait() {\n if (!promise) {\n promise = Promise.resolve();\n promise.then(() => {\n promise = null;\n });\n }\n return promise;\n}\nfunction dispatch(node, direction, kind) {\n node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n outros = {\n r: 0,\n c: [],\n p: outros // parent group\n };\n}\nfunction check_outros() {\n if (!outros.r) {\n run_all(outros.c);\n }\n outros = outros.p;\n}\nfunction transition_in(block, local) {\n if (block && block.i) {\n outroing.delete(block);\n block.i(local);\n }\n}\nfunction transition_out(block, local, detach, callback) {\n if (block && block.o) {\n if (outroing.has(block))\n return;\n outroing.add(block);\n outros.c.push(() => {\n outroing.delete(block);\n if (callback) {\n if (detach)\n block.d(1);\n callback();\n }\n });\n block.o(local);\n }\n}\nconst null_transition = { duration: 0 };\nfunction create_in_transition(node, fn, params) {\n let config = fn(node, params);\n let running = false;\n let animation_name;\n let task;\n let uid = 0;\n function cleanup() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n tick(0, 1);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n if (task)\n task.abort();\n running = true;\n add_render_callback(() => dispatch(node, true, 'start'));\n task = loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(1, 0);\n dispatch(node, true, 'end');\n cleanup();\n return running = false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(t, 1 - t);\n }\n }\n return running;\n });\n }\n let started = false;\n return {\n start() {\n if (started)\n return;\n started = true;\n delete_rule(node);\n if (is_function(config)) {\n config = config();\n wait().then(go);\n }\n else {\n go();\n }\n },\n invalidate() {\n started = false;\n },\n end() {\n if (running) {\n cleanup();\n running = false;\n }\n }\n };\n}\nfunction create_out_transition(node, fn, params) {\n let config = fn(node, params);\n let running = true;\n let animation_name;\n const group = outros;\n group.r += 1;\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n add_render_callback(() => dispatch(node, false, 'start'));\n loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(0, 1);\n dispatch(node, false, 'end');\n if (!--group.r) {\n // this will result in `end()` being called,\n // so we don't need to clean up here\n run_all(group.c);\n }\n return false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(1 - t, t);\n }\n }\n return running;\n });\n }\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go();\n });\n }\n else {\n go();\n }\n return {\n end(reset) {\n if (reset && config.tick) {\n config.tick(1, 0);\n }\n if (running) {\n if (animation_name)\n delete_rule(node, animation_name);\n running = false;\n }\n }\n };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n let config = fn(node, params);\n let t = intro ? 0 : 1;\n let running_program = null;\n let pending_program = null;\n let animation_name = null;\n function clear_animation() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function init(program, duration) {\n const d = (program.b - t);\n duration *= Math.abs(d);\n return {\n a: t,\n b: program.b,\n d,\n duration,\n start: program.start,\n end: program.start + duration,\n group: program.group\n };\n }\n function go(b) {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n const program = {\n start: now() + delay,\n b\n };\n if (!b) {\n // @ts-ignore todo: improve typings\n program.group = outros;\n outros.r += 1;\n }\n if (running_program || pending_program) {\n pending_program = program;\n }\n else {\n // if this is an intro, and there's a delay, we need to do\n // an initial tick and/or apply CSS animation immediately\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, b, duration, delay, easing, css);\n }\n if (b)\n tick(0, 1);\n running_program = init(program, duration);\n add_render_callback(() => dispatch(node, b, 'start'));\n loop(now => {\n if (pending_program && now > pending_program.start) {\n running_program = init(pending_program, duration);\n pending_program = null;\n dispatch(node, running_program.b, 'start');\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n }\n }\n if (running_program) {\n if (now >= running_program.end) {\n tick(t = running_program.b, 1 - t);\n dispatch(node, running_program.b, 'end');\n if (!pending_program) {\n // we're done\n if (running_program.b) {\n // intro — we can tidy up immediately\n clear_animation();\n }\n else {\n // outro — needs to be coordinated\n if (!--running_program.group.r)\n run_all(running_program.group.c);\n }\n }\n running_program = null;\n }\n else if (now >= running_program.start) {\n const p = now - running_program.start;\n t = running_program.a + running_program.d * easing(p / running_program.duration);\n tick(t, 1 - t);\n }\n }\n return !!(running_program || pending_program);\n });\n }\n }\n return {\n run(b) {\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go(b);\n });\n }\n else {\n go(b);\n }\n },\n end() {\n clear_animation();\n running_program = pending_program = null;\n }\n };\n}\n\nfunction handle_promise(promise, info) {\n const token = info.token = {};\n function update(type, index, key, value) {\n if (info.token !== token)\n return;\n info.resolved = value;\n let child_ctx = info.ctx;\n if (key !== undefined) {\n child_ctx = child_ctx.slice();\n child_ctx[key] = value;\n }\n const block = type && (info.current = type)(child_ctx);\n let needs_flush = false;\n if (info.block) {\n if (info.blocks) {\n info.blocks.forEach((block, i) => {\n if (i !== index && block) {\n group_outros();\n transition_out(block, 1, 1, () => {\n if (info.blocks[i] === block) {\n info.blocks[i] = null;\n }\n });\n check_outros();\n }\n });\n }\n else {\n info.block.d(1);\n }\n block.c();\n transition_in(block, 1);\n block.m(info.mount(), info.anchor);\n needs_flush = true;\n }\n info.block = block;\n if (info.blocks)\n info.blocks[index] = block;\n if (needs_flush) {\n flush();\n }\n }\n if (is_promise(promise)) {\n const current_component = get_current_component();\n promise.then(value => {\n set_current_component(current_component);\n update(info.then, 1, info.value, value);\n set_current_component(null);\n }, error => {\n set_current_component(current_component);\n update(info.catch, 2, info.error, error);\n set_current_component(null);\n if (!info.hasCatch) {\n throw error;\n }\n });\n // if we previously had a then/catch block, destroy it\n if (info.current !== info.pending) {\n update(info.pending, 0);\n return true;\n }\n }\n else {\n if (info.current !== info.then) {\n update(info.then, 1, info.value, promise);\n return true;\n }\n info.resolved = promise;\n }\n}\nfunction update_await_block_branch(info, ctx, dirty) {\n const child_ctx = ctx.slice();\n const { resolved } = info;\n if (info.current === info.then) {\n child_ctx[info.value] = resolved;\n }\n if (info.current === info.catch) {\n child_ctx[info.error] = resolved;\n }\n info.block.p(child_ctx, dirty);\n}\n\nconst globals = (typeof window !== 'undefined'\n ? window\n : typeof globalThis !== 'undefined'\n ? globalThis\n : global);\n\nfunction destroy_block(block, lookup) {\n block.d(1);\n lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n transition_out(block, 1, 1, () => {\n lookup.delete(block.key);\n });\n}\nfunction fix_and_destroy_block(block, lookup) {\n block.f();\n destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n block.f();\n outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, dirty, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n let o = old_blocks.length;\n let n = list.length;\n let i = o;\n const old_indexes = {};\n while (i--)\n old_indexes[old_blocks[i].key] = i;\n const new_blocks = [];\n const new_lookup = new Map();\n const deltas = new Map();\n i = n;\n while (i--) {\n const child_ctx = get_context(ctx, list, i);\n const key = get_key(child_ctx);\n let block = lookup.get(key);\n if (!block) {\n block = create_each_block(key, child_ctx);\n block.c();\n }\n else if (dynamic) {\n block.p(child_ctx, dirty);\n }\n new_lookup.set(key, new_blocks[i] = block);\n if (key in old_indexes)\n deltas.set(key, Math.abs(i - old_indexes[key]));\n }\n const will_move = new Set();\n const did_move = new Set();\n function insert(block) {\n transition_in(block, 1);\n block.m(node, next);\n lookup.set(block.key, block);\n next = block.first;\n n--;\n }\n while (o && n) {\n const new_block = new_blocks[n - 1];\n const old_block = old_blocks[o - 1];\n const new_key = new_block.key;\n const old_key = old_block.key;\n if (new_block === old_block) {\n // do nothing\n next = new_block.first;\n o--;\n n--;\n }\n else if (!new_lookup.has(old_key)) {\n // remove old block\n destroy(old_block, lookup);\n o--;\n }\n else if (!lookup.has(new_key) || will_move.has(new_key)) {\n insert(new_block);\n }\n else if (did_move.has(old_key)) {\n o--;\n }\n else if (deltas.get(new_key) > deltas.get(old_key)) {\n did_move.add(new_key);\n insert(new_block);\n }\n else {\n will_move.add(old_key);\n o--;\n }\n }\n while (o--) {\n const old_block = old_blocks[o];\n if (!new_lookup.has(old_block.key))\n destroy(old_block, lookup);\n }\n while (n)\n insert(new_blocks[n - 1]);\n return new_blocks;\n}\nfunction validate_each_keys(ctx, list, get_context, get_key) {\n const keys = new Set();\n for (let i = 0; i < list.length; i++) {\n const key = get_key(get_context(ctx, list, i));\n if (keys.has(key)) {\n throw new Error('Cannot have duplicate keys in a keyed each');\n }\n keys.add(key);\n }\n}\n\nfunction get_spread_update(levels, updates) {\n const update = {};\n const to_null_out = {};\n const accounted_for = { $$scope: 1 };\n let i = levels.length;\n while (i--) {\n const o = levels[i];\n const n = updates[i];\n if (n) {\n for (const key in o) {\n if (!(key in n))\n to_null_out[key] = 1;\n }\n for (const key in n) {\n if (!accounted_for[key]) {\n update[key] = n[key];\n accounted_for[key] = 1;\n }\n }\n levels[i] = n;\n }\n else {\n for (const key in o) {\n accounted_for[key] = 1;\n }\n }\n }\n for (const key in to_null_out) {\n if (!(key in update))\n update[key] = undefined;\n }\n return update;\n}\nfunction get_spread_object(spread_props) {\n return typeof spread_props === 'object' && spread_props !== null ? spread_props : {};\n}\n\n// source: https://html.spec.whatwg.org/multipage/indices.html\nconst boolean_attributes = new Set([\n 'allowfullscreen',\n 'allowpaymentrequest',\n 'async',\n 'autofocus',\n 'autoplay',\n 'checked',\n 'controls',\n 'default',\n 'defer',\n 'disabled',\n 'formnovalidate',\n 'hidden',\n 'ismap',\n 'loop',\n 'multiple',\n 'muted',\n 'nomodule',\n 'novalidate',\n 'open',\n 'playsinline',\n 'readonly',\n 'required',\n 'reversed',\n 'selected'\n]);\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args, classes_to_add) {\n const attributes = Object.assign({}, ...args);\n if (classes_to_add) {\n if (attributes.class == null) {\n attributes.class = classes_to_add;\n }\n else {\n attributes.class += ' ' + classes_to_add;\n }\n }\n let str = '';\n Object.keys(attributes).forEach(name => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === true)\n str += ' ' + name;\n else if (boolean_attributes.has(name.toLowerCase())) {\n if (value)\n str += ' ' + name;\n }\n else if (value != null) {\n str += ` ${name}=\"${value}\"`;\n }\n });\n return str;\n}\nconst escaped = {\n '\"': '"',\n \"'\": ''',\n '&': '&',\n '<': '<',\n '>': '>'\n};\nfunction escape(html) {\n return String(html).replace(/[\"'&<>]/g, match => escaped[match]);\n}\nfunction escape_attribute_value(value) {\n return typeof value === 'string' ? escape(value) : value;\n}\nfunction escape_object(obj) {\n const result = {};\n for (const key in obj) {\n result[key] = escape_attribute_value(obj[key]);\n }\n return result;\n}\nfunction each(items, fn) {\n let str = '';\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => ''\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === 'svelte:component')\n name += ' this={...}';\n throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);\n }\n return component;\n}\nfunction debug(file, line, column, values) {\n console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n console.log(values); // eslint-disable-line no-console\n return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots, context) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(context || (parent_component ? parent_component.$$.context : [])),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, { $$slots = {}, context = new Map() } = {}) => {\n on_destroy = [];\n const result = { title: '', head: '', css: new Set() };\n const html = $$render(result, props, {}, $$slots, context);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map(css => css.code).join('\\n'),\n map: null // TODO\n },\n head: result.title + result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || (boolean && !value))\n return '';\n return ` ${name}${value === true ? '' : `=${typeof value === 'string' ? JSON.stringify(escape(value)) : `\"${value}\"`}`}`;\n}\nfunction add_classes(classes) {\n return classes ? ` class=\"${classes}\"` : '';\n}\n\nfunction bind(component, name, callback) {\n const index = component.$$.props[name];\n if (index !== undefined) {\n component.$$.bound[index] = callback;\n callback(component.$$.ctx[index]);\n }\n}\nfunction create_component(block) {\n block && block.c();\n}\nfunction claim_component(block, parent_nodes) {\n block && block.l(parent_nodes);\n}\nfunction mount_component(component, target, anchor, customElement) {\n const { fragment, on_mount, on_destroy, after_update } = component.$$;\n fragment && fragment.m(target, anchor);\n if (!customElement) {\n // onMount happens before the initial afterUpdate\n add_render_callback(() => {\n const new_on_destroy = on_mount.map(run).filter(is_function);\n if (on_destroy) {\n on_destroy.push(...new_on_destroy);\n }\n else {\n // Edge case - component was destroyed immediately,\n // most likely as a result of a binding initialising\n run_all(new_on_destroy);\n }\n component.$$.on_mount = [];\n });\n }\n after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n const $$ = component.$$;\n if ($$.fragment !== null) {\n run_all($$.on_destroy);\n $$.fragment && $$.fragment.d(detaching);\n // TODO null out other refs, including component.$$ (but need to\n // preserve final state?)\n $$.on_destroy = $$.fragment = null;\n $$.ctx = [];\n }\n}\nfunction make_dirty(component, i) {\n if (component.$$.dirty[0] === -1) {\n dirty_components.push(component);\n schedule_update();\n component.$$.dirty.fill(0);\n }\n component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));\n}\nfunction init(component, options, instance, create_fragment, not_equal, props, append_styles, dirty = [-1]) {\n const parent_component = current_component;\n set_current_component(component);\n const $$ = component.$$ = {\n fragment: null,\n ctx: null,\n // state\n props,\n update: noop,\n not_equal,\n bound: blank_object(),\n // lifecycle\n on_mount: [],\n on_destroy: [],\n on_disconnect: [],\n before_update: [],\n after_update: [],\n context: new Map(options.context || (parent_component ? parent_component.$$.context : [])),\n // everything else\n callbacks: blank_object(),\n dirty,\n skip_bound: false,\n root: options.target || parent_component.$$.root\n };\n append_styles && append_styles($$.root);\n let ready = false;\n $$.ctx = instance\n ? instance(component, options.props || {}, (i, ret, ...rest) => {\n const value = rest.length ? rest[0] : ret;\n if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {\n if (!$$.skip_bound && $$.bound[i])\n $$.bound[i](value);\n if (ready)\n make_dirty(component, i);\n }\n return ret;\n })\n : [];\n $$.update();\n ready = true;\n run_all($$.before_update);\n // `false` as a special case of no DOM component\n $$.fragment = create_fragment ? create_fragment($$.ctx) : false;\n if (options.target) {\n if (options.hydrate) {\n start_hydrating();\n const nodes = children(options.target);\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.l(nodes);\n nodes.forEach(detach);\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.c();\n }\n if (options.intro)\n transition_in(component.$$.fragment);\n mount_component(component, options.target, options.anchor, options.customElement);\n end_hydrating();\n flush();\n }\n set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement === 'function') {\n SvelteElement = class extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n }\n connectedCallback() {\n const { on_mount } = this.$$;\n this.$$.on_disconnect = on_mount.map(run).filter(is_function);\n // @ts-ignore todo: improve typings\n for (const key in this.$$.slotted) {\n // @ts-ignore todo: improve typings\n this.appendChild(this.$$.slotted[key]);\n }\n }\n attributeChangedCallback(attr, _oldValue, newValue) {\n this[attr] = newValue;\n }\n disconnectedCallback() {\n run_all(this.$$.on_disconnect);\n }\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n // TODO should this delegate to addEventListener?\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n };\n}\n/**\n * Base class for Svelte components. Used when dev=false.\n */\nclass SvelteComponent {\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n}\n\nfunction dispatch_dev(type, detail) {\n document.dispatchEvent(custom_event(type, Object.assign({ version: '3.44.0' }, detail), true));\n}\nfunction append_dev(target, node) {\n dispatch_dev('SvelteDOMInsert', { target, node });\n append(target, node);\n}\nfunction append_hydration_dev(target, node) {\n dispatch_dev('SvelteDOMInsert', { target, node });\n append_hydration(target, node);\n}\nfunction insert_dev(target, node, anchor) {\n dispatch_dev('SvelteDOMInsert', { target, node, anchor });\n insert(target, node, anchor);\n}\nfunction insert_hydration_dev(target, node, anchor) {\n dispatch_dev('SvelteDOMInsert', { target, node, anchor });\n insert_hydration(target, node, anchor);\n}\nfunction detach_dev(node) {\n dispatch_dev('SvelteDOMRemove', { node });\n detach(node);\n}\nfunction detach_between_dev(before, after) {\n while (before.nextSibling && before.nextSibling !== after) {\n detach_dev(before.nextSibling);\n }\n}\nfunction detach_before_dev(after) {\n while (after.previousSibling) {\n detach_dev(after.previousSibling);\n }\n}\nfunction detach_after_dev(before) {\n while (before.nextSibling) {\n detach_dev(before.nextSibling);\n }\n}\nfunction listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) {\n const modifiers = options === true ? ['capture'] : options ? Array.from(Object.keys(options)) : [];\n if (has_prevent_default)\n modifiers.push('preventDefault');\n if (has_stop_propagation)\n modifiers.push('stopPropagation');\n dispatch_dev('SvelteDOMAddEventListener', { node, event, handler, modifiers });\n const dispose = listen(node, event, handler, options);\n return () => {\n dispatch_dev('SvelteDOMRemoveEventListener', { node, event, handler, modifiers });\n dispose();\n };\n}\nfunction attr_dev(node, attribute, value) {\n attr(node, attribute, value);\n if (value == null)\n dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute });\n else\n dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });\n}\nfunction prop_dev(node, property, value) {\n node[property] = value;\n dispatch_dev('SvelteDOMSetProperty', { node, property, value });\n}\nfunction dataset_dev(node, property, value) {\n node.dataset[property] = value;\n dispatch_dev('SvelteDOMSetDataset', { node, property, value });\n}\nfunction set_data_dev(text, data) {\n data = '' + data;\n if (text.wholeText === data)\n return;\n dispatch_dev('SvelteDOMSetData', { node: text, data });\n text.data = data;\n}\nfunction validate_each_argument(arg) {\n if (typeof arg !== 'string' && !(arg && typeof arg === 'object' && 'length' in arg)) {\n let msg = '{#each} only iterates over array-like objects.';\n if (typeof Symbol === 'function' && arg && Symbol.iterator in arg) {\n msg += ' You can use a spread to convert this iterable into an array.';\n }\n throw new Error(msg);\n }\n}\nfunction validate_slots(name, slot, keys) {\n for (const slot_key of Object.keys(slot)) {\n if (!~keys.indexOf(slot_key)) {\n console.warn(`<${name}> received an unexpected slot \"${slot_key}\".`);\n }\n }\n}\n/**\n * Base class for Svelte components with some minor dev-enhancements. Used when dev=true.\n */\nclass SvelteComponentDev extends SvelteComponent {\n constructor(options) {\n if (!options || (!options.target && !options.$$inline)) {\n throw new Error(\"'target' is a required option\");\n }\n super();\n }\n $destroy() {\n super.$destroy();\n this.$destroy = () => {\n console.warn('Component was already destroyed'); // eslint-disable-line no-console\n };\n }\n $capture_state() { }\n $inject_state() { }\n}\n/**\n * Base class to create strongly typed Svelte components.\n * This only exists for typing purposes and should be used in `.d.ts` files.\n *\n * ### Example:\n *\n * You have component library on npm called `component-library`, from which\n * you export a component called `MyComponent`. For Svelte+TypeScript users,\n * you want to provide typings. Therefore you create a `index.d.ts`:\n * ```ts\n * import { SvelteComponentTyped } from \"svelte\";\n * export class MyComponent extends SvelteComponentTyped<{foo: string}> {}\n * ```\n * Typing this makes it possible for IDEs like VS Code with the Svelte extension\n * to provide intellisense and to use the component like this in a Svelte file\n * with TypeScript:\n * ```svelte\n * <script lang=\"ts\">\n * \timport { MyComponent } from \"component-library\";\n * </script>\n * <MyComponent foo={'bar'} />\n * ```\n *\n * #### Why not make this part of `SvelteComponent(Dev)`?\n * Because\n * ```ts\n * class ASubclassOfSvelteComponent extends SvelteComponent<{foo: string}> {}\n * const component: typeof SvelteComponent = ASubclassOfSvelteComponent;\n * ```\n * will throw a type error, so we need to separate the more strictly typed class.\n */\nclass SvelteComponentTyped extends SvelteComponentDev {\n constructor(options) {\n super(options);\n }\n}\nfunction loop_guard(timeout) {\n const start = Date.now();\n return () => {\n if (Date.now() - start > timeout) {\n throw new Error('Infinite loop detected');\n }\n };\n}\n\nexport { HtmlTag, HtmlTagHydration, SvelteComponent, SvelteComponentDev, SvelteComponentTyped, SvelteElement, action_destroyer, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_transform, afterUpdate, append, append_dev, append_empty_stylesheet, append_hydration, append_hydration_dev, append_styles, assign, attr, attr_dev, attribute_to_object, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_component, claim_element, claim_html_tag, claim_space, claim_svg_element, claim_text, clear_loops, component_subscribe, compute_rest_props, compute_slots, createEventDispatcher, create_animation, create_bidirectional_transition, create_component, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, dataset_dev, debug, destroy_block, destroy_component, destroy_each, detach, detach_after_dev, detach_before_dev, detach_between_dev, detach_dev, dirty_components, dispatch_dev, each, element, element_is, empty, end_hydrating, escape, escape_attribute_value, escape_object, escaped, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getAllContexts, getContext, get_all_dirty_from_scope, get_binding_group_value, get_current_component, get_custom_elements_slots, get_root_for_style, get_slot_changes, get_spread_object, get_spread_update, get_store_value, globals, group_outros, handle_promise, hasContext, has_prop, identity, init, insert, insert_dev, insert_hydration, insert_hydration_dev, intros, invalid_attribute_name_character, is_client, is_crossorigin, is_empty, is_function, is_promise, listen, listen_dev, loop, loop_guard, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, prop_dev, query_selector_all, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, self, setContext, set_attributes, set_current_component, set_custom_element_data, set_data, set_data_dev, set_input_type, set_input_value, set_now, set_raf, set_store_value, set_style, set_svg_attributes, space, spread, src_url_equal, start_hydrating, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, trusted, update_await_block_branch, update_keyed_each, update_slot, update_slot_base, validate_component, validate_each_argument, validate_each_keys, validate_slots, validate_store, xlink_attr };\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import Editables from 'ACP/Editing/modules/editables';\nimport Helper from 'ACP/Editing/modules/helper';\nimport BulkEdit from 'ACP/Editing/bulk-edit/bulk-edit';\nimport InlineEdit from 'ACP/Editing/inline-edit/inline-edit';\nimport { mapColumns } from 'ACP/Editing/middleware/columns';\nimport { CellMiddleware } from 'ACP/Editing/middleware/cells';\nimport TableUpdate from 'ACP/Editing/modules/table-update';\nimport { getEditableValues } from \"ACP/Editing/helpers/ajax\";\nimport EditableMiddleware from \"ACP/Editing/middleware/editable\";\nimport EditingModule from \"ACP/Editing/modules/main-module\";\nAC_SERVICES.addListener('Table.Ready', (e) => {\n const Table = e.table;\n if (!AC.hasOwnProperty('layout') || null === AC.layout) {\n return;\n }\n mapColumns(e.table.Columns, ACP_Editing_Columns);\n const Editing = new EditingModule();\n const EditablesService = new Editables(AC_SERVICES);\n const EditableMiddlewareService = new EditableMiddleware(EditablesService, AC_SERVICES);\n const TableUpdateService = new TableUpdate(Table);\n AC_SERVICES.registerService('Editing', Editing);\n Editing\n .registerService('Editables', EditablesService)\n .registerService('Helper', new Helper())\n .registerService('TableUpdate', TableUpdateService);\n if (hasFeatureSupport('bulk_edit')) {\n Editing.registerService('BulkEdit', new BulkEdit(Table, EditablesService, EditableMiddlewareService, TableUpdateService));\n }\n if (hasFeatureSupport('inline_edit')) {\n let Editing_items = getEditableValues(Table.getIdsFromTable());\n Editing_items.then((response) => {\n if (response.data.success) {\n CellMiddleware(Table.Cells, response.data.data.editable_values);\n Editing.registerService('InlineEdit', new InlineEdit(Table, EditablesService, EditableMiddlewareService, ACP_Editing.inline_edit.active || ACP_Editing.inline_edit.persistent, ACP_Editing.inline_edit.version));\n }\n });\n }\n else {\n document.querySelectorAll('.ac-table-button.-toggle.-iedit').forEach(el => el.remove());\n }\n});\nconst hasFeatureSupport = (feature) => {\n let columns = ACP_Editing_Columns;\n for (const column_name of Object.keys(columns)) {\n let settings = columns[column_name];\n if (settings.hasOwnProperty(feature) && settings[feature] !== null) {\n return true;\n }\n }\n return false;\n};\n"],"names":[],"sourceRoot":""}